50p82u21t54k 0.0.36 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/50p82u21t54k.cjs.js +1 -0
- package/dist/50p82u21t54k.es.js +6348 -2381
- package/dist/50p82u21t54k.umd.js +1 -26
- package/dist/api/announcement/announcementApi.d.ts +3 -0
- package/dist/api/announcement/announcementApi.d.ts.map +1 -0
- package/dist/api/announcement/index.d.ts +3 -0
- package/dist/api/announcement/index.d.ts.map +1 -0
- package/dist/api/announcement/type.d.ts +13 -0
- package/dist/api/announcement/type.d.ts.map +1 -0
- package/dist/api/cmsList/cmsListApi.d.ts +3 -0
- package/dist/api/cmsList/cmsListApi.d.ts.map +1 -0
- package/dist/api/cmsList/index.d.ts +3 -0
- package/dist/api/cmsList/index.d.ts.map +1 -0
- package/dist/api/cmsList/type.d.ts +8 -0
- package/dist/api/cmsList/type.d.ts.map +1 -0
- package/dist/api/csLink/csLinkApi.d.ts +3 -0
- package/dist/api/csLink/csLinkApi.d.ts.map +1 -0
- package/dist/api/csLink/index.d.ts +3 -0
- package/dist/api/csLink/index.d.ts.map +1 -0
- package/dist/{csLink → api/csLink}/type.d.ts +1 -2
- package/dist/api/csLink/type.d.ts.map +1 -0
- package/dist/api/currentLang/currentLangApi.d.ts +3 -0
- package/dist/api/currentLang/currentLangApi.d.ts.map +1 -0
- package/dist/api/currentLang/index.d.ts +3 -0
- package/dist/api/currentLang/index.d.ts.map +1 -0
- package/dist/api/currentLang/type.d.ts +7 -0
- package/dist/api/currentLang/type.d.ts.map +1 -0
- package/dist/api/eGame/eGameApi.d.ts +3 -0
- package/dist/api/eGame/eGameApi.d.ts.map +1 -0
- package/dist/api/eGame/index.d.ts +3 -0
- package/dist/api/eGame/index.d.ts.map +1 -0
- package/dist/{eGame → api/eGame}/type.d.ts +4 -8
- package/dist/api/eGame/type.d.ts.map +1 -0
- package/dist/api/fishGames/fishGamesApi.d.ts +3 -0
- package/dist/api/fishGames/fishGamesApi.d.ts.map +1 -0
- package/dist/api/fishGames/index.d.ts +3 -0
- package/dist/api/fishGames/index.d.ts.map +1 -0
- package/dist/{fishGames → api/fishGames}/type.d.ts +4 -10
- package/dist/api/fishGames/type.d.ts.map +1 -0
- package/dist/api/general/api.d.ts +4 -0
- package/dist/api/general/api.d.ts.map +1 -0
- package/dist/api/general/type.d.ts +15 -0
- package/dist/api/general/type.d.ts.map +1 -0
- package/dist/api/getLocale/getLocaleApi.d.ts +3 -0
- package/dist/api/getLocale/getLocaleApi.d.ts.map +1 -0
- package/dist/api/getLocale/index.d.ts +3 -0
- package/dist/api/getLocale/index.d.ts.map +1 -0
- package/dist/{getLocale → api/getLocale}/type.d.ts +1 -2
- package/dist/api/getLocale/type.d.ts.map +1 -0
- package/dist/api/getLoginKey/getLoginKeyApi.d.ts +3 -0
- package/dist/api/getLoginKey/getLoginKeyApi.d.ts.map +1 -0
- package/dist/api/getLoginKey/index.d.ts +3 -0
- package/dist/api/getLoginKey/index.d.ts.map +1 -0
- package/dist/{getLoginKey → api/getLoginKey}/type.d.ts +1 -2
- package/dist/api/getLoginKey/type.d.ts.map +1 -0
- package/dist/api/getSetting/getSettingApi.d.ts +3 -0
- package/dist/api/getSetting/getSettingApi.d.ts.map +1 -0
- package/dist/api/getSetting/index.d.ts +3 -0
- package/dist/api/getSetting/index.d.ts.map +1 -0
- package/dist/{getSetting → api/getSetting}/type.d.ts +1 -2
- package/dist/api/getSetting/type.d.ts.map +1 -0
- package/dist/api/getWinnerList/getWinnerListApi.d.ts +3 -0
- package/dist/api/getWinnerList/getWinnerListApi.d.ts.map +1 -0
- package/dist/api/getWinnerList/index.d.ts +3 -0
- package/dist/api/getWinnerList/index.d.ts.map +1 -0
- package/dist/api/getWinnerList/type.d.ts +15 -0
- package/dist/api/getWinnerList/type.d.ts.map +1 -0
- package/dist/api/home/homeApi.d.ts +3 -0
- package/dist/api/home/homeApi.d.ts.map +1 -0
- package/dist/api/home/index.d.ts +3 -0
- package/dist/api/home/index.d.ts.map +1 -0
- package/dist/{home → api/home}/type.d.ts +2 -25
- package/dist/api/home/type.d.ts.map +1 -0
- package/dist/api/hotGames/hotGamesApi.d.ts +3 -0
- package/dist/api/hotGames/hotGamesApi.d.ts.map +1 -0
- package/dist/api/hotGames/index.d.ts +3 -0
- package/dist/api/hotGames/index.d.ts.map +1 -0
- package/dist/{hotGames → api/hotGames}/type.d.ts +3 -9
- package/dist/api/hotGames/type.d.ts.map +1 -0
- package/dist/api/login/index.d.ts +3 -0
- package/dist/api/login/index.d.ts.map +1 -0
- package/dist/api/login/loginApi.d.ts +3 -0
- package/dist/api/login/loginApi.d.ts.map +1 -0
- package/dist/{login → api/login}/type.d.ts +1 -2
- package/dist/api/login/type.d.ts.map +1 -0
- package/dist/api/message/index.d.ts +3 -0
- package/dist/api/message/index.d.ts.map +1 -0
- package/dist/api/message/messageApi.d.ts +3 -0
- package/dist/api/message/messageApi.d.ts.map +1 -0
- package/dist/api/message/type.d.ts +13 -0
- package/dist/api/message/type.d.ts.map +1 -0
- package/dist/api/promotion/index.d.ts +3 -0
- package/dist/api/promotion/index.d.ts.map +1 -0
- package/dist/api/promotion/promotionApi.d.ts +3 -0
- package/dist/api/promotion/promotionApi.d.ts.map +1 -0
- package/dist/{promotion → api/promotion}/type.d.ts +3 -4
- package/dist/api/promotion/type.d.ts.map +1 -0
- package/dist/api/trialGames/index.d.ts +3 -0
- package/dist/api/trialGames/index.d.ts.map +1 -0
- package/dist/api/trialGames/trialGamesApi.d.ts +3 -0
- package/dist/api/trialGames/trialGamesApi.d.ts.map +1 -0
- package/dist/{trialGames → api/trialGames}/type.d.ts +3 -9
- package/dist/api/trialGames/type.d.ts.map +1 -0
- package/dist/index.d.ts +16 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/typings.d.ts +7 -0
- package/dist/util/tool.d.ts +5 -0
- package/dist/util/tool.d.ts.map +1 -1
- package/dist/util/type.d.ts +5 -0
- package/dist/util/type.d.ts.map +1 -1
- package/package.json +19 -15
- package/dist/cmsList/index.d.ts +0 -3
- package/dist/cmsList/index.d.ts.map +0 -1
- package/dist/cmsList/method.d.ts +0 -39
- package/dist/cmsList/method.d.ts.map +0 -1
- package/dist/cmsList/type.d.ts +0 -19
- package/dist/cmsList/type.d.ts.map +0 -1
- package/dist/csLink/index.d.ts +0 -3
- package/dist/csLink/index.d.ts.map +0 -1
- package/dist/csLink/method.d.ts +0 -11
- package/dist/csLink/method.d.ts.map +0 -1
- package/dist/csLink/type.d.ts.map +0 -1
- package/dist/currentLang/index.d.ts +0 -3
- package/dist/currentLang/index.d.ts.map +0 -1
- package/dist/currentLang/method.d.ts +0 -9
- package/dist/currentLang/method.d.ts.map +0 -1
- package/dist/currentLang/type.d.ts +0 -6
- package/dist/currentLang/type.d.ts.map +0 -1
- package/dist/eGame/index.d.ts +0 -3
- package/dist/eGame/index.d.ts.map +0 -1
- package/dist/eGame/method.d.ts +0 -9
- package/dist/eGame/method.d.ts.map +0 -1
- package/dist/eGame/type.d.ts.map +0 -1
- package/dist/fishGames/index.d.ts +0 -3
- package/dist/fishGames/index.d.ts.map +0 -1
- package/dist/fishGames/method.d.ts +0 -12
- package/dist/fishGames/method.d.ts.map +0 -1
- package/dist/fishGames/type.d.ts.map +0 -1
- package/dist/getLocale/index.d.ts +0 -3
- package/dist/getLocale/index.d.ts.map +0 -1
- package/dist/getLocale/method.d.ts +0 -9
- package/dist/getLocale/method.d.ts.map +0 -1
- package/dist/getLocale/type.d.ts.map +0 -1
- package/dist/getLoginKey/index.d.ts +0 -3
- package/dist/getLoginKey/index.d.ts.map +0 -1
- package/dist/getLoginKey/method.d.ts +0 -11
- package/dist/getLoginKey/method.d.ts.map +0 -1
- package/dist/getLoginKey/type.d.ts.map +0 -1
- package/dist/getSetting/index.d.ts +0 -3
- package/dist/getSetting/index.d.ts.map +0 -1
- package/dist/getSetting/method.d.ts +0 -15
- package/dist/getSetting/method.d.ts.map +0 -1
- package/dist/getSetting/type.d.ts.map +0 -1
- package/dist/historyGames (incomplete)/index.d.ts +0 -1
- package/dist/historyGames (incomplete)/index.d.ts.map +0 -1
- package/dist/historyGames (incomplete)/method.d.ts +0 -1
- package/dist/historyGames (incomplete)/method.d.ts.map +0 -1
- package/dist/historyGames (incomplete)/type.d.ts +0 -1
- package/dist/historyGames (incomplete)/type.d.ts.map +0 -1
- package/dist/home/index.d.ts +0 -3
- package/dist/home/index.d.ts.map +0 -1
- package/dist/home/method.d.ts +0 -68
- package/dist/home/method.d.ts.map +0 -1
- package/dist/home/type.d.ts.map +0 -1
- package/dist/hotGames/index.d.ts +0 -3
- package/dist/hotGames/index.d.ts.map +0 -1
- package/dist/hotGames/method.d.ts +0 -20
- package/dist/hotGames/method.d.ts.map +0 -1
- package/dist/hotGames/type.d.ts.map +0 -1
- package/dist/legacy/announcement/index.d.ts +0 -3
- package/dist/legacy/announcement/index.d.ts.map +0 -1
- package/dist/legacy/announcement/method.d.ts +0 -4
- package/dist/legacy/announcement/method.d.ts.map +0 -1
- package/dist/legacy/announcement/type.d.ts +0 -11
- package/dist/legacy/announcement/type.d.ts.map +0 -1
- package/dist/legacy/gKey/index.d.ts +0 -3
- package/dist/legacy/gKey/index.d.ts.map +0 -1
- package/dist/legacy/gKey/method.d.ts +0 -5
- package/dist/legacy/gKey/method.d.ts.map +0 -1
- package/dist/legacy/gKey/type.d.ts +0 -6
- package/dist/legacy/gKey/type.d.ts.map +0 -1
- package/dist/legacy/language/index.d.ts +0 -3
- package/dist/legacy/language/index.d.ts.map +0 -1
- package/dist/legacy/language/method.d.ts +0 -4
- package/dist/legacy/language/method.d.ts.map +0 -1
- package/dist/legacy/language/type.d.ts +0 -12
- package/dist/legacy/language/type.d.ts.map +0 -1
- package/dist/legacy/platforms/index.d.ts +0 -3
- package/dist/legacy/platforms/index.d.ts.map +0 -1
- package/dist/legacy/platforms/method.d.ts +0 -4
- package/dist/legacy/platforms/method.d.ts.map +0 -1
- package/dist/legacy/platforms/type.d.ts +0 -9
- package/dist/legacy/platforms/type.d.ts.map +0 -1
- package/dist/legacy/products/index.d.ts +0 -3
- package/dist/legacy/products/index.d.ts.map +0 -1
- package/dist/legacy/products/method.d.ts +0 -4
- package/dist/legacy/products/method.d.ts.map +0 -1
- package/dist/legacy/products/type.d.ts +0 -24
- package/dist/legacy/products/type.d.ts.map +0 -1
- package/dist/legacy/promotions/index.d.ts +0 -3
- package/dist/legacy/promotions/index.d.ts.map +0 -1
- package/dist/legacy/promotions/method.d.ts +0 -4
- package/dist/legacy/promotions/method.d.ts.map +0 -1
- package/dist/legacy/promotions/type.d.ts +0 -18
- package/dist/legacy/promotions/type.d.ts.map +0 -1
- package/dist/login/index.d.ts +0 -3
- package/dist/login/index.d.ts.map +0 -1
- package/dist/login/method.d.ts +0 -23
- package/dist/login/method.d.ts.map +0 -1
- package/dist/login/type.d.ts.map +0 -1
- package/dist/plugin.d.ts +0 -25
- package/dist/plugin.d.ts.map +0 -1
- package/dist/promotion/index.d.ts +0 -3
- package/dist/promotion/index.d.ts.map +0 -1
- package/dist/promotion/method.d.ts +0 -13
- package/dist/promotion/method.d.ts.map +0 -1
- package/dist/promotion/type.d.ts.map +0 -1
- package/dist/trialGames/index.d.ts +0 -3
- package/dist/trialGames/index.d.ts.map +0 -1
- package/dist/trialGames/method.d.ts +0 -9
- package/dist/trialGames/method.d.ts.map +0 -1
- package/dist/trialGames/type.d.ts.map +0 -1
- package/dist/util/axiosConfig.d.ts +0 -3
- package/dist/util/axiosConfig.d.ts.map +0 -1
package/dist/50p82u21t54k.umd.js
CHANGED
|
@@ -1,26 +1 @@
|
|
|
1
|
-
(function(T,J){typeof exports=="object"&&typeof module<"u"?J(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],J):(T=typeof globalThis<"u"?globalThis:T||self,J(T["50p82u21t54k"]={},T.axios,T.Vue,T.CryptoJS))})(this,function(T,J,le,k){"use strict";const Tt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultHotGamesResponse(){return ut},get getHotGames(){return It}},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,get DefaultFishGamesResponse(){return ft},get getFishGames(){return Mt}},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultTrialGamesResponse(){return ht},get getTrialGames(){return jt}},Symbol.toStringTag,{value:"Module"})),wt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultPromotionResponse(){return lt},get getPromotion(){return kt}},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,get CmsId(){return ct},get DefaultCmsListResponse(){return pt},get getCmsList(){return qt}},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultHomeResponse(){return Ht},get GameType(){return Gt},get getHome(){return ge}},Symbol.toStringTag,{value:"Module"})),xt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultCurrentLangResponse(){return Ct},get getCurrentLang(){return de}},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLocaleResponse(){return Kt},get getGetLocale(){return ve}},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,get DefaultCsLinkResponse(){return Ut},get getCsLink(){return ye}},Symbol.toStringTag,{value:"Module"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultEGameResponse(){return zt},get getEGame(){return me}},Symbol.toStringTag,{value:"Module"})),Pt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetSettingResponse(){return Jt},get getGetSetting(){return Se}},Symbol.toStringTag,{value:"Module"})),Nt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLoginKeyResponse(){return oe},get getGetLoginKey(){return ue}},Symbol.toStringTag,{value:"Module"})),Vt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLoginKeyResponse(){return Ke},get DefaultLoginResponse(){return fe},get submitLogin(){return Ue}},Symbol.toStringTag,{value:"Module"})),x=J.create({baseURL:"",timeout:5e3,headers:{"Content-Type":"application/json"}});x.interceptors.request.use(r=>r,r=>(console.error("Error request:",r.response),Promise.reject(r))),x.interceptors.response.use(r=>r,r=>{const t={status:null,message:"An error occurred"};return r.response?(t.status=r.response.status,t.message=r.response.data.message||r.response.statusText,console.error("Error response:",JSON.stringify(t)),r.response.status===401?console.error("Unauthorized access - redirecting to login."):r.response.status===404?console.error("Resource not found."):r.response.status>=500&&console.error("Server error. Please try again later.")):r.request?console.error("No response received:",r.request):console.error("Error setting up request:",r.message),Promise.reject(t)});const Lt=le.ref("");function S(){return Lt.value===""?0:1}const ce={home:Rt,hotGames:Tt,fishGames:Et,trialGames:Dt,currentLang:xt,promotion:wt,getLocale:Ot,csLink:At,eGame:Bt,cmsList:_t,getSetting:Pt,login:Vt,getLoginKey:Nt},pe={install(r){r.config.globalProperties.$library=ce}},B=r=>{try{const t=JSON.parse(k.AES.decrypt(r,Lt.value,{format:{stringify:e=>{const n={ct:e.ciphertext.toString(k.enc.Base64)};return e.iv&&(n.iv=e.iv.toString()),e.salt&&(n.s=e.salt.toString()),JSON.stringify(n)},parse:e=>{const n=JSON.parse(e),s=k.lib.CipherParams.create({ciphertext:k.enc.Base64.parse(n.ct)});return n.iv&&(s.iv=k.enc.Hex.parse(n.iv)),n.s&&(s.salt=k.enc.Hex.parse(n.s)),s}}}).toString(k.enc.Utf8));return t!==""?JSON.parse(t):t}catch(t){return console.error(t),""}},ut={status:200,message:"",data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}};async function It(){const r=ut;try{const t=await x.get("/apis/hotGames",{params:{render:S()}});let e;return S()?e=JSON.parse(B(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={currentPage:e.current_page??0,data:e.data.map(n=>({id:n.id??0,name:n.name??"",pfid:n.pfid??0,ppname:n.ppname??"",code:n.code??"",img:n.img??"",progressive:n.progressive??"",ppid:n.ppid??0,notry:n.notry===1,productCode:n.product_code??"",imgSrc:n.imgSrc??"",imgPf:n.imgPf??"",favouriteFlag:n.favourite_flag===1,platformStatusFlag:n.platform_status_flag??"",platformFlagName:n.platform_flag_name??"",platformStatusParams:{eb:n.platform_status_params.eb??!1,fit:n.platform_status_params.fit??!1,fs:n.platform_status_params.fs??!1},gameId:n.game_id??0})),from:e.from??0,lastPage:e.last_page??0,nextPageUrl:e.next_page_url??"",path:e.path??"",perPage:e.per_page??0,prevPageUrl:e.prev_page_url??"",to:e.to??0,total:e.total??0},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const ft={status:200,message:"",data:{hotfish:[],data:[]}};async function Mt(){const r=ft;try{const t=await x.get("/apis/fishGames",{params:{render:S()}});let e;return S()?e=JSON.parse(B(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={hotfish:e.hotfish.map(n=>Ft(n)),data:e.data.map(n=>Ft(n))},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const Ft=r=>({id:r.id??0,name:r.name??"",ppid:r.pp_id??"",img:r.img??"",desc:r.desc??"",ppname:r.pp_name??"",platformCode:r.platform_code??"",code:r.code??"",flag:r.flag??0,gameId:r.game_id??0,imgSrc:r.imgSrc??"",imgPf:r.imgPf??"",favouriteFlag:r.favourite_flag===1,platformStatusFflag:r.platform_status_Fflag??"",platformFlagName:r.platform_flag_name??"",platformStatusParams:{eb:r.platform_status_params.eb??!1,fit:r.platform_status_params.fit??!1,fs:r.platform_status_params.fs??!1}}),ht={status:200,message:"",data:[]};async function jt(){const r=ht;try{const t=await x.get("/apis/trialGames",{params:{render:S()}});let e;return S()?e=JSON.parse(B(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data=e.map(n=>({ppid:n.ppid??0,ppname:n.ppname??"",games:n.games.map(s=>({id:s.id??0,name:s.name??"",img:s.img??"",progressive:s.progressive??"",notry:s.notry===1,imgSrc:s.imgSrc??"",imgPf:s.imgPf??"",favouriteFlag:s.favourite_flag===1,platformStatusFflag:s.platform_status_Fflag??"",platformFlagName:s.platform_flag_name??"",platformStatusParams:{eb:s.platform_status_params.eb??!1,fit:s.platform_status_params.fit??!1,fs:s.platform_status_params.fs??!1},ppname:n.ppname??""}))})),r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const lt={status:200,message:"",data:{objList:[],promoCat:[],resize:0}};async function kt(){const r=lt;try{const t=await x.get("/apis/promotion",{params:{render:S()}});let e;return S()?e=JSON.parse(B(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={objList:e.objList.map(n=>({promoIndex:n.promoindex??0,type:n.type??0,thumb:n.thumb??0,title:n.title??"",displayTime:n.display_time??"",handle:n.handle??"",content:n.content??"",langList:n.lang_list??"",agentList:n.agent_list??"",dateCreated:n.datecreated??"",updateBy:n.updateby??"",lastUpdated:n.lastupdated??"",sequence:n.sequence??0,status:n.status===1,timer:n.timer??"",stime:n.stime??"",etime:n.etime??"",smaid:n.smaid??"",companyIndex:n.companyindex??"",fileName:n.filename??"",version:n.version??"",categoryName:n.category_name??"",barImg:n.bar_img??"",buttonImg:n.button_img??"",promoImg:n.promo_image??"",catId:n.catid??"",imageType:n.image_type??"",image:n.image??"",isLink:n.isLink,latestUpdate:n.latestupdate??""})),promoCat:e.promoCat.map(n=>({catId:n.catid??0,name:n.name??"",barImg:n.bar_img??"",buttonImg:n.button_img??""})),resize:e.resize},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}var ct=(r=>(r[r.AllCategories=0]="AllCategories",r[r.Lotto=2]="Lotto",r[r.LiveCasino=3]="LiveCasino",r[r.SlotGames=4]="SlotGames",r[r.SportsBetting=5]="SportsBetting",r[r.LatestAd=7]="LatestAd",r[r.Promotions=8]="Promotions",r[r.MobileBetting=9]="MobileBetting",r[r.ESports=12]="ESports",r[r.CardGames=13]="CardGames",r[r.FishingGames=14]="FishingGames",r[r.BottomRightAd=16]="BottomRightAd",r[r.LotteryActivity=18]="LotteryActivity",r[r.HomepagePopup=101]="HomepagePopup",r[r.LeftAd=102]="LeftAd",r[r.RightAd=103]="RightAd",r[r.MobileAd=104]="MobileAd",r[r.MobilePopup=105]="MobilePopup",r[r.BottomLeftAd=106]="BottomLeftAd",r[r.InfoGallery=109]="InfoGallery",r[r.AgentBackendAd=114]="AgentBackendAd",r[r.CheckInBanner=123]="CheckInBanner",r[r.PlatformActivities=128]="PlatformActivities",r[r.LotterySlogan=130]="LotterySlogan",r[r.MobileLotterySlogan=131]="MobileLotterySlogan",r[r.PointsMallSlogan=135]="PointsMallSlogan",r))(ct||{});const pt={status:200,message:"",data:{cmsList:[]}};async function qt(r){const t=pt;try{const e=await x.get(`/apis/cmsList?id=${r}`,{params:{render:S()}});let n;return S()?n=JSON.parse(B(e.data)):n=e.data,e.status!=200?(t.status=e.status,t.message="",t):(t.data={cmsList:n.cmslist.map(s=>({name:s.name??"",content:s.content??"",link:s.link??"",linkTarget:s.link_target??"",updatedOn:s.updated_on??"",idCmsCategory:s.id_cms_category??0,contentOrg:s.content_org??"",linkOrg:s.link_org??""}))},t)}catch(e){const n=e;return t.status=n.status||500,t.message=n.message,t}}const Ht={status:200,message:"",data:{game:{SPORT:[],SPECIAL:[],PVP:[],LIVE:[],EVENT:[],ESPORT:[],EGAME:[],BINGO:[]},mobileBanner:[],announcement:[],alertAnnouncement:[],hotGames:ut,fishGames:ft,trialGames:ht,promotion:lt,cmsList:pt}};async function ge(){const r=Ht;try{const[t,e,n,s,i,o]=await Promise.all([x.get("/apis/home",{params:{render:S()}}),It(),Mt(),jt(),kt(),qt(ct.LatestAd)]);let a;return S()?a=JSON.parse(B(t.data)):a=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={game:{SPORT:a.game.SPORT.map(u=>I(u)),SPECIAL:a.game.SPECIAL.map(u=>I(u)),PVP:a.game.PVP.map(u=>I(u)),LIVE:a.game.LIVE.map(u=>I(u)),EVENT:a.game.EVENT.map(u=>I(u)),ESPORT:a.game.ESPORT.map(u=>I(u)),EGAME:a.game.EGAME.map(u=>I(u)),BINGO:a.game.BINGO.map(u=>I(u))},mobileBanner:a.mobileBanner.map(u=>({name:u.name??"",content:u.content??"",link:u.link??"",linkTarget:u.link_target??"",updatedOn:u.updated_on??"",idCmsCategory:u.id_cms_category??0,contentOrg:u.content_org??""})),announcement:a.announcement.map(u=>({announcementIndex:u.announcement_index??0,announcementEnglish:u.announcement_english??"",announcementSimplified:u.announcement_simplified??"",announcementTraditional:u.announcement_traditional??"",announcementMalay:u.announcement_malay??"",announcementStatus:u.announcement_status==="1",announcementShow:u.announcement_show==="1",announcementAlert:u.announcement_alert==="1",announcementUser:u.announcement_user==="1",announcementSequence:u.announcement_sequence??0,announcementCompany:u.announcement_company==="1",companyIndex:u.companyindex??0,announcementLastUpdated:u.announcement_lastupdated??"",announcementDateCreated:u.announcement_datecreated??"",announcementSmaid:u.announcement_smaid??"",annTimer:u.ann_timer??"",annStart:u.ann_start??"",annEnd:u.ann_end??"",grp:u.grp??"",time:u.time??""})),alertAnnouncement:a.alert_announcement.map(u=>({announcementDateCreated:u.announcement_datecreated??"",announcementSimplified:u.announcement_simplified??""})),hotGames:e,fishGames:n,trialGames:s,promotion:i,cmsList:o},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const I=r=>({id:r.id??0,idPlatformMaster:r.id_PlatformMaster??0,idProductMaster:r.id_ProductMaster??0,name:r.name??"",shortName:r.shortName??"",img:r.img??"",mobileUrl:r.mobileUrl??"",url:r.url??"",desc:r.desc??"",seq:r.seq??0,flag:r.flag??0,status:r.status??"",createdBy:r.created_by??0,createdOn:r.created_on??"",categoryID:r.categoryid??0,com:r.com??"",cur:r.cur??"",pt:r.pt??"",ppName:r.pp_name??"",ppImage:r.pp_image??"",platformCode:r.platform_code??"",platformName:r.platform_name??"",classIcon:r.class_icon??"",productCode:r.product_code??"",productName:r.product_name??"",gameID:r.game_id??0,fAuth:r.fAuth??!1,platformStatusParams:{eb:r.platform_status_params.eb??!1,fit:r.platform_status_params.fit??!1,fs:r.platform_status_params.fs??!1},loginFlag:r.login_flag==="1",link:r.link??"",favouriteFlag:r.favourite_flag===1,platformStatusFlag:r.platform_status_flag??"",platformFlagName:r.platform_flag_name??"",homeLogo:r.home_logo??"",imgPf:r.imgPf??"",imgSport:r.imgSport??"",imgTemplate:r.imgTemplate??""});var Gt=(r=>(r.SPORT="SPORT",r.SPECIAL="SPECIAL",r.PVP="PVP",r.LIVE="LIVE",r.EVENT="EVENT",r.ESPORT="ESPORT",r.EGAME="EGAME",r.BINGO="BINGO",r))(Gt||{});const Ct={status:200,message:"",data:""};async function de(){const r=Ct;try{const t=await x.get("/apis/currentLang",{params:{render:S()}});let e;return S()?e=JSON.parse(B(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data=e,r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const Kt={status:200,message:"",data:[]};async function ve(){const r=Kt;try{const t=await x.get("/apis/getLocale",{params:{render:S()}});let e;return S()?e=JSON.parse(B(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data=[{code:"en",label:e.en.label??""},{code:"zh",label:e.zh.label??""},{code:"ms",label:e.ms.label??""}],r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const Ut={status:200,message:"",data:{liveChat:""}};async function ye(){const r=Ut;try{const t=await x.get("/apis/cslink",{params:{render:S()}});let e;return S()?e=JSON.parse(B(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={liveChat:e.livechat??""},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const zt={status:200,message:"",data:[]};async function me(r){const t=zt;try{const e=await x.get(`/apis/egame/json/${r}`,{params:{render:S()}});let n;return S()?n=JSON.parse(B(e.data)):n=e.data,e.status!=200?(t.status=e.status,t.message="",t):(t.data=n.map(s=>({gameId:s.game_id??"",imgSrc:s.imgSrc??"",imgPf:s.imgPf??"",name:s.name??"",favouriteFlag:s.favourite_flag===1,platformStatusFflag:s.platform_status_Fflag??"",platformFlagName:s.platform_flag_name??"",platformStatusParams:{eb:s.platform_status_params.eb??!1,fit:s.platform_status_params.fit??!1,fs:s.platform_status_params.fs??!1},progressive:s.progressive??"",gameCategory:s.game_category??"",ppid:s.pp_id??""})),t)}catch(e){const n=e;return t.status=n.status||500,t.message=n.message,t}}const Jt={status:200,message:"",data:{csrf:"",getCaptcha:"",verificationBeforeLogin:!1,publicKey:"",concantenatedKey:""}};async function Se(r){const t=Jt;try{const e=await x.get("/apis/getSetting",{params:{render:S(),setting:r}});let n;return S()?n=JSON.parse(B(e.data)):n=e.data,e.status!=200?(t.status=e.status,t.message="",t):(t.data={csrf:n.csrf??"",getCaptcha:n.data.CAPTCHA??"",verificationBeforeLogin:n.data["slide-verification"]==="1",publicKey:n.data.encryptkey?n.data.encryptkey.pub.replace(/-----BEGIN PUBLIC KEY-----|-----END PUBLIC KEY-----|\r|\n|=#/g,""):"",concantenatedKey:n.data.encryptkey?Object.keys(n.data.encryptkey.pubarr).join("+"):""},t)}catch(e){const n=e;return t.status=n.status||500,t.message=n.message,t}}var be="0123456789abcdefghijklmnopqrstuvwxyz";function L(r){return be.charAt(r)}function Te(r,t){return r&t}function Q(r,t){return r|t}function Zt(r,t){return r^t}function $t(r,t){return r&~t}function Ee(r){if(r==0)return-1;var t=0;return r&65535||(r>>=16,t+=16),r&255||(r>>=8,t+=8),r&15||(r>>=4,t+=4),r&3||(r>>=2,t+=2),r&1||++t,t}function De(r){for(var t=0;r!=0;)r&=r-1,++t;return t}var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yt="=";function W(r){var t,e,n="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),n+=G.charAt(e>>6)+G.charAt(e&63);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),n+=G.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),n+=G.charAt(e>>2)+G.charAt((e&3)<<4));(n.length&3)>0;)n+=Yt;return n}function Xt(r){var t="",e,n=0,s=0;for(e=0;e<r.length&&r.charAt(e)!=Yt;++e){var i=G.indexOf(r.charAt(e));i<0||(n==0?(t+=L(i>>2),s=i&3,n=1):n==1?(t+=L(s<<2|i>>4),s=i&15,n=2):n==2?(t+=L(s),t+=L(i>>2),s=i&3,n=3):(t+=L(s<<2|i>>4),t+=L(i&15),n=0))}return n==1&&(t+=L(s<<2)),t}var C,we={decode:function(r){var t;if(C===void 0){var e="0123456789ABCDEF",n=` \f
|
|
2
|
-
\r \u2028\u2029`;for(C={},t=0;t<16;++t)C[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)C[e.charAt(t)]=t;for(t=0;t<n.length;++t)C[n.charAt(t)]=-1}var s=[],i=0,o=0;for(t=0;t<r.length;++t){var a=r.charAt(t);if(a=="=")break;if(a=C[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++o>=2?(s[s.length]=i,i=0,o=0):i<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return s}},q,gt={decode:function(r){var t;if(q===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
3
|
-
\r \u2028\u2029`;for(q=Object.create(null),t=0;t<64;++t)q[e.charAt(t)]=t;for(q["-"]=62,q._=63,t=0;t<n.length;++t)q[n.charAt(t)]=-1}var s=[],i=0,o=0;for(t=0;t<r.length;++t){var a=r.charAt(t);if(a=="=")break;if(a=q[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++o>=4?(s[s.length]=i>>16,s[s.length]=i>>8&255,s[s.length]=i&255,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:s[s.length]=i>>10;break;case 3:s[s.length]=i>>16,s[s.length]=i>>8&255;break}return s},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var t=gt.re.exec(r);if(t)if(t[1])r=t[1];else if(t[2])r=t[2];else throw new Error("RegExp out of sync");return gt.decode(r)}},K=1e13,Z=function(){function r(t){this.buf=[+t||0]}return r.prototype.mulAdd=function(t,e){var n=this.buf,s=n.length,i,o;for(i=0;i<s;++i)o=n[i]*t+e,o<K?e=0:(e=0|o/K,o-=e*K),n[i]=o;e>0&&(n[i]=e)},r.prototype.sub=function(t){var e=this.buf,n=e.length,s,i;for(s=0;s<n;++s)i=e[s]-t,i<0?(i+=K,t=1):t=0,e[s]=i;for(;e[e.length-1]===0;)e.pop()},r.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),s=e.length-2;s>=0;--s)n+=(K+e[s]).toString().substring(1);return n},r.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*K+t[n];return e},r.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},r}(),Qt="…",_e=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Re=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function U(r,t){return r.length>t&&(r=r.substring(0,t)+Qt),r}var dt=function(){function r(t,e){this.hexDigits="0123456789ABCDEF",t instanceof r?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return r.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},r.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},r.prototype.hexDump=function(t,e,n){for(var s="",i=t;i<e;++i)if(s+=this.hexByte(this.get(i)),n!==!0)switch(i&15){case 7:s+=" ";break;case 15:s+=`
|
|
4
|
-
`;break;default:s+=" "}return s},r.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var s=this.get(n);if(s<32||s>176)return!1}return!0},r.prototype.parseStringISO=function(t,e){for(var n="",s=t;s<e;++s)n+=String.fromCharCode(this.get(s));return n},r.prototype.parseStringUTF=function(t,e){for(var n="",s=t;s<e;){var i=this.get(s++);i<128?n+=String.fromCharCode(i):i>191&&i<224?n+=String.fromCharCode((i&31)<<6|this.get(s++)&63):n+=String.fromCharCode((i&15)<<12|(this.get(s++)&63)<<6|this.get(s++)&63)}return n},r.prototype.parseStringBMP=function(t,e){for(var n="",s,i,o=t;o<e;)s=this.get(o++),i=this.get(o++),n+=String.fromCharCode(s<<8|i);return n},r.prototype.parseTime=function(t,e,n){var s=this.parseStringISO(t,e),i=(n?_e:Re).exec(s);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),s=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(s+=":"+i[5],i[6]&&(s+=":"+i[6],i[7]&&(s+="."+i[7]))),i[8]&&(s+=" UTC",i[8]!="Z"&&(s+=i[8],i[9]&&(s+=":"+i[9]))),s):"Unrecognized time: "+s},r.prototype.parseInteger=function(t,e){for(var n=this.get(t),s=n>127,i=s?255:0,o,a="";n==i&&++t<e;)n=this.get(t);if(o=e-t,o===0)return s?-1:0;if(o>4){for(a=n,o<<=3;!((+a^i)&128);)a=+a<<1,--o;a="("+o+` bit)
|
|
5
|
-
`}s&&(n=n-256);for(var u=new Z(n),h=t+1;h<e;++h)u.mulAdd(256,this.get(h));return a+u.toString()},r.prototype.parseBitString=function(t,e,n){for(var s=this.get(t),i=(e-t-1<<3)-s,o="("+i+` bit)
|
|
6
|
-
`,a="",u=t+1;u<e;++u){for(var h=this.get(u),l=u==e-1?s:0,p=7;p>=l;--p)a+=h>>p&1?"1":"0";if(a.length>n)return o+U(a,n)}return o+a},r.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return U(this.parseStringISO(t,e),n);var s=e-t,i="("+s+` byte)
|
|
7
|
-
`;n/=2,s>n&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return s>n&&(i+=Qt),i},r.prototype.parseOID=function(t,e,n){for(var s="",i=new Z,o=0,a=t;a<e;++a){var u=this.get(a);if(i.mulAdd(128,u&127),o+=7,!(u&128)){if(s==="")if(i=i.simplify(),i instanceof Z)i.sub(80),s="2."+i.toString();else{var h=i<80?i<40?0:1:2;s=h+"."+(i-h*40)}else s+="."+i.toString();if(s.length>n)return U(s,n);i=new Z,o=0}}return o>0&&(s+=".incomplete"),s},r}(),xe=function(){function r(t,e,n,s,i){if(!(s instanceof Wt))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=s,this.sub=i}return r.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},r.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return U(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return U(this.stream.parseStringISO(e,e+n),t);case 30:return U(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,this.tag.tagNumber==23)}return null},r.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},r.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(e+=" (encapsulates)"),e+=`
|
|
8
|
-
`,this.sub!==null){t+=" ";for(var n=0,s=this.sub.length;n<s;++n)e+=this.sub[n].toPrettyString(t)}return e},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(t){var e=t.get(),n=e&127;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;e=0;for(var s=0;s<n;++s)e=e*256+t.get();return e},r.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,n=this.length*2;return t.substr(e,n)},r.decode=function(t){var e;t instanceof dt?e=t:e=new dt(t,0);var n=new dt(e),s=new Wt(e),i=r.decodeLength(e),o=e.pos,a=o-n.pos,u=null,h=function(){var p=[];if(i!==null){for(var y=o+i;e.pos<y;)p[p.length]=r.decode(e);if(e.pos!=y)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var d=r.decode(e);if(d.tag.isEOC())break;p[p.length]=d}i=o-e.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return p};if(s.tagConstructed)u=h();else if(s.isUniversal()&&(s.tagNumber==3||s.tagNumber==4))try{if(s.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=h();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{u=null}if(u===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);e.pos=o+Math.abs(i)}return new r(n,a,i,s,u)},r}(),Wt=function(){function r(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var n=new Z;do e=t.get(),n.mulAdd(128,e&127);while(e&128);this.tagNumber=n.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r}(),M,Oe=0xdeadbeefcafe,te=(Oe&16777215)==15715070,O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ae=(1<<26)/O[O.length-1],c=function(){function r(t,e,n){t!=null&&(typeof t=="number"?this.fromNumber(t,e,n):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var n=(1<<e)-1,s,i=!1,o="",a=this.t,u=this.DB-a*this.DB%e;if(a-- >0)for(u<this.DB&&(s=this[a]>>u)>0&&(i=!0,o=L(s));a>=0;)u<e?(s=(this[a]&(1<<u)-1)<<e-u,s|=this[--a]>>(u+=this.DB-e)):(s=this[a]>>(u-=e)&n,u<=0&&(u+=this.DB,--a)),s>0&&(i=!0),i&&(o+=L(s));return i?o:"0"},r.prototype.negate=function(){var t=g();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+et(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=g();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var n;return t<256||e.isEven()?n=new ee(e):n=new re(e),this.exp(t,n)},r.prototype.clone=function(){var t=g();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n=this.DB-t*this.DB%8,s,i=0;if(t-- >0)for(n<this.DB&&(s=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=s|this.s<<this.DB-n);t>=0;)n<8?(s=(this[t]&(1<<n)-1)<<8-n,s|=this[--t]>>(n+=this.DB-8)):(s=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),s&128&&(s|=-256),i==0&&(this.s&128)!=(s&128)&&++i,(i>0||s!=this.s)&&(e[i++]=s);return e},r.prototype.equals=function(t){return this.compareTo(t)==0},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=g();return this.bitwiseTo(t,Te,e),e},r.prototype.or=function(t){var e=g();return this.bitwiseTo(t,Q,e),e},r.prototype.xor=function(t){var e=g();return this.bitwiseTo(t,Zt,e),e},r.prototype.andNot=function(t){var e=g();return this.bitwiseTo(t,$t,e),e},r.prototype.not=function(){for(var t=g(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=g();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=g();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+Ee(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=De(this[n]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},r.prototype.setBit=function(t){return this.changeBit(t,Q)},r.prototype.clearBit=function(t){return this.changeBit(t,$t)},r.prototype.flipBit=function(t){return this.changeBit(t,Zt)},r.prototype.add=function(t){var e=g();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=g();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=g();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=g();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=g();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=g(),n=g();return this.divRemTo(t,e,n),[e,n]},r.prototype.modPow=function(t,e){var n=t.bitLength(),s,i=F(1),o;if(n<=0)return i;n<18?s=1:n<48?s=3:n<144?s=4:n<768?s=5:s=6,n<8?o=new ee(e):e.isEven()?o=new Pe(e):o=new re(e);var a=[],u=3,h=s-1,l=(1<<s)-1;if(a[1]=o.convert(this),s>1){var p=g();for(o.sqrTo(a[1],p);u<=l;)a[u]=g(),o.mulTo(p,a[u-2],a[u]),u+=2}var y=t.t-1,d,m=!0,b=g(),_;for(n=et(t[y])-1;y>=0;){for(n>=h?d=t[y]>>n-h&l:(d=(t[y]&(1<<n+1)-1)<<h-n,y>0&&(d|=t[y-1]>>this.DB+n-h)),u=s;!(d&1);)d>>=1,--u;if((n-=u)<0&&(n+=this.DB,--y),m)a[d].copyTo(i),m=!1;else{for(;u>1;)o.sqrTo(i,b),o.sqrTo(b,i),u-=2;u>0?o.sqrTo(i,b):(_=i,i=b,b=_),o.mulTo(b,a[d],i)}for(;y>=0&&!(t[y]&1<<n);)o.sqrTo(i,b),_=i,i=b,b=_,--n<0&&(n=this.DB-1,--y)}return o.revert(i)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return r.ZERO;for(var n=t.clone(),s=this.clone(),i=F(1),o=F(0),a=F(0),u=F(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),e?((!i.isEven()||!o.isEven())&&(i.addTo(this,i),o.subTo(t,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;s.isEven();)s.rShiftTo(1,s),e?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(s)>=0?(n.subTo(s,n),e&&i.subTo(a,i),o.subTo(u,o)):(s.subTo(n,s),e&&a.subTo(i,a),u.subTo(o,u))}if(s.compareTo(r.ONE)!=0)return r.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},r.prototype.pow=function(t){return this.exp(t,new Be)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var s=e;e=n,n=s}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},r.prototype.isProbablePrime=function(t){var e,n=this.abs();if(n.t==1&&n[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(n[0]==O[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<O.length;){for(var s=O[e],i=e+1;i<O.length&&s<Ae;)s*=O[i++];for(s=n.modInt(s);e<i;)if(s%O[e++]==0)return!1}return n.millerRabin(t)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(e==16)n=4;else if(e==8)n=3;else if(e==256)n=8;else if(e==2)n=1;else if(e==32)n=5;else if(e==4)n=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var s=t.length,i=!1,o=0;--s>=0;){var a=n==8?+t[s]&255:se(t,s);if(a<0){t.charAt(s)=="-"&&(i=!0);continue}i=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,s=this.DB-n,i=(1<<s)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,u=this.t-1;u>=0;--u)e[u+o+1]=this[u]>>s|a,a=(this[u]&i)<<n;for(var u=o-1;u>=0;--u)e[u]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}var s=t%this.DB,i=this.DB-s,o=(1<<s)-1;e[0]=this[n]>>s;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>s;s>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()},r.prototype.subTo=function(t,e){for(var n=0,s=0,i=Math.min(t.t,this.t);n<i;)s+=this[n]-t[n],e[n++]=s&this.DM,s>>=this.DB;if(t.t<this.t){for(s-=t.s;n<this.t;)s+=this[n],e[n++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;n<t.t;)s-=t[n],e[n++]=s&this.DM,s>>=this.DB;s-=t.s}e.s=s<0?-1:0,s<-1?e[n++]=this.DV+s:s>0&&(e[n++]=s),e.t=n,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),s=t.abs(),i=n.t;for(e.t=i+s.t;--i>=0;)e[i]=0;for(i=0;i<s.t;++i)e[i+n.t]=n.am(0,s[i],e,i,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var s=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,s,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,n){var s=t.abs();if(!(s.t<=0)){var i=this.abs();if(i.t<s.t){e!=null&&e.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=g());var o=g(),a=this.s,u=t.s,h=this.DB-et(s[s.t-1]);h>0?(s.lShiftTo(h,o),i.lShiftTo(h,n)):(s.copyTo(o),i.copyTo(n));var l=o.t,p=o[l-1];if(p!=0){var y=p*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),d=this.FV/y,m=(1<<this.F1)/y,b=1<<this.F2,_=n.t,w=_-l,A=e??g();for(o.dlShiftTo(w,A),n.compareTo(A)>=0&&(n[n.t++]=1,n.subTo(A,n)),r.ONE.dlShiftTo(l,A),A.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--w>=0;){var R=n[--_]==p?this.DM:Math.floor(n[_]*d+(n[_-1]+b)*m);if((n[_]+=o.am(0,R,n,w,0,l))<R)for(o.dlShiftTo(w,A),n.subTo(A,n);n[_]<--R;)n.subTo(A,n)}e!=null&&(n.drShiftTo(l,e),a!=u&&r.ZERO.subTo(e,e)),n.t=l,n.clamp(),h>0&&n.rShiftTo(h,n),a<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},r.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var n=g(),s=g(),i=e.convert(this),o=et(t)-1;for(i.copyTo(n);--o>=0;)if(e.sqrTo(n,s),(t&1<<o)>0)e.mulTo(s,i,n);else{var a=n;n=s,s=a}return e.revert(n)},r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),s=F(n),i=g(),o=g(),a="";for(this.divRemTo(s,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(s,i,o);return o.intValue().toString(t)+a},r.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var n=this.chunkSize(e),s=Math.pow(e,n),i=!1,o=0,a=0,u=0;u<t.length;++u){var h=se(t,u);if(h<0){t.charAt(u)=="-"&&this.signum()==0&&(i=!0);continue}a=e*a+h,++o>=n&&(this.dMultiply(s),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(a,0)),i&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var s=[],i=t&7;s.length=(t>>3)+1,e.nextBytes(s),i>0?s[0]&=(1<<i)-1:s[0]=0,this.fromString(s,256)}},r.prototype.bitwiseTo=function(t,e,n){var s,i,o=Math.min(t.t,this.t);for(s=0;s<o;++s)n[s]=e(this[s],t[s]);if(t.t<this.t){for(i=t.s&this.DM,s=o;s<this.t;++s)n[s]=e(this[s],i);n.t=this.t}else{for(i=this.s&this.DM,s=o;s<t.t;++s)n[s]=e(i,t[s]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var n=0,s=0,i=Math.min(t.t,this.t);n<i;)s+=this[n]+t[n],e[n++]=s&this.DM,s>>=this.DB;if(t.t<this.t){for(s+=t.s;n<this.t;)s+=this[n],e[n++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;n<t.t;)s+=t[n],e[n++]=s&this.DM,s>>=this.DB;s+=t.s}e.s=s<0?-1:0,s>0?e[n++]=s:s<-1&&(e[n++]=this.DV+s),e.t=n,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,n){var s=Math.min(this.t+t.t,e);for(n.s=0,n.t=s;s>0;)n[--s]=0;for(var i=n.t-this.t;s<i;++s)n[s+this.t]=this.am(0,t[s],n,s,0,this.t);for(var i=Math.min(t.t,e);s<i;++s)this.am(0,t[s],n,s,0,e-s);n.clamp()},r.prototype.multiplyUpperTo=function(t,e,n){--e;var s=n.t=this.t+t.t-e;for(n.s=0;--s>=0;)n[s]=0;for(s=Math.max(e-this.t,0);s<t.t;++s)n[this.t+s-e]=this.am(e-s,t[s],n,0,0,this.t+s-e);n.clamp(),n.drShiftTo(1,n)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(e==0)n=this[0]%t;else for(var s=this.t-1;s>=0;--s)n=(e*n+this[s])%t;return n},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var s=e.shiftRight(n);t=t+1>>1,t>O.length&&(t=O.length);for(var i=g(),o=0;o<t;++o){i.fromInt(O[Math.floor(Math.random()*O.length)]);var a=i.modPow(s,this);if(a.compareTo(r.ONE)!=0&&a.compareTo(e)!=0){for(var u=1;u++<n&&a.compareTo(e)!=0;)if(a=a.modPowInt(2,this),a.compareTo(r.ONE)==0)return!1;if(a.compareTo(e)!=0)return!1}}return!0},r.prototype.square=function(){var t=g();return this.squareTo(t),t},r.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),s=t.s<0?t.negate():t.clone();if(n.compareTo(s)<0){var i=n;n=s,s=i}var o=n.getLowestSetBit(),a=s.getLowestSetBit();if(a<0){e(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),s.rShiftTo(a,s));var u=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=s.getLowestSetBit())>0&&s.rShiftTo(o,s),n.compareTo(s)>=0?(n.subTo(s,n),n.rShiftTo(1,n)):(s.subTo(n,s),s.rShiftTo(1,s)),n.signum()>0?setTimeout(u,0):(a>0&&s.lShiftTo(a,s),setTimeout(function(){e(s)},0))};setTimeout(u,10)},r.prototype.fromNumberAsync=function(t,e,n,s){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);var i=this,o=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(r.ONE.shiftLeft(t-1),i),i.isProbablePrime(e)?setTimeout(function(){s()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],u=t&7;a.length=(t>>3)+1,e.nextBytes(a),u>0?a[0]&=(1<<u)-1:a[0]=0,this.fromString(a,256)}},r}(),Be=function(){function r(){}return r.prototype.convert=function(t){return t},r.prototype.revert=function(t){return t},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},r.prototype.sqrTo=function(t,e){t.squareTo(e)},r}(),ee=function(){function r(t){this.m=t}return r.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),re=function(){function r(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return r.prototype.convert=function(t){var e=g();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(c.ZERO)>0&&this.m.subTo(e,e),e},r.prototype.revert=function(t){var e=g();return t.copyTo(e),this.reduce(e),e},r.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=t[e]&32767,s=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,s,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),Pe=function(){function r(t){this.m=t,this.r2=g(),this.q3=g(),c.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return r.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=g();return t.copyTo(e),this.reduce(e),e},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}();function g(){return new c(null)}function E(r,t){return new c(r,t)}var ne=typeof navigator<"u";ne&&te&&navigator.appName=="Microsoft Internet Explorer"?(c.prototype.am=function(t,e,n,s,i,o){for(var a=e&32767,u=e>>15;--o>=0;){var h=this[t]&32767,l=this[t++]>>15,p=u*h+l*a;h=a*h+((p&32767)<<15)+n[s]+(i&1073741823),i=(h>>>30)+(p>>>15)+u*l+(i>>>30),n[s++]=h&1073741823}return i},M=30):ne&&te&&navigator.appName!="Netscape"?(c.prototype.am=function(t,e,n,s,i,o){for(;--o>=0;){var a=e*this[t++]+n[s]+i;i=Math.floor(a/67108864),n[s++]=a&67108863}return i},M=26):(c.prototype.am=function(t,e,n,s,i,o){for(var a=e&16383,u=e>>14;--o>=0;){var h=this[t]&16383,l=this[t++]>>14,p=u*h+l*a;h=a*h+((p&16383)<<14)+n[s]+i,i=(h>>28)+(p>>14)+u*l,n[s++]=h&268435455}return i},M=28),c.prototype.DB=M,c.prototype.DM=(1<<M)-1,c.prototype.DV=1<<M;var vt=52;c.prototype.FV=Math.pow(2,vt),c.prototype.F1=vt-M,c.prototype.F2=2*M-vt;var tt=[],z,P;for(z=48,P=0;P<=9;++P)tt[z++]=P;for(z=97,P=10;P<36;++P)tt[z++]=P;for(z=65,P=10;P<36;++P)tt[z++]=P;function se(r,t){var e=tt[r.charCodeAt(t)];return e??-1}function F(r){var t=g();return t.fromInt(r),t}function et(r){var t=1,e;return(e=r>>>16)!=0&&(r=e,t+=16),(e=r>>8)!=0&&(r=e,t+=8),(e=r>>4)!=0&&(r=e,t+=4),(e=r>>2)!=0&&(r=e,t+=2),(e=r>>1)!=0&&(r=e,t+=1),t}c.ZERO=F(0),c.ONE=F(1);var Ne=function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(t){var e,n,s;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,s=this.S[e],this.S[e]=this.S[n],this.S[n]=s;this.i=0,this.j=0},r.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},r}();function Ve(){return new Ne}var ie=256,rt,j=null,N;if(j==null){j=[],N=0;var nt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var yt=new Uint32Array(256);for(window.crypto.getRandomValues(yt),nt=0;nt<yt.length;++nt)j[N++]=yt[nt]&255}var st=0,it=function(r){if(st=st||0,st>=256||N>=ie){window.removeEventListener?window.removeEventListener("mousemove",it,!1):window.detachEvent&&window.detachEvent("onmousemove",it);return}try{var t=r.x+r.y;j[N++]=t&255,st+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",it,!1):window.attachEvent&&window.attachEvent("onmousemove",it))}function Le(){if(rt==null){for(rt=Ve();N<ie;){var r=Math.floor(65536*Math.random());j[N++]=r&255}for(rt.init(j),N=0;N<j.length;++N)j[N]=0;N=0}return rt.next()}var mt=function(){function r(){}return r.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Le()},r}();function Ie(r,t){if(t<r.length+22)return console.error("Message too long for RSA"),null;for(var e=t-r.length-6,n="",s=0;s<e;s+=2)n+="ff";var i="0001"+n+"00"+r;return E(i,16)}function Me(r,t){if(t<r.length+11)return console.error("Message too long for RSA"),null;for(var e=[],n=r.length-1;n>=0&&t>0;){var s=r.charCodeAt(n--);s<128?e[--t]=s:s>127&&s<2048?(e[--t]=s&63|128,e[--t]=s>>6|192):(e[--t]=s&63|128,e[--t]=s>>6&63|128,e[--t]=s>>12|224)}e[--t]=0;for(var i=new mt,o=[];t>2;){for(o[0]=0;o[0]==0;)i.nextBytes(o);e[--t]=o[0]}return e[--t]=2,e[--t]=0,new c(e)}var Fe=function(){function r(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return r.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},r.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=E(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=Me(t,e);if(n==null)return null;var s=this.doPublic(n);if(s==null)return null;for(var i=s.toString(16),o=i.length,a=0;a<e*2-o;a++)i="0"+i;return i},r.prototype.setPrivate=function(t,e,n){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=E(t,16),this.e=parseInt(e,16),this.d=E(n,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(t,e,n,s,i,o,a,u){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=E(t,16),this.e=parseInt(e,16),this.d=E(n,16),this.p=E(s,16),this.q=E(i,16),this.dmp1=E(o,16),this.dmq1=E(a,16),this.coeff=E(u,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(t,e){var n=new mt,s=t>>1;this.e=parseInt(e,16);for(var i=new c(e,16);;){for(;this.p=new c(t-s,1,n),!(this.p.subtract(c.ONE).gcd(i).compareTo(c.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new c(s,1,n),!(this.q.subtract(c.ONE).gcd(i).compareTo(c.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(c.ONE),u=this.q.subtract(c.ONE),h=a.multiply(u);if(h.gcd(i).compareTo(c.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(h),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(t){var e=E(t,16),n=this.doPrivate(e);return n==null?null:je(n,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(t,e,n){var s=new mt,i=t>>1;this.e=parseInt(e,16);var o=new c(e,16),a=this,u=function(){var h=function(){if(a.p.compareTo(a.q)<=0){var y=a.p;a.p=a.q,a.q=y}var d=a.p.subtract(c.ONE),m=a.q.subtract(c.ONE),b=d.multiply(m);b.gcd(o).compareTo(c.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(b),a.dmp1=a.d.mod(d),a.dmq1=a.d.mod(m),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){a.q=g(),a.q.fromNumberAsync(i,1,s,function(){a.q.subtract(c.ONE).gcda(o,function(y){y.compareTo(c.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(h,0):setTimeout(l,0)})})},p=function(){a.p=g(),a.p.fromNumberAsync(t-i,1,s,function(){a.p.subtract(c.ONE).gcda(o,function(y){y.compareTo(c.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(u,0)},r.prototype.sign=function(t,e,n){var s=ke(n),i=s+e(t).toString(),o=Ie(i,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var u=a.toString(16);return u.length&1?"0"+u:u},r.prototype.verify=function(t,e,n){var s=E(e,16),i=this.doPublic(s);if(i==null)return null;var o=i.toString(16).replace(/^1f+00/,""),a=qe(o);return a==n(t).toString()},r}();function je(r,t){for(var e=r.toByteArray(),n=0;n<e.length&&e[n]==0;)++n;if(e.length-n!=t-1||e[n]!=2)return null;for(++n;e[n]!=0;)if(++n>=e.length)return null;for(var s="";++n<e.length;){var i=e[n]&255;i<128?s+=String.fromCharCode(i):i>191&&i<224?(s+=String.fromCharCode((i&31)<<6|e[n+1]&63),++n):(s+=String.fromCharCode((i&15)<<12|(e[n+1]&63)<<6|e[n+2]&63),n+=2)}return s}var at={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ke(r){return at[r]||""}function qe(r){for(var t in at)if(at.hasOwnProperty(t)){var e=at[t],n=e.length;if(r.substr(0,n)==e)return r.substr(n)}return r}/*!
|
|
9
|
-
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
10
|
-
Code licensed under the BSD License:
|
|
11
|
-
http://developer.yahoo.com/yui/license.html
|
|
12
|
-
version: 2.9.0
|
|
13
|
-
*/var D={};D.lang={extend:function(r,t,e){if(!t||!r)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r,r.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),e){var s;for(s in e)r.prototype[s]=e[s];var i=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(a,u){for(s=0;s<o.length;s=s+1){var h=o[s],l=u[h];typeof l=="function"&&l!=Object.prototype[h]&&(a[h]=l)}})}catch{}i(r.prototype,e)}}};/**
|
|
14
|
-
* @fileOverview
|
|
15
|
-
* @name asn1-1.0.js
|
|
16
|
-
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
17
|
-
* @version asn1 1.0.13 (2017-Jun-02)
|
|
18
|
-
* @since jsrsasign 2.1
|
|
19
|
-
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
20
|
-
*/var f={};(typeof f.asn1>"u"||!f.asn1)&&(f.asn1={}),f.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var t=r.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(r){var t=r.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substr(1),n=e.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var s="",i=0;i<n;i++)s+="f";var o=new c(s,16),a=o.xor(r).add(c.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(r,t){return hextopem(r,t)},this.newObject=function(r){var t=f,e=t.asn1,n=e.DERBoolean,s=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,u=e.DERObjectIdentifier,h=e.DEREnumerated,l=e.DERUTF8String,p=e.DERNumericString,y=e.DERPrintableString,d=e.DERTeletexString,m=e.DERIA5String,b=e.DERUTCTime,_=e.DERGeneralizedTime,w=e.DERSequence,A=e.DERSet,R=e.DERTaggedObject,$=e.ASN1Util.newObject,he=Object.keys(r);if(he.length!=1)throw"key of param shall be only one.";var v=he[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new n(r[v]);if(v=="int")return new s(r[v]);if(v=="bitstr")return new i(r[v]);if(v=="octstr")return new o(r[v]);if(v=="null")return new a(r[v]);if(v=="oid")return new u(r[v]);if(v=="enum")return new h(r[v]);if(v=="utf8str")return new l(r[v]);if(v=="numstr")return new p(r[v]);if(v=="prnstr")return new y(r[v]);if(v=="telstr")return new d(r[v]);if(v=="ia5str")return new m(r[v]);if(v=="utctime")return new b(r[v]);if(v=="gentime")return new _(r[v]);if(v=="seq"){for(var Y=r[v],X=[],H=0;H<Y.length;H++){var bt=$(Y[H]);X.push(bt)}return new w({array:X})}if(v=="set"){for(var Y=r[v],X=[],H=0;H<Y.length;H++){var bt=$(Y[H]);X.push(bt)}return new A({array:X})}if(v=="tag"){var V=r[v];if(Object.prototype.toString.call(V)==="[object Array]"&&V.length==3){var ze=$(V[2]);return new R({tag:V[0],explicit:V[1],obj:ze})}else{var ot={};if(V.explicit!==void 0&&(ot.explicit=V.explicit),V.tag!==void 0&&(ot.tag=V.tag),V.obj===void 0)throw"obj shall be specified for 'tag'.";return ot.obj=$(V.obj),new R(ot)}}},this.jsonToASN1HEX=function(r){var t=this.newObject(r);return t.getEncodedHex()}},f.asn1.ASN1Util.oidHexToInt=function(r){for(var s="",t=parseInt(r.substr(0,2),16),e=Math.floor(t/40),n=t%40,s=e+"."+n,i="",o=2;o<r.length;o+=2){var a=parseInt(r.substr(o,2),16),u=("00000000"+a.toString(2)).slice(-8);if(i=i+u.substr(1,7),u.substr(0,1)=="0"){var h=new c(i,2);s=s+"."+h.toString(10),i=""}}return s},f.asn1.ASN1Util.oidIntToHex=function(r){var t=function(a){var u=a.toString(16);return u.length==1&&(u="0"+u),u},e=function(a){var u="",h=new c(a,10),l=h.toString(2),p=7-l.length%7;p==7&&(p=0);for(var y="",d=0;d<p;d++)y+="0";l=y+l;for(var d=0;d<l.length-1;d+=7){var m=l.substr(d,7);d!=l.length-7&&(m="1"+m),u+=t(parseInt(m,2))}return u};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var n="",s=r.split("."),i=parseInt(s[0])*40+parseInt(s[1]);n+=t(i),s.splice(0,2);for(var o=0;o<s.length;o++)n+=e(s[o]);return n},f.asn1.ASN1Object=function(){var r="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+r.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var s=128+n;return s.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},f.asn1.DERAbstractString=function(r){f.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"?this.setString(r):typeof r.str<"u"?this.setString(r.str):typeof r.hex<"u"&&this.setStringHex(r.hex))},D.lang.extend(f.asn1.DERAbstractString,f.asn1.ASN1Object),f.asn1.DERAbstractTime=function(r){f.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,n){var s=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());e=="utc"&&(o=o.substr(2,2));var a=s(String(i.getMonth()+1),2),u=s(String(i.getDate()),2),h=s(String(i.getHours()),2),l=s(String(i.getMinutes()),2),p=s(String(i.getSeconds()),2),y=o+a+u+h+l+p;if(n===!0){var d=i.getMilliseconds();if(d!=0){var m=s(String(d),3);m=m.replace(/[0]+$/,""),y=y+"."+m}}return y+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,s,i,o){var a=new Date(Date.UTC(t,e-1,n,s,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},D.lang.extend(f.asn1.DERAbstractTime,f.asn1.ASN1Object),f.asn1.DERAbstractStructured=function(r){f.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof r<"u"&&typeof r.array<"u"&&(this.asn1Array=r.array)},D.lang.extend(f.asn1.DERAbstractStructured,f.asn1.ASN1Object),f.asn1.DERBoolean=function(){f.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},D.lang.extend(f.asn1.DERBoolean,f.asn1.ASN1Object),f.asn1.DERInteger=function(r){f.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=f.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new c(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.bigint<"u"?this.setByBigInteger(r.bigint):typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))},D.lang.extend(f.asn1.DERInteger,f.asn1.ASN1Object),f.asn1.DERBitString=function(r){if(r!==void 0&&typeof r.obj<"u"){var t=f.asn1.ASN1Util.newObject(r.obj);r.hex="00"+t.getEncodedHex()}f.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,n){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var s="0"+e;this.hTLV=null,this.isModified=!0,this.hV=s+n},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var n=8-e.length%8;n==8&&(n=0);for(var s=0;s<=n;s++)e+="0";for(var i="",s=0;s<e.length-1;s+=8){var o=e.substr(s,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),i+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+i},this.setByBooleanArray=function(e){for(var n="",s=0;s<e.length;s++)e[s]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(e){for(var n=new Array(e),s=0;s<e;s++)n[s]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):typeof r.hex<"u"?this.setHexValueIncludingUnusedBits(r.hex):typeof r.bin<"u"?this.setByBinaryString(r.bin):typeof r.array<"u"&&this.setByBooleanArray(r.array))},D.lang.extend(f.asn1.DERBitString,f.asn1.ASN1Object),f.asn1.DEROctetString=function(r){if(r!==void 0&&typeof r.obj<"u"){var t=f.asn1.ASN1Util.newObject(r.obj);r.hex=t.getEncodedHex()}f.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"},D.lang.extend(f.asn1.DEROctetString,f.asn1.DERAbstractString),f.asn1.DERNull=function(){f.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},D.lang.extend(f.asn1.DERNull,f.asn1.ASN1Object),f.asn1.DERObjectIdentifier=function(r){var t=function(n){var s=n.toString(16);return s.length==1&&(s="0"+s),s},e=function(n){var s="",i=new c(n,10),o=i.toString(2),a=7-o.length%7;a==7&&(a=0);for(var u="",h=0;h<a;h++)u+="0";o=u+o;for(var h=0;h<o.length-1;h+=7){var l=o.substr(h,7);h!=o.length-7&&(l="1"+l),s+=t(parseInt(l,2))}return s};f.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var s="",i=n.split("."),o=parseInt(i[0])*40+parseInt(i[1]);s+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)s+=e(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=s},this.setValueName=function(n){var s=f.asn1.x509.OID.name2oid(n);if(s!=="")this.setValueOidString(s);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))},D.lang.extend(f.asn1.DERObjectIdentifier,f.asn1.ASN1Object),f.asn1.DEREnumerated=function(r){f.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=f.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new c(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))},D.lang.extend(f.asn1.DEREnumerated,f.asn1.ASN1Object),f.asn1.DERUTF8String=function(r){f.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"},D.lang.extend(f.asn1.DERUTF8String,f.asn1.DERAbstractString),f.asn1.DERNumericString=function(r){f.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"},D.lang.extend(f.asn1.DERNumericString,f.asn1.DERAbstractString),f.asn1.DERPrintableString=function(r){f.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"},D.lang.extend(f.asn1.DERPrintableString,f.asn1.DERAbstractString),f.asn1.DERTeletexString=function(r){f.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"},D.lang.extend(f.asn1.DERTeletexString,f.asn1.DERAbstractString),f.asn1.DERIA5String=function(r){f.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"},D.lang.extend(f.asn1.DERIA5String,f.asn1.DERAbstractString),f.asn1.DERUTCTime=function(r){f.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))},D.lang.extend(f.asn1.DERUTCTime,f.asn1.DERAbstractTime),f.asn1.DERGeneralizedTime=function(r){f.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))},D.lang.extend(f.asn1.DERGeneralizedTime,f.asn1.DERAbstractTime),f.asn1.DERSequence=function(r){f.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t+=n.getEncodedHex()}return this.hV=t,this.hV}},D.lang.extend(f.asn1.DERSequence,f.asn1.DERAbstractStructured),f.asn1.DERSet=function(r){f.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof r<"u"&&typeof r.sortflag<"u"&&r.sortflag==!1&&(this.sortFlag=!1)},D.lang.extend(f.asn1.DERSet,f.asn1.DERAbstractStructured),f.asn1.DERTaggedObject=function(r){f.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.tag<"u"&&(this.hT=r.tag),typeof r.explicit<"u"&&(this.isExplicit=r.explicit),typeof r.obj<"u"&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},D.lang.extend(f.asn1.DERTaggedObject,f.asn1.ASN1Object);var He=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ae=function(r){He(t,r);function t(e){var n=r.call(this)||this;return e&&(typeof e=="string"?n.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&n.parsePropertiesFrom(e)),n}return t.prototype.parseKey=function(e){try{var n=0,s=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=i.test(e)?we.decode(e):gt.unarmor(e),a=xe.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=E(n,16),s=a.sub[2].getHexStringValue(),this.e=parseInt(s,16);var u=a.sub[3].getHexStringValue();this.d=E(u,16);var h=a.sub[4].getHexStringValue();this.p=E(h,16);var l=a.sub[5].getHexStringValue();this.q=E(l,16);var p=a.sub[6].getHexStringValue();this.dmp1=E(p,16);var y=a.sub[7].getHexStringValue();this.dmq1=E(y,16);var d=a.sub[8].getHexStringValue();this.coeff=E(d,16)}else if(a.sub.length===2)if(a.sub[0].sub){var m=a.sub[1],b=m.sub[0];n=b.sub[0].getHexStringValue(),this.n=E(n,16),s=b.sub[1].getHexStringValue(),this.e=parseInt(s,16)}else n=a.sub[0].getHexStringValue(),this.n=E(n,16),s=a.sub[1].getHexStringValue(),this.e=parseInt(s,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new f.asn1.DERInteger({int:0}),new f.asn1.DERInteger({bigint:this.n}),new f.asn1.DERInteger({int:this.e}),new f.asn1.DERInteger({bigint:this.d}),new f.asn1.DERInteger({bigint:this.p}),new f.asn1.DERInteger({bigint:this.q}),new f.asn1.DERInteger({bigint:this.dmp1}),new f.asn1.DERInteger({bigint:this.dmq1}),new f.asn1.DERInteger({bigint:this.coeff})]},n=new f.asn1.DERSequence(e);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return W(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new f.asn1.DERSequence({array:[new f.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new f.asn1.DERNull]}),n=new f.asn1.DERSequence({array:[new f.asn1.DERInteger({bigint:this.n}),new f.asn1.DERInteger({int:this.e})]}),s=new f.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),i=new f.asn1.DERSequence({array:[e,s]});return i.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return W(this.getPublicBaseKey())},t.wordwrap=function(e,n){if(n=n||64,!e)return e;var s="(.{1,"+n+`})( +|$
|
|
21
|
-
?)|(.{1,`+n+"})";return e.match(RegExp(s,"g")).join(`
|
|
22
|
-
`)},t.prototype.getPrivateKey=function(){var e=`-----BEGIN RSA PRIVATE KEY-----
|
|
23
|
-
`;return e+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
24
|
-
`,e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e=`-----BEGIN PUBLIC KEY-----
|
|
25
|
-
`;return e+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|
26
|
-
`,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Fe),St,Ge=typeof process<"u"?(St=process.env)===null||St===void 0?void 0:St.npm_package_version:void 0,Ce=function(){function r(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return r.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ae(t)},r.prototype.setPrivateKey=function(t){this.setKey(t)},r.prototype.setPublicKey=function(t){this.setKey(t)},r.prototype.decrypt=function(t){try{return this.getKey().decrypt(Xt(t))}catch{return!1}},r.prototype.encrypt=function(t){try{return W(this.getKey().encrypt(t))}catch{return!1}},r.prototype.sign=function(t,e,n){try{return W(this.getKey().sign(t,e,n))}catch{return!1}},r.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Xt(e),n)}catch{return!1}},r.prototype.getKey=function(t){if(!this.key){if(this.key=new ae,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=Ge,r}();const oe={status:200,message:"",data:{key:""}};async function ue(){const r=oe;try{const t=await x.get("/mbuhx0as4kui",{params:{ajax:1,render:S()}});let e;return S()?e=JSON.parse(B(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={key:e.key},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const Ke={status:200,message:"",key:""},fe={status:200,message:"",data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}};async function Ue(r,t,e,n,s,i,o,a){const u=fe,h=r,l=t,p=e,y=s;try{let d;i&&(d=(await ue()).data);const m=new Ce;m.setPublicKey(o);let b=n.host.split(":")[0];const _=m.encrypt(b.trim());_&&b.length<53?b=_:b=b.trim();const w={};w.fr_username=m.encrypt(h.trim()),w.fr_password=m.encrypt(l.trim()),w.fr_gdcode=p,w.isApp=y,w.domain=b,w._token=a,w.json=1,w.encrypt=1,d&&Object.assign(w,d);const A=await x.post("/kdink8anl8z3",w,{headers:{"X-CSRF-TOKEN":w._token},params:{render:S()}});let R;return S()?R=JSON.parse(B(A.data)):R=A.data,A.status!=200?(u.status=A.status,u.message="",u):(u.data={msg:R.msg??"",accessToken:R.access_token??"",fullName:R.fullname??"",unreadMailCount:R.news??"",status:R.status??"",username:R.username??"",walletAmount:R.wallet??"",captcha:R.captcha??""},u)}catch(d){const m=d;return u.status=m.status||500,u.message=m.message,u}}T.Repository=pe,T.cmsList=_t,T.csLink=At,T.currentLang=xt,T.eGame=Bt,T.fishGames=Et,T.getLocale=Ot,T.getLoginKey=Nt,T.getSetting=Pt,T.home=Rt,T.hotGames=Tt,T.login=Vt,T.promotion=wt,T.trialGames=Dt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("crypto-js")):"function"==typeof define&&define.amd?define(["exports","crypto-js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["50p82u21t54k"]={},t.CryptoJS)}(this,function(t,e){"use strict";var n=Object.defineProperty,r=Object.defineProperties,s=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,u=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,l=(t,e)=>{for(var n in e||(e={}))o.call(e,n)&&u(t,n,e[n]);if(i)for(var n of i(e))a.call(e,n)&&u(t,n,e[n]);return t},c=(t,e,n)=>new Promise((r,s)=>{var i=t=>{try{a(n.next(t))}catch(e){s(e)}},o=t=>{try{a(n.throw(t))}catch(e){s(e)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(i,o);a((n=n.apply(t,e)).next())});function h(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return t=>t in e}const f="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const p=()=>{},d=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),g=Object.assign,m=Object.prototype.hasOwnProperty,v=(t,e)=>m.call(t,e),y=Array.isArray,b=t=>"[object Map]"===D(t),S=t=>"function"==typeof t,_=t=>"string"==typeof t,E=t=>"symbol"==typeof t,T=t=>null!==t&&"object"==typeof t,w=Object.prototype.toString,D=t=>w.call(t),O=t=>D(t).slice(8,-1),N=t=>_(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,x=(()=>{const t=Object.create(null);return e=>t[e]||(t[e]=(t=>t.charAt(0).toUpperCase()+t.slice(1))(e))})(),V=(t,e)=>!Object.is(t,e);let R;const A=()=>R||(R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function B(t){if(y(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=_(r)?j(r):B(r);if(s)for(const t in s)e[t]=s[t]}return e}if(_(t)||T(t))return t}const P=/;(?![^(]*\))/g,I=/:([^]+)/,C=/\/\*[^]*?\*\//g;function j(t){const e={};return t.replace(C,"").split(P).forEach(t=>{if(t){const n=t.split(I);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function k(t){let e="";if(_(t))e=t;else if(y(t))for(let n=0;n<t.length;n++){const r=k(t[n]);r&&(e+=r+" ")}else if(T(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}let M,L=0;function F(){L++}function q(){if(--L>0)return;let t;for(;M;){let n=M;for(M=void 0;n;){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(e){t||(t=e)}n=r}}if(t)throw t}class H{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,"production"!==process.env.NODE_ENV&&(this.subsHead=void 0)}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){F();try{if("production"!==process.env.NODE_ENV)for(let e=this.subsHead;e;e=e.nextSub)!e.sub.onTrigger||8&e.sub.flags||e.sub.onTrigger(g({effect:e.sub},t));for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{q()}}}const U=new WeakMap,K=Symbol("production"!==process.env.NODE_ENV?"Object iterate":""),$=Symbol("production"!==process.env.NODE_ENV?"Map keys iterate":""),z=Symbol("production"!==process.env.NODE_ENV?"Array iterate":"");function G(t,e,n,r,s,i){const o=U.get(t);if(!o)return;const a=o=>{o&&("production"!==process.env.NODE_ENV?o.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i}):o.trigger())};if(F(),"clear"===e)o.forEach(a);else{const s=y(t),i=s&&N(n);if(s&&"length"===n){const t=Number(r);o.forEach((e,n)=>{("length"===n||n===z||!E(n)&&n>=t)&&a(e)})}else switch((void 0!==n||o.has(void 0))&&a(o.get(n)),i&&a(o.get(z)),e){case"add":s?i&&a(o.get("length")):(a(o.get(K)),b(t)&&a(o.get($)));break;case"delete":s||(a(o.get(K)),b(t)&&a(o.get($)));break;case"set":b(t)&&a(o.get(K))}}q()}function Z(t){const e=Vt(t);return e===t||Nt(t)?e:e.map(Rt)}function J(t){return Vt(t)}const W={__proto__:null,[Symbol.iterator](){return Y(this,Symbol.iterator,Rt)},concat(...t){return Z(this).concat(...t.map(t=>y(t)?Z(t):t))},entries(){return Y(this,"entries",t=>(t[1]=Rt(t[1]),t))},every(t,e){return Q(this,"every",t,e,void 0,arguments)},filter(t,e){return Q(this,"filter",t,e,t=>t.map(Rt),arguments)},find(t,e){return Q(this,"find",t,e,Rt,arguments)},findIndex(t,e){return Q(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Q(this,"findLast",t,e,Rt,arguments)},findLastIndex(t,e){return Q(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Q(this,"forEach",t,e,void 0,arguments)},includes(...t){return et(this,"includes",t)},indexOf(...t){return et(this,"indexOf",t)},join(t){return Z(this).join(t)},lastIndexOf(...t){return et(this,"lastIndexOf",t)},map(t,e){return Q(this,"map",t,e,void 0,arguments)},pop(){return nt(this,"pop")},push(...t){return nt(this,"push",t)},reduce(t,...e){return tt(this,"reduce",t,e)},reduceRight(t,...e){return tt(this,"reduceRight",t,e)},shift(){return nt(this,"shift")},some(t,e){return Q(this,"some",t,e,void 0,arguments)},splice(...t){return nt(this,"splice",t)},toReversed(){return Z(this).toReversed()},toSorted(t){return Z(this).toSorted(t)},toSpliced(...t){return Z(this).toSpliced(...t)},unshift(...t){return nt(this,"unshift",t)},values(){return Y(this,"values",Rt)}};function Y(t,e,n){const r=J(t),s=r[e]();return r===t||Nt(t)||(s._next=s.next,s.next=()=>{const t=s._next();return t.done||(t.value=n(t.value)),t}),s}const X=Array.prototype;function Q(t,e,n,r,s,i){const o=J(t),a=o!==t&&!Nt(t),u=o[e];if(u!==X[e]){const e=u.apply(t,i);return a?Rt(e):e}let l=n;o!==t&&(a?l=function(e,r){return n.call(this,Rt(e),r,t)}:n.length>2&&(l=function(e,r){return n.call(this,e,r,t)}));const c=u.call(o,l,r);return a&&s?s(c):c}function tt(t,e,n,r){const s=J(t);let i=n;return s!==t&&(Nt(t)?n.length>3&&(i=function(e,r,s){return n.call(this,e,r,s,t)}):i=function(e,r,s){return n.call(this,e,Rt(r),s,t)}),s[e](i,...r)}function et(t,e,n){const r=Vt(t),s=r[e](...n);return-1!==s&&!1!==s||!xt(n[0])?s:(n[0]=Vt(n[0]),r[e](...n))}function nt(t,e,n=[]){F();const r=Vt(t)[e].apply(t,n);return q(),r}const rt=h("__proto__,__v_isRef,__isVue"),st=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>"arguments"!==t&&"caller"!==t).map(t=>Symbol[t]).filter(E));function it(t){return E(t)||(t=String(t)),Vt(this).hasOwnProperty(t)}class ot{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if("__v_skip"===e)return t.__v_skip;const r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===e)return!r;if("__v_isReadonly"===e)return r;if("__v_isShallow"===e)return s;if("__v_raw"===e)return n===(r?s?_t:St:s?bt:yt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=y(t);if(!r){let t;if(i&&(t=W[e]))return t;if("hasOwnProperty"===e)return it}const o=Reflect.get(t,e,Bt(t)?t:n);if(E(e)?st.has(e):rt(e))return o;if(s)return o;if(Bt(o)){const t=i&&N(e)?o:o.value;return r&&T(t)?Tt(t):t}return T(o)?r?Tt(o):Et(o):o}}class at extends ot{constructor(t=!1){super(!1,t)}set(t,e,n,r){let s=t[e];if(!this._isShallow){const r=Ot(s);if(Nt(n)||Ot(n)||(s=Vt(s),n=Vt(n)),!y(t)&&Bt(s)&&!Bt(n))return r?("production"!==process.env.NODE_ENV&&(String(e),t[e]),!0):(s.value=n,!0)}const i=y(t)&&N(e)?Number(e)<t.length:v(t,e),o=Reflect.set(t,e,n,Bt(t)?t:r);return t===Vt(r)&&(i?V(n,s)&&G(t,"set",e,n,s):G(t,"add",e,n)),o}deleteProperty(t,e){const n=v(t,e),r=t[e],s=Reflect.deleteProperty(t,e);return s&&n&&G(t,"delete",e,void 0,r),s}has(t,e){const n=Reflect.has(t,e);return!E(e)||st.has(e),n}ownKeys(t){return Reflect.ownKeys(t)}}class ut extends ot{constructor(t=!1){super(!0,t)}set(t,e){return"production"!==process.env.NODE_ENV&&String(e),!0}deleteProperty(t,e){return"production"!==process.env.NODE_ENV&&String(e),!0}}const lt=new at,ct=new ut,ht=t=>t,ft=t=>Reflect.getPrototypeOf(t);function pt(t){return function(...e){return"production"!==process.env.NODE_ENV&&(e[0]&&e[0],x(t),Vt(this)),"delete"!==t&&("clear"===t?void 0:this)}}function dt(t,e){const n=function(t,e){const n={get(n){const r=this.__v_raw,s=Vt(r),i=Vt(n),{has:o}=ft(s),a=e?ht:t?At:Rt;return o.call(s,n)?a(r.get(n)):o.call(s,i)?a(r.get(i)):void(r!==s&&r.get(n))},get size(){const e=this.__v_raw;return!t&&Vt(e),e.size},has(t){const e=this.__v_raw;Vt(e);const n=Vt(t);return t===n?e.has(t):e.has(t)||e.has(n)},forEach(n,r){const s=this,i=s.__v_raw;Vt(i);const o=e?ht:t?At:Rt;return i.forEach((t,e)=>n.call(r,o(t),o(e),s))}};return g(n,t?{add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear")}:{add(t){e||Nt(t)||Ot(t)||(t=Vt(t));const n=Vt(this);return ft(n).has.call(n,t)||(n.add(t),G(n,"add",t,t)),this},set(t,n){e||Nt(n)||Ot(n)||(n=Vt(n));const r=Vt(this),{has:s,get:i}=ft(r);let o=s.call(r,t);o?"production"!==process.env.NODE_ENV&&vt(r,s,t):(t=Vt(t),o=s.call(r,t));const a=i.call(r,t);return r.set(t,n),o?V(n,a)&&G(r,"set",t,n,a):G(r,"add",t,n),this},delete(t){const e=Vt(this),{has:n,get:r}=ft(e);let s=n.call(e,t);s?"production"!==process.env.NODE_ENV&&vt(e,n,t):(t=Vt(t),s=n.call(e,t));const i=r?r.call(e,t):void 0,o=e.delete(t);return s&&G(e,"delete",t,void 0,i),o},clear(){const t=Vt(this),e=0!==t.size,n="production"!==process.env.NODE_ENV?b(t)?new Map(t):new Set(t):void 0,r=t.clear();return e&&G(t,"clear",void 0,void 0,n),r}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(t,e,n){return function(...r){const s=this.__v_raw,i=Vt(s),o=b(i),a="entries"===t||t===Symbol.iterator&&o,u=s[t](...r),l=n?ht:e?At:Rt;return{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:a?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}(r,t,e)}),n}(t,e);return(e,r,s)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(v(n,r)&&r in e?n:e,r,s)}const gt={get:dt(!1,!1)},mt={get:dt(!0,!1)};function vt(t,e,n){const r=Vt(n);r!==n&&e.call(t,r)&&O(t)}const yt=new WeakMap,bt=new WeakMap,St=new WeakMap,_t=new WeakMap;function Et(t){return Ot(t)?t:wt(t,!1,lt,gt,yt)}function Tt(t){return wt(t,!0,ct,mt,St)}function wt(t,e,n,r,s){if(!T(t))return"production"!==process.env.NODE_ENV&&String(t),t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const i=(o=t).__v_skip||!Object.isExtensible(o)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(O(o));var o;if(0===i)return t;const a=s.get(t);if(a)return a;const u=new Proxy(t,2===i?r:n);return s.set(t,u),u}function Dt(t){return Ot(t)?Dt(t.__v_raw):!(!t||!t.__v_isReactive)}function Ot(t){return!(!t||!t.__v_isReadonly)}function Nt(t){return!(!t||!t.__v_isShallow)}function xt(t){return!!t&&!!t.__v_raw}function Vt(t){const e=t&&t.__v_raw;return e?Vt(e):t}const Rt=t=>T(t)?Et(t):t,At=t=>T(t)?Tt(t):t;function Bt(t){return!!t&&!0===t.__v_isRef}const Pt=[];let It=!1;function Ct(t,...e){if(It)return;It=!0;const n=Pt.length?Pt[Pt.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=function(){let t=Pt[Pt.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}();if(r)Lt(r,n,11,[t+e.map(t=>{var e,n;return null!=(n=null==(e=t.toString)?void 0:e.call(t))?n:JSON.stringify(t)}).join(""),n&&n.proxy,s.map(({vnode:t})=>`at <${Te(n,t.type)}>`).join("\n"),s]);else{const n=[`[Vue warn]: ${t}`,...e];s.length&&n.push("\n",...function(t){const e=[];return t.forEach((t,n)=>{e.push(...0===n?[]:["\n"],...function({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=!!t.component&&null==t.component.parent,s=` at <${Te(t.component,t.type,r)}`,i=">"+n;return t.props?[s,...jt(t.props),i]:[s+i]}(t))}),e}(s))}It=!1}function jt(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(n=>{e.push(...kt(n,t[n]))}),n.length>3&&e.push(" ..."),e}function kt(t,e,n){return _(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):"number"==typeof e||"boolean"==typeof e||null==e?n?e:[`${t}=${e}`]:Bt(e)?(e=kt(t,Vt(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):S(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Vt(e),n?e:[`${t}=`,e])}const Mt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Lt(t,e,n,r){try{return r?t(...r):t()}catch(s){Ft(s,e,n)}}function Ft(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||f;if(e){let r=e.parent;const s=e.proxy,o="production"!==process.env.NODE_ENV?Mt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,s,o))return;r=r.parent}if(i)return void Lt(i,null,10,[t,s,o])}!function(t,e,n,r=!0,s=!1){if("production"!==process.env.NODE_ENV){const s=Mt[e];if(n&&(i=n,Pt.push(i)),Ct("Unhandled error"+(s?` during execution of ${s}`:"")),n&&Pt.pop(),r)throw t}else if(s)throw t;var i}(t,n,s,r,o)}const qt=[];let Ht=-1;const Ut=[];let Kt=null,$t=0;const zt=Promise.resolve();let Gt=null;function Zt(t){if(!(1&t.flags)){const e=Wt(t),n=qt[qt.length-1];!n||!(2&t.flags)&&e>=Wt(n)?qt.push(t):qt.splice(function(t){let e=Ht+1,n=qt.length;for(;e<n;){const r=e+n>>>1,s=qt[r],i=Wt(s);i<t||i===t&&2&s.flags?e=r+1:n=r}return e}(e),0,t),t.flags|=1,Jt()}}function Jt(){Gt||(Gt=zt.then(Yt))}const Wt=t=>null==t.id?2&t.flags?-1:1/0:t.id;function Yt(t){"production"!==process.env.NODE_ENV&&(t=t||new Map);const e="production"!==process.env.NODE_ENV?e=>Xt(t,e):p;try{for(Ht=0;Ht<qt.length;Ht++){const t=qt[Ht];if(t&&!(8&t.flags)){if("production"!==process.env.NODE_ENV&&e(t))continue;4&t.flags&&(t.flags&=-2),Lt(t,t.i,t.i?15:14),4&t.flags||(t.flags&=-2)}}}finally{for(;Ht<qt.length;Ht++){const t=qt[Ht];t&&(t.flags&=-2)}Ht=-1,qt.length=0,function(t){if(Ut.length){const e=[...new Set(Ut)].sort((t,e)=>Wt(t)-Wt(e));if(Ut.length=0,Kt)return void Kt.push(...e);for(Kt=e,"production"!==process.env.NODE_ENV&&(t=t||new Map),$t=0;$t<Kt.length;$t++){const e=Kt[$t];"production"!==process.env.NODE_ENV&&Xt(t,e)||(4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2)}Kt=null,$t=0}}(t),Gt=null,(qt.length||Ut.length)&&Yt(t)}}function Xt(t,e){const n=t.get(e)||0;if(n>100){const t=e.i,n=t&&Ee(t.type);return Ft(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,n+1),!1}const Qt=new Map;"production"!==process.env.NODE_ENV&&(A().__VUE_HMR_RUNTIME__={createRecord:re(function(t,e){return!te.has(t)&&(te.set(t,{initialDef:ee(e),instances:new Set}),!0)}),rerender:re(function(t,e){const n=te.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(t=>{e&&(t.render=e,ee(t.type).render=e),t.renderCache=[],8&t.job.flags||t.update()}))}),reload:re(function(t,e){const n=te.get(t);if(!n)return;e=ee(e),ne(n.initialDef,e);const r=[...n.instances];for(let i=0;i<r.length;i++){const t=r[i],s=ee(t.type);let o=Qt.get(s);o||(s!==n.initialDef&&ne(s,e),Qt.set(s,o=new Set)),o.add(t),t.appContext.propsCache.delete(t.type),t.appContext.emitsCache.delete(t.type),t.appContext.optionsCache.delete(t.type),t.ceReload?(o.add(t),t.ceReload(e.styles),o.delete(t)):t.parent?Zt(()=>{8&t.job.flags||(t.parent.update(),o.delete(t))}):t.appContext.reload?t.appContext.reload():"undefined"!=typeof window&&window.location.reload(),t.root.ce&&t!==t.root&&t.root.ce._removeChildStyle(s)}var s;y(s=()=>{Qt.clear()})?Ut.push(...s):Kt&&-1===s.id?Kt.splice($t+1,0,s):1&s.flags||(Ut.push(s),s.flags|=1),Jt()})});const te=new Map;function ee(t){return we(t)?t.__vccOpts:t}function ne(t,e){g(t,e);for(const n in t)"__file"===n||n in e||delete t[n]}function re(t){return(e,n)=>{try{return t(e,n)}catch(r){}}}let se=null;function ie(t,e){6&t.shapeFlag&&t.component?(t.transition=e,ie(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}A().requestIdleCallback,A().cancelIdleCallback;const oe=Symbol.for("v-ndc");process.env.NODE_ENV;const ae={},ue=t=>Object.getPrototypeOf(t)===ae,le=Symbol.for("v-fgt"),ce=Symbol.for("v-txt"),he=Symbol.for("v-cmt"),fe=({key:t})=>null!=t?t:null,pe=({ref:t,ref_key:e,ref_for:n})=>("number"==typeof t&&(t=""+t),null!=t?_(t)||Bt(t)||S(t)?{i:se,r:t,k:e,f:!!n}:t:null),de="production"!==process.env.NODE_ENV?(...t)=>ge(...t):ge;function ge(t,e=null,n=null,r=0,s=null,i=!1){if(t&&t!==oe||("production"===process.env.NODE_ENV||t||Ct(`Invalid vnode type when creating vnode: ${t}.`),t=he),(o=t)&&!0===o.__v_isVNode){const r=me(t,e,!0);return n&&be(r,n),r.patchFlag=-2,r}var o;if(we(t)&&(t=t.__vccOpts),e){e=function(t){return t?xt(t)||ue(t)?g({},t):t:null}(e);let{class:t,style:n}=e;t&&!_(t)&&(e.class=k(t)),T(n)&&(xt(n)&&!y(n)&&(n=g({},n)),e.style=B(n))}const a=_(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:T(t)?4:S(t)?2:0;return"production"!==process.env.NODE_ENV&&4&a&&xt(t)&&Ct("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",t=Vt(t)),function(t,e=null,n=null,r=0,s=null,i=(t===le?0:1),o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&fe(e),ref:e&&pe(e),scopeId:null,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:se};return a?(be(u,n),128&i&&t.normalize(u)):n&&(u.shapeFlag|=_(n)?8:16),"production"!==process.env.NODE_ENV&&u.key!=u.key&&Ct("VNode created with invalid key (NaN). VNode type:",u.type),u}(t,e,n,r,s,a,i,!0)}function me(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:u}=t,l=e?function(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const t in r)if("class"===t)e.class!==r.class&&(e.class=k([e.class,r.class]));else if("style"===t)e.style=B([e.style,r.style]);else if(d(t)){const n=e[t],s=r[t];!s||n===s||y(n)&&n.includes(s)||(e[t]=n?[].concat(n,s):s)}else""!==t&&(e[t]=r[t])}return e}(s||{},e):s,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&fe(l),ref:e&&e.ref?n&&i?y(i)?i.concat(pe(e)):[i,pe(e)]:pe(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===o&&y(a)?a.map(ve):a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==le?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&me(t.ssContent),ssFallback:t.ssFallback&&me(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&ie(c,u.clone(c)),c}function ve(t){const e=me(t);return y(t.children)&&(e.children=t.children.map(ve)),e}function ye(t=" ",e=0){return de(ce,null,t,e)}function be(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(y(e))n=16;else if("object"==typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),be(t,n()),n._c&&(n._d=!0)))}n=32,e._||ue(e)||(e._ctx=se)}else S(e)?(e={default:e,_ctx:se},n=32):(e=String(e),64&r?(n=16,e=[ye(e)]):n=8);t.children=e,t.shapeFlag|=n}{const t=A(),e=(e,n)=>{let r;return(r=t[e])||(r=t[e]=[]),r.push(n),t=>{r.length>1?r.forEach(e=>e(t)):r[0](t)}};e("__VUE_INSTANCE_SETTERS__",t=>t),e("__VUE_SSR_SETTERS__",t=>t)}process.env.NODE_ENV;const Se=/(?:^|[-_])\w/g,_e=t=>t.replace(Se,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ee(t,e=!0){return S(t)?t.displayName||t.name:t.name||e&&t.__name}function Te(t,e,n=!1){let r=Ee(e);if(!r&&e.__file){const t=e.__file.match(/([^/\\]+)\.\w+$/);t&&(r=t[1])}if(!r&&t&&t.parent){const n=t=>{for(const n in t)if(t[n]===e)return n};r=n(t.components||t.parent.type.components)||n(t.appContext.components)}return r?_e(r):n?"App":"Anonymous"}function we(t){return S(t)&&"__vccOpts"in t}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,"production"!==process.env.NODE_ENV&&function(){if("production"===process.env.NODE_ENV||"undefined"==typeof window)return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(e){if(!T(e))return null;if(e.__isVue)return["div",t,"VueInstance"];if(Bt(e)){const r=e.value;return["div",{},["span",t,(n=e,Nt(n)?"ShallowRef":n.effect?"ComputedRef":"Ref")],"<",a(r),">"]}var n;return Dt(e)?["div",{},["span",t,Nt(e)?"ShallowReactive":"Reactive"],"<",a(e),">"+(Ot(e)?" (readonly)":"")]:Ot(e)?["div",{},["span",t,Nt(e)?"ShallowReadonly":"Readonly"],"<",a(e),">"]:null},hasBody:t=>t&&t.__isVue,body(t){if(t&&t.__isVue)return["div",{},...i(t.$)]}};function i(t){const e=[];t.type.props&&t.props&&e.push(o("props",Vt(t.props))),t.setupState!==f&&e.push(o("setup",t.setupState)),t.data!==f&&e.push(o("data",Vt(t.data)));const n=u(t,"computed");n&&e.push(o("computed",n));const s=u(t,"inject");return s&&e.push(o("injected",s)),e.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:t}]]),e}function o(t,e){return e=g({},e),Object.keys(e).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},t],["div",{style:"padding-left:1.25em"},...Object.keys(e).map(t=>["div",{},["span",r,t+": "],a(e[t],!1)])]]:["span",{}]}function a(t,s=!0){return"number"==typeof t?["span",e,t]:"string"==typeof t?["span",n,JSON.stringify(t)]:"boolean"==typeof t?["span",r,t]:T(t)?["object",{object:s?Vt(t):t}]:["span",n,String(t)]}function u(t,e){const n=t.type;if(S(n))return;const r={};for(const s in t.ctx)l(n,s,e)&&(r[s]=t.ctx[s]);return r}function l(t,e,n){const r=t[n];return!!(y(r)&&r.includes(e)||T(r)&&e in r)||!(!t.extends||!l(t.extends,e,n))||!(!t.mixins||!t.mixins.some(t=>l(t,e,n)))||void 0}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}();const De=Bt("")?"":new class{constructor(t,e){this.dep=new H,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Vt(t),this._value=e?t:Rt(t),this.__v_isShallow=e}get value(){return"production"!==process.env.NODE_ENV?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Nt(t)||Ot(t);t=n?t:Vt(t),V(t,e)&&(this._rawValue=t,this._value=n?t:Rt(t),"production"!==process.env.NODE_ENV?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:e}):this.dep.trigger())}}("",!1),Oe=t=>{try{const n=JSON.parse(e.AES.decrypt(t,De.value,{format:{stringify:t=>{const n={ct:t.ciphertext.toString(e.enc.Base64)};return t.iv&&(n.iv=t.iv.toString()),t.salt&&(n.s=t.salt.toString()),JSON.stringify(n)},parse:t=>{const n=JSON.parse(t),r=e.lib.CipherParams.create({ciphertext:e.enc.Base64.parse(n.ct)});return n.iv&&(r.iv=e.enc.Hex.parse(n.iv)),n.s&&(r.salt=e.enc.Hex.parse(n.s)),r}}}).toString(e.enc.Utf8));return""!==n?JSON.parse(n):n}catch(n){return""}},Ne=t=>new URLSearchParams(Object.entries(t).map(([t,e])=>[t,String(e)]));function xe(){return""===De.value?0:1}const Ve=(t,e=null)=>c(null,null,function*(){let n=t;e&&(n=`${n}?${Ne(e)}`);const r=yield Ae(n,{method:"GET",headers:Be(),credentials:"include"});if(!r.ok){const t=yield Ce(r);return Promise.reject(t)}return{data:yield xe()?Oe(r):Ie(r),status:r.status,msg:r.statusText,headers:r.headers,ok:r.ok}}),Re=(t,e,n=null)=>c(null,null,function*(){let r=t;n&&(r=`${r}?${Ne(n)}`);const s=yield Ae(r,{method:"POST",headers:Be(),body:JSON.stringify(e),credentials:"include"});if(!s.ok){const t=yield Ce(s);return Promise.reject(t)}const i=yield xe()?Oe(s):Ie(s);if(!i)return{data:{},status:s.status,msg:s.statusText,headers:s.headers,ok:s.ok};const o=(Array.isArray(null==i?void 0:i.responses)?i.responses.filter(t=>null==t?void 0:t.attributes):[])[0];return{data:o?JSON.parse((t=>{try{return atob(t)}catch(e){return""}})(o.attributes)):i,status:s.status,msg:s.statusText,headers:s.headers,ok:s.ok}}),Ae=(t,e,n=29e3)=>c(null,null,function*(){const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{return yield fetch(t,(a=l({},e),u={signal:i.signal},r(a,s(u))))}finally{clearTimeout(o)}var a,u}),Be=()=>{const t=localStorage.getItem("token"),e=Pe("XSRF-TOKEN");return l({"Content-Type":"application/json","X-XSRF-TOKEN":e},t?{Authorization:`Bearer ${t}`}:{})},Pe=t=>{const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]+)"));return e?decodeURIComponent(e[2]):""},Ie=t=>c(null,null,function*(){try{return 204===t.status||"0"===t.headers.get("content-length")?null:yield t.json()}catch(e){return null}}),Ce=t=>c(null,null,function*(){const e=yield Ie(t),n={status:t.status,message:(null==e?void 0:e.message)||t.statusText||"An error occurred"};return 401===t.status||404===t.status||t.status,n}),je=Object.freeze(Object.defineProperty({__proto__:null,get:Ve,post:Re},Symbol.toStringTag,{value:"Module"})),ke={data:{game:{},mobileBanner:[],announcement:[],alertAnnouncement:[]}};var Me=(t=>(t.SPORT="SPORT",t.SPECIAL="SPECIAL",t.PVP="PVP",t.LIVE="LIVE",t.EVENT="EVENT",t.ESPORT="ESPORT",t.EGAME="EGAME",t.BINGO="BINGO",t))(Me||{});const Le={data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}},Fe={data:{hotfish:[],data:[]}},qe=t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g,m,v;return{id:null!=(e=t.id)?e:0,name:null!=(n=t.name)?n:"",ppid:null!=(r=t.pp_id)?r:"",img:null!=(s=t.img)?s:"",desc:null!=(i=t.desc)?i:"",ppname:null!=(o=t.pp_name)?o:"",platformCode:null!=(a=t.platform_code)?a:"",code:null!=(u=t.code)?u:"",flag:null!=(l=t.flag)?l:0,gameId:null!=(c=t.game_id)?c:0,imgSrc:null!=(h=t.imgSrc)?h:"",imgPf:null!=(f=t.imgPf)?f:"",favouriteFlag:1===t.favourite_flag,platformStatusFflag:null!=(p=t.platform_status_Fflag)?p:"",platformFlagName:null!=(d=t.platform_flag_name)?d:"",platformStatusParams:{eb:null!=(g=t.platform_status_params.eb)&&g,fit:null!=(m=t.platform_status_params.fit)&&m,fs:null!=(v=t.platform_status_params.fs)&&v}}},He={data:[]},Ue={data:{lang:""}},Ke={data:{objList:[],promoCat:[],resize:0}},$e={data:[]},ze={data:{liveChat:""}},Ge={data:{eGameList:[]}},Ze={data:{mobileBanner:[]}},Je={data:{csrf:"",getCaptcha:"",verificationBeforeLogin:!1,publicKey:"",concantenatedKey:""}};function We(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Ye(t,e){return t&e}function Xe(t,e){return t|e}function Qe(t,e){return t^e}function tn(t,e){return t&~e}function en(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function nn(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var rn,sn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function on(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=sn.charAt(n>>6)+sn.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=sn.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=sn.charAt(n>>2)+sn.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function an(t){var e,n="",r=0,s=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var i=sn.indexOf(t.charAt(e));i<0||(0==r?(n+=We(i>>2),s=3&i,r=1):1==r?(n+=We(s<<2|i>>4),s=15&i,r=2):2==r?(n+=We(s),n+=We(i>>2),s=3&i,r=3):(n+=We(s<<2|i>>4),n+=We(15&i),r=0))}return 1==r&&(n+=We(s<<2)),n}var un,ln={decode:function(t){var e;if(void 0===un){for(un=Object.create(null),e=0;e<64;++e)un["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(un["-"]=62,un._=63,e=0;e<9;++e)un["= \f\n\r\t \u2028\u2029".charAt(e)]=-1}var n=[],r=0,s=0;for(e=0;e<t.length;++e){var i=t.charAt(e);if("="==i)break;if(-1!=(i=un[i])){if(void 0===i)throw new Error("Illegal character at offset "+e);r|=i,++s>=4?(n[n.length]=r>>16,n[n.length]=r>>8&255,n[n.length]=255&r,r=0,s=0):r<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=r>>10;break;case 3:n[n.length]=r>>16,n[n.length]=r>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=ln.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return ln.decode(t)}},cn=1e13,hn=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,s=this.buf,i=s.length;for(n=0;n<i;++n)(r=s[n]*t+e)<cn?e=0:r-=(e=0|r/cn)*cn,s[n]=r;e>0&&(s[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,s=r.length;for(e=0;e<s;++e)(n=r[e]-t)<0?(n+=cn,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(cn+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*cn+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),fn=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,pn=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function dn(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var gn,mn=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",s=t;s<e;++s)if(r+=this.hexByte(this.get(s)),!0!==n)switch(15&s){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var s=this.get(r++);n+=s<128?String.fromCharCode(s):s>191&&s<224?String.fromCharCode((31&s)<<6|63&this.get(r++)):String.fromCharCode((15&s)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,s="",i=t;i<e;)n=this.get(i++),r=this.get(i++),s+=String.fromCharCode(n<<8|r);return s},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),s=(n?fn:pn).exec(r);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),r=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(r+=":"+s[5],s[6]&&(r+=":"+s[6],s[7]&&(r+="."+s[7]))),s[8]&&(r+=" UTC","Z"!=s[8]&&(r+=s[8],s[9]&&(r+=":"+s[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),s=r>127,i=s?255:0,o="";r==i&&++t<e;)r=this.get(t);if(0===(n=e-t))return s?-1:0;if(n>4){for(o=r,n<<=3;!(128&(+o^i));)o=+o<<1,--n;o="("+n+" bit)\n"}s&&(r-=256);for(var a=new hn(r),u=t+1;u<e;++u)a.mulAdd(256,this.get(u));return o+a.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),s="("+((e-t-1<<3)-r)+" bit)\n",i="",o=t+1;o<e;++o){for(var a=this.get(o),u=o==e-1?r:0,l=7;l>=u;--l)i+=a>>l&1?"1":"0";if(i.length>n)return s+dn(i,n)}return s+i},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return dn(this.parseStringISO(t,e),n);var r=e-t,s="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var i=t;i<e;++i)s+=this.hexByte(this.get(i));return r>n&&(s+="…"),s},t.prototype.parseOID=function(t,e,n){for(var r="",s=new hn,i=0,o=t;o<e;++o){var a=this.get(o);if(s.mulAdd(128,127&a),i+=7,!(128&a)){if(""===r)if((s=s.simplify())instanceof hn)s.sub(80),r="2."+s.toString();else{var u=s<80?s<40?0:1:2;r=u+"."+(s-40*u)}else r+="."+s.toString();if(r.length>n)return dn(r,n);s=new hn,i=0}}return i>0&&(r+=".incomplete"),r},t}(),vn=function(){function t(t,e,n,r,s){if(!(r instanceof yn))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=s}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return dn(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return dn(this.stream.parseStringISO(e,e+n),t);case 30:return dn(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substring(e,e+n)},t.decode=function(e){var n;n=e instanceof mn?e:new mn(e,0);var r=new mn(n),s=new yn(n),i=t.decodeLength(n),o=n.pos,a=o-r.pos,u=null,l=function(){var e=[];if(null!==i){for(var r=o+i;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var s=t.decode(n);if(s.tag.isEOC())break;e[e.length]=s}i=o-n.pos}catch(a){throw new Error("Exception while decoding undefined length content: "+a)}return e};if(s.tagConstructed)u=l();else if(s.isUniversal()&&(3==s.tagNumber||4==s.tagNumber))try{if(3==s.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=l();for(var c=0;c<u.length;++c)if(u[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){u=null}if(null===u){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(i)}return new t(r,a,i,s,u)},t}(),yn=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=!!(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new hn;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),bn=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Sn=(1<<26)/bn[bn.length-1],_n=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,s=!1,i="",o=this.t,a=this.DB-o*this.DB%e;if(o-- >0)for(a<this.DB&&(n=this[o]>>a)>0&&(s=!0,i=We(n));o>=0;)a<e?(n=(this[o]&(1<<a)-1)<<e-a,n|=this[--o]>>(a+=this.DB-e)):(n=this[o]>>(a-=e)&r,a<=0&&(a+=this.DB,--o)),n>0&&(s=!0),s&&(i+=We(n));return s?i:"0"},t.prototype.negate=function(){var e=On();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+In(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=On();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new Tn(e):new wn(e),this.exp(t,n)},t.prototype.clone=function(){var t=On();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,s=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[s++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),128&n&&(n|=-256),0==s&&(128&this.s)!=(128&n)&&++s,(s>0||n!=this.s)&&(e[s++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=On();return this.bitwiseTo(t,Ye,e),e},t.prototype.or=function(t){var e=On();return this.bitwiseTo(t,Xe,e),e},t.prototype.xor=function(t){var e=On();return this.bitwiseTo(t,Qe,e),e},t.prototype.andNot=function(t){var e=On();return this.bitwiseTo(t,tn,e),e},t.prototype.not=function(){for(var t=On(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=On();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=On();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+en(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=nn(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,Xe)},t.prototype.clearBit=function(t){return this.changeBit(t,tn)},t.prototype.flipBit=function(t){return this.changeBit(t,Qe)},t.prototype.add=function(t){var e=On();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=On();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=On();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=On();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=On();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=On(),n=On();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,s=t.bitLength(),i=Pn(1);if(s<=0)return i;n=s<18?1:s<48?3:s<144?4:s<768?5:6,r=s<8?new Tn(e):e.isEven()?new Dn(e):new wn(e);var o=[],a=3,u=n-1,l=(1<<n)-1;if(o[1]=r.convert(this),n>1){var c=On();for(r.sqrTo(o[1],c);a<=l;)o[a]=On(),r.mulTo(c,o[a-2],o[a]),a+=2}var h,f,p=t.t-1,d=!0,g=On();for(s=In(t[p])-1;p>=0;){for(s>=u?h=t[p]>>s-u&l:(h=(t[p]&(1<<s+1)-1)<<u-s,p>0&&(h|=t[p-1]>>this.DB+s-u)),a=n;!(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),d)o[h].copyTo(i),d=!1;else{for(;a>1;)r.sqrTo(i,g),r.sqrTo(g,i),a-=2;a>0?r.sqrTo(i,g):(f=i,i=g,g=f),r.mulTo(g,o[h],i)}for(;p>=0&&!(t[p]&1<<s);)r.sqrTo(i,g),f=i,i=g,g=f,--s<0&&(s=this.DB-1,--p)}return r.revert(i)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),s=this.clone(),i=Pn(1),o=Pn(0),a=Pn(0),u=Pn(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;s.isEven();)s.rShiftTo(1,s),n?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(e,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(s)>=0?(r.subTo(s,r),n&&i.subTo(a,i),o.subTo(u,o)):(s.subTo(r,s),n&&a.subTo(i,a),u.subTo(o,u))}return 0!=s.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new En)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var s=e.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return e;for(s<i&&(i=s),i>0&&(e.rShiftTo(i,e),n.rShiftTo(i,n));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=bn[bn.length-1]){for(e=0;e<bn.length;++e)if(n[0]==bn[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<bn.length;){for(var r=bn[e],s=e+1;s<bn.length&&r<Sn;)r*=bn[s++];for(r=n.modInt(r);e<s;)if(r%bn[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var s=e.length,i=!1,o=0;--s>=0;){var a=8==r?255&+e[s]:Bn(e,s);a<0?"-"==e.charAt(s)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&128&+e[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,s=(1<<r)-1,i=Math.floor(t/this.DB),o=this.s<<n&this.DM,a=this.t-1;a>=0;--a)e[a+i+1]=this[a]>>r|o,o=(this[a]&s)<<n;for(a=i-1;a>=0;--a)e[a]=0;e[i]=o,e.t=this.t+i+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,s=this.DB-r,i=(1<<r)-1;e[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&i)<<s,e[o-n]=this[o]>>r;r>0&&(e[this.t-n-1]|=(this.s&i)<<s),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,s=Math.min(t.t,this.t);n<s;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),s=e.abs(),i=r.t;for(n.t=i+s.t;--i>=0;)n[i]=0;for(i=0;i<s.t;++i)n[i+r.t]=r.am(0,s[i],n,i,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var s=e.abs();if(!(s.t<=0)){var i=this.abs();if(i.t<s.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=On());var o=On(),a=this.s,u=e.s,l=this.DB-In(s[s.t-1]);l>0?(s.lShiftTo(l,o),i.lShiftTo(l,r)):(s.copyTo(o),i.copyTo(r));var c=o.t,h=o[c-1];if(0!=h){var f=h*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/f,d=(1<<this.F1)/f,g=1<<this.F2,m=r.t,v=m-c,y=null==n?On():n;for(o.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--v>=0;){var b=r[--m]==h?this.DM:Math.floor(r[m]*p+(r[m-1]+g)*d);if((r[m]+=o.am(0,b,r,v,0,c))<b)for(o.dlShiftTo(v,y),r.subTo(y,r);r[m]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),a!=u&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),l>0&&r.rShiftTo(l,r),a<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=On(),s=On(),i=n.convert(this),o=In(e)-1;for(i.copyTo(r);--o>=0;)if(n.sqrTo(r,s),(e&1<<o)>0)n.mulTo(s,i,r);else{var a=r;r=s,s=a}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Pn(n),s=On(),i=On(),o="";for(this.divRemTo(r,s,i);s.signum()>0;)o=(n+i.intValue()).toString(t).substring(1)+o,s.divRemTo(r,s,i);return i.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),s=Math.pow(n,r),i=!1,o=0,a=0,u=0;u<e.length;++u){var l=Bn(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(i=!0):(a=n*a+l,++o>=r&&(this.dMultiply(s),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(a,0)),i&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Xe,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var s=[],i=7&e;s.length=1+(e>>3),n.nextBytes(s),i>0?s[0]&=(1<<i)-1:s[0]=0,this.fromString(s,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,s,i=Math.min(t.t,this.t);for(r=0;r<i;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(s=t.s&this.DM,r=i;r<this.t;++r)n[r]=e(this[r],s);n.t=this.t}else{for(s=this.s&this.DM,r=i;r<t.t;++r)n[r]=e(s,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,s=Math.min(t.t,this.t);n<s;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var s=n.t-this.t;r<s;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(s=Math.min(t.t,e);r<s;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var s=n.shiftRight(r);(e=e+1>>1)>bn.length&&(e=bn.length);for(var i=On(),o=0;o<e;++o){i.fromInt(bn[Math.floor(Math.random()*bn.length)]);var a=i.modPow(s,this);if(0!=a.compareTo(t.ONE)&&0!=a.compareTo(n)){for(var u=1;u++<r&&0!=a.compareTo(n);)if(0==(a=a.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=a.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=On();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var s=n;n=r,r=s}var i=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(n);else{i<o&&(o=i),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var a=function(){(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(a,0):(o>0&&r.lShiftTo(o,r),setTimeout(function(){e(r)},0))};setTimeout(a,10)}},t.prototype.fromNumberAsync=function(e,n,r,s){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Xe,this),this.isEven()&&this.dAddOffset(1,0);var i=this,o=function(){i.dAddOffset(2,0),i.bitLength()>e&&i.subTo(t.ONE.shiftLeft(e-1),i),i.isProbablePrime(n)?setTimeout(function(){s()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],u=7&e;a.length=1+(e>>3),n.nextBytes(a),u>0?a[0]&=(1<<u)-1:a[0]=0,this.fromString(a,256)}},t}(),En=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),Tn=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),wn=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=On();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(_n.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=On();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),Dn=function(){function t(t){this.m=t,this.r2=On(),this.q3=On(),_n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=On();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function On(){return new _n(null)}function Nn(t,e){return new _n(t,e)}var xn="undefined"!=typeof navigator;xn&&"Microsoft Internet Explorer"==navigator.appName?(_n.prototype.am=function(t,e,n,r,s,i){for(var o=32767&e,a=e>>15;--i>=0;){var u=32767&this[t],l=this[t++]>>15,c=a*u+l*o;s=((u=o*u+((32767&c)<<15)+n[r]+(1073741823&s))>>>30)+(c>>>15)+a*l+(s>>>30),n[r++]=1073741823&u}return s},gn=30):xn&&"Netscape"!=navigator.appName?(_n.prototype.am=function(t,e,n,r,s,i){for(;--i>=0;){var o=e*this[t++]+n[r]+s;s=Math.floor(o/67108864),n[r++]=67108863&o}return s},gn=26):(_n.prototype.am=function(t,e,n,r,s,i){for(var o=16383&e,a=e>>14;--i>=0;){var u=16383&this[t],l=this[t++]>>14,c=a*u+l*o;s=((u=o*u+((16383&c)<<14)+n[r]+s)>>28)+(c>>14)+a*l,n[r++]=268435455&u}return s},gn=28),_n.prototype.DB=gn,_n.prototype.DM=(1<<gn)-1,_n.prototype.DV=1<<gn,_n.prototype.FV=Math.pow(2,52),_n.prototype.F1=52-gn,_n.prototype.F2=2*gn-52;var Vn,Rn,An=[];for(Vn="0".charCodeAt(0),Rn=0;Rn<=9;++Rn)An[Vn++]=Rn;for(Vn="a".charCodeAt(0),Rn=10;Rn<36;++Rn)An[Vn++]=Rn;for(Vn="A".charCodeAt(0),Rn=10;Rn<36;++Rn)An[Vn++]=Rn;function Bn(t,e){var n=An[t.charCodeAt(e)];return null==n?-1:n}function Pn(t){var e=On();return e.fromInt(t),e}function In(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}_n.ZERO=Pn(0),_n.ONE=Pn(1);var Cn,jn,kn=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),Mn=null;if(null==Mn){Mn=[],jn=0;var Ln=void 0;if("undefined"!=typeof window&&self.crypto&&self.crypto.getRandomValues){var Fn=new Uint32Array(256);for(self.crypto.getRandomValues(Fn),Ln=0;Ln<Fn.length;++Ln)Mn[jn++]=255&Fn[Ln]}var qn=0,Hn=function(t){if((qn=qn||0)>=256||jn>=256)self.removeEventListener?self.removeEventListener("mousemove",Hn,!1):self.detachEvent&&self.detachEvent("onmousemove",Hn);else try{var e=t.x+t.y;Mn[jn++]=255&e,qn+=1}catch(n){}};"undefined"!=typeof window&&(self.addEventListener?self.addEventListener("mousemove",Hn,!1):self.attachEvent&&self.attachEvent("onmousemove",Hn))}function Un(){if(null==Cn){for(Cn=new kn;jn<256;){var t=Math.floor(65536*Math.random());Mn[jn++]=255&t}for(Cn.init(Mn),jn=0;jn<Mn.length;++jn)Mn[jn]=0;jn=0}return Cn.next()}var Kn=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Un()},t}();function $n(t){return function(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&255);return e}(function(t,e){var n,r,s,i,o,a,u,l,c,h,f,p,d=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),g=new Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,c=0;c<t.length;c+=16){for(n=d[0],r=d[1],s=d[2],i=d[3],o=d[4],a=d[5],u=d[6],l=d[7],h=0;h<64;h++)g[h]=h<16?t[h+c]:nr(nr(nr(tr(g[h-2]),g[h-7]),Qn(g[h-15])),g[h-16]),f=nr(nr(nr(nr(l,Xn(o)),Jn(o,a,u)),er[h]),g[h]),p=nr(Yn(n),Wn(n,r,s)),l=u,u=a,a=o,o=nr(i,f),i=s,s=r,r=n,n=nr(f,p);d[0]=nr(n,d[0]),d[1]=nr(r,d[1]),d[2]=nr(s,d[2]),d[3]=nr(i,d[3]),d[4]=nr(o,d[4]),d[5]=nr(a,d[5]),d[6]=nr(u,d[6]),d[7]=nr(l,d[7])}return d}(function(t){for(var e=Array(t.length>>2),n=0;n<e.length;n++)e[n]=0;for(n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}(t),8*t.length))}function zn(t){for(var e="0123456789abcdef",n="",r=0;r<t.length;r++){var s=t.charCodeAt(r);n+=e.charAt(s>>>4&15)+e.charAt(15&s)}return n}function Gn(t,e){return t>>>e|t<<32-e}function Zn(t,e){return t>>>e}function Jn(t,e,n){return t&e^~t&n}function Wn(t,e,n){return t&e^t&n^e&n}function Yn(t){return Gn(t,2)^Gn(t,13)^Gn(t,22)}function Xn(t){return Gn(t,6)^Gn(t,11)^Gn(t,25)}function Qn(t){return Gn(t,7)^Gn(t,18)^Zn(t,3)}function tr(t){return Gn(t,17)^Gn(t,19)^Zn(t,10)}var er=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function nr(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function rr(t,e){if(e<t.length+11)return null;for(var n=[],r=t.length-1;r>=0&&e>0;){var s=t.charCodeAt(r--);s<128?n[--e]=s:s>127&&s<2048?(n[--e]=63&s|128,n[--e]=s>>6|192):(n[--e]=63&s|128,n[--e]=s>>6&63|128,n[--e]=s>>12|224)}n[--e]=0;for(var i=new Kn,o=[];e>2;){for(o[0]=0;0==o[0];)i.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new _n(n)}function sr(t,e,n){for(var r="",s=0;r.length<e;)r+=n(String.fromCharCode.apply(String,t.concat([(4278190080&s)>>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return r}function ir(t,e){var n=$n;if(t.length+64+2>e)throw"Message too long for RSA";var r,s="";for(r=0;r<e-t.length-64-2;r+=1)s+="\0";var i=n("")+s+""+t,o=new Array(32);(new Kn).nextBytes(o);var a=sr(o,i.length,n),u=[];for(r=0;r<i.length;r+=1)u[r]=i.charCodeAt(r)^a.charCodeAt(r);var l=sr(u,o.length,n),c=[0];for(r=0;r<o.length;r+=1)c[r+1]=o[r]^l.charCodeAt(r);return new _n(c.concat(u))}var or=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=Nn(t,16),this.e=parseInt(e,16))},t.prototype.encrypt=function(t,e){void 0===e&&(e=rr);var n=this.n.bitLength()+7>>3,r=e(t,n);if(null==r)return null;var s=this.doPublic(r);if(null==s)return null;for(var i=s.toString(16),o=i.length,a=0;a<2*n-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=Nn(t,16),this.e=parseInt(e,16),this.d=Nn(n,16))},t.prototype.setPrivateEx=function(t,e,n,r,s,i,o,a){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=Nn(t,16),this.e=parseInt(e,16),this.d=Nn(n,16),this.p=Nn(r,16),this.q=Nn(s,16),this.dmp1=Nn(i,16),this.dmq1=Nn(o,16),this.coeff=Nn(a,16))},t.prototype.generate=function(t,e){var n=new Kn,r=t>>1;this.e=parseInt(e,16);for(var s=new _n(e,16);;){for(;this.p=new _n(t-r,1,n),0!=this.p.subtract(_n.ONE).gcd(s).compareTo(_n.ONE)||!this.p.isProbablePrime(10););for(;this.q=new _n(r,1,n),0!=this.q.subtract(_n.ONE).gcd(s).compareTo(_n.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var o=this.p.subtract(_n.ONE),a=this.q.subtract(_n.ONE),u=o.multiply(a);if(0==u.gcd(s).compareTo(_n.ONE)){this.n=this.p.multiply(this.q),this.d=s.modInverse(u),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Nn(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var s="";++r<n.length;){var i=255&n[r];i<128?s+=String.fromCharCode(i):i>191&&i<224?(s+=String.fromCharCode((31&i)<<6|63&n[r+1]),++r):(s+=String.fromCharCode((15&i)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return s}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Kn,s=t>>1;this.e=parseInt(e,16);var i=new _n(e,16),o=this,a=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(_n.ONE),r=o.q.subtract(_n.ONE),s=e.multiply(r);0==s.gcd(i).compareTo(_n.ONE)?(o.n=o.p.multiply(o.q),o.d=i.modInverse(s),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout(function(){n()},0)):setTimeout(a,0)},u=function(){o.q=On(),o.q.fromNumberAsync(s,1,r,function(){o.q.subtract(_n.ONE).gcda(i,function(t){0==t.compareTo(_n.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)})})},l=function(){o.p=On(),o.p.fromNumberAsync(t-s,1,r,function(){o.p.subtract(_n.ONE).gcda(i,function(t){0==t.compareTo(_n.ONE)&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)})})};setTimeout(l,0)};setTimeout(a,0)},t.prototype.sign=function(t,e,n){var r=(ar[n]||"")+e(t).toString(),s=this.n.bitLength()/4,i=function(t,e){if(e<t.length+22)return null;for(var n=e-t.length-6,r="",s=0;s<n;s+=2)r+="ff";return Nn("0001"+r+"00"+t,16)}(r,s);if(null==i)return null;var o=this.doPrivate(i);if(null==o)return null;for(var a=o.toString(16),u=a.length,l=0;l<s-u;l++)a="0"+a;return a},t.prototype.verify=function(t,e,n){var r=Nn(e,16),s=this.doPublic(r);return null==s?null:function(t){for(var e in ar)if(ar.hasOwnProperty(e)){var n=ar[e],r=n.length;if(t.substring(0,r)==n)return t.substring(r)}return t}(s.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}(),ar={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ur(t,e,n){if(!e||!t)throw new Error("extend failed, please check that all dependencies are included.");var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e)}var lr={};void 0!==lr.asn1&&lr.asn1||(lr.asn1={}),lr.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substring(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substring(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",s=0;s<n;s++)r+="f";e=new _n(r,16).xor(t).add(_n.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=lr.asn1,n=e.DERBoolean,r=e.DERInteger,s=e.DERBitString,i=e.DEROctetString,o=e.DERNull,a=e.DERObjectIdentifier,u=e.DEREnumerated,l=e.DERUTF8String,c=e.DERNumericString,h=e.DERPrintableString,f=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,g=e.DERGeneralizedTime,m=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,S=Object.keys(t);if(1!=S.length)throw"key of param shall be only one.";var _=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(t[_]);if("int"==_)return new r(t[_]);if("bitstr"==_)return new s(t[_]);if("octstr"==_)return new i(t[_]);if("null"==_)return new o(t[_]);if("oid"==_)return new a(t[_]);if("enum"==_)return new u(t[_]);if("utf8str"==_)return new l(t[_]);if("numstr"==_)return new c(t[_]);if("prnstr"==_)return new h(t[_]);if("telstr"==_)return new f(t[_]);if("ia5str"==_)return new p(t[_]);if("utctime"==_)return new d(t[_]);if("gentime"==_)return new g(t[_]);if("seq"==_){for(var E=t[_],T=[],w=0;w<E.length;w++){var D=b(E[w]);T.push(D)}return new m({array:T})}if("set"==_){for(E=t[_],T=[],w=0;w<E.length;w++)D=b(E[w]),T.push(D);return new v({array:T})}if("tag"==_){var O=t[_];if("[object Array]"===Object.prototype.toString.call(O)&&3==O.length){var N=b(O[2]);return new y({tag:O[0],explicit:O[1],obj:N})}var x={};if(void 0!==O.explicit&&(x.explicit=O.explicit),void 0!==O.tag&&(x.tag=O.tag),void 0===O.obj)throw"obj shall be specified for 'tag'.";return x.obj=b(O.obj),new y(x)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},lr.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substring(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),s=2;s<t.length;s+=2){var i=("00000000"+parseInt(t.substring(s,s+2),16).toString(2)).slice(-8);r+=i.substring(1,8),"0"==i.substring(0,1)&&(e=e+"."+new _n(r,2).toString(10),r="")}return e},lr.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new _n(t,10).toString(2),s=7-r.length%7;7==s&&(s=0);for(var i="",o=0;o<s;o++)i+="0";for(r=i+r,o=0;o<r.length-1;o+=7){var a=r.substring(o,o+7);o!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",s=t.split("."),i=40*parseInt(s[0])+parseInt(s[1]);r+=e(i),s.splice(0,2);for(var o=0;o<s.length;o++)r+=n(s[o]);return r},lr.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},lr.asn1.DERAbstractString=function(t){lr.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},ur(lr.asn1.DERAbstractString,lr.asn1.ASN1Object),lr.asn1.DERAbstractTime=function(t){lr.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,s=this.localDateToUTC(t),i=String(s.getFullYear());"utc"==e&&(i=i.substring(2,4));var o=i+r(String(s.getMonth()+1),2)+r(String(s.getDate()),2)+r(String(s.getHours()),2)+r(String(s.getMinutes()),2)+r(String(s.getSeconds()),2);if(!0===n){var a=s.getMilliseconds();if(0!=a){var u=r(String(a),3);o=o+"."+(u=u.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,s,i){var o=new Date(Date.UTC(t,e-1,n,r,s,i,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},ur(lr.asn1.DERAbstractTime,lr.asn1.ASN1Object),lr.asn1.DERAbstractStructured=function(t){lr.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},ur(lr.asn1.DERAbstractStructured,lr.asn1.ASN1Object),lr.asn1.DERBoolean=function(){lr.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ur(lr.asn1.DERBoolean,lr.asn1.ASN1Object),lr.asn1.DERInteger=function(t){lr.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=lr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new _n(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},ur(lr.asn1.DERInteger,lr.asn1.ASN1Object),lr.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=lr.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}lr.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var s=t.substring(n,n+8),i=parseInt(s,2).toString(16);1==i.length&&(i="0"+i),r+=i}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},ur(lr.asn1.DERBitString,lr.asn1.ASN1Object),lr.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=lr.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}lr.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},ur(lr.asn1.DEROctetString,lr.asn1.DERAbstractString),lr.asn1.DERNull=function(){lr.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ur(lr.asn1.DERNull,lr.asn1.ASN1Object),lr.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new _n(t,10).toString(2),s=7-r.length%7;7==s&&(s=0);for(var i="",o=0;o<s;o++)i+="0";for(r=i+r,o=0;o<r.length-1;o+=7){var a=r.substring(o,o+7);o!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};lr.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",s=t.split("."),i=40*parseInt(s[0])+parseInt(s[1]);r+=e(i),s.splice(0,2);for(var o=0;o<s.length;o++)r+=n(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=lr.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},ur(lr.asn1.DERObjectIdentifier,lr.asn1.ASN1Object),lr.asn1.DEREnumerated=function(t){lr.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=lr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new _n(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},ur(lr.asn1.DEREnumerated,lr.asn1.ASN1Object),lr.asn1.DERUTF8String=function(t){lr.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},ur(lr.asn1.DERUTF8String,lr.asn1.DERAbstractString),lr.asn1.DERNumericString=function(t){lr.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},ur(lr.asn1.DERNumericString,lr.asn1.DERAbstractString),lr.asn1.DERPrintableString=function(t){lr.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},ur(lr.asn1.DERPrintableString,lr.asn1.DERAbstractString),lr.asn1.DERTeletexString=function(t){lr.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},ur(lr.asn1.DERTeletexString,lr.asn1.DERAbstractString),lr.asn1.DERIA5String=function(t){lr.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},ur(lr.asn1.DERIA5String,lr.asn1.DERAbstractString),lr.asn1.DERUTCTime=function(t){lr.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},ur(lr.asn1.DERUTCTime,lr.asn1.DERAbstractTime),lr.asn1.DERGeneralizedTime=function(t){lr.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},ur(lr.asn1.DERGeneralizedTime,lr.asn1.DERAbstractTime),lr.asn1.DERSequence=function(t){lr.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},ur(lr.asn1.DERSequence,lr.asn1.DERAbstractStructured),lr.asn1.DERSet=function(t){lr.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},ur(lr.asn1.DERSet,lr.asn1.DERAbstractStructured),lr.asn1.DERTaggedObject=function(t){lr.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ur(lr.asn1.DERTaggedObject,lr.asn1.ASN1Object);var cr,hr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fr=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return hr(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(t){var e;if(void 0===rn){var n="0123456789ABCDEF";for(rn={},e=0;e<16;++e)rn[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)rn[n.charAt(e)]=e;for(e=0;e<8;++e)rn[" \f\n\r\t \u2028\u2029".charAt(e)]=-1}var r=[],s=0,i=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=rn[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o,++i>=2?(r[r.length]=s,s=0,i=0):s<<=4}}if(i)throw new Error("Hex encoding incomplete: 4 bits missing");return r}(t):ln.unarmor(t),s=vn.decode(r);if(3===s.sub.length&&(s=s.sub[2].sub[0]),9===s.sub.length){e=s.sub[1].getHexStringValue(),this.n=Nn(e,16),n=s.sub[2].getHexStringValue(),this.e=parseInt(n,16);var i=s.sub[3].getHexStringValue();this.d=Nn(i,16);var o=s.sub[4].getHexStringValue();this.p=Nn(o,16);var a=s.sub[5].getHexStringValue();this.q=Nn(a,16);var u=s.sub[6].getHexStringValue();this.dmp1=Nn(u,16);var l=s.sub[7].getHexStringValue();this.dmq1=Nn(l,16);var c=s.sub[8].getHexStringValue();this.coeff=Nn(c,16)}else{if(2!==s.sub.length)return!1;if(s.sub[0].sub){var h=s.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=Nn(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=s.sub[0].getHexStringValue(),this.n=Nn(e,16),n=s.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(f){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new lr.asn1.DERInteger({int:0}),new lr.asn1.DERInteger({bigint:this.n}),new lr.asn1.DERInteger({int:this.e}),new lr.asn1.DERInteger({bigint:this.d}),new lr.asn1.DERInteger({bigint:this.p}),new lr.asn1.DERInteger({bigint:this.q}),new lr.asn1.DERInteger({bigint:this.dmp1}),new lr.asn1.DERInteger({bigint:this.dmq1}),new lr.asn1.DERInteger({bigint:this.coeff})]};return new lr.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return on(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new lr.asn1.DERSequence({array:[new lr.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new lr.asn1.DERNull]}),e=new lr.asn1.DERSequence({array:[new lr.asn1.DERInteger({bigint:this.n}),new lr.asn1.DERInteger({int:this.e})]}),n=new lr.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new lr.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return on(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(or),pr="undefined"!=typeof process?null===(cr=process.env)||void 0===cr?void 0:cr.npm_package_version:void 0,dr=function(){function t(t){void 0===t&&(t={}),this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=t.key||null}return t.prototype.setKey=function(t){t?(this.log&&this.key,this.key=new fr(t)):!this.key&&this.log},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(an(t))}catch(e){return!1}},t.prototype.encrypt=function(t){try{return on(this.getKey().encrypt(t))}catch(e){return!1}},t.prototype.encryptOAEP=function(t){try{return on(this.getKey().encrypt(t,ir))}catch(e){return!1}},t.prototype.sign=function(t,e,n){void 0===e&&(e=function(t){return t}),void 0===n&&(n="");try{return on(this.getKey().sign(t,e,n))}catch(r){return!1}},t.prototype.signSha256=function(t){return this.sign(t,function(t){return zn($n(t))},"sha256")},t.prototype.verify=function(t,e,n){void 0===n&&(n=function(t){return t});try{return this.getKey().verify(t,an(e),n)}catch(r){return!1}},t.prototype.verifySha256=function(t,e){return this.verify(t,e,function(t){return zn($n(t))})},t.prototype.getKey=function(t){if(!this.key){if(this.key=new fr,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=pr,t}();const gr={data:{key:""}},mr=()=>c(null,null,function*(){let t=l({status:200,message:""},gr);try{const e=(yield Ve("/mbuhx0as4kui",{ajax:1,render:xe(),json:1})).data;t.data={key:e.key}}catch(e){t=l({status:e.status||500,message:e.message},gr)}return t}),vr={data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}},yr={data:{winnerList:[]}};t.GameType=Me,t.api=je,t.cmsListApi=()=>c(null,null,function*(){let t=l({status:200,message:""},Ze);try{const e=(yield Ve("/apis/cmsList",{render:xe(),json:1})).data;t.data={mobileBanner:e.results.mobileBanner.map(t=>t.content)}}catch(e){t=l({status:e.status||500,message:e.message},Ze)}return t}),t.csLinkApi=()=>c(null,null,function*(){var t;let e=l({status:200,message:""},ze);try{const n=(yield Ve("/apis/cslink",{render:xe(),json:1})).data;e.data={liveChat:null!=(t=n.livechat)?t:""}}catch(n){e=l({status:n.status||500,message:n.message},ze)}return e}),t.currentLangApi=()=>c(null,null,function*(){let t=l({status:200,message:""},Ue);try{const e=(yield Ve("/apis/currentLang",{render:xe(),json:1})).data;t.data={lang:e}}catch(e){t=l({status:e.status||500,message:e.message},Ue)}return t}),t.eGameApi=t=>c(null,null,function*(){let e=l({status:200,message:""},Ge);try{const n=(yield Ve(`/apis/egame/json/${t}`,{render:xe(),json:1})).data;e.data={eGameList:n.map(t=>{var e,n,r,s,i,o,a,u,l,c,h,f;return{gameId:null!=(e=t.game_id)?e:"",imgSrc:null!=(n=t.imgSrc)?n:"",imgPf:null!=(r=t.imgPf)?r:"",name:null!=(s=t.name)?s:"",favouriteFlag:1===t.favourite_flag,platformStatusFflag:null!=(i=t.platform_status_Fflag)?i:"",platformFlagName:null!=(o=t.platform_flag_name)?o:"",platformStatusParams:{eb:null!=(a=t.platform_status_params.eb)&&a,fit:null!=(u=t.platform_status_params.fit)&&u,fs:null!=(l=t.platform_status_params.fs)&&l},progressive:null!=(c=t.progressive)?c:"",gameCategory:null!=(h=t.game_category)?h:"",ppid:null!=(f=t.pp_id)?f:""}})}}catch(n){e=l({status:n.status||500,message:n.message},Ge)}return e}),t.fishGamesApi=()=>c(null,null,function*(){let t=l({status:200,message:""},Fe);try{const e=(yield Ve("/apis/fishGames",{render:xe(),json:1})).data;t.data={hotfish:e.hotfish.map(t=>qe(t)),data:e.data.map(t=>qe(t))}}catch(e){t=l({status:e.status||500,message:e.message},Fe)}return t}),t.getLocaleApi=()=>c(null,null,function*(){let t=l({status:200,message:""},$e);try{const e=(yield Ve("/apis/getLocale",{render:xe(),json:1})).data,n=[];Object.entries(e).map(([t,e])=>n.push({code:t,label:e.label})),t.data=n}catch(e){t=l({status:e.status||500,message:e.message},$e)}return t}),t.getLoginKeyApi=mr,t.getSettingApi=t=>c(null,null,function*(){var e,n;let r=l({status:200,message:""},Je);try{const s=(yield Ve("/apis/getSetting",{setting:`${t}`,render:xe(),json:1})).data;r.data={csrf:null!=(e=s.csrf)?e:"",getCaptcha:null!=(n=s.data.CAPTCHA)?n:"",verificationBeforeLogin:"1"===s.data["slide-verification"],publicKey:s.data.encryptkey?s.data.encryptkey.pub.replace(/-----BEGIN PUBLIC KEY-----|-----END PUBLIC KEY-----|\r|\n|=#/g,""):"",concantenatedKey:s.data.encryptkey?Object.keys(s.data.encryptkey.pubarr).join("+"):""}}catch(s){r=l({status:s.status||500,message:s.message},Je)}return r}),t.getWinnerListApi=()=>c(null,null,function*(){let t=l({status:200,message:""},yr);try{const e=(yield Ve("/apis/getWinnerList",{render:xe(),json:1})).data;t.data={winnerList:e.results.notifications}}catch(e){t=l({status:e.status||500,message:e.message},yr)}return t}),t.homeApi=()=>c(null,null,function*(){let t=l({status:200,message:""},ke);try{const e=(yield Ve("/apis/home",{render:xe(),json:1})).data;t.data={game:Object.fromEntries(Object.entries(e.game).map(([t,e])=>[t,e.map(t=>(t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g,m,v,y,b,S,_,E,T,w,D,O,N,x,V,R,A,B,P,I,C,j,k;return{id:null!=(e=t.id)?e:0,idPlatformMaster:null!=(n=t.id_PlatformMaster)?n:0,idProductMaster:null!=(r=t.id_ProductMaster)?r:0,name:null!=(s=t.name)?s:"",shortName:null!=(i=t.shortName)?i:"",img:null!=(o=t.img)?o:"",mobileUrl:null!=(a=t.mobileUrl)?a:"",url:null!=(u=t.url)?u:"",desc:null!=(l=t.desc)?l:"",seq:null!=(c=t.seq)?c:0,flag:null!=(h=t.flag)?h:0,status:null!=(f=t.status)?f:"",createdBy:null!=(p=t.created_by)?p:0,createdOn:null!=(d=t.created_on)?d:"",categoryID:null!=(g=t.categoryid)?g:0,com:null!=(m=t.com)?m:"",cur:null!=(v=t.cur)?v:"",pt:null!=(y=t.pt)?y:"",ppName:null!=(b=t.pp_name)?b:"",ppImage:null!=(S=t.pp_image)?S:"",platformCode:null!=(_=t.platform_code)?_:"",platformName:null!=(E=t.platform_name)?E:"",classIcon:null!=(T=t.class_icon)?T:"",productCode:null!=(w=t.product_code)?w:"",productName:null!=(D=t.product_name)?D:"",gameID:null!=(O=t.game_id)?O:0,fAuth:null!=(N=t.fAuth)&&N,platformStatusParams:{eb:null!=(x=t.platform_status_params.eb)&&x,fit:null!=(V=t.platform_status_params.fit)&&V,fs:null!=(R=t.platform_status_params.fs)&&R},loginFlag:"1"===t.login_flag,link:null!=(A=t.link)?A:"",favouriteFlag:1===t.favourite_flag,platformStatusFlag:null!=(B=t.platform_status_flag)?B:"",platformFlagName:null!=(P=t.platform_flag_name)?P:"",homeLogo:null!=(I=t.home_logo)?I:"",imgPf:null!=(C=t.imgPf)?C:"",imgSport:null!=(j=t.imgSport)?j:"",imgTemplate:null!=(k=t.imgTemplate)?k:""}})(t))])),mobileBanner:e.mobileBanner.map(t=>{var e,n,r,s,i,o,a;return{name:null!=(e=t.name)?e:"",content:null!=(n=t.content)?n:"",link:null!=(r=t.link)?r:"",linkTarget:null!=(s=t.link_target)?s:"",updatedOn:null!=(i=t.updated_on)?i:"",idCmsCategory:null!=(o=t.id_cms_category)?o:0,contentOrg:null!=(a=t.content_org)?a:""}}),announcement:e.announcement.map(t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g;return{announcementIndex:null!=(e=t.announcement_index)?e:0,announcementEnglish:null!=(n=t.announcement_english)?n:"",announcementSimplified:null!=(r=t.announcement_simplified)?r:"",announcementTraditional:null!=(s=t.announcement_traditional)?s:"",announcementMalay:null!=(i=t.announcement_malay)?i:"",announcementStatus:"1"===t.announcement_status,announcementShow:"1"===t.announcement_show,announcementAlert:"1"===t.announcement_alert,announcementUser:"1"===t.announcement_user,announcementSequence:null!=(o=t.announcement_sequence)?o:0,announcementCompany:"1"===t.announcement_company,companyIndex:null!=(a=t.companyindex)?a:0,announcementLastUpdated:null!=(u=t.announcement_lastupdated)?u:"",announcementDateCreated:null!=(l=t.announcement_datecreated)?l:"",announcementSmaid:null!=(c=t.announcement_smaid)?c:"",annTimer:null!=(h=t.ann_timer)?h:"",annStart:null!=(f=t.ann_start)?f:"",annEnd:null!=(p=t.ann_end)?p:"",grp:null!=(d=t.grp)?d:"",time:null!=(g=t.time)?g:""}}),alertAnnouncement:e.alert_announcement.map(t=>{var e,n;return{announcementDateCreated:null!=(e=t.announcement_datecreated)?e:"",announcementSimplified:null!=(n=t.announcement_simplified)?n:""}})}}catch(e){t=l({status:e.status||500,message:e.message},ke)}return t}),t.hotGamesApi=()=>c(null,null,function*(){var t,e,n,r,s,i,o,a,u;let c=l({status:200,message:""},Le);try{const l=(yield Ve("/apis/hotGames",{render:xe(),json:1})).data;c.data={currentPage:null!=(t=l.current_page)?t:0,data:l.data.map(t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g,m,v;return{id:null!=(e=t.id)?e:0,name:null!=(n=t.name)?n:"",pfid:null!=(r=t.pfid)?r:0,ppname:null!=(s=t.ppname)?s:"",code:null!=(i=t.code)?i:"",img:null!=(o=t.img)?o:"",progressive:null!=(a=t.progressive)?a:"",ppid:null!=(u=t.ppid)?u:0,notry:1===t.notry,productCode:null!=(l=t.product_code)?l:"",imgSrc:null!=(c=t.imgSrc)?c:"",imgPf:null!=(h=t.imgPf)?h:"",favouriteFlag:1===t.favourite_flag,platformStatusFlag:null!=(f=t.platform_status_flag)?f:"",platformFlagName:null!=(p=t.platform_flag_name)?p:"",platformStatusParams:{eb:null!=(d=t.platform_status_params.eb)&&d,fit:null!=(g=t.platform_status_params.fit)&&g,fs:null!=(m=t.platform_status_params.fs)&&m},gameId:null!=(v=t.game_id)?v:0}}),from:null!=(e=l.from)?e:0,lastPage:null!=(n=l.last_page)?n:0,nextPageUrl:null!=(r=l.next_page_url)?r:"",path:null!=(s=l.path)?s:"",perPage:null!=(i=l.per_page)?i:0,prevPageUrl:null!=(o=l.prev_page_url)?o:"",to:null!=(a=l.to)?a:0,total:null!=(u=l.total)?u:0}}catch(h){c=l({status:h.status||500,message:h.message},Le)}return c}),t.loginApi=(t,e,n,r,s,i,o,a)=>c(null,null,function*(){var u,c,h,f,p,d,g,m;let v=l({status:200,message:""},vr);const y=t,b=e,S=n,_=s;try{let t;i&&(t=(yield mr()).data);const e=new dr;e.setPublicKey(o);let n=r.host.split(":")[0];const s=e.encrypt(n.trim());n=s&&n.length<53?s:n.trim();const l={};l.fr_username=e.encrypt(y.trim()),l.fr_password=e.encrypt(b.trim()),l.fr_gdcode=S,l.isApp=_,l.domain=n,l._token=a,l.json=1,l.encrypt=1,t&&Object.assign(l,t);const E=(yield Re("/kdink8anl8z3",l,{render:xe(),json:1})).data;v.data={msg:null!=(u=E.msg)?u:"",accessToken:null!=(c=E.access_token)?c:"",fullName:null!=(h=E.fullname)?h:"",unreadMailCount:null!=(f=E.news)?f:"",status:null!=(p=E.status)?p:"",username:null!=(d=E.username)?d:"",walletAmount:null!=(g=E.wallet)?g:"",captcha:null!=(m=E.captcha)?m:""}}catch(E){v=l({status:E.status||500,message:E.message},vr)}return v}),t.promotionApi=()=>c(null,null,function*(){let t=l({status:200,message:""},Ke);try{const e=(yield Ve("/apis/promotion",{render:xe(),json:1})).data;t.data={objList:e.objList.map(t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g,m,v,y,b,S,_,E,T,w,D,O,N,x;return{promoIndex:null!=(e=t.promoindex)?e:0,type:null!=(n=t.type)?n:0,thumb:null!=(r=t.thumb)?r:0,title:null!=(s=t.title)?s:"",displayTime:null!=(i=t.display_time)?i:"",handle:null!=(o=t.handle)?o:"",content:null!=(a=t.content)?a:"",langList:null!=(u=t.lang_list)?u:"",agentList:null!=(l=t.agent_list)?l:"",dateCreated:null!=(c=t.datecreated)?c:"",updateBy:null!=(h=t.updateby)?h:"",lastUpdated:null!=(f=t.lastupdated)?f:"",sequence:null!=(p=t.sequence)?p:0,status:1===t.status,timer:null!=(d=t.timer)?d:"",stime:null!=(g=t.stime)?g:"",etime:null!=(m=t.etime)?m:"",smaid:null!=(v=t.smaid)?v:"",companyIndex:null!=(y=t.companyindex)?y:"",fileName:null!=(b=t.filename)?b:"",version:null!=(S=t.version)?S:"",categoryName:null!=(_=t.category_name)?_:"",barImg:null!=(E=t.bar_img)?E:"",buttonImg:null!=(T=t.button_img)?T:"",promoImg:null!=(w=t.promo_image)?w:"",catId:null!=(D=t.catid)?D:"",imageType:null!=(O=t.image_type)?O:"",image:null!=(N=t.image)?N:"",isLink:t.isLink,latestUpdate:null!=(x=t.latestupdate)?x:""}}),promoCat:e.promoCat.map(t=>{var e,n,r,s;return{catId:null!=(e=t.catid)?e:0,name:null!=(n=t.name)?n:"",barImg:null!=(r=t.bar_img)?r:"",buttonImg:null!=(s=t.button_img)?s:""}}),resize:e.resize}}catch(e){t=l({status:e.status||500,message:e.message},Ke)}return t}),t.trialGamesApi=()=>c(null,null,function*(){let t=l({status:200,message:""},He);try{const e=(yield Ve("/apis/trialGames",{render:xe(),json:1})).data;t.data=e.map(t=>{var e,n;return{ppid:null!=(e=t.ppid)?e:0,ppname:null!=(n=t.ppname)?n:"",games:t.games.map(e=>{var n,r,s,i,o,a,u,l,c,h,f,p;return{id:null!=(n=e.id)?n:0,name:null!=(r=e.name)?r:"",img:null!=(s=e.img)?s:"",progressive:null!=(i=e.progressive)?i:"",notry:1===e.notry,imgSrc:null!=(o=e.imgSrc)?o:"",imgPf:null!=(a=e.imgPf)?a:"",favouriteFlag:1===e.favourite_flag,platformStatusFflag:null!=(u=e.platform_status_Fflag)?u:"",platformFlagName:null!=(l=e.platform_flag_name)?l:"",platformStatusParams:{eb:null!=(c=e.platform_status_params.eb)&&c,fit:null!=(h=e.platform_status_params.fit)&&h,fs:null!=(f=e.platform_status_params.fs)&&f},ppname:null!=(p=t.ppname)?p:""}})}})}catch(e){t=l({status:e.status||500,message:e.message},He)}return t}),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announcementApi.d.ts","sourceRoot":"","sources":["../../../src/api/announcement/announcementApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAW/D,eAAO,MAAM,eAAe,QAAa,OAAO,CAAC,oBAAoB,CAwCpE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/announcement/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseType } from '../../util/type';
|
|
2
|
+
export type AnnouncementResponse = BaseType & {
|
|
3
|
+
data: AnnouncementInfo[];
|
|
4
|
+
};
|
|
5
|
+
export type AnnouncementInfo = {
|
|
6
|
+
alert: boolean;
|
|
7
|
+
show: boolean;
|
|
8
|
+
status: boolean;
|
|
9
|
+
announcementId: number;
|
|
10
|
+
content: string;
|
|
11
|
+
dateCreated: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/announcement/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG;IAC5C,IAAI,EAAE,gBAAgB,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmsListApi.d.ts","sourceRoot":"","sources":["../../../src/api/cmsList/cmsListApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAaxC,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,eAAe,CA6B1D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/cmsList/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/cmsList/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csLinkApi.d.ts","sourceRoot":"","sources":["../../../src/api/csLink/csLinkApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAavC,eAAO,MAAM,SAAS,QAAa,OAAO,CAAC,cAAc,CA6BxD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/csLink/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/csLink/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG;IACtC,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currentLangApi.d.ts","sourceRoot":"","sources":["../../../src/api/currentLang/currentLangApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAa5C,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,mBAAmB,CA6BlE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/currentLang/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/currentLang/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG;IAC3C,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA"}
|