@jolibox/implement 1.2.7 → 1.2.9-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.rush/temp/package-deps_build.json +38 -28
  2. package/dist/common/rewards/registers/use-gem-only.d.ts +2 -1
  3. package/dist/common/rewards/registers/use-gem.d.ts +2 -1
  4. package/dist/common/rewards/registers/use-jolicoin-only.d.ts +2 -1
  5. package/dist/common/rewards/registers/use-jolicoin.d.ts +2 -1
  6. package/dist/common/rewards/registers/use-subscription.d.ts +2 -1
  7. package/dist/common/rewards/registers/utils/coins/jolicoin/jolicoin-handler.d.ts +1 -0
  8. package/dist/common/rewards/registers/utils/coins/joligem/gem-handler.d.ts +2 -1
  9. package/dist/common/rewards/registers/utils/common.d.ts +1 -0
  10. package/dist/common/rewards/registers/utils/subscription/sub-handler.d.ts +2 -1
  11. package/dist/common/rewards/reward-emitter.d.ts +8 -0
  12. package/dist/common/rewards/type.d.ts +1 -1
  13. package/dist/common/utils/index.d.ts +1 -1
  14. package/dist/index.js +25 -25
  15. package/dist/index.native.js +54 -54
  16. package/dist/native/payment/utils/__tests__/cache-with-storage.test.d.ts +1 -0
  17. package/dist/native/payment/utils/cache-with-storage.d.ts +7 -0
  18. package/dist/native/rewards/check-frequency.d.ts +8 -0
  19. package/dist/native/rewards/index.d.ts +1 -0
  20. package/dist/native/rewards/ui/subscription-modal.d.ts +1 -0
  21. package/dist/native/subscription/index.d.ts +3 -0
  22. package/dist/native/subscription/registers/base.d.ts +22 -0
  23. package/dist/native/subscription/registers/sub-app.d.ts +21 -0
  24. package/dist/native/subscription/registers/type.d.ts +10 -0
  25. package/dist/native/subscription/subscription-helper.d.ts +22 -0
  26. package/dist/native/subscription/subscription-service.d.ts +43 -0
  27. package/dist/native/subscription/type.d.ts +18 -0
  28. package/implement.build.log +2 -2
  29. package/package.json +5 -5
  30. package/src/common/context/index.ts +4 -1
  31. package/src/common/rewards/cached-fetch-reward.ts +16 -1
  32. package/src/common/rewards/registers/use-gem-only.ts +5 -2
  33. package/src/common/rewards/registers/use-gem.ts +5 -2
  34. package/src/common/rewards/registers/use-jolicoin-only.ts +5 -2
  35. package/src/common/rewards/registers/use-jolicoin.ts +5 -2
  36. package/src/common/rewards/registers/use-subscription.ts +5 -2
  37. package/src/common/rewards/registers/utils/coins/jolicoin/jolicoin-handler.ts +33 -11
  38. package/src/common/rewards/registers/utils/coins/joligem/gem-handler.ts +34 -13
  39. package/src/common/rewards/registers/utils/common.ts +9 -0
  40. package/src/common/rewards/registers/utils/subscription/commands/use-subscription.ts +16 -0
  41. package/src/common/rewards/registers/utils/subscription/sub-handler.ts +23 -7
  42. package/src/common/rewards/reward-emitter.ts +8 -0
  43. package/src/common/rewards/type.ts +1 -1
  44. package/src/common/utils/index.ts +1 -1
  45. package/src/h5/api/ads.ts +6 -3
  46. package/src/h5/bootstrap/auth/__tests__/auth.test.ts +15 -9
  47. package/src/h5/bootstrap/auth/sub.ts +1 -1
  48. package/src/native/api/ads.ts +43 -6
  49. package/src/native/api/call-host-method.ts +5 -61
  50. package/src/native/api/login.ts +22 -7
  51. package/src/native/api/payment.ts +78 -3
  52. package/src/native/payment/__tests__/payment-service-simple.test.ts +14 -1
  53. package/src/native/payment/payment-service.ts +26 -27
  54. package/src/native/payment/utils/__tests__/cache-with-storage.test.ts +414 -0
  55. package/src/native/payment/utils/cache-with-storage.ts +112 -0
  56. package/src/native/rewards/check-frequency.ts +6 -0
  57. package/src/native/rewards/index.ts +1 -0
  58. package/src/native/rewards/ui/payment-modal.ts +2 -2
  59. package/src/native/rewards/ui/subscription-modal.ts +81 -0
  60. package/src/native/subscription/index.ts +12 -0
  61. package/src/native/subscription/registers/base.ts +88 -0
  62. package/src/native/subscription/registers/sub-app.ts +258 -0
  63. package/src/native/subscription/registers/type.ts +13 -0
  64. package/src/native/subscription/subscription-helper.ts +53 -0
  65. package/src/native/subscription/subscription-service.ts +339 -0
  66. package/src/native/subscription/type.ts +18 -0
@@ -1,6 +1,6 @@
1
- var gT=Object.create;var Go=Object.defineProperty,vT=Object.defineProperties,yT=Object.getOwnPropertyDescriptor,_T=Object.getOwnPropertyDescriptors,bT=Object.getOwnPropertyNames,jo=Object.getOwnPropertySymbols,wT=Object.getPrototypeOf,Jl=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable;var uh=(e,t,r)=>t in e?Go(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Jl.call(t,r)&&uh(e,r,t[r]);if(jo)for(var r of jo(t))dh.call(t,r)&&uh(e,r,t[r]);return e},F=(e,t)=>vT(e,_T(t));var Be=(e,t)=>{var r={};for(var n in e)Jl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&jo)for(var n of jo(e))t.indexOf(n)<0&&dh.call(e,n)&&(r[n]=e[n]);return r};var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ph=(e,t)=>{for(var r in t)Go(e,r,{get:t[r],enumerable:!0})},IT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of bT(t))!Jl.call(e,i)&&i!==r&&Go(e,i,{get:()=>t[i],enumerable:!(n=yT(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?gT(wT(e)):{},IT(t||!e||!e.__esModule?Go(r,"default",{value:e,enumerable:!0}):r,e));var _=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function xT(e){return!!(e!=null&&e.__nativeBuffers__)}function Yl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!xT(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=TT(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function RT(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:OT(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function LT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function kh(e){return typeof e=="string"}function fn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function hh(e){return typeof e=="number"&&!isNaN(e)}function MT(e){return typeof e=="undefined"}function UT(e){return MT(e)||e===null}function Ch(e){return typeof e=="function"}function FT(e){return fn(e)&&Ch(e.then)}function Ah(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ai(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function VT(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function QT(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function rO(e){return new Promise(t=>xh(e)(t))}function xh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function nO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ci(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function oO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)aO(e[n],t[n])}function aO(e,t){if(kh(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Ch(t)){try{if(e instanceof t)return}catch(r){}if(!UT(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function oc(e,t){if(Xl.config[e]){Wo.warn(`[can i use] ${e} already registered`);return}Xl.config[e]=Yt({},t)}function vh(e,t){return`[${e}]:${t}`}function fO(e,t){yh||(Vl=new Jo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Wl=new Jo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),zl=new Jo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Vl.flush(),Wl.flush(),zl.flush()}),yh=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:v}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Vl.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&v&&(Wl.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),zl.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-v).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function vO(e,t){let r=0,n=!0,i=gO.resolveMap,o=fO(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Kl.forEach(l=>$o(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Kl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Yl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new qT;if(i.set(r,m.resolve),!n&&cO.includes(l))return new Promise(A=>{Kl.push({method:l,args:c,resolve:A})});let v=CT(Yt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!hO&&lO.includes(l),g=RT(c,y),w=y?g:JSON.stringify(g),S;if(l.endsWith("Sync")||uO.includes(l)?S=(d=e.call)==null?void 0:d.call(e,l,g,r):typeof w=="string"?S=e.invoke(l,w,r):S=(u=e.call)==null?void 0:u.call(e,l,w,r),S){try{typeof S=="string"&&(S=JSON.parse(S)),S=Yl(S)}catch(A){Wo.error(A)}return i.delete(r),S.errorCode&&(S.errorCode=vh(l,S.errorCode)),o(Yt(Yt({},v),S)),S}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=vh(l,A.errorCode)),o(Yt(Yt({},v),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return FT(d)?d.then(u=>_h(l,u)):_h(l,d)},invokeHandler:a}}function _h(e,t){if(!fn(t)){Wo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=AT(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new JT(n,i,o,a);return s}function yO(e){if(globalThis[Bo])return globalThis[Bo];let t=new tc,r=new tc,n=new Jo({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Bo]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=Yl(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Oh){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(li.length),u,a)}catch(p){}});return}if(i.startsWith(li)){r.emit(i.slice(li.length),l,a);return}t.emit(i,l,a)}},globalThis[Bo]}function _O(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${li}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Oh,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${li}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(dO,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function bO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=yO(e),{invokeNative:a,invokeHandler:s,applyNative:l}=vO(e,r),{publish:c,emitNative:d}=_O(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Rh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var ET,ST,kT,Ho,wh,Ih,fh,Yt,CT,AT,$o,TT,OT,Eh,PT,NT,Sh,DT,qT,jT,GT,Vo,BT,JT,HT,Hl,Wo,mh,$T,Ql,WT,Xl,zT,KT,YT,pn,XT,V$,Zl,se,ZT,eO,si,ci,tc,rc,tO,$l,iO,W$,nc,gh,z$,Th,sO,li,lO,cO,uO,Oh,dO,pO,Jo,yh,Vl,Wl,zl,Kl,hO,ic,mO,gO,Bo,ac,mt,Ph,Nh,wO,Dh,bh,_e,j,rt,K$,IO,Lh,sc,Y$,Q$,be=C(()=>{"use strict";ET=Object.defineProperty,ST=Object.defineProperties,kT=Object.getOwnPropertyDescriptors,Ho=Object.getOwnPropertySymbols,wh=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,fh=(e,t,r)=>t in e?ET(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yt=(e,t)=>{for(var r in t||(t={}))wh.call(t,r)&&fh(e,r,t[r]);if(Ho)for(var r of Ho(t))Ih.call(t,r)&&fh(e,r,t[r]);return e},CT=(e,t)=>ST(e,kT(t)),AT=(e,t)=>{var r={};for(var n in e)wh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ho)for(var n of Ho(e))t.indexOf(n)<0&&Ih.call(e,n)&&(r[n]=e[n]);return r},$o=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});TT=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};OT=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};Eh=Object.defineProperty,PT=Object.getOwnPropertyDescriptor,NT=(e,t)=>{for(var r in t)Eh(e,r,{get:t[r],enumerable:!0})},Sh=(e,t,r,n)=>{for(var i=n>1?void 0:n?PT(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Eh(t,r,i),i},DT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}qT=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};jT=(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))(jT||{}),GT=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}},Vo=class extends GT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},BT=class extends Vo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},JT=class extends Vo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},HT=class extends Vo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Hl=class extends Vo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Wo={log:ai("log"),warn:ai("warn"),info:ai("info"),error:ai("error"),debug:ai("debug")};Object.assign(globalThis,{logger:Wo});mh=Symbol.for("Jolibox.canIUseMap"),$T={};globalThis[mh]||(globalThis[mh]=$T);Ql=Symbol.for("Jolibox.canIUseMap.native"),WT={};globalThis[Ql]||(globalThis[Ql]=WT);Xl={get config(){return globalThis[Ql]}},zT=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(zT||{}),KT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(KT||{}),YT=(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))(YT||{});QT();pn=typeof window=="undefined",XT=()=>!pn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),V$={isiOS:!pn&&(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:!pn&&navigator.userAgent.includes("Android"),isMac:!pn&&navigator.userAgent.includes("Mac"),isFacebook:!pn&&navigator.userAgent.includes("FB_IAB"),isPC:!pn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Zl=class ec{constructor(t){this.element=t,this.next=ec.Undefined,this.prev=ec.Undefined}};Zl.Undefined=new Zl(void 0);se=Zl,ZT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},eO=0,si=class{constructor(e){this.value=e,this.id=eO++}},ci=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof si&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new si(t);return this._listeners?this._listeners instanceof si?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof si)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof si?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},tc=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ci,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new ZT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},rc={};NT(rc,{None:()=>tO,filter:()=>nO,once:()=>xh,toPromise:()=>rO});tO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});$l=Symbol.for("Jolibox.hostEmitter"),iO=()=>{let e=new tc;return globalThis[$l]||(globalThis[$l]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[$l]},W$=iO();nc=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ci,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return oO(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};nc=Sh([Ah],nc);gh=class{constructor(){this._onWillExecuteCommand=new ci,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ci,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new nc,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=LT(3e4)),this._starActivation}executeCommand(e,...t){return DT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),rc.toPromise(rc.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};gh=Sh([Ah],gh);z$=Symbol.for("Jolibox.commands");oc("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});oc("requestProductDetailsAsync",{version:102e4});oc("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Th=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Xl.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=VT(i,o);if(!s)return!1;if(fn(s)){let l=s.version;return hh(l)?typeof a=="number"&&a>=l:!0}return hh(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};sO=()=>XT(),li="custom_event_",lO=[],cO=[],uO=["env","createRequestTask","login"],Oh="__batch_event__",dO="__native_batch_event__",pO=e=>e==="pv"?e:"default",Jo=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=pO(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&fn(a))throw new Hl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(fn(a))l.push(...Object.keys(a));else if(kh(a)){if(i.length>0)throw new Hl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Hl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=fn(a)?a[c]:a;t(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},yh=!1;Kl=[],hO=!1,ic=Symbol.for("Jolibox.invokeResolverInstance"),mO=new Map;globalThis[ic]||(globalThis[ic]=mO);gO={get resolveMap(){return globalThis[ic]}};Bo=Symbol.for("Jolibox.subscribeInstance");mt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){mt.trigger=e},onDoExit(e){mt.exit=e},onDoBackPress(e){mt.backPress=e}},Ph=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new BT("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{mt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>$o(void 0,null,function*(){let o=yield mt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});ac={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Rh(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:Ph,doExit:r};globalThis.joliboxJSCore=Yt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{mt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>$o(void 0,null,function*(){let a=yield mt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});ac={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Rh(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return $o(this,null,function*(){let a=yield mt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Ph,doExit:n};globalThis.joliboxJSCore=Yt({},i)}Nh=ac;if(!Nh&&sO())throw new HT("No joliboxJScore is found, native bridge not found.");wO=Yt({},Nh),Dh=bO(wO),{invokeHandler:bh}=Dh,{applyNative:_e,invokeNative:j,onNative:rt,offNative:K$,subscribeHandler:IO,publish:Lh,emitNative:sc,subscribe:Y$,unsubscribe:Q$}=Dh;globalThis.joliboxJSBridge={callHandler:bh,invokeHandler:bh,subscribeHandler:IO}});function AO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Bh(e){return new Promise(t=>setTimeout(t,e))}function hi(e){return typeof e=="string"}function $r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Jh(e){return typeof e=="object"&&Array.isArray(e)}function Hh(e){return typeof e=="number"&&!isNaN(e)}function Sr(e){return e===!0||e===!1}function $h(e){return typeof e=="undefined"}function mc(e){return $h(e)||e===null}function xO(e){return typeof e=="function"}function Vh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Wh(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:Uh(l)&&Uh(s)?i[a]=n(jh({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Uh(e){return e&&typeof e=="object"&&e.constructor===Object}function zh(e,t){if(Array.isArray(e))return e.concat(t)}function mi(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function OO(e,t){return(...r)=>t(e,...r)}function Ko(e){return t=>OO(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function ui(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function tm(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function wc(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function qO(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function Ic(e){return qO("app","stg-app",e)}function mn(e){return`https://${Ic(e)}`}function jO(e){return new Promise(t=>om(e)(t))}function om(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function GO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new fi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function JO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)HO(e[n],t[n])}function HO(e,t){if(hi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(xO(t)){try{if(e instanceof t)return}catch(r){}if(!mc(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function $O(){return typeof globalThis!="undefined"?globalThis[am]:void 0}function VO(e){typeof globalThis!="undefined"&&(globalThis[am]=e)}function Y(e=!1){let t=$O();if(!e&&t)return t;let r=new zo,n=new fc,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return VO(i),i}var hc,EO,qh,SO,kO,Mh,jh,CO,Gh,Hr,Rt,TO,gc,gi,vc,Kh,Pt,Yh,Qh,Xh,Zh,em,yi,yc,Nt,cc,RO,_c,Fh,PO,J,bc,NO,hn,di,_i,DO,LO,rm,nm,im,Qt,uc,le,MO,UO,pi,fi,Dt,pc,FO,lc,BO,te,zo,fc,am,P=C(()=>{"use strict";hc=Object.defineProperty,EO=Object.getOwnPropertyDescriptor,qh=Object.getOwnPropertySymbols,SO=Object.prototype.hasOwnProperty,kO=Object.prototype.propertyIsEnumerable,Mh=(e,t,r)=>t in e?hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jh=(e,t)=>{for(var r in t||(t={}))SO.call(t,r)&&Mh(e,r,t[r]);if(qh)for(var r of qh(t))kO.call(t,r)&&Mh(e,r,t[r]);return e},CO=(e,t)=>{for(var r in t)hc(e,r,{get:t[r],enumerable:!0})},Gh=(e,t,r,n)=>{for(var i=n>1?void 0:n?EO(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&hc(t,r,i),i},Hr=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Rt=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};TO=(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))(TO||{}),gc=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}},gi=class extends gc{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},vc=class extends gc{constructor(){super(...arguments),this.kind="USER_ERROR"}},Kh=class extends vc{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends vc{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Yh=class extends vc{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Qh=class extends gi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Xh=class extends gi{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Zh=class extends gi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},em=class extends gi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},yi=class extends gc{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},yc=class extends gi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Nt={log:ui("log"),warn:ui("warn"),info:ui("info"),error:ui("error"),debug:ui("debug")};Object.assign(globalThis,{logger:Nt});cc=Symbol.for("Jolibox.canIUseMap"),RO={};globalThis[cc]||(globalThis[cc]=RO);_c={get config(){return globalThis[cc]}},Fh=Symbol.for("Jolibox.canIUseMap.native"),PO={};globalThis[Fh]||(globalThis[Fh]=PO);J=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(J||{}),bc=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(bc||{}),NO=(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))(NO||{}),hn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});wc();di=typeof window=="undefined",_i={isiOS:!di&&(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:!di&&navigator.userAgent.includes("Android"),isMac:!di&&navigator.userAgent.includes("Mac"),isFacebook:!di&&navigator.userAgent.includes("FB_IAB"),isPC:!di&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},DO="device_id",LO="advertising_id",rm=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,hn()),window.__joliboxLocalStorage__.getItem(e)),nm=()=>new URLSearchParams(window.location.search).get("deviceId")||rm(DO),im=()=>new URLSearchParams(window.location.search).get("advertisingId")||rm(LO);Qt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=jh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return Hr(this,null,function*(){let r=this.config.keyGenerator(e,t),n=this.pendingRequests.get(r);if(n)return console.log(`[RequestCacheService] Reusing pending request for ${e}`),n;let i=this.requestInternal(e,t),o=this.createTimeoutPromise(),a=Promise.race([i,o]).catch(s=>Hr(this,null,function*(){if(s.message.includes("timeout")){let l=this.getValidCachedData(r);if(l)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}throw s}));this.pendingRequests.set(r,a),i.then(s=>{console.log(`[RequestCacheService] Background request completed successfully for ${e}`)}).catch(s=>{console.warn(`[RequestCacheService] Background request failed for ${e}:`,s)});try{return yield a}finally{this.pendingRequests.delete(r)}})}requestInternal(e,t){return Hr(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,l=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",l),l){if(this.requestAdapter.extractRealTimeData&&this.requestAdapter.mergeData)try{let u=yield this.requestAdapter.execute(e,t),p=this.requestAdapter.extractRealTimeData(u),f=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,u);return f&&!this.config.consistencyChecker(l,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(l,p)}catch(u){return console.warn(`[RequestCacheService] Failed to fetch real-time data, using cache only for ${e}:`,u),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let c=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,c);return d&&this.setCachedDataWithSequence(a,d,s),c})}createTimeoutPromise(){return new Promise((e,t)=>{setTimeout(()=>{t(new Error(`[RequestCacheService] Request timeout after ${this.config.timeout/1e3} seconds`))},this.config.timeout)})}getValidCachedData(e){let t=this.cache.get(e);return t?Date.now()>t.expiresAt?(this.cache.delete(e),null):t.data:null}setCachedDataWithSequence(e,t,r,n){let i=this.cache.get(e);if(i&&i.sequence>r){console.log(`[RequestCacheService] Ignoring stale cache update for ${e} (current: ${i.sequence}, incoming: ${r})`);return}let o=Date.now();this.cache.set(e,{data:JSON.parse(JSON.stringify(t)),timestamp:o,expiresAt:o+this.config.duration,key:e,sequence:r,metadata:n}),this.cacheSequences.set(e,r),console.log(`[RequestCacheService] Updated cache for ${e} with sequence ${r}`)}refreshCache(e,t){return Hr(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return Hr(this,null,function*(){var r,n;let i=this.config.keyGenerator(e,t),o=++this.requestSequence;console.log(`[RequestCacheService] Force request for ${e} (sequence: ${o})`);let a=yield this.requestAdapter.execute(e,t),s=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,a);return s&&(this.setCachedDataWithSequence(i,s,o),console.log(`[RequestCacheService] Force updated cache for ${e}`)),a})}warmupCache(e,t){return Hr(this,null,function*(){let r=this.config.keyGenerator(e,t);if(this.pendingRequests.has(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - request in progress`);return}if(this.hasValidCache(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - valid cache exists`);return}try{console.log(`[RequestCacheService] Warming up cache for ${e}`),yield this.forceRequest(e,t)}catch(n){console.warn(`[RequestCacheService] Cache warmup failed for ${e}:`,n)}})}clearCache(e){e?(this.cache.delete(e),this.cacheSequences.delete(e),this.pendingRequests.delete(e),console.log(`[RequestCacheService] Cleared cache for ${e}`)):(this.cache.clear(),this.cacheSequences.clear(),this.pendingRequests.clear(),this.requestSequence=0,console.log("[RequestCacheService] Cleared all cache"))}clearExpiredCache(){let e=Date.now();for(let[t,r]of this.cache)e>r.expiresAt&&(this.cache.delete(t),this.cacheSequences.delete(t));console.log("[RequestCacheService] Cleared expired cache entries")}getCacheStats(){let e=Date.now(),t=0,r=0;for(let n of this.cache.values())e>n.expiresAt?r++:t++;return{cacheCount:this.cache.size,validCount:t,expiredCount:r,pendingRequestCount:this.pendingRequests.size}}getCacheKeys(){return Array.from(this.cache.keys())}hasValidCache(e){let t=this.cache.get(e);return t?Date.now()<=t.expiresAt:!1}getPendingRequestKeys(){return Array.from(this.pendingRequests.keys())}hasPendingRequest(e){return this.pendingRequests.has(e)}getCacheSequence(e){return this.cacheSequences.get(e)}},uc=class dc{constructor(t){this.element=t,this.next=dc.Undefined,this.prev=dc.Undefined}};uc.Undefined=new uc(void 0);le=uc,MO=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},UO=0,pi=class{constructor(e){this.value=e,this.id=UO++}},fi=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof pi&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new pi(t);return this._listeners?this._listeners instanceof pi?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof pi)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof pi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Dt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new fi,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new MO,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},pc={};CO(pc,{None:()=>FO,filter:()=>GO,once:()=>om,toPromise:()=>jO});FO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});lc=Symbol.for("Jolibox.hostEmitter"),BO=()=>{let e=new Dt;return globalThis[lc]||(globalThis[lc]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[lc]},te=BO();zo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new fi,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return JO(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};zo=Gh([Vh],zo);fc=class{constructor(){this._onWillExecuteCommand=new fi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new fi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new zo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=AO(3e4)),this._starActivation}executeCommand(e,...t){return Hr(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),pc.toPromise(pc.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};fc=Gh([Vh],fc);am=Symbol.for("Jolibox.commands")});function Ae(e,t={}){Ec.emit("ERROR_REPORT",{error:e,options:t})}var Ec,Vr,gt=C(()=>{"use strict";P();P();Ec=new Dt,Vr=new Dt;Ae.debounce=mi(Ae,50,{leading:!0})});var Sc,WO,sm,lm,cm=C(()=>{"use strict";P();gt();Sc=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},WO=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},sm=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:Sc(o),payloadJson:Sc(a),signature:Sc(s)}}else throw"joli_source is missing"}catch(r){return Ae(new Qh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},lm=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=WO(e),o=r[2];return`${n}.${i}.${o}`}return t}});var zO,kc,um=C(()=>{"use strict";P();zO="1.2.7",kc=()=>zO});function Ac(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var KO,dm,Cc,pm,ce,YO,E,B=C(()=>{"use strict";P();cm();um();P();KO={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:nm(),adId:im(),pixelRatio:window.devicePixelRatio||1,platform:_i.isAndroid?"android":_i.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:kc()},schema:window.location.href,platform:_i.isAndroid?"android":_i.isiOS?"ios":"h5"},Cc=(dm=globalThis.joliboxJSCore)==null?void 0:dm.env,ce=Object.assign({},(pm=Cc==null?void 0:Cc())!=null?pm:KO);YO=()=>{var f,m,v,y,g,w,S,A,R,T,k;let{payloadJson:e,headerJson:t,signature:r}=ce.schema.length?sm(ce.schema):{},n=`${ce.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ce.schema.length?ce.schema:window.location.href).searchParams,a=(v=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?v:"",s=(w=(g=(y=ce.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?g:o.get("sessionId"))!=null?w:n,l=!!((A=(S=e==null?void 0:e.testAdsMode)!=null?S:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(k=(T=(R=e==null?void 0:e.joliboxEnv)!=null?R:e==null?void 0:e.__joliboxEnv)!=null?T:o.get("joliboxEnv"))!=null?k:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var O;return(O=performance.timeOrigin)!=null?O:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var O;return(O=o.get("joliSource"))!=null?O:null},get mpId(){var O;return(O=a!=null?a:e==null?void 0:e.id)!=null?O:""},get mpVersion(){var O;return(O=t==null?void 0:t.ver)!=null?O:kc()},get mpType(){var O,G;return(G=(O=t==null?void 0:t.__mpType)!=null?O:e==null?void 0:e.__mpType)!=null?G:"game"},get platform(){var O;return((O=ce.platform)!=null?O:ce.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ce.deviceInfo},get sdkInfo(){return ce.sdkInfo},get hostInfo(){return ce.hostInfo},get hostUserInfo(){return ce.hostUserInfo},get sessionId(){var O,G;return(G=(O=ce.clientSessionId)!=null?O:s)!=null?G:n},get channel(){return u},get webviewId(){var O;return(O=ce.webviewId)!=null?O:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Ic(d)},get adId(){var O;return(O=ce.deviceInfo.adId)!=null?O:ce.deviceInfo.did},get language(){return ce.deviceInfo.lang},get sdkEnvironment(){return Ac("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Ac("gamedistribution","jolibox")?"gamedistribution":Ac("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var M,Pe,Ne;let O=(M=ce.deviceInfo.pixelRatio)!=null?M:1,G=(Pe=ce.deviceInfo.statusBarHeight)!=null?Pe:e==null?void 0:e.__androidStatusBarHeight,Ye=(Ne=ce.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:G!==void 0?G/O:20,navigationBarHeight:Ye!==void 0?Ye/O:10}},get abTests(){var O,G;return(G=(O=ce.abValues)==null?void 0:O.split(","))!=null?G:[]},get mpInfo(){var O;return(O=ce.mpInfo)!=null?O:{mpName:"unknown"}},onEnvConfigChanged:O=>{Wh(ce,O,zh)},encodeJoliSourceQuery:O=>{var G,Ye;return t&&r?lm(x(x({},e),O),(G=o.get("joliSource"))!=null?G:""):(Ye=o.get("joliSource"))!=null?Ye:""},setDoExitDirectly:()=>{p=!1}}},E=YO()});var xc,hm,QO,XO,fm,ZO,mm=C(()=>{"use strict";P();gt();B();P();xc=!1,hm=(e,t)=>e==null?!1:t in e,QO=e=>hm(e,"kind"),XO=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},fm=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:XO(e.name)},i=F(x({},n),{env:t.environment,isFromUser:r});r?Vr.emit("GLOBAL_USER_ERROR",e,i):Vr.emit("GLOBAL_ERROR",e,i)},ZO=e=>hm(e,"kind")&&e.kind==="USER_ERROR";Ec.on("ERROR_REPORT",({error:e,options:t})=>{if(xc)return;xc=!0;let r=QO(e)&&e.raw?e.raw:e;try{let n=ZO(e);fm(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new yc(`${i}, origin error: ${r.message}`);Nt.error(o),fm(new yc(o.message),{environment:t.environment},!1)}finally{xc=!1}})});var Lt,Tc,Wr=C(()=>{"use strict";gt();P();gt();Lt=(e,t)=>{var r,n;return new yi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Tc=e=>new Kh(e)});var gm=C(()=>{"use strict";mm();Wr();P();be();Vr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});Vr.on("GLOBAL_USER_ERROR",(e,t)=>{Nt.log("UserError",e,t)})});var Oc=C(()=>{"use strict"});function vm(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=Be(c,["eventType"]),l=F(x({tag:n,eventType:o!=null?o:a!=null?a:J.Other},t),{extra:x({},s)});n=="globalJsError"?Ae(new em(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=mi(r,500,{leading:!0}),r}function ym(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=mi(t,500,{leading:!0}),t}var _m=C(()=>{"use strict";P();P();gt();B()});function bm(e,t){let r=vm(e,t),n=ym(r);return{track:r,trackPerformance:n}}var wm=C(()=>{"use strict";_m()});var Im=C(()=>{"use strict";B();P();P()});var Em=C(()=>{"use strict";wm();Oc();Im()});var Yo,Sm=C(()=>{"use strict";Yo=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(t)});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Qo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:mn(E.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return rt("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:v,state:y}=f,g=Be(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(g):p.reject(g),n.delete(v)}else if(u.state==="fail"){let m=u,{requestTaskId:v,state:y}=m,g=Be(m,["requestTaskId","state"]);p.reject(g),n.delete(v)}else Nt.warn("onRequestTaskStateChange unknown event",u)}),te.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>_(this,[f,...m],function*(u,p={}){let v=Date.now(),y=eR(u,F(x({},p),{baseUrl:i})),{method:g="GET",responseType:w="text",dataType:S="json",timeout:A,enableCache:R=!1,appendHostCookie:T=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),O={url:y,method:g,header:k,enableCache:R,responseType:w,appendHostCookie:T};if(g=="POST"||g=="PUT"){let Ne=rR(p.data,k["content-type"]);O.data=Ne}A&&Object.assign(O,{timeout:A});let{data:{requestTaskId:G}}=j(e,O);if(typeof G!="string")throw Lt({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ye,reject:M,promise:Pe}=new Rt;n.set(G,{resolve:Ye,reject:M});try{let Ne=yield Pe,{data:Jr}=Ne;return S==="json"&&typeof Jr=="string"&&(Jr=tR(Jr)),{url:y,timeout:A,method:g,response:F(x({},Ne),{data:Jr})}}catch(Ne){let Jr=Ne;if($r(Jr)){let{errMsg:Bl,prefetchDetail:J$,isPrefetch:H$,errNo:mT}=Jr;hi(Bl)&&Ae(Lt({code:-1,msg:Bl},{errNo:mT,errMsg:Bl}))}throw Ne}})}function tR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function rR(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var eR,Rc=C(()=>{"use strict";P();be();gt();Wr();B();eR=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var Pc,km,re,vt=C(()=>{"use strict";Rc();B();P();Pc={};(km=E.hostUserInfo)!=null&&km.token&&(Pc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(Pc["x-joli-source"]=E.joliSource);re=Qo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:mn(E.testMode),defaultHeaders:Pc})});function Cm(e){let t=_c.config[e];return t||(t={},_c.config[e]=t),(r,n)=>{if(t[r]){Nt.warn(`[can i use] ${r} already registered`);return}t[r]=x({},n)}}var Am=C(()=>{"use strict";P()});function Nc(e){xm=e}function Xo(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Xo(t)):Object.keys(e).reduce((t,r)=>(t[r]=Xo(e[r]),t),{})}function Xt(e){return typeof e=="number"}function Dc(e){let t=Lc(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Lc(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var xm,we,Zo,ea,ta,ra,gn,na,ia,oa,aa,sa,la,ca,ua,da,pa,fa,ha,qc=C(()=>{"use strict";xm=!1;we=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(xm)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${Dc(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Xo(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Xo(this._default)}optional(){return this._optional=!0,this}};Zo=class extends we{validate(t){return this._optional&&t===void 0?!0:Xt(t)?Xt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Xt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Xt(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},ea=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ta=class extends we{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Xt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Xt(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},ra=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},gn=class extends we{validate(t){return!0}},na=class extends we{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},ia=class extends we{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},oa=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},aa=class extends we{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${Dc(t)}`)}return!0}},sa=class extends we{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(Xt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Xt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Xt(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},la=class extends we{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Lc(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let l=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},ca=class extends we{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Lc(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},ua=class extends we{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Dc(this.value),actual:r}):!0}},da=class extends we{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
2
- or `);this.errors.push(o)}return n}},pa=class extends we{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},fa=class extends we{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},ha=class extends we{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function Mc(e,t,r="param"){if(e.errors=[],e.path=r,Nc(!0),!e.validate(t)){let n=e.errors.join(`
3
- `);throw e.errors.length=0,Nc(!1),new TypeError(n)}}var I,Uc=C(()=>{"use strict";qc();qc();I={object(e){return new ca(e)},array(e){return new sa(e)},tuple(...e){return new pa(...e)},literal(e){return new ua(e)},or(...e){return new da(...e)},symbol(){return new ra},record(e){return new la(e)},function(){return new oa},boolean(){return new ea},string(){return new ta},number(){return new Zo},undefined(){return new na},null(){return new ia},unknown(){return new gn},any(){return new gn},as(){return new gn},arraybuffer(){return new fa},enum(...e){return new aa(...e)},typedarray(e){return new ha(e)}}});var ma,Tm,Om=C(()=>{"use strict";P();gt();Uc();Wr();ma=1,Tm=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:ma};ma+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Mc(i.paramsSchema,o,"params")}catch(w){throw Tc(`${n}:fail ${w.message}`)}let v=i.implement(...o),y=v,g=`${n}:ok`;if(v&&"code"in v){let{code:w,data:S,message:A}=v;l=w,y=S,g=A}return{code:l,message:g,data:y}}catch(v){let y=v;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let g=(m=(f=y.message)!=null?f:y.errMsg)!=null?m:`${v}`;return c=`${n}:${l} ${g.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ae(new yi(c,d)),{code:l,message:c}}finally{let v=Date.now()-a}}}function r(n,i){return(...o)=>_(this,null,function*(){var p,f,m,v;let a=Jh(o)?o:[o],s=Date.now(),l={method:n,trace_id:ma};ma+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Mc(i.paramsSchema,a,"params")}catch(w){throw Tc(w.message)}let g=yield i.implement(...a);if(g&&"code"in g){let{code:w,data:S,message:A}=g;d=w,c=A,g=S}return Object.assign(u,{code:d,message:c,data:g}),u}catch(y){let g=y,w=(f=(p=g.code)!=null?p:g.errNo)!=null?f:2e3;d="FAILURE";let S=(v=(m=g.message)!=null?m:g.errMsg)!=null?v:`${y}`,A=`${n}:${d} ${S.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),Ae(new yi(A,w)),u}finally{let y=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function Fc(e){if(typeof e!="number"||e<=0)return"0.0.0";let t=e.toString(),r=0,n=0,i=0;return t.length>=1&&(r=parseInt(t.substring(0,1),10)),t.length>=3&&(n=parseInt(t.substring(1,3),10)),t.length>=5&&(i=parseInt(t.substring(3,5),10)),`${r}.${n}.${i}`}var Rm=C(()=>{"use strict"});var ue,H,L,Pm,Qe=C(()=>{"use strict";Am();yt();Om();Uc();be();B();Rm();({createAPI:ue,createSyncAPI:H}=Tm(U)),L=Cm("native"),{canIUseNative:Pm}=Th(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});function Nm(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),lR.includes(t)?t:""}function Dm(e,t){try{switch(t){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(r){return""}}function Lm(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var ga,iR,oR,aR,sR,EW,SW,lR,bi,va,ya=C(()=>{"use strict";Qe();be();P();vt();B();ga=Y(),iR=ue("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return _(this,null,function*(){let{response:t}=yield re(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield _e("getLocalStorageAsync",{key:e}),s=Dm(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});ga.registerCommand("StorageSDK.getItem",iR);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});oR=ue("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return _(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield re(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=Nm(t),l=Lm(t,s);return yield _e("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});ga.registerCommand("StorageSDK.setItem",oR);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});aR=ue("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return _(this,null,function*(){let t=E.mpId,{response:r}=yield re(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield _e("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ga.registerCommand("StorageSDK.removeItem",aR);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});sR=ue("clearStorage",{implement(){return _(this,null,function*(){let e=E.mpId,{response:t}=yield re(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});_e("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});ga.registerCommand("StorageSDK.clear",sR);L("storage.clear",{version:"1.0.0"});EW=ue("getStorageInfo",{implement(){return _(this,null,function*(){let{data:e}=yield _e("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});SW=H("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),lR=["string","number","boolean","object",""];bi=ue("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return _(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield _e("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:Dm(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),va=ue("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return _(this,null,function*(){try{let r=Nm(t),n=Lm(t,r);return yield _e("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var qm,_a,Mm=C(()=>{"use strict";B();Sm();P();vt();be();ya();qm="REPORT_FIRST_OPEN_GAME",_a=class extends Yo{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=mn(E.testMode)+"/api/base/app-event"}reporter(t){return _(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:x({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield E.platform==="android"?re("/api/base/app-event",{method:"POST",data:o}):_e("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return _(this,null,function*(){let{event:r,params:n}=t;yield _e("userTrackAsync",{event:r,params:x({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){bi(qm).then(t=>{Sr(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),va(qm,!0)})}}});var Bm={};ph(Bm,{nativeTaskEmitter:()=>wi,taskTracker:()=>Et,track:()=>U,trackPerformance:()=>jm});var cR,Um,Fm,U,jm,Gm,wi,Et,yt=C(()=>{"use strict";gm();P();Oc();Em();B();Mm();be();cR=(e,t,r)=>{var c,d,u,p,f,m,v;let n=t,i=$r(n.extra)?n.extra:hi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(c=E.mpInfo)!=null?c:{},s=x(x(F(x({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:E.sessionId,user_id:(f=(p=E.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),l=(m=n.eventType)!=null?m:J.Other;j("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:l})},{track:U,trackPerformance:jm}=bm(cR,{type:bc.AppSDK,platform:"native",jssdk_version:(Fm=(Um=E.sdkInfo)==null?void 0:Um.jssdkVersion)!=null?Fm:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),Gm=Y();Gm.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{jm(e,t,r)});Gm.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{U(e,t)});wi=new Dt,Et=new _a(U,wi)});function Jm(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
1
+ var XP=Object.create;var oa=Object.defineProperty,ZP=Object.defineProperties,eT=Object.getOwnPropertyDescriptor,tT=Object.getOwnPropertyDescriptors,rT=Object.getOwnPropertyNames,ia=Object.getOwnPropertySymbols,nT=Object.getPrototypeOf,ul=Object.prototype.hasOwnProperty,Um=Object.prototype.propertyIsEnumerable;var Mm=(e,t,r)=>t in e?oa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))ul.call(t,r)&&Mm(e,r,t[r]);if(ia)for(var r of ia(t))Um.call(t,r)&&Mm(e,r,t[r]);return e},U=(e,t)=>ZP(e,tT(t));var $e=(e,t)=>{var r={};for(var n in e)ul.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ia)for(var n of ia(e))t.indexOf(n)<0&&Um.call(e,n)&&(r[n]=e[n]);return r};var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fm=(e,t)=>{for(var r in t)oa(e,r,{get:t[r],enumerable:!0})},iT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of rT(t))!ul.call(e,i)&&i!==r&&oa(e,i,{get:()=>t[i],enumerable:!(n=eT(t,i))||n.enumerable});return e};var re=(e,t,r)=>(r=e!=null?XP(nT(e)):{},iT(t||!e||!e.__esModule?oa(r,"default",{value:e,enumerable:!0}):r,e));var y=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});function uT(e){return!!(e!=null&&e.__nativeBuffers__)}function vl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!uT(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=dT(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function fT(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:pT(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function vT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Xm(e){return typeof e=="string"}function Pn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Gm(e){return typeof e=="number"&&!isNaN(e)}function bT(e){return typeof e=="undefined"}function _T(e){return bT(e)||e===null}function Zm(e){return typeof e=="function"}function wT(e){return Pn(e)&&Zm(e.then)}function eh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Ei(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function xT(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function NT(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function UT(e){return new Promise(t=>th(e)(t))}function th(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function FT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ai(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function GT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)BT(e[n],t[n])}function BT(e,t){if(Xm(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Zm(t)){try{if(e instanceof t)return}catch(r){}if(!_T(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function zr(e,t){if(bl.config[e]){da.warn(`[can i use] ${e} already registered`);return}bl.config[e]=ar({},t)}function Hm(e,t){return`[${e}]:${t}`}function KT(e,t){$m||(fl=new sa({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),ml=new sa({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),hl=new sa({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{fl.flush(),ml.flush(),hl.flush()}),$m=!0);function r(i){var o,a;let{method:s,args:c,startTime:l,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";fl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&g&&(ml.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),hl.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function ZT(e,t){let r=0,n=!0,i=XT.resolveMap,o=KT(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,gl.forEach(c=>la(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),gl.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=vl(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new yT;if(i.set(r,m.resolve),!n&&$T.includes(c))return new Promise(A=>{gl.push({method:c,args:l,resolve:A})});let g=cT(ar({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!YT&&HT.includes(c),v=fT(l,b),w=b?v:JSON.stringify(v),E;if(c.endsWith("Sync")||VT.includes(c)?E=(d=e.call)==null?void 0:d.call(e,c,v,r):typeof w=="string"?E=e.invoke(c,w,r):E=(u=e.call)==null?void 0:u.call(e,c,w,r),E){try{typeof E=="string"&&(E=JSON.parse(E)),E=vl(E)}catch(A){da.error(A)}return i.delete(r),E.errorCode&&(E.errorCode=Hm(c,E.errorCode)),o(ar(ar({},g),E)),E}return c.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=Hm(c,A.errorCode)),o(ar(ar({},g),A)),A))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return wT(d)?d.then(u=>Vm(c,u)):Vm(c,d)},invokeHandler:a}}function Vm(e,t){if(!Pn(t)){da.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=lT(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new kT(n,i,o,a);return s}function eR(e){if(globalThis[aa])return globalThis[aa];let t=new Sl,r=new Sl,n=new sa({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[aa]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=vl(o),c;if(s.__extra){c=s.params;let{type:l,startTime:d}=s.__extra;n.report({type:l,event:i,duration:Date.now()-d})}else c=s;if(i===nh){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Ci.length),u,a)}catch(p){}});return}if(i.startsWith(Ci)){r.emit(i.slice(Ci.length),c,a);return}t.emit(i,c,a)}},globalThis[aa]}function tR(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,c)=>{if(c){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${Ci}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(nh,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Ci}${o}`,a])},emitNative:(o,a,s,c)=>{if(c){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(WT,d,p)}catch(p){}}),i=void 0,r.clear()}));let l=r.get(s);l||(l=[],r.set(s,l)),l.push([o,a])}}}function rR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=eR(e),{invokeNative:a,invokeHandler:s,applyNative:c}=ZT(e,r),{publish:l,emitNative:d}=tR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function ih(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var oT,aT,sT,ca,zm,Km,jm,ar,cT,lT,la,dT,pT,Ym,mT,hT,Qm,gT,yT,ST,IT,ua,ET,kT,CT,dl,da,Bm,AT,yl,PT,bl,TT,RT,OT,xn,DT,jV,_l,se,qT,LT,ki,Ai,Sl,Il,MT,pl,jT,GV,El,Jm,BV,rh,JT,Ci,HT,$T,VT,nh,WT,zT,sa,$m,fl,ml,hl,gl,YT,kl,QT,XT,aa,Cl,It,oh,ah,nR,sh,Wm,me,F,Re,JV,iR,ch,Al,HV,$V,ce=C(()=>{"use strict";oT=Object.defineProperty,aT=Object.defineProperties,sT=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,zm=Object.prototype.hasOwnProperty,Km=Object.prototype.propertyIsEnumerable,jm=(e,t,r)=>t in e?oT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ar=(e,t)=>{for(var r in t||(t={}))zm.call(t,r)&&jm(e,r,t[r]);if(ca)for(var r of ca(t))Km.call(t,r)&&jm(e,r,t[r]);return e},cT=(e,t)=>aT(e,sT(t)),lT=(e,t)=>{var r={};for(var n in e)zm.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ca)for(var n of ca(e))t.indexOf(n)<0&&Km.call(e,n)&&(r[n]=e[n]);return r},la=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});dT=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};pT=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};Ym=Object.defineProperty,mT=Object.getOwnPropertyDescriptor,hT=(e,t)=>{for(var r in t)Ym(e,r,{get:t[r],enumerable:!0})},Qm=(e,t,r,n)=>{for(var i=n>1?void 0:n?mT(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Ym(t,r,i),i},gT=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}yT=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};ST=(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))(ST||{}),IT=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}},ua=class extends IT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ET=class extends ua{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},kT=class extends ua{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},CT=class extends ua{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},dl=class extends ua{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};da={log:Ei("log"),warn:Ei("warn"),info:Ei("info"),error:Ei("error"),debug:Ei("debug")};Object.assign(globalThis,{logger:da});Bm=Symbol.for("Jolibox.canIUseMap"),AT={};globalThis[Bm]||(globalThis[Bm]=AT);yl=Symbol.for("Jolibox.canIUseMap.native"),PT={};globalThis[yl]||(globalThis[yl]=PT);bl={get config(){return globalThis[yl]}},TT=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(TT||{}),RT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(RT||{}),OT=(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))(OT||{});NT();xn=typeof window=="undefined",DT=()=>!xn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),jV={isiOS:!xn&&(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:!xn&&navigator.userAgent.includes("Android"),isMac:!xn&&navigator.userAgent.includes("Mac"),isFacebook:!xn&&navigator.userAgent.includes("FB_IAB"),isPC:!xn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},_l=class wl{constructor(t){this.element=t,this.next=wl.Undefined,this.prev=wl.Undefined}};_l.Undefined=new _l(void 0);se=_l,qT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},LT=0,ki=class{constructor(e){this.value=e,this.id=LT++}},Ai=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ki&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new ki(t);return this._listeners?this._listeners instanceof ki?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ki)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(l);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ki?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Sl=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new Ai,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new qT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Il={};hT(Il,{None:()=>MT,filter:()=>FT,once:()=>th,toPromise:()=>UT});MT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});pl=Symbol.for("Jolibox.hostEmitter"),jT=()=>{let e=new Sl;return globalThis[pl]||(globalThis[pl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[pl]},GV=jT();El=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ai,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return GT(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};El=Qm([eh],El);Jm=class{constructor(){this._onWillExecuteCommand=new Ai,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ai,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new El,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=vT(3e4)),this._starActivation}executeCommand(e,...t){return gT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Il.toPromise(Il.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Jm=Qm([eh],Jm);BV=Symbol.for("Jolibox.commands");zr("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});zr("requestProductDetailsAsync",{version:102e4});zr("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});zr("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});zr("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});zr("userTrackAsync",{version:1e6});zr("openMiniapp",{version:1050100});rh=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=bl.config[a];if(!c)return!1;let l=(o=t==null?void 0:t())!=null?o:"",d=c.version;if(c.platforms&&l in c.platforms){let p=c.platforms[l];if(p===!1)return!1;typeof p=="number"&&(d=p)}if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(c,s,u)||n(c.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=xT(i,o);if(!s)return!1;if(Pn(s)){let c=s.version;return Gm(c)?typeof a=="number"&&a>=c:!0}return Gm(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};JT=()=>DT(),Ci="custom_event_",HT=[],$T=[],VT=["env","createRequestTask","login"],nh="__batch_event__",WT="__native_batch_event__",zT=e=>e==="pv"?e:"default",sa=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=zT(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&Pn(a))throw new dl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Pn(a))c.push(...Object.keys(a));else if(Xm(a)){if(i.length>0)throw new dl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new dl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);c.forEach(l=>{n[l]||(n[l]={});let d=Pn(a)?a[l]:a;t(n[l],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},$m=!1;gl=[],YT=!1,kl=Symbol.for("Jolibox.invokeResolverInstance"),QT=new Map;globalThis[kl]||(globalThis[kl]=QT);XT={get resolveMap(){return globalThis[kl]}};aa=Symbol.for("Jolibox.subscribeInstance");It={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){It.trigger=e},onDoExit(e){It.exit=e},onDoBackPress(e){It.backPress=e}},oh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new ET("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{It.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>la(void 0,null,function*(){let o=yield It.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Cl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=ih(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:oh,doExit:r};globalThis.joliboxJSCore=ar({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{It.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>la(void 0,null,function*(){let a=yield It.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Cl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=ih(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(c),webviewIds:s}))},call(o,a,s){let c=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(c)return JSON.parse(c)},doBackPress(o){return la(this,null,function*(){let a=yield It.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:oh,doExit:n};globalThis.joliboxJSCore=ar({},i)}ah=Cl;if(!ah&&JT())throw new CT("No joliboxJScore is found, native bridge not found.");nR=ar({},ah),sh=rR(nR),{invokeHandler:Wm}=sh,{applyNative:me,invokeNative:F,onNative:Re,offNative:JV,subscribeHandler:iR,publish:ch,emitNative:Al,subscribe:HV,unsubscribe:$V}=sh;globalThis.joliboxJSBridge={callHandler:Wm,invokeHandler:Wm,subscribeHandler:iR}});function lR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function hh(e){return new Promise(t=>setTimeout(t,e))}function Oi(e){return typeof e=="string"}function Yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function gh(e){return typeof e=="object"&&Array.isArray(e)}function fa(e){return typeof e=="number"&&!isNaN(e)}function xr(e){return e===!0||e===!1}function vh(e){return typeof e=="undefined"}function Ni(e){return vh(e)||e===null}function uR(e){return typeof e=="function"}function yh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function bh(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],c=o[a],l=r(s,c,a,i,o);l!==void 0?i[a]=l:dh(c)&&dh(s)?i[a]=n(fh({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function dh(e){return e&&typeof e=="object"&&e.constructor===Object}function _h(e,t){if(Array.isArray(e))return e.concat(t)}function Di(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:c=!0}=r,l=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,c&&!p&&l()},t),p)return l()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,l()},d}function pR(e,t){return(...r)=>t(e,...r)}function ga(e){return t=>pR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Gt(`${i}`))}})}function xi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function kh(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let c=parseInt(i[s],10)||0,l=parseInt(o[s],10)||0;if(c>l){n=1;break}else if(c<l){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function jl(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function yR(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function Gl(e){return yR("app","stg-app",e)}function Rn(e){return`https://${Gl(e)}`}function SR(e){return new Promise(t=>Ph(e)(t))}function Ph(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function IR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ri(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function kR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)CR(e[n],t[n])}function CR(e,t){if(Oi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(uR(t)){try{if(e instanceof t)return}catch(r){}if(!Ni(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function AR(){return typeof globalThis!="undefined"?globalThis[Th]:void 0}function xR(e){typeof globalThis!="undefined"&&(globalThis[Th]=e)}function Y(e=!1){let t=AR();if(!e&&t)return t;let r=new pa,n=new Nl,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return xR(i),i}var Dl,oR,lh,aR,sR,uh,fh,cR,mh,Kr,nt,dR,ql,qi,Ll,wh,Gt,ma,Sh,ha,Ih,Eh,Li,Ml,Bt,Pl,fR,Ul,ph,mR,J,Fl,hR,Tn,Pi,Mi,gR,vR,Ch,Ah,xh,Rt,Tl,le,bR,_R,Ti,Ri,Jt,Ol,wR,xl,ER,he,pa,Nl,Th,R=C(()=>{"use strict";Dl=Object.defineProperty,oR=Object.getOwnPropertyDescriptor,lh=Object.getOwnPropertySymbols,aR=Object.prototype.hasOwnProperty,sR=Object.prototype.propertyIsEnumerable,uh=(e,t,r)=>t in e?Dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fh=(e,t)=>{for(var r in t||(t={}))aR.call(t,r)&&uh(e,r,t[r]);if(lh)for(var r of lh(t))sR.call(t,r)&&uh(e,r,t[r]);return e},cR=(e,t)=>{for(var r in t)Dl(e,r,{get:t[r],enumerable:!0})},mh=(e,t,r,n)=>{for(var i=n>1?void 0:n?oR(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Dl(t,r,i),i},Kr=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}nt=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};dR=(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))(dR||{}),ql=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}},qi=class extends ql{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Ll=class extends ql{constructor(){super(...arguments),this.kind="USER_ERROR"}},wh=class extends Ll{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Gt=class extends Ll{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},ma=class extends Ll{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Sh=class extends qi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},ha=class extends qi{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Ih=class extends qi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Eh=class extends qi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Li=class extends ql{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},Ml=class extends qi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Bt={log:xi("log"),warn:xi("warn"),info:xi("info"),error:xi("error"),debug:xi("debug")};Object.assign(globalThis,{logger:Bt});Pl=Symbol.for("Jolibox.canIUseMap"),fR={};globalThis[Pl]||(globalThis[Pl]=fR);Ul={get config(){return globalThis[Pl]}},ph=Symbol.for("Jolibox.canIUseMap.native"),mR={};globalThis[ph]||(globalThis[ph]=mR);J=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(J||{}),Fl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Fl||{}),hR=(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))(hR||{}),Tn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});jl();Pi=typeof window=="undefined",Mi={isiOS:!Pi&&(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:!Pi&&navigator.userAgent.includes("Android"),isMac:!Pi&&navigator.userAgent.includes("Mac"),isFacebook:!Pi&&navigator.userAgent.includes("FB_IAB"),isPC:!Pi&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},gR="device_id",vR="advertising_id",Ch=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Tn()),window.__joliboxLocalStorage__.getItem(e)),Ah=()=>new URLSearchParams(window.location.search).get("deviceId")||Ch(gR),xh=()=>new URLSearchParams(window.location.search).get("advertisingId")||Ch(vR);Rt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=fh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return Kr(this,null,function*(){let r=this.config.keyGenerator(e,t),n=this.pendingRequests.get(r);if(n)return console.log(`[RequestCacheService] Reusing pending request for ${e}`),n;let i=this.requestInternal(e,t),o=this.createTimeoutPromise(),a=Promise.race([i,o]).catch(s=>Kr(this,null,function*(){if(s.message.includes("timeout")){let c=this.getValidCachedData(r);if(c)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}throw s}));this.pendingRequests.set(r,a),i.then(s=>{console.log(`[RequestCacheService] Background request completed successfully for ${e}`)}).catch(s=>{console.warn(`[RequestCacheService] Background request failed for ${e}:`,s)});try{return yield a}finally{this.pendingRequests.delete(r)}})}requestInternal(e,t){return Kr(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,c=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",c),c){if(this.requestAdapter.extractRealTimeData&&this.requestAdapter.mergeData)try{let u=yield this.requestAdapter.execute(e,t),p=this.requestAdapter.extractRealTimeData(u),f=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,u);return f&&!this.config.consistencyChecker(c,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(c,p)}catch(u){return console.warn(`[RequestCacheService] Failed to fetch real-time data, using cache only for ${e}:`,u),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let l=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,l);return d&&this.setCachedDataWithSequence(a,d,s),l})}createTimeoutPromise(){return new Promise((e,t)=>{setTimeout(()=>{t(new Error(`[RequestCacheService] Request timeout after ${this.config.timeout/1e3} seconds`))},this.config.timeout)})}getValidCachedData(e){let t=this.cache.get(e);return t?Date.now()>t.expiresAt?(this.cache.delete(e),null):t.data:null}setCachedDataWithSequence(e,t,r,n){let i=this.cache.get(e);if(i&&i.sequence>r){console.log(`[RequestCacheService] Ignoring stale cache update for ${e} (current: ${i.sequence}, incoming: ${r})`);return}let o=Date.now();this.cache.set(e,{data:JSON.parse(JSON.stringify(t)),timestamp:o,expiresAt:o+this.config.duration,key:e,sequence:r,metadata:n}),this.cacheSequences.set(e,r),console.log(`[RequestCacheService] Updated cache for ${e} with sequence ${r}`)}refreshCache(e,t){return Kr(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return Kr(this,null,function*(){var r,n;let i=this.config.keyGenerator(e,t),o=++this.requestSequence;console.log(`[RequestCacheService] Force request for ${e} (sequence: ${o})`);let a=yield this.requestAdapter.execute(e,t),s=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,a);return s&&(this.setCachedDataWithSequence(i,s,o),console.log(`[RequestCacheService] Force updated cache for ${e}`)),a})}warmupCache(e,t){return Kr(this,null,function*(){let r=this.config.keyGenerator(e,t);if(this.pendingRequests.has(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - request in progress`);return}if(this.hasValidCache(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - valid cache exists`);return}try{console.log(`[RequestCacheService] Warming up cache for ${e}`),yield this.forceRequest(e,t)}catch(n){console.warn(`[RequestCacheService] Cache warmup failed for ${e}:`,n)}})}clearCache(e){e?(this.cache.delete(e),this.cacheSequences.delete(e),this.pendingRequests.delete(e),console.log(`[RequestCacheService] Cleared cache for ${e}`)):(this.cache.clear(),this.cacheSequences.clear(),this.pendingRequests.clear(),this.requestSequence=0,console.log("[RequestCacheService] Cleared all cache"))}clearExpiredCache(){let e=Date.now();for(let[t,r]of this.cache)e>r.expiresAt&&(this.cache.delete(t),this.cacheSequences.delete(t));console.log("[RequestCacheService] Cleared expired cache entries")}getCacheStats(){let e=Date.now(),t=0,r=0;for(let n of this.cache.values())e>n.expiresAt?r++:t++;return{cacheCount:this.cache.size,validCount:t,expiredCount:r,pendingRequestCount:this.pendingRequests.size}}getCacheKeys(){return Array.from(this.cache.keys())}hasValidCache(e){let t=this.cache.get(e);return t?Date.now()<=t.expiresAt:!1}getPendingRequestKeys(){return Array.from(this.pendingRequests.keys())}hasPendingRequest(e){return this.pendingRequests.has(e)}getCacheSequence(e){return this.cacheSequences.get(e)}},Tl=class Rl{constructor(t){this.element=t,this.next=Rl.Undefined,this.prev=Rl.Undefined}};Tl.Undefined=new Tl(void 0);le=Tl,bR=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},_R=0,Ti=class{constructor(e){this.value=e,this.id=_R++}},Ri=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof Ti&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new Ti(t);return this._listeners?this._listeners instanceof Ti?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Ti)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(l);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Ti?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Jt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new Ri,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new bR,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Ol={};cR(Ol,{None:()=>wR,filter:()=>IR,once:()=>Ph,toPromise:()=>SR});wR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});xl=Symbol.for("Jolibox.hostEmitter"),ER=()=>{let e=new Jt;return globalThis[xl]||(globalThis[xl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[xl]},he=ER();pa=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ri,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return kR(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};pa=mh([yh],pa);Nl=class{constructor(){this._onWillExecuteCommand=new Ri,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ri,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new pa,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=lR(3e4)),this._starActivation}executeCommand(e,...t){return Kr(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ol.toPromise(Ol.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Nl=mh([yh],Nl);Th=Symbol.for("Jolibox.commands")});function _e(e,t={}){Bl.emit("ERROR_REPORT",{error:e,options:t})}var Bl,Qr,dt=C(()=>{"use strict";R();R();Bl=new Jt,Qr=new Jt;_e.debounce=Di(_e,50,{leading:!0})});var Jl,PR,Rh,Oh,Nh=C(()=>{"use strict";R();dt();Jl=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},PR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Rh=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:Jl(o),payloadJson:Jl(a),signature:Jl(s)}}else throw"joli_source is missing"}catch(r){return _e(new Sh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Oh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=PR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var TR,Hl,Dh=C(()=>{"use strict";R();TR="1.2.9-beta.9",Hl=()=>TR});function Vl(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var RR,qh,$l,Lh,ue,OR,S,B=C(()=>{"use strict";R();Nh();Dh();R();RR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Ah(),adId:xh(),pixelRatio:window.devicePixelRatio||1,platform:Mi.isAndroid?"android":Mi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Hl()},schema:window.location.href,platform:Mi.isAndroid?"android":Mi.isiOS?"ios":"h5"},$l=(qh=globalThis.joliboxJSCore)==null?void 0:qh.env,ue=Object.assign({},(Lh=$l==null?void 0:$l())!=null?Lh:RR);OR=()=>{var g,b,v,w,E,A,P,T,k,G,fe;let{payloadJson:e,headerJson:t,signature:r}=ue.schema.length?Rh(ue.schema):{},n=`${ue.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ue.schema.length?ue.schema:window.location.href).searchParams,a=(v=(b=(g=o.get("mpId"))!=null?g:o.get("appId"))!=null?b:o.get("gameId"))!=null?v:"",s=(A=(E=(w=ue.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?E:o.get("sessionId"))!=null?A:n,c=!!((T=(P=e==null?void 0:e.testAdsMode)!=null?P:e==null?void 0:e.__testAdsMode)!=null?T:o.get("testAdsMode")==="true"),l=(fe=(G=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?G:o.get("joliboxEnv"))!=null?fe:"production",d=l==="staging",u=t==null?void 0:t.channel,f=new URL(window.location.href).searchParams,m=e==null?void 0:e.__shouldInterupt;return{get startTime(){var L;return(L=performance.timeOrigin)!=null?L:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return c},get joliboxEnv(){return l},get joliSource(){var L,O;return(O=(L=f.get("joliSource"))!=null?L:o.get("joliSource"))!=null?O:null},get mpId(){var L;return(L=a!=null?a:e==null?void 0:e.id)!=null?L:""},get mpVersion(){var L;return(L=t==null?void 0:t.ver)!=null?L:Hl()},get mpType(){var L,O;return(O=(L=t==null?void 0:t.__mpType)!=null?L:e==null?void 0:e.__mpType)!=null?O:"game"},get platform(){var L;return((L=ue.platform)!=null?L:ue.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ue.deviceInfo},get sdkInfo(){return ue.sdkInfo},get hostInfo(){return ue.hostInfo},get hostUserInfo(){return ue.hostUserInfo},get sessionId(){var L,O;return(O=(L=ue.clientSessionId)!=null?L:s)!=null?O:n},get channel(){return u},get webviewId(){var L;return(L=ue.webviewId)!=null?L:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Gl(d)},get adId(){var L;return(L=ue.deviceInfo.adId)!=null?L:ue.deviceInfo.did},get language(){return ue.deviceInfo.lang},get sdkEnvironment(){return Vl("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Vl("gamedistribution","jolibox")?"gamedistribution":Vl("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var Ue,jt,An;let L=(Ue=ue.deviceInfo.pixelRatio)!=null?Ue:1,O=(jt=ue.deviceInfo.statusBarHeight)!=null?jt:e==null?void 0:e.__androidStatusBarHeight,be=(An=ue.deviceInfo.navigationBarHeight)!=null?An:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:O!==void 0?O/L:20,navigationBarHeight:be!==void 0?be/L:10}},get abTests(){var L,O;return(O=(L=ue.abValues)==null?void 0:L.split(","))!=null?O:[]},get mpInfo(){var L;return(L=ue.mpInfo)!=null?L:{mpName:"unknown"}},onEnvConfigChanged:L=>{bh(ue,L,_h)},encodeJoliSourceQuery:L=>{var O,be;return t&&r?Oh(x(x({},e),L),(O=o.get("joliSource"))!=null?O:""):(be=o.get("joliSource"))!=null?be:""},setDoExitDirectly:()=>{m=!1}}},S=OR()});var Wl,Uh,NR,DR,Mh,qR,Fh=C(()=>{"use strict";R();dt();B();R();Wl=!1,Uh=(e,t)=>e==null?!1:t in e,NR=e=>Uh(e,"kind"),DR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Mh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:DR(e.name)},i=U(x({},n),{env:t.environment,isFromUser:r});r?Qr.emit("GLOBAL_USER_ERROR",e,i):Qr.emit("GLOBAL_ERROR",e,i)},qR=e=>Uh(e,"kind")&&e.kind==="USER_ERROR";Bl.on("ERROR_REPORT",({error:e,options:t})=>{if(Wl)return;Wl=!0;let r=NR(e)&&e.raw?e.raw:e;try{let n=qR(e);Mh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Ml(`${i}, origin error: ${r.message}`);Bt.error(o),Mh(new Ml(o.message),{environment:t.environment},!1)}finally{Wl=!1}})});var Et,zl,Xr=C(()=>{"use strict";dt();R();dt();Et=(e,t)=>{var r,n;return new Li((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},zl=e=>new wh(e)});var jh=C(()=>{"use strict";Fh();Xr();R();ce();Qr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:r})});Qr.on("GLOBAL_USER_ERROR",(e,t)=>{Bt.log("UserError",e,t)})});var Kl=C(()=>{"use strict"});function Gh(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=$e(l,["eventType"]),c=U(x({tag:n,eventType:o!=null?o:a!=null?a:J.Other},t),{extra:x({},s)});n=="globalJsError"?_e(new Eh(JSON.stringify(c))):e("systemLog",c,S.webviewId)};return r.debounce=Di(r,500,{leading:!0}),r}function Bh(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=Di(t,500,{leading:!0}),t}var Jh=C(()=>{"use strict";R();R();dt();B()});function Hh(e,t){let r=Gh(e,t),n=Bh(r);return{track:r,trackPerformance:n}}var $h=C(()=>{"use strict";Jh()});var Vh=C(()=>{"use strict";B();R();R()});var Wh=C(()=>{"use strict";$h();Kl();Vh()});var va,zh=C(()=>{"use strict";va=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(t)});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},c=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},l=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?l():c())});let p=this.visible;return{start(){o||(o=!0,p?l():c())},stop(){o=!1,d(),u()}}}}});function ya(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Rn(S.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Re("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:b}=f,v=$e(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:b}=m,v=$e(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Bt.warn("onRequestTaskStateChange unknown event",u)}),he.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>y(this,[f,...m],function*(u,p={}){let g=Date.now(),b=LR(u,U(x({},p),{baseUrl:i})),{method:v="GET",responseType:w="text",dataType:E="json",timeout:A,enableCache:P=!1,appendHostCookie:T=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),G={url:b,method:v,header:k,enableCache:P,responseType:w,appendHostCookie:T};if(v=="POST"||v=="PUT"){let Ue=UR(p.data,k["content-type"]);G.data=Ue}A&&Object.assign(G,{timeout:A});let{data:{requestTaskId:fe}}=F(e,G);if(typeof fe!="string")throw Et({code:-1,msg:"requestTaskId is not a string"});let{resolve:L,reject:O,promise:be}=new nt;n.set(fe,{resolve:L,reject:O});try{let Ue=yield be,{data:jt}=Ue;return E==="json"&&typeof jt=="string"&&(jt=MR(jt)),{url:b,timeout:A,method:v,response:U(x({},Ue),{data:jt})}}catch(Ue){let jt=Ue;if(Yr(jt)){let{errMsg:An,prefetchDetail:MV,isPrefetch:UV,errNo:QP}=jt;Oi(An)&&_e(Et({code:-1,msg:An},{errNo:QP,errMsg:An}))}throw Ue}})}function MR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function UR(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var LR,Yl=C(()=>{"use strict";R();ce();dt();Xr();B();LR=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var Ql,Kh,Z,pt=C(()=>{"use strict";Yl();B();R();Ql={};(Kh=S.hostUserInfo)!=null&&Kh.token&&(Ql["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Ql["x-joli-source"]=S.joliSource);Z=ya("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Rn(S.testMode),defaultHeaders:Ql})});function Yh(e){let t=Ul.config[e];return t||(t={},Ul.config[e]=t),(r,n)=>{if(t[r]){Bt.warn(`[can i use] ${r} already registered`);return}t[r]=x({},n)}}var Qh=C(()=>{"use strict";R()});function Xl(e){Xh=e}function ba(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>ba(t)):Object.keys(e).reduce((t,r)=>(t[r]=ba(e[r]),t),{})}function sr(e){return typeof e=="number"}function Zl(e){let t=eu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function eu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Xh,Ee,_a,wa,Sa,Ia,On,Ea,ka,Ca,Aa,xa,Pa,Ta,Ra,Oa,Na,Da,qa,tu=C(()=>{"use strict";Xh=!1;Ee=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Xh)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${Zl(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return ba(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:ba(this._default)}optional(){return this._optional=!0,this}};_a=class extends Ee{validate(t){return this._optional&&t===void 0?!0:sr(t)?sr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):sr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):sr(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},wa=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Sa=class extends Ee{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(sr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(sr(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},Ia=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},On=class extends Ee{validate(t){return!0}},Ea=class extends Ee{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},ka=class extends Ee{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ca=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Aa=class extends Ee{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${Zl(t)}`)}return!0}},xa=class extends Ee{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(sr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(sr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(sr(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},Pa=class extends Ee{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(eu(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let c=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}"]`,!(c===void 0&&o._optional)){if(c===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(c)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},Ta=class extends Ee{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(eu(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},Ra=class extends Ee{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Zl(this.value),actual:r}):!0}},Oa=class extends Ee{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
2
+ or `);this.errors.push(o)}return n}},Na=class extends Ee{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},Da=class extends Ee{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},qa=class extends Ee{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function ru(e,t,r="param"){if(e.errors=[],e.path=r,Xl(!0),!e.validate(t)){let n=e.errors.join(`
3
+ `);throw e.errors.length=0,Xl(!1),new TypeError(n)}}var I,nu=C(()=>{"use strict";tu();tu();I={object(e){return new Ta(e)},array(e){return new xa(e)},tuple(...e){return new Na(...e)},literal(e){return new Ra(e)},or(...e){return new Oa(...e)},symbol(){return new Ia},record(e){return new Pa(e)},function(){return new Ca},boolean(){return new wa},string(){return new Sa},number(){return new _a},undefined(){return new Ea},null(){return new ka},unknown(){return new On},any(){return new On},as(){return new On},arraybuffer(){return new Da},enum(...e){return new Aa(...e)},typedarray(e){return new qa(e)}}});var La,Zh,eg=C(()=>{"use strict";R();dt();nu();Xr();La=1,Zh=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:La};La+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{ru(i.paramsSchema,o,"params")}catch(w){throw zl(`${n}:fail ${w.message}`)}let g=i.implement(...o),b=g,v=`${n}:ok`;if(g&&"code"in g){let{code:w,data:E,message:A}=g;c=w,b=E,v=A}return{code:c,message:v,data:b}}catch(g){let b=g;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,c="FAILURE";let v=(m=(f=b.message)!=null?f:b.errMsg)!=null?m:`${g}`;return l=`${n}:${c} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,_e(new Li(l,d)),{code:c,message:l}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>y(this,null,function*(){var p,f,m,g;let a=gh(o)?o:[o],s=Date.now(),c={method:n,trace_id:La};La+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{ru(i.paramsSchema,a,"params")}catch(w){throw zl(w.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:w,data:E,message:A}=v;d=w,l=A,v=E}return Object.assign(u,{code:d,message:l,data:v}),u}catch(b){let v=b,w=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let E=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${b}`,A=`${n}:${d} ${E.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),_e(new Li(A,w)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function iu(e){if(typeof e!="number"||e<=0)return"0.0.0";let t=e.toString(),r=0,n=0,i=0;return t.length>=1&&(r=parseInt(t.substring(0,1),10)),t.length>=3&&(n=parseInt(t.substring(1,3),10)),t.length>=5&&(i=parseInt(t.substring(3,5),10)),`${r}.${n}.${i}`}var tg=C(()=>{"use strict"});var ne,H,M,ft,Ve=C(()=>{"use strict";Qh();kt();eg();nu();ce();B();tg();({createAPI:ne,createSyncAPI:H}=Zh(j)),M=Yh("native"),{canIUseNative:ft}=rh(()=>S.sdkInfo.nativeSDKVersionCode,()=>S.platform)});function rg(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),HR.includes(t)?t:""}function ng(e,t){try{switch(t){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(r){return""}}function ig(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var Ma,jR,GR,BR,JR,vz,yz,HR,Pr,mt,Ui=C(()=>{"use strict";Ve();ce();R();pt();B();Ma=Y(),jR=ne("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return y(this,null,function*(){let{response:t}=yield Z(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield me("getLocalStorageAsync",{key:e}),s=ng(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});Ma.registerCommand("StorageSDK.getItem",jR);M("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});GR=ne("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return y(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield Z(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=rg(t),c=ig(t,s);return yield me("setLocalStorageAsync",{key:e,data:c,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Ma.registerCommand("StorageSDK.setItem",GR);M("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});BR=ne("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return y(this,null,function*(){let t=S.mpId,{response:r}=yield Z(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield me("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Ma.registerCommand("StorageSDK.removeItem",BR);M("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});JR=ne("clearStorage",{implement(){return y(this,null,function*(){let e=S.mpId,{response:t}=yield Z(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});me("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Ma.registerCommand("StorageSDK.clear",JR);M("storage.clear",{version:"1.0.0"});vz=ne("getStorageInfo",{implement(){return y(this,null,function*(){let{data:e}=yield me("getStorageInfoAsync");return e})}});M("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});yz=H("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),HR=["string","number","boolean","object",""];Pr=ne("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return y(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield me("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:ng(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),mt=ne("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return y(this,null,function*(){try{let r=rg(t),n=ig(t,r);return yield me("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var og,Ua,ag=C(()=>{"use strict";B();zh();R();pt();ce();Ui();og="REPORT_FIRST_OPEN_GAME",Ua=class extends va{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=Rn(S.testMode)+"/api/base/app-event"}reporter(t){return y(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:x({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield S.platform==="android"?Z("/api/base/app-event",{method:"POST",data:o}):me("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return y(this,null,function*(){let{event:r,params:n}=t;yield me("userTrackAsync",{event:r,params:x({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){Pr(og).then(t=>{xr(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),mt(og,!0)})}}});var dg={};Fm(dg,{nativeTaskEmitter:()=>Fi,taskTracker:()=>Ot,track:()=>j,trackPerformance:()=>lg});var $R,sg,cg,j,lg,ug,Fi,Ot,kt=C(()=>{"use strict";jh();R();Kl();Wh();B();ag();ce();$R=(e,t,r)=>{var l,d,u,p,f,m,g;let n=t,i=Yr(n.extra)?n.extra:Oi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=S.mpInfo)!=null?l:{},s=x(x(U(x({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:S.sessionId,user_id:(f=(p=S.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),c=(m=n.eventType)!=null?m:J.Other;F("trackAsync",{event:(g=t.tag)!=null?g:e,data:s,webviewId:r,eventType:c})},{track:j,trackPerformance:lg}=Hh($R,{type:Fl.AppSDK,platform:"native",jssdk_version:(cg=(sg=S.sdkInfo)==null?void 0:sg.jssdkVersion)!=null?cg:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),ug=Y();ug.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{lg(e,t,r)});ug.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});Fi=new Jt,Ot=new Ua(j,Fi)});function pg(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
4
4
  html[data-jolibox-root] {
5
5
  height: 100%;
6
6
  margin: 0;
@@ -18,14 +18,14 @@ or `);this.errors.push(o)}return n}},pa=class extends we{constructor(...t){super
18
18
  min-height: 100dvh;
19
19
  }
20
20
  }
21
- `;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return _(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var Hm=C(()=>{"use strict";B()});var $m=C(()=>{"use strict"});var Vm=C(()=>{"use strict";P();wc()});var Wm=C(()=>{"use strict";B()});var ba,jc=C(()=>{"use strict";$m();Vm();B();Wm();P();ba=new Dt});function Zt(e,t){for(var r in t)e[r]=t[r];return e}function Vc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Sa.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Ia(e,a,n,i,null)}function Ia(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Qm:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function De(e){return e.children}function ct(e,t){this.props=e,this.context=t}function vn(e,t){if(t==null)return e.__?vn(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?vn(e):null}function ng(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return ng(e)}}function Jc(e){(!e.__d&&(e.__d=!0)&&zr.push(e)&&!Ea.__r++||zm!==N.debounceRendering)&&((zm=N.debounceRendering)||Xm)(Ea)}function Ea(){for(var e,t,r,n,i,o,a,s=1;zr.length;)zr.length>s&&zr.sort(Zm),e=zr.shift(),s=zr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Zt({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),Wc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?vn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ag(o,r,a),r.__e!=i&&ng(r)));Ea.__r=0}function ig(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,v,y,g=n&&n.__k||rg,w=t.length;for(l=dR(r,t,g,l,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Ii:g[f.__i]||Ii,f.__i=u,y=Wc(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&zc(p.ref,null,f),d.push(f.ref,f.__c||m,f)),v==null&&m!=null&&(v=m),4&f.__u||p.__k===f.__k?l=og(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=v,l}function dR(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Ia(null,a,null,null,null):Ei(a)?Ia(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ia(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=pR(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=vn(s)),lg(s,s));return n}function og(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=og(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=vn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Si(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ei(e)?e.some(function(r){Si(r,t)}):t.push(e)),t}function pR(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Km(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||uR.test(t)?r:r+"px"}function wa(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Km(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Km(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(eg,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=$c,e.addEventListener(t,o?Bc:Gc,o)):e.removeEventListener(t,o?Bc:Gc,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Ym(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=$c++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function Wc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,v,y,g,w,S,A,R,T,k,O,G,Ye,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof M=="function")try{if(g=t.props,w="prototype"in M&&M.prototype.render,S=(d=M.contextType)&&n[d.__c],A=d?S?S.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new M(g,A):(t.__c=u=new ct(g,A),u.constructor=M,u.render=hR),S&&S.sub(u),u.props=g,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Zt({},u.__s)),Zt(u.__s,M.getDerivedStateFromProps(g,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&M.getDerivedStateFromProps==null&&g!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(g,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Pe){Pe&&(Pe.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,A),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,v)})}if(u.context=A,u.props=g,u.__P=e,u.__e=!1,T=N.__r,k=0,w){for(u.state=u.__s,u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,u.getChildContext!=null&&(n=Zt(Zt({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),G=d,d!=null&&d.type===De&&d.key==null&&(G=sg(d.props.children)),s=ig(e,Ei(G)?G:[G],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(Pe){if(t.__v=null,l||o!=null)if(Pe.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ye=o.length;Ye--;)Vc(o[Ye]);else t.__e=r.__e,t.__k=r.__k;N.__e(Pe,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=fR(r.__e,t,r,n,i,o,a,l,c);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function ag(e,t,r){for(var n=0;n<r.length;n++)zc(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function sg(e){return typeof e!="object"||e==null?e:Ei(e)?e.map(sg):Zt({},e)}function fR(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,v,y=r.props,g=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(w==null)return document.createTextNode(g);e=document.createElementNS(i,w,g.is&&g),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(w===null)y===g||s&&e.data===g||(e.data=g);else{if(o=o&&Sa.call(e.childNodes),y=r.props||Ii,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in g)){if(c=="value"&&"defaultValue"in g||c=="checked"&&"defaultChecked"in g)continue;wa(e,c,null,f,i)}}for(c in g)f=g[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?v=f:s&&typeof f!="function"||y[c]===f||wa(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),ig(t.type==="template"?e.content:e,Ei(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&vn(r,0),s,l),o!=null)for(c=o.length;c--;)Vc(o[c]);s||(c="value",w=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||w=="progress"&&!m||w=="option"&&m!==y[c])&&wa(e,c,m,y[c],i),c="checked",v!==void 0&&v!==e[c]&&wa(e,c,v,y[c],i))}return e}function zc(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function lg(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||zc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&lg(n[i],t,r||typeof e.type!="function");r||Vc(e.__e),e.__c=e.__=e.__e=void 0}function hR(e,t,r){return this.constructor(e,r)}function kr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Wc(t,e=(!n&&r||t).__k=Je(De,null,[e]),i||Ii,Ii,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Sa.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),ag(o,e,a)}function Kr(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,Jc(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+tg++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Sa,N,Qm,Hc,zr,zm,Xm,Zm,eg,$c,Gc,Bc,tg,Ii,rg,uR,Ei,yn=C(()=>{Ii={},rg=[],uR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ei=Array.isArray;Sa=rg.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Qm=0,Hc=function(e){return e!=null&&e.constructor==null},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Zt({},this.state),typeof e=="function"&&(e=e(Zt({},r),this.props)),e&&Zt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Jc(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Jc(this))},ct.prototype.render=De,zr=[],Xm=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zm=function(e,t){return e.__v.__b-t.__v.__b},Ea.__r=0,eg=/(PointerCapture)$|Capture$/i,$c=0,Gc=Ym(!1),Bc=Ym(!0),tg=0});var fe=h((pz,cg)=>{"use strict";cg.exports=function(e){try{return!!e()}catch(t){return!0}}});var _n=h((fz,ug)=>{"use strict";var mR=fe();ug.exports=!mR(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ie=h((hz,fg)=>{"use strict";var dg=_n(),pg=Function.prototype,Kc=pg.call,gR=dg&&pg.bind.bind(Kc,Kc);fg.exports=dg?gR:function(e){return function(){return Kc.apply(e,arguments)}}});var Xe=h((mz,hg)=>{"use strict";var vR=Ie();hg.exports=vR({}.isPrototypeOf)});var he=h((Yc,mg)=>{"use strict";var ki=function(e){return e&&e.Math===Math&&e};mg.exports=ki(typeof globalThis=="object"&&globalThis)||ki(typeof window=="object"&&window)||ki(typeof self=="object"&&self)||ki(typeof global=="object"&&global)||ki(typeof Yc=="object"&&Yc)||function(){return this}()||Function("return this")()});var Qc=h((gz,_g)=>{"use strict";var yR=_n(),yg=Function.prototype,gg=yg.apply,vg=yg.call;_g.exports=typeof Reflect=="object"&&Reflect.apply||(yR?vg.bind(gg):function(){return vg.apply(gg,arguments)})});var er=h((vz,wg)=>{"use strict";var bg=Ie(),_R=bg({}.toString),bR=bg("".slice);wg.exports=function(e){return bR(_R(e),8,-1)}});var Ci=h((yz,Ig)=>{"use strict";var wR=er(),IR=Ie();Ig.exports=function(e){if(wR(e)==="Function")return IR(e)}});var Le=h((_z,Eg)=>{"use strict";var Xc=typeof document=="object"&&document.all;Eg.exports=typeof Xc=="undefined"&&Xc!==void 0?function(e){return typeof e=="function"||e===Xc}:function(e){return typeof e=="function"}});var Ze=h((bz,Sg)=>{"use strict";var ER=fe();Sg.exports=!ER(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var St=h((wz,kg)=>{"use strict";var SR=_n(),ka=Function.prototype.call;kg.exports=SR?ka.bind(ka):function(){return ka.apply(ka,arguments)}});var Zc=h(xg=>{"use strict";var Cg={}.propertyIsEnumerable,Ag=Object.getOwnPropertyDescriptor,kR=Ag&&!Cg.call({1:2},1);xg.f=kR?function(t){var r=Ag(this,t);return!!r&&r.enumerable}:Cg});var Ai=h((Ez,Tg)=>{"use strict";Tg.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Ca=h((Sz,Og)=>{"use strict";var CR=Ie(),AR=fe(),xR=er(),eu=Object,TR=CR("".split);Og.exports=AR(function(){return!eu("z").propertyIsEnumerable(0)})?function(e){return xR(e)==="String"?TR(e,""):eu(e)}:eu});var Yr=h((kz,Rg)=>{"use strict";Rg.exports=function(e){return e==null}});var Qr=h((Cz,Pg)=>{"use strict";var OR=Yr(),RR=TypeError;Pg.exports=function(e){if(OR(e))throw new RR("Can't call method on "+e);return e}});var Cr=h((Az,Ng)=>{"use strict";var PR=Ca(),NR=Qr();Ng.exports=function(e){return PR(NR(e))}});var xe=h((xz,Dg)=>{"use strict";var DR=Le();Dg.exports=function(e){return typeof e=="object"?e!==null:DR(e)}});var qt=h((Tz,Lg)=>{"use strict";Lg.exports={}});var bn=h((Oz,Mg)=>{"use strict";var tu=qt(),ru=he(),LR=Le(),qg=function(e){return LR(e)?e:void 0};Mg.exports=function(e,t){return arguments.length<2?qg(tu[e])||qg(ru[e]):tu[e]&&tu[e][t]||ru[e]&&ru[e][t]}});var Aa=h((Rz,jg)=>{"use strict";var qR=he(),Ug=qR.navigator,Fg=Ug&&Ug.userAgent;jg.exports=Fg?String(Fg):""});var Ta=h((Pz,Vg)=>{"use strict";var $g=he(),nu=Aa(),Gg=$g.process,Bg=$g.Deno,Jg=Gg&&Gg.versions||Bg&&Bg.version,Hg=Jg&&Jg.v8,kt,xa;Hg&&(kt=Hg.split("."),xa=kt[0]>0&&kt[0]<4?1:+(kt[0]+kt[1]));!xa&&nu&&(kt=nu.match(/Edge\/(\d+)/),(!kt||kt[1]>=74)&&(kt=nu.match(/Chrome\/(\d+)/),kt&&(xa=+kt[1])));Vg.exports=xa});var iu=h((Nz,zg)=>{"use strict";var Wg=Ta(),MR=fe(),UR=he(),FR=UR.String;zg.exports=!!Object.getOwnPropertySymbols&&!MR(function(){var e=Symbol("symbol detection");return!FR(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Wg&&Wg<41})});var ou=h((Dz,Kg)=>{"use strict";var jR=iu();Kg.exports=jR&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var au=h((Lz,Yg)=>{"use strict";var GR=bn(),BR=Le(),JR=Xe(),HR=ou(),$R=Object;Yg.exports=HR?function(e){return typeof e=="symbol"}:function(e){var t=GR("Symbol");return BR(t)&&JR(t.prototype,$R(e))}});var xi=h((qz,Qg)=>{"use strict";var VR=String;Qg.exports=function(e){try{return VR(e)}catch(t){return"Object"}}});var Xr=h((Mz,Xg)=>{"use strict";var WR=Le(),zR=xi(),KR=TypeError;Xg.exports=function(e){if(WR(e))return e;throw new KR(zR(e)+" is not a function")}});var Oa=h((Uz,Zg)=>{"use strict";var YR=Xr(),QR=Yr();Zg.exports=function(e,t){var r=e[t];return QR(r)?void 0:YR(r)}});var tv=h((Fz,ev)=>{"use strict";var su=St(),lu=Le(),cu=xe(),XR=TypeError;ev.exports=function(e,t){var r,n;if(t==="string"&&lu(r=e.toString)&&!cu(n=su(r,e))||lu(r=e.valueOf)&&!cu(n=su(r,e))||t!=="string"&&lu(r=e.toString)&&!cu(n=su(r,e)))return n;throw new XR("Can't convert object to primitive value")}});var wn=h((jz,rv)=>{"use strict";rv.exports=!0});var ov=h((Gz,iv)=>{"use strict";var nv=he(),ZR=Object.defineProperty;iv.exports=function(e,t){try{ZR(nv,e,{value:t,configurable:!0,writable:!0})}catch(r){nv[e]=t}return t}});var Ti=h((Bz,lv)=>{"use strict";var eP=wn(),tP=he(),rP=ov(),av="__core-js_shared__",sv=lv.exports=tP[av]||rP(av,{});(sv.versions||(sv.versions=[])).push({version:"3.41.0",mode:eP?"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 uu=h((Jz,uv)=>{"use strict";var cv=Ti();uv.exports=function(e,t){return cv[e]||(cv[e]=t||{})}});var In=h((Hz,dv)=>{"use strict";var nP=Qr(),iP=Object;dv.exports=function(e){return iP(nP(e))}});var ut=h(($z,pv)=>{"use strict";var oP=Ie(),aP=In(),sP=oP({}.hasOwnProperty);pv.exports=Object.hasOwn||function(t,r){return sP(aP(t),r)}});var Ra=h((Vz,fv)=>{"use strict";var lP=Ie(),cP=0,uP=Math.random(),dP=lP(1 .toString);fv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+dP(++cP+uP,36)}});var He=h((Wz,mv)=>{"use strict";var pP=he(),fP=uu(),hv=ut(),hP=Ra(),mP=iu(),gP=ou(),En=pP.Symbol,du=fP("wks"),vP=gP?En.for||En:En&&En.withoutSetter||hP;mv.exports=function(e){return hv(du,e)||(du[e]=mP&&hv(En,e)?En[e]:vP("Symbol."+e)),du[e]}});var _v=h((zz,yv)=>{"use strict";var yP=St(),gv=xe(),vv=au(),_P=Oa(),bP=tv(),wP=He(),IP=TypeError,EP=wP("toPrimitive");yv.exports=function(e,t){if(!gv(e)||vv(e))return e;var r=_P(e,EP),n;if(r){if(t===void 0&&(t="default"),n=yP(r,e,t),!gv(n)||vv(n))return n;throw new IP("Can't convert object to primitive value")}return t===void 0&&(t="number"),bP(e,t)}});var pu=h((Kz,bv)=>{"use strict";var SP=_v(),kP=au();bv.exports=function(e){var t=SP(e,"string");return kP(t)?t:t+""}});var hu=h((Yz,Iv)=>{"use strict";var CP=he(),wv=xe(),fu=CP.document,AP=wv(fu)&&wv(fu.createElement);Iv.exports=function(e){return AP?fu.createElement(e):{}}});var mu=h((Qz,Ev)=>{"use strict";var xP=Ze(),TP=fe(),OP=hu();Ev.exports=!xP&&!TP(function(){return Object.defineProperty(OP("div"),"a",{get:function(){return 7}}).a!==7})});var gu=h(kv=>{"use strict";var RP=Ze(),PP=St(),NP=Zc(),DP=Ai(),LP=Cr(),qP=pu(),MP=ut(),UP=mu(),Sv=Object.getOwnPropertyDescriptor;kv.f=RP?Sv:function(t,r){if(t=LP(t),r=qP(r),UP)try{return Sv(t,r)}catch(n){}if(MP(t,r))return DP(!PP(NP.f,t,r),t[r])}});var Av=h((Zz,Cv)=>{"use strict";var FP=fe(),jP=Le(),GP=/#|\.prototype\./,Oi=function(e,t){var r=JP[BP(e)];return r===$P?!0:r===HP?!1:jP(t)?FP(t):!!t},BP=Oi.normalize=function(e){return String(e).replace(GP,".").toLowerCase()},JP=Oi.data={},HP=Oi.NATIVE="N",$P=Oi.POLYFILL="P";Cv.exports=Oi});var Ri=h((e6,Tv)=>{"use strict";var xv=Ci(),VP=Xr(),WP=_n(),zP=xv(xv.bind);Tv.exports=function(e,t){return VP(e),t===void 0?e:WP?zP(e,t):function(){return e.apply(t,arguments)}}});var vu=h((t6,Ov)=>{"use strict";var KP=Ze(),YP=fe();Ov.exports=KP&&YP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var tr=h((r6,Rv)=>{"use strict";var QP=xe(),XP=String,ZP=TypeError;Rv.exports=function(e){if(QP(e))return e;throw new ZP(XP(e)+" is not an object")}});var rr=h(Nv=>{"use strict";var e1=Ze(),t1=mu(),r1=vu(),Pa=tr(),Pv=pu(),n1=TypeError,yu=Object.defineProperty,i1=Object.getOwnPropertyDescriptor,_u="enumerable",bu="configurable",wu="writable";Nv.f=e1?r1?function(t,r,n){if(Pa(t),r=Pv(r),Pa(n),typeof t=="function"&&r==="prototype"&&"value"in n&&wu in n&&!n[wu]){var i=i1(t,r);i&&i[wu]&&(t[r]=n.value,n={configurable:bu in n?n[bu]:i[bu],enumerable:_u in n?n[_u]:i[_u],writable:!1})}return yu(t,r,n)}:yu:function(t,r,n){if(Pa(t),r=Pv(r),Pa(n),t1)try{return yu(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new n1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Zr=h((i6,Dv)=>{"use strict";var o1=Ze(),a1=rr(),s1=Ai();Dv.exports=o1?function(e,t,r){return a1.f(e,t,s1(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((o6,qv)=>{"use strict";var Pi=he(),l1=Qc(),c1=Ci(),u1=Le(),d1=gu().f,p1=Av(),Sn=qt(),f1=Ri(),kn=Zr(),Lv=ut();Ti();var h1=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return l1(e,this,arguments)};return t.prototype=e.prototype,t};qv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Pi:i?Pi[r]:Pi[r]&&Pi[r].prototype,s=n?Sn:Sn[r]||kn(Sn,r,{})[r],l=s.prototype,c,d,u,p,f,m,v,y,g;for(p in t)c=p1(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Lv(a,p),m=s[p],d&&(e.dontCallGetSet?(g=d1(a,p),v=g&&g.value):v=a[p]),f=d&&v?v:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=f1(f,Pi):e.wrap&&d?y=h1(f):o&&u1(f)?y=c1(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&kn(y,"sham",!0),kn(s,p,y),o&&(u=r+"Prototype",Lv(Sn,u)||kn(Sn,u,{}),kn(Sn[u],p,f),e.real&&l&&(c||!l[p])&&kn(l,p,f)))}});var Uv=h((a6,Mv)=>{"use strict";var m1=Math.ceil,g1=Math.floor;Mv.exports=Math.trunc||function(t){var r=+t;return(r>0?g1:m1)(r)}});var Ni=h((s6,Fv)=>{"use strict";var v1=Uv();Fv.exports=function(e){var t=+e;return t!==t||t===0?0:v1(t)}});var Iu=h((l6,jv)=>{"use strict";var y1=Ni(),_1=Math.min;jv.exports=function(e){var t=y1(e);return t>0?_1(t,9007199254740991):0}});var Cn=h((c6,Gv)=>{"use strict";var b1=Iu();Gv.exports=function(e){return b1(e.length)}});var Di=h((u6,Bv)=>{"use strict";var w1=er();Bv.exports=Array.isArray||function(t){return w1(t)==="Array"}});var Na=h((d6,Hv)=>{"use strict";var I1=He(),E1=I1("toStringTag"),Jv={};Jv[E1]="z";Hv.exports=String(Jv)==="[object z]"});var An=h((p6,$v)=>{"use strict";var S1=Na(),k1=Le(),Da=er(),C1=He(),A1=C1("toStringTag"),x1=Object,T1=Da(function(){return arguments}())==="Arguments",O1=function(e,t){try{return e[t]}catch(r){}};$v.exports=S1?Da:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=O1(t=x1(e),A1))=="string"?r:T1?Da(t):(n=Da(t))==="Object"&&k1(t.callee)?"Arguments":n}});var Wv=h((f6,Vv)=>{"use strict";var R1=Ie(),P1=Le(),Eu=Ti(),N1=R1(Function.toString);P1(Eu.inspectSource)||(Eu.inspectSource=function(e){return N1(e)});Vv.exports=Eu.inspectSource});var ku=h((h6,Xv)=>{"use strict";var D1=Ie(),L1=fe(),zv=Le(),q1=An(),M1=bn(),U1=Wv(),Kv=function(){},Yv=M1("Reflect","construct"),Su=/^\s*(?:class|function)\b/,F1=D1(Su.exec),j1=!Su.test(Kv),Li=function(t){if(!zv(t))return!1;try{return Yv(Kv,[],t),!0}catch(r){return!1}},Qv=function(t){if(!zv(t))return!1;switch(q1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return j1||!!F1(Su,U1(t))}catch(r){return!0}};Qv.sham=!0;Xv.exports=!Yv||L1(function(){var e;return Li(Li.call)||!Li(Object)||!Li(function(){e=!0})||e})?Qv:Li});var ry=h((m6,ty)=>{"use strict";var Zv=Di(),G1=ku(),B1=xe(),J1=He(),H1=J1("species"),ey=Array;ty.exports=function(e){var t;return Zv(e)&&(t=e.constructor,G1(t)&&(t===ey||Zv(t.prototype))?t=void 0:B1(t)&&(t=t[H1],t===null&&(t=void 0))),t===void 0?ey:t}});var Cu=h((g6,ny)=>{"use strict";var $1=ry();ny.exports=function(e,t){return new($1(e))(t===0?0:t)}});var xr=h((v6,oy)=>{"use strict";var V1=Ri(),W1=Ie(),z1=Ca(),K1=In(),Y1=Cn(),Q1=Cu(),iy=W1([].push),Ar=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=K1(l),f=z1(p),m=Y1(f),v=V1(c,d),y=0,g=u||Q1,w=t?g(l,m):r||a?g(l,0):void 0,S,A;m>y;y++)if((s||y in f)&&(S=f[y],A=v(S,y,p),e))if(t)w[y]=A;else if(A)switch(e){case 3:return!0;case 5:return S;case 6:return y;case 2:iy(w,S)}else switch(e){case 4:return!1;case 7:iy(w,S)}return o?-1:n||i?i:w}};oy.exports={forEach:Ar(0),map:Ar(1),filter:Ar(2),some:Ar(3),every:Ar(4),find:Ar(5),findIndex:Ar(6),filterReject:Ar(7)}});var qi=h((y6,ay)=>{"use strict";var X1=fe(),Z1=He(),eN=Ta(),tN=Z1("species");ay.exports=function(e){return eN>=51||!X1(function(){var t=[],r=t.constructor={};return r[tN]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var sy=h(()=>{"use strict";var rN=Z(),nN=xr().filter,iN=qi(),oN=iN("filter");rN({target:"Array",proto:!0,forced:!oN},{filter:function(t){return nN(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=h((w6,ly)=>{"use strict";var aN=he(),sN=qt();ly.exports=function(e,t){var r=sN[e+"Prototype"],n=r&&r[t];if(n)return n;var i=aN[e],o=i&&i.prototype;return o&&o[t]}});var uy=h((I6,cy)=>{"use strict";sy();var lN=_t();cy.exports=lN("Array","filter")});var py=h((E6,dy)=>{"use strict";var cN=Xe(),uN=uy(),Au=Array.prototype;dy.exports=function(e){var t=e.filter;return e===Au||cN(Au,e)&&t===Au.filter?uN:t}});var hy=h((S6,fy)=>{"use strict";var dN=py();fy.exports=dN});var gy=h((k6,my)=>{my.exports=hy()});var Mi=h((C6,vy)=>{"use strict";var pN=fe();vy.exports=function(e,t){var r=[][e];return!!r&&pN(function(){r.call(null,t||function(){return 1},1)})}});var yy=h(()=>{"use strict";var fN=Z(),hN=xr().every,mN=Mi(),gN=mN("every");fN({target:"Array",proto:!0,forced:!gN},{every:function(t){return hN(this,t,arguments.length>1?arguments[1]:void 0)}})});var by=h((T6,_y)=>{"use strict";yy();var vN=_t();_y.exports=vN("Array","every")});var Iy=h((O6,wy)=>{"use strict";var yN=Xe(),_N=by(),xu=Array.prototype;wy.exports=function(e){var t=e.every;return e===xu||yN(xu,e)&&t===xu.every?_N:t}});var Sy=h((R6,Ey)=>{"use strict";var bN=Iy();Ey.exports=bN});var Cy=h((P6,ky)=>{ky.exports=Sy()});var xy=h((N6,Ay)=>{"use strict";var wN=xr().forEach,IN=Mi(),EN=IN("forEach");Ay.exports=EN?[].forEach:function(t){return wN(this,t,arguments.length>1?arguments[1]:void 0)}});var Oy=h(()=>{"use strict";var SN=Z(),Ty=xy();SN({target:"Array",proto:!0,forced:[].forEach!==Ty},{forEach:Ty})});var Py=h((q6,Ry)=>{"use strict";Oy();var kN=_t();Ry.exports=kN("Array","forEach")});var Dy=h((M6,Ny)=>{"use strict";var CN=Py();Ny.exports=CN});var Ly=h(()=>{});var My=h((j6,qy)=>{"use strict";var AN=An(),xN=ut(),TN=Xe(),ON=Dy();Ly();var Tu=Array.prototype,RN={DOMTokenList:!0,NodeList:!0};qy.exports=function(e){var t=e.forEach;return e===Tu||TN(Tu,e)&&t===Tu.forEach||xN(RN,AN(e))?ON:t}});var Fy=h((G6,Uy)=>{Uy.exports=My()});var Gy=h((B6,jy)=>{"use strict";var PN=TypeError,NN=9007199254740991;jy.exports=function(e){if(e>NN)throw PN("Maximum allowed index exceeded");return e}});var Ou=h((J6,By)=>{"use strict";var DN=Ze(),LN=rr(),qN=Ai();By.exports=function(e,t,r){DN?LN.f(e,t,qN(0,r)):e[t]=r}});var Vy=h(()=>{"use strict";var MN=Z(),UN=fe(),FN=Di(),jN=xe(),GN=In(),BN=Cn(),Jy=Gy(),Hy=Ou(),JN=Cu(),HN=qi(),$N=He(),VN=Ta(),$y=$N("isConcatSpreadable"),WN=VN>=51||!UN(function(){var e=[];return e[$y]=!1,e.concat()[0]!==e}),zN=function(e){if(!jN(e))return!1;var t=e[$y];return t!==void 0?!!t:FN(e)},KN=!WN||!HN("concat");MN({target:"Array",proto:!0,arity:1,forced:KN},{concat:function(t){var r=GN(this),n=JN(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],zN(c))for(l=BN(c),Jy(i+l),a=0;a<l;a++,i++)a in c&&Hy(n,i,c[a]);else Jy(i+1),Hy(n,i++,c);return n.length=i,n}})});var zy=h((V6,Wy)=>{"use strict";Vy();var YN=_t();Wy.exports=YN("Array","concat")});var Yy=h((W6,Ky)=>{"use strict";var QN=Xe(),XN=zy(),Ru=Array.prototype;Ky.exports=function(e){var t=e.concat;return e===Ru||QN(Ru,e)&&t===Ru.concat?XN:t}});var Xy=h((z6,Qy)=>{"use strict";var ZN=Yy();Qy.exports=ZN});var e_=h((K6,Zy)=>{Zy.exports=Xy()});var t_=h(()=>{"use strict";var eD=Z(),tD=xr().some,rD=Mi(),nD=rD("some");eD({target:"Array",proto:!0,forced:!nD},{some:function(t){return tD(this,t,arguments.length>1?arguments[1]:void 0)}})});var n_=h((X6,r_)=>{"use strict";t_();var iD=_t();r_.exports=iD("Array","some")});var o_=h((Z6,i_)=>{"use strict";var oD=Xe(),aD=n_(),Pu=Array.prototype;i_.exports=function(e){var t=e.some;return e===Pu||oD(Pu,e)&&t===Pu.some?aD:t}});var s_=h((e8,a_)=>{"use strict";var sD=o_();a_.exports=sD});var c_=h((t8,l_)=>{l_.exports=s_()});var d_=h((r8,u_)=>{"use strict";var Ui=he(),lD=Aa(),cD=er(),La=function(e){return lD.slice(0,e.length)===e};u_.exports=function(){return La("Bun/")?"BUN":La("Cloudflare-Workers")?"CLOUDFLARE":La("Deno/")?"DENO":La("Node.js/")?"NODE":Ui.Bun&&typeof Bun.version=="string"?"BUN":Ui.Deno&&typeof Deno.version=="object"?"DENO":cD(Ui.process)==="process"?"NODE":Ui.window&&Ui.document?"BROWSER":"REST"}()});var Fi=h((n8,p_)=>{"use strict";var uD=Ie();p_.exports=uD([].slice)});var h_=h((i8,f_)=>{"use strict";var dD=TypeError;f_.exports=function(e,t){if(e<t)throw new dD("Not enough arguments");return e}});var Nu=h((o8,g_)=>{"use strict";var m_=he(),pD=Qc(),fD=Le(),hD=d_(),mD=Aa(),gD=Fi(),vD=h_(),yD=m_.Function,_D=/MSIE .\./.test(mD)||hD==="BUN"&&function(){var e=m_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();g_.exports=function(e,t){var r=t?2:1;return _D?function(n,i){var o=vD(arguments.length,1)>r,a=fD(n)?n:yD(n),s=o?gD(arguments,r):[],l=o?function(){pD(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var __=h(()=>{"use strict";var bD=Z(),y_=he(),wD=Nu(),v_=wD(y_.setInterval,!0);bD({global:!0,bind:!0,forced:y_.setInterval!==v_},{setInterval:v_})});var I_=h(()=>{"use strict";var ID=Z(),w_=he(),ED=Nu(),b_=ED(w_.setTimeout,!0);ID({global:!0,bind:!0,forced:w_.setTimeout!==b_},{setTimeout:b_})});var E_=h(()=>{"use strict";__();I_()});var k_=h((p8,S_)=>{"use strict";E_();var SD=qt();S_.exports=SD.setTimeout});var A_=h((f8,C_)=>{C_.exports=k_()});function Gi(e,t){ge.__h&&ge.__h(oe,e,ji||t),ji=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ma(e){return ji=1,M_(U_,e)}function M_(e,t,r){var n=Gi(en++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):U_(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Bi(e,t){var r=Gi(en++,3);!ge.__s&&qu(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function xn(e,t){var r=Gi(en++,4);!ge.__s&&qu(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function Ji(e){return ji=5,Hi(function(){return{current:e}},[])}function Hi(e,t){var r=Gi(en++,7);return qu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Tn(e,t){return ji=8,Hi(function(){return e},t)}function On(e){var t=oe.context[e.__c],r=Gi(en++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function kD(){for(var e;e=q_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qa),e.__H.__h.forEach(Lu),e.__H.__h=[]}catch(t){e.__H.__h=[],ge.__e(t,e.__v)}}function CD(e){var t,r=function(){clearTimeout(n),L_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);L_&&(t=requestAnimationFrame(r))}function qa(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function Lu(e){var t=oe;e.__c=e.__(),oe=t}function qu(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function U_(e,t){return typeof t=="function"?t(e):t}var en,oe,Du,x_,ji,q_,ge,T_,O_,R_,P_,N_,D_,L_,Mu=C(()=>{yn();ji=0,q_=[],ge=N,T_=ge.__b,O_=ge.__r,R_=ge.diffed,P_=ge.__c,N_=ge.unmount,D_=ge.__;ge.__b=function(e){oe=null,T_&&T_(e)},ge.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),D_&&D_(e,t)},ge.__r=function(e){O_&&O_(e),en=0;var t=(oe=e.__c).__H;t&&(Du===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(qa),t.__h.forEach(Lu),t.__h=[],en=0)),Du=oe},ge.diffed=function(e){R_&&R_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(q_.push(t)!==1&&x_===ge.requestAnimationFrame||((x_=ge.requestAnimationFrame)||CD)(kD)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Du=oe=null},ge.__c=function(e,t){t.some(function(r){try{r.__h.forEach(qa),r.__h=r.__h.filter(function(n){return!n.__||Lu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ge.__e(n,r.__v)}}),P_&&P_(e,t)},ge.unmount=function(e){N_&&N_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{qa(n)}catch(i){t=i}}),r.__H=void 0,t&&ge.__e(t,r.__v))};L_=typeof requestAnimationFrame=="function"});function z_(e,t){for(var r in t)e[r]=t[r];return e}function Fu(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function F_(e,t){this.props=e,this.context=t}function Gu(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:Fu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Bu(e){function t(r){var n=z_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=AD,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function K_(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=z_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return K_(n,t,r)})),e}function Y_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Y_(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Uu(){this.__u=0,this.o=null,this.__b=null}function Q_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ua(){this.i=null,this.l=null}function Ju(e,t,r){return t.__k==null&&(t.textContent=""),kr(e,t),typeof r=="function"&&r(),e?e.__c:null}function LD(){}function qD(){return this.cancelBubble}function MD(){return this.defaultPrevented}var ju,j_,AD,xD,G_,B_,TD,OD,RD,PD,ND,DD,J_,X_,UD,H_,$_,V_,Fa=C(()=>{yn();yn();Mu();Mu();ju=xn;(F_.prototype=new ct).isPureReactComponent=!0,F_.prototype.shouldComponentUpdate=function(e,t){return Fu(this.props,e)||Fu(this.state,t)};j_=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),j_&&j_(e)};AD=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;xD=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}xD(e,t,r,n)};G_=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),G_&&G_(e)},(Uu.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Q_(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Y_(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Uu.prototype.componentWillUnmount=function(){this.o=[]},Uu.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=K_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Je(De,null,e.fallback);return i&&(i.__u&=-33),[Je(De,null,t.__a?null:e.children),i]};B_=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(Ua.prototype=new ct).__a=function(e){var t=this,r=Q_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),B_(t,e,n)):i()};r?r(o):o()}},Ua.prototype.render=function(e){this.i=null,this.l=new Map;var t=Si(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Ua.prototype.componentDidUpdate=Ua.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){B_(e,r,t)})};TD=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,OD=/^(?: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]/,RD=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,PD=/[A-Z0-9]/g,ND=typeof document!="undefined",DD=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});J_=N.event;N.event=function(e){return J_&&(e=J_(e)),e.persist=LD,e.isPropagationStopped=qD,e.isDefaultPrevented=MD,e.nativeEvent=e};UD={enumerable:!1,configurable:!0,get:function(){return this.class}},H_=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||ND&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||DD(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":RD.test(a)&&(a=l):l=a="oninput":o&&OD.test(a)?a=a.replace(PD,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Si(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Si(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",UD)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=TD,H_&&H_(e)};$_=N.__r;N.__r=function(e){$_&&$_(e),X_=e.__c};V_=N.diffed;N.diffed=function(e){V_&&V_(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),X_=null}});var $u=h(()=>{"use strict";var jD=Z(),Hu=he();jD({global:!0,forced:Hu.globalThis!==Hu},{globalThis:Hu})});var Z_=h(()=>{"use strict";$u()});var tb=h((T8,eb)=>{"use strict";$u();eb.exports=he()});var nb=h((O8,rb)=>{"use strict";var GD=tb();rb.exports=GD});var ob=h((R8,ib)=>{"use strict";var BD=nb();ib.exports=BD});var sb=h((P8,ab)=>{"use strict";Z_();var JD=ob();ab.exports=JD});var cb=h((N8,lb)=>{"use strict";lb.exports=sb()});var db=h((D8,ub)=>{ub.exports=cb()});var pb=h(()=>{"use strict";var HD=Z(),$D=Di();HD({target:"Array",stat:!0},{isArray:$D})});var hb=h((M8,fb)=>{"use strict";pb();var VD=qt();fb.exports=VD.Array.isArray});var gb=h((U8,mb)=>{"use strict";var WD=hb();mb.exports=WD});var yb=h((F8,vb)=>{vb.exports=gb()});var bb=h((j8,_b)=>{"use strict";_b.exports=function(){}});var tn=h((G8,wb)=>{"use strict";wb.exports={}});var Vu=h((B8,Eb)=>{"use strict";var zD=he(),KD=Le(),Ib=zD.WeakMap;Eb.exports=KD(Ib)&&/native code/.test(String(Ib))});var ja=h((J8,kb)=>{"use strict";var YD=uu(),QD=Ra(),Sb=YD("keys");kb.exports=function(e){return Sb[e]||(Sb[e]=QD(e))}});var $i=h((H8,Cb)=>{"use strict";Cb.exports={}});var nn=h(($8,Tb)=>{"use strict";var XD=Vu(),xb=he(),ZD=xe(),eL=Zr(),Wu=ut(),zu=Ti(),tL=ja(),rL=$i(),Ab="Object already initialized",Ku=xb.TypeError,nL=xb.WeakMap,Ga,Vi,Ba,iL=function(e){return Ba(e)?Vi(e):Ga(e,{})},oL=function(e){return function(t){var r;if(!ZD(t)||(r=Vi(t)).type!==e)throw new Ku("Incompatible receiver, "+e+" required");return r}};XD||zu.state?(Ct=zu.state||(zu.state=new nL),Ct.get=Ct.get,Ct.has=Ct.has,Ct.set=Ct.set,Ga=function(e,t){if(Ct.has(e))throw new Ku(Ab);return t.facade=e,Ct.set(e,t),t},Vi=function(e){return Ct.get(e)||{}},Ba=function(e){return Ct.has(e)}):(rn=tL("state"),rL[rn]=!0,Ga=function(e,t){if(Wu(e,rn))throw new Ku(Ab);return t.facade=e,eL(e,rn,t),t},Vi=function(e){return Wu(e,rn)?e[rn]:{}},Ba=function(e){return Wu(e,rn)});var Ct,rn;Tb.exports={set:Ga,get:Vi,has:Ba,enforce:iL,getterFor:oL}});var Xu=h((V8,Rb)=>{"use strict";var Yu=Ze(),aL=ut(),Ob=Function.prototype,sL=Yu&&Object.getOwnPropertyDescriptor,Qu=aL(Ob,"name"),lL=Qu&&(function(){}).name==="something",cL=Qu&&(!Yu||Yu&&sL(Ob,"name").configurable);Rb.exports={EXISTS:Qu,PROPER:lL,CONFIGURABLE:cL}});var Zu=h((W8,Pb)=>{"use strict";var uL=Ni(),dL=Math.max,pL=Math.min;Pb.exports=function(e,t){var r=uL(e);return r<0?dL(r+t,0):pL(r,t)}});var ed=h((z8,Db)=>{"use strict";var fL=Cr(),hL=Zu(),mL=Cn(),Nb=function(e){return function(t,r,n){var i=fL(t),o=mL(i);if(o===0)return!e&&-1;var a=hL(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};Db.exports={includes:Nb(!0),indexOf:Nb(!1)}});var rd=h((K8,qb)=>{"use strict";var gL=Ie(),td=ut(),vL=Cr(),yL=ed().indexOf,_L=$i(),Lb=gL([].push);qb.exports=function(e,t){var r=vL(e),n=0,i=[],o;for(o in r)!td(_L,o)&&td(r,o)&&Lb(i,o);for(;t.length>n;)td(r,o=t[n++])&&(~yL(i,o)||Lb(i,o));return i}});var Ja=h((Y8,Mb)=>{"use strict";Mb.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nd=h((Q8,Ub)=>{"use strict";var bL=rd(),wL=Ja();Ub.exports=Object.keys||function(t){return bL(t,wL)}});var jb=h(Fb=>{"use strict";var IL=Ze(),EL=vu(),SL=rr(),kL=tr(),CL=Cr(),AL=nd();Fb.f=IL&&!EL?Object.defineProperties:function(t,r){kL(t);for(var n=CL(r),i=AL(r),o=i.length,a=0,s;o>a;)SL.f(t,s=i[a++],n[s]);return t}});var Bb=h((Z8,Gb)=>{"use strict";var xL=bn();Gb.exports=xL("document","documentElement")});var Wi=h((eK,Kb)=>{"use strict";var TL=tr(),OL=jb(),Jb=Ja(),RL=$i(),PL=Bb(),NL=hu(),DL=ja(),Hb=">",$b="<",od="prototype",ad="script",Wb=DL("IE_PROTO"),id=function(){},zb=function(e){return $b+ad+Hb+e+$b+"/"+ad+Hb},Vb=function(e){e.write(zb("")),e.close();var t=e.parentWindow.Object;return e=null,t},LL=function(){var e=NL("iframe"),t="java"+ad+":",r;return e.style.display="none",PL.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(zb("document.F=Object")),r.close(),r.F},Ha,$a=function(){try{Ha=new ActiveXObject("htmlfile")}catch(t){}$a=typeof document!="undefined"?document.domain&&Ha?Vb(Ha):LL():Vb(Ha);for(var e=Jb.length;e--;)delete $a[od][Jb[e]];return $a()};RL[Wb]=!0;Kb.exports=Object.create||function(t,r){var n;return t!==null?(id[od]=TL(t),n=new id,id[od]=null,n[Wb]=t):n=$a(),r===void 0?n:OL.f(n,r)}});var Qb=h((tK,Yb)=>{"use strict";var qL=fe();Yb.exports=!qL(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ld=h((rK,Zb)=>{"use strict";var ML=ut(),UL=Le(),FL=In(),jL=ja(),GL=Qb(),Xb=jL("IE_PROTO"),sd=Object,BL=sd.prototype;Zb.exports=GL?sd.getPrototypeOf:function(e){var t=FL(e);if(ML(t,Xb))return t[Xb];var r=t.constructor;return UL(r)&&t instanceof r?r.prototype:t instanceof sd?BL:null}});var Va=h((nK,ew)=>{"use strict";var JL=Zr();ew.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:JL(e,t,r),e}});var pd=h((iK,nw)=>{"use strict";var HL=fe(),$L=Le(),VL=xe(),WL=Wi(),tw=ld(),zL=Va(),KL=He(),YL=wn(),dd=KL("iterator"),rw=!1,nr,cd,ud;[].keys&&(ud=[].keys(),"next"in ud?(cd=tw(tw(ud)),cd!==Object.prototype&&(nr=cd)):rw=!0);var QL=!VL(nr)||HL(function(){var e={};return nr[dd].call(e)!==e});QL?nr={}:YL&&(nr=WL(nr));$L(nr[dd])||zL(nr,dd,function(){return this});nw.exports={IteratorPrototype:nr,BUGGY_SAFARI_ITERATORS:rw}});var ow=h((oK,iw)=>{"use strict";var XL=Na(),ZL=An();iw.exports=XL?{}.toString:function(){return"[object "+ZL(this)+"]"}});var zi=h((aK,sw)=>{"use strict";var eq=Na(),tq=rr().f,rq=Zr(),nq=ut(),iq=ow(),oq=He(),aw=oq("toStringTag");sw.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(nq(i,aw)||tq(i,aw,{configurable:!0,value:t}),n&&!eq&&rq(i,"toString",iq))}});var cw=h((sK,lw)=>{"use strict";var aq=pd().IteratorPrototype,sq=Wi(),lq=Ai(),cq=zi(),uq=tn(),dq=function(){return this};lw.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=sq(aq,{next:lq(+!n,r)}),cq(e,i,!1,!0),uq[i]=dq,e}});var dw=h((lK,uw)=>{"use strict";var pq=Ie(),fq=Xr();uw.exports=function(e,t,r){try{return pq(fq(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var fw=h((cK,pw)=>{"use strict";var hq=xe();pw.exports=function(e){return hq(e)||e===null}});var mw=h((uK,hw)=>{"use strict";var mq=fw(),gq=String,vq=TypeError;hw.exports=function(e){if(mq(e))return e;throw new vq("Can't set "+gq(e)+" as a prototype")}});var vw=h((dK,gw)=>{"use strict";var yq=dw(),_q=xe(),bq=Qr(),wq=mw();gw.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=yq(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return bq(i),wq(o),_q(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ka=h((pK,Aw)=>{"use strict";var Iq=Z(),Eq=St(),Wa=wn(),kw=Xu(),Sq=Le(),kq=cw(),yw=ld(),_w=vw(),Cq=zi(),Aq=Zr(),fd=Va(),xq=He(),bw=tn(),Cw=pd(),Tq=kw.PROPER,Oq=kw.CONFIGURABLE,ww=Cw.IteratorPrototype,za=Cw.BUGGY_SAFARI_ITERATORS,Ki=xq("iterator"),Iw="keys",Yi="values",Ew="entries",Sw=function(){return this};Aw.exports=function(e,t,r,n,i,o,a){kq(r,t,n);var s=function(g){if(g===i&&p)return p;if(!za&&g&&g in d)return d[g];switch(g){case Iw:return function(){return new r(this,g)};case Yi:return function(){return new r(this,g)};case Ew:return function(){return new r(this,g)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Ki]||d["@@iterator"]||i&&d[i],p=!za&&u||s(i),f=t==="Array"&&d.entries||u,m,v,y;if(f&&(m=yw(f.call(new e)),m!==Object.prototype&&m.next&&(!Wa&&yw(m)!==ww&&(_w?_w(m,ww):Sq(m[Ki])||fd(m,Ki,Sw)),Cq(m,l,!0,!0),Wa&&(bw[l]=Sw))),Tq&&i===Yi&&u&&u.name!==Yi&&(!Wa&&Oq?Aq(d,"name",Yi):(c=!0,p=function(){return Eq(u,this)})),i)if(v={values:s(Yi),keys:o?p:s(Iw),entries:s(Ew)},a)for(y in v)(za||c||!(y in d))&&fd(d,y,v[y]);else Iq({target:t,proto:!0,forced:za||c},v);return(!Wa||a)&&d[Ki]!==p&&fd(d,Ki,p,{name:i}),bw[t]=p,v}});var Ya=h((fK,xw)=>{"use strict";xw.exports=function(e,t){return{value:e,done:t}}});var Xa=h((hK,Nw)=>{"use strict";var Rq=Cr(),hd=bb(),Tw=tn(),Rw=nn(),Pq=rr().f,Nq=Ka(),Qa=Ya(),Dq=wn(),Lq=Ze(),Pw="Array Iterator",qq=Rw.set,Mq=Rw.getterFor(Pw);Nw.exports=Nq(Array,"Array",function(e,t){qq(this,{type:Pw,target:Rq(e),index:0,kind:t})},function(){var e=Mq(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Qa(void 0,!0);switch(e.kind){case"keys":return Qa(r,!1);case"values":return Qa(t[r],!1)}return Qa([r,t[r]],!1)},"values");var Ow=Tw.Arguments=Tw.Array;hd("keys");hd("values");hd("entries");if(!Dq&&Lq&&Ow.name!=="values")try{Pq(Ow,"name",{value:"values"})}catch(e){}});var md=h(()=>{});var gd=h((vK,Dw)=>{"use strict";var Uq=fe();Dw.exports=!Uq(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Za=h((yK,Lw)=>{"use strict";var Fq=Va();Lw.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:Fq(e,n,t[n],r);return e}});var vd=h(qw=>{"use strict";var jq=rd(),Gq=Ja(),Bq=Gq.concat("length","prototype");qw.f=Object.getOwnPropertyNames||function(t){return jq(t,Bq)}});var jw=h((bK,Fw)=>{"use strict";var Jq=er(),Hq=Cr(),Mw=vd().f,$q=Fi(),Uw=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vq=function(e){try{return Mw(e)}catch(t){return $q(Uw)}};Fw.exports.f=function(t){return Uw&&Jq(t)==="Window"?Vq(t):Mw(Hq(t))}});var Bw=h((wK,Gw)=>{"use strict";var Wq=fe();Gw.exports=Wq(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var $w=h((IK,Hw)=>{"use strict";var zq=fe(),Kq=xe(),Yq=er(),Jw=Bw(),es=Object.isExtensible,Qq=zq(function(){es(1)});Hw.exports=Qq||Jw?function(t){return!Kq(t)||Jw&&Yq(t)==="ArrayBuffer"?!1:es?es(t):!0}:es});var Qi=h((EK,zw)=>{"use strict";var Xq=Z(),Zq=Ie(),eM=$i(),tM=xe(),yd=ut(),rM=rr().f,Vw=vd(),nM=jw(),_d=$w(),iM=Ra(),oM=gd(),Ww=!1,ir=iM("meta"),aM=0,bd=function(e){rM(e,ir,{value:{objectID:"O"+aM++,weakData:{}}})},sM=function(e,t){if(!tM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!yd(e,ir)){if(!_d(e))return"F";if(!t)return"E";bd(e)}return e[ir].objectID},lM=function(e,t){if(!yd(e,ir)){if(!_d(e))return!0;if(!t)return!1;bd(e)}return e[ir].weakData},cM=function(e){return oM&&Ww&&_d(e)&&!yd(e,ir)&&bd(e),e},uM=function(){dM.enable=function(){},Ww=!0;var e=Vw.f,t=Zq([].splice),r={};r[ir]=1,e(r).length&&(Vw.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===ir){t(i,o,1);break}return i},Xq({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nM.f}))},dM=zw.exports={enable:uM,fastKey:sM,getWeakData:lM,onFreeze:cM};eM[ir]=!0});var Yw=h((SK,Kw)=>{"use strict";var pM=He(),fM=tn(),hM=pM("iterator"),mM=Array.prototype;Kw.exports=function(e){return e!==void 0&&(fM.Array===e||mM[hM]===e)}});var wd=h((kK,Xw)=>{"use strict";var gM=An(),Qw=Oa(),vM=Yr(),yM=tn(),_M=He(),bM=_M("iterator");Xw.exports=function(e){if(!vM(e))return Qw(e,bM)||Qw(e,"@@iterator")||yM[gM(e)]}});var eI=h((CK,Zw)=>{"use strict";var wM=St(),IM=Xr(),EM=tr(),SM=xi(),kM=wd(),CM=TypeError;Zw.exports=function(e,t){var r=arguments.length<2?kM(e):t;if(IM(r))return EM(wM(r,e));throw new CM(SM(e)+" is not iterable")}});var ts=h((AK,rI)=>{"use strict";var AM=St(),tI=tr(),xM=Oa();rI.exports=function(e,t,r){var n,i;tI(e);try{if(n=xM(e,"return"),!n){if(t==="throw")throw r;return r}n=AM(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return tI(n),r}});var ns=h((xK,aI)=>{"use strict";var TM=Ri(),OM=St(),RM=tr(),PM=xi(),NM=Yw(),DM=Cn(),nI=Xe(),LM=eI(),qM=wd(),iI=ts(),MM=TypeError,rs=function(e,t){this.stopped=e,this.result=t},oI=rs.prototype;aI.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=TM(t,n),c,d,u,p,f,m,v,y=function(w){return c&&iI(c,"normal",w),new rs(!0,w)},g=function(w){return i?(RM(w),s?l(w[0],w[1],y):l(w[0],w[1])):s?l(w,y):l(w)};if(o)c=e.iterator;else if(a)c=e;else{if(d=qM(e),!d)throw new MM(PM(e)+" is not iterable");if(NM(d)){for(u=0,p=DM(e);p>u;u++)if(f=g(e[u]),f&&nI(oI,f))return f;return new rs(!1)}c=LM(e,d)}for(m=o?e.next:c.next;!(v=OM(m,c)).done;){try{f=g(v.value)}catch(w){iI(c,"throw",w)}if(typeof f=="object"&&f&&nI(oI,f))return f}return new rs(!1)}});var is=h((TK,sI)=>{"use strict";var UM=Xe(),FM=TypeError;sI.exports=function(e,t){if(UM(t,e))return e;throw new FM("Incorrect invocation")}});var Id=h((OK,cI)=>{"use strict";var jM=Z(),GM=he(),BM=Qi(),JM=fe(),HM=Zr(),$M=ns(),VM=is(),WM=Le(),zM=xe(),KM=Yr(),YM=zi(),QM=rr().f,XM=xr().forEach,ZM=Ze(),lI=nn(),eU=lI.set,tU=lI.getterFor;cI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=GM[e],s=a&&a.prototype,l={},c;if(!ZM||!WM(a)||!(i||s.forEach&&!JM(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),BM.enable();else{c=t(function(p,f){eU(VM(p,d),{type:e,collection:new a}),KM(f)||$M(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=tU(e);XM(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&HM(d,p,function(m,v){var y=u(this).collection;if(!f&&i&&!zM(m))return p==="get"?void 0:!1;var g=y[p](m===0?0:m,v);return f?this:g})}),i||QM(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return YM(c,e,!1,!0),l[e]=c,jM({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var gI=h((RK,mI)=>{"use strict";var rU=Ie(),uI=Za(),os=Qi().getWeakData,nU=is(),iU=tr(),oU=Yr(),Ed=xe(),aU=ns(),pI=xr(),dI=ut(),fI=nn(),sU=fI.set,lU=fI.getterFor,cU=pI.find,uU=pI.findIndex,dU=rU([].splice),pU=0,as=function(e){return e.frozen||(e.frozen=new hI)},hI=function(){this.entries=[]},Sd=function(e,t){return cU(e.entries,function(r){return r[0]===t})};hI.prototype={get:function(e){var t=Sd(this,e);if(t)return t[1]},has:function(e){return!!Sd(this,e)},set:function(e,t){var r=Sd(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=uU(this.entries,function(r){return r[0]===e});return~t&&dU(this.entries,t,1),!!~t}};mI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){nU(l,o),sU(l,{type:t,id:pU++,frozen:null}),oU(c)||aU(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=lU(t),s=function(l,c,d){var u=a(l),p=os(iU(c),!0);return p===!0?as(u).set(c,d):p[u.id]=d,l};return uI(o,{delete:function(l){var c=a(this);if(!Ed(l))return!1;var d=os(l);return d===!0?as(c).delete(l):d&&dI(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Ed(c))return!1;var u=os(c);return u===!0?as(d).has(c):u&&dI(u,d.id)}}),uI(o,r?{get:function(c){var d=a(this);if(Ed(c)){var u=os(c);if(u===!0)return as(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var SI=h(()=>{"use strict";var fU=gd(),vI=he(),us=Ie(),yI=Za(),hU=Qi(),mU=Id(),_I=gI(),ss=xe(),ls=nn().enforce,gU=fe(),vU=Vu(),eo=Object,yU=Array.isArray,cs=eo.isExtensible,bI=eo.isFrozen,_U=eo.isSealed,wI=eo.freeze,bU=eo.seal,wU=!vI.ActiveXObject&&"ActiveXObject"in vI,Xi,II=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},EI=mU("WeakMap",II,_I),Rn=EI.prototype,ds=us(Rn.set),IU=function(){return fU&&gU(function(){var e=wI([]);return ds(new EI,e,1),!bI(e)})};vU&&(wU?(Xi=_I.getConstructor(II,"WeakMap",!0),hU.enable(),kd=us(Rn.delete),Zi=us(Rn.has),Cd=us(Rn.get),yI(Rn,{delete:function(e){if(ss(e)&&!cs(e)){var t=ls(this);return t.frozen||(t.frozen=new Xi),kd(this,e)||t.frozen.delete(e)}return kd(this,e)},has:function(t){if(ss(t)&&!cs(t)){var r=ls(this);return r.frozen||(r.frozen=new Xi),Zi(this,t)||r.frozen.has(t)}return Zi(this,t)},get:function(t){if(ss(t)&&!cs(t)){var r=ls(this);return r.frozen||(r.frozen=new Xi),Zi(this,t)?Cd(this,t):r.frozen.get(t)}return Cd(this,t)},set:function(t,r){if(ss(t)&&!cs(t)){var n=ls(this);n.frozen||(n.frozen=new Xi),Zi(this,t)?ds(this,t,r):n.frozen.set(t,r)}else ds(this,t,r);return this}})):IU()&&yI(Rn,{set:function(t,r){var n;return yU(t)&&(bI(t)?n=wI:_U(t)&&(n=bU)),ds(this,t,r),n&&n(t),this}}));var kd,Zi,Cd});var kI=h(()=>{"use strict";SI()});var AI=h((qK,CI)=>{"use strict";Xa();md();kI();var EU=qt();CI.exports=EU.WeakMap});var TI=h((MK,xI)=>{"use strict";xI.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 Ad=h(()=>{"use strict";Xa();var SU=TI(),kU=he(),CU=zi(),OI=tn();for(ps in SU)CU(kU[ps],ps),OI[ps]=OI.Array;var ps});var PI=h((jK,RI)=>{"use strict";var AU=AI();Ad();RI.exports=AU});var DI=h((GK,NI)=>{NI.exports=PI()});var qI=h(()=>{"use strict";var xU=Z(),TU=Ci(),OU=ed().indexOf,RU=Mi(),xd=TU([].indexOf),LI=!!xd&&1/xd([1],1,-0)<0,PU=LI||!RU("indexOf");xU({target:"Array",proto:!0,forced:PU},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return LI?xd(this,t,r)||0:OU(this,t,r)}})});var UI=h((HK,MI)=>{"use strict";qI();var NU=_t();MI.exports=NU("Array","indexOf")});var jI=h(($K,FI)=>{"use strict";var DU=Xe(),LU=UI(),Td=Array.prototype;FI.exports=function(e){var t=e.indexOf;return e===Td||DU(Td,e)&&t===Td.indexOf?LU:t}});var BI=h((VK,GI)=>{"use strict";var qU=jI();GI.exports=qU});var HI=h((WK,JI)=>{JI.exports=BI()});var $I=h(()=>{"use strict";var MU=Z(),UU=xr().map,FU=qi(),jU=FU("map");MU({target:"Array",proto:!0,forced:!jU},{map:function(t){return UU(this,t,arguments.length>1?arguments[1]:void 0)}})});var WI=h((YK,VI)=>{"use strict";$I();var GU=_t();VI.exports=GU("Array","map")});var KI=h((QK,zI)=>{"use strict";var BU=Xe(),JU=WI(),Od=Array.prototype;zI.exports=function(e){var t=e.map;return e===Od||BU(Od,e)&&t===Od.map?JU:t}});var QI=h((XK,YI)=>{"use strict";var HU=KI();YI.exports=HU});var ZI=h((ZK,XI)=>{XI.exports=QI()});var e0=h(()=>{"use strict";var $U=Z(),VU=Ze(),WU=Wi();$U({target:"Object",stat:!0,sham:!VU},{create:WU})});var r0=h((r7,t0)=>{"use strict";e0();var zU=qt(),KU=zU.Object;t0.exports=function(t,r){return KU.create(t,r)}});var i0=h((n7,n0)=>{"use strict";var YU=r0();n0.exports=YU});var a0=h((i7,o0)=>{o0.exports=i0()});var Rd=h((o7,s0)=>{"use strict";var QU=rr();s0.exports=function(e,t,r){return QU.f(e,t,r)}});var u0=h((a7,c0)=>{"use strict";var XU=bn(),ZU=Rd(),eF=He(),tF=Ze(),l0=eF("species");c0.exports=function(e){var t=XU(e);tF&&t&&!t[l0]&&ZU(t,l0,{configurable:!0,get:function(){return this}})}});var v0=h((s7,g0)=>{"use strict";var d0=Wi(),rF=Rd(),p0=Za(),nF=Ri(),iF=is(),oF=Yr(),aF=ns(),sF=Ka(),fs=Ya(),lF=u0(),to=Ze(),f0=Qi().fastKey,m0=nn(),h0=m0.set,Pd=m0.getterFor;g0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){iF(c,o),h0(c,{type:t,index:d0(null),first:null,last:null,size:0}),to||(c.size=0),oF(d)||aF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=Pd(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,v;return f?f.value=u:(p.last=f={index:v=f0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),to?p.size++:c.size++,v!=="F"&&(p.index[v]=f)),c},l=function(c,d){var u=a(c),p=f0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return p0(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=d0(null),to?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),to?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=nF(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),p0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),to&&rF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Pd(t),o=Pd(n);sF(e,t,function(a,s){h0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,fs(void 0,!0)):fs(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),lF(t)}}});var y0=h(()=>{"use strict";var cF=Id(),uF=v0();cF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},uF)});var _0=h(()=>{"use strict";y0()});var Tr=h((p7,b0)=>{"use strict";var dF=xi(),pF=TypeError;b0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new pF(dF(e)+" is not a set")}});var I0=h((f7,w0)=>{"use strict";w0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Or=h((h7,S0)=>{"use strict";var fF=bn(),Nd=I0(),E0=fF("Set"),hF=E0.prototype;S0.exports={Set:E0,add:Nd("add",1),has:Nd("has",1),remove:Nd("delete",1),proto:hF}});var Rr=h((m7,k0)=>{"use strict";var mF=St();k0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=mF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Pn=h((g7,C0)=>{"use strict";var gF=Rr();C0.exports=function(e,t,r){return r?gF(e.keys(),t,!0):e.forEach(t)}});var hs=h((v7,x0)=>{"use strict";var A0=Or(),vF=Pn(),yF=A0.Set,_F=A0.add;x0.exports=function(e){var t=new yF;return vF(e,function(r){_F(t,r)}),t}});var Nn=h((y7,T0)=>{"use strict";T0.exports=function(e){return e.size}});var R0=h((_7,O0)=>{"use strict";O0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Pr=h((b7,M0)=>{"use strict";var P0=Xr(),L0=tr(),N0=St(),bF=Ni(),wF=R0(),D0="Invalid size",IF=RangeError,EF=TypeError,SF=Math.max,q0=function(e,t){this.set=e,this.size=SF(t,0),this.has=P0(e.has),this.keys=P0(e.keys)};q0.prototype={getIterator:function(){return wF(L0(N0(this.keys,this.set)))},includes:function(e){return N0(this.has,this.set,e)}};M0.exports=function(e){L0(e);var t=+e.size;if(t!==t)throw new EF(D0);var r=bF(t);if(r<0)throw new IF(D0);return new q0(e,r)}});var G0=h((w7,j0)=>{"use strict";var kF=Tr(),F0=Or(),CF=hs(),AF=Nn(),xF=Pr(),TF=Pn(),OF=Rr(),RF=F0.has,U0=F0.remove;j0.exports=function(t){var r=kF(this),n=xF(t),i=CF(r);return AF(r)<=n.size?TF(r,function(o){n.includes(o)&&U0(i,o)}):OF(n.getIterator(),function(o){RF(r,o)&&U0(i,o)}),i}});var Nr=h((I7,B0)=>{"use strict";B0.exports=function(){return!1}});var J0=h(()=>{"use strict";var PF=Z(),NF=G0(),DF=Nr(),LF=!DF("difference",function(e){return e.size===0});PF({target:"Set",proto:!0,real:!0,forced:LF},{difference:NF})});var V0=h((k7,$0)=>{"use strict";var qF=Tr(),Dd=Or(),MF=Nn(),UF=Pr(),FF=Pn(),jF=Rr(),GF=Dd.Set,H0=Dd.add,BF=Dd.has;$0.exports=function(t){var r=qF(this),n=UF(t),i=new GF;return MF(r)>n.size?jF(n.getIterator(),function(o){BF(r,o)&&H0(i,o)}):FF(r,function(o){n.includes(o)&&H0(i,o)}),i}});var W0=h(()=>{"use strict";var JF=Z(),HF=fe(),$F=V0(),VF=Nr(),WF=!VF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||HF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});JF({target:"Set",proto:!0,real:!0,forced:WF},{intersection:$F})});var K0=h((x7,z0)=>{"use strict";var zF=Tr(),KF=Or().has,YF=Nn(),QF=Pr(),XF=Pn(),ZF=Rr(),ej=ts();z0.exports=function(t){var r=zF(this),n=QF(t);if(YF(r)<=n.size)return XF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return ZF(i,function(o){if(KF(r,o))return ej(i,"normal",!1)})!==!1}});var Y0=h(()=>{"use strict";var tj=Z(),rj=K0(),nj=Nr(),ij=!nj("isDisjointFrom",function(e){return!e});tj({target:"Set",proto:!0,real:!0,forced:ij},{isDisjointFrom:rj})});var X0=h((R7,Q0)=>{"use strict";var oj=Tr(),aj=Nn(),sj=Pn(),lj=Pr();Q0.exports=function(t){var r=oj(this),n=lj(t);return aj(r)>n.size?!1:sj(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var Z0=h(()=>{"use strict";var cj=Z(),uj=X0(),dj=Nr(),pj=!dj("isSubsetOf",function(e){return e});cj({target:"Set",proto:!0,real:!0,forced:pj},{isSubsetOf:uj})});var tE=h((D7,eE)=>{"use strict";var fj=Tr(),hj=Or().has,mj=Nn(),gj=Pr(),vj=Rr(),yj=ts();eE.exports=function(t){var r=fj(this),n=gj(t);if(mj(r)<n.size)return!1;var i=n.getIterator();return vj(i,function(o){if(!hj(r,o))return yj(i,"normal",!1)})!==!1}});var rE=h(()=>{"use strict";var _j=Z(),bj=tE(),wj=Nr(),Ij=!wj("isSupersetOf",function(e){return!e});_j({target:"Set",proto:!0,real:!0,forced:Ij},{isSupersetOf:bj})});var iE=h((M7,nE)=>{"use strict";var Ej=Tr(),Ld=Or(),Sj=hs(),kj=Pr(),Cj=Rr(),Aj=Ld.add,xj=Ld.has,Tj=Ld.remove;nE.exports=function(t){var r=Ej(this),n=kj(t).getIterator(),i=Sj(r);return Cj(n,function(o){xj(r,o)?Tj(i,o):Aj(i,o)}),i}});var oE=h(()=>{"use strict";var Oj=Z(),Rj=iE(),Pj=Nr();Oj({target:"Set",proto:!0,real:!0,forced:!Pj("symmetricDifference")},{symmetricDifference:Rj})});var sE=h((j7,aE)=>{"use strict";var Nj=Tr(),Dj=Or().add,Lj=hs(),qj=Pr(),Mj=Rr();aE.exports=function(t){var r=Nj(this),n=qj(t).getIterator(),i=Lj(r);return Mj(n,function(o){Dj(i,o)}),i}});var lE=h(()=>{"use strict";var Uj=Z(),Fj=sE(),jj=Nr();Uj({target:"Set",proto:!0,real:!0,forced:!jj("union")},{union:Fj})});var ro=h((J7,cE)=>{"use strict";var Gj=An(),Bj=String;cE.exports=function(e){if(Gj(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Bj(e)}});var fE=h((H7,pE)=>{"use strict";var qd=Ie(),Jj=Ni(),Hj=ro(),$j=Qr(),Vj=qd("".charAt),uE=qd("".charCodeAt),Wj=qd("".slice),dE=function(e){return function(t,r){var n=Hj($j(t)),i=Jj(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=uE(n,i),a<55296||a>56319||i+1===o||(s=uE(n,i+1))<56320||s>57343?e?Vj(n,i):a:e?Wj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};pE.exports={codeAt:dE(!1),charAt:dE(!0)}});var vE=h(()=>{"use strict";var zj=fE().charAt,Kj=ro(),mE=nn(),Yj=Ka(),hE=Ya(),gE="String Iterator",Qj=mE.set,Xj=mE.getterFor(gE);Yj(String,"String",function(e){Qj(this,{type:gE,string:Kj(e),index:0})},function(){var t=Xj(this),r=t.string,n=t.index,i;return n>=r.length?hE(void 0,!0):(i=zj(r,n),t.index+=i.length,hE(i,!1))})});var _E=h((W7,yE)=>{"use strict";Xa();md();_0();J0();W0();Y0();Z0();rE();oE();lE();vE();var Zj=qt();yE.exports=Zj.Set});var wE=h((z7,bE)=>{"use strict";var eG=_E();Ad();bE.exports=eG});var EE=h((K7,IE)=>{IE.exports=wE()});var kE=h(SE=>{"use strict";SE.f=Object.getOwnPropertySymbols});var TE=h((Q7,xE)=>{"use strict";var CE=Ze(),tG=Ie(),rG=St(),nG=fe(),Md=nd(),iG=kE(),oG=Zc(),aG=In(),sG=Ca(),Dn=Object.assign,AE=Object.defineProperty,lG=tG([].concat);xE.exports=!Dn||nG(function(){if(CE&&Dn({b:1},Dn(AE({},"a",{enumerable:!0,get:function(){AE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Dn({},e)[r]!==7||Md(Dn({},t)).join("")!==n})?function(t,r){for(var n=aG(t),i=arguments.length,o=1,a=iG.f,s=oG.f;i>o;)for(var l=sG(arguments[o++]),c=a?lG(Md(l),a(l)):Md(l),d=c.length,u=0,p;d>u;)p=c[u++],(!CE||rG(s,l,p))&&(n[p]=l[p]);return n}:Dn});var RE=h(()=>{"use strict";var cG=Z(),OE=TE();cG({target:"Object",stat:!0,arity:2,forced:Object.assign!==OE},{assign:OE})});var NE=h((eY,PE)=>{"use strict";RE();var uG=qt();PE.exports=uG.Object.assign});var LE=h((tY,DE)=>{"use strict";var dG=NE();DE.exports=dG});var ME=h((rY,qE)=>{qE.exports=LE()});var Ud=h((nY,UE)=>{"use strict";UE.exports=`
22
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var GE=h((iY,jE)=>{"use strict";var pG=Ie(),fG=Qr(),hG=ro(),jd=Ud(),FE=pG("".replace),mG=RegExp("^["+jd+"]+"),gG=RegExp("(^|[^"+jd+"])["+jd+"]+$"),Fd=function(e){return function(t){var r=hG(fG(t));return e&1&&(r=FE(r,mG,"")),e&2&&(r=FE(r,gG,"$1")),r}};jE.exports={start:Fd(1),end:Fd(2),trim:Fd(3)}});var $E=h((oY,HE)=>{"use strict";var vG=Xu().PROPER,yG=fe(),BE=Ud(),JE="\u200B\x85\u180E";HE.exports=function(e){return yG(function(){return!!BE[e]()||JE[e]()!==JE||vG&&BE[e].name!==e})}});var VE=h(()=>{"use strict";var _G=Z(),bG=GE().trim,wG=$E();_G({target:"String",proto:!0,forced:wG("trim")},{trim:function(){return bG(this)}})});var zE=h((lY,WE)=>{"use strict";VE();var IG=_t();WE.exports=IG("String","trim")});var YE=h((cY,KE)=>{"use strict";var EG=Xe(),SG=zE(),Gd=String.prototype;KE.exports=function(e){var t=e.trim;return typeof e=="string"||e===Gd||EG(Gd,e)&&t===Gd.trim?SG:t}});var XE=h((uY,QE)=>{"use strict";var kG=YE();QE.exports=kG});var eS=h((dY,ZE)=>{ZE.exports=XE()});var nS=h(()=>{"use strict";var CG=Z(),tS=Di(),AG=ku(),xG=xe(),rS=Zu(),TG=Cn(),OG=Cr(),RG=Ou(),PG=He(),NG=qi(),DG=Fi(),LG=NG("slice"),qG=PG("species"),Bd=Array,MG=Math.max;CG({target:"Array",proto:!0,forced:!LG},{slice:function(t,r){var n=OG(this),i=TG(n),o=rS(t,i),a=rS(r===void 0?i:r,i),s,l,c;if(tS(n)&&(s=n.constructor,AG(s)&&(s===Bd||tS(s.prototype))?s=void 0:xG(s)&&(s=s[qG],s===null&&(s=void 0)),s===Bd||s===void 0))return DG(n,o,a);for(l=new(s===void 0?Bd:s)(MG(a-o,0)),c=0;o<a;o++,c++)o in n&&RG(l,c,n[o]);return l.length=c,l}})});var oS=h((hY,iS)=>{"use strict";nS();var UG=_t();iS.exports=UG("Array","slice")});var sS=h((mY,aS)=>{"use strict";var FG=Xe(),jG=oS(),Jd=Array.prototype;aS.exports=function(e){var t=e.slice;return e===Jd||FG(Jd,e)&&t===Jd.slice?jG:t}});var cS=h((gY,lS)=>{"use strict";var GG=sS();lS.exports=GG});var dS=h((vY,uS)=>{uS.exports=cS()});var Hd=C(()=>{});var fS=h((_Y,pS)=>{"use strict";var BG=xe(),JG=er(),HG=He(),$G=HG("match");pS.exports=function(e){var t;return BG(e)&&((t=e[$G])!==void 0?!!t:JG(e)==="RegExp")}});var mS=h((bY,hS)=>{"use strict";var VG=fS(),WG=TypeError;hS.exports=function(e){if(VG(e))throw new WG("The method doesn't accept regular expressions");return e}});var vS=h((wY,gS)=>{"use strict";var zG=He(),KG=zG("match");gS.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[KG]=!1,"/./"[e](t)}catch(n){}}return!1}});var bS=h(()=>{"use strict";var YG=Z(),QG=Ci(),XG=gu().f,ZG=Iu(),yS=ro(),eB=mS(),tB=Qr(),rB=vS(),nB=wn(),iB=QG("".slice),oB=Math.min,_S=rB("startsWith"),aB=!nB&&!_S&&!!function(){var e=XG(String.prototype,"startsWith");return e&&!e.writable}();YG({target:"String",proto:!0,forced:!aB&&!_S},{startsWith:function(t){var r=yS(tB(this));eB(t);var n=ZG(oB(arguments.length>1?arguments[1]:void 0,r.length)),i=yS(t);return iB(r,n,n+i.length)===i}})});var IS=h((SY,wS)=>{"use strict";bS();var sB=_t();wS.exports=sB("String","startsWith")});var SS=h((kY,ES)=>{"use strict";var lB=Xe(),cB=IS(),$d=String.prototype;ES.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===$d||lB($d,e)&&t===$d.startsWith?cB:t}});var CS=h((CY,kS)=>{"use strict";var uB=SS();kS.exports=uB});var xS=h((AY,AS)=>{AS.exports=CS()});var NS=h((xY,PS)=>{"use strict";var OS=Ie(),dB=Xr(),pB=xe(),fB=ut(),TS=Fi(),hB=_n(),RS=Function,mB=OS([].concat),gB=OS([].join),Vd={},vB=function(e,t,r){if(!fB(Vd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Vd[t]=RS("C,a","return new C("+gB(n,",")+")")}return Vd[t](e,r)};PS.exports=hB?RS.bind:function(t){var r=dB(this),n=r.prototype,i=TS(arguments,1),o=function(){var s=mB(i,TS(arguments));return this instanceof o?vB(r,s.length,s):r.apply(t,s)};return pB(n)&&(o.prototype=n),o}});var LS=h(()=>{"use strict";var yB=Z(),DS=NS();yB({target:"Function",proto:!0,forced:Function.bind!==DS},{bind:DS})});var MS=h((RY,qS)=>{"use strict";LS();var _B=_t();qS.exports=_B("Function","bind")});var FS=h((PY,US)=>{"use strict";var bB=Xe(),wB=MS(),Wd=Function.prototype;US.exports=function(e){var t=e.bind;return e===Wd||bB(Wd,e)&&t===Wd.bind?wB:t}});var GS=h((NY,jS)=>{"use strict";var IB=FS();jS.exports=IB});var JS=h((DY,BS)=>{BS.exports=GS()});function Ns(e,t){Ee.__h&&Ee.__h(de,e,co||t),co=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jt(e){return co=1,EB(Rk,e)}function EB(e,t,r){var n=Ns(Un++,2);if(n.t=e,!n.__c&&(n.__=[Rk(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=de,!de.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,hp.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Ck.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};de.__f=!0;var o=de.shouldComponentUpdate,a=de.componentWillUpdate;de.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},de.shouldComponentUpdate=i}return n.__N||n.__}function an(e,t){var r=Ns(Un++,3);!Ee.__s&&Ok(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function oo(e){return co=5,ar(function(){return{current:e}},[])}function ar(e,t){var r=Ns(Un++,7);return Ok(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return co=8,ar(function(){return e},t)}function SB(e){var t=de.context[e.__c],r=Ns(Un++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function kB(){for(var e;e=Tk.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,_s),(0,Te.default)(r=e.__H.__h).call(r,rp),e.__H.__h=[]}catch(n){e.__H.__h=[],Ee.__e(n,e.__v)}}function CB(e){var t,r=function(){clearTimeout(n),QS&&cancelAnimationFrame(t),(0,Bt.default)(e)},n=(0,Bt.default)(r,100);QS&&(t=requestAnimationFrame(r))}function _s(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function rp(e){var t=de;e.__c=e.__(),de=t}function Ok(e,t){return!e||e.length!==t.length||(0,As.default)(t).call(t,function(r,n){return r!==e[n]})}function Rk(e,t){return typeof t=="function"?t(e):t}function AB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function np(){throw new Error("setTimeout has not been defined")}function ip(){throw new Error("clearTimeout has not been defined")}function Nk(e){if(Mt===Bt.default)return(0,Bt.default)(e,0);if((Mt===np||!Mt)&&Bt.default)return Mt=Bt.default,(0,Bt.default)(e,0);try{return Mt(e,0)}catch(t){try{return Mt.call(null,e,0)}catch(r){return Mt.call(this,e,0)}}}function xB(e){if(Ut===clearTimeout)return clearTimeout(e);if((Ut===ip||!Ut)&&clearTimeout)return Ut=clearTimeout,clearTimeout(e);try{return Ut(e)}catch(t){try{return Ut.call(null,e)}catch(r){return Ut.call(this,e)}}}function TB(){!Ln||!Lr||(Ln=!1,Lr.length?or=(0,Ps.default)(Lr).call(Lr,or):bs=-1,or.length&&Dk())}function Dk(){if(!Ln){var e=Nk(TB);Ln=!0;for(var t=or.length;t;){for(Lr=or,or=[];++bs<t;)Lr&&Lr[bs].run();bs=-1,t=or.length}Lr=null,Ln=!1,xB(e)}}function Lk(e,t){this.fun=e,this.array=t}function lr(){}function PB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function NB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function MB(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function Uk(e){return(0,vp.default)(e).call(e)}function UB(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function op(e,t){return(0,sr.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function uo(e,t,r){return(0,yp.default)(e).call(e,t,r)}function Ft(e){return e.length}function Ip(e){return e.length}function ms(e,t){return t.push(e),e}function FB(e,t){return(0,lo.default)(e).call(e,t).join("")}function qs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ls,column:Fn,length:a,return:""}}function no(e,t){return qB(qs("",null,null,"",null,null,0),e,{length:-e.length},t)}function jB(){return Se}function GB(){return Se=nt>0?qe(Gn,--nt):0,Fn--,Se===10&&(Fn=1,Ls--),Se}function dt(){return Se=nt<Fk?qe(Gn,nt++):0,Fn++,Se===10&&(Fn=1,Ls++),Se}function Ht(){return qe(Gn,nt)}function ws(){return nt}function vo(e,t){return uo(Gn,e,t)}function po(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 jk(e){return Ls=Fn=1,Fk=Ft(Gn=e),nt=0,[]}function Gk(e){return Gn="",e}function Is(e){return Uk(vo(nt-1,ap(e===91?e+2:e===40?e+1:e)))}function BB(e){for(;(Se=Ht())&&Se<33;)dt();return po(e)>2||po(Se)>3?"":" "}function JB(e,t){for(;--t&&dt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return vo(e,ws()+(t<6&&Ht()==32&&dt()==32))}function ap(e){for(;dt();)switch(Se){case e:return nt;case 34:case 39:e!==34&&e!==39&&ap(Se);break;case 40:e===41&&ap(e);break;case 92:dt();break}return nt}function HB(e,t){for(;dt()&&e+Se!==57&&!(e+Se===84&&Ht()===47););return"/*"+vo(t,nt-1)+"*"+Ds(e===47?e:dt())}function $B(e){for(;!po(Ht());)dt();return vo(e,nt)}function VB(e){return Gk(Es("",null,null,null,[""],e=jk(e),0,[0],e))}function Es(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,v=1,y=1,g=1,w=0,S="",A=i,R=o,T=n,k=S;y;)switch(m=w,w=dt()){case 40:if(m!=108&&qe(k,u-1)==58){op(k+=Q(Is(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=Is(w);break;case 9:case 10:case 13:case 32:k+=BB(m);break;case 92:k+=JB(ws()-1,7);continue;case 47:switch(Ht()){case 42:case 47:ms(WB(HB(dt(),ws()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=Ft(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:f>0&&Ft(k)-u&&ms(f>32?ZS(k+";",n,r,u-1):ZS(Q(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(ms(T=XS(k,t,r,c,d,i,s,S,A=[],R=[],u),o),w===123)if(d===0)Es(k,t,T,T,A,o,u,s,R);else switch(p===99&&qe(k,3)===110?100:p){case 100:case 109:case 115:Es(e,T,T,n&&ms(XS(e,T,T,0,0,i,s,S,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Es(k,T,T,T,[""],R,0,s,R)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+Ft(k),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&GB()==125)continue}switch(k+=Ds(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ft(k)-1)*g,g=1;break;case 64:Ht()===45&&(k+=Is(dt())),p=Ht(),d=u=Ft(S=k+=$B(ws())),w++;break;case 45:m===45&&Ft(k)==2&&(v=0)}}return o}function XS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Ip(p),m=0,v=0,y=0;m<n;++m)for(var g=0,w=uo(e,u+1,u=LB(v=a[m])),S=e;g<f;++g)(S=Uk(v>0?p[g]+" "+w:Q(w,/&\f/g,p[g])))&&(l[y++]=S);return qs(e,t,r,i===0?bp:s,l,c,d)}function WB(e,t,r){return qs(e,t,r,_p,Ds(jB()),uo(e,2,-2),0)}function ZS(e,t,r,n){return qs(e,t,r,wp,uo(e,0,n),uo(e,n+1,-1),n)}function qn(e,t){for(var r="",n=Ip(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function zB(e,t,r,n){switch(e.type){case DB:case wp:return e.return=e.return||e.value;case _p:return"";case Mk:return e.return=e.value+"{"+qn(e.children,n)+"}";case bp:e.value=e.props.join(",")}return Ft(r=qn(e.children,n))?e.return=e.value+"{"+r+"}":""}function KB(e){var t=Ip(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function YB(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jk(e,t){switch(MB(e,t)){case 5103:return $+"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 $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+Ts+e+$e+e+e;case 6828:case 4268:return $+e+$e+e+e;case 6165:return $+e+$e+"flex-"+e+e;case 5187:return $+e+Q(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return $+e+$e+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return $+e+$e+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+$e+Q(e,"shrink","negative")+e;case 5292:return $+e+$e+Q(e,"basis","preferred-size")+e;case 6060:return $+"box-"+Q(e,"-grow","")+$+e+$e+Q(e,"grow","positive")+e;case 4554:return $+Q(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,$+"$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(Ft(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+Ts+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~op(e,"stretch")?Jk(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Ft(e)-3-(~op(e,"!important")&&10))){case 107:return Q(e,":",":"+$)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(qe(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return $+e+$e+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+$e+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+$e+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+$e+e+e}return e}function $k(){if(rk)return gs.exports;rk=1;let e=$k();return gs.exports={default:e},gs.exports.default=e,gs.exports}function fo(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function uJ(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function pJ(e){var t=(0,Ak.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function ho(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return jt={name:i.name,styles:i.styles,next:jt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)jt={name:a.name,styles:a.styles,next:jt},a=a.next;var s=o.styles+";";return s}return mJ(e,t,r)}case"function":{if(e!==void 0){var l=jt,c=r(e);return jt=l,ho(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function mJ(e,t,r){var n="";if((0,so.default)(r))for(var i=0;i<r.length;i++)n+=ho(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":nk(s)&&(n+=Kd(o)+":"+ik(o,s)+";")}else if((0,so.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)nk(a[l])&&(n+=Kd(o)+":"+ik(o,a[l])+";");else{var c=ho(e,t,a);switch(o){case"animation":case"animationName":{n+=Kd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function qr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";jt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ho(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ho(r,t,e[s]),n){var l=o;i+=l[s]}ok.lastIndex=0;for(var c="",d;(d=ok.exec(i))!==null;)c+="-"+d[1];var u=uJ(i)+c;return{name:u,styles:i,next:jt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return qr(t)}function CJ(e,t,r){var n=[],i=fo(e,n,r);return n.length<2?r:i+t(n)}function b(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--TJ,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function yo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Jt(e());return an(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function W2(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function rC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=W2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function z2(e){let t=()=>rC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function Q2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=Be(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=Y2(()=>{t&&n()});return e==="Image"?b("div",{className:i,style:{borderRadius:"8px"},children:Je("img",F(x({},a),{ref:c,src:t!=null?t:"",style:x({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):b("div",F(x({},a),{ref:c,className:i,children:r}))}function X2(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,F(x({},i.props),{style:F(x({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,F(x({},e.props),{style:F(x({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function n5(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function vk(e,t,r){return Us.call(t,"css")?b(Cp,Yk(e,t),r):b(e,t,r)}function c5(e,t,r){return Us.call(t,"css")?b(Cp,Yk(e,t),r):b(e,t,r)}function dp({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return b("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?b(De,{children:t[s]},o):null}return b(De,{children:i},o)})})}function p5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Jt(!1);return a?null:b("div",{style:x({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:b("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function m5({children:e,style:t}){return b("div",{style:`${f5.styles} ${t}`,children:[e,b("svg",{style:`${h5.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[b("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),b("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function O5(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function gC(e){return(0,vp.default)(e).call(e)}function R5(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function pp(e,t){return(0,sr.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function mo(e,t,r){return(0,yp.default)(e).call(e,t,r)}function Gt(e){return e.length}function Rp(e){return e.length}function ys(e,t){return t.push(e),e}function P5(e,t){return(0,lo.default)(e).call(e,t).join("")}function Hs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Js,column:jn,length:a,return:""}}function io(e,t){return T5(Hs("",null,null,"",null,null,0),e,{length:-e.length},t)}function N5(){return ke}function D5(){return ke=it>0?Me(Jn,--it):0,jn--,ke===10&&(jn=1,Js--),ke}function pt(){return ke=it<vC?Me(Jn,it++):0,jn++,ke===10&&(jn=1,Js++),ke}function $t(){return Me(Jn,it)}function Ss(){return it}function _o(e,t){return mo(Jn,e,t)}function go(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 yC(e){return Js=jn=1,vC=Gt(Jn=e),it=0,[]}function _C(e){return Jn="",e}function ks(e){return gC(_o(it-1,fp(e===91?e+2:e===40?e+1:e)))}function L5(e){for(;(ke=$t())&&ke<33;)pt();return go(e)>2||go(ke)>3?"":" "}function q5(e,t){for(;--t&&pt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return _o(e,Ss()+(t<6&&$t()==32&&pt()==32))}function fp(e){for(;pt();)switch(ke){case e:return it;case 34:case 39:e!==34&&e!==39&&fp(ke);break;case 40:e===41&&fp(e);break;case 92:pt();break}return it}function M5(e,t){for(;pt()&&e+ke!==57&&!(e+ke===84&&$t()===47););return"/*"+_o(t,it-1)+"*"+Bs(e===47?e:pt())}function U5(e){for(;!go($t());)pt();return _o(e,it)}function F5(e){return _C(Cs("",null,null,null,[""],e=yC(e),0,[0],e))}function Cs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,v=1,y=1,g=1,w=0,S="",A=i,R=o,T=n,k=S;y;)switch(m=w,w=pt()){case 40:if(m!=108&&Me(k,u-1)==58){pp(k+=W(ks(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=ks(w);break;case 9:case 10:case 13:case 32:k+=L5(m);break;case 92:k+=q5(Ss()-1,7);continue;case 47:switch($t()){case 42:case 47:ys(j5(M5(pt(),Ss()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=Gt(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:g==-1&&(k=W(k,/\f/g,"")),f>0&&Gt(k)-u&&ys(f>32?_k(k+";",n,r,u-1):_k(W(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(ys(T=yk(k,t,r,c,d,i,s,S,A=[],R=[],u),o),w===123)if(d===0)Cs(k,t,T,T,A,o,u,s,R);else switch(p===99&&Me(k,3)===110?100:p){case 100:case 108:case 109:case 115:Cs(e,T,T,n&&ys(yk(e,T,T,0,0,i,s,S,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Cs(k,T,T,T,[""],R,0,s,R)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+Gt(k),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&D5()==125)continue}switch(k+=Bs(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(Gt(k)-1)*g,g=1;break;case 64:$t()===45&&(k+=ks(pt())),p=$t(),d=u=Gt(S=k+=U5(Ss())),w++;break;case 45:m===45&&Gt(k)==2&&(v=0)}}return o}function yk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Rp(p),m=0,v=0,y=0;m<n;++m)for(var g=0,w=mo(e,u+1,u=x5(v=a[m])),S=e;g<f;++g)(S=gC(v>0?p[g]+" "+w:W(w,/&\f/g,p[g])))&&(l[y++]=S);return Hs(e,t,r,i===0?Tp:s,l,c,d)}function j5(e,t,r){return Hs(e,t,r,hC,Bs(N5()),mo(e,2,-2),0)}function _k(e,t,r,n){return Hs(e,t,r,Op,mo(e,0,n),mo(e,n+1,-1),n)}function Mn(e,t){for(var r="",n=Rp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function G5(e,t,r,n){switch(e.type){case A5:if(e.children.length)break;case C5:case Op:return e.return=e.return||e.value;case hC:return"";case mC:return e.return=e.value+"{"+Mn(e.children,n)+"}";case Tp:e.value=e.props.join(",")}return Gt(r=Mn(e.children,n))?e.return=e.value+"{"+r+"}":""}function B5(e){var t=Rp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function J5(e){return function(t){t.root||(t=t.return)&&e(t)}}function bC(e,t){switch(O5(e,t)){case 5103:return V+"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 V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Rs+e+Ve+e+e;case 6828:case 4268:return V+e+Ve+e+e;case 6165:return V+e+Ve+"flex-"+e+e;case 5187:return V+e+W(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return V+e+Ve+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return V+e+Ve+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+Ve+W(e,"shrink","negative")+e;case 5292:return V+e+Ve+W(e,"basis","preferred-size")+e;case 6060:return V+"box-"+W(e,"-grow","")+V+e+Ve+W(e,"grow","positive")+e;case 4554:return V+W(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,V+"$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(Gt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Rs+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pp(e,"stretch")?bC(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Gt(e)-3-(~pp(e,"!important")&&10))){case 107:return W(e,":",":"+V)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(Me(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return V+e+Ve+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Ve+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Ve+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Ve+e+e}return e}function wk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ep(e,t,r){var n=[],i=fo(e,n,r);return n.length<2?r:i+t(n)}function Sk(e){if(e==="top"){let t=0;wC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Ik}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Ik}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Ek)})}else if(e==="center"){let t=0;IC.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Ek)})}}function bo(){let e=!1,t=null,r=0,n=new Set,i=a=>_(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield ao.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),kr(b(aH,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,ao.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(kr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),ao.release()))};return{show:i,hide:o,get isLoading(){return e}}}var hp,Ck,Te,Ps,As,Bt,xs,so,mp,sr,lo,Ak,xk,gp,vp,yp,FY,tp,Un,de,zd,HS,co,Tk,Ee,$S,VS,WS,zS,KS,YS,QS,Pk,ve,Mt,Ut,or,Ln,Lr,bs,OB,Oe,RB,qk,$e,Ts,$,_p,bp,wp,DB,Mk,LB,Ds,qB,Ls,Fn,Fk,nt,Se,Gn,QB,XB,ZB,ek,eJ,tJ,rJ,nJ,iJ,Bk,oJ,tk,aJ,sJ,lJ,Hk,gs,rk,cJ,Ep,Ms,dJ,fJ,hJ,Vk,nk,Kd,ik,ok,jt,gJ,Wk,zk,ak,Us,Sp,Kk,kp,Fs,vJ,yJ,_J,bJ,wJ,sp,lp,Yk,IJ,Cp,EJ,sk,SJ,kJ,AJ,xJ,Yd,lk,Qd,Xd,TJ,Zd,OJ,RJ,PJ,NJ,DJ,LJ,qJ,ck,MJ,UJ,FJ,uk,jJ,GJ,BJ,dk,JJ,HJ,$J,pk,VJ,WJ,zJ,KJ,YJ,QJ,XJ,ZJ,e2,t2,r2,fk,n2,i2,o2,a2,s2,l2,c2,u2,d2,p2,f2,hk,h2,m2,g2,v2,y2,_2,b2,w2,I2,E2,S2,k2,C2,A2,x2,T2,O2,R2,P2,N2,D2,L2,q2,M2,U2,F2,j2,G2,B2,J2,H2,$2,Qk,Xk,Zk,cp,V2,eC,tC,Os,ao,mk,K2,js,Y2,nC,iC,oC,Z2,e5,t5,up,r5,aC,sC,Gs,Ap,Bn,gk,Dr,lC,on,i5,o5,a5,s5,l5,vs,cC,xp,me,u5,d5,f5,h5,At,g5,v5,uC,dC,pC,fC,Mr,y5,_5,b5,w5,I5,E5,S5,k5,Ve,Rs,V,hC,Tp,Op,C5,mC,A5,x5,Bs,T5,Js,jn,vC,it,ke,Jn,H5,$5,V5,bk,W5,z5,K5,Y5,Q5,X5,Z5,eH,tH,rH,nH,iH,Ik,Ek,wC,IC,Ur,kk,oH,aH,jY,cr=C(()=>{"use strict";yn();hp=ie(gy(),1),Ck=ie(Cy(),1),Te=ie(Fy(),1),Ps=ie(e_(),1),As=ie(c_(),1),Bt=ie(A_(),1);Fa();Fa();xs=ie(db(),1),so=ie(yb(),1),mp=ie(DI(),1),sr=ie(HI(),1),lo=ie(ZI(),1),Ak=ie(a0(),1),xk=ie(EE(),1),gp=ie(ME(),1),vp=ie(eS(),1),yp=ie(dS(),1);Hd();Hd();FY=ie(xS(),1),tp=ie(JS(),1),co=0,Tk=[],Ee=N,$S=Ee.__b,VS=Ee.__r,WS=Ee.diffed,zS=Ee.__c,KS=Ee.unmount,YS=Ee.__;Ee.__b=function(e){de=null,$S&&$S(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),YS&&YS(e,t)},Ee.__r=function(e){var t,r,n;VS&&VS(e),Un=0;var i=(de=e.__c).__H;i&&(zd===de?(i.__h=[],de.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,_s),(0,Te.default)(n=i.__h).call(n,rp),i.__h=[],Un=0)),zd=de},Ee.diffed=function(e){var t;WS&&WS(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Tk.push(r)!==1&&HS===Ee.requestAnimationFrame||((HS=Ee.requestAnimationFrame)||CB)(kB)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),zd=de=null},Ee.__c=function(e,t){(0,As.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,_s),r.__h=(0,hp.default)(i=r.__h).call(i,function(o){return!o.__||rp(o)})}catch(o){(0,As.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ee.__e(o,r.__v)}}),zS&&zS(e,t)},Ee.unmount=function(e){var t;KS&&KS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{_s(i)}catch(o){r=o}}),n.__H=void 0,r&&Ee.__e(r,n.__v))};QS=typeof requestAnimationFrame=="function";Pk={exports:{}},ve=Pk.exports={};(function(){try{typeof Bt.default=="function"?Mt=Bt.default:Mt=np}catch(e){Mt=np}try{typeof clearTimeout=="function"?Ut=clearTimeout:Ut=ip}catch(e){Ut=ip}})();or=[],Ln=!1,bs=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];or.push(new Lk(e,t)),or.length===1&&!Ln&&Nk(Dk)};Lk.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=lr;ve.addListener=lr;ve.once=lr;ve.off=lr;ve.removeListener=lr;ve.removeAllListeners=lr;ve.emit=lr;ve.prependListener=lr;ve.prependOnceListener=lr;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};OB=Pk.exports,Oe=AB(OB),RB=xs.default||void 0||self;qk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(NB(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=PB(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),$e="-ms-",Ts="-moz-",$="-webkit-",_p="comm",bp="rule",wp="decl",DB="@import",Mk="@keyframes",LB=Math.abs,Ds=String.fromCharCode,qB=gp.default;Ls=1,Fn=1,Fk=0,nt=0,Se=0,Gn="";QB=function(e,t,r){for(var n=0,i=0;n=i,i=Ht(),n===38&&i===12&&(t[r]=1),!po(i);)dt();return vo(e,nt)},XB=function(e,t){var r=-1,n=44;do switch(po(n)){case 0:n===38&&Ht()===12&&(t[r]=1),e[r]+=QB(nt-1,t,r);break;case 2:e[r]+=Is(n);break;case 4:if(n===44){e[++r]=Ht()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ds(n)}while(n=dt());return e},ZB=function(e,t){return Gk(XB(jk(e),t))},ek=new mp.default,eJ=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ek.get(r))&&!n){ek.set(e,!0);for(var i=[],o=ZB(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},tJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},rJ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",nJ=function(e){var t;return e.type==="comm"&&(0,sr.default)(t=e.children).call(t,rJ)>-1},iJ=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(nJ(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Bk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},oJ=function(e,t){for(var r=e-1;r>=0;r--)if(!Bk(t[r]))return!0;return!1},tk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},aJ=function(e,t,r){Bk(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),tk(e)):oJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),tk(e)))};sJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case wp:e.return=Jk(e.value,e.length);break;case Mk:return qn([no(e,{value:Q(e.value,"@","@"+$)})],n);case bp:if(e.length)return FB(e.props,function(i){switch(UB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qn([no(e,{props:[Q(i,/:(read-\w+)/,":"+Ts+"$1")]})],n);case"::placeholder":return qn([no(e,{props:[Q(i,/:(plac\w+)/,":"+$+"input-$1")]}),no(e,{props:[Q(i,/:(plac\w+)/,":"+Ts+"$1")]}),no(e,{props:[Q(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},lJ=[sJ],Hk=function(e){var t=e.key;if(Oe.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
23
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,sr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||lJ;if(Oe.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(m)});var s,l=[eJ,tJ];Oe.env.NODE_ENV!=="production"&&l.push(iJ({get compat(){return f.compat}}),aJ);{var c,d=[zB,Oe.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==_p&&c.insert(m.value+"{}"))}:YB(function(m){c.insert(m)})],u=KB((0,Ps.default)(l).call(l,n,d)),p=function(m){return qn(VB(m),u)};s=function(m,v,y,g){c=y,Oe.env.NODE_ENV!=="production"&&(0,lo.default)(v)!==void 0&&(c={insert:function(w){y.insert(w+(0,lo.default)(v))}}),p(m?m+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new qk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},gs={exports:{}};$k();cJ=!0;Ep=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||cJ===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ms=function(e,t,r){Ep(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};dJ={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};fJ=/[A-Z]|^ms/g,hJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vk=function(e){return e.charCodeAt(1)===45},nk=function(e){return e!=null&&typeof e!="boolean"},Kd=pJ(function(e){return Vk(e)?e:e.replace(fJ,"-$&").toLowerCase()}),ik=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(hJ,function(r,n,i){return jt={name:n,styles:i,next:jt},n})}return dJ[e]!==1&&!Vk(e)&&typeof t=="number"&&t!==0?t+"px":t};ok=/label:\s*([^\s;{]+)\s*(;|$)/g;gJ=function(e){return e()},Wk=ju?ju:!1,zk=Wk||gJ,ak=Wk||xn,Us={}.hasOwnProperty,Sp=Kr(typeof HTMLElement<"u"?Hk({key:"css"}):null);Oe.env.NODE_ENV!=="production"&&(Sp.displayName="EmotionCacheContext");Kk=Sp.Provider,kp=function(e){return Bu(function(t,r){var n=On(Sp);return e(t,n,r)})},Fs=Kr({});Oe.env.NODE_ENV!=="production"&&(Fs.displayName="EmotionThemeContext");vJ=function(e){var t=e.split(".");return t[t.length-1]},yJ=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return vJ(t[1])},_J=new xk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),bJ=function(e){return e.replace(/\$/g,"-")},wJ=function(e){if(e)for(var t=e.split(`
24
- `),r=0;r<t.length;r++){var n=yJ(t[r]);if(n){if(_J.has(n))break;if(/^[A-Z]/.test(n))return bJ(n)}}},sp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Yk=function(e,t){var r,n;if(Oe.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,sr.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)Us.call(t,o)&&(i[o]=t[o]);if(i[sp]=e,Oe.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,sr.default)(n=t.css.name).call(n,"-")===-1)){var a=wJ(new Error().stack);a&&(i[lp]=a)}return i},IJ=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ep(t,r,n),zk(function(){return Ms(t,r,n)}),null},Cp=kp(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[sp],a=[i],s="";typeof e.className=="string"?s=fo(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=qr(a,void 0,On(Fs));if(Oe.env.NODE_ENV!=="production"&&(0,sr.default)(n=l.name).call(n,"-")===-1){var c=e[lp];c&&(l=qr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)Us.call(e,u)&&u!=="css"&&u!==sp&&(Oe.env.NODE_ENV==="production"||u!==lp)&&(d[u]=e[u]);return d.ref=r,d.className=s,Je(De,null,Je(IJ,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Je(o,d))});Oe.env.NODE_ENV!=="production"&&(Cp.displayName="EmotionCssPropInternal");EJ={version:"11.10.5"},sk=!1,SJ=kp(function(e,t){Oe.env.NODE_ENV!=="production"&&!sk&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),sk=!0);var r=e.styles,n=qr([r],void 0,On(Fs)),i=Ji();return ak(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),ak(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ms(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Oe.env.NODE_ENV!=="production"&&(SJ.displayName="EmotionGlobal");kJ=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,so.default)(o))a=e(o);else{Oe.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};AJ=function(e){var t=e.cache,r=e.serializedArr;return zk(function(){for(var n=0;n<r.length;n++)Ms(t,r[n],!1)}),null},xJ=kp(function(e,t){var r=!1,n=[],i=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=qr(c,t.registered);return n.push(u),Ep(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return CJ(t.registered,i,kJ(c))},a={css:i,cx:o,theme:On(Fs)},s=e.children(a);return r=!0,Je(De,null,Je(AJ,{cache:t,serializedArr:n}),s)});Oe.env.NODE_ENV!=="production"&&(xJ.displayName="EmotionClassNames");Oe.env.NODE_ENV!=="production"&&(Yd=!0,lk=typeof jest<"u"||typeof vi<"u",Yd&&!lk&&(Qd=typeof xs.default<"u"?xs.default:Yd?window:RB,Xd="__EMOTION_REACT_"+EJ.version.split(".")[0]+"__",Qd[Xd]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Qd[Xd]=!0));TJ=0;Zd={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},OJ=D`
21
+ `;e.textContent=s;let c=document.head||document.getElementsByTagName("head")[0];c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:c}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return y(this,null,function*(){let d=l instanceof URL?l.href:l,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let c=window.fetch;window.fetch=(l,d)=>{let u=l instanceof URL?l.href:l.toString();return u.endsWith(".wasm")?s(u):c(l,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var fg=C(()=>{"use strict";B()});var mg=C(()=>{"use strict"});var hg=C(()=>{"use strict";R();jl()});var gg=C(()=>{"use strict";B()});var Fa,ou=C(()=>{"use strict";mg();hg();B();gg();R();Fa=new Jt});function cr(e,t){for(var r in t)e[r]=t[r];return e}function du(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function We(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Ja.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Ga(e,a,n,i,null)}function Ga(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++_g:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function Fe(e){return e.children}function ht(e,t){this.props=e,this.context=t}function Nn(e,t){if(t==null)return e.__?Nn(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Nn(e):null}function Cg(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Cg(e)}}function cu(e){(!e.__d&&(e.__d=!0)&&Zr.push(e)&&!Ba.__r++||vg!==N.debounceRendering)&&((vg=N.debounceRendering)||wg)(Ba)}function Ba(){for(var e,t,r,n,i,o,a,s=1;Zr.length;)Zr.length>s&&Zr.sort(Sg),e=Zr.shift(),s=Zr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=cr({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),pu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Nn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Pg(o,r,a),r.__e!=i&&Cg(r)));Ba.__r=0}function Ag(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,g,b,v=n&&n.__k||kg,w=t.length;for(c=WR(r,t,v,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?ji:v[f.__i]||ji,f.__i=u,b=pu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&fu(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?c=xg(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=g,c}function WR(e,t,r,n,i){var o,a,s,c,l,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Ga(null,a,null,null,null):Gi(a)?Ga(Fe,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ga(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=zR(a,r,c,u))!==-1&&(u--,(s=r[l])&&(s.__u|=2)),s==null||s.__v===null?(l==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Nn(s)),Rg(s,s));return n}function xg(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=xg(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Nn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Bi(e,t){return t=t||[],e==null||typeof e=="boolean"||(Gi(e)?e.some(function(r){Bi(r,t)}):t.push(e)),t}function zR(e,t,r,n){var i,o,a=e.key,s=e.type,c=t[r];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return r;if(n>(c!=null&&!(2&c.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o++}}return-1}function yg(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||VR.test(t)?r:r+"px"}function ja(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||yg(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||yg(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Ig,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=uu,e.addEventListener(t,o?su:au,o)):e.removeEventListener(t,o?su:au,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function bg(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=uu++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function pu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,g,b,v,w,E,A,P,T,k,G,fe,L,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof O=="function")try{if(v=t.props,w="prototype"in O&&O.prototype.render,E=(d=O.contextType)&&n[d.__c],A=d?E?E.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new O(v,A):(t.__c=u=new ht(v,A),u.constructor=O,u.render=YR),E&&E.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=cr({},u.__s)),cr(u.__s,O.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&O.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(be){be&&(be.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,T=N.__r,k=0,w){for(u.state=u.__s,u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),G=0;G<u._sb.length;G++)u.__h.push(u._sb[G]);u._sb=[]}else do u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,u.getChildContext!=null&&(n=cr(cr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),fe=d,d!=null&&d.type===Fe&&d.key==null&&(fe=Tg(d.props.children)),s=Ag(e,Gi(fe)?fe:[fe],t,r,n,i,o,a,s,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(be){if(t.__v=null,c||o!=null)if(be.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(L=o.length;L--;)du(o[L]);else t.__e=r.__e,t.__k=r.__k;N.__e(be,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=KR(r.__e,t,r,n,i,o,a,c,l);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function Pg(e,t,r){for(var n=0;n<r.length;n++)fu(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function Tg(e){return typeof e!="object"||e==null?e:Gi(e)?e.map(Tg):cr({},e)}function KR(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,g,b=r.props,v=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(v);e=document.createElementNS(i,w,v.is&&v),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(w===null)b===v||s&&e.data===v||(e.data=v);else{if(o=o&&Ja.call(e.childNodes),b=r.props||ji,!s&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(f=e.attributes[l]).name]=f.value;for(l in b)if(f=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in v)){if(l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v)continue;ja(e,l,null,f,i)}}for(l in v)f=v[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?g=f:s&&typeof f!="function"||b[l]===f||ja(e,l,f,b[l],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Ag(t.type==="template"?e.content:e,Gi(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Nn(r,0),s,c),o!=null)for(l=o.length;l--;)du(o[l]);s||(l="value",w=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[l]||w=="progress"&&!m||w=="option"&&m!==b[l])&&ja(e,l,m,b[l],i),l="checked",g!==void 0&&g!==e[l]&&ja(e,l,g,b[l],i))}return e}function fu(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function Rg(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||fu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Rg(n[i],t,r||typeof e.type!="function");r||du(e.__e),e.__c=e.__=e.__e=void 0}function YR(e,t,r){return this.constructor(e,r)}function Tr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],pu(t,e=(!n&&r||t).__k=We(Fe,null,[e]),i||ji,ji,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Ja.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Pg(o,e,a)}function en(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,cu(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+Eg++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Ja,N,_g,lu,Zr,vg,wg,Sg,Ig,uu,au,su,Eg,ji,kg,VR,Gi,Dn=C(()=>{ji={},kg=[],VR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Gi=Array.isArray;Ja=kg.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},_g=0,lu=function(e){return e!=null&&e.constructor==null},ht.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=cr({},this.state),typeof e=="function"&&(e=e(cr({},r),this.props)),e&&cr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),cu(this))},ht.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cu(this))},ht.prototype.render=Fe,Zr=[],wg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Sg=function(e,t){return e.__v.__b-t.__v.__b},Ba.__r=0,Ig=/(PointerCapture)$|Capture$/i,uu=0,au=bg(!1),su=bg(!0),Eg=0});var ge=h((a6,Og)=>{"use strict";Og.exports=function(e){try{return!!e()}catch(t){return!0}}});var qn=h((s6,Ng)=>{"use strict";var QR=ge();Ng.exports=!QR(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ke=h((c6,Lg)=>{"use strict";var Dg=qn(),qg=Function.prototype,mu=qg.call,XR=Dg&&qg.bind.bind(mu,mu);Lg.exports=Dg?XR:function(e){return function(){return mu.apply(e,arguments)}}});var et=h((l6,Mg)=>{"use strict";var ZR=ke();Mg.exports=ZR({}.isPrototypeOf)});var ve=h((hu,Ug)=>{"use strict";var Ji=function(e){return e&&e.Math===Math&&e};Ug.exports=Ji(typeof globalThis=="object"&&globalThis)||Ji(typeof window=="object"&&window)||Ji(typeof self=="object"&&self)||Ji(typeof global=="object"&&global)||Ji(typeof hu=="object"&&hu)||function(){return this}()||Function("return this")()});var gu=h((u6,Bg)=>{"use strict";var eO=qn(),Gg=Function.prototype,Fg=Gg.apply,jg=Gg.call;Bg.exports=typeof Reflect=="object"&&Reflect.apply||(eO?jg.bind(Fg):function(){return jg.apply(Fg,arguments)})});var lr=h((d6,Hg)=>{"use strict";var Jg=ke(),tO=Jg({}.toString),rO=Jg("".slice);Hg.exports=function(e){return rO(tO(e),8,-1)}});var Hi=h((p6,$g)=>{"use strict";var nO=lr(),iO=ke();$g.exports=function(e){if(nO(e)==="Function")return iO(e)}});var je=h((f6,Vg)=>{"use strict";var vu=typeof document=="object"&&document.all;Vg.exports=typeof vu=="undefined"&&vu!==void 0?function(e){return typeof e=="function"||e===vu}:function(e){return typeof e=="function"}});var tt=h((m6,Wg)=>{"use strict";var oO=ge();Wg.exports=!oO(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Nt=h((h6,zg)=>{"use strict";var aO=qn(),Ha=Function.prototype.call;zg.exports=aO?Ha.bind(Ha):function(){return Ha.apply(Ha,arguments)}});var yu=h(Qg=>{"use strict";var Kg={}.propertyIsEnumerable,Yg=Object.getOwnPropertyDescriptor,sO=Yg&&!Kg.call({1:2},1);Qg.f=sO?function(t){var r=Yg(this,t);return!!r&&r.enumerable}:Kg});var $i=h((v6,Xg)=>{"use strict";Xg.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var $a=h((y6,Zg)=>{"use strict";var cO=ke(),lO=ge(),uO=lr(),bu=Object,dO=cO("".split);Zg.exports=lO(function(){return!bu("z").propertyIsEnumerable(0)})?function(e){return uO(e)==="String"?dO(e,""):bu(e)}:bu});var tn=h((b6,ev)=>{"use strict";ev.exports=function(e){return e==null}});var rn=h((_6,tv)=>{"use strict";var pO=tn(),fO=TypeError;tv.exports=function(e){if(pO(e))throw new fO("Can't call method on "+e);return e}});var Rr=h((w6,rv)=>{"use strict";var mO=$a(),hO=rn();rv.exports=function(e){return mO(hO(e))}});var Oe=h((S6,nv)=>{"use strict";var gO=je();nv.exports=function(e){return typeof e=="object"?e!==null:gO(e)}});var Ht=h((I6,iv)=>{"use strict";iv.exports={}});var Ln=h((E6,av)=>{"use strict";var _u=Ht(),wu=ve(),vO=je(),ov=function(e){return vO(e)?e:void 0};av.exports=function(e,t){return arguments.length<2?ov(_u[e])||ov(wu[e]):_u[e]&&_u[e][t]||wu[e]&&wu[e][t]}});var Va=h((k6,lv)=>{"use strict";var yO=ve(),sv=yO.navigator,cv=sv&&sv.userAgent;lv.exports=cv?String(cv):""});var za=h((C6,hv)=>{"use strict";var mv=ve(),Su=Va(),uv=mv.process,dv=mv.Deno,pv=uv&&uv.versions||dv&&dv.version,fv=pv&&pv.v8,Dt,Wa;fv&&(Dt=fv.split("."),Wa=Dt[0]>0&&Dt[0]<4?1:+(Dt[0]+Dt[1]));!Wa&&Su&&(Dt=Su.match(/Edge\/(\d+)/),(!Dt||Dt[1]>=74)&&(Dt=Su.match(/Chrome\/(\d+)/),Dt&&(Wa=+Dt[1])));hv.exports=Wa});var Iu=h((A6,vv)=>{"use strict";var gv=za(),bO=ge(),_O=ve(),wO=_O.String;vv.exports=!!Object.getOwnPropertySymbols&&!bO(function(){var e=Symbol("symbol detection");return!wO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gv&&gv<41})});var Eu=h((x6,yv)=>{"use strict";var SO=Iu();yv.exports=SO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ku=h((P6,bv)=>{"use strict";var IO=Ln(),EO=je(),kO=et(),CO=Eu(),AO=Object;bv.exports=CO?function(e){return typeof e=="symbol"}:function(e){var t=IO("Symbol");return EO(t)&&kO(t.prototype,AO(e))}});var Vi=h((T6,_v)=>{"use strict";var xO=String;_v.exports=function(e){try{return xO(e)}catch(t){return"Object"}}});var nn=h((R6,wv)=>{"use strict";var PO=je(),TO=Vi(),RO=TypeError;wv.exports=function(e){if(PO(e))return e;throw new RO(TO(e)+" is not a function")}});var Ka=h((O6,Sv)=>{"use strict";var OO=nn(),NO=tn();Sv.exports=function(e,t){var r=e[t];return NO(r)?void 0:OO(r)}});var Ev=h((N6,Iv)=>{"use strict";var Cu=Nt(),Au=je(),xu=Oe(),DO=TypeError;Iv.exports=function(e,t){var r,n;if(t==="string"&&Au(r=e.toString)&&!xu(n=Cu(r,e))||Au(r=e.valueOf)&&!xu(n=Cu(r,e))||t!=="string"&&Au(r=e.toString)&&!xu(n=Cu(r,e)))return n;throw new DO("Can't convert object to primitive value")}});var Mn=h((D6,kv)=>{"use strict";kv.exports=!0});var xv=h((q6,Av)=>{"use strict";var Cv=ve(),qO=Object.defineProperty;Av.exports=function(e,t){try{qO(Cv,e,{value:t,configurable:!0,writable:!0})}catch(r){Cv[e]=t}return t}});var Wi=h((L6,Rv)=>{"use strict";var LO=Mn(),MO=ve(),UO=xv(),Pv="__core-js_shared__",Tv=Rv.exports=MO[Pv]||UO(Pv,{});(Tv.versions||(Tv.versions=[])).push({version:"3.41.0",mode:LO?"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 Pu=h((M6,Nv)=>{"use strict";var Ov=Wi();Nv.exports=function(e,t){return Ov[e]||(Ov[e]=t||{})}});var Un=h((U6,Dv)=>{"use strict";var FO=rn(),jO=Object;Dv.exports=function(e){return jO(FO(e))}});var gt=h((F6,qv)=>{"use strict";var GO=ke(),BO=Un(),JO=GO({}.hasOwnProperty);qv.exports=Object.hasOwn||function(t,r){return JO(BO(t),r)}});var Ya=h((j6,Lv)=>{"use strict";var HO=ke(),$O=0,VO=Math.random(),WO=HO(1 .toString);Lv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+WO(++$O+VO,36)}});var ze=h((G6,Uv)=>{"use strict";var zO=ve(),KO=Pu(),Mv=gt(),YO=Ya(),QO=Iu(),XO=Eu(),Fn=zO.Symbol,Tu=KO("wks"),ZO=XO?Fn.for||Fn:Fn&&Fn.withoutSetter||YO;Uv.exports=function(e){return Mv(Tu,e)||(Tu[e]=QO&&Mv(Fn,e)?Fn[e]:ZO("Symbol."+e)),Tu[e]}});var Bv=h((B6,Gv)=>{"use strict";var e1=Nt(),Fv=Oe(),jv=ku(),t1=Ka(),r1=Ev(),n1=ze(),i1=TypeError,o1=n1("toPrimitive");Gv.exports=function(e,t){if(!Fv(e)||jv(e))return e;var r=t1(e,o1),n;if(r){if(t===void 0&&(t="default"),n=e1(r,e,t),!Fv(n)||jv(n))return n;throw new i1("Can't convert object to primitive value")}return t===void 0&&(t="number"),r1(e,t)}});var Ru=h((J6,Jv)=>{"use strict";var a1=Bv(),s1=ku();Jv.exports=function(e){var t=a1(e,"string");return s1(t)?t:t+""}});var Nu=h((H6,$v)=>{"use strict";var c1=ve(),Hv=Oe(),Ou=c1.document,l1=Hv(Ou)&&Hv(Ou.createElement);$v.exports=function(e){return l1?Ou.createElement(e):{}}});var Du=h(($6,Vv)=>{"use strict";var u1=tt(),d1=ge(),p1=Nu();Vv.exports=!u1&&!d1(function(){return Object.defineProperty(p1("div"),"a",{get:function(){return 7}}).a!==7})});var qu=h(zv=>{"use strict";var f1=tt(),m1=Nt(),h1=yu(),g1=$i(),v1=Rr(),y1=Ru(),b1=gt(),_1=Du(),Wv=Object.getOwnPropertyDescriptor;zv.f=f1?Wv:function(t,r){if(t=v1(t),r=y1(r),_1)try{return Wv(t,r)}catch(n){}if(b1(t,r))return g1(!m1(h1.f,t,r),t[r])}});var Yv=h((W6,Kv)=>{"use strict";var w1=ge(),S1=je(),I1=/#|\.prototype\./,zi=function(e,t){var r=k1[E1(e)];return r===A1?!0:r===C1?!1:S1(t)?w1(t):!!t},E1=zi.normalize=function(e){return String(e).replace(I1,".").toLowerCase()},k1=zi.data={},C1=zi.NATIVE="N",A1=zi.POLYFILL="P";Kv.exports=zi});var Ki=h((z6,Xv)=>{"use strict";var Qv=Hi(),x1=nn(),P1=qn(),T1=Qv(Qv.bind);Xv.exports=function(e,t){return x1(e),t===void 0?e:P1?T1(e,t):function(){return e.apply(t,arguments)}}});var Lu=h((K6,Zv)=>{"use strict";var R1=tt(),O1=ge();Zv.exports=R1&&O1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ur=h((Y6,ey)=>{"use strict";var N1=Oe(),D1=String,q1=TypeError;ey.exports=function(e){if(N1(e))return e;throw new q1(D1(e)+" is not an object")}});var dr=h(ry=>{"use strict";var L1=tt(),M1=Du(),U1=Lu(),Qa=ur(),ty=Ru(),F1=TypeError,Mu=Object.defineProperty,j1=Object.getOwnPropertyDescriptor,Uu="enumerable",Fu="configurable",ju="writable";ry.f=L1?U1?function(t,r,n){if(Qa(t),r=ty(r),Qa(n),typeof t=="function"&&r==="prototype"&&"value"in n&&ju in n&&!n[ju]){var i=j1(t,r);i&&i[ju]&&(t[r]=n.value,n={configurable:Fu in n?n[Fu]:i[Fu],enumerable:Uu in n?n[Uu]:i[Uu],writable:!1})}return Mu(t,r,n)}:Mu:function(t,r,n){if(Qa(t),r=ty(r),Qa(n),M1)try{return Mu(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new F1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var on=h((X6,ny)=>{"use strict";var G1=tt(),B1=dr(),J1=$i();ny.exports=G1?function(e,t,r){return B1.f(e,t,J1(1,r))}:function(e,t,r){return e[t]=r,e}});var ee=h((Z6,oy)=>{"use strict";var Yi=ve(),H1=gu(),$1=Hi(),V1=je(),W1=qu().f,z1=Yv(),jn=Ht(),K1=Ki(),Gn=on(),iy=gt();Wi();var Y1=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return H1(e,this,arguments)};return t.prototype=e.prototype,t};oy.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Yi:i?Yi[r]:Yi[r]&&Yi[r].prototype,s=n?jn:jn[r]||Gn(jn,r,{})[r],c=s.prototype,l,d,u,p,f,m,g,b,v;for(p in t)l=z1(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&iy(a,p),m=s[p],d&&(e.dontCallGetSet?(v=W1(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=K1(f,Yi):e.wrap&&d?b=Y1(f):o&&V1(f)?b=$1(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&Gn(b,"sham",!0),Gn(s,p,b),o&&(u=r+"Prototype",iy(jn,u)||Gn(jn,u,{}),Gn(jn[u],p,f),e.real&&c&&(l||!c[p])&&Gn(c,p,f)))}});var sy=h((e8,ay)=>{"use strict";var Q1=Math.ceil,X1=Math.floor;ay.exports=Math.trunc||function(t){var r=+t;return(r>0?X1:Q1)(r)}});var Qi=h((t8,cy)=>{"use strict";var Z1=sy();cy.exports=function(e){var t=+e;return t!==t||t===0?0:Z1(t)}});var Gu=h((r8,ly)=>{"use strict";var eN=Qi(),tN=Math.min;ly.exports=function(e){var t=eN(e);return t>0?tN(t,9007199254740991):0}});var Bn=h((n8,uy)=>{"use strict";var rN=Gu();uy.exports=function(e){return rN(e.length)}});var Xi=h((i8,dy)=>{"use strict";var nN=lr();dy.exports=Array.isArray||function(t){return nN(t)==="Array"}});var Xa=h((o8,fy)=>{"use strict";var iN=ze(),oN=iN("toStringTag"),py={};py[oN]="z";fy.exports=String(py)==="[object z]"});var Jn=h((a8,my)=>{"use strict";var aN=Xa(),sN=je(),Za=lr(),cN=ze(),lN=cN("toStringTag"),uN=Object,dN=Za(function(){return arguments}())==="Arguments",pN=function(e,t){try{return e[t]}catch(r){}};my.exports=aN?Za:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=pN(t=uN(e),lN))=="string"?r:dN?Za(t):(n=Za(t))==="Object"&&sN(t.callee)?"Arguments":n}});var gy=h((s8,hy)=>{"use strict";var fN=ke(),mN=je(),Bu=Wi(),hN=fN(Function.toString);mN(Bu.inspectSource)||(Bu.inspectSource=function(e){return hN(e)});hy.exports=Bu.inspectSource});var Hu=h((c8,wy)=>{"use strict";var gN=ke(),vN=ge(),vy=je(),yN=Jn(),bN=Ln(),_N=gy(),yy=function(){},by=bN("Reflect","construct"),Ju=/^\s*(?:class|function)\b/,wN=gN(Ju.exec),SN=!Ju.test(yy),Zi=function(t){if(!vy(t))return!1;try{return by(yy,[],t),!0}catch(r){return!1}},_y=function(t){if(!vy(t))return!1;switch(yN(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return SN||!!wN(Ju,_N(t))}catch(r){return!0}};_y.sham=!0;wy.exports=!by||vN(function(){var e;return Zi(Zi.call)||!Zi(Object)||!Zi(function(){e=!0})||e})?_y:Zi});var ky=h((l8,Ey)=>{"use strict";var Sy=Xi(),IN=Hu(),EN=Oe(),kN=ze(),CN=kN("species"),Iy=Array;Ey.exports=function(e){var t;return Sy(e)&&(t=e.constructor,IN(t)&&(t===Iy||Sy(t.prototype))?t=void 0:EN(t)&&(t=t[CN],t===null&&(t=void 0))),t===void 0?Iy:t}});var $u=h((u8,Cy)=>{"use strict";var AN=ky();Cy.exports=function(e,t){return new(AN(e))(t===0?0:t)}});var Nr=h((d8,xy)=>{"use strict";var xN=Ki(),PN=ke(),TN=$a(),RN=Un(),ON=Bn(),NN=$u(),Ay=PN([].push),Or=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(c,l,d,u){for(var p=RN(c),f=TN(p),m=ON(f),g=xN(l,d),b=0,v=u||NN,w=t?v(c,m):r||a?v(c,0):void 0,E,A;m>b;b++)if((s||b in f)&&(E=f[b],A=g(E,b,p),e))if(t)w[b]=A;else if(A)switch(e){case 3:return!0;case 5:return E;case 6:return b;case 2:Ay(w,E)}else switch(e){case 4:return!1;case 7:Ay(w,E)}return o?-1:n||i?i:w}};xy.exports={forEach:Or(0),map:Or(1),filter:Or(2),some:Or(3),every:Or(4),find:Or(5),findIndex:Or(6),filterReject:Or(7)}});var eo=h((p8,Py)=>{"use strict";var DN=ge(),qN=ze(),LN=za(),MN=qN("species");Py.exports=function(e){return LN>=51||!DN(function(){var t=[],r=t.constructor={};return r[MN]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Ty=h(()=>{"use strict";var UN=ee(),FN=Nr().filter,jN=eo(),GN=jN("filter");UN({target:"Array",proto:!0,forced:!GN},{filter:function(t){return FN(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ct=h((h8,Ry)=>{"use strict";var BN=ve(),JN=Ht();Ry.exports=function(e,t){var r=JN[e+"Prototype"],n=r&&r[t];if(n)return n;var i=BN[e],o=i&&i.prototype;return o&&o[t]}});var Ny=h((g8,Oy)=>{"use strict";Ty();var HN=Ct();Oy.exports=HN("Array","filter")});var qy=h((v8,Dy)=>{"use strict";var $N=et(),VN=Ny(),Vu=Array.prototype;Dy.exports=function(e){var t=e.filter;return e===Vu||$N(Vu,e)&&t===Vu.filter?VN:t}});var My=h((y8,Ly)=>{"use strict";var WN=qy();Ly.exports=WN});var Fy=h((b8,Uy)=>{Uy.exports=My()});var to=h((_8,jy)=>{"use strict";var zN=ge();jy.exports=function(e,t){var r=[][e];return!!r&&zN(function(){r.call(null,t||function(){return 1},1)})}});var Gy=h(()=>{"use strict";var KN=ee(),YN=Nr().every,QN=to(),XN=QN("every");KN({target:"Array",proto:!0,forced:!XN},{every:function(t){return YN(this,t,arguments.length>1?arguments[1]:void 0)}})});var Jy=h((I8,By)=>{"use strict";Gy();var ZN=Ct();By.exports=ZN("Array","every")});var $y=h((E8,Hy)=>{"use strict";var eD=et(),tD=Jy(),Wu=Array.prototype;Hy.exports=function(e){var t=e.every;return e===Wu||eD(Wu,e)&&t===Wu.every?tD:t}});var Wy=h((k8,Vy)=>{"use strict";var rD=$y();Vy.exports=rD});var Ky=h((C8,zy)=>{zy.exports=Wy()});var Qy=h((A8,Yy)=>{"use strict";var nD=Nr().forEach,iD=to(),oD=iD("forEach");Yy.exports=oD?[].forEach:function(t){return nD(this,t,arguments.length>1?arguments[1]:void 0)}});var Zy=h(()=>{"use strict";var aD=ee(),Xy=Qy();aD({target:"Array",proto:!0,forced:[].forEach!==Xy},{forEach:Xy})});var tb=h((T8,eb)=>{"use strict";Zy();var sD=Ct();eb.exports=sD("Array","forEach")});var nb=h((R8,rb)=>{"use strict";var cD=tb();rb.exports=cD});var ib=h(()=>{});var ab=h((D8,ob)=>{"use strict";var lD=Jn(),uD=gt(),dD=et(),pD=nb();ib();var zu=Array.prototype,fD={DOMTokenList:!0,NodeList:!0};ob.exports=function(e){var t=e.forEach;return e===zu||dD(zu,e)&&t===zu.forEach||uD(fD,lD(e))?pD:t}});var cb=h((q8,sb)=>{sb.exports=ab()});var ub=h((L8,lb)=>{"use strict";var mD=TypeError,hD=9007199254740991;lb.exports=function(e){if(e>hD)throw mD("Maximum allowed index exceeded");return e}});var Ku=h((M8,db)=>{"use strict";var gD=tt(),vD=dr(),yD=$i();db.exports=function(e,t,r){gD?vD.f(e,t,yD(0,r)):e[t]=r}});var hb=h(()=>{"use strict";var bD=ee(),_D=ge(),wD=Xi(),SD=Oe(),ID=Un(),ED=Bn(),pb=ub(),fb=Ku(),kD=$u(),CD=eo(),AD=ze(),xD=za(),mb=AD("isConcatSpreadable"),PD=xD>=51||!_D(function(){var e=[];return e[mb]=!1,e.concat()[0]!==e}),TD=function(e){if(!SD(e))return!1;var t=e[mb];return t!==void 0?!!t:wD(e)},RD=!PD||!CD("concat");bD({target:"Array",proto:!0,arity:1,forced:RD},{concat:function(t){var r=ID(this),n=kD(r,0),i=0,o,a,s,c,l;for(o=-1,s=arguments.length;o<s;o++)if(l=o===-1?r:arguments[o],TD(l))for(c=ED(l),pb(i+c),a=0;a<c;a++,i++)a in l&&fb(n,i,l[a]);else pb(i+1),fb(n,i++,l);return n.length=i,n}})});var vb=h((j8,gb)=>{"use strict";hb();var OD=Ct();gb.exports=OD("Array","concat")});var bb=h((G8,yb)=>{"use strict";var ND=et(),DD=vb(),Yu=Array.prototype;yb.exports=function(e){var t=e.concat;return e===Yu||ND(Yu,e)&&t===Yu.concat?DD:t}});var wb=h((B8,_b)=>{"use strict";var qD=bb();_b.exports=qD});var Ib=h((J8,Sb)=>{Sb.exports=wb()});var Eb=h(()=>{"use strict";var LD=ee(),MD=Nr().some,UD=to(),FD=UD("some");LD({target:"Array",proto:!0,forced:!FD},{some:function(t){return MD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Cb=h((V8,kb)=>{"use strict";Eb();var jD=Ct();kb.exports=jD("Array","some")});var xb=h((W8,Ab)=>{"use strict";var GD=et(),BD=Cb(),Qu=Array.prototype;Ab.exports=function(e){var t=e.some;return e===Qu||GD(Qu,e)&&t===Qu.some?BD:t}});var Tb=h((z8,Pb)=>{"use strict";var JD=xb();Pb.exports=JD});var Ob=h((K8,Rb)=>{Rb.exports=Tb()});var Db=h((Y8,Nb)=>{"use strict";var ro=ve(),HD=Va(),$D=lr(),es=function(e){return HD.slice(0,e.length)===e};Nb.exports=function(){return es("Bun/")?"BUN":es("Cloudflare-Workers")?"CLOUDFLARE":es("Deno/")?"DENO":es("Node.js/")?"NODE":ro.Bun&&typeof Bun.version=="string"?"BUN":ro.Deno&&typeof Deno.version=="object"?"DENO":$D(ro.process)==="process"?"NODE":ro.window&&ro.document?"BROWSER":"REST"}()});var no=h((Q8,qb)=>{"use strict";var VD=ke();qb.exports=VD([].slice)});var Mb=h((X8,Lb)=>{"use strict";var WD=TypeError;Lb.exports=function(e,t){if(e<t)throw new WD("Not enough arguments");return e}});var Xu=h((Z8,Fb)=>{"use strict";var Ub=ve(),zD=gu(),KD=je(),YD=Db(),QD=Va(),XD=no(),ZD=Mb(),eq=Ub.Function,tq=/MSIE .\./.test(QD)||YD==="BUN"&&function(){var e=Ub.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Fb.exports=function(e,t){var r=t?2:1;return tq?function(n,i){var o=ZD(arguments.length,1)>r,a=KD(n)?n:eq(n),s=o?XD(arguments,r):[],c=o?function(){zD(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var Bb=h(()=>{"use strict";var rq=ee(),Gb=ve(),nq=Xu(),jb=nq(Gb.setInterval,!0);rq({global:!0,bind:!0,forced:Gb.setInterval!==jb},{setInterval:jb})});var $b=h(()=>{"use strict";var iq=ee(),Hb=ve(),oq=Xu(),Jb=oq(Hb.setTimeout,!0);iq({global:!0,bind:!0,forced:Hb.setTimeout!==Jb},{setTimeout:Jb})});var Vb=h(()=>{"use strict";Bb();$b()});var zb=h((aK,Wb)=>{"use strict";Vb();var aq=Ht();Wb.exports=aq.setTimeout});var Yb=h((sK,Kb)=>{Kb.exports=zb()});function oo(e,t){we.__h&&we.__h(oe,e,io||t),io=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function rs(e){return io=1,a_(s_,e)}function a_(e,t,r){var n=oo(an++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):s_(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,c,l){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,c,l);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,c,l)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},oe.shouldComponentUpdate=i}return n.__N||n.__}function ao(e,t){var r=oo(an++,3);!we.__s&&td(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function Hn(e,t){var r=oo(an++,4);!we.__s&&td(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function so(e){return io=5,co(function(){return{current:e}},[])}function co(e,t){var r=oo(an++,7);return td(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function $n(e,t){return io=8,co(function(){return e},t)}function Vn(e){var t=oe.context[e.__c],r=oo(an++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function sq(){for(var e;e=o_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ts),e.__H.__h.forEach(ed),e.__H.__h=[]}catch(t){e.__H.__h=[],we.__e(t,e.__v)}}function cq(e){var t,r=function(){clearTimeout(n),i_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);i_&&(t=requestAnimationFrame(r))}function ts(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function ed(e){var t=oe;e.__c=e.__(),oe=t}function td(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function s_(e,t){return typeof t=="function"?t(e):t}var an,oe,Zu,Qb,io,o_,we,Xb,Zb,e_,t_,r_,n_,i_,rd=C(()=>{Dn();io=0,o_=[],we=N,Xb=we.__b,Zb=we.__r,e_=we.diffed,t_=we.__c,r_=we.unmount,n_=we.__;we.__b=function(e){oe=null,Xb&&Xb(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),n_&&n_(e,t)},we.__r=function(e){Zb&&Zb(e),an=0;var t=(oe=e.__c).__H;t&&(Zu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ts),t.__h.forEach(ed),t.__h=[],an=0)),Zu=oe},we.diffed=function(e){e_&&e_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(o_.push(t)!==1&&Qb===we.requestAnimationFrame||((Qb=we.requestAnimationFrame)||cq)(sq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Zu=oe=null},we.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ts),r.__h=r.__h.filter(function(n){return!n.__||ed(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],we.__e(n,r.__v)}}),t_&&t_(e,t)},we.unmount=function(e){r_&&r_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ts(n)}catch(i){t=i}}),r.__H=void 0,t&&we.__e(t,r.__v))};i_=typeof requestAnimationFrame=="function"});function v_(e,t){for(var r in t)e[r]=t[r];return e}function id(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function c_(e,t){this.props=e,this.context=t}function ad(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:id(this.props,i)}function n(i){return this.shouldComponentUpdate=r,We(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function sd(e){function t(r){var n=v_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=lq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function y_(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=v_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return y_(n,t,r)})),e}function b_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return b_(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function nd(){this.__u=0,this.o=null,this.__b=null}function __(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ns(){this.i=null,this.l=null}function cd(e,t,r){return t.__k==null&&(t.textContent=""),Tr(e,t),typeof r=="function"&&r(),e?e.__c:null}function vq(){}function yq(){return this.cancelBubble}function bq(){return this.defaultPrevented}var od,l_,lq,uq,u_,d_,dq,pq,fq,mq,hq,gq,p_,w_,_q,f_,m_,h_,is=C(()=>{Dn();Dn();rd();rd();od=Hn;(c_.prototype=new ht).isPureReactComponent=!0,c_.prototype.shouldComponentUpdate=function(e,t){return id(this.props,e)||id(this.state,t)};l_=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l_&&l_(e)};lq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;uq=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}uq(e,t,r,n)};u_=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),u_&&u_(e)},(nd.prototype=new ht).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=__(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=b_(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},nd.prototype.componentWillUnmount=function(){this.o=[]},nd.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=y_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&We(Fe,null,e.fallback);return i&&(i.__u&=-33),[We(Fe,null,t.__a?null:e.children),i]};d_=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(ns.prototype=new ht).__a=function(e){var t=this,r=__(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),d_(t,e,n)):i()};r?r(o):o()}},ns.prototype.render=function(e){this.i=null,this.l=new Map;var t=Bi(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},ns.prototype.componentDidUpdate=ns.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){d_(e,r,t)})};dq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,pq=/^(?: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]/,fq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,mq=/[A-Z0-9]/g,hq=typeof document!="undefined",gq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ht.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ht.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});p_=N.event;N.event=function(e){return p_&&(e=p_(e)),e.persist=vq,e.isPropagationStopped=yq,e.isDefaultPrevented=bq,e.nativeEvent=e};_q={enumerable:!1,configurable:!0,get:function(){return this.class}},f_=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||hq&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||gq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":fq.test(a)&&(a=c):c=a="oninput":o&&pq.test(a)?a=a.replace(mq,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&i[a=c]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Bi(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Bi(r.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",_q)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=dq,f_&&f_(e)};m_=N.__r;N.__r=function(e){m_&&m_(e),w_=e.__c};h_=N.diffed;N.diffed=function(e){h_&&h_(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),w_=null}});var ud=h(()=>{"use strict";var Sq=ee(),ld=ve();Sq({global:!0,forced:ld.globalThis!==ld},{globalThis:ld})});var S_=h(()=>{"use strict";ud()});var E_=h((IK,I_)=>{"use strict";ud();I_.exports=ve()});var C_=h((EK,k_)=>{"use strict";var Iq=E_();k_.exports=Iq});var x_=h((kK,A_)=>{"use strict";var Eq=C_();A_.exports=Eq});var T_=h((CK,P_)=>{"use strict";S_();var kq=x_();P_.exports=kq});var O_=h((AK,R_)=>{"use strict";R_.exports=T_()});var D_=h((xK,N_)=>{N_.exports=O_()});var q_=h(()=>{"use strict";var Cq=ee(),Aq=Xi();Cq({target:"Array",stat:!0},{isArray:Aq})});var M_=h((RK,L_)=>{"use strict";q_();var xq=Ht();L_.exports=xq.Array.isArray});var F_=h((OK,U_)=>{"use strict";var Pq=M_();U_.exports=Pq});var G_=h((NK,j_)=>{j_.exports=F_()});var J_=h((DK,B_)=>{"use strict";B_.exports=function(){}});var sn=h((qK,H_)=>{"use strict";H_.exports={}});var dd=h((LK,V_)=>{"use strict";var Tq=ve(),Rq=je(),$_=Tq.WeakMap;V_.exports=Rq($_)&&/native code/.test(String($_))});var os=h((MK,z_)=>{"use strict";var Oq=Pu(),Nq=Ya(),W_=Oq("keys");z_.exports=function(e){return W_[e]||(W_[e]=Nq(e))}});var lo=h((UK,K_)=>{"use strict";K_.exports={}});var ln=h((FK,X_)=>{"use strict";var Dq=dd(),Q_=ve(),qq=Oe(),Lq=on(),pd=gt(),fd=Wi(),Mq=os(),Uq=lo(),Y_="Object already initialized",md=Q_.TypeError,Fq=Q_.WeakMap,as,uo,ss,jq=function(e){return ss(e)?uo(e):as(e,{})},Gq=function(e){return function(t){var r;if(!qq(t)||(r=uo(t)).type!==e)throw new md("Incompatible receiver, "+e+" required");return r}};Dq||fd.state?(qt=fd.state||(fd.state=new Fq),qt.get=qt.get,qt.has=qt.has,qt.set=qt.set,as=function(e,t){if(qt.has(e))throw new md(Y_);return t.facade=e,qt.set(e,t),t},uo=function(e){return qt.get(e)||{}},ss=function(e){return qt.has(e)}):(cn=Mq("state"),Uq[cn]=!0,as=function(e,t){if(pd(e,cn))throw new md(Y_);return t.facade=e,Lq(e,cn,t),t},uo=function(e){return pd(e,cn)?e[cn]:{}},ss=function(e){return pd(e,cn)});var qt,cn;X_.exports={set:as,get:uo,has:ss,enforce:jq,getterFor:Gq}});var vd=h((jK,ew)=>{"use strict";var hd=tt(),Bq=gt(),Z_=Function.prototype,Jq=hd&&Object.getOwnPropertyDescriptor,gd=Bq(Z_,"name"),Hq=gd&&(function(){}).name==="something",$q=gd&&(!hd||hd&&Jq(Z_,"name").configurable);ew.exports={EXISTS:gd,PROPER:Hq,CONFIGURABLE:$q}});var yd=h((GK,tw)=>{"use strict";var Vq=Qi(),Wq=Math.max,zq=Math.min;tw.exports=function(e,t){var r=Vq(e);return r<0?Wq(r+t,0):zq(r,t)}});var bd=h((BK,nw)=>{"use strict";var Kq=Rr(),Yq=yd(),Qq=Bn(),rw=function(e){return function(t,r,n){var i=Kq(t),o=Qq(i);if(o===0)return!e&&-1;var a=Yq(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};nw.exports={includes:rw(!0),indexOf:rw(!1)}});var wd=h((JK,ow)=>{"use strict";var Xq=ke(),_d=gt(),Zq=Rr(),eL=bd().indexOf,tL=lo(),iw=Xq([].push);ow.exports=function(e,t){var r=Zq(e),n=0,i=[],o;for(o in r)!_d(tL,o)&&_d(r,o)&&iw(i,o);for(;t.length>n;)_d(r,o=t[n++])&&(~eL(i,o)||iw(i,o));return i}});var cs=h((HK,aw)=>{"use strict";aw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Sd=h(($K,sw)=>{"use strict";var rL=wd(),nL=cs();sw.exports=Object.keys||function(t){return rL(t,nL)}});var lw=h(cw=>{"use strict";var iL=tt(),oL=Lu(),aL=dr(),sL=ur(),cL=Rr(),lL=Sd();cw.f=iL&&!oL?Object.defineProperties:function(t,r){sL(t);for(var n=cL(r),i=lL(r),o=i.length,a=0,s;o>a;)aL.f(t,s=i[a++],n[s]);return t}});var dw=h((WK,uw)=>{"use strict";var uL=Ln();uw.exports=uL("document","documentElement")});var po=h((zK,yw)=>{"use strict";var dL=ur(),pL=lw(),pw=cs(),fL=lo(),mL=dw(),hL=Nu(),gL=os(),fw=">",mw="<",Ed="prototype",kd="script",gw=gL("IE_PROTO"),Id=function(){},vw=function(e){return mw+kd+fw+e+mw+"/"+kd+fw},hw=function(e){e.write(vw("")),e.close();var t=e.parentWindow.Object;return e=null,t},vL=function(){var e=hL("iframe"),t="java"+kd+":",r;return e.style.display="none",mL.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(vw("document.F=Object")),r.close(),r.F},ls,us=function(){try{ls=new ActiveXObject("htmlfile")}catch(t){}us=typeof document!="undefined"?document.domain&&ls?hw(ls):vL():hw(ls);for(var e=pw.length;e--;)delete us[Ed][pw[e]];return us()};fL[gw]=!0;yw.exports=Object.create||function(t,r){var n;return t!==null?(Id[Ed]=dL(t),n=new Id,Id[Ed]=null,n[gw]=t):n=us(),r===void 0?n:pL.f(n,r)}});var _w=h((KK,bw)=>{"use strict";var yL=ge();bw.exports=!yL(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Ad=h((YK,Sw)=>{"use strict";var bL=gt(),_L=je(),wL=Un(),SL=os(),IL=_w(),ww=SL("IE_PROTO"),Cd=Object,EL=Cd.prototype;Sw.exports=IL?Cd.getPrototypeOf:function(e){var t=wL(e);if(bL(t,ww))return t[ww];var r=t.constructor;return _L(r)&&t instanceof r?r.prototype:t instanceof Cd?EL:null}});var ds=h((QK,Iw)=>{"use strict";var kL=on();Iw.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:kL(e,t,r),e}});var Rd=h((XK,Cw)=>{"use strict";var CL=ge(),AL=je(),xL=Oe(),PL=po(),Ew=Ad(),TL=ds(),RL=ze(),OL=Mn(),Td=RL("iterator"),kw=!1,pr,xd,Pd;[].keys&&(Pd=[].keys(),"next"in Pd?(xd=Ew(Ew(Pd)),xd!==Object.prototype&&(pr=xd)):kw=!0);var NL=!xL(pr)||CL(function(){var e={};return pr[Td].call(e)!==e});NL?pr={}:OL&&(pr=PL(pr));AL(pr[Td])||TL(pr,Td,function(){return this});Cw.exports={IteratorPrototype:pr,BUGGY_SAFARI_ITERATORS:kw}});var xw=h((ZK,Aw)=>{"use strict";var DL=Xa(),qL=Jn();Aw.exports=DL?{}.toString:function(){return"[object "+qL(this)+"]"}});var fo=h((e7,Tw)=>{"use strict";var LL=Xa(),ML=dr().f,UL=on(),FL=gt(),jL=xw(),GL=ze(),Pw=GL("toStringTag");Tw.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(FL(i,Pw)||ML(i,Pw,{configurable:!0,value:t}),n&&!LL&&UL(i,"toString",jL))}});var Ow=h((t7,Rw)=>{"use strict";var BL=Rd().IteratorPrototype,JL=po(),HL=$i(),$L=fo(),VL=sn(),WL=function(){return this};Rw.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=JL(BL,{next:HL(+!n,r)}),$L(e,i,!1,!0),VL[i]=WL,e}});var Dw=h((r7,Nw)=>{"use strict";var zL=ke(),KL=nn();Nw.exports=function(e,t,r){try{return zL(KL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Lw=h((n7,qw)=>{"use strict";var YL=Oe();qw.exports=function(e){return YL(e)||e===null}});var Uw=h((i7,Mw)=>{"use strict";var QL=Lw(),XL=String,ZL=TypeError;Mw.exports=function(e){if(QL(e))return e;throw new ZL("Can't set "+XL(e)+" as a prototype")}});var jw=h((o7,Fw)=>{"use strict";var eM=Dw(),tM=Oe(),rM=rn(),nM=Uw();Fw.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=eM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return rM(i),nM(o),tM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var ms=h((a7,Yw)=>{"use strict";var iM=ee(),oM=Nt(),ps=Mn(),zw=vd(),aM=je(),sM=Ow(),Gw=Ad(),Bw=jw(),cM=fo(),lM=on(),Od=ds(),uM=ze(),Jw=sn(),Kw=Rd(),dM=zw.PROPER,pM=zw.CONFIGURABLE,Hw=Kw.IteratorPrototype,fs=Kw.BUGGY_SAFARI_ITERATORS,mo=uM("iterator"),$w="keys",ho="values",Vw="entries",Ww=function(){return this};Yw.exports=function(e,t,r,n,i,o,a){sM(r,t,n);var s=function(v){if(v===i&&p)return p;if(!fs&&v&&v in d)return d[v];switch(v){case $w:return function(){return new r(this,v)};case ho:return function(){return new r(this,v)};case Vw:return function(){return new r(this,v)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[mo]||d["@@iterator"]||i&&d[i],p=!fs&&u||s(i),f=t==="Array"&&d.entries||u,m,g,b;if(f&&(m=Gw(f.call(new e)),m!==Object.prototype&&m.next&&(!ps&&Gw(m)!==Hw&&(Bw?Bw(m,Hw):aM(m[mo])||Od(m,mo,Ww)),cM(m,c,!0,!0),ps&&(Jw[c]=Ww))),dM&&i===ho&&u&&u.name!==ho&&(!ps&&pM?lM(d,"name",ho):(l=!0,p=function(){return oM(u,this)})),i)if(g={values:s(ho),keys:o?p:s($w),entries:s(Vw)},a)for(b in g)(fs||l||!(b in d))&&Od(d,b,g[b]);else iM({target:t,proto:!0,forced:fs||l},g);return(!ps||a)&&d[mo]!==p&&Od(d,mo,p,{name:i}),Jw[t]=p,g}});var hs=h((s7,Qw)=>{"use strict";Qw.exports=function(e,t){return{value:e,done:t}}});var vs=h((c7,rS)=>{"use strict";var fM=Rr(),Nd=J_(),Xw=sn(),eS=ln(),mM=dr().f,hM=ms(),gs=hs(),gM=Mn(),vM=tt(),tS="Array Iterator",yM=eS.set,bM=eS.getterFor(tS);rS.exports=hM(Array,"Array",function(e,t){yM(this,{type:tS,target:fM(e),index:0,kind:t})},function(){var e=bM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,gs(void 0,!0);switch(e.kind){case"keys":return gs(r,!1);case"values":return gs(t[r],!1)}return gs([r,t[r]],!1)},"values");var Zw=Xw.Arguments=Xw.Array;Nd("keys");Nd("values");Nd("entries");if(!gM&&vM&&Zw.name!=="values")try{mM(Zw,"name",{value:"values"})}catch(e){}});var Dd=h(()=>{});var qd=h((d7,nS)=>{"use strict";var _M=ge();nS.exports=!_M(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ys=h((p7,iS)=>{"use strict";var wM=ds();iS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:wM(e,n,t[n],r);return e}});var Ld=h(oS=>{"use strict";var SM=wd(),IM=cs(),EM=IM.concat("length","prototype");oS.f=Object.getOwnPropertyNames||function(t){return SM(t,EM)}});var lS=h((m7,cS)=>{"use strict";var kM=lr(),CM=Rr(),aS=Ld().f,AM=no(),sS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xM=function(e){try{return aS(e)}catch(t){return AM(sS)}};cS.exports.f=function(t){return sS&&kM(t)==="Window"?xM(t):aS(CM(t))}});var dS=h((h7,uS)=>{"use strict";var PM=ge();uS.exports=PM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var mS=h((g7,fS)=>{"use strict";var TM=ge(),RM=Oe(),OM=lr(),pS=dS(),bs=Object.isExtensible,NM=TM(function(){bs(1)});fS.exports=NM||pS?function(t){return!RM(t)||pS&&OM(t)==="ArrayBuffer"?!1:bs?bs(t):!0}:bs});var go=h((v7,vS)=>{"use strict";var DM=ee(),qM=ke(),LM=lo(),MM=Oe(),Md=gt(),UM=dr().f,hS=Ld(),FM=lS(),Ud=mS(),jM=Ya(),GM=qd(),gS=!1,fr=jM("meta"),BM=0,Fd=function(e){UM(e,fr,{value:{objectID:"O"+BM++,weakData:{}}})},JM=function(e,t){if(!MM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Md(e,fr)){if(!Ud(e))return"F";if(!t)return"E";Fd(e)}return e[fr].objectID},HM=function(e,t){if(!Md(e,fr)){if(!Ud(e))return!0;if(!t)return!1;Fd(e)}return e[fr].weakData},$M=function(e){return GM&&gS&&Ud(e)&&!Md(e,fr)&&Fd(e),e},VM=function(){WM.enable=function(){},gS=!0;var e=hS.f,t=qM([].splice),r={};r[fr]=1,e(r).length&&(hS.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===fr){t(i,o,1);break}return i},DM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:FM.f}))},WM=vS.exports={enable:VM,fastKey:JM,getWeakData:HM,onFreeze:$M};LM[fr]=!0});var bS=h((y7,yS)=>{"use strict";var zM=ze(),KM=sn(),YM=zM("iterator"),QM=Array.prototype;yS.exports=function(e){return e!==void 0&&(KM.Array===e||QM[YM]===e)}});var jd=h((b7,wS)=>{"use strict";var XM=Jn(),_S=Ka(),ZM=tn(),eU=sn(),tU=ze(),rU=tU("iterator");wS.exports=function(e){if(!ZM(e))return _S(e,rU)||_S(e,"@@iterator")||eU[XM(e)]}});var IS=h((_7,SS)=>{"use strict";var nU=Nt(),iU=nn(),oU=ur(),aU=Vi(),sU=jd(),cU=TypeError;SS.exports=function(e,t){var r=arguments.length<2?sU(e):t;if(iU(r))return oU(nU(r,e));throw new cU(aU(e)+" is not iterable")}});var _s=h((w7,kS)=>{"use strict";var lU=Nt(),ES=ur(),uU=Ka();kS.exports=function(e,t,r){var n,i;ES(e);try{if(n=uU(e,"return"),!n){if(t==="throw")throw r;return r}n=lU(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ES(n),r}});var Ss=h((S7,PS)=>{"use strict";var dU=Ki(),pU=Nt(),fU=ur(),mU=Vi(),hU=bS(),gU=Bn(),CS=et(),vU=IS(),yU=jd(),AS=_s(),bU=TypeError,ws=function(e,t){this.stopped=e,this.result=t},xS=ws.prototype;PS.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),c=dU(t,n),l,d,u,p,f,m,g,b=function(w){return l&&AS(l,"normal",w),new ws(!0,w)},v=function(w){return i?(fU(w),s?c(w[0],w[1],b):c(w[0],w[1])):s?c(w,b):c(w)};if(o)l=e.iterator;else if(a)l=e;else{if(d=yU(e),!d)throw new bU(mU(e)+" is not iterable");if(hU(d)){for(u=0,p=gU(e);p>u;u++)if(f=v(e[u]),f&&CS(xS,f))return f;return new ws(!1)}l=vU(e,d)}for(m=o?e.next:l.next;!(g=pU(m,l)).done;){try{f=v(g.value)}catch(w){AS(l,"throw",w)}if(typeof f=="object"&&f&&CS(xS,f))return f}return new ws(!1)}});var Is=h((I7,TS)=>{"use strict";var _U=et(),wU=TypeError;TS.exports=function(e,t){if(_U(t,e))return e;throw new wU("Incorrect invocation")}});var Gd=h((E7,OS)=>{"use strict";var SU=ee(),IU=ve(),EU=go(),kU=ge(),CU=on(),AU=Ss(),xU=Is(),PU=je(),TU=Oe(),RU=tn(),OU=fo(),NU=dr().f,DU=Nr().forEach,qU=tt(),RS=ln(),LU=RS.set,MU=RS.getterFor;OS.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=IU[e],s=a&&a.prototype,c={},l;if(!qU||!PU(a)||!(i||s.forEach&&!kU(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),EU.enable();else{l=t(function(p,f){LU(xU(p,d),{type:e,collection:new a}),RU(f)||AU(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=MU(e);DU(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&CU(d,p,function(m,g){var b=u(this).collection;if(!f&&i&&!TU(m))return p==="get"?void 0:!1;var v=b[p](m===0?0:m,g);return f?this:v})}),i||NU(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return OU(l,e,!1,!0),c[e]=l,SU({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var FS=h((k7,US)=>{"use strict";var UU=ke(),NS=ys(),Es=go().getWeakData,FU=Is(),jU=ur(),GU=tn(),Bd=Oe(),BU=Ss(),qS=Nr(),DS=gt(),LS=ln(),JU=LS.set,HU=LS.getterFor,$U=qS.find,VU=qS.findIndex,WU=UU([].splice),zU=0,ks=function(e){return e.frozen||(e.frozen=new MS)},MS=function(){this.entries=[]},Jd=function(e,t){return $U(e.entries,function(r){return r[0]===t})};MS.prototype={get:function(e){var t=Jd(this,e);if(t)return t[1]},has:function(e){return!!Jd(this,e)},set:function(e,t){var r=Jd(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=VU(this.entries,function(r){return r[0]===e});return~t&&WU(this.entries,t,1),!!~t}};US.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){FU(c,o),JU(c,{type:t,id:zU++,frozen:null}),GU(l)||BU(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=HU(t),s=function(c,l,d){var u=a(c),p=Es(jU(l),!0);return p===!0?ks(u).set(l,d):p[u.id]=d,c};return NS(o,{delete:function(c){var l=a(this);if(!Bd(c))return!1;var d=Es(c);return d===!0?ks(l).delete(c):d&&DS(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!Bd(l))return!1;var u=Es(l);return u===!0?ks(d).has(l):u&&DS(u,d.id)}}),NS(o,r?{get:function(l){var d=a(this);if(Bd(l)){var u=Es(l);if(u===!0)return ks(d).get(l);if(u)return u[d.id]}},set:function(l,d){return s(this,l,d)}}:{add:function(l){return s(this,l,!0)}}),i}}});var WS=h(()=>{"use strict";var KU=qd(),jS=ve(),Ps=ke(),GS=ys(),YU=go(),QU=Gd(),BS=FS(),Cs=Oe(),As=ln().enforce,XU=ge(),ZU=dd(),bo=Object,eF=Array.isArray,xs=bo.isExtensible,JS=bo.isFrozen,tF=bo.isSealed,HS=bo.freeze,rF=bo.seal,nF=!jS.ActiveXObject&&"ActiveXObject"in jS,vo,$S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},VS=QU("WeakMap",$S,BS),Wn=VS.prototype,Ts=Ps(Wn.set),iF=function(){return KU&&XU(function(){var e=HS([]);return Ts(new VS,e,1),!JS(e)})};ZU&&(nF?(vo=BS.getConstructor($S,"WeakMap",!0),YU.enable(),Hd=Ps(Wn.delete),yo=Ps(Wn.has),$d=Ps(Wn.get),GS(Wn,{delete:function(e){if(Cs(e)&&!xs(e)){var t=As(this);return t.frozen||(t.frozen=new vo),Hd(this,e)||t.frozen.delete(e)}return Hd(this,e)},has:function(t){if(Cs(t)&&!xs(t)){var r=As(this);return r.frozen||(r.frozen=new vo),yo(this,t)||r.frozen.has(t)}return yo(this,t)},get:function(t){if(Cs(t)&&!xs(t)){var r=As(this);return r.frozen||(r.frozen=new vo),yo(this,t)?$d(this,t):r.frozen.get(t)}return $d(this,t)},set:function(t,r){if(Cs(t)&&!xs(t)){var n=As(this);n.frozen||(n.frozen=new vo),yo(this,t)?Ts(this,t,r):n.frozen.set(t,r)}else Ts(this,t,r);return this}})):iF()&&GS(Wn,{set:function(t,r){var n;return eF(t)&&(JS(t)?n=HS:tF(t)&&(n=rF)),Ts(this,t,r),n&&n(t),this}}));var Hd,yo,$d});var zS=h(()=>{"use strict";WS()});var YS=h((T7,KS)=>{"use strict";vs();Dd();zS();var oF=Ht();KS.exports=oF.WeakMap});var XS=h((R7,QS)=>{"use strict";QS.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 Vd=h(()=>{"use strict";vs();var aF=XS(),sF=ve(),cF=fo(),ZS=sn();for(Rs in aF)cF(sF[Rs],Rs),ZS[Rs]=ZS.Array;var Rs});var tI=h((D7,eI)=>{"use strict";var lF=YS();Vd();eI.exports=lF});var nI=h((q7,rI)=>{rI.exports=tI()});var oI=h(()=>{"use strict";var uF=ee(),dF=Hi(),pF=bd().indexOf,fF=to(),Wd=dF([].indexOf),iI=!!Wd&&1/Wd([1],1,-0)<0,mF=iI||!fF("indexOf");uF({target:"Array",proto:!0,forced:mF},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return iI?Wd(this,t,r)||0:pF(this,t,r)}})});var sI=h((U7,aI)=>{"use strict";oI();var hF=Ct();aI.exports=hF("Array","indexOf")});var lI=h((F7,cI)=>{"use strict";var gF=et(),vF=sI(),zd=Array.prototype;cI.exports=function(e){var t=e.indexOf;return e===zd||gF(zd,e)&&t===zd.indexOf?vF:t}});var dI=h((j7,uI)=>{"use strict";var yF=lI();uI.exports=yF});var fI=h((G7,pI)=>{pI.exports=dI()});var mI=h(()=>{"use strict";var bF=ee(),_F=Nr().map,wF=eo(),SF=wF("map");bF({target:"Array",proto:!0,forced:!SF},{map:function(t){return _F(this,t,arguments.length>1?arguments[1]:void 0)}})});var gI=h((H7,hI)=>{"use strict";mI();var IF=Ct();hI.exports=IF("Array","map")});var yI=h(($7,vI)=>{"use strict";var EF=et(),kF=gI(),Kd=Array.prototype;vI.exports=function(e){var t=e.map;return e===Kd||EF(Kd,e)&&t===Kd.map?kF:t}});var _I=h((V7,bI)=>{"use strict";var CF=yI();bI.exports=CF});var SI=h((W7,wI)=>{wI.exports=_I()});var II=h(()=>{"use strict";var AF=ee(),xF=tt(),PF=po();AF({target:"Object",stat:!0,sham:!xF},{create:PF})});var kI=h((Y7,EI)=>{"use strict";II();var TF=Ht(),RF=TF.Object;EI.exports=function(t,r){return RF.create(t,r)}});var AI=h((Q7,CI)=>{"use strict";var OF=kI();CI.exports=OF});var PI=h((X7,xI)=>{xI.exports=AI()});var Yd=h((Z7,TI)=>{"use strict";var NF=dr();TI.exports=function(e,t,r){return NF.f(e,t,r)}});var NI=h((eY,OI)=>{"use strict";var DF=Ln(),qF=Yd(),LF=ze(),MF=tt(),RI=LF("species");OI.exports=function(e){var t=DF(e);MF&&t&&!t[RI]&&qF(t,RI,{configurable:!0,get:function(){return this}})}});var jI=h((tY,FI)=>{"use strict";var DI=po(),UF=Yd(),qI=ys(),FF=Ki(),jF=Is(),GF=tn(),BF=Ss(),JF=ms(),Os=hs(),HF=NI(),_o=tt(),LI=go().fastKey,UI=ln(),MI=UI.set,Qd=UI.getterFor;FI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){jF(l,o),MI(l,{type:t,index:DI(null),first:null,last:null,size:0}),_o||(l.size=0),GF(d)||BF(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Qd(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,g;return f?f.value=u:(p.last=f={index:g=LI(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),_o?p.size++:l.size++,g!=="F"&&(p.index[g]=f)),l},c=function(l,d){var u=a(l),p=LI(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return qI(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=DI(null),_o?u.size=0:d.size=0},delete:function(l){var d=this,u=a(d),p=c(d,l);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),_o?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=FF(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!c(this,d)}}),qI(o,r?{get:function(d){var u=c(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),_o&&UF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Qd(t),o=Qd(n);JF(e,t,function(a,s){MI(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,c=a.last;c&&c.removed;)c=c.previous;return!a.target||!(a.last=c=c?c.next:a.state.first)?(a.target=null,Os(void 0,!0)):Os(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),HF(t)}}});var GI=h(()=>{"use strict";var $F=Gd(),VF=jI();$F("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},VF)});var BI=h(()=>{"use strict";GI()});var Dr=h((aY,JI)=>{"use strict";var WF=Vi(),zF=TypeError;JI.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new zF(WF(e)+" is not a set")}});var $I=h((sY,HI)=>{"use strict";HI.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var qr=h((cY,WI)=>{"use strict";var KF=Ln(),Xd=$I(),VI=KF("Set"),YF=VI.prototype;WI.exports={Set:VI,add:Xd("add",1),has:Xd("has",1),remove:Xd("delete",1),proto:YF}});var Lr=h((lY,zI)=>{"use strict";var QF=Nt();zI.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=QF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var zn=h((uY,KI)=>{"use strict";var XF=Lr();KI.exports=function(e,t,r){return r?XF(e.keys(),t,!0):e.forEach(t)}});var Ns=h((dY,QI)=>{"use strict";var YI=qr(),ZF=zn(),ej=YI.Set,tj=YI.add;QI.exports=function(e){var t=new ej;return ZF(e,function(r){tj(t,r)}),t}});var Kn=h((pY,XI)=>{"use strict";XI.exports=function(e){return e.size}});var e0=h((fY,ZI)=>{"use strict";ZI.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Mr=h((mY,a0)=>{"use strict";var t0=nn(),i0=ur(),r0=Nt(),rj=Qi(),nj=e0(),n0="Invalid size",ij=RangeError,oj=TypeError,aj=Math.max,o0=function(e,t){this.set=e,this.size=aj(t,0),this.has=t0(e.has),this.keys=t0(e.keys)};o0.prototype={getIterator:function(){return nj(i0(r0(this.keys,this.set)))},includes:function(e){return r0(this.has,this.set,e)}};a0.exports=function(e){i0(e);var t=+e.size;if(t!==t)throw new oj(n0);var r=rj(t);if(r<0)throw new ij(n0);return new o0(e,r)}});var u0=h((hY,l0)=>{"use strict";var sj=Dr(),c0=qr(),cj=Ns(),lj=Kn(),uj=Mr(),dj=zn(),pj=Lr(),fj=c0.has,s0=c0.remove;l0.exports=function(t){var r=sj(this),n=uj(t),i=cj(r);return lj(r)<=n.size?dj(r,function(o){n.includes(o)&&s0(i,o)}):pj(n.getIterator(),function(o){fj(r,o)&&s0(i,o)}),i}});var Ur=h((gY,d0)=>{"use strict";d0.exports=function(){return!1}});var p0=h(()=>{"use strict";var mj=ee(),hj=u0(),gj=Ur(),vj=!gj("difference",function(e){return e.size===0});mj({target:"Set",proto:!0,real:!0,forced:vj},{difference:hj})});var h0=h((bY,m0)=>{"use strict";var yj=Dr(),Zd=qr(),bj=Kn(),_j=Mr(),wj=zn(),Sj=Lr(),Ij=Zd.Set,f0=Zd.add,Ej=Zd.has;m0.exports=function(t){var r=yj(this),n=_j(t),i=new Ij;return bj(r)>n.size?Sj(n.getIterator(),function(o){Ej(r,o)&&f0(i,o)}):wj(r,function(o){n.includes(o)&&f0(i,o)}),i}});var g0=h(()=>{"use strict";var kj=ee(),Cj=ge(),Aj=h0(),xj=Ur(),Pj=!xj("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||Cj(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});kj({target:"Set",proto:!0,real:!0,forced:Pj},{intersection:Aj})});var y0=h((SY,v0)=>{"use strict";var Tj=Dr(),Rj=qr().has,Oj=Kn(),Nj=Mr(),Dj=zn(),qj=Lr(),Lj=_s();v0.exports=function(t){var r=Tj(this),n=Nj(t);if(Oj(r)<=n.size)return Dj(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return qj(i,function(o){if(Rj(r,o))return Lj(i,"normal",!1)})!==!1}});var b0=h(()=>{"use strict";var Mj=ee(),Uj=y0(),Fj=Ur(),jj=!Fj("isDisjointFrom",function(e){return!e});Mj({target:"Set",proto:!0,real:!0,forced:jj},{isDisjointFrom:Uj})});var w0=h((kY,_0)=>{"use strict";var Gj=Dr(),Bj=Kn(),Jj=zn(),Hj=Mr();_0.exports=function(t){var r=Gj(this),n=Hj(t);return Bj(r)>n.size?!1:Jj(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var S0=h(()=>{"use strict";var $j=ee(),Vj=w0(),Wj=Ur(),zj=!Wj("isSubsetOf",function(e){return e});$j({target:"Set",proto:!0,real:!0,forced:zj},{isSubsetOf:Vj})});var E0=h((xY,I0)=>{"use strict";var Kj=Dr(),Yj=qr().has,Qj=Kn(),Xj=Mr(),Zj=Lr(),eG=_s();I0.exports=function(t){var r=Kj(this),n=Xj(t);if(Qj(r)<n.size)return!1;var i=n.getIterator();return Zj(i,function(o){if(!Yj(r,o))return eG(i,"normal",!1)})!==!1}});var k0=h(()=>{"use strict";var tG=ee(),rG=E0(),nG=Ur(),iG=!nG("isSupersetOf",function(e){return!e});tG({target:"Set",proto:!0,real:!0,forced:iG},{isSupersetOf:rG})});var A0=h((RY,C0)=>{"use strict";var oG=Dr(),ep=qr(),aG=Ns(),sG=Mr(),cG=Lr(),lG=ep.add,uG=ep.has,dG=ep.remove;C0.exports=function(t){var r=oG(this),n=sG(t).getIterator(),i=aG(r);return cG(n,function(o){uG(r,o)?dG(i,o):lG(i,o)}),i}});var x0=h(()=>{"use strict";var pG=ee(),fG=A0(),mG=Ur();pG({target:"Set",proto:!0,real:!0,forced:!mG("symmetricDifference")},{symmetricDifference:fG})});var T0=h((DY,P0)=>{"use strict";var hG=Dr(),gG=qr().add,vG=Ns(),yG=Mr(),bG=Lr();P0.exports=function(t){var r=hG(this),n=yG(t).getIterator(),i=vG(r);return bG(n,function(o){gG(i,o)}),i}});var R0=h(()=>{"use strict";var _G=ee(),wG=T0(),SG=Ur();_G({target:"Set",proto:!0,real:!0,forced:!SG("union")},{union:wG})});var wo=h((MY,O0)=>{"use strict";var IG=Jn(),EG=String;O0.exports=function(e){if(IG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return EG(e)}});var L0=h((UY,q0)=>{"use strict";var tp=ke(),kG=Qi(),CG=wo(),AG=rn(),xG=tp("".charAt),N0=tp("".charCodeAt),PG=tp("".slice),D0=function(e){return function(t,r){var n=CG(AG(t)),i=kG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=N0(n,i),a<55296||a>56319||i+1===o||(s=N0(n,i+1))<56320||s>57343?e?xG(n,i):a:e?PG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};q0.exports={codeAt:D0(!1),charAt:D0(!0)}});var j0=h(()=>{"use strict";var TG=L0().charAt,RG=wo(),U0=ln(),OG=ms(),M0=hs(),F0="String Iterator",NG=U0.set,DG=U0.getterFor(F0);OG(String,"String",function(e){NG(this,{type:F0,string:RG(e),index:0})},function(){var t=DG(this),r=t.string,n=t.index,i;return n>=r.length?M0(void 0,!0):(i=TG(r,n),t.index+=i.length,M0(i,!1))})});var B0=h((GY,G0)=>{"use strict";vs();Dd();BI();p0();g0();b0();S0();k0();x0();R0();j0();var qG=Ht();G0.exports=qG.Set});var H0=h((BY,J0)=>{"use strict";var LG=B0();Vd();J0.exports=LG});var V0=h((JY,$0)=>{$0.exports=H0()});var z0=h(W0=>{"use strict";W0.f=Object.getOwnPropertySymbols});var X0=h(($Y,Q0)=>{"use strict";var K0=tt(),MG=ke(),UG=Nt(),FG=ge(),rp=Sd(),jG=z0(),GG=yu(),BG=Un(),JG=$a(),Yn=Object.assign,Y0=Object.defineProperty,HG=MG([].concat);Q0.exports=!Yn||FG(function(){if(K0&&Yn({b:1},Yn(Y0({},"a",{enumerable:!0,get:function(){Y0(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Yn({},e)[r]!==7||rp(Yn({},t)).join("")!==n})?function(t,r){for(var n=BG(t),i=arguments.length,o=1,a=jG.f,s=GG.f;i>o;)for(var c=JG(arguments[o++]),l=a?HG(rp(c),a(c)):rp(c),d=l.length,u=0,p;d>u;)p=l[u++],(!K0||UG(s,c,p))&&(n[p]=c[p]);return n}:Yn});var eE=h(()=>{"use strict";var $G=ee(),Z0=X0();$G({target:"Object",stat:!0,arity:2,forced:Object.assign!==Z0},{assign:Z0})});var rE=h((zY,tE)=>{"use strict";eE();var VG=Ht();tE.exports=VG.Object.assign});var iE=h((KY,nE)=>{"use strict";var WG=rE();nE.exports=WG});var aE=h((YY,oE)=>{oE.exports=iE()});var np=h((QY,sE)=>{"use strict";sE.exports=`
22
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var uE=h((XY,lE)=>{"use strict";var zG=ke(),KG=rn(),YG=wo(),op=np(),cE=zG("".replace),QG=RegExp("^["+op+"]+"),XG=RegExp("(^|[^"+op+"])["+op+"]+$"),ip=function(e){return function(t){var r=YG(KG(t));return e&1&&(r=cE(r,QG,"")),e&2&&(r=cE(r,XG,"$1")),r}};lE.exports={start:ip(1),end:ip(2),trim:ip(3)}});var mE=h((ZY,fE)=>{"use strict";var ZG=vd().PROPER,eB=ge(),dE=np(),pE="\u200B\x85\u180E";fE.exports=function(e){return eB(function(){return!!dE[e]()||pE[e]()!==pE||ZG&&dE[e].name!==e})}});var hE=h(()=>{"use strict";var tB=ee(),rB=uE().trim,nB=mE();tB({target:"String",proto:!0,forced:nB("trim")},{trim:function(){return rB(this)}})});var vE=h((rQ,gE)=>{"use strict";hE();var iB=Ct();gE.exports=iB("String","trim")});var bE=h((nQ,yE)=>{"use strict";var oB=et(),aB=vE(),ap=String.prototype;yE.exports=function(e){var t=e.trim;return typeof e=="string"||e===ap||oB(ap,e)&&t===ap.trim?aB:t}});var wE=h((iQ,_E)=>{"use strict";var sB=bE();_E.exports=sB});var IE=h((oQ,SE)=>{SE.exports=wE()});var CE=h(()=>{"use strict";var cB=ee(),EE=Xi(),lB=Hu(),uB=Oe(),kE=yd(),dB=Bn(),pB=Rr(),fB=Ku(),mB=ze(),hB=eo(),gB=no(),vB=hB("slice"),yB=mB("species"),sp=Array,bB=Math.max;cB({target:"Array",proto:!0,forced:!vB},{slice:function(t,r){var n=pB(this),i=dB(n),o=kE(t,i),a=kE(r===void 0?i:r,i),s,c,l;if(EE(n)&&(s=n.constructor,lB(s)&&(s===sp||EE(s.prototype))?s=void 0:uB(s)&&(s=s[yB],s===null&&(s=void 0)),s===sp||s===void 0))return gB(n,o,a);for(c=new(s===void 0?sp:s)(bB(a-o,0)),l=0;o<a;o++,l++)o in n&&fB(c,l,n[o]);return c.length=l,c}})});var xE=h((cQ,AE)=>{"use strict";CE();var _B=Ct();AE.exports=_B("Array","slice")});var TE=h((lQ,PE)=>{"use strict";var wB=et(),SB=xE(),cp=Array.prototype;PE.exports=function(e){var t=e.slice;return e===cp||wB(cp,e)&&t===cp.slice?SB:t}});var OE=h((uQ,RE)=>{"use strict";var IB=TE();RE.exports=IB});var DE=h((dQ,NE)=>{NE.exports=OE()});var lp=C(()=>{});var LE=h((fQ,qE)=>{"use strict";var EB=Oe(),kB=lr(),CB=ze(),AB=CB("match");qE.exports=function(e){var t;return EB(e)&&((t=e[AB])!==void 0?!!t:kB(e)==="RegExp")}});var UE=h((mQ,ME)=>{"use strict";var xB=LE(),PB=TypeError;ME.exports=function(e){if(xB(e))throw new PB("The method doesn't accept regular expressions");return e}});var jE=h((hQ,FE)=>{"use strict";var TB=ze(),RB=TB("match");FE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[RB]=!1,"/./"[e](t)}catch(n){}}return!1}});var JE=h(()=>{"use strict";var OB=ee(),NB=Hi(),DB=qu().f,qB=Gu(),GE=wo(),LB=UE(),MB=rn(),UB=jE(),FB=Mn(),jB=NB("".slice),GB=Math.min,BE=UB("startsWith"),BB=!FB&&!BE&&!!function(){var e=DB(String.prototype,"startsWith");return e&&!e.writable}();OB({target:"String",proto:!0,forced:!BB&&!BE},{startsWith:function(t){var r=GE(MB(this));LB(t);var n=qB(GB(arguments.length>1?arguments[1]:void 0,r.length)),i=GE(t);return jB(r,n,n+i.length)===i}})});var $E=h((yQ,HE)=>{"use strict";JE();var JB=Ct();HE.exports=JB("String","startsWith")});var WE=h((bQ,VE)=>{"use strict";var HB=et(),$B=$E(),up=String.prototype;VE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===up||HB(up,e)&&t===up.startsWith?$B:t}});var KE=h((_Q,zE)=>{"use strict";var VB=WE();zE.exports=VB});var QE=h((wQ,YE)=>{YE.exports=KE()});var rk=h((SQ,tk)=>{"use strict";var ZE=ke(),WB=nn(),zB=Oe(),KB=gt(),XE=no(),YB=qn(),ek=Function,QB=ZE([].concat),XB=ZE([].join),dp={},ZB=function(e,t,r){if(!KB(dp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";dp[t]=ek("C,a","return new C("+XB(n,",")+")")}return dp[t](e,r)};tk.exports=YB?ek.bind:function(t){var r=WB(this),n=r.prototype,i=XE(arguments,1),o=function(){var s=QB(i,XE(arguments));return this instanceof o?ZB(r,s.length,s):r.apply(t,s)};return zB(n)&&(o.prototype=n),o}});var ik=h(()=>{"use strict";var eJ=ee(),nk=rk();eJ({target:"Function",proto:!0,forced:Function.bind!==nk},{bind:nk})});var ak=h((kQ,ok)=>{"use strict";ik();var tJ=Ct();ok.exports=tJ("Function","bind")});var ck=h((CQ,sk)=>{"use strict";var rJ=et(),nJ=ak(),pp=Function.prototype;sk.exports=function(e){var t=e.bind;return e===pp||rJ(pp,e)&&t===pp.bind?nJ:t}});var uk=h((AQ,lk)=>{"use strict";var iJ=ck();lk.exports=iJ});var pk=h((xQ,dk)=>{dk.exports=uk()});function Xs(e,t){Ce.__h&&Ce.__h(de,e,xo||t),xo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Qt(e){return xo=1,oJ(eC,e)}function oJ(e,t,r){var n=Xs(ei++,2);if(n.t=e,!n.__c&&(n.__=[eC(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=de,!de.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,Np.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Kk.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,c,l);var p=n.__c.props!==s;return(0,Ne.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,c,l)||p};de.__f=!0;var o=de.shouldComponentUpdate,a=de.componentWillUpdate;de.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},de.shouldComponentUpdate=i}return n.__N||n.__}function dn(e,t){var r=Xs(ei++,3);!Ce.__s&&Zk(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function Eo(e){return xo=5,hr(function(){return{current:e}},[])}function hr(e,t){var r=Xs(ei++,7);return Zk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function At(e,t){return xo=8,hr(function(){return e},t)}function aJ(e){var t=de.context[e.__c],r=Xs(ei++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function sJ(){for(var e;e=Xk.shift();)if(e.__P&&e.__H)try{var t,r;(0,Ne.default)(t=e.__H.__h).call(t,Us),(0,Ne.default)(r=e.__H.__h).call(r,wp),e.__H.__h=[]}catch(n){e.__H.__h=[],Ce.__e(n,e.__v)}}function cJ(e){var t,r=function(){clearTimeout(n),_k&&cancelAnimationFrame(t),(0,Yt.default)(e)},n=(0,Yt.default)(r,100);_k&&(t=requestAnimationFrame(r))}function Us(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function wp(e){var t=de;e.__c=e.__(),de=t}function Zk(e,t){return!e||e.length!==t.length||(0,Vs.default)(t).call(t,function(r,n){return r!==e[n]})}function eC(e,t){return typeof t=="function"?t(e):t}function lJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sp(){throw new Error("setTimeout has not been defined")}function Ip(){throw new Error("clearTimeout has not been defined")}function rC(e){if($t===Yt.default)return(0,Yt.default)(e,0);if(($t===Sp||!$t)&&Yt.default)return $t=Yt.default,(0,Yt.default)(e,0);try{return $t(e,0)}catch(t){try{return $t.call(null,e,0)}catch(r){return $t.call(this,e,0)}}}function uJ(e){if(Vt===clearTimeout)return clearTimeout(e);if((Vt===Ip||!Vt)&&clearTimeout)return Vt=clearTimeout,clearTimeout(e);try{return Vt(e)}catch(t){try{return Vt.call(null,e)}catch(r){return Vt.call(this,e)}}}function dJ(){!Qn||!jr||(Qn=!1,jr.length?mr=(0,Qs.default)(jr).call(jr,mr):Fs=-1,mr.length&&nC())}function nC(){if(!Qn){var e=rC(dJ);Qn=!0;for(var t=mr.length;t;){for(jr=mr,mr=[];++Fs<t;)jr&&jr[Fs].run();Fs=-1,t=mr.length}jr=null,Qn=!1,uJ(e)}}function iC(e,t){this.fun=e,this.array=t}function vr(){}function mJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function hJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function bJ(e,t){return Ge(e,0)^45?(((t<<2^Ge(e,0))<<2^Ge(e,1))<<2^Ge(e,2))<<2^Ge(e,3):0}function sC(e){return(0,Lp.default)(e).call(e)}function _J(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function Ep(e,t){return(0,gr.default)(e).call(e,t)}function Ge(e,t){return e.charCodeAt(t)|0}function Po(e,t,r){return(0,Mp.default)(e).call(e,t,r)}function Wt(e){return e.length}function Gp(e){return e.length}function Ds(e,t){return t.push(e),e}function wJ(e,t){return(0,Ao.default)(e).call(e,t).join("")}function tc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ec,column:ti,length:a,return:""}}function So(e,t){return yJ(tc("",null,null,"",null,null,0),e,{length:-e.length},t)}function SJ(){return Ae}function IJ(){return Ae=it>0?Ge(ni,--it):0,ti--,Ae===10&&(ti=1,ec--),Ae}function vt(){return Ae=it<cC?Ge(ni,it++):0,ti++,Ae===10&&(ti=1,ec++),Ae}function Xt(){return Ge(ni,it)}function js(){return it}function qo(e,t){return Po(ni,e,t)}function To(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 lC(e){return ec=ti=1,cC=Wt(ni=e),it=0,[]}function uC(e){return ni="",e}function Gs(e){return sC(qo(it-1,kp(e===91?e+2:e===40?e+1:e)))}function EJ(e){for(;(Ae=Xt())&&Ae<33;)vt();return To(e)>2||To(Ae)>3?"":" "}function kJ(e,t){for(;--t&&vt()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return qo(e,js()+(t<6&&Xt()==32&&vt()==32))}function kp(e){for(;vt();)switch(Ae){case e:return it;case 34:case 39:e!==34&&e!==39&&kp(Ae);break;case 40:e===41&&kp(e);break;case 92:vt();break}return it}function CJ(e,t){for(;vt()&&e+Ae!==57&&!(e+Ae===84&&Xt()===47););return"/*"+qo(t,it-1)+"*"+Zs(e===47?e:vt())}function AJ(e){for(;!To(Xt());)vt();return qo(e,it)}function xJ(e){return uC(Bs("",null,null,null,[""],e=lC(e),0,[0],e))}function Bs(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,E="",A=i,P=o,T=n,k=E;b;)switch(m=w,w=vt()){case 40:if(m!=108&&Ge(k,u-1)==58){Ep(k+=Q(Gs(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Gs(w);break;case 9:case 10:case 13:case 32:k+=EJ(m);break;case 92:k+=kJ(js()-1,7);continue;case 47:switch(Xt()){case 42:case 47:Ds(PJ(CJ(vt(),js()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Wt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Wt(k)-u&&Ds(f>32?Sk(k+";",n,r,u-1):Sk(Q(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ds(T=wk(k,t,r,l,d,i,s,E,A=[],P=[],u),o),w===123)if(d===0)Bs(k,t,T,T,A,o,u,s,P);else switch(p===99&&Ge(k,3)===110?100:p){case 100:case 109:case 115:Bs(e,T,T,n&&Ds(wk(e,T,T,0,0,i,s,E,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Bs(k,T,T,T,[""],P,0,s,P)}}l=d=f=0,g=v=1,E=k="",u=a;break;case 58:u=1+Wt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&IJ()==125)continue}switch(k+=Zs(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Wt(k)-1)*v,v=1;break;case 64:Xt()===45&&(k+=Gs(vt())),p=Xt(),d=u=Wt(E=k+=AJ(js())),w++;break;case 45:m===45&&Wt(k)==2&&(g=0)}}return o}function wk(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Gp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Po(e,u+1,u=vJ(g=a[m])),E=e;v<f;++v)(E=sC(g>0?p[v]+" "+w:Q(w,/&\f/g,p[v])))&&(c[b++]=E);return tc(e,t,r,i===0?Fp:s,c,l,d)}function PJ(e,t,r){return tc(e,t,r,Up,Zs(SJ()),Po(e,2,-2),0)}function Sk(e,t,r,n){return tc(e,t,r,jp,Po(e,0,n),Po(e,n+1,-1),n)}function Xn(e,t){for(var r="",n=Gp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function TJ(e,t,r,n){switch(e.type){case gJ:case jp:return e.return=e.return||e.value;case Up:return"";case aC:return e.return=e.value+"{"+Xn(e.children,n)+"}";case Fp:e.value=e.props.join(",")}return Wt(r=Xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function RJ(e){var t=Gp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function OJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function pC(e,t){switch(bJ(e,t)){case 5103:return $+"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 $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+zs+e+Ke+e+e;case 6828:case 4268:return $+e+Ke+e+e;case 6165:return $+e+Ke+"flex-"+e+e;case 5187:return $+e+Q(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+Ke+"flex-$1$2")+e;case 5443:return $+e+Ke+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return $+e+Ke+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+Ke+Q(e,"shrink","negative")+e;case 5292:return $+e+Ke+Q(e,"basis","preferred-size")+e;case 6060:return $+"box-"+Q(e,"-grow","")+$+e+Ke+Q(e,"grow","positive")+e;case 4554:return $+Q(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+Ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wt(e)-1-t>6)switch(Ge(e,t+1)){case 109:if(Ge(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+zs+(Ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ep(e,"stretch")?pC(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ge(e,t+1)!==115)break;case 6444:switch(Ge(e,Wt(e)-3-(~Ep(e,"!important")&&10))){case 107:return Q(e,":",":"+$)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(Ge(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(Ge(e,t+11)){case 114:return $+e+Ke+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+Ke+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+Ke+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+Ke+e+e}return e}function mC(){if(kk)return qs.exports;kk=1;let e=mC();return qs.exports={default:e},qs.exports.default=e,qs.exports}function Ro(e,t,r){var n,i="";return(0,Ne.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function VJ(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function zJ(e){var t=(0,Yk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Oo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return zt={name:i.name,styles:i.styles,next:zt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)zt={name:a.name,styles:a.styles,next:zt},a=a.next;var s=o.styles+";";return s}return QJ(e,t,r)}case"function":{if(e!==void 0){var c=zt,l=r(e);return zt=c,Oo(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function QJ(e,t,r){var n="";if((0,Co.default)(r))for(var i=0;i<r.length;i++)n+=Oo(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Ck(s)&&(n+=mp(o)+":"+Ak(o,s)+";")}else if((0,Co.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Ck(a[c])&&(n+=mp(o)+":"+Ak(o,a[c])+";");else{var l=Oo(e,t,a);switch(o){case"animation":case"animationName":{n+=mp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Gr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";zt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Oo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Oo(r,t,e[s]),n){var c=o;i+=c[s]}xk.lastIndex=0;for(var l="",d;(d=xk.exec(i))!==null;)l+="-"+d[1];var u=VJ(i)+l;return{name:u,styles:i,next:zt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gr(t)}function c2(e,t,r){var n=[],i=Ro(e,n,r);return n.length<2?r:i+t(n)}function _(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--d2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return N.vnode&&N.vnode(l),l}function Lo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Qt(e());return dn(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function PH(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function kC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=PH(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function TH(e){let t=()=>kC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function NH(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=$e(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=OH(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:We("img",U(x({},a),{ref:l,src:t!=null?t:"",style:x({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",U(x({},a),{ref:l,className:i,children:r}))}function DH(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?We(i.type,U(x({},i.props),{style:U(x({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?We(e.type,U(x({},e.props),{style:U(x({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function FH(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function jk(e,t,r){return nc.call(t,"css")?_($p,bC(e,t),r):_(e,t,r)}function $H(e,t,r){return nc.call(t,"css")?_($p,bC(e,t),r):_(e,t,r)}function Tp({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(Fe,{children:t[s]},o):null}return _(Fe,{children:i},o)})})}function zH({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Qt(!1);return a?null:_("div",{style:x({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function QH({children:e,style:t}){return _("div",{style:`${KH.styles} ${t}`,children:[e,_("svg",{style:`${YH.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function p5(e,t){return Be(e,0)^45?(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3):0}function FC(e){return(0,Lp.default)(e).call(e)}function f5(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function Rp(e,t){return(0,gr.default)(e).call(e,t)}function Be(e,t){return e.charCodeAt(t)|0}function No(e,t,r){return(0,Mp.default)(e).call(e,t,r)}function Kt(e){return e.length}function Yp(e){return e.length}function Ms(e,t){return t.push(e),e}function m5(e,t){return(0,Ao.default)(e).call(e,t).join("")}function lc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:cc,column:ri,length:a,return:""}}function Io(e,t){return d5(lc("",null,null,"",null,null,0),e,{length:-e.length},t)}function h5(){return xe}function g5(){return xe=ot>0?Be(oi,--ot):0,ri--,xe===10&&(ri=1,cc--),xe}function yt(){return xe=ot<jC?Be(oi,ot++):0,ri++,xe===10&&(ri=1,cc++),xe}function Zt(){return Be(oi,ot)}function Js(){return ot}function Mo(e,t){return No(oi,e,t)}function Do(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 GC(e){return cc=ri=1,jC=Kt(oi=e),ot=0,[]}function BC(e){return oi="",e}function Hs(e){return FC(Mo(ot-1,Op(e===91?e+2:e===40?e+1:e)))}function v5(e){for(;(xe=Zt())&&xe<33;)yt();return Do(e)>2||Do(xe)>3?"":" "}function y5(e,t){for(;--t&&yt()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Mo(e,Js()+(t<6&&Zt()==32&&yt()==32))}function Op(e){for(;yt();)switch(xe){case e:return ot;case 34:case 39:e!==34&&e!==39&&Op(xe);break;case 40:e===41&&Op(e);break;case 92:yt();break}return ot}function b5(e,t){for(;yt()&&e+xe!==57&&!(e+xe===84&&Zt()===47););return"/*"+Mo(t,ot-1)+"*"+sc(e===47?e:yt())}function _5(e){for(;!Do(Zt());)yt();return Mo(e,ot)}function w5(e){return BC($s("",null,null,null,[""],e=GC(e),0,[0],e))}function $s(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,E="",A=i,P=o,T=n,k=E;b;)switch(m=w,w=yt()){case 40:if(m!=108&&Be(k,u-1)==58){Rp(k+=W(Hs(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Hs(w);break;case 9:case 10:case 13:case 32:k+=v5(m);break;case 92:k+=y5(Js()-1,7);continue;case 47:switch(Zt()){case 42:case 47:Ms(S5(b5(yt(),Js()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Kt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=W(k,/\f/g,"")),f>0&&Kt(k)-u&&Ms(f>32?Bk(k+";",n,r,u-1):Bk(W(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ms(T=Gk(k,t,r,l,d,i,s,E,A=[],P=[],u),o),w===123)if(d===0)$s(k,t,T,T,A,o,u,s,P);else switch(p===99&&Be(k,3)===110?100:p){case 100:case 108:case 109:case 115:$s(e,T,T,n&&Ms(Gk(e,T,T,0,0,i,s,E,i,A=[],u),P),i,P,u,s,n?A:P);break;default:$s(k,T,T,T,[""],P,0,s,P)}}l=d=f=0,g=v=1,E=k="",u=a;break;case 58:u=1+Kt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&g5()==125)continue}switch(k+=sc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Kt(k)-1)*v,v=1;break;case 64:Zt()===45&&(k+=Hs(yt())),p=Zt(),d=u=Kt(E=k+=_5(Js())),w++;break;case 45:m===45&&Kt(k)==2&&(g=0)}}return o}function Gk(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Yp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=No(e,u+1,u=u5(g=a[m])),E=e;v<f;++v)(E=FC(g>0?p[v]+" "+w:W(w,/&\f/g,p[v])))&&(c[b++]=E);return lc(e,t,r,i===0?zp:s,c,l,d)}function S5(e,t,r){return lc(e,t,r,MC,sc(h5()),No(e,2,-2),0)}function Bk(e,t,r,n){return lc(e,t,r,Kp,No(e,0,n),No(e,n+1,-1),n)}function Zn(e,t){for(var r="",n=Yp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function I5(e,t,r,n){switch(e.type){case l5:if(e.children.length)break;case c5:case Kp:return e.return=e.return||e.value;case MC:return"";case UC:return e.return=e.value+"{"+Zn(e.children,n)+"}";case zp:e.value=e.props.join(",")}return Kt(r=Zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function E5(e){var t=Yp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function k5(e){return function(t){t.root||(t=t.return)&&e(t)}}function JC(e,t){switch(p5(e,t)){case 5103:return V+"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 V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Ys+e+Ye+e+e;case 6828:case 4268:return V+e+Ye+e+e;case 6165:return V+e+Ye+"flex-"+e+e;case 5187:return V+e+W(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+Ye+"flex-$1$2")+e;case 5443:return V+e+Ye+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return V+e+Ye+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+Ye+W(e,"shrink","negative")+e;case 5292:return V+e+Ye+W(e,"basis","preferred-size")+e;case 6060:return V+"box-"+W(e,"-grow","")+V+e+Ye+W(e,"grow","positive")+e;case 4554:return V+W(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+Ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Kt(e)-1-t>6)switch(Be(e,t+1)){case 109:if(Be(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Ys+(Be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rp(e,"stretch")?JC(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Be(e,t+1)!==115)break;case 6444:switch(Be(e,Kt(e)-3-(~Rp(e,"!important")&&10))){case 107:return W(e,":",":"+V)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(Be(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Ye+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return V+e+Ye+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Ye+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Ye+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Ye+e+e}return e}function Hk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function bp(e,t,r){var n=[],i=Ro(e,n,r);return n.length<2?r:i+t(n)}function Wk(e){if(e==="top"){let t=0;HC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${$k}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${$k}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Vk)})}else if(e==="center"){let t=0;$C.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Vk)})}}function pn(){let e=!1,t=null,r=0,n=new Set,i=a=>y(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield ko.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Tr(_(B5,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,ko.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let c=setTimeout(()=>{o(),n.delete(c)},a.duration);n.add(c)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(Tr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),ko.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Np,Kk,Ne,Qs,Vs,Yt,Ws,Co,Dp,gr,Ao,Yk,Qk,qp,Lp,Mp,NQ,_p,ei,de,fp,fk,xo,Xk,Ce,mk,hk,gk,vk,yk,bk,_k,tC,Se,$t,Vt,mr,Qn,jr,Fs,pJ,De,fJ,oC,Ke,zs,$,Up,Fp,jp,gJ,aC,vJ,Zs,yJ,ec,ti,cC,it,Ae,ni,NJ,DJ,qJ,Ik,LJ,MJ,UJ,FJ,jJ,dC,GJ,Ek,BJ,JJ,HJ,fC,qs,kk,$J,Bp,rc,WJ,KJ,YJ,hC,Ck,mp,Ak,xk,zt,XJ,gC,vC,Pk,nc,Jp,yC,Hp,ic,ZJ,e2,t2,r2,n2,Cp,Ap,bC,i2,$p,o2,Tk,a2,s2,l2,u2,hp,Rk,gp,vp,d2,yp,p2,f2,m2,h2,g2,v2,y2,Ok,b2,_2,w2,Nk,S2,I2,E2,Dk,k2,C2,A2,qk,x2,P2,T2,R2,O2,N2,D2,q2,L2,M2,U2,Lk,F2,j2,G2,B2,J2,H2,$2,V2,W2,z2,K2,Mk,Y2,Q2,X2,Z2,eH,tH,rH,nH,iH,oH,aH,sH,cH,lH,uH,dH,pH,fH,mH,hH,gH,vH,yH,bH,_H,wH,SH,IH,EH,kH,CH,AH,_C,wC,SC,xp,xH,IC,EC,Ks,ko,Uk,RH,oc,OH,CC,AC,xC,qH,LH,MH,Pp,UH,PC,TC,ac,Vp,ii,Fk,Fr,RC,un,jH,GH,BH,JH,HH,Ls,OC,Wp,ye,VH,WH,KH,YH,Lt,XH,ZH,NC,DC,qC,LC,Br,e5,t5,r5,n5,i5,o5,a5,s5,Ye,Ys,V,MC,zp,Kp,c5,UC,l5,u5,sc,d5,cc,ri,jC,ot,xe,oi,C5,A5,x5,Jk,P5,T5,R5,O5,N5,D5,q5,L5,M5,U5,F5,j5,$k,Vk,HC,$C,Jr,zk,G5,B5,DQ,er=C(()=>{"use strict";Dn();Np=re(Fy(),1),Kk=re(Ky(),1),Ne=re(cb(),1),Qs=re(Ib(),1),Vs=re(Ob(),1),Yt=re(Yb(),1);is();is();Ws=re(D_(),1),Co=re(G_(),1),Dp=re(nI(),1),gr=re(fI(),1),Ao=re(SI(),1),Yk=re(PI(),1),Qk=re(V0(),1),qp=re(aE(),1),Lp=re(IE(),1),Mp=re(DE(),1);lp();lp();NQ=re(QE(),1),_p=re(pk(),1),xo=0,Xk=[],Ce=N,mk=Ce.__b,hk=Ce.__r,gk=Ce.diffed,vk=Ce.__c,yk=Ce.unmount,bk=Ce.__;Ce.__b=function(e){de=null,mk&&mk(e)},Ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),bk&&bk(e,t)},Ce.__r=function(e){var t,r,n;hk&&hk(e),ei=0;var i=(de=e.__c).__H;i&&(fp===de?(i.__h=[],de.__h=[],(0,Ne.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Ne.default)(r=i.__h).call(r,Us),(0,Ne.default)(n=i.__h).call(n,wp),i.__h=[],ei=0)),fp=de},Ce.diffed=function(e){var t;gk&&gk(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Xk.push(r)!==1&&fk===Ce.requestAnimationFrame||((fk=Ce.requestAnimationFrame)||cJ)(sJ)),(0,Ne.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),fp=de=null},Ce.__c=function(e,t){(0,Vs.default)(t).call(t,function(r){try{var n,i;(0,Ne.default)(n=r.__h).call(n,Us),r.__h=(0,Np.default)(i=r.__h).call(i,function(o){return!o.__||wp(o)})}catch(o){(0,Vs.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ce.__e(o,r.__v)}}),vk&&vk(e,t)},Ce.unmount=function(e){var t;yk&&yk(e);var r,n=e.__c;n&&n.__H&&((0,Ne.default)(t=n.__H.__).call(t,function(i){try{Us(i)}catch(o){r=o}}),n.__H=void 0,r&&Ce.__e(r,n.__v))};_k=typeof requestAnimationFrame=="function";tC={exports:{}},Se=tC.exports={};(function(){try{typeof Yt.default=="function"?$t=Yt.default:$t=Sp}catch(e){$t=Sp}try{typeof clearTimeout=="function"?Vt=clearTimeout:Vt=Ip}catch(e){Vt=Ip}})();mr=[],Qn=!1,Fs=-1;Se.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];mr.push(new iC(e,t)),mr.length===1&&!Qn&&rC(nC)};iC.prototype.run=function(){this.fun.apply(null,this.array)};Se.title="browser";Se.browser=!0;Se.env={};Se.argv=[];Se.version="";Se.versions={};Se.on=vr;Se.addListener=vr;Se.once=vr;Se.off=vr;Se.removeListener=vr;Se.removeAllListeners=vr;Se.emit=vr;Se.prependListener=vr;Se.prependOnceListener=vr;Se.listeners=function(e){return[]};Se.binding=function(e){throw new Error("process.binding is not supported")};Se.cwd=function(){return"/"};Se.chdir=function(e){throw new Error("process.chdir is not supported")};Se.umask=function(){return 0};pJ=tC.exports,De=lJ(pJ),fJ=Ws.default||void 0||self;oC=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Ne.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=mJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Ne.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ke="-ms-",zs="-moz-",$="-webkit-",Up="comm",Fp="rule",jp="decl",gJ="@import",aC="@keyframes",vJ=Math.abs,Zs=String.fromCharCode,yJ=qp.default;ec=1,ti=1,cC=0,it=0,Ae=0,ni="";NJ=function(e,t,r){for(var n=0,i=0;n=i,i=Xt(),n===38&&i===12&&(t[r]=1),!To(i);)vt();return qo(e,it)},DJ=function(e,t){var r=-1,n=44;do switch(To(n)){case 0:n===38&&Xt()===12&&(t[r]=1),e[r]+=NJ(it-1,t,r);break;case 2:e[r]+=Gs(n);break;case 4:if(n===44){e[++r]=Xt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Zs(n)}while(n=vt());return e},qJ=function(e,t){return uC(DJ(lC(e),t))},Ik=new Dp.default,LJ=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ik.get(r))&&!n){Ik.set(e,!0);for(var i=[],o=qJ(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},MJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},UJ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",FJ=function(e){var t;return e.type==="comm"&&(0,gr.default)(t=e.children).call(t,UJ)>-1},jJ=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var c=a[s];if(c.line<t.line)break;if(c.column<t.column){if(FJ(c))return;break}}(0,Ne.default)(i).call(i,function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},dC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},GJ=function(e,t){for(var r=e-1;r>=0;r--)if(!dC(t[r]))return!0;return!1},Ek=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},BJ=function(e,t,r){dC(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ek(e)):GJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ek(e)))};JJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case jp:e.return=pC(e.value,e.length);break;case aC:return Xn([So(e,{value:Q(e.value,"@","@"+$)})],n);case Fp:if(e.length)return wJ(e.props,function(i){switch(_J(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xn([So(e,{props:[Q(i,/:(read-\w+)/,":"+zs+"$1")]})],n);case"::placeholder":return Xn([So(e,{props:[Q(i,/:(plac\w+)/,":"+$+"input-$1")]}),So(e,{props:[Q(i,/:(plac\w+)/,":"+zs+"$1")]}),So(e,{props:[Q(i,/:(plac\w+)/,Ke+"input-$1")]})],n)}return""})}},HJ=[JJ],fC=function(e){var t=e.key;if(De.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
23
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Ne.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,gr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||HJ;if(De.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Ne.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[LJ,MJ];De.env.NODE_ENV!=="production"&&c.push(jJ({get compat(){return f.compat}}),BJ);{var l,d=[TJ,De.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==Up&&l.insert(m.value+"{}"))}:OJ(function(m){l.insert(m)})],u=RJ((0,Qs.default)(c).call(c,n,d)),p=function(m){return Xn(xJ(m),u)};s=function(m,g,b,v){l=b,De.env.NODE_ENV!=="production"&&(0,Ao.default)(g)!==void 0&&(l={insert:function(w){b.insert(w+(0,Ao.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new oC({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},qs={exports:{}};mC();$J=!0;Bp=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||$J===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},rc=function(e,t,r){Bp(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};WJ={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};KJ=/[A-Z]|^ms/g,YJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hC=function(e){return e.charCodeAt(1)===45},Ck=function(e){return e!=null&&typeof e!="boolean"},mp=zJ(function(e){return hC(e)?e:e.replace(KJ,"-$&").toLowerCase()}),Ak=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(YJ,function(r,n,i){return zt={name:n,styles:i,next:zt},n})}return WJ[e]!==1&&!hC(e)&&typeof t=="number"&&t!==0?t+"px":t};xk=/label:\s*([^\s;{]+)\s*(;|$)/g;XJ=function(e){return e()},gC=od?od:!1,vC=gC||XJ,Pk=gC||Hn,nc={}.hasOwnProperty,Jp=en(typeof HTMLElement<"u"?fC({key:"css"}):null);De.env.NODE_ENV!=="production"&&(Jp.displayName="EmotionCacheContext");yC=Jp.Provider,Hp=function(e){return sd(function(t,r){var n=Vn(Jp);return e(t,n,r)})},ic=en({});De.env.NODE_ENV!=="production"&&(ic.displayName="EmotionThemeContext");ZJ=function(e){var t=e.split(".");return t[t.length-1]},e2=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return ZJ(t[1])},t2=new Qk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),r2=function(e){return e.replace(/\$/g,"-")},n2=function(e){if(e)for(var t=e.split(`
24
+ `),r=0;r<t.length;r++){var n=e2(t[r]);if(n){if(t2.has(n))break;if(/^[A-Z]/.test(n))return r2(n)}}},Cp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ap="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",bC=function(e,t){var r,n;if(De.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,gr.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)nc.call(t,o)&&(i[o]=t[o]);if(i[Cp]=e,De.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,gr.default)(n=t.css.name).call(n,"-")===-1)){var a=n2(new Error().stack);a&&(i[Ap]=a)}return i},i2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Bp(t,r,n),vC(function(){return rc(t,r,n)}),null},$p=Hp(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Cp],a=[i],s="";typeof e.className=="string"?s=Ro(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=Gr(a,void 0,Vn(ic));if(De.env.NODE_ENV!=="production"&&(0,gr.default)(n=c.name).call(n,"-")===-1){var l=e[Ap];l&&(c=Gr([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)nc.call(e,u)&&u!=="css"&&u!==Cp&&(De.env.NODE_ENV==="production"||u!==Ap)&&(d[u]=e[u]);return d.ref=r,d.className=s,We(Fe,null,We(i2,{cache:t,serialized:c,isStringTag:typeof o=="string"}),We(o,d))});De.env.NODE_ENV!=="production"&&($p.displayName="EmotionCssPropInternal");o2={version:"11.10.5"},Tk=!1,a2=Hp(function(e,t){De.env.NODE_ENV!=="production"&&!Tk&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Tk=!0);var r=e.styles,n=Gr([r],void 0,Vn(ic)),i=so();return Pk(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,s],function(){a.flush()}},[t]),Pk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&rc(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});De.env.NODE_ENV!=="production"&&(a2.displayName="EmotionGlobal");s2=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,Co.default)(o))a=e(o);else{De.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};l2=function(e){var t=e.cache,r=e.serializedArr;return vC(function(){for(var n=0;n<r.length;n++)rc(t,r[n],!1)}),null},u2=Hp(function(e,t){var r=!1,n=[],i=function(){if(r&&De.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var u=Gr(l,t.registered);return n.push(u),Bp(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&De.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];return c2(t.registered,i,s2(l))},a={css:i,cx:o,theme:Vn(ic)},s=e.children(a);return r=!0,We(Fe,null,We(l2,{cache:t,serializedArr:n}),s)});De.env.NODE_ENV!=="production"&&(u2.displayName="EmotionClassNames");De.env.NODE_ENV!=="production"&&(hp=!0,Rk=typeof jest<"u"||typeof vi<"u",hp&&!Rk&&(gp=typeof Ws.default<"u"?Ws.default:hp?window:fJ,vp="__EMOTION_REACT_"+o2.version.split(".")[0]+"__",gp[vp]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),gp[vp]=!0));d2=0;yp={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},p2=D`
25
25
  width: 100%;
26
26
  overflow: auto;
27
27
  margin: 0 auto;
28
- `,RJ=`
28
+ `,f2=`
29
29
  @keyframes fadeIn {
30
30
  from { opacity: 0; }
31
31
  to { opacity: 1; }
@@ -69,7 +69,7 @@ If multiple caches share the same key they might "fight" for each other's style
69
69
  .fadeIn {
70
70
  animation: fadeIn 0.3s ease forwards;
71
71
  }
72
- `,PJ=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Jt(!1),[c,d]=Jt(null),[u,p]=Jt(!1),f=oo(null),m=oo(null),v=oo(!1);an(()=>{if(s&&f.current){let M=f.current.ownerDocument,Pe=M.createElement("style");Pe.innerHTML=RJ,M.head.appendChild(Pe);let Ne={overflow:M.body.style.overflow,position:M.body.style.position,width:M.body.style.width};return M.body.style.overflow="hidden",M.body.style.position="fixed",M.body.style.width="100%",()=>{M.head.contains(Pe)&&M.head.removeChild(Pe),M.body.style.overflow=Ne.overflow,M.body.style.position=Ne.position,M.body.style.width=Ne.width}}},[s]),an(()=>{t?!s&&!v.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let y=bt(M=>{M.target===m.current&&(c==="leave"?(d(null),l(!1),v.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),g=bt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),w=bt(M=>{r||(M.preventDefault(),M.stopPropagation(),g())},[g]),S=bt(()=>{!v.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=bt(()=>s&&!v.current,[s]);if(an(()=>{if(a){let M={show:S,hide:g,isOpen:A};typeof a=="function"?a(M):a&&(a.current=M)}},[S,g,A,a]),!s)return null;let R=o==="center",T=F(x({},Zd.drawerBackdrop),{alignItems:R?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),k={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},O=R?F(x({},Zd.centerDrawer),{pointerEvents:"auto"}):F(x({},Zd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!R&&(O.transform="translateY(100%)");let G=c?R?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ye=c?`backdrop-${c}`:"";return b("div",{ref:f,style:T,children:[b("div",{style:k,className:Ye,onClick:w}),b("div",{ref:m,style:F(x({},O),{opacity:R&&c===null&&!u?0:1}),className:`${R&&c==="leave"?"fadeOut":G} ${i}`,onAnimationEnd:y,onClick:M=>M.stopPropagation(),children:b("div",{style:OJ.styles,children:e})})]})},NJ=Bu(PJ);DJ={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},LJ={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},qJ={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},ck={jolicoin:DJ,joligem:LJ,loginGuide:qJ},MJ={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},UJ={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},FJ={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},uk={jolicoin:MJ,joligem:UJ,loginGuide:FJ},jJ={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},GJ={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},BJ={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},dk={jolicoin:jJ,joligem:GJ,loginGuide:BJ},JJ={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},HJ={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},$J={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},pk={jolicoin:JJ,joligem:HJ,loginGuide:$J},VJ={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},WJ={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},zJ={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},KJ={jolicoin:VJ,joligem:WJ,loginGuide:zJ},YJ={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},QJ={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},XJ={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},ZJ={jolicoin:YJ,joligem:QJ,loginGuide:XJ},e2={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},t2={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},r2={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},fk={jolicoin:e2,joligem:t2,loginGuide:r2},n2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},i2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},o2={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},a2={jolicoin:n2,joligem:i2,loginGuide:o2},s2={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},l2={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},c2={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},u2={jolicoin:s2,joligem:l2,loginGuide:c2},d2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},p2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},f2={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},hk={jolicoin:d2,joligem:p2,loginGuide:f2},h2={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},m2={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},g2={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},v2={jolicoin:h2,joligem:m2,loginGuide:g2},y2={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},_2={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},b2={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},w2={jolicoin:y2,joligem:_2,loginGuide:b2},I2={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},E2={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},S2={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},k2={jolicoin:I2,joligem:E2,loginGuide:S2},C2={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},A2={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},x2={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},T2={jolicoin:C2,joligem:A2,loginGuide:x2},O2={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},R2={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},P2={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},N2={jolicoin:O2,joligem:R2,loginGuide:P2},D2={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},L2={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},q2={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},M2={jolicoin:D2,joligem:L2,loginGuide:q2},U2={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},F2={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},j2={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},G2={jolicoin:U2,joligem:F2,loginGuide:j2},B2={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},J2={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},H2={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},$2={jolicoin:B2,joligem:J2,loginGuide:H2},Qk={en:{translations:ck},en_GB:{translations:ck},zh:{translations:uk},"zh-Hans":{translations:uk},"zh-Hant":{translations:w2},id:{translations:dk},in:{translations:dk},ms:{translations:pk},my:{translations:pk},th:{translations:KJ},vi:{translations:ZJ},fil:{translations:fk},tl:{translations:fk},es:{translations:a2},ja:{translations:u2},pt:{translations:hk},pt_PT:{translations:hk},ko:{translations:v2},de:{translations:k2},fr:{translations:T2},hi:{translations:N2},ru:{translations:M2},bn:{translations:G2},tr:{translations:$2}},Xk=Kr(void 0),Zk=({definition:e,children:t})=>{let r={translations:e};return b(Xk.Provider,{value:r,children:t})},cp=null,V2={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},eC=e=>{cp=e},tC=()=>{var e;if(typeof cp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=cp();return(e=V2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Os=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=Hk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=z2(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return _(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(rC(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},ao=new Os(99999998,"auto"),mk=new Os(99999999,"none"),K2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=yo(),l={container:D`
72
+ `,m2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=Qt(!1),[l,d]=Qt(null),[u,p]=Qt(!1),f=Eo(null),m=Eo(null),g=Eo(!1);dn(()=>{if(s&&f.current){let O=f.current.ownerDocument,be=O.createElement("style");be.innerHTML=f2,O.head.appendChild(be);let Ue={overflow:O.body.style.overflow,position:O.body.style.position,width:O.body.style.width};return O.body.style.overflow="hidden",O.body.style.position="fixed",O.body.style.width="100%",()=>{O.head.contains(be)&&O.head.removeChild(be),O.body.style.overflow=Ue.overflow,O.body.style.position=Ue.position,O.body.style.width=Ue.width}}},[s]),dn(()=>{t?!s&&!g.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let b=At(O=>{O.target===m.current&&(l==="leave"?(d(null),c(!1),g.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),v=At(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),w=At(O=>{r||(O.preventDefault(),O.stopPropagation(),v())},[v]),E=At(()=>{!g.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=At(()=>s&&!g.current,[s]);if(dn(()=>{if(a){let O={show:E,hide:v,isOpen:A};typeof a=="function"?a(O):a&&(a.current=O)}},[E,v,A,a]),!s)return null;let P=o==="center",T=U(x({},yp.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),k={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:l==="enter"||u?1:0,transition:"opacity 0.3s"},G=P?U(x({},yp.centerDrawer),{pointerEvents:"auto"}):U(x({},yp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!P&&(G.transform="translateY(100%)");let fe=l?P?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",L=l?`backdrop-${l}`:"";return _("div",{ref:f,style:T,children:[_("div",{style:k,className:L,onClick:w}),_("div",{ref:m,style:U(x({},G),{opacity:P&&l===null&&!u?0:1}),className:`${P&&l==="leave"?"fadeOut":fe} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:_("div",{style:p2.styles,children:e})})]})},h2=sd(m2);g2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},v2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},y2={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},Ok={jolicoin:g2,joligem:v2,loginGuide:y2},b2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},_2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},w2={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},Nk={jolicoin:b2,joligem:_2,loginGuide:w2},S2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},I2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},E2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},Dk={jolicoin:S2,joligem:I2,loginGuide:E2},k2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},C2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},A2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},qk={jolicoin:k2,joligem:C2,loginGuide:A2},x2={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},P2={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},T2={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},R2={jolicoin:x2,joligem:P2,loginGuide:T2},O2={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},N2={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},D2={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},q2={jolicoin:O2,joligem:N2,loginGuide:D2},L2={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},M2={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},U2={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},Lk={jolicoin:L2,joligem:M2,loginGuide:U2},F2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},j2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},G2={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},B2={jolicoin:F2,joligem:j2,loginGuide:G2},J2={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},H2={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},$2={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},V2={jolicoin:J2,joligem:H2,loginGuide:$2},W2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},z2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},K2={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},Mk={jolicoin:W2,joligem:z2,loginGuide:K2},Y2={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},Q2={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},X2={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},Z2={jolicoin:Y2,joligem:Q2,loginGuide:X2},eH={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},tH={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},rH={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},nH={jolicoin:eH,joligem:tH,loginGuide:rH},iH={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},oH={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},aH={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},sH={jolicoin:iH,joligem:oH,loginGuide:aH},cH={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},lH={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},uH={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},dH={jolicoin:cH,joligem:lH,loginGuide:uH},pH={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},fH={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},mH={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},hH={jolicoin:pH,joligem:fH,loginGuide:mH},gH={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},vH={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},yH={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},bH={jolicoin:gH,joligem:vH,loginGuide:yH},_H={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},wH={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},SH={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},IH={jolicoin:_H,joligem:wH,loginGuide:SH},EH={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},kH={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},CH={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},AH={jolicoin:EH,joligem:kH,loginGuide:CH},_C={en:{translations:Ok},en_GB:{translations:Ok},zh:{translations:Nk},"zh-Hans":{translations:Nk},"zh-Hant":{translations:nH},id:{translations:Dk},in:{translations:Dk},ms:{translations:qk},my:{translations:qk},th:{translations:R2},vi:{translations:q2},fil:{translations:Lk},tl:{translations:Lk},es:{translations:B2},ja:{translations:V2},pt:{translations:Mk},pt_PT:{translations:Mk},ko:{translations:Z2},de:{translations:sH},fr:{translations:dH},hi:{translations:hH},ru:{translations:bH},bn:{translations:IH},tr:{translations:AH}},wC=en(void 0),SC=({definition:e,children:t})=>{let r={translations:e};return _(wC.Provider,{value:r,children:t})},xp=null,xH={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},IC=e=>{xp=e},EC=()=>{var e;if(typeof xp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=xp();return(e=xH[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ks=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=fC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=TH(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return y(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(kC(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},ko=new Ks(99999998,"auto"),Uk=new Ks(99999999,"none"),RH=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Lo(),c={container:D`
73
73
  display: flex;
74
74
  flex-direction: column;
75
75
  height: 100%;
@@ -102,11 +102,11 @@ If multiple caches share the same key they might "fight" for each other's style
102
102
  border-radius: 4px;
103
103
  border: 1px solid #ddd;
104
104
  cursor: pointer;
105
- `};return b("div",{className:l.container.name,children:[!r&&b("div",{className:l.header.name,children:[b("h3",{children:e}),b("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),b("div",{className:l.content.name,children:t}),o&&o.length>0&&b("div",{className:l.footer.name,children:o.map((c,d)=>b("button",{className:D`
106
- ${l.button}
107
- background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
108
- color: ${c.variant==="primary"?"#fff":"#333"};
109
- `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},js=e=>{let t=!1,r=tC(),n=Qk[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){var f,m;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),kr(b(Kk,{value:a,children:b(Zk,{definition:n,children:b(NJ,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:b(K2,F(x({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}ao.release(),(f=e.onClose)==null||f.call(e)}}function d(){return _(this,null,function*(){let p=yield ao.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},Y2=(e,t={threshold:.6})=>{let r=oo(null),n=oo(!1),i=bt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return an(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};nC=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=Be(a,["children","fluid","className","style"]);let s=x({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",F(x({className:r,style:s},i),{children:e}))},iC=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=Be(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=x({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?X2(e,t):e;return b("div",F(x({className:i,style:u},a),{children:p}))};oC=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=Be(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=x({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),b("div",F(x({className:l,style:f},d),{children:e}))},Z2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Tn(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Tn(()=>{},[e,t]);return b(oC,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(Q2,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),b("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},e5=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Be(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(nC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:b(iC,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>b(Z2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},t5=Gu(e5),up=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(up||{}),r5=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Jt(null),s=bt(u=>{i==null||i({type:u.type===up.Quit?"quit":"dismiss"})},[i]),l=bt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=yo();if(!t.length)return b(De,{});let d=bt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
105
+ `};return _("div",{className:c.container.name,children:[!r&&_("div",{className:c.header.name,children:[_("h3",{children:e}),_("button",{className:c.closeButton.name,onClick:a,children:"\xD7"})]}),_("div",{className:c.content.name,children:t}),o&&o.length>0&&_("div",{className:c.footer.name,children:o.map((l,d)=>_("button",{className:D`
106
+ ${c.button}
107
+ background-color: ${l.variant==="primary"?"#1677ff":"#fff"};
108
+ color: ${l.variant==="primary"?"#fff":"#333"};
109
+ `.name,onClick:u=>{var p;return(p=l.onClick)==null?void 0:p.call(l,u,{hide:a})},children:l.text},d))})]})},oc=e=>{let t=!1,r=EC(),n=_C[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function c(p){var f,m;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),Tr(_(yC,{value:a,children:_(SC,{definition:n,children:_(h2,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(RH,U(x({},e),{onClose:u}))})})}),s)}function l(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}ko.release(),(f=e.onClose)==null||f.call(e)}}function d(){return y(this,null,function*(){let p=yield ko.acquire();o=p.iframe,a=p.emotionCache,t=!0,c(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&c(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},OH=(e,t={threshold:.6})=>{let r=Eo(null),n=Eo(!1),i=At(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return dn(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};CC=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=$e(a,["children","fluid","className","style"]);let s=x({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",U(x({className:r,style:s},i),{children:e}))},AC=s=>{var c=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=c,a=$e(c,["children","gutter","justify","align","className","style"]);let l={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=x({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:l[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?DH(e,t):e;return _("div",U(x({className:i,style:u},a),{children:p}))};xC=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:c="",style:l={}}=p,d=$e(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=x({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},l);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),_("div",U(x({className:c,style:f},d),{children:e}))},qH=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=$n(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=$n(()=>{},[e,t]);return _(xC,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(NH,{src:(c=(s=e.logo)!=null?s:e.cover)!=null?c:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure: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:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},LH=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=$e(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(CC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(AC,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(c=>_(qH,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},MH=ad(LH),Pp=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Pp||{}),UH=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Qt(null),s=At(u=>{i==null||i({type:u.type===Pp.Quit?"quit":"dismiss"})},[i]),c=At(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=Lo();if(!t.length)return _(Fe,{});let d=At(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
110
110
  .recommend-panel {
111
111
  display: flex;
112
112
  flex-direction: column;
@@ -133,7 +133,7 @@ If multiple caches share the same key they might "fight" for each other's style
133
133
  left: 0;
134
134
  right: 0;
135
135
  width: 100%;
136
- max-width: ${c==="portrait"?"440px":"75%"};
136
+ max-width: ${l==="portrait"?"440px":"75%"};
137
137
  margin: 0 auto;
138
138
  background-color: #1a1a1a;
139
139
  z-index: 1;
@@ -228,7 +228,7 @@ If multiple caches share the same key they might "fight" for each other's style
228
228
  background-color: #7817FF;
229
229
  color: #fff;
230
230
  }
231
- `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return an(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&kr(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(t5,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${p.type===up.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:b("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),b("div",{ref:d})},aC=e=>{let t=js({title:e.title,content:b(r5,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},sC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",Gs="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Ap="https://fe-oss.jolibox.com/static/coin/gem.png";Bn=()=>{let e=SB(Xk);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=n5(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},gk=({text:e,initialFontSize:t,styles:r})=>b("span",{style:r,children:b("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),Dr={coinInfo:D`
231
+ `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return dn(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Tr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(MH,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:c,orientation:l})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===Pp.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,c]),_("div",{ref:d})},PC=e=>{let t=oc({title:e.title,content:_(UH,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},TC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",ac="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Vp="https://fe-oss.jolibox.com/static/coin/gem.png";ii=()=>{let e=aJ(wC);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=FH(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},Fk=({text:e,initialFontSize:t,styles:r})=>_("span",{style:r,children:_("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),Fr={coinInfo:D`
232
232
  display: flex;
233
233
  width: calc(100% - 40px);
234
234
  max-width: 720px;
@@ -288,7 +288,7 @@ If multiple caches share the same key they might "fight" for each other's style
288
288
  font-size: 16px;
289
289
  font-weight: 600;
290
290
  color: #d9d9d9;
291
- `},lC=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Gs,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=Bn(),c=14,d=ar(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return b("div",{style:Dr.coinInfo.styles,children:[!i&&b("div",{style:Dr.coinAmount.styles,children:[b(gk,{text:l("jolicoin.price"),initialFontSize:c,styles:Dr.coinLabelContainer.styles}),b("div",{style:Dr.coinValue.styles,children:[b("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Dr.gemIcon.styles:Dr.coinIcon.styles}),b("span",{children:e})]})]}),!o&&b("div",{style:Dr.coinAmountBalance.styles,children:b(gk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:Dr.coinValueText.styles})})]})},on={card:D`
291
+ `},RC=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=ac,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=ii(),l=14,d=hr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:Fr.coinInfo.styles,children:[!i&&_("div",{style:Fr.coinAmount.styles,children:[_(Fk,{text:c("jolicoin.price"),initialFontSize:l,styles:Fr.coinLabelContainer.styles}),_("div",{style:Fr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Fr.gemIcon.styles:Fr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:Fr.coinAmountBalance.styles,children:_(Fk,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:Fr.coinValueText.styles})})]})},un={card:D`
292
292
  display: flex;
293
293
  flex-direction: column;
294
294
  align-items: center;
@@ -324,17 +324,17 @@ If multiple caches share the same key they might "fight" for each other's style
324
324
  font-size: 16px;
325
325
  color: #C093FF;
326
326
  font-weight: bold;
327
- `},i5=D`
327
+ `},jH=D`
328
328
  box-sizing: border-box;
329
329
  width: 100%;
330
330
  aspect-ratio: 1/1;
331
- `,o5=D`
331
+ `,GH=D`
332
332
  aspect-ratio: 1/1; // 强制 1:1 的宽高比
333
333
  display: flex;
334
334
  flex-direction: column;
335
335
  justify-content: center;
336
336
  -webkit-tap-highlight-color: transparent;
337
- `,a5=e=>b("div",{style:i5.styles,children:b("div",{style:o5.styles,children:b("div",{style:`${on.card.styles} ${e.option.id===e.selectedId?on.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{style:on.coinContainer.styles,children:[b("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?on.gemIcon.styles:on.coinIcon.styles}),b("span",{style:on.coinValue.styles,children:e.option.coins.toLocaleString()})]}),b("div",{style:on.price.styles,children:e.option.price})]})})}),s5=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Gs})=>{let o=yo(),a=s=>{r==null||r(s)};return b(nC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(iC,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>b(oC,{span:o==="landscape"?4:8,children:b(a5,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},l5=Gu(s5);vs={toggleSwitch:D`
337
+ `,BH=e=>_("div",{style:jH.styles,children:_("div",{style:GH.styles,children:_("div",{style:`${un.card.styles} ${e.option.id===e.selectedId?un.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:un.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?un.gemIcon.styles:un.coinIcon.styles}),_("span",{style:un.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:un.price.styles,children:e.option.price})]})})}),JH=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=ac})=>{let o=Lo(),a=s=>{r==null||r(s)};return _(CC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(AC,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(xC,{span:o==="landscape"?4:8,children:_(BH,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},HH=ad(JH);Ls={toggleSwitch:D`
338
338
  position: relative;
339
339
  display: inline-block;
340
340
  width: 33px;
@@ -371,7 +371,7 @@ If multiple caches share the same key they might "fight" for each other's style
371
371
  &:before {
372
372
  transform: translateX(18px);
373
373
  }
374
- `},cC=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>c5("label",{css:vs.toggleSwitch,children:[vk("input",{css:vs.toggleInput,type:"checkbox",checked:e,onChange:t}),vk("span",{css:[vs.toggleSlider,e&&vs.toggleSliderActive]})]}),xp=()=>b("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("g",{"clip-path":"url(#clip0_2716_2719)",children:b("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),b("defs",{children:b("clipPath",{id:"clip0_2716_2719",children:b("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),me={modal:D`
374
+ `},OC=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>$H("label",{css:Ls.toggleSwitch,children:[jk("input",{css:Ls.toggleInput,type:"checkbox",checked:e,onChange:t}),jk("span",{css:[Ls.toggleSlider,e&&Ls.toggleSliderActive]})]}),Wp=()=>_("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("g",{"clip-path":"url(#clip0_2716_2719)",children:_("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),_("defs",{children:_("clipPath",{id:"clip0_2716_2719",children:_("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),ye={modal:D`
375
375
  font-family: PingFangSC-Regular;
376
376
  background-color: #1a1a1a;
377
377
  color: white;
@@ -459,19 +459,19 @@ If multiple caches share the same key they might "fight" for each other's style
459
459
  border-radius: 2px;
460
460
  margin: 0 auto;
461
461
  -webkit-tap-highlight-color: transparent;
462
- `},u5=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=Jt(r),u=yo(),{t:p}=Bn(),f=()=>{i(c)},m=ar(()=>n==="JOLI_GEM"?Ap:Gs,[n]),v=ar(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),y=ar(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),g=bt(()=>{d(!c),a(!c)},[c]);return b("div",{style:`${me.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[b("div",{style:me.header.styles,children:[b(lC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),b("button",{style:me.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:b(xp,{})})]}),b("div",{style:me.content.styles,children:[b("h2",{style:me.title.styles,children:p(v)}),!r&&b("div",{style:me.autoDeductOption.styles,children:[b("span",{style:D`
462
+ `},VH=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:c})=>{let[l,d]=Qt(r),u=Lo(),{t:p}=ii(),f=()=>{i(l)},m=hr(()=>n==="JOLI_GEM"?Vp:ac,[n]),g=hr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=hr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),v=At(()=>{d(!l),a(!l)},[l]);return _("div",{style:`${ye.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:ye.header.styles,children:[_(RC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:ye.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(Wp,{})})]}),_("div",{style:ye.content.styles,children:[_("h2",{style:ye.title.styles,children:p(g)}),!r&&_("div",{style:ye.autoDeductOption.styles,children:[_("span",{style:D`
463
463
  font-size: 12px;
464
464
  font-weight: 400;
465
465
  line-height: 1.2;
466
466
  color: #979797;
467
- `.styles,children:p(y)}),b(cC,{enableAutoDeduct:c,toggleEnableAutoDeduct:g})]}),b("section",{style:`${me.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${me.confirmButton.styles} ${me.buttonFlex.styles}`,onClick:f,children:p(s)}),b("button",{style:`${me.cancelButton.styles} ${me.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},d5=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:l,confirmButtonKey:c,cancelButtonKey:d})=>{let[u,p]=Jt(r),{t:f}=Bn(),[m,v]=Jt(()=>{var T,k;return((T=n.find(O=>O.defaultSelected))==null?void 0:T.productId)||((k=n==null?void 0:n[0])==null?void 0:k.productId)}),y=yo(),g=()=>{o(m)},w=bt(T=>{console.log(T),v(T),l(T)},[]),S=bt(()=>{p(!u),s(!u)},[u]),A=ar(()=>i==="JOLI_GEM"?Ap:Gs,[i]),R=ar(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),b("div",{style:me.modal.styles,children:[b("div",{style:me.header.styles,children:[b(lC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:A,currency:i}),b("button",{style:me.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:b(xp,{})})]}),b("div",{style:me.content.styles,children:[b("div",{style:D`
467
+ `.styles,children:p(b)}),_(OC,{enableAutoDeduct:l,toggleEnableAutoDeduct:v})]}),_("section",{style:`${ye.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${ye.confirmButton.styles} ${ye.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${ye.cancelButton.styles} ${ye.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},WH=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:c,confirmButtonKey:l,cancelButtonKey:d})=>{let[u,p]=Qt(r),{t:f}=ii(),[m,g]=Qt(()=>{var T,k;return((T=n.find(G=>G.defaultSelected))==null?void 0:T.productId)||((k=n==null?void 0:n[0])==null?void 0:k.productId)}),b=Lo(),v=()=>{o(m)},w=At(T=>{console.log(T),g(T),c(T)},[]),E=At(()=>{p(!u),s(!u)},[u]),A=hr(()=>i==="JOLI_GEM"?Vp:ac,[i]),P=hr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:ye.modal.styles,children:[_("div",{style:ye.header.styles,children:[_(RC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:A,currency:i}),_("button",{style:ye.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(Wp,{})})]}),_("div",{style:ye.content.styles,children:[_("div",{style:D`
468
468
  padding: 16px 0px;
469
- `.styles,children:b(l5,{options:n.map(T=>({id:T.productId,coins:T.quantity,price:T.totalAmountStr})),coinImageSrc:A,selectedId:m,currency:i,onSelect:T=>w(T.id)})}),!r&&b("div",{style:me.autoDeductOption.styles,children:[b("span",{style:D`
469
+ `.styles,children:_(HH,{options:n.map(T=>({id:T.productId,coins:T.quantity,price:T.totalAmountStr})),coinImageSrc:A,selectedId:m,currency:i,onSelect:T=>w(T.id)})}),!r&&_("div",{style:ye.autoDeductOption.styles,children:[_("span",{style:D`
470
470
  font-size: 12px;
471
471
  font-weight: 400;
472
472
  line-height: 1.2;
473
473
  color: #979797;
474
- `.styles,children:f(R)}),b(cC,{enableAutoDeduct:u,toggleEnableAutoDeduct:S})]}),b("section",{style:`${me.buttonContainer.styles} ${y==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${me.confirmButton.styles} ${me.buttonFlex.styles}`,onClick:g,children:f(c)}),b("button",{style:`${me.cancelButton.styles} ${me.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};f5=D`
474
+ `.styles,children:f(P)}),_(OC,{enableAutoDeduct:u,toggleEnableAutoDeduct:E})]}),_("section",{style:`${ye.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${ye.confirmButton.styles} ${ye.buttonFlex.styles}`,onClick:v,children:f(l)}),_("button",{style:`${ye.cancelButton.styles} ${ye.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};KH=D`
475
475
  display: inline-flex;
476
476
  align-items: center;
477
477
  justify-content: center;
@@ -488,14 +488,14 @@ If multiple caches share the same key they might "fight" for each other's style
488
488
  white-space: nowrap;
489
489
  text-overflow: ellipsis;
490
490
  border: 1px solid rgba(255, 255, 255, 0.52);
491
- `,h5=D`
491
+ `,YH=D`
492
492
  position: absolute;
493
493
  left: 20%;
494
494
  bottom: -9px;
495
495
  transform: translateX(-50%);
496
496
  z-index: 2;
497
497
  pointer-events: none;
498
- `;At=F(x({},me),{header:D`
498
+ `;Lt=U(x({},ye),{header:D`
499
499
  display: flex;
500
500
  justify-content: flex-end;
501
501
  align-items: center;
@@ -549,7 +549,7 @@ If multiple caches share the same key they might "fight" for each other's style
549
549
  border-top: 8px solid #4f396d;
550
550
  z-index: 2;
551
551
  }
552
- `}),g5={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},v5=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=Bn(),c=g5[t];return b("div",{style:{paddingTop:"80px"},children:b("section",{style:`${At.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[b(p5,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),b("div",{style:At.header.styles,children:b("button",{style:`${At.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:b(xp,{})})}),b("div",{style:At.introduct.styles,children:[s?b("span",{style:At.introductSubTitle.styles,children:l("loginGuide.instead")}):null,b("span",{style:At.introductTitle.styles,children:b(dp,{children:l("loginGuide.introduct"),values:{coin:b("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),b("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:b("section",{style:`${At.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[b("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[b("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:b(m5,{children:b(dp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:b(De,{children:[b("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),b("button",{style:`${At.confirmButton.styles} ${At.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:b("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),b("button",{style:`${At.cancelButton.styles} ${At.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},uC=e=>{let t=js({title:"",content:b(u5,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},dC=e=>{let t=js({title:"",content:b(d5,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},pC=e=>{let t=js({title:"",content:b(v5,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},fC=new Map,Mr=(e,t)=>{fC.set(e,t)};Mr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return b("div",{style:r,children:b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[b("g",{clipPath:"url(#clip0_2247_16523)",children:b("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),b("defs",{children:b("clipPath",{id:"clip0_2247_16523",children:b("rect",{width:"24",height:"24",fill:"white"})})})]})})});Mr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:sC;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Mr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Ap,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return b("img",{src:r,alt:"\u{1FA99}",style:F(x({},n),{verticalAlign:"middle"})})});y5=/^\{slot-i18n-(.+?)\}/,_5=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Bn(),i=n(e,t);return b("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Mr(y5,(e,t)=>{var n;let r=e[1];return r?b(_5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),b("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});b5=/^\{slot-i18ntran-(.+?)\}/,w5=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Bn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return b(dp,{children:o||n,values:x(x({},t),a)})},I5={coin:e=>b(De,{children:[b("img",{src:sC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Mr(b5,(e,t)=>{var n,i;let r=e[1];return r?b(w5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:I5,fallbackText:`[${r}]`}):b("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});E5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Mr(/^\{slot-success\}/,(e,t)=>b("img",{src:E5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));S5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Mr(/^\{slot-error\}/,(e,t)=>b("img",{src:S5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));k5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";Mr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=k5,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return b("img",{src:r,alt:"\u{1FA99}",style:F(x({},n),{verticalAlign:"middle"})})});Ve="-ms-",Rs="-moz-",V="-webkit-",hC="comm",Tp="rule",Op="decl",C5="@import",mC="@keyframes",A5="@layer",x5=Math.abs,Bs=String.fromCharCode,T5=gp.default;Js=1,jn=1,vC=0,it=0,ke=0,Jn="";H5=function(e,t,r){for(var n=0,i=0;n=i,i=$t(),n===38&&i===12&&(t[r]=1),!go(i);)pt();return _o(e,it)},$5=function(e,t){var r=-1,n=44;do switch(go(n)){case 0:n===38&&$t()===12&&(t[r]=1),e[r]+=H5(it-1,t,r);break;case 2:e[r]+=ks(n);break;case 4:if(n===44){e[++r]=$t()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Bs(n)}while(n=pt());return e},V5=function(e,t){return _C($5(yC(e),t))},bk=new mp.default,W5=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!bk.get(r))&&!n){bk.set(e,!0);for(var i=[],o=V5(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},z5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};K5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Op:e.return=bC(e.value,e.length);break;case mC:return Mn([io(e,{value:W(e.value,"@","@"+V)})],n);case Tp:if(e.length)return P5(e.props,function(i){switch(R5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mn([io(e,{props:[W(i,/:(read-\w+)/,":"+Rs+"$1")]})],n);case"::placeholder":return Mn([io(e,{props:[W(i,/:(plac\w+)/,":"+V+"input-$1")]}),io(e,{props:[W(i,/:(plac\w+)/,":"+Rs+"$1")]}),io(e,{props:[W(i,/:(plac\w+)/,Ve+"input-$1")]})],n)}return""})}},Y5=[K5],Q5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,sr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||Y5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(m)});var s,l=[W5,z5];{var c,d=[G5,J5(function(m){c.insert(m)})],u=B5((0,Ps.default)(l).call(l,n,d)),p=function(m){return Mn(F5(m),u)};s=function(m,v,y,g){c=y,p(m?m+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new qk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};X5=function(e){var t=Q5(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qr(s,t.registered,void 0);return Ms(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qr(s,t.registered),d="animation-"+c.name;return wk(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qr(s,t.registered);wk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return ep(t.registered,r,Z5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,tp.default)(fo).call(fo,null,t.registered),merge:(0,tp.default)(ep).call(ep,null,t.registered,r)}},Z5=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,so.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},eH=X5({key:"css"}),tH=eH.css,rH=(e,t)=>{var a;let r=x({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return b("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,l=1/0,c=null;for(let[d,u]of fC.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<l&&(s=m,l=m.index,c=u)}if(s&&c){if(l>i){let d=e.substring(i,l);n.push(b("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(b("span",{style:r,children:d}));break}}let o=tH`
552
+ `}),XH={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},ZH=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=ii(),l=XH[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Lt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(zH,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Lt.header.styles,children:_("button",{style:`${Lt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(Wp,{})})}),_("div",{style:Lt.introduct.styles,children:[s?_("span",{style:Lt.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Lt.introductTitle.styles,children:_(Tp,{children:c("loginGuide.introduct"),values:{coin:_("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${Lt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(QH,{children:_(Tp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(Fe,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Lt.confirmButton.styles} ${Lt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),_("button",{style:`${Lt.cancelButton.styles} ${Lt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},NC=e=>{let t=oc({title:"",content:_(VH,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},DC=e=>{let t=oc({title:"",content:_(WH,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},qC=e=>{let t=oc({title:"",content:_(ZH,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},LC=new Map,Br=(e,t)=>{LC.set(e,t)};Br(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("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"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});Br(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:TC;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Br(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Vp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:U(x({},n),{verticalAlign:"middle"})})});e5=/^\{slot-i18n-(.+?)\}/,t5=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=ii(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Br(e5,(e,t)=>{var n;let r=e[1];return r?_(t5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});r5=/^\{slot-i18ntran-(.+?)\}/,n5=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=ii(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(Tp,{children:o||n,values:x(x({},t),a)})},i5={coin:e=>_(Fe,{children:[_("img",{src:TC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Br(r5,(e,t)=>{var n,i;let r=e[1];return r?_(n5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:i5,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});o5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Br(/^\{slot-success\}/,(e,t)=>_("img",{src:o5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));a5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Br(/^\{slot-error\}/,(e,t)=>_("img",{src:a5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));s5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";Br(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=s5,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:U(x({},n),{verticalAlign:"middle"})})});Ye="-ms-",Ys="-moz-",V="-webkit-",MC="comm",zp="rule",Kp="decl",c5="@import",UC="@keyframes",l5="@layer",u5=Math.abs,sc=String.fromCharCode,d5=qp.default;cc=1,ri=1,jC=0,ot=0,xe=0,oi="";C5=function(e,t,r){for(var n=0,i=0;n=i,i=Zt(),n===38&&i===12&&(t[r]=1),!Do(i);)yt();return Mo(e,ot)},A5=function(e,t){var r=-1,n=44;do switch(Do(n)){case 0:n===38&&Zt()===12&&(t[r]=1),e[r]+=C5(ot-1,t,r);break;case 2:e[r]+=Hs(n);break;case 4:if(n===44){e[++r]=Zt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=sc(n)}while(n=yt());return e},x5=function(e,t){return BC(A5(GC(e),t))},Jk=new Dp.default,P5=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Jk.get(r))&&!n){Jk.set(e,!0);for(var i=[],o=x5(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},T5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};R5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kp:e.return=JC(e.value,e.length);break;case UC:return Zn([Io(e,{value:W(e.value,"@","@"+V)})],n);case zp:if(e.length)return m5(e.props,function(i){switch(f5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([Io(e,{props:[W(i,/:(read-\w+)/,":"+Ys+"$1")]})],n);case"::placeholder":return Zn([Io(e,{props:[W(i,/:(plac\w+)/,":"+V+"input-$1")]}),Io(e,{props:[W(i,/:(plac\w+)/,":"+Ys+"$1")]}),Io(e,{props:[W(i,/:(plac\w+)/,Ye+"input-$1")]})],n)}return""})}},O5=[R5],N5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Ne.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,gr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||O5,i={},o,a=[];o=e.container||document.head,(0,Ne.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[P5,T5];{var l,d=[I5,k5(function(m){l.insert(m)})],u=E5((0,Qs.default)(c).call(c,n,d)),p=function(m){return Zn(w5(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new oC({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};D5=function(e){var t=N5(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Gr(s,t.registered,void 0);return rc(t,l,!1),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Gr(s,t.registered),d="animation-"+l.name;return Hk(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Gr(s,t.registered);Hk(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return bp(t.registered,r,q5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Ne.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,_p.default)(Ro).call(Ro,null,t.registered),merge:(0,_p.default)(bp).call(bp,null,t.registered,r)}},q5=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,Co.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},L5=D5({key:"css"}),M5=L5.css,U5=(e,t)=>{var a;let r=x({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,c=1/0,l=null;for(let[d,u]of LC.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<c&&(s=m,c=m.index,l=u)}if(s&&l){if(c>i){let d=e.substring(i,c);n.push(_("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=M5`
553
553
  display: 'flex',
554
554
  alignItems: 'flex-start',
555
555
  gap: '4px',
@@ -560,7 +560,7 @@ If multiple caches share the same key they might "fight" for each other's style
560
560
  fontWeight: 600,
561
561
  lineHeight: '18px',
562
562
  width: 'max-content'
563
- `;return n.length===1?n[0]:b("div",{className:o,children:n})},nH=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Jt(!0);an(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=ar(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=D`
563
+ `;return n.length===1?n[0]:_("div",{className:o,children:n})},F5=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Qt(!0);dn(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let c=hr(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),l=D`
564
564
  position: fixed;
565
565
  left: 50%;
566
566
  padding: 10px 16px;
@@ -585,7 +585,7 @@ If multiple caches share the same key they might "fight" for each other's style
585
585
 
586
586
  /* Top position styles */
587
587
  ${i==="top"&&`
588
- top: max(${l}px, env(safe-area-inset-top));
588
+ top: max(${c}px, env(safe-area-inset-top));
589
589
  transform: translate(-50%, -20px);
590
590
  `}
591
591
 
@@ -610,7 +610,7 @@ If multiple caches share the same key they might "fight" for each other's style
610
610
  ${Object.entries(o).map(([d,u])=>`${d}: ${u};`).join(`
611
611
  `)}
612
612
  `}
613
- `;return b("div",{className:`toast toast-${t}`,style:c.styles,children:e})},iH=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Ik=Math.max(20,iH),Ek=12,wC=[],IC=[];Ur=(e,t)=>_(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield mk.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?wC:IC;s.push(o);let l=rH(e,t),c=tC(),d=Qk[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Sk(a),mk.release()}setTimeout(()=>Sk(a),0),kr(b(Kk,{value:n,children:b(Zk,{definition:d,children:b(nH,{message:l,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),kk={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},oH=`
613
+ `;return _("div",{className:`toast toast-${t}`,style:l.styles,children:e})},j5=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),$k=Math.max(20,j5),Vk=12,HC=[],$C=[];Jr=(e,t)=>y(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield Uk.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?HC:$C;s.push(o);let c=U5(e,t),l=EC(),d=_C[l].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Wk(a),Uk.release()}setTimeout(()=>Wk(a),0),Tr(_(yC,{value:n,children:_(SC,{definition:d,children:_(F5,{message:c,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),zk={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},G5=`
614
614
  @keyframes spin {
615
615
  0% {
616
616
  transform: rotate(0deg);
@@ -619,7 +619,7 @@ If multiple caches share the same key they might "fight" for each other's style
619
619
  transform: rotate(360deg);
620
620
  }
621
621
  }
622
- `,aH=()=>b("div",{style:kk.container,children:[b("style",{children:oH}),b("div",{style:kk.spinner})]});jY=bo()});function EC(){return _(this,null,function*(){if(Pp)return Pp;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield re(t);return Pp=r,r})}function SC(){return _(this,null,function*(){let e=new Rt;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(Np)return e.resolve(!0),e.promise;let t=yield EC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Np=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",x({eventType:J.View},o));let a=aC({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Np=!1,s.type){case"quit":U("RecommendedGuide",{eventType:J.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",x({eventType:J.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;sH(c),U("GameItem",{eventType:J.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",x({eventType:J.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Pp,sH,Np,kC=C(()=>{"use strict";B();be();P();cr();vt();yt();Pp=null;EC();sH=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},Np=!1});function cH(e){let t=x(x({},lH),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:w,containerTransition:S,iframeTransition:A}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${w}; opacity:0; visibility:hidden;`,X=document.createElement("div"),X.id="jolibox-modal-container",X.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${S};`;let R=document.createElement("div");R.id="jolibox-modal-loading",R.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let T=document.createElement("style");T.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(T);let k=document.createElement("div");if(k.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,wt.src=r,wt.onload=()=>{R.parentNode&&R.parentNode.removeChild(R),wt.style.opacity="1",v(),l==null||l(),te.emit("onModalIframeLoaded",{url:r})},k.appendChild(wt),k.appendChild(R),X.appendChild(k),i){let O=document.createElement("div");O.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",O.innerHTML="\u2715",O.onclick=g,X.appendChild(O)}ae.appendChild(X),document.body.appendChild(ae),ae.addEventListener("click",function(O){O.target===ae&&g()}),o&&y()}function v(){!ae||!X||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!X)return;let w=R=>{c=R.touches[0].clientY},S=R=>{if(!u)return;d=R.touches[0].clientY;let T=d-c;T>0&&(X&&(X.style.transition="none",X.style.transform=`translateY(${T}px)`),R.preventDefault())},A=()=>{!u||!X||(X.style.transition=a?"transform 0.3s ease":"none",d-c>80?g():X.style.transform="translateY(0)")};X.addEventListener("touchstart",w),X.addEventListener("touchmove",S),X.addEventListener("touchend",A)}function g(){!ae||!X||!u||(a?(X.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,X=null,wt=null,s==null||s(),te.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:g}}function CC(){return window.joliboxUI=F(x({},window.joliboxUI),{createIframeModal:cH}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),X&&X.parentNode&&X.parentNode.removeChild(X),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,X=null,wt=null}}var lH,ae,X,wt,AC=C(()=>{"use strict";be();B();P();lH={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,X=null,wt=null});var RC={};ph(RC,{config:()=>bH});function dH(){ba.on("isAdShowing",e=>{Ws=e,Sr(Ws)&&j("updateContainerConfigSync",{displayCapsuleButton:!Ws,webviewId:E.webviewId})})}function pH(){te.on("onInterceptSystemExit",({intercept:e})=>{xC=e})}function fH(){te.on("onInterceptBackPress",({intercept:e})=>{uH=e}),rt("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;OC(t),te.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function hH(){te.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:Ks,timestamp:Date.now()})})}function mH(){rt("onI18nChanged",({language:e})=>{te.emit("onI18nChanged",{i18n:e})})}function gH(e){E.mpType==="game"&&Et.start(e)}function vH(){rt("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),te.emit("LifecycleEvent.onReady",x({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:Ks,timestamp:Date.now()}),gH(t),eC(()=>E.language)}),rt("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;OC(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function yH(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),$s==null||$s(),Vs==null||Vs(),Et.close(Date.now()-Ks)},t=()=>Ws||xC;mt.onDoExit(()=>_(this,null,function*(){return t()?!0:Sr(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):zs!=null&&zs.canShowRecommended&&!TC&&(yield SC())?!0:(e(),!1)})),mt.onDoBackPress(()=>_(this,null,function*(){return!!t()}))}function _H(){return _(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield re(e);t&&(zs=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function bH(){Ks=Date.now(),vH(),dH(),pH(),fH(),yH(),hH(),mH(),_H(),Vs=CC(),$s=Jm()}var $s,Vs,Ks,Ws,zs,xC,uH,TC,OC,PC=C(()=>{"use strict";be();B();P();yt();Hm();jc();kC();vt();cr();AC();Ws=!1,zs=null,xC=!1,uH=!1,TC=!1,OC=e=>{Sr(e)&&(TC=e)};mt.onReady(()=>{})});var NC,wH,IH,EH,SH,DC=C(()=>{"use strict";P();Qe();be();B();NC=Y(),wH="env",IH="getSystemInfoSync",EH=H(IH,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),SH=H(wH,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});NC.registerCommand("API.getSystemInfoSync",EH);NC.registerCommand("API.env",SH);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var LC=h(Dp=>{"use strict";P();Qe();gt();be();yt();B();var kH="exitGame",CH="onReady",AH="onJoliboxShow",xH="onJoliboxHide",Ys=Y(),Qs=Ko(Ae),TH=ue(kH,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>_(Dp,null,function*(){Qs(e).call(Dp),Sr(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&Lh("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield _e("exitAppAsync")})}),OH=H(AH,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qs(e);rt("onJoliboxEnterForeground",()=>{t.call(this),wi.emit("visible",!0)})}}),RH=H(xH,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qs(e);rt("onJoliboxEnterBackground",()=>{t.call(this),wi.emit("visible",!1)})}}),PH=H(CH,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qs(e);te.on("LifecycleEvent.onReady",r=>{t(r)})}});Ys.registerCommand("LifecycleSDK.exit",TH);Ys.registerCommand("LifecycleSDK.onReady",PH);Ys.registerCommand("LifecycleSDK.onJoliboxShow",OH);Ys.registerCommand("LifecycleSDK.onJoliboxHide",RH);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function qC(e){let t={};if(!$r(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function MC(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function UC(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function FC(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!$r(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var jC=C(()=>{"use strict";P()});var NH,DH,Lp,qp,GC,LH,qH,MH,BC=C(()=>{"use strict";Wr();Rc();Qe();jC();P();gt();B();NH=15,DH=Qo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),Lp=0,qp=[],GC=Ko(Ae),LH=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},qH=e=>{let t=new Rt,r=()=>{};return H("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>_(this,null,function*(){var s,l,c;let a=GC(i.fail);try{if(Lp+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=qC((s=i.headers)!=null?s:{}),y=MC(i.method),g=UC(i.timeout),w=FC(i.url,y,d),S=GC(i.success),A=Object.assign({},i,{method:y,header:m?void 0:v,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});g&&(A.timeout=g);let R=DH(w,A);{let{response:T}=yield R,{code:k,data:O,message:G}=T;if(O&&typeof O=="object"&&"status"in O&&O.status!==200)throw Lt({code:O.status||-1,msg:`request:fail status ${O.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:O,message:G!=null?G:"request:ok"}),S({code:"SUCCESS",message:"request:ok",data:O})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Lp-=1,(c=qp.shift())==null||c()}});return Lp>=NH?(r=()=>{LH(qp,a=>a===o)},qp.push(o)):o(),t.promise}})(e),{abort(){t.reject(Lt({code:-1,msg:"request:fail abort"})),r()}}},MH=Y();MH.registerCommand("HttpSDK.request",qH);L("request",{version:"1.0.0"})});var UH,FH,jH,Mp,JC=C(()=>{"use strict";P();be();Qe();UH=H("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",F(x({},e),{defaultValue:r,maxLength:t}))}});L("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"}});FH=H("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){j("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});jH=H("hideKeyboard",{implement(){j("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Mp=Y();Mp.registerCommand("KeyboardSDK.showKeyboard",UH);Mp.registerCommand("KeyboardSDK.updateKeyboard",FH);Mp.registerCommand("KeyboardSDK.hideKeyboard",jH)});var HC=h(Xs=>{"use strict";P();Qe();yt();var Up=Y(),GH=ue("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>_(Xs,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Et.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Et.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),BH=ue("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>_(Xs,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Et.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Et.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),JH=ue("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>_(Xs,[r],function*({levelId:e,name:t}){let n=[];n.push(Et.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Et.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Up.registerCommand("TaskTrackerSDK.levelFinished",GH);Up.registerCommand("TaskTrackerSDK.gamePlayEnded",BH);Up.registerCommand("TaskTrackerSDK.levelUpgrade",JH);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Fp,jp,Gp,HH,$C,Zs=C(()=>{"use strict";B();be();Qe();P();Wr();L("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"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Fp=new Map;rt("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=Fp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),Fp.delete(r))});jp=(e,t=!1)=>_(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield _e("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Lt({code:-1,msg:"login failed"});let s=new Rt;Fp.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=Be(p,["extra"]);return te.emit("onLoginComplete",d),t?l:d}),Gp=ue("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return _(this,null,function*(){return yield jp(e!=null?e:{})})}}),HH=ue("checkSession",{implement(){return _(this,null,function*(){let{data:{isLogin:e}}=yield _e("checkLoginAsync");return{isLogin:e}})}}),$C=Y();$C.registerCommand("API.login",Gp);$C.registerCommand("API.checkSession",HH)});var VC,WC=C(()=>{"use strict";VC=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function Hn(e){return t=>_(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield bi(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=zC(i.data),a=VC(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function $n(e){return()=>_(this,null,function*(){var i;let t=Date.now(),r=yield bi(e),n=zC((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield va(e,JSON.stringify(n))})}var zC,KC,YC,QC,XC,ZC,eA,tA,rA,nA,iA,oA,aA,el=C(()=>{"use strict";ya();WC();zC=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};KC=Hn("joli_coin_use_modal_frequency"),YC=Hn("joli_coin_payment_frequency"),QC=Hn("joli_coin_unlogin_modal_frequency"),XC=Hn("joli_gem_use_modal_frequency"),ZC=Hn("joli_gem_payment_frequency"),eA=Hn("joli_gem_unlogin_modal_frequency");tA=$n("joli_coin_use_modal_frequency"),rA=$n("joli_coin_payment_frequency"),nA=$n("joli_coin_unlogin_modal_frequency"),iA=$n("joli_gem_use_modal_frequency"),oA=$n("joli_gem_payment_frequency"),aA=$n("joli_gem_unlogin_modal_frequency")});var Bp,tl,Jp=C(()=>{"use strict";vt();Bp=Promise.resolve(),tl=(e,t)=>_(void 0,null,function*(){Bp=Bp.then(()=>_(void 0,null,function*(){yield re(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Bp})});var rl,nl,xt,il,sn,ur,dr,ol,Vn,$H,q,pr,fr,Ue=C(()=>{"use strict";P();rl="UNLOCK_OPTIONS_CHANGED",nl="INVOKE_PAYMENT",xt="ON_PAYMENT_RESULT",il="ON_USE_MODAL_EVENT",sn="ON_USE_MODAL_RESULT",ur="ON_USE_MODAL_FREQUENCY",dr="ON_USE_UNLOGIN_MODAL_EVENT",ol="INVOKE_UNLOGIN_MODAL_EVENT",Vn=new Dt,$H=()=>({on:Vn.on.bind(Vn),off:Vn.off.bind(Vn),emit:Vn.emit.bind(Vn)}),q=$H(),pr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},fr={show:!0,minInterval:8*60*60*1e3}});function et(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=x(x({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var hr=C(()=>{"use strict"});var cA=h(Hp=>{"use strict";el();Jp();Ue();Ue();cr();yt();P();hr();var VH={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:KC,frequencyUpdater:tA,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:XC,frequencyUpdater:iA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},sA=bo(),lA=et(q,ur);lA.getData();q.on(il,(e,t)=>_(Hp,null,function*(){let r=t.currency,n=VH[r];if(e.includes("ADS-")){yield sA.show({duration:3e3});let l=yield lA.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),sA.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(sn,{useModalResult:"CONFIRM"});return}if(!c){q.emit(sn,{useModalResult:"FAILED"});return}}U(n.trackEvents.popupShow,{eventType:J.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=uC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U(n.trackEvents.coinUnlock,{targetType:"game",eventType:J.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(sn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&U(n.trackEvents.adUnlock,{targetType:"game",eventType:J.Click,currency:r}),q.emit(sn,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>_(Hp,null,function*(){yield tl(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function uA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return _(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ae(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var dA=C(()=>{"use strict";gt()});var al=C(()=>{"use strict"});var WH,Wn,Fr,zH,ln,$p=C(()=>{"use strict";al();P();B();vt();WH=()=>{let[e,t]=[Yh,Xh].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Wn,createPaymentInternalError:Fr}=WH(),zH=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",ln=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>_(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Wn(n,1001);return yield this.pay()});this.cancelOrder=t=>_(this,null,function*(){var n,i;let{response:r}=yield re(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Wn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(x({},this.generatePaymentContext()))),`${zH}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Vp,fA,hA=C(()=>{"use strict";vt();$p();al();Vp=class extends ln{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>_(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return _(this,null,function*(){var n,i,o,a;try{let{response:s}=yield re("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Wn((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Fr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},fA=()=>{let e=new Map;return t=>_(void 0,null,function*(){let r=e.get(t);return r||(r=new Vp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var mA,gA=C(()=>{"use strict";mA={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var Wp,vA,zp,Kp,KH,Yp,yA=C(()=>{"use strict";vt();$p();al();be();P();B();cr();gA();Wp=new Map;rt("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Wp.get(t);if(o){if(r==="SUCCESS")Ur("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Hh(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Fr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=mA[r];a&&Ur(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Wp.delete(t)}});vA=e=>_(void 0,null,function*(){var n,i;let t=new Rt,r;try{let o=yield _e("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Fr("orderUUID is null",1002);Wp.set(r,t)}catch(o){throw Fr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),zp=class extends ln{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>_(this,null,function*(){return yield vA({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return _(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Kp=class extends ln{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>_(this,null,function*(){return yield vA({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return _(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield re("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Fr("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},KH={android:zp,ios:Kp},Yp=()=>{let e=new Map;return t=>_(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=KH[E.platform];if(!s)throw Fr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw Wn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var cn,Qp=C(()=>{"use strict";dA();hA();yA();cn=uA();cn.registerPaymentHandler("JOLI_COIN",fA());cn.registerPaymentHandler("JOLI_COIN_IAP",Yp());cn.registerPaymentHandler("JOLI_GEM_IAP",Yp())});function YH(e,t){Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!mc(r.totalAmountStr))}var Vt,Xp,Wt,cl,Zp,ef,sl,ll,_A,ul,tf=C(()=>{"use strict";Qp();P();be();vt();P();Vt=class Vt{execute(t,r){return _(this,null,function*(){var a,s,l;let{response:n}=yield re(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(l=(s=i.paymentChoices)==null?void 0:s.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?l:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&YH(i,c)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return _(this,null,function*(){let r=t.sort().join(","),n=Vt.nativePriceCache.get(r),i=Vt.nativePriceCacheTimestamp.get(r)||0;if(n&&Date.now()-i<Vt.NATIVE_PRICE_CACHE_DURATION)return console.log("[PaymentService] Using cached native price data"),n;console.log("[PaymentService] Fetching fresh native price data");try{let{data:o}=yield _e("requestProductDetailsAsync",{appStoreProductIds:t});return o&&(Vt.nativePriceCache.set(r,o),Vt.nativePriceCacheTimestamp.set(r,Date.now())),o}catch(o){throw console.warn("[PaymentService] Failed to fetch native product details:",o),o}})}extractCacheableData(t){return{paymentChoices:t.paymentChoices}}mergeData(t,r){return{balance:r.balance,enableAutoDeduct:r.enableAutoDeduct,paymentChoices:t.paymentChoices}}processCachedData(t){return{balance:0,enableAutoDeduct:!1,paymentChoices:t.paymentChoices}}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[PaymentService] Cleared native price cache")}};Vt.nativePriceCache=new Map,Vt.NATIVE_PRICE_CACHE_DURATION=30*60*1e3,Vt.nativePriceCacheTimestamp=new Map;Xp=Vt,Wt=class Wt extends Qt{constructor(r,n){super(new Xp,{duration:10*60*1e3,timeout:1e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return _(this,null,function*(){let r=Wt.failureCounters.get(this.apiEndpoint)||0;if(r>=Wt.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${Wt.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return Wt.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw Wt.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${Wt.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return _(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield cn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return _(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return _(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};Wt.failureCounters=new Map,Wt.MAX_FAILURE_COUNT=2;cl=Wt,Zp=class extends cl{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},ef=class extends cl{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},sl=null,ll=null,_A=()=>sl||(sl=new Zp,sl),ul=()=>ll||(ll=new ef,ll)});var IA=h(dl=>{"use strict";Ue();cr();B();Zs();P();el();Qp();cr();Qe();yt();Jp();hr();tf();var QH={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:YC,frequencyUpdater:rA,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:ZC,frequencyUpdater:oA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},zn=bo(),bA=_A(),wA=ul(),XH=et(q,ur);q.on(nl,(e,t)=>_(dl,null,function*(){var r,n;try{let i=t.currency,o=QH[i];if(!Pm("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(xt,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield zn.show({duration:3e3});let c=yield XH.getData(),{canShow:d}=yield o.frequencyChecker(c.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,d),zn.hide(),!d){q.emit(xt,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield zn.show({duration:3e3});let a=i==="JOLI_COIN"?bA:wA,s=yield a.getProductsInfo();if(zn.hide(),!s){q.emit(xt,{paymentResult:"FAILED",currency:i});return}U(o.trackEvents.modalShow,{targetType:"game",eventType:J.View,currency:i});let l=dC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=s.paymentChoices)==null?void 0:r.map(c=>{var d;return F(x({},c),{totalAmountStr:(d=c.totalAmountStr)!=null?d:""})}))!=null?n:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:c=>_(dl,null,function*(){var p,f,m,v,y,g,w,S;if(U(o.trackEvents.payEnsure,{targetType:"game",eventType:J.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(f=(p=s.paymentChoices.find(A=>A.productId===c))==null?void 0:p.totalAmountStr)!=null?f:""}),!((m=E.hostUserInfo)!=null&&m.isLogin)){let{data:A}=yield Gp({skipLogin:!0});if(!(A!=null&&A.isLogin)){console.log("login failed");return}let R=yield a.refreshProductsInfo();if(((v=R==null?void 0:R.balance)!=null?v:0)>=t.quantity){q.emit(xt,{paymentResult:"SUCCESS",currency:i}),l.destroy();return}}console.log("invokeNativePayment",c);let d=(g=(y=s==null?void 0:s.paymentChoices)==null?void 0:y.find(A=>A.productId===c))==null?void 0:g.appStoreProductId;if(!d){q.emit(xt,{paymentResult:"FAILED",currency:i}),l.destroy();return}yield zn.show({duration:3e3});let{code:u}=yield cn.invokePayment(o.paymentType,{productId:c,appStoreProductId:d});if(zn.hide(),U(o.trackEvents.payResult,{eventType:J.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(S=(w=s.paymentChoices.find(A=>A.productId===c))==null?void 0:w.totalAmountStr)!=null?S:"",payResult:u}),console.log("payment result",u),u!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(xt,{paymentResult:"SUCCESS",currency:i}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{q.emit(xt,{paymentResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),U(o.trackEvents.adUnlock,{targetType:"game",eventType:J.Click,currency:i}),l.destroy()}},onEnableDeductChanged:c=>_(dl,null,function*(){yield tl(c,o.apiEndpointAutoDeduct)})},onSelect:c=>{var d,u;U(o.trackEvents.orderClick,{targetType:"game",eventType:J.Click,coinAmount:t.quantity,currency:i,orderPrice:(u=(d=s.paymentChoices.find(p=>p.productId===c))==null?void 0:d.totalAmountStr)!=null?u:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),q.emit(xt,{paymentResult:"FAILED",currency:t.currency})}}));bA.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});wA.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var SA=h(pl=>{"use strict";Ue();hr();el();vt();gt();P();Zs();cr();yt();var ZH={JOLI_COIN:{frequencyChecker:QC,frequencyUpdater:nA,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:eA,frequencyUpdater:aA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},EA=et(q,ur);EA.getData();q.on(ol,(e,t)=>_(pl,null,function*(){var r;try{let n=t.currency,i=ZH[n];if(e.includes("ADS-")){let s=yield EA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(dr,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){q.emit(dr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield e3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(dr,{result:"NOT_SUPPORT"});return}U(i.trackEvents.modalExpose,{eventType:J.Expose,currency:n},J.Expose);let a=pC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>_(pl,null,function*(){var d,u,p,f;U(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:J.Click,currency:n},J.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield jp({},!0);if(!s){console.log("login failed");return}if(U(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:J.Click,currency:n},J.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:m}=l.firstLogin.reward;Ur(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}q.emit(dr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{U(i.trackEvents.modalHide,{eventType:J.Hide,currency:n},J.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;U(c,{type:l,eventType:J.Click,currency:n},J.Click),q.emit(dr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ae(new Zh(n)),q.emit(dr,{result:"FAILED"})}}));var e3=()=>_(pl,null,function*(){var t;let{response:e}=yield re("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var VZ,WZ,zZ,kA=C(()=>{"use strict";VZ=ie(cA()),WZ=ie(IA()),zZ=ie(SA())});function p3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function f3(e){return typeof e=="string"}function h3(e){return typeof e=="undefined"}function m3(e){return h3(e)||e===null}function g3(e){return typeof e=="function"}function tx(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function wo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function gl(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function E3(e){let t=e.location?gl(e.location,RA):null,r=e.target?gl(e.target,RA):null;return gl(c3(l3({},e),{location:t,target:r}),w3)}function S3(e){let t=e.events.map(n=>E3(n)),r=gl(e.device,I3);return[e.protocolVersion,t,r,e.project]}function k3(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function O3(e){return new Promise(t=>ox(e)(t))}function ox(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function R3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Co(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function N3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)D3(e[n],t[n])}function D3(e,t){if(f3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(g3(t)){try{if(e instanceof t)return}catch(r){}if(!m3(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ot(e,t,r){return(t=L3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L3(e){var t=q3(e,"string");return typeof t=="symbol"?t:t+""}function q3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fl(e,t,r){return(t=M3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M3(e){var t=U3(e,"string");return typeof t=="symbol"?t:t+""}function U3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hl(e,t,r){return(t=F3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F3(e){var t=j3(e,"string");return typeof t=="symbol"?t:t+""}function j3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mr(e,t,r){return(t=G3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G3(e){var t=B3(e,"string");return typeof t=="symbol"?t:t+""}function B3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function H3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function Y3(e,t){return Fe(e,0)^45?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}function lx(e){return e.trim()}function Q3(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function vf(e,t){return e.indexOf(t)}function Fe(e,t){return e.charCodeAt(t)|0}function Ao(e,t,r){return e.slice(t,r)}function zt(e){return e.length}function Nf(e){return e.length}function ml(e,t){return t.push(e),e}function X3(e,t){return e.map(t).join("")}function Rl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ol,column:ei,length:a,return:""}}function Eo(e,t){return K3(Rl("",null,null,"",null,null,0),e,{length:-e.length},t)}function Z3(){return Ce}function e4(){return Ce=lt>0?Fe(ti,--lt):0,ei--,Ce===10&&(ei=1,Ol--),Ce}function ht(){return Ce=lt<cx?Fe(ti,lt++):0,ei++,Ce===10&&(ei=1,Ol++),Ce}function Kt(){return Fe(ti,lt)}function vl(){return lt}function To(e,t){return Ao(ti,e,t)}function xo(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 ux(e){return Ol=ei=1,cx=zt(ti=e),lt=0,[]}function dx(e){return ti="",e}function yl(e){return lx(To(lt-1,yf(e===91?e+2:e===40?e+1:e)))}function t4(e){for(;(Ce=Kt())&&Ce<33;)ht();return xo(e)>2||xo(Ce)>3?"":" "}function r4(e,t){for(;--t&&ht()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return To(e,vl()+(t<6&&Kt()==32&&ht()==32))}function yf(e){for(;ht();)switch(Ce){case e:return lt;case 34:case 39:e!==34&&e!==39&&yf(Ce);break;case 40:e===41&&yf(e);break;case 92:ht();break}return lt}function n4(e,t){for(;ht()&&e+Ce!==57&&!(e+Ce===84&&Kt()===47););return"/*"+To(t,lt-1)+"*"+Tl(e===47?e:ht())}function i4(e){for(;!xo(Kt());)ht();return To(e,lt)}function o4(e){return dx(_l("",null,null,null,[""],e=ux(e),0,[0],e))}function _l(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,v=1,y=1,g=1,w=0,S="",A=i,R=o,T=n,k=S;y;)switch(m=w,w=ht()){case 40:if(m!=108&&Fe(k,u-1)==58){vf(k+=K(yl(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=yl(w);break;case 9:case 10:case 13:case 32:k+=t4(m);break;case 92:k+=r4(vl()-1,7);continue;case 47:switch(Kt()){case 42:case 47:ml(a4(n4(ht(),vl()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=zt(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:g==-1&&(k=K(k,/\f/g,"")),f>0&&zt(k)-u&&ml(f>32?LA(k+";",n,r,u-1):LA(K(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(ml(T=DA(k,t,r,c,d,i,s,S,A=[],R=[],u),o),w===123)if(d===0)_l(k,t,T,T,A,o,u,s,R);else switch(p===99&&Fe(k,3)===110?100:p){case 100:case 108:case 109:case 115:_l(e,T,T,n&&ml(DA(e,T,T,0,0,i,s,S,i,A=[],u),R),i,R,u,s,n?A:R);break;default:_l(k,T,T,T,[""],R,0,s,R)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+zt(k),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&e4()==125)continue}switch(k+=Tl(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(zt(k)-1)*g,g=1;break;case 64:Kt()===45&&(k+=yl(ht())),p=Kt(),d=u=zt(S=k+=i4(vl())),w++;break;case 45:m===45&&zt(k)==2&&(v=0)}}return o}function DA(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Nf(p),m=0,v=0,y=0;m<n;++m)for(var g=0,w=Ao(e,u+1,u=z3(v=a[m])),S=e;g<f;++g)(S=lx(v>0?p[g]+" "+w:K(w,/&\f/g,p[g])))&&(l[y++]=S);return Rl(e,t,r,i===0?Rf:s,l,c,d)}function a4(e,t,r){return Rl(e,t,r,ax,Tl(Z3()),Ao(e,2,-2),0)}function LA(e,t,r,n){return Rl(e,t,r,Pf,Ao(e,0,n),Ao(e,n+1,-1),n)}function Zn(e,t){for(var r="",n=Nf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function s4(e,t,r,n){switch(e.type){case W3:if(e.children.length)break;case V3:case Pf:return e.return=e.return||e.value;case ax:return"";case sx:return e.return=e.value+"{"+Zn(e.children,n)+"}";case Rf:e.value=e.props.join(",")}return zt(r=Zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function l4(e){var t=Nf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function c4(e){return function(t){t.root||(t=t.return)&&e(t)}}function u4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function px(e,t){switch(Y3(e,t)){case 5103:return z+"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 z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+El+e+ze+e+e;case 6828:case 4268:return z+e+ze+e+e;case 6165:return z+e+ze+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+ze+"flex-$1$2")+e;case 5443:return z+e+ze+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+ze+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+ze+K(e,"shrink","negative")+e;case 5292:return z+e+ze+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+ze+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$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(zt(e)-1-t>6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+El+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vf(e,"stretch")?px(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,zt(e)-3-(~vf(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Fe(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ze+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return z+e+ze+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+ze+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+ze+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+ze+e+e}return e}function _4(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Sl(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return jr={name:i.name,styles:i.styles,next:jr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)jr={name:a.name,styles:a.styles,next:jr},a=a.next;var s=o.styles+";";return s}return E4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function E4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Sl(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":MA(s)&&(n+=nf(o)+":"+UA(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)MA(a[l])&&(n+=nf(o)+":"+UA(o,a[l])+";");else{var c=Sl(e,t,a);switch(o){case"animation":case"animationName":{n+=nf(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function of(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";jr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Sl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Sl(r,t,e[s]),n){var l=o;i+=l[s]}FA.lastIndex=0;for(var c="",d;(d=FA.exec(i))!==null;)c+="-"+d[1];var u=_4(i)+c;return{name:u,styles:i,next:jr}}function hx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function jA(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function GA(e,t,r){var n=[],i=hx(e,n,r);return n.length<2?r:i+t(n)}function T4(e,t){Re.__h&&Re.__h(ft,e,JA||t),JA=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function gx(e,t){var r=T4(_f++,7);return P4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function O4(){for(var e;e=mx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(bl),e.__H.__h.forEach(bf),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}function R4(e){var t,r=function(){clearTimeout(n),YA&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);YA&&(t=requestAnimationFrame(r))}function bl(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function bf(e){var t=ft;e.__c=e.__(),ft=t}function P4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Pl(){if(Gr>1)Gr--;else{for(var e,t=!1;So!==void 0;){var r=So;for(So=void 0,wf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&yx(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(wf=0,Gr--,t)throw e}}function st(e){if(Gr>0)return e();Gr++;try{return e()}finally{Pl()}}function vx(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function je(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ne(e){return new je(e)}function yx(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function _x(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function bx(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function ni(e){je.call(this,void 0),this.x=e,this.s=void 0,this.g=kl-1,this.f=4}function ko(e){return new ni(e)}function wx(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Gr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Df(e),n}finally{ee=r,Pl()}}}function Df(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,wx(e)}function D4(e){if(ee!==this)throw new Error("Out-of-order effect");bx(this),ee=e,this.f&=-2,8&this.f&&Df(this),Pl()}function Oo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Ro(e){var t=new Oo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function ii(e,t){N[e]=t.bind(null,N[e]||function(){})}function Cl(e){sf&&sf(),sf=e&&e.S()}function Sx(e){var t=this,r=e.data,n=kx(r);n.value=r;var i=gx(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=ko(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=ko(function(){return!Array.isArray(c.value)&&!Hc(c.value)}),u=Ro(function(){if(this.N=Cx,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function L4(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=ne(r);return{o:function(a,s){o.value=a,n=s},d:Ro(function(){this.N=Cx;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function kx(e){return gx(function(){return ne(e)},[])}function M4(){st(function(){for(var e;e=Ex.shift();)Ix.call(e)})}function Cx(){Ex.push(this)===1&&(N.requestAnimationFrame||q4)(M4)}function U4(e,t){let r=Ji(e);xn(()=>{r.current=e},[e]),Bi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ye(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--F4,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function gr(e,t,r){return(t=Q4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q4(e){var t=X4(e,"string");return typeof t=="symbol"?t:t+""}function X4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vr(e,t,r){return(t=r$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r$(e){var t=n$(e,"string");return typeof t=="symbol"?t:t+""}function n$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function We(e,t,r){return(t=i$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i$(e){var t=o$(e,"string");return typeof t=="symbol"?t:t+""}function o$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return(t=a$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a$(e){var t=s$(e,"string");return typeof t=="symbol"?t:t+""}function s$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function un(e,t,r){return(t=l$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l$(e){var t=c$(e,"string");return typeof t=="symbol"?t:t+""}function c$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lf(e,t,r){return(t=u$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u$(e){var t=d$(e,"string");return typeof t=="symbol"?t:t+""}function d$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tt(e,t,r){return(t=p$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p$(e){var t=f$(e,"string");return typeof t=="symbol"?t:t+""}function f$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tt(e,t,r){return(t=h$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h$(e){var t=m$(e,"string");return typeof t=="symbol"?t:t+""}function m$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t3,Il,QA,XA,CA,r3,n3,ZA,i3,o3,AA,a3,s3,xA,l3,c3,u3,ex,d3,v3,y3,TA,_3,OA,b3,rx,nx,ix,RA,w3,I3,Qn,PA,cf,pe,C3,A3,Io,Co,x3,df,T3,rf,P3,pf,NA,Kn,ff,hf,mf,gf,$3,ze,El,z,ax,Rf,Pf,V3,sx,W3,z3,Tl,K3,Ol,ei,cx,lt,Ce,ti,d4,p4,f4,qA,h4,m4,g4,v4,y4,b4,w4,I4,fx,MA,nf,UA,FA,jr,S4,k4,C4,A4,x4,ri,_f,ft,af,BA,JA,mx,Re,HA,$A,VA,WA,zA,KA,YA,N4,ee,So,Gr,wf,kl,Ix,sf,Ex,q4,Ke,F4,j4,yr,If,Ef,wl,G4,B4,J4,H4,$4,V4,W4,z4,K4,Y4,Sf,Xn,Yn,Z4,e$,t$,kf,Ax,Cf,Af,xf,Tf,Al,Of,xl,QZ,xx=C(()=>{"use strict";yn();Fa();t3=Object.defineProperty,Il=Object.getOwnPropertySymbols,QA=Object.prototype.hasOwnProperty,XA=Object.prototype.propertyIsEnumerable,CA=(e,t,r)=>t in e?t3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r3=(e,t)=>{for(var r in t||(t={}))QA.call(t,r)&&CA(e,r,t[r]);if(Il)for(var r of Il(t))XA.call(t,r)&&CA(e,r,t[r]);return e},n3=(e,t)=>{var r={};for(var n in e)QA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Il)for(var n of Il(e))t.indexOf(n)<0&&XA.call(e,n)&&(r[n]=e[n]);return r},ZA=Object.defineProperty,i3=Object.defineProperties,o3=Object.getOwnPropertyDescriptors,AA=Object.getOwnPropertySymbols,a3=Object.prototype.hasOwnProperty,s3=Object.prototype.propertyIsEnumerable,xA=(e,t,r)=>t in e?ZA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l3=(e,t)=>{for(var r in t||(t={}))a3.call(t,r)&&xA(e,r,t[r]);if(AA)for(var r of AA(t))s3.call(t,r)&&xA(e,r,t[r]);return e},c3=(e,t)=>i3(e,o3(t)),u3=(e,t)=>{for(var r in t)ZA(e,r,{get:t[r],enumerable:!0})},ex=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},d3=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}v3=(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))(v3||{});y3={log:wo("log"),warn:wo("warn"),info:wo("info"),error:wo("error"),debug:wo("debug")};Object.assign(globalThis,{logger:y3});TA=Symbol.for("Jolibox.canIUseMap"),_3={};globalThis[TA]||(globalThis[TA]=_3);OA=Symbol.for("Jolibox.canIUseMap.native"),b3={};globalThis[OA]||(globalThis[OA]=b3);rx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(rx||{}),nx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(nx||{}),ix=(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))(ix||{}),RA=["name","params"],w3=["name","type","location","target","extra","timestamp","userId"],I3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];k3();Qn=typeof window=="undefined",PA=()=>!Qn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Qn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Qn&&navigator.userAgent.includes("Android"),!Qn&&navigator.userAgent.includes("Mac"),!Qn&&navigator.userAgent.includes("FB_IAB"),!Qn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");cf=class uf{constructor(t){this.element=t,this.next=uf.Undefined,this.prev=uf.Undefined}};cf.Undefined=new cf(void 0);pe=cf,C3=class{constructor(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pe.Undefined}clear(){let e=this._first;for(;e!==pe.Undefined;){let t=e.next;e.prev=pe.Undefined,e.next=pe.Undefined,e=t}this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new pe(e);if(this._first===pe.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==pe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pe.Undefined;)yield e.element,e=e.next}},A3=0,Io=class{constructor(e){this.value=e,this.id=A3++}},Co=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof Io&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new Io(e);return this._listeners?this._listeners instanceof Io?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof Io)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Io?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},x3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Co,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new C3,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},df={};u3(df,{None:()=>T3,filter:()=>R3,once:()=>ox,toPromise:()=>O3});T3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});rf=Symbol.for("Jolibox.hostEmitter"),P3=()=>{let e=new x3;return globalThis[rf]||(globalThis[rf]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[rf]};P3();pf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Co,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return N3(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};pf=ex([tx],pf);NA=class{constructor(){this._onWillExecuteCommand=new Co,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Co,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new pf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=p3(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return d3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),df.toPromise(df.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};NA=ex([tx],NA);Kn=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},ff=class{constructor(t){ot(this,"context",void 0),ot(this,"continueCallback",void 0),ot(this,"adIsShowingCallback",void 0),ot(this,"isBeforeAdCalled",!1),ot(this,"isBeforeRewardCalled",!1),ot(this,"isAdDismissedCalled",!1),ot(this,"isAdViewedCalled",!1),ot(this,"isAfterAdCalled",!1),ot(this,"currentProvider",void 0),ot(this,"currentClientParams",void 0),ot(this,"adsHasResponse",!1),ot(this,"videoChecker",window.document.createElement("video")),ot(this,"contextInfo",void 0),ot(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",r3({userEvent:a},this.paramsToTrack)),PA()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Kn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(t,r){window.parent&&window.parent.postMessage({type:t,data:r},"*"),window.dispatchEvent(new CustomEvent(t,{detail:r}))}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Kn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),PA()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Kn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Kn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Kn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l,c,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE",{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(l=r.breakName)!=null?l:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Kn(t);p==null||p(r),(c=this.adIsShowingCallback)==null||c.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return _(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(c=this.currentProvider)==null?void 0:c.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};hf=class{constructor(t){fl(this,"context",void 0),fl(this,"adBreakIsShowing",!1),fl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),fl(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};mf=class{constructor(t){hl(this,"configs",null),hl(this,"firstRun",!0),hl(this,"context",void 0),hl(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return _(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};gf=class{constructor(t,r){mr(this,"name","ADSENSE"),mr(this,"context",void 0),mr(this,"contextInfo",void 0),mr(this,"configured",!1),mr(this,"initParams",void 0),mr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),mr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=n3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),mr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),mr(this,"adUnit",n=>_(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),v&&y.setAttribute("data-ad-format",v),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let g=document.createElement("div");g.style.position="absolute",g.style.top="0",g.style.left="0",g.style.width="100%",g.style.height="100%",g.style.display="flex",g.style.justifyContent="center",g.style.alignItems="center",g.style.backgroundColor="rgba(0, 0, 0, 0.5)",g.style.color="white",g.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(g)}else f.appendChild(y),new MutationObserver(g=>{g.forEach(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let S=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:S!=null?S:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return _(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};$3=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(H3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=J3(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ze="-ms-",El="-moz-",z="-webkit-",ax="comm",Rf="rule",Pf="decl",V3="@import",sx="@keyframes",W3="@layer",z3=Math.abs,Tl=String.fromCharCode,K3=Object.assign;Ol=1,ei=1,cx=0,lt=0,Ce=0,ti="";d4=function(e,t,r){for(var n=0,i=0;n=i,i=Kt(),n===38&&i===12&&(t[r]=1),!xo(i);)ht();return To(e,lt)},p4=function(e,t){var r=-1,n=44;do switch(xo(n)){case 0:n===38&&Kt()===12&&(t[r]=1),e[r]+=d4(lt-1,t,r);break;case 2:e[r]+=yl(n);break;case 4:if(n===44){e[++r]=Kt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Tl(n)}while(n=ht());return e},f4=function(e,t){return dx(p4(ux(e),t))},qA=new WeakMap,h4=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!qA.get(r))&&!n){qA.set(e,!0);for(var i=[],o=f4(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},m4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};g4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Pf:e.return=px(e.value,e.length);break;case sx:return Zn([Eo(e,{value:K(e.value,"@","@"+z)})],n);case Rf:if(e.length)return X3(e.props,function(i){switch(Q3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([Eo(e,{props:[K(i,/:(read-\w+)/,":"+El+"$1")]})],n);case"::placeholder":return Zn([Eo(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),Eo(e,{props:[K(i,/:(plac\w+)/,":"+El+"$1")]}),Eo(e,{props:[K(i,/:(plac\w+)/,ze+"input-$1")]})],n)}return""})}},v4=[g4],y4=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||v4,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(m)});var s,l=[h4,m4];{var c,d=[s4,c4(function(m){c.insert(m)})],u=l4(l.concat(n,d)),p=function(m){return Zn(o4(m),u)};s=function(m,v,y,g){c=y,p(m?m+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new $3({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};b4={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w4=/[A-Z]|^ms/g,I4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fx=function(e){return e.charCodeAt(1)===45},MA=function(e){return e!=null&&typeof e!="boolean"},nf=u4(function(e){return fx(e)?e:e.replace(w4,"-$&").toLowerCase()}),UA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(I4,function(r,n,i){return jr={name:n,styles:i,next:jr},n})}return b4[e]!==1&&!fx(e)&&typeof t=="number"&&t!==0?t+"px":t};FA=/label:\s*([^\s;{]+)\s*(;|$)/g;S4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},k4=function(e,t,r){S4(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};C4=function(e){var t=y4(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=of(s,t.registered,void 0);return k4(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=of(s,t.registered),d="animation-"+c.name;return jA(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=of(s,t.registered);jA(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return GA(t.registered,r,A4(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:hx.bind(null,t.registered),merge:GA.bind(null,t.registered,r)}},A4=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},x4=C4({key:"css"}),ri=x4.css,JA=0,mx=[],Re=N,HA=Re.__b,$A=Re.__r,VA=Re.diffed,WA=Re.__c,zA=Re.unmount,KA=Re.__;Re.__b=function(e){ft=null,HA&&HA(e)},Re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),KA&&KA(e,t)},Re.__r=function(e){$A&&$A(e),_f=0;var t=(ft=e.__c).__H;t&&(af===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(bl),t.__h.forEach(bf),t.__h=[],_f=0)),af=ft},Re.diffed=function(e){VA&&VA(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(mx.push(t)!==1&&BA===Re.requestAnimationFrame||((BA=Re.requestAnimationFrame)||R4)(O4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),af=ft=null},Re.__c=function(e,t){t.some(function(r){try{r.__h.forEach(bl),r.__h=r.__h.filter(function(n){return!n.__||bf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Re.__e(n,r.__v)}}),WA&&WA(e,t)},Re.unmount=function(e){zA&&zA(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{bl(n)}catch(i){t=i}}),r.__H=void 0,t&&Re.__e(t,r.__v))};YA=typeof requestAnimationFrame=="function";N4=Symbol.for("preact-signals");ee=void 0,So=void 0,Gr=0,wf=0,kl=0;je.prototype.brand=N4;je.prototype.h=function(){return!0};je.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};je.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};je.prototype.subscribe=function(e){var t=this;return Ro(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};je.prototype.valueOf=function(){return this.value};je.prototype.toString=function(){return this.value+""};je.prototype.toJSON=function(){return this.value};je.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(je.prototype,"value",{get:function(){var e=vx(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wf>100)throw new Error("Cycle detected");this.v=e,this.i++,kl++,Gr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pl()}}}});(ni.prototype=new je).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===kl))return!0;if(this.g=kl,this.f|=1,this.i>0&&!yx(this))return this.f&=-2,!0;var e=ee;try{_x(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,bx(this),this.f&=-2,!0};ni.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}je.prototype.S.call(this,e)};ni.prototype.U=function(e){if(this.t!==void 0&&(je.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};ni.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(ni.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=vx(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Oo.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Oo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,wx(this),_x(this),Gr++;var e=ee;return ee=this,D4.bind(this,e)};Oo.prototype.N=function(){2&this.f||(this.f|=2,this.o=So,So=this)};Oo.prototype.d=function(){this.f|=8,1&this.f||Df(this)};Ex=[];Ro(function(){Ix=this.N})();Sx.displayName="_st";Object.defineProperties(je.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Sx},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ii("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof je&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});ii("__r",function(e,t){Cl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Ro(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Cl(r),e(t)});ii("__e",function(e,t,r,n){Cl(),e(t,r,n)});ii("diffed",function(e,t){Cl();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var l in n){var c=o[l],d=n[l];c===void 0?(c=L4(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});ii("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});ii("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};q4=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ke=ri`
622
+ `,B5=()=>_("div",{style:zk.container,children:[_("style",{children:G5}),_("div",{style:zk.spinner})]});DQ=pn()});function VC(){return y(this,null,function*(){if(Qp)return Qp;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield Z(t);return Qp=r,r})}function WC(){return y(this,null,function*(){let e=new nt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Xp)return e.resolve(!0),e.promise;let t=yield VC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Xp=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",x({eventType:J.View},o));let a=PC({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(Xp=!1,s.type){case"quit":j("RecommendedGuide",{eventType:J.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",x({eventType:J.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;J5(l),j("GameItem",{eventType:J.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",x({eventType:J.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Qp,J5,Xp,zC=C(()=>{"use strict";B();ce();R();er();pt();kt();Qp=null;VC();J5=e=>{var a;let{data:t}=F("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;F("openSchemaSync",{schema:o})},Xp=!1});function $5(e){let t=x(x({},H5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:c}=t,l=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:w,containerTransition:E,iframeTransition:A}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${w}; opacity:0; visibility:hidden;`,X=document.createElement("div"),X.id="jolibox-modal-container",X.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${E};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let T=document.createElement("style");T.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(T);let k=document.createElement("div");if(k.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",xt=document.createElement("iframe"),xt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,xt.src=r,xt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),xt.style.opacity="1",g(),c==null||c(),he.emit("onModalIframeLoaded",{url:r})},k.appendChild(xt),k.appendChild(P),X.appendChild(k),i){let G=document.createElement("div");G.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",G.innerHTML="\u2715",G.onclick=v,X.appendChild(G)}ae.appendChild(X),document.body.appendChild(ae),ae.addEventListener("click",function(G){G.target===ae&&v()}),o&&b()}function g(){!ae||!X||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0),F("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function b(){if(!X)return;let w=P=>{l=P.touches[0].clientY},E=P=>{if(!u)return;d=P.touches[0].clientY;let T=d-l;T>0&&(X&&(X.style.transition="none",X.style.transform=`translateY(${T}px)`),P.preventDefault())},A=()=>{!u||!X||(X.style.transition=a?"transform 0.3s ease":"none",d-l>80?v():X.style.transform="translateY(0)")};X.addEventListener("touchstart",w),X.addEventListener("touchmove",E),X.addEventListener("touchend",A)}function v(){!ae||!X||!u||(a?(X.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,F("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,X=null,xt=null,s==null||s(),he.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function KC(){return window.joliboxUI=U(x({},window.joliboxUI),{createIframeModal:$5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),X&&X.parentNode&&X.parentNode.removeChild(X),xt&&xt.parentNode&&xt.parentNode.removeChild(xt),ae=null,X=null,xt=null}}var H5,ae,X,xt,YC=C(()=>{"use strict";ce();B();R();H5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,X=null,xt=null});var eA={};Fm(eA,{config:()=>r3});function W5(){Fa.on("isAdShowing",e=>{pc=e,xr(pc)&&F("updateContainerConfigSync",{displayCapsuleButton:!pc,webviewId:S.webviewId})})}function z5(){he.on("onInterceptSystemExit",({intercept:e})=>{QC=e})}function K5(){he.on("onInterceptBackPress",({intercept:e})=>{V5=e}),Re("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;ZC(t),he.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function Y5(){he.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:mc,timestamp:Date.now()})})}function Q5(){Re("onI18nChanged",({language:e})=>{he.emit("onI18nChanged",{i18n:e})})}function X5(e){S.mpType==="game"&&Ot.start(e)}function Z5(){Re("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),he.emit("LifecycleEvent.onReady",x({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:mc,timestamp:Date.now()}),X5(t),IC(()=>S.language)}),Re("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;ZC(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function e3(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),uc==null||uc(),dc==null||dc(),Ot.close(Date.now()-mc)},t=()=>pc||QC;It.onDoExit(()=>y(this,null,function*(){return t()?!0:xr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):fc!=null&&fc.canShowRecommended&&!XC&&(yield WC())?!0:(e(),!1)})),It.onDoBackPress(()=>y(this,null,function*(){return!!t()}))}function t3(){return y(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield Z(e);t&&(fc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function r3(){mc=Date.now(),Z5(),W5(),z5(),K5(),e3(),Y5(),Q5(),t3(),dc=KC(),uc=pg()}var uc,dc,mc,pc,fc,QC,V5,XC,ZC,tA=C(()=>{"use strict";ce();B();R();kt();fg();ou();zC();pt();er();YC();pc=!1,fc=null,QC=!1,V5=!1,XC=!1,ZC=e=>{xr(e)&&(XC=e)};It.onReady(()=>{})});var rA,n3,i3,o3,a3,nA=C(()=>{"use strict";R();Ve();ce();B();rA=Y(),n3="env",i3="getSystemInfoSync",o3=H(i3,{implement:()=>{var r;let e=F("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),a3=H(n3,{implement:()=>{var t;let e=F("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});rA.registerCommand("API.getSystemInfoSync",o3);rA.registerCommand("API.env",a3);M("env",{version:"1.0.0"});M("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var iA=h(Zp=>{"use strict";R();Ve();dt();ce();kt();B();var s3="exitGame",c3="onReady",l3="onJoliboxShow",u3="onJoliboxHide",hc=Y(),gc=ga(_e),d3=ne(s3,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>y(Zp,null,function*(){gc(e).call(Zp),xr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&ch("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield me("exitAppAsync")})}),p3=H(l3,{paramsSchema:I.tuple(I.function()),implement(e){let t=gc(e);Re("onJoliboxEnterForeground",()=>{t.call(this),Fi.emit("visible",!0)})}}),f3=H(u3,{paramsSchema:I.tuple(I.function()),implement(e){let t=gc(e);Re("onJoliboxEnterBackground",()=>{t.call(this),Fi.emit("visible",!1)})}}),m3=H(c3,{paramsSchema:I.tuple(I.function()),implement(e){let t=gc(e);he.on("LifecycleEvent.onReady",r=>{t(r)})}});hc.registerCommand("LifecycleSDK.exit",d3);hc.registerCommand("LifecycleSDK.onReady",m3);hc.registerCommand("LifecycleSDK.onJoliboxShow",p3);hc.registerCommand("LifecycleSDK.onJoliboxHide",f3);M("lifeCycle.exit",{version:"1.0.0"});M("lifeCycle.onReady",{version:"1.0.0"});M("lifeCycle.onJoliboxShow",{version:"1.0.0"});M("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function oA(e){let t={};if(!Yr(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function aA(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function sA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function cA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Yr(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,c]of Object.entries(r))c!=null&&o.append(s,String(c));let a=o.toString();return a?`${n}?${a}`:n}var lA=C(()=>{"use strict";R()});var h3,g3,ef,tf,uA,v3,y3,b3,dA=C(()=>{"use strict";Xr();Yl();Ve();lA();R();dt();B();h3=15,g3=ya("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),ef=0,tf=[],uA=ga(_e),v3=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},y3=e=>{let t=new nt,r=()=>{};return H("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>y(this,null,function*(){var s,c,l;let a=uA(i.fail);try{if(ef+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=oA((s=i.headers)!=null?s:{}),b=aA(i.method),v=sA(i.timeout),w=cA(i.url,b,d),E=uA(i.success),A=Object.assign({},i,{method:b,header:m?void 0:g,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let P=g3(w,A);{let{response:T}=yield P,{code:k,data:G,message:fe}=T;if(G&&typeof G=="object"&&"status"in G&&G.status!==200)throw Et({code:G.status||-1,msg:`request:fail status ${G.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:G,message:fe!=null?fe:"request:ok"}),E({code:"SUCCESS",message:"request:ok",data:G})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{ef-=1,(l=tf.shift())==null||l()}});return ef>=h3?(r=()=>{v3(tf,a=>a===o)},tf.push(o)):o(),t.promise}})(e),{abort(){t.reject(Et({code:-1,msg:"request:fail abort"})),r()}}},b3=Y();b3.registerCommand("HttpSDK.request",y3);M("request",{version:"1.0.0"})});var _3,w3,S3,rf,pA=C(()=>{"use strict";R();ce();Ve();_3=H("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),F("showKeyboardSync",U(x({},e),{defaultValue:r,maxLength:t}))}});M("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"}});w3=H("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){F("updateKeyboardSync",e)}});M("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});S3=H("hideKeyboard",{implement(){F("hideKeyboardSync")}});M("keyboard.hideKeyboard",{version:"1.0.0"});rf=Y();rf.registerCommand("KeyboardSDK.showKeyboard",_3);rf.registerCommand("KeyboardSDK.updateKeyboard",w3);rf.registerCommand("KeyboardSDK.hideKeyboard",S3)});var fA=h(vc=>{"use strict";R();Ve();kt();var nf=Y(),I3=ne("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>y(vc,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Ot.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Ot.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),E3=ne("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>y(vc,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Ot.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Ot.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),k3=ne("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>y(vc,[r],function*({levelId:e,name:t}){let n=[];n.push(Ot.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Ot.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});nf.registerCommand("TaskTrackerSDK.levelFinished",I3);nf.registerCommand("TaskTrackerSDK.gamePlayEnded",E3);nf.registerCommand("TaskTrackerSDK.levelUpgrade",k3);M("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});M("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});M("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var of,af,sf,C3,mA,yc=C(()=>{"use strict";B();ce();Ve();R();Xr();M("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"}});M("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});of=new Map;Re("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=of.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),of.delete(r))});af=(e,t=!1)=>y(void 0,null,function*(){var m,g,b;let{data:{isLogin:r}}=yield me("checkLoginAsync");if(r)return{isLogin:!0,token:(m=S.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=F("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Et({code:-1,msg:"login failed"});let s=new nt;of.set(a,s);let c=yield s.promise,l=F("envSync"),d=(b=(g=l==null?void 0:l.data)==null?void 0:g.hostUserInfo)==null?void 0:b.isSubUser;S.onEnvConfigChanged({hostUserInfo:U(x({},c),{isSubUser:d})});let v=c,{extra:u,appAccountToken:p}=v,f=$e(v,["extra","appAccountToken"]);return he.emit("onLoginComplete",f),t?c:f}),sf=ne("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return y(this,null,function*(){return yield af(e!=null?e:{})})}}),C3=ne("checkSession",{implement(){return y(this,null,function*(){var r;let{data:{isLogin:e}}=yield me("checkLoginAsync"),t=(r=S.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),mA=Y();mA.registerCommand("API.login",sf);mA.registerCommand("API.checkSession",C3)});var hA,gA=C(()=>{"use strict";hA=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function fn(e){return t=>y(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Pr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=vA(i.data),a=hA(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((c=a==null?void 0:a[0])!=null?c:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function mn(e){return()=>y(this,null,function*(){var i;let t=Date.now(),r=yield Pr(e),n=vA((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield mt(e,JSON.stringify(n))})}var vA,yA,bA,_A,wA,SA,IA,EA,kA,CA,AA,xA,PA,TA,RA,Uo=C(()=>{"use strict";Ui();gA();vA=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};yA=fn("joli_coin_use_modal_frequency"),bA=fn("joli_coin_payment_frequency"),_A=fn("joli_coin_unlogin_modal_frequency"),wA=fn("joli_gem_use_modal_frequency"),SA=fn("joli_gem_payment_frequency"),IA=fn("joli_gem_unlogin_modal_frequency"),EA=fn("subscription_frequency");kA=mn("joli_coin_use_modal_frequency"),CA=mn("joli_coin_payment_frequency"),AA=mn("joli_coin_unlogin_modal_frequency"),xA=mn("joli_gem_use_modal_frequency"),PA=mn("joli_gem_payment_frequency"),TA=mn("joli_gem_unlogin_modal_frequency"),RA=mn("subscription_frequency")});var cf,bc,lf=C(()=>{"use strict";pt();cf=Promise.resolve(),bc=(e,t)=>y(void 0,null,function*(){cf=cf.then(()=>y(void 0,null,function*(){yield Z(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield cf})});var _c,wc,Mt,Sc,hn,Ut,yr,Ic,Ec,gn,ai,A3,q,br,_r,Le=C(()=>{"use strict";R();_c="UNLOCK_OPTIONS_CHANGED",wc="INVOKE_PAYMENT",Mt="ON_PAYMENT_RESULT",Sc="ON_USE_MODAL_EVENT",hn="ON_USE_MODAL_RESULT",Ut="ON_USE_MODAL_FREQUENCY",yr="ON_USE_UNLOGIN_MODAL_EVENT",Ic="INVOKE_UNLOGIN_MODAL_EVENT",Ec="INVOKE_SUBSCRIPTION_EVENT",gn="ON_USE_SUBSCRIPTION_RESULT",ai=new Jt,A3=()=>({on:ai.on.bind(ai),off:ai.off.bind(ai),emit:ai.emit.bind(ai)}),q=A3(),br={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},_r={show:!0,minInterval:8*60*60*1e3}});function Me(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=x(x({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var tr=C(()=>{"use strict"});var DA=h(uf=>{"use strict";Uo();lf();Le();Le();er();kt();R();tr();var x3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:yA,frequencyUpdater:kA,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:wA,frequencyUpdater:xA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},OA=pn(),NA=Me(q,Ut);NA.getData();q.on(Sc,(e,t)=>y(uf,null,function*(){let r=t.currency,n=x3[r];if(e.includes("ADS-")){yield OA.show({duration:3e3});let c=yield NA.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),OA.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(hn,{useModalResult:"CONFIRM"});return}if(!l){q.emit(hn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:J.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=NC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:J.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(hn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:J.Click,currency:r}),q.emit(hn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>y(uf,null,function*(){yield bc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function qA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return y(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return _e(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var LA=C(()=>{"use strict";dt()});var Fo=C(()=>{"use strict"});var P3,si,bt,T3,vn,kc=C(()=>{"use strict";Fo();R();B();pt();P3=()=>{let[e,t]=[ma,ha].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:si,createPaymentInternalError:bt}=P3(),T3=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",vn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw si(n,1001);return yield this.pay()});this.cancelOrder=t=>y(this,null,function*(){var n,i;let{response:r}=yield Z(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw si((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(x({},this.generatePaymentContext()))),`${T3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var pf,MA,UA=C(()=>{"use strict";pt();kc();Fo();pf=class extends vn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>y(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return y(this,null,function*(){var n,i,o,a;try{let{response:s}=yield Z("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw si((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),bt((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},MA=()=>{let e=new Map;return t=>y(void 0,null,function*(){let r=e.get(t);return r||(r=new pf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var FA,jA=C(()=>{"use strict";FA={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var ff,GA,mf,hf,R3,gf,BA=C(()=>{"use strict";pt();kc();Fo();ce();R();B();er();jA();ff=new Map;Re("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=ff.get(t);if(o){if(r==="SUCCESS")Jr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&fa(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw bt(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=FA[r];a&&Jr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}ff.delete(t)}});GA=e=>y(void 0,null,function*(){var n,i;let t=new nt,r;try{let o=yield me("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw bt("orderUUID is null",1002);ff.set(r,t)}catch(o){throw bt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),mf=class extends vn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>y(this,null,function*(){return yield GA({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},hf=class extends vn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>y(this,null,function*(){return yield GA({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return y(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield Z("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw bt("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},R3={android:mf,ios:hf},gf=()=>{let e=new Map;return t=>y(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=R3[S.platform];if(!s)throw bt("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw si(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var yn,vf=C(()=>{"use strict";LA();UA();BA();yn=qA();yn.registerPaymentHandler("JOLI_COIN",MA());yn.registerPaymentHandler("JOLI_COIN_IAP",gf());yn.registerPaymentHandler("JOLI_GEM_IAP",gf())});function JA(n,i){return y(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let c=yield t(),l=Date.now();try{c!=null&&(yield mt(a,c),yield mt(s,l.toString()),console.log("[Cache] Cached result for key:",e))}catch(d){console.warn("[Cache] Failed to save to localStorage for key:",e,d)}return c}catch(c){throw console.warn("[Cache] Executor failed for key:",e,c),c}})}function Cc(n,i){return y(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,c=s+"_timestamp",l=o===1/0||o===-1;try{let{data:d}=yield Pr(s),{data:u}=yield Pr(c);if(d&&u){let p=parseInt(u,10);if(l||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return l||setTimeout(()=>y(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),g=Date.now();yield mt(s,m),yield mt(c,g.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(m){console.warn("[Cache] Background cache update failed for key:",e,m)}}),0),f}else yield mt(s,null),yield mt(c,null)}}catch(d){console.warn("[Cache] Failed to read from localStorage for key:",e,d)}try{let d=yield t(),u=Date.now();try{d&&(yield mt(s,d),yield mt(c,u.toString()))}catch(p){console.warn("[Cache] Failed to save to localStorage for key:",e,p)}return d}catch(d){throw console.warn("[Cache] Executor failed for key:",e,d),d}})}var yf=C(()=>{"use strict";Ui()});function O3(e,t){Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!Ni(r.totalAmountStr))}var Hr,bf,rr,Pc,_f,wf,Ac,xc,HA,Tc,Sf=C(()=>{"use strict";vf();R();ce();pt();R();yf();Hr=class Hr{execute(t,r){return y(this,null,function*(){var a,s,c;let{response:n}=yield Z(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(c=(s=i.paymentChoices)==null?void 0:s.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?c:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&O3(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return y(this,null,function*(){let r=t.sort().join(",");return Cc(r,()=>y(this,null,function*(){try{let{data:n}=yield me("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Hr.nativePriceCache.set(r,n),Hr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Hr.NATIVE_PRICE_CACHE_DURATION,storageKeyPrefix:"joli_native_price_"})})}extractCacheableData(t){return{paymentChoices:t.paymentChoices}}mergeData(t,r){return{balance:r.balance,enableAutoDeduct:r.enableAutoDeduct,paymentChoices:t.paymentChoices}}processCachedData(t){return{balance:0,enableAutoDeduct:!1,paymentChoices:t.paymentChoices}}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[PaymentService] Cleared native price cache")}};Hr.nativePriceCache=new Map,Hr.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Hr.nativePriceCacheTimestamp=new Map;bf=Hr,rr=class rr extends Rt{constructor(r,n){super(new bf,{duration:10*60*1e3,timeout:1e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return y(this,null,function*(){let r=rr.failureCounters.get(this.apiEndpoint)||0;if(r>=rr.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${rr.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return rr.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw rr.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${rr.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return y(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield yn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return y(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};rr.failureCounters=new Map,rr.MAX_FAILURE_COUNT=2;Pc=rr,_f=class extends Pc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},wf=class extends Pc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Ac=null,xc=null,HA=()=>Ac||(Ac=new _f,Ac),Tc=()=>xc||(xc=new wf,xc)});var WA=h(Rc=>{"use strict";Le();er();B();yc();R();Uo();vf();er();Ve();kt();lf();tr();Sf();var N3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:bA,frequencyUpdater:CA,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:SA,frequencyUpdater:PA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},ci=pn(),$A=HA(),VA=Tc(),D3=Me(q,Ut);q.on(wc,(e,t)=>y(Rc,null,function*(){var r,n,i;try{let o=t.currency,a=N3[o];if(!ft("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(Mt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield ci.show({duration:3e3});let d=yield D3.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),ci.hide(),!u){q.emit(Mt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield ci.show({duration:3e3});let s=o==="JOLI_COIN"?$A:VA,c=yield s.getProductsInfo();if(ci.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){q.emit(Mt,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:J.View,currency:o});let l=DC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return U(x({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>y(Rc,null,function*(){var f,m,g,b,v,w,E,A;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:J.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(P=>P.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((g=S.hostUserInfo)!=null&&g.isLogin)){let{data:P}=yield sf({skipLogin:!0});if(!(P!=null&&P.isLogin)){console.log("login failed");return}let T=yield s.refreshProductsInfo();if(((b=T==null?void 0:T.balance)!=null?b:0)>=t.quantity){q.emit(Mt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(v=c==null?void 0:c.paymentChoices)==null?void 0:v.find(P=>P.productId===d))==null?void 0:w.appStoreProductId;if(!u){q.emit(Mt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield ci.show({duration:3e3});let{code:p}=yield yn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(ci.hide(),j(a.trackEvents.payResult,{eventType:J.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(A=(E=c.paymentChoices.find(P=>P.productId===d))==null?void 0:E.totalAmountStr)!=null?A:"",payResult:p}),console.log("payment result",p),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(Mt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{q.emit(Mt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:J.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>y(Rc,null,function*(){yield bc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:J.Click,coinAmount:t.quantity,currency:o,orderPrice:(p=(u=c.paymentChoices.find(f=>f.productId===d))==null?void 0:u.totalAmountStr)!=null?p:""})}});yield a.frequencyUpdater()}catch(o){console.error("payment failed",o),q.emit(Mt,{paymentResult:"FAILED",currency:t.currency})}}));$A.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});VA.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var KA=h(Oc=>{"use strict";Le();tr();Uo();pt();dt();R();yc();er();kt();var q3={JOLI_COIN:{frequencyChecker:_A,frequencyUpdater:AA,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:IA,frequencyUpdater:TA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},zA=Me(q,Ut);zA.getData();q.on(Ic,(e,t)=>y(Oc,null,function*(){var r;try{let n=t.currency,i=q3[n];if(e.includes("ADS-")){let s=yield zA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(yr,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){q.emit(yr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield L3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(yr,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:J.Expose,currency:n},J.Expose);let a=qC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>y(Oc,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:J.Click,currency:n},J.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield af({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:J.Click,currency:n},J.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Jr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}q.emit(yr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=c==null?void 0:c.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:l!=null?l:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{j(i.trackEvents.modalHide,{eventType:J.Hide,currency:n},J.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:J.Click,currency:n},J.Click),q.emit(yr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){_e(new Ih(n)),q.emit(yr,{result:"FAILED"})}}));var L3=()=>y(Oc,null,function*(){var t;let{response:e}=yield Z("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function M3(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return y(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return _e(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var jo,If=C(()=>{"use strict";dt();jo=M3()});var bn,Nc=C(()=>{"use strict";bn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var U3,YA,Dc,F3,Go,Ef=C(()=>{"use strict";Nc();R();B();U3=()=>{let[e,t]=[ma,ha].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:YA,createSubscriptionInternalError:Dc}=U3(),F3=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Go=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw YA(n,bn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(x({},this.generateSubscriptionContext()))),`${F3}/subscription/callback?${t.toString()}`};this.createSubscriptionError=YA;this.createSubscriptionInternalError=Dc}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function j3(e,t){Object.keys(t).forEach(r=>{var i,o,a,s;let n=e.find(c=>c.appStoreProductId===r);n&&(n.amountStr=t[r].pricing.formattedPrice,n.originalAmountStr=t[r].pricing.originalPrice,n.discountPercentage=(o=(i=t[r].pricing.discountPercentage)==null?void 0:i.toString())!=null?o:"",n.trialDay=(s=(a=t[r].trial)==null?void 0:a.duration)!=null?s:0)}),e=e.filter(r=>!Ni(r.amountStr))}var _n,Lc,kf,Cf,qc,QA,Af=C(()=>{"use strict";R();ce();pt();R();yf();If();ce();Ef();Nc();_n=class _n{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return y(this,null,function*(){var a,s;let{response:n}=yield Z(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?s:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&j3(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return y(this,null,function*(){try{let{data:n}=yield me("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(_n.nativePriceCache.set(r,n),_n.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return y(this,null,function*(){let n=t.sort().join(",");return(r?JA:Cc)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return y(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};_n.nativePriceCache=new Map,_n.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,_n.nativePriceCacheTimestamp=new Map;Lc=_n,kf=class extends Rt{constructor(r){super(new Lc,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return y(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return y(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return y(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return y(this,null,function*(){var i;console.log("[SubscriptionService] subscribe params",jo);let n=yield jo.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId});return{result:n.code,subPlanId:(i=n.data)==null?void 0:i.subPlanId,message:n.message}})}invokeSubscriptionPanel(){return y(this,null,function*(){var i,o;let r=new nt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=F("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw Dc("orderUUID is null",bn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw Dc((o=JSON.stringify(a))!=null?o:"subscription panel failed",bn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return y(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(c=>c.productId===r);if(!i)return;let o=Lc.getNativePriceCache((n!=null?n:[]).map(c=>{var l;return(l=c.appStoreProductId)!=null?l:""}));if(!o)return;let a=o[(s=i.appStoreProductId)!=null?s:""];if(a)return console.log("[SubscriptionService] getTierByProductId nativeSubInfo",a),{nativeProductId:a.productId,appStoreProductId:i.appStoreProductId,basePlanId:a.basePlanId}})}listenSubscriptionPanelStateChange(){Re("onSubscriptionPanelStateChange",r=>{var i;console.log("[onSubscriptionPanelStateChange] data",r);let n=this.pendingSubscriptions.get(r.subUUID);n&&(r.status==="SUCCESS"?n.resolve({code:"SUCCESS",message:"subscription panel success",data:{result:"SUCCESS",subPlanId:(i=r.orderResponse)==null?void 0:i.subPlanId}}):n.resolve({code:"FAILED",message:"subscription panel failed",data:{result:"FAILED"}}))})}},Cf=class extends kf{constructor(){super("/api/subs/pricing")}},qc=null,QA=()=>qc||(qc=new Cf,qc)});var XA=C(()=>{"use strict"});function ex(){let e=new Map;return t=>y(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=G3[S.platform];if(!a)throw new Error(`Platform ${S.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var xf,ZA,Pf,Tf,G3,tx=C(()=>{"use strict";B();Ef();Fo();kc();R();ce();R();Nc();Re("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.tickedId)&&S.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});xf=new Map;Re("onSubscritptionStateChange",e=>{var o,a;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=xf.get(t);if(i){if(r==="SUCCESS")i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(o=n==null?void 0:n.subPlanId)!=null?o:n.tickedId}});else{if(r==="FAILED"&&fa(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw bt(`subscription failed: ${n==null?void 0:n.errMsg}`,bn.SubscriptionFailed);i.resolve({code:r,message:(a=n==null?void 0:n.errMsg)!=null?a:"UNKNOWN_ERROR"})}xf.delete(t)}});ZA=e=>y(void 0,null,function*(){var n,i;let t=new nt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=F("requestSubscriptionSync",x({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw bt("subUUID is null",1002);xf.set(r,t)}catch(o){throw bt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Pf=class extends Go{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return y(this,null,function*(){return yield ZA(r)})}},Tf=class extends Go{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=F("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw bt("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return y(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return y(this,null,function*(){return yield ZA(U(x({},r),{appAccountToken:this.subscriptionToken}))})}},G3={android:Pf,ios:Tf}});var wn,Rf=C(()=>{"use strict";Af();XA();If();tx();Af();wn=QA();jo.registerSubscriptionHandler("SUB_APP",ex())});var ox=h(ix=>{"use strict";Uo();Le();tr();Ve();Rf();er();var B3={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:EA,frequencyUpdater:RA}},rx=pn(),nx=Me(q,Ut);nx.getData();q.on(Ec,e=>y(ix,null,function*(){let t=B3.SUBSCRIPTION;if(!ft("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{q.emit(gn,{result:"FAILED"})},0);return}yield rx.show({duration:3e3});let r=yield nx.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(rx.hide(),!n){q.emit(gn,{result:"FAILED"});return}let{data:o,code:a}=yield wn.invokeSubscriptionPanel();a=="SUCCESS"&&(o!=null&&o.subPlanId)?q.emit(gn,{result:"SUCCESS"}):q.emit(gn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var Lte,Mte,Ute,Fte,ax=C(()=>{"use strict";Lte=re(DA()),Mte=re(WA()),Ute=re(KA()),Fte=re(ox())});function e4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function t4(e){return typeof e=="string"}function r4(e){return typeof e=="undefined"}function n4(e){return r4(e)||e===null}function i4(e){return typeof e=="function"}function Lx(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function Bo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function jc(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function d4(e){let t=e.location?jc(e.location,px):null,r=e.target?jc(e.target,px):null;return jc(Q3(Y3({},e),{location:t,target:r}),l4)}function p4(e){let t=e.events.map(n=>d4(n)),r=jc(e.device,u4);return[e.protocolVersion,t,r,e.project]}function f4(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function y4(e){return new Promise(t=>jx(e)(t))}function jx(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function b4(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Wo(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function w4(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)S4(e[n],t[n])}function S4(e,t){if(t4(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(i4(t)){try{if(e instanceof t)return}catch(r){}if(!n4(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function at(e,t,r){return(t=I4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4(e){var t=E4(e,"string");return typeof t=="symbol"?t:t+""}function E4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mc(e,t,r){return(t=k4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k4(e){var t=C4(e,"string");return typeof t=="symbol"?t:t+""}function C4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uc(e,t,r){return(t=A4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A4(e){var t=x4(e,"string");return typeof t=="symbol"?t:t+""}function x4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wr(e,t,r){return(t=P4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P4(e){var t=T4(e,"string");return typeof t=="symbol"?t:t+""}function T4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R4(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function O4(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function U4(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function Jx(e){return e.trim()}function F4(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function Vf(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function zo(e,t,r){return e.slice(t,r)}function nr(e){return e.length}function cm(e){return e.length}function Fc(e,t){return t.push(e),e}function j4(e,t){return e.map(t).join("")}function tl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:el,column:mi,length:a,return:""}}function Ho(e,t){return M4(tl("",null,null,"",null,null,0),e,{length:-e.length},t)}function G4(){return Pe}function B4(){return Pe=lt>0?Je(hi,--lt):0,mi--,Pe===10&&(mi=1,el--),Pe}function wt(){return Pe=lt<Hx?Je(hi,lt++):0,mi++,Pe===10&&(mi=1,el++),Pe}function ir(){return Je(hi,lt)}function Gc(){return lt}function Yo(e,t){return zo(hi,e,t)}function Ko(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 $x(e){return el=mi=1,Hx=nr(hi=e),lt=0,[]}function Vx(e){return hi="",e}function Bc(e){return Jx(Yo(lt-1,Wf(e===91?e+2:e===40?e+1:e)))}function J4(e){for(;(Pe=ir())&&Pe<33;)wt();return Ko(e)>2||Ko(Pe)>3?"":" "}function H4(e,t){for(;--t&&wt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Yo(e,Gc()+(t<6&&ir()==32&&wt()==32))}function Wf(e){for(;wt();)switch(Pe){case e:return lt;case 34:case 39:e!==34&&e!==39&&Wf(Pe);break;case 40:e===41&&Wf(e);break;case 92:wt();break}return lt}function $4(e,t){for(;wt()&&e+Pe!==57&&!(e+Pe===84&&ir()===47););return"/*"+Yo(t,lt-1)+"*"+Zc(e===47?e:wt())}function V4(e){for(;!Ko(ir());)wt();return Yo(e,lt)}function W4(e){return Vx(Jc("",null,null,null,[""],e=$x(e),0,[0],e))}function Jc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,E="",A=i,P=o,T=n,k=E;b;)switch(m=w,w=wt()){case 40:if(m!=108&&Je(k,u-1)==58){Vf(k+=K(Bc(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Bc(w);break;case 9:case 10:case 13:case 32:k+=J4(m);break;case 92:k+=H4(Gc()-1,7);continue;case 47:switch(ir()){case 42:case 47:Fc(z4($4(wt(),Gc()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=nr(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=K(k,/\f/g,"")),f>0&&nr(k)-u&&Fc(f>32?gx(k+";",n,r,u-1):gx(K(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Fc(T=hx(k,t,r,l,d,i,s,E,A=[],P=[],u),o),w===123)if(d===0)Jc(k,t,T,T,A,o,u,s,P);else switch(p===99&&Je(k,3)===110?100:p){case 100:case 108:case 109:case 115:Jc(e,T,T,n&&Fc(hx(e,T,T,0,0,i,s,E,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Jc(k,T,T,T,[""],P,0,s,P)}}l=d=f=0,g=v=1,E=k="",u=a;break;case 58:u=1+nr(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&B4()==125)continue}switch(k+=Zc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(nr(k)-1)*v,v=1;break;case 64:ir()===45&&(k+=Bc(wt())),p=ir(),d=u=nr(E=k+=V4(Gc())),w++;break;case 45:m===45&&nr(k)==2&&(g=0)}}return o}function hx(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=cm(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=zo(e,u+1,u=L4(g=a[m])),E=e;v<f;++v)(E=Jx(g>0?p[v]+" "+w:K(w,/&\f/g,p[v])))&&(c[b++]=E);return tl(e,t,r,i===0?am:s,c,l,d)}function z4(e,t,r){return tl(e,t,r,Gx,Zc(G4()),zo(e,2,-2),0)}function gx(e,t,r,n){return tl(e,t,r,sm,zo(e,0,n),zo(e,n+1,-1),n)}function fi(e,t){for(var r="",n=cm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function K4(e,t,r,n){switch(e.type){case q4:if(e.children.length)break;case D4:case sm:return e.return=e.return||e.value;case Gx:return"";case Bx:return e.return=e.value+"{"+fi(e.children,n)+"}";case am:e.value=e.props.join(",")}return nr(r=fi(e.children,n))?e.return=e.value+"{"+r+"}":""}function Y4(e){var t=cm(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function Q4(e){return function(t){t.root||(t=t.return)&&e(t)}}function X4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Wx(e,t){switch(U4(e,t)){case 5103:return z+"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 z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+Wc+e+Xe+e+e;case 6828:case 4268:return z+e+Xe+e+e;case 6165:return z+e+Xe+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return z+e+Xe+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+Xe+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+Xe+K(e,"shrink","negative")+e;case 5292:return z+e+Xe+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+Xe+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$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(nr(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+Wc+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vf(e,"stretch")?Wx(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,nr(e)-3-(~Vf(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Je(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return z+e+Xe+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+Xe+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+Xe+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+Xe+e+e}return e}function s$(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function zc(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return $r={name:i.name,styles:i.styles,next:$r},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)$r={name:a.name,styles:a.styles,next:$r},a=a.next;var s=o.styles+";";return s}return d$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function d$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=zc(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":yx(s)&&(n+=Nf(o)+":"+bx(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)yx(a[c])&&(n+=Nf(o)+":"+bx(o,a[c])+";");else{var l=zc(e,t,a);switch(o){case"animation":case"animationName":{n+=Nf(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Df(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";$r=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=zc(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=zc(r,t,e[s]),n){var c=o;i+=c[s]}_x.lastIndex=0;for(var l="",d;(d=_x.exec(i))!==null;)l+="-"+d[1];var u=s$(i)+l;return{name:u,styles:i,next:$r}}function Kx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function wx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Sx(e,t,r){var n=[],i=Kx(e,n,r);return n.length<2?r:i+t(n)}function v$(e,t){qe.__h&&qe.__h(_t,e,Ex||t),Ex=0;var r=_t.__H||(_t.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Qx(e,t){var r=v$(zf++,7);return _$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function y$(){for(var e;e=Yx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Hc),e.__H.__h.forEach(Kf),e.__H.__h=[]}catch(t){e.__H.__h=[],qe.__e(t,e.__v)}}function b$(e){var t,r=function(){clearTimeout(n),Rx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Rx&&(t=requestAnimationFrame(r))}function Hc(e){var t=_t,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),_t=t}function Kf(e){var t=_t;e.__c=e.__(),_t=t}function _$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function rl(){if(Vr>1)Vr--;else{for(var e,t=!1;$o!==void 0;){var r=$o;for($o=void 0,Yf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Zx(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Yf=0,Vr--,t)throw e}}function ct(e){if(Vr>0)return e();Vr++;try{return e()}finally{rl()}}function Xx(e){if(te!==void 0){var t=e.n;if(t===void 0||t.t!==te)return t={i:0,S:e,p:te.s,n:void 0,t:te,e:void 0,x:void 0,r:t},te.s!==void 0&&(te.s.n=t),te.s=t,e.n=t,32&te.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=te.s,t.n=void 0,te.s.n=t,te.s=t),t}}function He(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ie(e){return new He(e)}function Zx(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function eP(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function tP(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function yi(e){He.call(this,void 0),this.x=e,this.s=void 0,this.g=Kc-1,this.f=4}function Vo(e){return new yi(e)}function rP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Vr++;var r=te;te=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,lm(e),n}finally{te=r,rl()}}}function lm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,rP(e)}function S$(e){if(te!==this)throw new Error("Out-of-order effect");tP(this),te=e,this.f&=-2,8&this.f&&lm(this),rl()}function Qo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Xo(e){var t=new Qo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function bi(e,t){N[e]=t.bind(null,N[e]||function(){})}function Yc(e){Lf&&Lf(),Lf=e&&e.S()}function oP(e){var t=this,r=e.data,n=aP(r);n.value=r;var i=Qx(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=Vo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Vo(function(){return!Array.isArray(l.value)&&!lu(l.value)}),u=Xo(function(){if(this.N=sP,d.value){var f=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,l]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function I$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=ie(r);return{o:function(a,s){o.value=a,n=s},d:Xo(function(){this.N=sP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function aP(e){return Qx(function(){return ie(e)},[])}function k$(){ct(function(){for(var e;e=iP.shift();)nP.call(e)})}function sP(){iP.push(this)===1&&(N.requestAnimationFrame||E$)(k$)}function C$(e,t){let r=so(e);Hn(()=>{r.current=e},[e]),ao(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function Ie(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--A$,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return N.vnode&&N.vnode(l),l}function Sr(e,t,r){return(t=F$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F$(e){var t=j$(e,"string");return typeof t=="symbol"?t:t+""}function j$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ir(e,t,r){return(t=H$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H$(e){var t=$$(e,"string");return typeof t=="symbol"?t:t+""}function $$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qe(e,t,r){return(t=V$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V$(e){var t=W$(e,"string");return typeof t=="symbol"?t:t+""}function W$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function st(e,t,r){return(t=z$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z$(e){var t=K$(e,"string");return typeof t=="symbol"?t:t+""}function K$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sn(e,t,r){return(t=Y$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y$(e){var t=Q$(e,"string");return typeof t=="symbol"?t:t+""}function Q$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mf(e,t,r){return(t=X$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X$(e){var t=Z$(e,"string");return typeof t=="symbol"?t:t+""}function Z$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rt(e,t,r){return(t=eV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eV(e){var t=tV(e,"string");return typeof t=="symbol"?t:t+""}function tV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(e,t,r){return(t=rV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rV(e){var t=nV(e,"string");return typeof t=="symbol"?t:t+""}function nV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var J3,Vc,Ox,Nx,sx,H3,$3,Dx,V3,W3,cx,z3,K3,lx,Y3,Q3,X3,qx,Z3,o4,a4,ux,s4,dx,c4,Mx,Ux,Fx,px,l4,u4,di,fx,Uf,pe,m4,h4,Jo,Wo,g4,jf,v4,Of,_4,Gf,mx,li,Bf,Jf,Hf,$f,N4,Xe,Wc,z,Gx,am,sm,D4,Bx,q4,L4,Zc,M4,el,mi,Hx,lt,Pe,hi,Z4,e$,t$,vx,r$,n$,i$,o$,a$,c$,l$,u$,zx,yx,Nf,bx,_x,$r,p$,f$,m$,h$,g$,gi,zf,_t,qf,Ix,Ex,Yx,qe,kx,Cx,Ax,xx,Px,Tx,Rx,w$,te,$o,Vr,Yf,Kc,nP,Lf,iP,E$,Ze,A$,x$,Er,Qf,Xf,$c,P$,T$,R$,O$,N$,D$,q$,L$,M$,U$,Zf,pi,ui,G$,B$,J$,em,cP,tm,rm,nm,im,Qc,om,Xc,Bte,lP=C(()=>{"use strict";Dn();is();J3=Object.defineProperty,Vc=Object.getOwnPropertySymbols,Ox=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,sx=(e,t,r)=>t in e?J3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H3=(e,t)=>{for(var r in t||(t={}))Ox.call(t,r)&&sx(e,r,t[r]);if(Vc)for(var r of Vc(t))Nx.call(t,r)&&sx(e,r,t[r]);return e},$3=(e,t)=>{var r={};for(var n in e)Ox.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Vc)for(var n of Vc(e))t.indexOf(n)<0&&Nx.call(e,n)&&(r[n]=e[n]);return r},Dx=Object.defineProperty,V3=Object.defineProperties,W3=Object.getOwnPropertyDescriptors,cx=Object.getOwnPropertySymbols,z3=Object.prototype.hasOwnProperty,K3=Object.prototype.propertyIsEnumerable,lx=(e,t,r)=>t in e?Dx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y3=(e,t)=>{for(var r in t||(t={}))z3.call(t,r)&&lx(e,r,t[r]);if(cx)for(var r of cx(t))K3.call(t,r)&&lx(e,r,t[r]);return e},Q3=(e,t)=>V3(e,W3(t)),X3=(e,t)=>{for(var r in t)Dx(e,r,{get:t[r],enumerable:!0})},qx=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},Z3=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}o4=(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))(o4||{});a4={log:Bo("log"),warn:Bo("warn"),info:Bo("info"),error:Bo("error"),debug:Bo("debug")};Object.assign(globalThis,{logger:a4});ux=Symbol.for("Jolibox.canIUseMap"),s4={};globalThis[ux]||(globalThis[ux]=s4);dx=Symbol.for("Jolibox.canIUseMap.native"),c4={};globalThis[dx]||(globalThis[dx]=c4);Mx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(Mx||{}),Ux=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Ux||{}),Fx=(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))(Fx||{}),px=["name","params"],l4=["name","type","location","target","extra","timestamp","userId"],u4=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];f4();di=typeof window=="undefined",fx=()=>!di&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!di&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!di&&navigator.userAgent.includes("Android"),!di&&navigator.userAgent.includes("Mac"),!di&&navigator.userAgent.includes("FB_IAB"),!di&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Uf=class Ff{constructor(t){this.element=t,this.next=Ff.Undefined,this.prev=Ff.Undefined}};Uf.Undefined=new Uf(void 0);pe=Uf,m4=class{constructor(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pe.Undefined}clear(){let e=this._first;for(;e!==pe.Undefined;){let t=e.next;e.prev=pe.Undefined,e.next=pe.Undefined,e=t}this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new pe(e);if(this._first===pe.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==pe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pe.Undefined;)yield e.element,e=e.next}},h4=0,Jo=class{constructor(e){this.value=e,this.id=h4++}},Wo=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof Jo&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let c=new Jo(e);return this._listeners?this._listeners instanceof Jo?this._listeners=[this._listeners,c]:this._listeners.push(c):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=c,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var l,d,u,p;if(!this._disposed){if(this._listeners instanceof Jo)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(d=(l=this.options)==null?void 0:l.onDidRemoveLastListener)==null||d.call(l));else if(this._listeners){let f=this._listeners.indexOf(c);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Jo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},g4=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Wo,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new m4,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},jf={};X3(jf,{None:()=>v4,filter:()=>b4,once:()=>jx,toPromise:()=>y4});v4=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Of=Symbol.for("Jolibox.hostEmitter"),_4=()=>{let e=new g4;return globalThis[Of]||(globalThis[Of]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Of]};_4();Gf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Wo,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return w4(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Gf=qx([Lx],Gf);mx=class{constructor(){this._onWillExecuteCommand=new Wo,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Wo,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Gf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=e4(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Z3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),jf.toPromise(jf.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};mx=qx([Lx],mx);li=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},Bf=class{constructor(t){at(this,"context",void 0),at(this,"continueCallback",void 0),at(this,"adIsShowingCallback",void 0),at(this,"isBeforeAdCalled",!1),at(this,"isBeforeRewardCalled",!1),at(this,"isAdDismissedCalled",!1),at(this,"isAdViewedCalled",!1),at(this,"isAfterAdCalled",!1),at(this,"currentProvider",void 0),at(this,"currentClientParams",void 0),at(this,"adsHasResponse",!1),at(this,"videoChecker",window.document.createElement("video")),at(this,"contextInfo",void 0),at(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",H3({userEvent:a},this.paramsToTrack)),fx()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=li(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(t,r){window.parent&&window.parent.postMessage({type:t,data:r},"*"),window.dispatchEvent(new CustomEvent(t,{detail:r}))}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=li(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),fx()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=li(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=li(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=li(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,c,l,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE",{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(c=r.breakName)!=null?c:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=li(t);p==null||p(r),(l=this.adIsShowingCallback)==null||l.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return y(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,c,l,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(c=(s=this.currentProvider)==null?void 0:s.name)!=null?c:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(l=this.currentProvider)==null?void 0:l.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Jf=class{constructor(t){Mc(this,"context",void 0),Mc(this,"adBreakIsShowing",!1),Mc(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Mc(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};Hf=class{constructor(t){Uc(this,"configs",null),Uc(this,"firstRun",!0),Uc(this,"context",void 0),Uc(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return y(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};$f=class{constructor(t,r){wr(this,"name","ADSENSE"),wr(this,"context",void 0),wr(this,"contextInfo",void 0),wr(this,"configured",!1),wr(this,"initParams",void 0),wr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),wr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=$3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),wr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),wr(this,"adUnit",n=>y(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:c,slot:l,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!c)throw new Error("targeting element is required");if(typeof c=="string"?f=document.querySelector(c):f=c,!f)throw new Error("targeting element not found");let m=l;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",m),g&&b.setAttribute("data-ad-format",g),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(v)}else f.appendChild(b),new MutationObserver(v=>{v.forEach(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let E=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:E!=null?E:"null"})}})}).observe(b,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return y(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};N4=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(O4(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=R4(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Xe="-ms-",Wc="-moz-",z="-webkit-",Gx="comm",am="rule",sm="decl",D4="@import",Bx="@keyframes",q4="@layer",L4=Math.abs,Zc=String.fromCharCode,M4=Object.assign;el=1,mi=1,Hx=0,lt=0,Pe=0,hi="";Z4=function(e,t,r){for(var n=0,i=0;n=i,i=ir(),n===38&&i===12&&(t[r]=1),!Ko(i);)wt();return Yo(e,lt)},e$=function(e,t){var r=-1,n=44;do switch(Ko(n)){case 0:n===38&&ir()===12&&(t[r]=1),e[r]+=Z4(lt-1,t,r);break;case 2:e[r]+=Bc(n);break;case 4:if(n===44){e[++r]=ir()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Zc(n)}while(n=wt());return e},t$=function(e,t){return Vx(e$($x(e),t))},vx=new WeakMap,r$=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!vx.get(r))&&!n){vx.set(e,!0);for(var i=[],o=t$(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},n$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};i$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case sm:e.return=Wx(e.value,e.length);break;case Bx:return fi([Ho(e,{value:K(e.value,"@","@"+z)})],n);case am:if(e.length)return j4(e.props,function(i){switch(F4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fi([Ho(e,{props:[K(i,/:(read-\w+)/,":"+Wc+"$1")]})],n);case"::placeholder":return fi([Ho(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),Ho(e,{props:[K(i,/:(plac\w+)/,":"+Wc+"$1")]}),Ho(e,{props:[K(i,/:(plac\w+)/,Xe+"input-$1")]})],n)}return""})}},o$=[i$],a$=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||o$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[r$,n$];{var l,d=[K4,Q4(function(m){l.insert(m)})],u=Y4(c.concat(n,d)),p=function(m){return fi(W4(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new N4({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};c$={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},l$=/[A-Z]|^ms/g,u$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zx=function(e){return e.charCodeAt(1)===45},yx=function(e){return e!=null&&typeof e!="boolean"},Nf=X4(function(e){return zx(e)?e:e.replace(l$,"-$&").toLowerCase()}),bx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(u$,function(r,n,i){return $r={name:n,styles:i,next:$r},n})}return c$[e]!==1&&!zx(e)&&typeof t=="number"&&t!==0?t+"px":t};_x=/label:\s*([^\s;{]+)\s*(;|$)/g;p$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},f$=function(e,t,r){p$(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};m$=function(e){var t=a$(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Df(s,t.registered,void 0);return f$(t,l),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Df(s,t.registered),d="animation-"+l.name;return wx(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Df(s,t.registered);wx(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Sx(t.registered,r,h$(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Kx.bind(null,t.registered),merge:Sx.bind(null,t.registered,r)}},h$=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},g$=m$({key:"css"}),gi=g$.css,Ex=0,Yx=[],qe=N,kx=qe.__b,Cx=qe.__r,Ax=qe.diffed,xx=qe.__c,Px=qe.unmount,Tx=qe.__;qe.__b=function(e){_t=null,kx&&kx(e)},qe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Tx&&Tx(e,t)},qe.__r=function(e){Cx&&Cx(e),zf=0;var t=(_t=e.__c).__H;t&&(qf===_t?(t.__h=[],_t.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Hc),t.__h.forEach(Kf),t.__h=[],zf=0)),qf=_t},qe.diffed=function(e){Ax&&Ax(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Yx.push(t)!==1&&Ix===qe.requestAnimationFrame||((Ix=qe.requestAnimationFrame)||b$)(y$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),qf=_t=null},qe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Hc),r.__h=r.__h.filter(function(n){return!n.__||Kf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],qe.__e(n,r.__v)}}),xx&&xx(e,t)},qe.unmount=function(e){Px&&Px(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Hc(n)}catch(i){t=i}}),r.__H=void 0,t&&qe.__e(t,r.__v))};Rx=typeof requestAnimationFrame=="function";w$=Symbol.for("preact-signals");te=void 0,$o=void 0,Vr=0,Yf=0,Kc=0;He.prototype.brand=w$;He.prototype.h=function(){return!0};He.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};He.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};He.prototype.subscribe=function(e){var t=this;return Xo(function(){var r=t.value,n=te;te=void 0;try{e(r)}finally{te=n}})};He.prototype.valueOf=function(){return this.value};He.prototype.toString=function(){return this.value+""};He.prototype.toJSON=function(){return this.value};He.prototype.peek=function(){var e=te;te=void 0;try{return this.value}finally{te=e}};Object.defineProperty(He.prototype,"value",{get:function(){var e=Xx(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Yf>100)throw new Error("Cycle detected");this.v=e,this.i++,Kc++,Vr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{rl()}}}});(yi.prototype=new He).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Kc))return!0;if(this.g=Kc,this.f|=1,this.i>0&&!Zx(this))return this.f&=-2,!0;var e=te;try{eP(this),te=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return te=e,tP(this),this.f&=-2,!0};yi.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}He.prototype.S.call(this,e)};yi.prototype.U=function(e){if(this.t!==void 0&&(He.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};yi.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(yi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Xx(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Qo.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Qo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,rP(this),eP(this),Vr++;var e=te;return te=this,S$.bind(this,e)};Qo.prototype.N=function(){2&this.f||(this.f|=2,this.o=$o,$o=this)};Qo.prototype.d=function(){this.f|=8,1&this.f||lm(this)};iP=[];Xo(function(){nP=this.N})();oP.displayName="_st";Object.defineProperties(He.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:oP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});bi("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof He&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});bi("__r",function(e,t){Yc();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Xo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Yc(r),e(t)});bi("__e",function(e,t,r,n){Yc(),e(t,r,n)});bi("diffed",function(e,t){Yc();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var c in n){var l=o[c],d=n[c];l===void 0?(l=I$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});bi("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});bi("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ht.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};E$=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ze=gi`
623
623
  inset: 0;
624
624
  clear: none;
625
625
  float: none;
@@ -637,8 +637,8 @@ If multiple caches share the same key they might "fight" for each other's style
637
637
  text-decoration: none;
638
638
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
639
639
  'Helvetica Neue', sans-serif;
640
- `;F4=0;j4=ri`
641
- ${Ke}
640
+ `;A$=0;x$=gi`
641
+ ${Ze}
642
642
  position: fixed;
643
643
  top: 0;
644
644
  left: 0;
@@ -651,7 +651,7 @@ If multiple caches share the same key they might "fight" for each other's style
651
651
  height: 100vh;
652
652
 
653
653
  .card-wrapper {
654
- ${Ke}
654
+ ${Ze}
655
655
  position: relative;
656
656
  display: flex;
657
657
  flex-direction: column;
@@ -665,7 +665,7 @@ If multiple caches share the same key they might "fight" for each other's style
665
665
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
666
666
 
667
667
  .body {
668
- ${Ke}
668
+ ${Ze}
669
669
  display: flex;
670
670
  flex-direction: column;
671
671
  width: 100%;
@@ -674,7 +674,7 @@ If multiple caches share the same key they might "fight" for each other's style
674
674
  box-sizing: border-box;
675
675
  justify-content: center;
676
676
  .title {
677
- ${Ke}
677
+ ${Ze}
678
678
  text-align: center;
679
679
  font-size: 16px;
680
680
  font-weight: bold;
@@ -682,7 +682,7 @@ If multiple caches share the same key they might "fight" for each other's style
682
682
  }
683
683
 
684
684
  .content {
685
- ${Ke}
685
+ ${Ze}
686
686
  font-size: 14px;
687
687
  color: #888;
688
688
  margin-bottom: 16px;
@@ -690,13 +690,13 @@ If multiple caches share the same key they might "fight" for each other's style
690
690
  }
691
691
 
692
692
  .footer {
693
- ${Ke}
693
+ ${Ze}
694
694
  display: flex;
695
695
  align-items: center;
696
696
  width: 100%;
697
697
  height: 40px;
698
698
  button {
699
- ${Ke}
699
+ ${Ze}
700
700
  border: none;
701
701
  outline: none;
702
702
  height: 100%;
@@ -712,8 +712,8 @@ If multiple caches share the same key they might "fight" for each other's style
712
712
  }
713
713
  }
714
714
  }
715
- `,yr=ne(null),If=ne(""),Ef=ne(""),wl=ne(!1),G4=()=>{var e;(e=yr.value)==null||e.call(yr,!1)},B4=()=>{var e;(e=yr.value)==null||e.call(yr,!0)},J4=e=>_(void 0,null,function*(){let{title:t,content:r}=e;return yr.value&&(yr.value(!1),st(()=>{yr.value=null,wl.value=!1})),st(()=>{If.value=t||"",Ef.value=r||"",wl.value=!0}),new Promise(n=>{yr.value=i=>{st(()=>{yr.value=null,wl.value=!1,If.value="",Ef.value=""}),n(i)}})}),H4=()=>wl.value?ye("div",{className:j4,children:ye("div",{className:"card-wrapper",children:[ye("div",{className:"body",children:[ye("div",{className:"title",children:If.value}),ye("div",{className:"content",children:Ef.value})]}),ye("div",{className:"footer",children:[ye("button",{onClick:G4,className:"cancel-btn",children:"Cancel"}),ye("button",{onClick:B4,className:"confirm-btm",children:"Confirm"})]})]})}):null,$4=ri`
716
- ${Ke}
715
+ `,Er=ie(null),Qf=ie(""),Xf=ie(""),$c=ie(!1),P$=()=>{var e;(e=Er.value)==null||e.call(Er,!1)},T$=()=>{var e;(e=Er.value)==null||e.call(Er,!0)},R$=e=>y(void 0,null,function*(){let{title:t,content:r}=e;return Er.value&&(Er.value(!1),ct(()=>{Er.value=null,$c.value=!1})),ct(()=>{Qf.value=t||"",Xf.value=r||"",$c.value=!0}),new Promise(n=>{Er.value=i=>{ct(()=>{Er.value=null,$c.value=!1,Qf.value="",Xf.value=""}),n(i)}})}),O$=()=>$c.value?Ie("div",{className:x$,children:Ie("div",{className:"card-wrapper",children:[Ie("div",{className:"body",children:[Ie("div",{className:"title",children:Qf.value}),Ie("div",{className:"content",children:Xf.value})]}),Ie("div",{className:"footer",children:[Ie("button",{onClick:P$,className:"cancel-btn",children:"Cancel"}),Ie("button",{onClick:T$,className:"confirm-btm",children:"Confirm"})]})]})}):null,N$=gi`
716
+ ${Ze}
717
717
  position: relative;
718
718
  display: flex;
719
719
  align-items: center;
@@ -731,7 +731,7 @@ If multiple caches share the same key they might "fight" for each other's style
731
731
  }
732
732
 
733
733
  button {
734
- ${Ke}
734
+ ${Ze}
735
735
  padding: 0 20px;
736
736
  height: 30px;
737
737
  line-height: 30px;
@@ -745,8 +745,8 @@ If multiple caches share the same key they might "fight" for each other's style
745
745
  cursor: not-allowed;
746
746
  }
747
747
  }
748
- `,V4=()=>{let e=ne(!1),t=ne(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{st(()=>{t.value=Date.now(),e.value=!1})}}},W4=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=kx(t);U4(()=>{s.value>0?s.value-=1:st(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=ko(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),c=ko(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=ko(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>_(void 0,null,function*(){if(a.value=!0,!(yield J4({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),st(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),st(()=>{a.value=!0,s.value=0,o.value=null})};return ye("div",{className:$4,children:[s.value>0&&r!=="interstitial"&&ye("div",{className:"timer",children:[s.value,"s"]}),ye("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ye("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ye("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},z4=()=>{let e=ne(),t=ne(),r=ne(),n=ne(),i=ne(),o=ne(!1),a=ne(15),s=ne(""),l=ne("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},K4=ri`
749
- ${Ke}
748
+ `,D$=()=>{let e=ie(!1),t=ie(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{ct(()=>{t.value=Date.now(),e.value=!1})}}},q$=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=aP(t);C$(()=>{s.value>0?s.value-=1:ct(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let c=Vo(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),l=Vo(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=Vo(()=>r==="interstitial"?!1:!c.value&&!l.value),u=()=>y(void 0,null,function*(){if(a.value=!0,!(yield R$({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),ct(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),ct(()=>{a.value=!0,s.value=0,o.value=null})};return Ie("div",{className:N$,children:[s.value>0&&r!=="interstitial"&&Ie("div",{className:"timer",children:[s.value,"s"]}),Ie("button",{onClick:c.value?u:l.value?p:void 0,disabled:d.value,children:Ie("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ie("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},L$=()=>{let e=ie(),t=ie(),r=ie(),n=ie(),i=ie(),o=ie(!1),a=ie(15),s=ie(""),c=ie("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:c}},M$=gi`
749
+ ${Ze}
750
750
  position: fixed;
751
751
  z-index: 2147483647;
752
752
  background: white;
@@ -756,7 +756,7 @@ If multiple caches share the same key they might "fight" for each other's style
756
756
  flex-direction: column;
757
757
 
758
758
  iframe {
759
- ${Ke}
759
+ ${Ze}
760
760
  flex: 1;
761
761
  position: relative;
762
762
  display: block;
@@ -764,8 +764,8 @@ If multiple caches share the same key they might "fight" for each other's style
764
764
  width: 100%;
765
765
  height: 100%;
766
766
  }
767
- `,Y4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Hi(()=>V4(),[]),[p,f]=Ma(!1),m=y=>{var g,w,S,A;s.value=!1,y==="dismiss"?(g=n.value)==null||g.call(n):y==="viewed"&&((w=i.value)==null||w.call(i)),(S=r.value)==null||S.call(r),(A=o.value)==null||A.call(o),f(!1)},v=Tn(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return Bi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ye("div",{className:K4,children:[ye(W4,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&ye("iframe",{src:c.value,onLoad:v,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),ye(H4,{})]}):null};Sf=class{constructor(t,r){gr(this,"name","OKSPIN"),gr(this,"initialized",!1),gr(this,"initCompleter",null),gr(this,"context",void 0),gr(this,"initParams",void 0),gr(this,"adsOverlay",null),gr(this,"adsIsShowing",!1),gr(this,"lastUnDisplayedAdBreak",null),gr(this,"state",z4()),this.context=t,this.initParams=r}init(){return _(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Ju(ye(Y4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return _(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var g;this.adsIsShowing=!1,p.breakStatus="dismissed",(g=t.adDismissed)==null||g.call(t)},m=()=>{var g;this.adsIsShowing=!1,p.breakStatus="viewed",(g=t.adViewed)==null||g.call(t)},v=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,p)};st(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=v});let y=()=>{var g;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{var w;this.state.countdown.value=(w=r.params.countdown)!=null?w:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}},Xn={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Xn[e.data.type]&&Xn[e.data.type].forEach(t=>{t(e.data.data)})});Yn=(e,t)=>{Bi(()=>(Xn[e]||(Xn[e]=new Set),Xn[e].add(t),()=>{Xn[e].delete(t)}),[e,t])},Z4=()=>{let e=ne(),t=ne(),r=ne(),n=ne(),i=ne(),o=ne(),a=ne(),s=ne(!1),l=ne("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},e$=ri`
768
- ${Ke}
767
+ `,U$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:c,src:l,mode:d}=t,u=co(()=>D$(),[]),[p,f]=rs(!1),m=b=>{var v,w,E,A;s.value=!1,b==="dismiss"?(v=n.value)==null||v.call(n):b==="viewed"&&((w=i.value)==null||w.call(i)),(E=r.value)==null||E.call(r),(A=o.value)==null||A.call(o),f(!1)},g=$n(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return ao(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?Ie("div",{className:M$,children:[Ie(q$,{mode:d.value,onClose:m,countdown:c.value,state:u}),s.value&&Ie("iframe",{src:l.value,onLoad:g,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),Ie(O$,{})]}):null};Zf=class{constructor(t,r){Sr(this,"name","OKSPIN"),Sr(this,"initialized",!1),Sr(this,"initCompleter",null),Sr(this,"context",void 0),Sr(this,"initParams",void 0),Sr(this,"adsOverlay",null),Sr(this,"adsIsShowing",!1),Sr(this,"lastUnDisplayedAdBreak",null),Sr(this,"state",L$()),this.context=t,this.initParams=r}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),cd(Ie(U$,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return y(this,null,function*(){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};ct(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let u=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var v;this.adsIsShowing=!1,p.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,p.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,p)};ct(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let b=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,ct(()=>{var w;this.state.countdown.value=(w=r.params.countdown)!=null?w:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}})}},pi={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||pi[e.data.type]&&pi[e.data.type].forEach(t=>{t(e.data.data)})});ui=(e,t)=>{ao(()=>(pi[e]||(pi[e]=new Set),pi[e].add(t),()=>{pi[e].delete(t)}),[e,t])},G$=()=>{let e=ie(),t=ie(),r=ie(),n=ie(),i=ie(),o=ie(),a=ie(),s=ie(!1),c=ie("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},B$=gi`
768
+ ${Ze}
769
769
  position: fixed;
770
770
  z-index: 2147483647;
771
771
  background: white;
@@ -775,7 +775,7 @@ If multiple caches share the same key they might "fight" for each other's style
775
775
  flex-direction: column;
776
776
 
777
777
  iframe {
778
- ${Ke}
778
+ ${Ze}
779
779
  flex: 1;
780
780
  position: relative;
781
781
  display: block;
@@ -783,8 +783,8 @@ If multiple caches share the same key they might "fight" for each other's style
783
783
  width: 100%;
784
784
  height: 100%;
785
785
  }
786
- `,t$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Ma(!1),p=m=>{var v,y,g,w;u(!1),l.value=!1,m==="dismiss"?(v=n.value)==null||v.call(n):m==="viewed"&&((y=i.value)==null||y.call(i)),(g=r.value)==null||g.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Yn("appsrockets_ad_dismissed",()=>p("dismiss")),Yn("appsrockets_ad_rewarded",()=>p("viewed")),Yn("appsrockets_ad_completed",()=>p("viewed")),Yn("appsrockets_ad_skipped",()=>p("viewed")),Yn("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),Yn("appsrockets_ad_loaded",()=>u(!0)),l.value?ye("div",{className:e$,style:{display:d?"flex":"none"},children:l.value&&ye("iframe",{src:c.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};kf=class{constructor(t,r){vr(this,"name","APPSROCKETS"),vr(this,"initialized",!1),vr(this,"initCompleter",null),vr(this,"context",void 0),vr(this,"adsOverlay",null),vr(this,"adsIsShowing",!1),vr(this,"lastUnDisplayedAdBreak",null),vr(this,"state",Z4()),vr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return _(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Ju(ye(t$,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},f=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var S;this.adsIsShowing=!1,f.breakStatus="dismissed",(S=t.adDismissed)==null||S.call(t)},v=()=>{var S;this.adsIsShowing=!1,f.breakStatus="viewed",(S=t.adViewed)==null||S.call(t)},y=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,f)},g=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};st(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=v,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=g});let w=()=>{var S;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,w);break}}}},Ax=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Cf=class{constructor(t,r,n){We(this,"adUnit",void 0),We(this,"project",void 0),We(this,"keyValue",void 0),We(this,"adsContext",null),We(this,"rewardedSlot",null),We(this,"rewardedPayload",null),We(this,"readyEvent",null),We(this,"withCommand",function(){googletag.cmd.push(...arguments)}),We(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),We(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),We(this,"reinit",i=>{this.destroy(i),this.init()}),We(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),We(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),We(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),We(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),We(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,Ax(),this.withCommand(()=>{this.init()})}};Af=class{constructor(t,r,n){var i=this;at(this,"adUnit",void 0),at(this,"project",void 0),at(this,"keyValue",void 0),at(this,"adsContext",null),at(this,"gamingInterstitialSlot",null),at(this,"readyEvent",null),at(this,"isRetrying",!1),at(this,"withCommand",function(){googletag.cmd.push(...arguments)}),at(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),at(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),at(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),at(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),at(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),at(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),Ax(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};xf=class{constructor(t,r){un(this,"name","GOOGLE_GPT"),un(this,"context",void 0),un(this,"contextInfo",void 0),un(this,"initParams",void 0),un(this,"rewardAdManager",void 0),un(this,"interstitialManager",void 0),un(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return _(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new Cf(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Af(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a})}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a})}});break}}}};Tf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";lf(this,"context",void 0),lf(this,"placement","GAME"),lf(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:ix.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:rx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:nx.WebSDK};return S3(i)}};Al=class{constructor(t){tt(this,"context",void 0),tt(this,"adsTrackSerializer",void 0),tt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Tf(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},Of=class{constructor(t,r){var n=this;tt(this,"context",void 0),tt(this,"contextInfo",void 0),tt(this,"requestContext",void 0),tt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),tt(this,"pendingAFVAdsInfo",Promise.resolve(null)),tt(this,"doFetchAdsInfo",i=>_(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),tt(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),tt(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),tt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),tt(this,"cacheNextAFGAdsInfo",i=>_(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),tt(this,"getAFGAdsInfo",i=>_(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),tt(this,"getAFVAdsInfo",function(){return _(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new Al(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};xl=class{constructor(t){if(Tt(this,"context",void 0),Tt(this,"contextInfo",void 0),Tt(this,"providers",{}),Tt(this,"channelPolicy",void 0),Tt(this,"adsActionDetection",void 0),Tt(this,"requestContext",void 0),Tt(this,"adsRequest",void 0),Tt(this,"initialized",!1),Tt(this,"adsIsShowing",!1),Tt(this,"lastAdBreak",void 0),Tt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new mf(this.context),this.adsActionDetection=new hf(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Of(t),this.requestContext=new Al(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return _(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new xf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new gf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Sf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new kf(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return _(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,v;let y=Date.now();if(y-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&y-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=y,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let g=yield this.adsRequest.getAFGAdsInfo(t.type),w=g==null?void 0:g.data,S=g==null?void 0:g.code;if(S==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var A,R,T,k;(A=t.beforeAd)==null||A.call(t),(R=t.adViewed)==null||R.call(t),(T=t.afterAd)==null||T.call(t),(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!w||S!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let A=w.sort((O,G)=>O.seq-G.seq);if(A.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let R=!0,T=null,k=new ff(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;A.length>0;){let O=A.shift(),G=this.providers[O.provider];if(G){let[Ye,M]=yield k.callAdBreakAndContinue(G,t,O,Pe=>{var Ne;this.adsIsShowing=Pe,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Pe)});R=Ye,T=M}else R=!0,T={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!R)break}R&&T&&((f=t.adBreakDone)==null||f.call(t,T))}}catch(g){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(v=this.context.eventEmitter)==null||v.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},QZ=ri`
787
- ${Ke}
786
+ `,J$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=rs(!1),p=m=>{var g,b,v,w;u(!1),c.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(v=r.value)==null||v.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return ui("appsrockets_ad_dismissed",()=>p("dismiss")),ui("appsrockets_ad_rewarded",()=>p("viewed")),ui("appsrockets_ad_completed",()=>p("viewed")),ui("appsrockets_ad_skipped",()=>p("viewed")),ui("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),ui("appsrockets_ad_loaded",()=>u(!0)),c.value?Ie("div",{className:B$,style:{display:d?"flex":"none"},children:c.value&&Ie("iframe",{src:l.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};em=class{constructor(t,r){Ir(this,"name","APPSROCKETS"),Ir(this,"initialized",!1),Ir(this,"initCompleter",null),Ir(this,"context",void 0),Ir(this,"adsOverlay",null),Ir(this,"adsIsShowing",!1),Ir(this,"lastUnDisplayedAdBreak",null),Ir(this,"state",G$()),Ir(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),cd(Ie(J$,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};ct(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let p=()=>{var E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var E;this.adsIsShowing=!1,f.breakStatus="dismissed",(E=t.adDismissed)==null||E.call(t)},g=()=>{var E;this.adsIsShowing=!1,f.breakStatus="viewed",(E=t.adViewed)==null||E.call(t)},b=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};ct(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=b,this.state.adLinkClicked.value=u,this.state.adError.value=v});let w=()=>{var E;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,ct(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,w);break}}}},cP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};tm=class{constructor(t,r,n){Qe(this,"adUnit",void 0),Qe(this,"project",void 0),Qe(this,"keyValue",void 0),Qe(this,"adsContext",null),Qe(this,"rewardedSlot",null),Qe(this,"rewardedPayload",null),Qe(this,"readyEvent",null),Qe(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Qe(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),Qe(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),Qe(this,"reinit",i=>{this.destroy(i),this.init()}),Qe(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Qe(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),Qe(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Qe(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Qe(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,c,l;(c=(s=this.adsContext)==null?void 0:s.beforeAd)==null||c.call(s),(l=this.readyEvent)==null||l.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,cP(),this.withCommand(()=>{this.init()})}};rm=class{constructor(t,r,n){var i=this;st(this,"adUnit",void 0),st(this,"project",void 0),st(this,"keyValue",void 0),st(this,"adsContext",null),st(this,"gamingInterstitialSlot",null),st(this,"readyEvent",null),st(this,"isRetrying",!1),st(this,"withCommand",function(){googletag.cmd.push(...arguments)}),st(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),st(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),st(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),st(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),st(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),st(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((c=(s=this.adsContext).onEnd)==null||c.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),cP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};nm=class{constructor(t,r){Sn(this,"name","GOOGLE_GPT"),Sn(this,"context",void 0),Sn(this,"contextInfo",void 0),Sn(this,"initParams",void 0),Sn(this,"rewardAdManager",void 0),Sn(this,"interstitialManager",void 0),Sn(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return y(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new tm(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new rm(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a})}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a})}});break}}}};im=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Mf(this,"context",void 0),Mf(this,"placement","GAME"),Mf(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:Fx.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:Mx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Ux.WebSDK};return p4(i)}};Qc=class{constructor(t){rt(this,"context",void 0),rt(this,"adsTrackSerializer",void 0),rt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new im(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},om=class{constructor(t,r){var n=this;rt(this,"context",void 0),rt(this,"contextInfo",void 0),rt(this,"requestContext",void 0),rt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),rt(this,"pendingAFVAdsInfo",Promise.resolve(null)),rt(this,"doFetchAdsInfo",i=>y(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:c,code:l}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return l==="SUCCESS"||l==="BYPASS_ADS"?{code:l,data:c}:null})),rt(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),rt(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),rt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),rt(this,"cacheNextAFGAdsInfo",i=>y(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),rt(this,"getAFGAdsInfo",i=>y(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),rt(this,"getAFVAdsInfo",function(){return y(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new Qc(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};Xc=class{constructor(t){if(Ft(this,"context",void 0),Ft(this,"contextInfo",void 0),Ft(this,"providers",{}),Ft(this,"channelPolicy",void 0),Ft(this,"adsActionDetection",void 0),Ft(this,"requestContext",void 0),Ft(this,"adsRequest",void 0),Ft(this,"initialized",!1),Ft(this,"adsIsShowing",!1),Ft(this,"lastAdBreak",void 0),Ft(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Hf(this.context),this.adsActionDetection=new Jf(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new om(t),this.requestContext=new Qc(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return y(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new nm(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new $f(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Zf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new em(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return y(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,g;let b=Date.now();if(b-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&b-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=b,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),w=v==null?void 0:v.data,E=v==null?void 0:v.code;if(E==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var A,P,T,k;(A=t.beforeAd)==null||A.call(t),(P=t.adViewed)==null||P.call(t),(T=t.afterAd)==null||T.call(t),(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(c=t.beforeAd)==null||c.call(t),(l=t.afterAd)==null||l.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!w||E!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let A=w.sort((G,fe)=>G.seq-fe.seq);if(A.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let P=!0,T=null,k=new Bf(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;A.length>0;){let G=A.shift(),fe=this.providers[G.provider];if(fe){let[L,O]=yield k.callAdBreakAndContinue(fe,t,G,be=>{var Ue;this.adsIsShowing=be,(Ue=this.context.eventEmitter)==null||Ue.emit("isAdShowing",be)});P=L,T=O}else P=!0,T={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&T&&((f=t.adBreakDone)==null||f.call(t,T))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},Bte=gi`
787
+ ${Ze}
788
788
  position: fixed;
789
789
  left: 0;
790
790
  top: 0;
@@ -795,7 +795,7 @@ If multiple caches share the same key they might "fight" for each other's style
795
795
  height: 100vh;
796
796
 
797
797
  .ads-wrapper {
798
- ${Ke}
798
+ ${Ze}
799
799
  position: relative;
800
800
  width: 100%;
801
801
  height: 100%;
@@ -818,7 +818,7 @@ If multiple caches share the same key they might "fight" for each other's style
818
818
  }
819
819
 
820
820
  .retry-button {
821
- ${Ke}
821
+ ${Ze}
822
822
  position: absolute;
823
823
  width: 100%;
824
824
  height: 100%;
@@ -828,4 +828,4 @@ If multiple caches share the same key they might "fight" for each other's style
828
828
  cursor: pointer;
829
829
  }
830
830
  }
831
- `});function Ox(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return _(this,null,function*(){return yield i.reduce((s,l)=>_(this,null,function*(){let c=yield s;if(c===!0)return!0;Tx&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return Tx&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return _(this,null,function*(){t=(...o)=>_(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return _(this,null,function*(){r=(...o)=>_(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:pr,loginGuide:fr}}})})},getRewardsTypes(...i){return _(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return _(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:pr,loginGuide:fr}})}}}var Tx,Rx=C(()=>{"use strict";B();Ue();Tx=E.testMode});var Lf,qf,Nl,Px=C(()=>{"use strict";P();Lf=class{constructor(t){this.httpClient=t}execute(t,r){return _(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:((n=t.extra)==null?void 0:n.joliCoin)||{balance:0,enableAutoDeduct:!1},joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},qf=class{constructor(t){this.httpClient=t}execute(t,r){return _(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return x({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},Nl=class{constructor(t){this.unlockOptionsService=new Qt(new Lf(t),{duration:30*60*1e3,timeout:1e3,keyGenerator:r=>r,consistencyChecker:(r,n)=>r.unlockOptions.length!==n.unlockOptions.length?!1:r.unlockOptions.every((i,o)=>{var s,l;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((l=a.joliGemChoice)==null?void 0:l.joliGemQuantity)})}),this.globalConfigService=new Qt(new qf(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return _(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return _(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return _(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return _(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return _(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function Uf(e){return Mf||(Mf=new Nl(e)),Mf}var g$,v$,Mf,Ff,jf,Gf,Bf=C(()=>{"use strict";Px();Ue();P();g$=()=>(e,t)=>{let r={SUBSCRIPTION:4,JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},v$=e=>{if(!e.length)return["ADS"];if(e.includes("JOLI_GEM")){if(e.length===1)return["JOLI_GEM_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_GEM_ONLY"]}if(e.includes("JOLI_COIN")){if(e.length===1)return["JOLI_COIN_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_COIN_ONLY"]}return e.sort(g$())},Mf=null;Ff=e=>{e.registerRewardsFetcher(t=>_(void 0,null,function*(){var i,o,a,s,l;let r=["ADS"],n=Uf(t);try{let c=yield n.getUnlockOptions({});if(c.code!=="SUCCESS")return r;q.emit(rl,{options:((i=c.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=c.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=c.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((l=(s=c.data)==null?void 0:s.unlockOptions)==null?void 0:l.map(u=>u.type))||Array.from(r);return v$(d)}catch(c){return console.error("getRewardOptions error (cached):",c),r}}))},jf=e=>{e.registerRewardFrequencyConfigFetcher(t=>_(void 0,null,function*(){var n,i,o,a;let r=Uf(t);try{let s=yield r.getGlobalConfig();return q.emit(ur,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||pr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||fr}),s.data&&te.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||pr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||fr}}catch(s){return console.error("getGlobalConfig error (cached):",s),q.emit(ur,{joliCoinUseAndCharge:pr,loginGuide:fr}),te.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:pr,loginGuide:fr}}),{joliCoinUseAndCharge:pr,loginGuide:fr}}}))},Gf=e=>_(void 0,null,function*(){yield Uf(e).warmupCache(),console.log("Reward cache warmed up")})});var Jf=C(()=>{"use strict";Bf();Bf()});var Nx,Dx=C(()=>{"use strict";Nx=e=>t=>_(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var Ge,_r=C(()=>{"use strict";Ue();hr();Ue();Ge=et(q,rl)});var Dl,Hf=C(()=>{"use strict";Dl={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var It,Br=C(()=>{"use strict";P();It=Y()});function Lx(e){return $f||($f=new Wf(e)),$f}var Vf,Wf,$f,zf,Po,No=C(()=>{"use strict";P();Vf=class{constructor(t){this.httpClient=t}execute(t,r){return _(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Wf=class{constructor(t){this.balanceService=new Qt(new Vf(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return _(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return _(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return _(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},$f=null;zf=(e,t="JOLI_COIN")=>_(void 0,null,function*(){return yield Lx(e).getBalance(t)}),Po=(e,t="JOLI_COIN")=>_(void 0,null,function*(){let n=yield Lx(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var qx=C(()=>{"use strict";No()});function Xf(e){return Kf||(Kf=new Qf(e)),Kf}var Yf,Qf,Kf,Zf,Do,Ll,Lo=C(()=>{"use strict";P();Yf=class{constructor(t){this.httpClient=t}execute(t,r){return _(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Qf=class{constructor(t){this.gemBalanceService=new Qt(new Yf(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return _(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return _(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return _(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},Kf=null;Zf=(e,t="GEM")=>_(void 0,null,function*(){return yield Xf(e).getGemBalance(t)}),Do=(e,t="GEM")=>_(void 0,null,function*(){let n=yield Xf(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Ll=(e,t="GEM")=>_(void 0,null,function*(){yield Xf(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var Mx=C(()=>{"use strict";Lo()});var oi,ql=C(()=>{"use strict";qx();Mx();oi={JOLI_COIN:{fetchBalance:zf,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:Zf,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var qo,br,eh=C(()=>{"use strict";Br();_r();hr();Ue();Ue();ql();qo=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;It.registerCommand(`Rewards.${e}.useJolicoin`,()=>_(void 0,null,function*(){let i=yield Ge.getData(),o=oi[t],a=o.getCurrentUser(i),s=o.getQuantity(i),l=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,l,s),(yield n({enableAutoDeduct:l,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},br=(e,t)=>r=>_(void 0,null,function*(){let n=et(q,sn);return q.emit(il,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var Mo,wr,Ux=C(()=>{"use strict";Br();_r();Ue();hr();Ue();ql();Lo();No();Mo=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;It.registerCommand(`Rewards.${e}.usePayment`,()=>_(void 0,null,function*(){var p;let o=yield Ge.getData(),a=oi[t],s=yield a.fetchBalance(n),l=a.getQuantity(o),c=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,c.enableAutoDeduct),u=a.getUpdateKey();if(Ge.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),!a.isEnough(o,d)){let f=yield i({userCurrency:d,currencyQuantity:l,currency:t});return t==="JOLI_GEM"?Do(n):Po(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},wr=(e,t)=>r=>_(void 0,null,function*(){let n=et(q,xt);return q.emit(nl,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var th,Ir,Fx=C(()=>{"use strict";B();Br();hr();Ue();Ue();P();_r();ql();th=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;It.registerCommand(`Rewards.${e}.useUnloginModal`,()=>_(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield Ge.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield Bh(3e3));let f=oi[t],m=yield f.fetchBalance(i),v=f.getQuantity(a),y=f.getCurrentUser(a),g=f.createUpdatedUser((c=m==null?void 0:m.balance)!=null?c:0,y.enableAutoDeduct),w=f.getUpdateKey();if(Ge.updateData({[w]:g}),g.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Ir=(e,t)=>r=>_(void 0,null,function*(){let n=et(q,dr);return q.emit(ol,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var dn=C(()=>{"use strict";eh();Ux();Fx()});var _$,Ml,rh=C(()=>{"use strict";B();P();Hf();dn();Br();No();_$=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{Mo(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),qo(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>_(void 0,null,function*(){var u,p,f;try{let m=!0;for(let g of c){let w=yield It.executeCommand(g);if(m=m&&w.result!=="FAILED",w.result!=="CONTINUE")break}if(!m)return i==null||i(d),!1;let v=Dl[r],y=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${hn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",y),y.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d)),Po(t)}catch(g){console.error("-----unlockWithJolicoin adBreakDone error-----",g)}return n==null||n({quantity:y.data.quantity,balance:y.data.balance}),!0}return i==null||i(d),!1}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return i==null||i(d),!1}finally{o.clearCache()}})},Ml=(e,t,r)=>_$(e,t,"JOLI_COIN",r)});var jx,Gx=C(()=>{"use strict";_r();rh();dn();jx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=br("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=wr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=Ir("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Ml("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:Ge,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Bx,Jx=C(()=>{"use strict";rh();_r();dn();Bx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=br("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=wr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=Ir("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Ml("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:Ge,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Ul,nh=C(()=>{"use strict";B();P();Hf();dn();eh();Br();Lo();Ul=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{th(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),Mo(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),qo(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>_(void 0,null,function*(){var d,u,p;try{let f=!0;for(let y of l){let g=yield It.executeCommand(y);if(f=f&&g.result!=="FAILED",g.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let m=Dl.GEM,v=yield t.post(m.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${hn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",v),v.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c)),Do(t)}catch(y){console.error("-----unlockWithGem adBreakDone error-----",y)}return r==null||r({quantity:v.data.quantity,balance:v.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var Hx,$x=C(()=>{"use strict";_r();nh();dn();Hx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=br("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=wr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=Ir("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Ul("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:Ge,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Vx,Wx=C(()=>{"use strict";nh();_r();dn();Vx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=br("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=wr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=Ir("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Ul("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:Ge,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var ih=C(()=>{"use strict";Br();hr();Ue();Ue()});var zx=C(()=>{"use strict";ih()});var Kx=C(()=>{"use strict";Br();zx();B()});var Yx=C(()=>{"use strict";_r();Kx();ih()});var Ot,Qx=C(()=>{"use strict";Rx();Jf();Dx();Gx();Jx();$x();Wx();Yx();No();Lo();Ot=Ox();Ff(Ot);jf(Ot)});var Fl,b$,Er,w$,Uo,Xx,Zx,I$,E$,oh,S$,k$,eT=C(()=>{"use strict";P();Qe();cr();kA();xx();yt();B();vt();be();Qx();jc();Jf();Fl=Y(),b$=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Er={get:(e,t)=>re(e,x({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>re(e,x({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},w$={httpClient:Er,checkNetwork:b$,track:U,eventEmitter:ba,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},Uo=new xl(w$);Ot.getRewardFrequencyConfig(Er).then(e=>{console.log("getRewardFrequencyConfig",e)});Ot.registerRewardHandler("ADS",Nx(Uo));Ot.registerRewardHandler("JOLI_COIN",jx(Er,{onUnlockSuccess:e=>{Xx(e),U("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Ot.registerRewardHandler("JOLI_COIN_ONLY",Bx(Er,{onUnlockSuccess:e=>{Xx(e),U("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Ot.registerRewardHandler("JOLI_GEM",Hx(Er,{onUnlockSuccess:e=>{Zx(e),U("gem_unlock_success",{quantity:e.quantity})}}));Ot.registerRewardHandler("JOLI_GEM_ONLY",Vx(Er,{onUnlockSuccess:e=>{Zx(e),U("gem_unlock_success",{quantity:e.quantity,isOnly:!0})}}));Xx=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ur(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};Gf(Er);Ll(Er);Zx=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Ur(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},I$=H("adInit",{implement:e=>{Uo.init(e)}}),E$=H("adConfig",{implement:e=>{Uo.adConfig(e)}}),oh=!1,S$=H("adBreak",{implement:e=>{if(e.type==="reward"){if(oh)return;oh=!0,Ot.getRewardsTypes(Er).then(t=>{Ot.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{oh=!1})})}else Uo.adBreak(e)}}),k$=H("adUnit",{implement:e=>{Uo.adUnit(e)}});Fl.registerCommand("AdsSDK.init",I$);Fl.registerCommand("AdsSDK.adConfig",E$);Fl.registerCommand("AdsSDK.adBreak",S$);Fl.registerCommand("AdsSDK.adUnit",k$);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Fo,C$,A$,x$,T$,O$,tT=C(()=>{"use strict";P();be();Qe();B();Fo=Y(),C$=H("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),A$=H("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),x$=H("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),T$=H("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{te.emit("onInterceptSystemExit",{intercept:e}),te.emit("onInterceptBackPress",{intercept:e})}}),O$=H("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:x({},t)})}});Fo.registerCommand("RouterSDK.openSchema",C$);Fo.registerCommand("RouterSDK.openPage",A$);Fo.registerCommand("RouterSDK.closePage",x$);Fo.registerCommand("RouterSDK.interceptSystemExit",T$);Fo.registerCommand("RouterSDK.navigateToNativePage",O$);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function N$(e){sc("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var nT,R$,jl,ah,rT,P$,D$,iT=C(()=>{"use strict";P();Qe();be();B();yt();nT=Y(),R$=H("onLoadFinished",{implement:()=>{sc("cpLoadFinishEvent",{},E.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),jl=null,ah=!1,rT=0,P$=200;D$=H("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{jl=e,ah||(ah=!0,requestAnimationFrame(function t(){let r=Date.now();r-rT>=P$?(jl!==null&&(N$(jl),rT=r,jl=null),ah=!1):requestAnimationFrame(t)}))}});nT.registerCommand("RuntimeSDK.loadFinishedEvent",R$);nT.registerCommand("RuntimeSDK.loadProgressEvent",D$)});var L$,q$,M$,oT=C(()=>{"use strict";P();Qe();B();L$=Y(),q$="isNativeSupport",M$=H(q$,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:tm(Fc(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});L$.registerCommand("API.isNativeSupport",M$);L("isNativeSupport",{version:"1.1.46"})});var cT=h(lh=>{"use strict";Qe();be();P();P();B();var aT=Y(),Gl=[],sh=!1,sT=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};te.on("onGlobalConfigChanged",e=>{var t,r;Gl=sT((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),sh=!0});var lT=()=>new Promise(e=>{if(sh)e(Gl);else{let t=r=>{var n;Gl=sT((n=r.globalConfig.supportedHostMethods)!=null?n:[]),sh=!0,te.off("onGlobalConfigChanged",t),e(Gl)};te.on("onGlobalConfigChanged",t)}}),U$=ue("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>_(lh,[r],function*({method:e,params:t}){if(!(yield lT()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:x({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=Be(c,["callHostMethodId"]);return x({},l)})});aT.registerCommand("API.callHostMethod",U$);L("callHostMethod",{version:"1.1.49"});var F$=ue("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>_(lh,[n],function*({event:e,eventType:t,params:r}){if(!(yield lT()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield j("trackAsync",{event:e,eventType:t,data:x({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});aT.registerCommand("API.track",F$);L("track",{version:"1.1.53"})});var pT=h(ch=>{"use strict";P();Qe();tf();Wr();var uT=Y(),dT=ul(),j$=ue("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>_(ch,null,function*(){var r,n;let t=yield dT.purchase(e.productId);if(t.code!=="SUCCESS"||!((r=t.data)!=null&&r.totalAmount))throw Lt({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=t.data)==null?void 0:n.totalAmount}})}),G$=ue("getGemProducts",{paramsSchema:I.tuple(),implement:()=>_(ch,null,function*(){var t,r;let e=(r=(t=yield dT.getProductsInfo())==null?void 0:t.paymentChoices)!=null?r:[];return console.info("choices",e),{products:e.map(n=>{var i;return{productId:n.productId,totalAmountStr:(i=n.totalAmountStr)!=null?i:"",quantity:n.quantity}})}})});uT.registerCommand("PaymentSDK.purchaseGem",j$);uT.registerCommand("PaymentSDK.getGemProducts",G$);L("payment.purchaseGem",{version:"1.2.3"});L("payment.getGemProducts",{version:"1.2.3"})});var B$={};var nie,sie,fie,hie,fT=C(()=>{"use strict";DC();nie=ie(LC());BC();ya();JC();sie=ie(HC());Zs();eT();tT();iT();oT();fie=ie(cT()),hie=ie(pT())});var hT=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[hT])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[hT]=!0;_(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(PC(),RC)),Promise.resolve().then(()=>(fT(),B$)),Promise.resolve().then(()=>(yt(),Bm))]);e()});
831
+ `});function dP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return y(this,null,function*(){return yield i.reduce((s,c)=>y(this,null,function*(){let l=yield s;if(l===!0)return!0;uP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return uP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return y(this,null,function*(){t=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return y(this,null,function*(){r=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:br,loginGuide:_r}}})})},getRewardsTypes(...i){return y(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return y(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:br,loginGuide:_r}})}}}var uP,pP=C(()=>{"use strict";B();Le();uP=S.testMode});var um,dm,nl,fP=C(()=>{"use strict";R();um=class{constructor(t){this.httpClient=t}execute(t,r){return y(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:((n=t.extra)==null?void 0:n.joliCoin)||{balance:0,enableAutoDeduct:!1},joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},dm=class{constructor(t){this.httpClient=t}execute(t,r){return y(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return x({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},nl=class{constructor(t){this.unlockOptionsService=new Rt(new um(t),{duration:30*60*1e3,timeout:1e3,keyGenerator:r=>r,consistencyChecker:(r,n)=>r.unlockOptions.length!==n.unlockOptions.length?!1:r.unlockOptions.every((i,o)=>{var s,c;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((c=a.joliGemChoice)==null?void 0:c.joliGemQuantity)})}),this.globalConfigService=new Rt(new dm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return y(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return y(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return y(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return y(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return y(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function fm(e){return pm||(pm=new nl(e)),pm}var iV,oV,aV,pm,mm,hm,gm,vm=C(()=>{"use strict";fP();Le();R();iV=()=>(e,t)=>{let r={SUBSCRIPTION:4,JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},oV=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],aV=e=>{if(!e.length)return["ADS"];if(e.includes("JOLI_GEM")){if(e.length===1)return["JOLI_GEM_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_GEM_ONLY"]}if(e.includes("JOLI_COIN")){if(e.length===1)return["JOLI_COIN_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_COIN_ONLY"]}return e.sort(iV())},pm=null;mm=e=>{e.registerRewardsFetcher(t=>y(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=fm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;q.emit(_c,{options:((i=l.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=l.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=l.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((c=(s=l.data)==null?void 0:s.unlockOptions)==null?void 0:c.map(u=>u.type))||Array.from(r);return aV(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},hm=e=>{e.registerRewardFrequencyConfigFetcher(t=>y(void 0,null,function*(){var n,i,o,a;let r=fm(t);try{let s=yield r.getGlobalConfig();return q.emit(Ut,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||br,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||_r}),s.data&&he.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||br,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||_r}}catch(s){return console.error("getGlobalConfig error (cached):",s),q.emit(Ut,{joliCoinUseAndCharge:br,loginGuide:_r}),he.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:br,loginGuide:_r,supportedHostMethods:oV}}),{joliCoinUseAndCharge:br,loginGuide:_r}}}))},gm=e=>y(void 0,null,function*(){yield fm(e).warmupCache(),console.log("Reward cache warmed up")})});var ym=C(()=>{"use strict";vm();vm()});var mP,hP=C(()=>{"use strict";mP=e=>t=>y(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var Te,_i,St=C(()=>{"use strict";Le();tr();Le();Te=Me(q,_c),_i=(e,t)=>{var n;let r=(n=e.options)==null?void 0:n.some(i=>i.type==="SUBSCRIPTION");return console.log("typeof extraCheck",typeof t,t==null?void 0:t()),r&&(!t||(t==null?void 0:t()))}});var il,bm=C(()=>{"use strict";il={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var ut,Wr=C(()=>{"use strict";R();ut=Y()});function gP(e){return _m||(_m=new Sm(e)),_m}var wm,Sm,_m,Im,In,wi=C(()=>{"use strict";R();wm=class{constructor(t){this.httpClient=t}execute(t,r){return y(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Sm=class{constructor(t){this.balanceService=new Rt(new wm(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return y(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return y(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return y(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},_m=null;Im=(e,t="JOLI_COIN")=>y(void 0,null,function*(){return yield gP(e).getBalance(t)}),In=(e,t="JOLI_COIN")=>y(void 0,null,function*(){let n=yield gP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var vP=C(()=>{"use strict";wi()});function Am(e){return Em||(Em=new Cm(e)),Em}var km,Cm,Em,xm,En,ol,Si=C(()=>{"use strict";R();km=class{constructor(t){this.httpClient=t}execute(t,r){return y(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Cm=class{constructor(t){this.gemBalanceService=new Rt(new km(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return y(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return y(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return y(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},Em=null;xm=(e,t="GEM")=>y(void 0,null,function*(){return yield Am(e).getGemBalance(t)}),En=(e,t="GEM")=>y(void 0,null,function*(){let n=yield Am(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),ol=(e,t="GEM")=>y(void 0,null,function*(){yield Am(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var yP=C(()=>{"use strict";Si()});var Pt,kn=C(()=>{"use strict";vP();yP();Pt={JOLI_COIN:{fetchBalance:Im,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:xm,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var Zo,kr,Pm=C(()=>{"use strict";Wr();St();tr();Le();Le();kn();Zo=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;ut.registerCommand(`Rewards.${e}.useJolicoin`,()=>y(void 0,null,function*(){let i=yield Te.getData(),o=Pt[t],a=o.getCurrentUser(i),s=o.getQuantity(i),c=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,c,s),(yield n({enableAutoDeduct:c,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},kr=(e,t)=>r=>y(void 0,null,function*(){let n=Me(q,hn);return q.emit(Sc,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var ea,Cr,bP=C(()=>{"use strict";Wr();St();Le();tr();Le();kn();Si();wi();ea=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;ut.registerCommand(`Rewards.${e}.usePayment`,()=>y(void 0,null,function*(){var p;let o=yield Te.getData(),a=Pt[t],s=yield a.fetchBalance(n),c=a.getQuantity(o),l=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,l.enableAutoDeduct),u=a.getUpdateKey();if(Te.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,c,t),!a.isEnough(o,d)){let f=yield i({userCurrency:d,currencyQuantity:c,currency:t});return t==="JOLI_GEM"?En(n):In(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Cr=(e,t)=>r=>y(void 0,null,function*(){let n=Me(q,Mt);return q.emit(wc,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var Tm,Ar,_P=C(()=>{"use strict";B();Wr();tr();Le();Le();R();St();kn();Tm=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;ut.registerCommand(`Rewards.${e}.useUnloginModal`,()=>y(void 0,null,function*(){var s,c,l;let o=(s=S.hostUserInfo)==null?void 0:s.isLogin,a=yield Te.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(c=d.rewards)!=null?c:{};if(d.result=="SUCCESS"){u&&p&&(yield hh(3e3));let f=Pt[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),b=f.getCurrentUser(a),v=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),w=f.getUpdateKey();if(Te.updateData({[w]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Ar=(e,t)=>r=>y(void 0,null,function*(){let n=Me(q,yr);return q.emit(Ic,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Cn=C(()=>{"use strict";Pm();bP();_P()});var cV,al,Rm=C(()=>{"use strict";B();R();bm();Cn();Wr();wi();kn();St();cV=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{ea(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Zo(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>y(void 0,null,function*(){var p,f,m,g;try{let b=yield o.getData();if(_i(b,l)){let A=Pt.JOLI_COIN,P=yield A.fetchBalance(t),T=A.getCurrentUser(b),k=A.createUpdatedUser((p=P==null?void 0:P.balance)!=null?p:0,T.enableAutoDeduct);if(!A.isEnough(b,k))return i==null||i(u),!1}else{let A=!0;for(let P of d){let T=yield ut.executeCommand(P);if(A=A&&T.result!=="FAILED",T.result!=="CONTINUE")break}if(!A)return i==null||i(u),!1}let w=il[r],E=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Tn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithCurrency request result-----",E),E.code=="SUCCESS"){try{(m=u.adBreakDone)==null||m.call(u,{breakType:u.type,breakName:"name"in u&&(f=u.name)!=null?f:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in u&&((g=u.adViewed)==null||g.call(u)),In(t)}catch(A){console.error("-----unlockWithJolicoin adBreakDone error-----",A)}return n==null||n({quantity:E.data.quantity,balance:E.data.balance}),!0}return i==null||i(u),!1}catch(b){if(console.info("JolicoinRewardHandler error:",b),b instanceof Error&&b.message=="CANCEL")throw b;return i==null||i(u),!1}finally{o.clearCache()}})},al=(e,t,r)=>cV(e,t,"JOLI_COIN",r)});var wP,SP=C(()=>{"use strict";St();Rm();Cn();wP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=kr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Cr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Ar("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return al("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Te,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var IP,EP=C(()=>{"use strict";Rm();St();Cn();IP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=kr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Cr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Ar("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return al("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Te,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var sl,Om=C(()=>{"use strict";B();R();bm();Cn();Pm();Wr();Si();kn();St();sl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Tm(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),ea(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Zo(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>y(void 0,null,function*(){var u,p,f,m;try{let g=yield i.getData(),b=_i(g,c);if(console.log("[GemHandler] supportSubscription",b,g),b){let E=Pt.JOLI_GEM,A=yield E.fetchBalance(t),P=E.getCurrentUser(g),T=E.createUpdatedUser((u=A==null?void 0:A.balance)!=null?u:0,P.enableAutoDeduct);if(!E.isEnough(g,T))return n==null||n(d),!1}else{let E=!0;for(let A of l){let P=yield ut.executeCommand(A);if(console.log("[GemHandler] command result",P,A),E=E&&P.result!=="FAILED",P.result!=="CONTINUE")break}if(!E)return n==null||n(d),!1}let v=il.GEM,w=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Tn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithGem request result-----",w),w.code=="SUCCESS"){try{(f=d.adBreakDone)==null||f.call(d,{breakType:d.type,breakName:"name"in d&&(p=d.name)!=null?p:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((m=d.adViewed)==null||m.call(d)),En(t)}catch(E){console.error("-----unlockWithGem adBreakDone error-----",E)}return r==null||r({quantity:w.data.quantity,balance:w.data.balance}),!0}return n==null||n(d),!1}catch(g){if(console.info("GemRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(d),!1}finally{i.clearCache()}})}});var kP,CP=C(()=>{"use strict";St();Om();Cn();kP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=kr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Cr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Ar("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return sl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Te,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var AP,xP=C(()=>{"use strict";Om();St();Cn();AP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=kr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Cr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Ar("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return sl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Te,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var PP,TP,Nm=C(()=>{"use strict";kn();Wr();St();tr();Le();Le();PP=e=>{let{showSubscriptionModal:t}=e;ut.registerCommand("Rewards.subscription",()=>y(void 0,null,function*(){var s,c;let r=yield Te.getData(),n=(c=(s=r==null?void 0:r.options)==null?void 0:s.find(l=>l.type==="JOLI_GEM"))==null?void 0:c.type,i=Pt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},TP=e=>()=>y(void 0,null,function*(){let t=Me(q,gn);return q.emit(Ec,e),(yield t.getFreshData()).result})});var RP=C(()=>{"use strict";Nm()});var OP,NP=C(()=>{"use strict";Wr();RP();B();St();wi();Si();OP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{PP({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>y(void 0,null,function*(){var l,d,u,p,f,m;try{let g=yield i.getData();if(!_i(g,a))return!1;let v=!0;for(let w of s){let E=yield ut.executeCommand(w);if(v=v&&E.result!=="FAILED",E.result!=="CONTINUE")break}if(In(t),En(t),console.log("-----unlockWithSubscription result-----",v),v){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(m=(f=S).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:U(x({},(p=S.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(w){console.error("-----unlockWithSubscription adBreakDone error-----",w)}return r==null||r(),!0}return n==null||n(c),!1}catch(g){if(console.info("SubscriptionRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(c),!1}finally{}})}});var DP,qP=C(()=>{"use strict";St();NP();Nm();DP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=TP("SUBSCRIPTION");return OP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Te,showSubscriptionModal:o,hasSubscription:n}})}});var Tt,LP=C(()=>{"use strict";pP();ym();hP();SP();EP();CP();xP();qP();wi();Si();Tt=dP();mm(Tt);hm(Tt)});var cl,lV,or,uV,ta,dV,MP,UP,pV,fV,Dm,mV,hV,gV,FP=C(()=>{"use strict";R();Ve();er();ax();lP();kt();B();pt();ce();LP();ou();ym();cl=Y(),lV=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},or={get:(e,t)=>Z(e,x({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Z(e,x({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},uV={httpClient:or,checkNetwork:lV,track:j,eventEmitter:Fa,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:""}}},ta=new Xc(uV);Tt.getRewardFrequencyConfig(or).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",mP(ta));Tt.registerRewardHandler("JOLI_COIN",wP(or,{onUnlockSuccess:e=>{MP(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));Tt.registerRewardHandler("JOLI_COIN_ONLY",IP(or,{onUnlockSuccess:e=>{MP(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));Tt.registerRewardHandler("JOLI_GEM",kP(or,{onUnlockSuccess:e=>{UP(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));Tt.registerRewardHandler("JOLI_GEM_ONLY",AP(or,{onUnlockSuccess:e=>{UP(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));dV=()=>{j("subscription_unlock_success",{})};Tt.registerRewardHandler("SUBSCRIPTION",DP(or,{onSubSuccess:dV.bind(void 0),hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));MP=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Jr(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};gm(or);ol(or);UP=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Jr(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},pV=H("adInit",{implement:e=>{ta.init(e)}}),fV=H("adConfig",{implement:e=>{ta.adConfig(e)}}),Dm=!1,mV=e=>{var t,r,n;(r=e.adBreakDone)==null||r.call(e,{breakType:e.type,breakName:"name"in e&&(t=e.name)!=null?t:"",breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in e&&((n=e.adViewed)==null||n.call(e))},hV=H("adBreak",{implement:e=>{var r;if((r=S.hostUserInfo)==null?void 0:r.isSubUser){mV(e);return}if(e.type==="reward"){if(Dm)return;Dm=!0,Tt.getRewardsTypes(or).then(n=>{Tt.handleReward(n,e).catch(i=>{var o;console.info("handleReward failed in native",i),(o=e.adBreakDone)==null||o.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{Dm=!1})})}else ta.adBreak(e)}}),gV=H("adUnit",{implement:e=>{ta.adUnit(e)}});cl.registerCommand("AdsSDK.init",pV);cl.registerCommand("AdsSDK.adConfig",fV);cl.registerCommand("AdsSDK.adBreak",hV);cl.registerCommand("AdsSDK.adUnit",gV);M("AdsSDK.init",{version:"1.0.0"});M("AdsSDK.adConfig",{version:"1.0.0"});M("AdsSDK.adBreak",{version:"1.0.0"});M("AdsSDK.adUnit",{version:"1.0.0"})});var ra,vV,yV,bV,_V,wV,jP=C(()=>{"use strict";R();ce();Ve();B();ra=Y(),vV=H("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=F("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Gt(r.errMsg,r.errNo)}}),yV=H("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=F("openPageSync",{url:e});if(t!==0||!n)throw new Gt(r,t);return{webviewId:n.webviewId}}}),bV=H("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=F("closePageSync",{webviewId:e});if(t!==0)throw new Gt(r,t)}}),_V=H("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{he.emit("onInterceptSystemExit",{intercept:e}),he.emit("onInterceptBackPress",{intercept:e})}}),wV=H("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{F("callHostMethodAsync",{method:e,params:x({},t)})}});ra.registerCommand("RouterSDK.openSchema",vV);ra.registerCommand("RouterSDK.openPage",yV);ra.registerCommand("RouterSDK.closePage",bV);ra.registerCommand("RouterSDK.interceptSystemExit",_V);ra.registerCommand("RouterSDK.navigateToNativePage",wV);M("router.openSchema",{version:"1.1.10"});M("router.openPage",{version:"1.1.10"});M("router.closePage",{version:"1.1.10"});M("router.interceptSystemExit",{version:"1.1.18"});M("router.navigateToNativePage",{version:"1.1.19"})});function EV(e){Al("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var BP,SV,ll,qm,GP,IV,kV,JP=C(()=>{"use strict";R();Ve();ce();B();kt();BP=Y(),SV=H("onLoadFinished",{implement:()=>{Al("cpLoadFinishEvent",{},S.webviewId,!0),j("loadFinished",{duration:performance.now()})}}),ll=null,qm=!1,GP=0,IV=200;kV=H("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{ll=e,qm||(qm=!0,requestAnimationFrame(function t(){let r=Date.now();r-GP>=IV?(ll!==null&&(EV(ll),GP=r,ll=null),qm=!1):requestAnimationFrame(t)}))}});BP.registerCommand("RuntimeSDK.loadFinishedEvent",SV);BP.registerCommand("RuntimeSDK.loadProgressEvent",kV)});var CV,AV,xV,HP=C(()=>{"use strict";R();Ve();B();CV=Y(),AV="isNativeSupport",xV=H(AV,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:kh(iu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});CV.registerCommand("API.isNativeSupport",xV);M("isNativeSupport",{version:"1.1.46"})});var VP=h(Lm=>{"use strict";Ve();ce();R();R();B();var $P=Y(),PV=ne("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>y(Lm,[r],function*({method:e,params:t}){if(!ft(e))throw new Gt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield F("callHostMethodAsync",{method:e,params:x({},t)});if(n!==0)throw new Gt(i,n);let c=o,{callHostMethodId:a}=c,s=$e(c,["callHostMethodId"]);return x({},s)})});$P.registerCommand("API.callHostMethod",PV);M("callHostMethod",{version:"1.1.49"});var TV=ne("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>y(Lm,[n],function*({event:e,eventType:t,params:r}){if(!ft("userTrackAsync"))throw new Gt("Method not supported",10001);let{errNo:i,errMsg:o}=yield F("trackAsync",{event:e,eventType:t,data:x({},r),webviewId:S.webviewId});if(i!==0)throw new Gt(o,i)})});$P.registerCommand("API.track",TV);M("track",{version:"1.1.53"})});var zP=h(Ii=>{"use strict";R();Ve();Sf();Xr();Rf();var na=Y(),WP=Tc(),RV=ne("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>y(Ii,null,function*(){var r,n;let t=yield WP.purchase(e.productId);if(t.code!=="SUCCESS")throw Et({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),OV=ne("getGemProducts",{paramsSchema:I.tuple(),implement:()=>y(Ii,null,function*(){var t,r;let e=(r=(t=yield WP.getProductsInfo())==null?void 0:t.paymentChoices)!=null?r:[];return console.info("choices",e),{products:e.map(n=>{var i;return{productId:n.productId,totalAmountStr:(i=n.totalAmountStr)!=null?i:"",quantity:n.quantity}})}})}),NV=ne("getSubscriptionPlans",{paramsSchema:I.tuple(),implement:()=>y(Ii,null,function*(){let e=yield wn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Et({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),DV=ne("flushSubInfoCache",{paramsSchema:I.tuple(),implement:()=>y(Ii,null,function*(){yield wn.updateAllNativePriceCache()})}),qV=ne("subscribe",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>y(Ii,null,function*(){var a;let t=yield wn.getTierByProductId(e.productId);if(!t)throw Et({code:-1,msg:"[JoliboxSDK]: product not found"});let{basePlanId:r,appStoreProductId:n,nativeProductId:i}=t,o=yield wn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}})});na.registerCommand("PaymentSDK.purchaseGem",RV);na.registerCommand("PaymentSDK.getGemProducts",OV);na.registerCommand("PaymentSDK.getSubscriptionPlans",NV);na.registerCommand("PaymentSDK.subscribe",qV);na.registerCommand("PaymentSDK.flushSubInfoCache",DV);M("payment.purchaseGem",{version:"1.2.3"});M("payment.getGemProducts",{version:"1.2.3"});M("payment.getSubscriptionPlans",{version:"1.2.5"});M("payment.subscribe",{version:"1.2.5"});M("payment.flushSubInfoCache",{version:"1.2.5"})});var LV={};var tae,oae,dae,pae,KP=C(()=>{"use strict";nA();tae=re(iA());dA();Ui();pA();oae=re(fA());yc();FP();jP();JP();HP();dae=re(VP()),pae=re(zP())});var YP=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[YP])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[YP]=!0;y(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(tA(),eA)),Promise.resolve().then(()=>(KP(),LV)),Promise.resolve().then(()=>(kt(),dg))]);e()});