50p82u21t54k 0.0.26 → 0.0.27
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.es.js +2472 -506
- package/dist/50p82u21t54k.umd.js +26 -1
- package/dist/login/method.d.ts +2 -3
- package/dist/login/method.d.ts.map +1 -1
- package/dist/login/type.d.ts +0 -3
- package/dist/login/type.d.ts.map +1 -1
- package/dist/main.d.ts +1 -0
- package/package.json +1 -1
package/dist/50p82u21t54k.umd.js
CHANGED
|
@@ -1 +1,26 @@
|
|
|
1
|
-
(function(l,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],_):(l=typeof globalThis<"u"?globalThis:l||self,_(l["50p82u21t54k"]={},l.axios,l.Vue,l.CryptoJS))})(this,function(l,_,I,m){"use strict";const v=Object.freeze(Object.defineProperty({__proto__:null,get DefaultHotGamesResponse(){return S},get getHotGames(){return V}},Symbol.toStringTag,{value:"Module"})),E=Object.freeze(Object.defineProperty({__proto__:null,get DefaultFishGamesResponse(){return b},get getFishGames(){return U}},Symbol.toStringTag,{value:"Module"})),R=Object.freeze(Object.defineProperty({__proto__:null,get DefaultTrialGamesResponse(){return P},get getTrialGames(){return H}},Symbol.toStringTag,{value:"Module"})),A=Object.freeze(Object.defineProperty({__proto__:null,get DefaultPromotionResponse(){return h},get getPromotion(){return J}},Symbol.toStringTag,{value:"Module"})),D=Object.freeze(Object.defineProperty({__proto__:null,get CmsId(){return L},get DefaultCmsListResponse(){return O},get getCmsList(){return x}},Symbol.toStringTag,{value:"Module"})),N=Object.freeze(Object.defineProperty({__proto__:null,get DefaultHomeResponse(){return K},get GameType(){return w},get getHome(){return ae}},Symbol.toStringTag,{value:"Module"})),j=Object.freeze(Object.defineProperty({__proto__:null,get DefaultCurrentLangResponse(){return $},get getCurrentLang(){return se}},Symbol.toStringTag,{value:"Module"})),T=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLocaleResponse(){return Y},get getGetLocale(){return ne}},Symbol.toStringTag,{value:"Module"})),k=Object.freeze(Object.defineProperty({__proto__:null,get DefaultCsLinkResponse(){return X},get getCsLink(){return re}},Symbol.toStringTag,{value:"Module"})),M=Object.freeze(Object.defineProperty({__proto__:null,get DefaultEGameResponse(){return C},get getEGame(){return oe}},Symbol.toStringTag,{value:"Module"})),B=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetSettingResponse(){return Q},get getGetSetting(){return ue}},Symbol.toStringTag,{value:"Module"})),F=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLoginKeyResponse(){return W},get DefaultLoginResponse(){return Z},get getLoginKey(){return le},get submitLogin(){return ce}},Symbol.toStringTag,{value:"Module"})),c=_.create({baseURL:"",timeout:5e3,headers:{"Content-Type":"application/json"}});c.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),c.interceptors.response.use(e=>e,e=>{const s={status:null,message:"An error occurred"};return e.response?(s.status=e.response.status,s.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(s)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(s)});const z=I.ref("");function o(){return z.value===""?0:1}const ee={home:N,hotGames:v,fishGames:E,trialGames:R,currentLang:j,promotion:A,getLocale:T,csLink:k,eGame:M,cmsList:D,getSetting:B,login:F},te={install(e){e.config.globalProperties.$library=ee}},p=e=>{try{const s=JSON.parse(m.AES.decrypt(e,z.value,{format:{stringify:t=>{const a={ct:t.ciphertext.toString(m.enc.Base64)};return t.iv&&(a.iv=t.iv.toString()),t.salt&&(a.s=t.salt.toString()),JSON.stringify(a)},parse:t=>{const a=JSON.parse(t),r=m.lib.CipherParams.create({ciphertext:m.enc.Base64.parse(a.ct)});return a.iv&&(r.iv=m.enc.Hex.parse(a.iv)),a.s&&(r.salt=m.enc.Hex.parse(a.s)),r}}}).toString(m.enc.Utf8));return s!==""?JSON.parse(s):s}catch(s){return console.error(s),""}},S={status:200,message:"",data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}};async function V(){const e=S;try{const s=await c.get("/apis/hotGames",{params:{render:o()}});let t;return o()?t=JSON.parse(p(s.data)):t=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.data={currentPage:t.current_page??0,data:t.data.map(a=>({id:a.id??0,name:a.name??"",pfid:a.pfid??0,ppname:a.ppname??"",code:a.code??"",img:a.img??"",progressive:a.progressive??"",ppid:a.ppid??0,notry:a.notry===1,productCode:a.product_code??"",imgSrc:a.imgSrc??"",imgPf:a.imgPf??"",favouriteFlag:a.favourite_flag===1,platformStatusFlag:a.platform_status_flag??"",platformFlagName:a.platform_flag_name??"",platformStatusParams:{eb:a.platform_status_params.eb??!1,fit:a.platform_status_params.fit??!1,fs:a.platform_status_params.fs??!1},gameId:a.game_id??0})),from:t.from??0,lastPage:t.last_page??0,nextPageUrl:t.next_page_url??"",path:t.path??"",perPage:t.per_page??0,prevPageUrl:t.prev_page_url??"",to:t.to??0,total:t.total??0},e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}const b={status:200,message:"",data:{hotfish:[],data:[]}};async function U(){const e=b;try{const s=await c.get("/apis/fishGames",{params:{render:o()}});let t;return o()?t=JSON.parse(p(s.data)):t=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.data={hotfish:t.hotfish.map(a=>q(a)),data:t.data.map(a=>q(a))},e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}const q=e=>({id:e.id??0,name:e.name??"",ppid:e.pp_id??"",img:e.img??"",desc:e.desc??"",ppname:e.pp_name??"",platformCode:e.platform_code??"",code:e.code??"",flag:e.flag??0,gameId:e.game_id??0,imgSrc:e.imgSrc??"",imgPf:e.imgPf??"",favouriteFlag:e.favourite_flag===1,platformStatusFflag:e.platform_status_Fflag??"",platformFlagName:e.platform_flag_name??"",platformStatusParams:{eb:e.platform_status_params.eb??!1,fit:e.platform_status_params.fit??!1,fs:e.platform_status_params.fs??!1}}),P={status:200,message:"",data:[]};async function H(){const e=P;try{const s=await c.get("/apis/trialGames",{params:{render:o()}});let t;return o()?t=JSON.parse(p(s.data)):t=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.data=t.map(a=>({ppid:a.ppid??0,ppname:a.ppname??"",games:a.games.map(r=>({id:r.id??0,name:r.name??"",img:r.img??"",progressive:r.progressive??"",notry:r.notry===1,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},ppname:a.ppname??""}))})),e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}const h={status:200,message:"",data:{objList:[],promoCat:[],resize:0}};async function J(){const e=h;try{const s=await c.get("/apis/promotion",{params:{render:o()}});let t;return o()?t=JSON.parse(p(s.data)):t=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.data={objList:t.objList.map(a=>({promoIndex:a.promoindex??0,type:a.type??0,thumb:a.thumb??0,title:a.title??"",displayTime:a.display_time??"",handle:a.handle??"",content:a.content??"",langList:a.lang_list??"",agentList:a.agent_list??"",dateCreated:a.datecreated??"",updateBy:a.updateby??"",lastUpdated:a.lastupdated??"",sequence:a.sequence??0,status:a.status===1,timer:a.timer??"",stime:a.stime??"",etime:a.etime??"",smaid:a.smaid??"",companyIndex:a.companyindex??"",fileName:a.filename??"",version:a.version??"",categoryName:a.category_name??"",barImg:a.bar_img??"",buttonImg:a.button_img??"",promoImg:a.promo_image??"",catId:a.catid??"",imageType:a.image_type??"",image:a.image??"",isLink:a.isLink,latestUpdate:a.latestupdate??""})),promoCat:t.promoCat.map(a=>({catId:a.catid??0,name:a.name??"",barImg:a.bar_img??"",buttonImg:a.button_img??""})),resize:t.resize},e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}var L=(e=>(e[e.AllCategories=0]="AllCategories",e[e.Lotto=2]="Lotto",e[e.LiveCasino=3]="LiveCasino",e[e.SlotGames=4]="SlotGames",e[e.SportsBetting=5]="SportsBetting",e[e.LatestAd=7]="LatestAd",e[e.Promotions=8]="Promotions",e[e.MobileBetting=9]="MobileBetting",e[e.ESports=12]="ESports",e[e.CardGames=13]="CardGames",e[e.FishingGames=14]="FishingGames",e[e.BottomRightAd=16]="BottomRightAd",e[e.LotteryActivity=18]="LotteryActivity",e[e.HomepagePopup=101]="HomepagePopup",e[e.LeftAd=102]="LeftAd",e[e.RightAd=103]="RightAd",e[e.MobileAd=104]="MobileAd",e[e.MobilePopup=105]="MobilePopup",e[e.BottomLeftAd=106]="BottomLeftAd",e[e.InfoGallery=109]="InfoGallery",e[e.AgentBackendAd=114]="AgentBackendAd",e[e.CheckInBanner=123]="CheckInBanner",e[e.PlatformActivities=128]="PlatformActivities",e[e.LotterySlogan=130]="LotterySlogan",e[e.MobileLotterySlogan=131]="MobileLotterySlogan",e[e.PointsMallSlogan=135]="PointsMallSlogan",e))(L||{});const O={status:200,message:"",data:{cmsList:[]}};async function x(e){const s=O;try{const t=await c.get(`/apis/cmsList?id=${e}`,{params:{render:o()}});let a;return o()?a=JSON.parse(p(t.data)):a=t.data,t.status!=200?(s.status=t.status,s.message="",s):(s.data={cmsList:a.cmslist.map(r=>({name:r.name??"",content:r.content??"",link:r.link??"",linkTarget:r.link_target??"",updatedOn:r.updated_on??"",idCmsCategory:r.id_cms_category??0,contentOrg:r.content_org??"",linkOrg:r.link_org??""}))},s)}catch(t){const a=t;return s.status=a.status||500,s.message=a.message,s}}const K={status:200,message:"",data:{game:{SPORT:[],SPECIAL:[],PVP:[],LIVE:[],EVENT:[],ESPORT:[],EGAME:[],BINGO:[]},mobileBanner:[],announcement:[],alertAnnouncement:[],hotGames:S,fishGames:b,trialGames:P,promotion:h,cmsList:O}};async function ae(){const e=K;try{const[s,t,a,r,y,G]=await Promise.all([c.get("/apis/home",{params:{render:o()}}),V(),U(),H(),J(),x(L.LatestAd)]);let u;return o()?u=JSON.parse(p(s.data)):u=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.data={game:{SPORT:u.game.SPORT.map(n=>f(n)),SPECIAL:u.game.SPECIAL.map(n=>f(n)),PVP:u.game.PVP.map(n=>f(n)),LIVE:u.game.LIVE.map(n=>f(n)),EVENT:u.game.EVENT.map(n=>f(n)),ESPORT:u.game.ESPORT.map(n=>f(n)),EGAME:u.game.EGAME.map(n=>f(n)),BINGO:u.game.BINGO.map(n=>f(n))},mobileBanner:u.mobileBanner.map(n=>({name:n.name??"",content:n.content??"",link:n.link??"",linkTarget:n.link_target??"",updatedOn:n.updated_on??"",idCmsCategory:n.id_cms_category??0,contentOrg:n.content_org??""})),announcement:u.announcement.map(n=>({announcementIndex:n.announcement_index??0,announcementEnglish:n.announcement_english??"",announcementSimplified:n.announcement_simplified??"",announcementTraditional:n.announcement_traditional??"",announcementMalay:n.announcement_malay??"",announcementStatus:n.announcement_status==="1",announcementShow:n.announcement_show==="1",announcementAlert:n.announcement_alert==="1",announcementUser:n.announcement_user==="1",announcementSequence:n.announcement_sequence??0,announcementCompany:n.announcement_company==="1",companyIndex:n.companyindex??0,announcementLastUpdated:n.announcement_lastupdated??"",announcementDateCreated:n.announcement_datecreated??"",announcementSmaid:n.announcement_smaid??"",annTimer:n.ann_timer??"",annStart:n.ann_start??"",annEnd:n.ann_end??"",grp:n.grp??"",time:n.time??""})),alertAnnouncement:u.alert_announcement.map(n=>({announcementDateCreated:n.announcement_datecreated??"",announcementSimplified:n.announcement_simplified??""})),hotGames:t,fishGames:a,trialGames:r,promotion:y,cmsList:G},e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}const f=e=>({id:e.id??0,idPlatformMaster:e.id_PlatformMaster??0,idProductMaster:e.id_ProductMaster??0,name:e.name??"",shortName:e.shortName??"",img:e.img??"",mobileUrl:e.mobileUrl??"",url:e.url??"",desc:e.desc??"",seq:e.seq??0,flag:e.flag??0,status:e.status??"",createdBy:e.created_by??0,createdOn:e.created_on??"",categoryID:e.categoryid??0,com:e.com??"",cur:e.cur??"",pt:e.pt??"",ppName:e.pp_name??"",ppImage:e.pp_image??"",platformCode:e.platform_code??"",platformName:e.platform_name??"",classIcon:e.class_icon??"",productCode:e.product_code??"",productName:e.product_name??"",gameID:e.game_id??0,fAuth:e.fAuth??!1,platformStatusParams:{eb:e.platform_status_params.eb??!1,fit:e.platform_status_params.fit??!1,fs:e.platform_status_params.fs??!1},loginFlag:e.login_flag==="1",link:e.link??"",favouriteFlag:e.favourite_flag===1,platformStatusFlag:e.platform_status_flag??"",platformFlagName:e.platform_flag_name??"",homeLogo:e.home_logo??"",imgPf:e.imgPf??"",imgSport:e.imgSport??"",imgTemplate:e.imgTemplate??""});var w=(e=>(e.SPORT="SPORT",e.SPECIAL="SPECIAL",e.PVP="PVP",e.LIVE="LIVE",e.EVENT="EVENT",e.ESPORT="ESPORT",e.EGAME="EGAME",e.BINGO="BINGO",e))(w||{});const $={status:200,message:"",data:""};async function se(){const e=$;try{const s=await c.get("/apis/currentLang",{params:{render:o()}});let t;return o()?t=JSON.parse(p(s.data)):t=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.data=t,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}const Y={status:200,message:"",data:[]};async function ne(){const e=Y;try{const s=await c.get("/apis/getLocale",{params:{render:o()}});let t;return o()?t=JSON.parse(p(s.data)):t=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.data=[{code:"en",label:t.en.label??""},{code:"zh",label:t.zh.label??""},{code:"ms",label:t.ms.label??""}],e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}const X={status:200,message:"",data:{liveChat:""}};async function re(){const e=X;try{const s=await c.get("/apis/cslink",{params:{render:o()}});let t;return o()?t=JSON.parse(p(s.data)):t=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.data={liveChat:t.livechat??""},e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}const C={status:200,message:"",data:[]};async function oe(e){const s=C;try{const t=await c.get(`/apis/egame/json/${e}`,{params:{render:o()}});let a;return o()?a=JSON.parse(p(t.data)):a=t.data,t.status!=200?(s.status=t.status,s.message="",s):(s.data=a.map(r=>({gameId:r.game_id??"",imgSrc:r.imgSrc??"",imgPf:r.imgPf??"",name:r.name??"",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},progressive:r.progressive??"",gameCategory:r.game_category??"",ppid:r.pp_id??""})),s)}catch(t){const a=t;return s.status=a.status||500,s.message=a.message,s}}const Q={status:200,message:"",data:{csrf:"",getCaptcha:"",verificationBeforeLogin:!1,publicKey:"",concantenatedKey:""}};async function ue(e){const s=Q;try{const t=await c.get("/apis/getSetting",{params:{render:o(),setting:e}});let a;return o()?a=JSON.parse(p(t.data)):a=t.data,t.status!=200?(s.status=t.status,s.message="",s):(s.data={csrf:a.csrf,getCaptcha:a.data.CAPTCHA??"",verificationBeforeLogin:a.data["slide-verification"]==="1",publicKey:a.data.encryptkey.pub.replace(/-----BEGIN PUBLIC KEY-----|-----END PUBLIC KEY-----|\r|\n|=#/g,""),concantenatedKey:Object.keys(a.data.encryptkey.pubarr).join("+")},s)}catch(t){const a=t;return s.status=a.status||500,s.message=a.message,s}}const W={status:200,message:"",key:""},Z={status:200,message:"",data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}};async function le(){const e=W;try{const s=await c.get("/mbuhx0as4kui?ajax=1",{params:{render:o()}});let t;return o()?t=JSON.parse(p(s.data)):t=s.data,s.status!=200?(e.status=s.status,e.message="",e):(e.key=t.key,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message,e}}async function ce(e,s,t,a,r,y,G){const u=Z,n=e,pe=s,ge=t,ie=a,fe=r;try{const g={};g.fr_username=n,g.fr_password=pe,g.fr_gdcode=ge,g.isApp=fe,g.domain=ie,g._token=y,g.json=1,g.encrypt=1;const d=await c.post("/kdink8anl8z3",{headers:{"X-CSRF-TOKEN":y},params:{render:o()},data:g,key:y});let i;return o()?i=JSON.parse(p(d.data)):i=d.data,d.status!=200?(u.status=d.status,u.message="",u):(u.data={msg:i.msg??"",accessToken:i.access_token??"",fullName:i.fullname??"",unreadMailCount:i.news??"",status:i.status??"",username:i.username??"",walletAmount:i.wallet??"",captcha:G??""},u)}catch(g){const d=g;return u.status=d.status||500,u.message=d.message,u}}l.Repository=te,l.cmsList=D,l.csLink=k,l.currentLang=j,l.eGame=M,l.fishGames=E,l.getLocale=T,l.getSetting=B,l.home=N,l.hotGames=v,l.login=F,l.promotion=A,l.trialGames=R,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(E,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],Y):(E=typeof globalThis<"u"?globalThis:E||self,Y(E["50p82u21t54k"]={},E.axios,E.Vue,E.CryptoJS))})(this,function(E,Y,fe,G){"use strict";const Et=Object.freeze(Object.defineProperty({__proto__:null,get DefaultHotGamesResponse(){return ft},get getHotGames(){return It}},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultFishGamesResponse(){return ht},get getFishGames(){return Mt}},Symbol.toStringTag,{value:"Module"})),wt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultTrialGamesResponse(){return lt},get getTrialGames(){return jt}},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,get DefaultPromotionResponse(){return ct},get getPromotion(){return kt}},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,get CmsId(){return pt},get DefaultCmsListResponse(){return gt},get getCmsList(){return qt}},Symbol.toStringTag,{value:"Module"})),xt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultHomeResponse(){return Ht},get GameType(){return Gt},get getHome(){return ce}},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,get DefaultCurrentLangResponse(){return Ct},get getCurrentLang(){return pe}},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLocaleResponse(){return Ut},get getGetLocale(){return ge}},Symbol.toStringTag,{value:"Module"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultCsLinkResponse(){return Kt},get getCsLink(){return de}},Symbol.toStringTag,{value:"Module"})),Pt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultEGameResponse(){return zt},get getEGame(){return ve}},Symbol.toStringTag,{value:"Module"})),Nt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetSettingResponse(){return Jt},get getGetSetting(){return Zt}},Symbol.toStringTag,{value:"Module"})),Vt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLoginKeyResponse(){return He},get DefaultLoginResponse(){return ue},get submitLogin(){return Ge}},Symbol.toStringTag,{value:"Module"})),R=Y.create({baseURL:"",timeout:5e3,headers:{"Content-Type":"application/json"}});R.interceptors.request.use(r=>r,r=>(console.error("Error request:",r.response),Promise.reject(r))),R.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=fe.ref("");function y(){return Lt.value===""?0:1}const he={home:xt,hotGames:Et,fishGames:Dt,trialGames:wt,currentLang:Ot,promotion:_t,getLocale:At,csLink:Bt,eGame:Pt,cmsList:Rt,getSetting:Nt,login:Vt},le={install(r){r.config.globalProperties.$library=he}},O=r=>{try{const t=JSON.parse(G.AES.decrypt(r,Lt.value,{format:{stringify:e=>{const n={ct:e.ciphertext.toString(G.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=G.lib.CipherParams.create({ciphertext:G.enc.Base64.parse(n.ct)});return n.iv&&(s.iv=G.enc.Hex.parse(n.iv)),n.s&&(s.salt=G.enc.Hex.parse(n.s)),s}}}).toString(G.enc.Utf8));return t!==""?JSON.parse(t):t}catch(t){return console.error(t),""}},ft={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=ft;try{const t=await R.get("/apis/hotGames",{params:{render:y()}});let e;return y()?e=JSON.parse(O(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 ht={status:200,message:"",data:{hotfish:[],data:[]}};async function Mt(){const r=ht;try{const t=await R.get("/apis/fishGames",{params:{render:y()}});let e;return y()?e=JSON.parse(O(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}}),lt={status:200,message:"",data:[]};async function jt(){const r=lt;try{const t=await R.get("/apis/trialGames",{params:{render:y()}});let e;return y()?e=JSON.parse(O(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 ct={status:200,message:"",data:{objList:[],promoCat:[],resize:0}};async function kt(){const r=ct;try{const t=await R.get("/apis/promotion",{params:{render:y()}});let e;return y()?e=JSON.parse(O(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 pt=(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))(pt||{});const gt={status:200,message:"",data:{cmsList:[]}};async function qt(r){const t=gt;try{const e=await R.get(`/apis/cmsList?id=${r}`,{params:{render:y()}});let n;return y()?n=JSON.parse(O(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:ft,fishGames:ht,trialGames:lt,promotion:ct,cmsList:gt}};async function ce(){const r=Ht;try{const[t,e,n,s,i,o]=await Promise.all([R.get("/apis/home",{params:{render:y()}}),It(),Mt(),jt(),kt(),qt(pt.LatestAd)]);let a;return y()?a=JSON.parse(O(t.data)):a=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={game:{SPORT:a.game.SPORT.map(u=>j(u)),SPECIAL:a.game.SPECIAL.map(u=>j(u)),PVP:a.game.PVP.map(u=>j(u)),LIVE:a.game.LIVE.map(u=>j(u)),EVENT:a.game.EVENT.map(u=>j(u)),ESPORT:a.game.ESPORT.map(u=>j(u)),EGAME:a.game.EGAME.map(u=>j(u)),BINGO:a.game.BINGO.map(u=>j(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 j=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 pe(){const r=Ct;try{const t=await R.get("/apis/currentLang",{params:{render:y()}});let e;return y()?e=JSON.parse(O(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 Ut={status:200,message:"",data:[]};async function ge(){const r=Ut;try{const t=await R.get("/apis/getLocale",{params:{render:y()}});let e;return y()?e=JSON.parse(O(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 Kt={status:200,message:"",data:{liveChat:""}};async function de(){const r=Kt;try{const t=await R.get("/apis/cslink",{params:{render:y()}});let e;return y()?e=JSON.parse(O(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 ve(r){const t=zt;try{const e=await R.get(`/apis/egame/json/${r}`,{params:{render:y()}});let n;return y()?n=JSON.parse(O(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 Zt(r){const t=Jt;try{const e=await R.get("/apis/getSetting",{params:{render:y(),setting:r}});let n;return y()?n=JSON.parse(O(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.pub.replace(/-----BEGIN PUBLIC KEY-----|-----END PUBLIC KEY-----|\r|\n|=#/g,""),concantenatedKey: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 me="0123456789abcdefghijklmnopqrstuvwxyz";function I(r){return me.charAt(r)}function ye(r,t){return r&t}function W(r,t){return r|t}function $t(r,t){return r^t}function Yt(r,t){return r&~t}function Se(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 be(r){for(var t=0;r!=0;)r&=r-1,++t;return t}var K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xt="=";function tt(r){var t,e,n="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),n+=K.charAt(e>>6)+K.charAt(e&63);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),n+=K.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),n+=K.charAt(e>>2)+K.charAt((e&3)<<4));(n.length&3)>0;)n+=Xt;return n}function Qt(r){var t="",e,n=0,s=0;for(e=0;e<r.length&&r.charAt(e)!=Xt;++e){var i=K.indexOf(r.charAt(e));i<0||(n==0?(t+=I(i>>2),s=i&3,n=1):n==1?(t+=I(s<<2|i>>4),s=i&15,n=2):n==2?(t+=I(s),t+=I(i>>2),s=i&3,n=3):(t+=I(s<<2|i>>4),t+=I(i&15),n=0))}return n==1&&(t+=I(s<<2)),t}var z,Te={decode:function(r){var t;if(z===void 0){var e="0123456789ABCDEF",n=` \f
|
|
2
|
+
\r \u2028\u2029`;for(z={},t=0;t<16;++t)z[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)z[e.charAt(t)]=t;for(t=0;t<n.length;++t)z[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=z[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}},C,dt={decode:function(r){var t;if(C===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
3
|
+
\r \u2028\u2029`;for(C=Object.create(null),t=0;t<64;++t)C[e.charAt(t)]=t;for(C["-"]=62,C._=63,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>=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=dt.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 dt.decode(r)}},J=1e13,X=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<J?e=0:(e=0|o/J,o-=e*J),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+=J,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+=(J+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*J+t[n];return e},r.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},r}(),Wt="…",Ee=/^(\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)?)?$/,De=/^(\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 Z(r,t){return r.length>t&&(r=r.substring(0,t)+Wt),r}var vt=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?Ee:De).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 X(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+Z(a,n)}return o+a},r.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return Z(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+=Wt),i},r.prototype.parseOID=function(t,e,n){for(var s="",i=new X,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 X)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 Z(s,n);i=new X,o=0}}return o>0&&(s+=".incomplete"),s},r}(),we=function(){function r(t,e,n,s,i){if(!(s instanceof te))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 Z(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Z(this.stream.parseStringISO(e,e+n),t);case 30:return Z(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 vt?e=t:e=new vt(t,0);var n=new vt(e),s=new te(e),i=r.decodeLength(e),o=e.pos,a=o-n.pos,u=null,h=function(){var p=[];if(i!==null){for(var v=o+i;e.pos<v;)p[p.length]=r.decode(e);if(e.pos!=v)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var m=r.decode(e);if(m.tag.isEOC())break;p[p.length]=m}i=o-e.pos}catch(S){throw new Error("Exception while decoding undefined length content: "+S)}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}(),te=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 X;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}(),k,_e=0xdeadbeefcafe,ee=(_e&16777215)==15715070,x=[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],Re=(1<<26)/x[x.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=I(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+=I(s));return i?o:"0"},r.prototype.negate=function(){var t=d();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)+rt(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=d();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 re(e):n=new ne(e),this.exp(t,n)},r.prototype.clone=function(){var t=d();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=d();return this.bitwiseTo(t,ye,e),e},r.prototype.or=function(t){var e=d();return this.bitwiseTo(t,W,e),e},r.prototype.xor=function(t){var e=d();return this.bitwiseTo(t,$t,e),e},r.prototype.andNot=function(t){var e=d();return this.bitwiseTo(t,Yt,e),e},r.prototype.not=function(){for(var t=d(),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=d();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=d();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+Se(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+=be(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,W)},r.prototype.clearBit=function(t){return this.changeBit(t,Yt)},r.prototype.flipBit=function(t){return this.changeBit(t,$t)},r.prototype.add=function(t){var e=d();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=d();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=d();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=d();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=d();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=d(),n=d();return this.divRemTo(t,e,n),[e,n]},r.prototype.modPow=function(t,e){var n=t.bitLength(),s,i=q(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 re(e):e.isEven()?o=new Oe(e):o=new ne(e);var a=[],u=3,h=s-1,l=(1<<s)-1;if(a[1]=o.convert(this),s>1){var p=d();for(o.sqrTo(a[1],p);u<=l;)a[u]=d(),o.mulTo(p,a[u-2],a[u]),u+=2}var v=t.t-1,m,S=!0,T=d(),w;for(n=rt(t[v])-1;v>=0;){for(n>=h?m=t[v]>>n-h&l:(m=(t[v]&(1<<n+1)-1)<<h-n,v>0&&(m|=t[v-1]>>this.DB+n-h)),u=s;!(m&1);)m>>=1,--u;if((n-=u)<0&&(n+=this.DB,--v),S)a[m].copyTo(i),S=!1;else{for(;u>1;)o.sqrTo(i,T),o.sqrTo(T,i),u-=2;u>0?o.sqrTo(i,T):(w=i,i=T,T=w),o.mulTo(T,a[m],i)}for(;v>=0&&!(t[v]&1<<n);)o.sqrTo(i,T),w=i,i=T,T=w,--n<0&&(n=this.DB-1,--v)}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=q(1),o=q(0),a=q(0),u=q(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 xe)},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]<=x[x.length-1]){for(e=0;e<x.length;++e)if(n[0]==x[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<x.length;){for(var s=x[e],i=e+1;i<x.length&&s<Re;)s*=x[i++];for(s=n.modInt(s);e<i;)if(s%x[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:ie(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=d());var o=d(),a=this.s,u=t.s,h=this.DB-rt(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 v=p*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),m=this.FV/v,S=(1<<this.F1)/v,T=1<<this.F2,w=n.t,A=w-l,B=e??d();for(o.dlShiftTo(A,B),n.compareTo(B)>=0&&(n[n.t++]=1,n.subTo(B,n)),r.ONE.dlShiftTo(l,B),B.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--A>=0;){var _=n[--w]==p?this.DM:Math.floor(n[w]*m+(n[w-1]+T)*S);if((n[w]+=o.am(0,_,n,A,0,l))<_)for(o.dlShiftTo(A,B),n.subTo(B,n);n[w]<--_;)n.subTo(B,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=d(),s=d(),i=e.convert(this),o=rt(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=q(n),i=d(),o=d(),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=ie(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),W,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>x.length&&(t=x.length);for(var i=d(),o=0;o<t;++o){i.fromInt(x[Math.floor(Math.random()*x.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=d();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),W,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}(),xe=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}(),re=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}(),ne=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=d();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=d();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}(),Oe=function(){function r(t){this.m=t,this.r2=d(),this.q3=d(),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=d();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 d(){return new c(null)}function b(r,t){return new c(r,t)}var se=typeof navigator<"u";se&&ee&&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},k=30):se&&ee&&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},k=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},k=28),c.prototype.DB=k,c.prototype.DM=(1<<k)-1,c.prototype.DV=1<<k;var mt=52;c.prototype.FV=Math.pow(2,mt),c.prototype.F1=mt-k,c.prototype.F2=2*k-mt;var et=[],$,P;for($=48,P=0;P<=9;++P)et[$++]=P;for($=97,P=10;P<36;++P)et[$++]=P;for($=65,P=10;P<36;++P)et[$++]=P;function ie(r,t){var e=et[r.charCodeAt(t)];return e??-1}function q(r){var t=d();return t.fromInt(r),t}function rt(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=q(0),c.ONE=q(1);var Ae=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 Be(){return new Ae}var ae=256,nt,H=null,V;if(H==null){H=[],V=0;var st=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var yt=new Uint32Array(256);for(window.crypto.getRandomValues(yt),st=0;st<yt.length;++st)H[V++]=yt[st]&255}var it=0,at=function(r){if(it=it||0,it>=256||V>=ae){window.removeEventListener?window.removeEventListener("mousemove",at,!1):window.detachEvent&&window.detachEvent("onmousemove",at);return}try{var t=r.x+r.y;H[V++]=t&255,it+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",at,!1):window.attachEvent&&window.attachEvent("onmousemove",at))}function Pe(){if(nt==null){for(nt=Be();V<ae;){var r=Math.floor(65536*Math.random());H[V++]=r&255}for(nt.init(H),V=0;V<H.length;++V)H[V]=0;V=0}return nt.next()}var St=function(){function r(){}return r.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Pe()},r}();function Ne(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 b(i,16)}function Ve(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 St,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 Le=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=b(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=Ve(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=b(t,16),this.e=parseInt(e,16),this.d=b(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=b(t,16),this.e=parseInt(e,16),this.d=b(n,16),this.p=b(s,16),this.q=b(i,16),this.dmp1=b(o,16),this.dmq1=b(a,16),this.coeff=b(u,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(t,e){var n=new St,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=b(t,16),n=this.doPrivate(e);return n==null?null:Ie(n,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(t,e,n){var s=new St,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 v=a.p;a.p=a.q,a.q=v}var m=a.p.subtract(c.ONE),S=a.q.subtract(c.ONE),T=m.multiply(S);T.gcd(o).compareTo(c.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(T),a.dmp1=a.d.mod(m),a.dmq1=a.d.mod(S),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){a.q=d(),a.q.fromNumberAsync(i,1,s,function(){a.q.subtract(c.ONE).gcda(o,function(v){v.compareTo(c.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(h,0):setTimeout(l,0)})})},p=function(){a.p=d(),a.p.fromNumberAsync(t-i,1,s,function(){a.p.subtract(c.ONE).gcda(o,function(v){v.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=Me(n),i=s+e(t).toString(),o=Ne(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=b(e,16),i=this.doPublic(s);if(i==null)return null;var o=i.toString(16).replace(/^1f+00/,""),a=Fe(o);return a==n(t).toString()},r}();function Ie(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 ot={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Me(r){return ot[r]||""}function Fe(r){for(var t in ot)if(ot.hasOwnProperty(t)){var e=ot[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,v=e.DERPrintableString,m=e.DERTeletexString,S=e.DERIA5String,T=e.DERUTCTime,w=e.DERGeneralizedTime,A=e.DERSequence,B=e.DERSet,_=e.DERTaggedObject,M=e.ASN1Util.newObject,N=Object.keys(r);if(N.length!=1)throw"key of param shall be only one.";var g=N[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+g+":")==-1)throw"undefined key: "+g;if(g=="bool")return new n(r[g]);if(g=="int")return new s(r[g]);if(g=="bitstr")return new i(r[g]);if(g=="octstr")return new o(r[g]);if(g=="null")return new a(r[g]);if(g=="oid")return new u(r[g]);if(g=="enum")return new h(r[g]);if(g=="utf8str")return new l(r[g]);if(g=="numstr")return new p(r[g]);if(g=="prnstr")return new v(r[g]);if(g=="telstr")return new m(r[g]);if(g=="ia5str")return new S(r[g]);if(g=="utctime")return new T(r[g]);if(g=="gentime")return new w(r[g]);if(g=="seq"){for(var F=r[g],Q=[],U=0;U<F.length;U++){var Tt=M(F[U]);Q.push(Tt)}return new A({array:Q})}if(g=="set"){for(var F=r[g],Q=[],U=0;U<F.length;U++){var Tt=M(F[U]);Q.push(Tt)}return new B({array:Q})}if(g=="tag"){var L=r[g];if(Object.prototype.toString.call(L)==="[object Array]"&&L.length==3){var Ce=M(L[2]);return new _({tag:L[0],explicit:L[1],obj:Ce})}else{var ut={};if(L.explicit!==void 0&&(ut.explicit=L.explicit),L.tag!==void 0&&(ut.tag=L.tag),L.obj===void 0)throw"obj shall be specified for 'tag'.";return ut.obj=M(L.obj),new _(ut)}}},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 v="",m=0;m<p;m++)v+="0";l=v+l;for(var m=0;m<l.length-1;m+=7){var S=l.substr(m,7);m!=l.length-7&&(S="1"+S),u+=t(parseInt(S,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),v=o+a+u+h+l+p;if(n===!0){var m=i.getMilliseconds();if(m!=0){var S=s(String(m),3);S=S.replace(/[0]+$/,""),v=v+"."+S}}return v+"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 je=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)}}(),oe=function(r){je(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)?Te.decode(e):dt.unarmor(e),a=we.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=b(n,16),s=a.sub[2].getHexStringValue(),this.e=parseInt(s,16);var u=a.sub[3].getHexStringValue();this.d=b(u,16);var h=a.sub[4].getHexStringValue();this.p=b(h,16);var l=a.sub[5].getHexStringValue();this.q=b(l,16);var p=a.sub[6].getHexStringValue();this.dmp1=b(p,16);var v=a.sub[7].getHexStringValue();this.dmq1=b(v,16);var m=a.sub[8].getHexStringValue();this.coeff=b(m,16)}else if(a.sub.length===2)if(a.sub[0].sub){var S=a.sub[1],T=S.sub[0];n=T.sub[0].getHexStringValue(),this.n=b(n,16),s=T.sub[1].getHexStringValue(),this.e=parseInt(s,16)}else n=a.sub[0].getHexStringValue(),this.n=b(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 tt(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 tt(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}(Le),bt,ke=typeof process<"u"?(bt=process.env)===null||bt===void 0?void 0:bt.npm_package_version:void 0,qe=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 oe(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(Qt(t))}catch{return!1}},r.prototype.encrypt=function(t){try{return tt(this.getKey().encrypt(t))}catch{return!1}},r.prototype.sign=function(t,e,n){try{return tt(this.getKey().sign(t,e,n))}catch{return!1}},r.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Qt(e),n)}catch{return!1}},r.prototype.getKey=function(t){if(!this.key){if(this.key=new oe,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=ke,r}();const He={status:200,message:"",key:""},ue={status:200,message:"",data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}};async function Ge(r,t,e,n,s){const i=ue,o=r,a=t,u=e,h=s;try{const l=await Zt(["slide-verification","encryptkey","CAPTCHA"]),p=l.data.verificationBeforeLogin,v=l.data.publicKey,m=l.data.csrf,S=l.data.getCaptcha;let T="";if(p){const g=await R.get("/mbuhx0as4kui?ajax=1",{params:{render:y()}});let F;if(y()?F=JSON.parse(O(g.data)):F=g.data,g.status!=200)return i.status=g.status,i.message="",i;T=F.key}const w=new qe;w.setPublicKey(v);let A=n.host.split(":")[0];const B=w.encrypt(A.trim());B&&A.length<53?A=B:A=A.trim();const _={};_.fr_username=w.encrypt(o.trim()),_.fr_password=w.encrypt(a.trim()),_.fr_gdcode=u,_.isApp=h,_.domain=A,_._token=m,_.json=1,_.encrypt=1;const M=await R.post("/kdink8anl8z3",{headers:{"X-CSRF-TOKEN":m},params:{render:y()},data:_,key:T});let N;return y()?N=JSON.parse(O(M.data)):N=M.data,M.status!=200?(i.status=M.status,i.message="",i):(i.data={msg:N.msg??"",accessToken:N.access_token??"",fullName:N.fullname??"",unreadMailCount:N.news??"",status:N.status??"",username:N.username??"",walletAmount:N.wallet??"",captcha:S??""},i)}catch(l){const p=l;return i.status=p.status||500,i.message=p.message,i}}E.Repository=le,E.cmsList=Rt,E.csLink=Bt,E.currentLang=Ot,E.eGame=Pt,E.fishGames=Dt,E.getLocale=At,E.getSetting=Nt,E.home=xt,E.hotGames=Et,E.login=Vt,E.promotion=_t,E.trialGames=wt,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
package/dist/login/method.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LoginResponse } from './type';
|
|
2
2
|
|
|
3
3
|
export declare const DefaultGetLoginKeyResponse: {
|
|
4
4
|
status: number;
|
|
@@ -19,6 +19,5 @@ export declare const DefaultLoginResponse: {
|
|
|
19
19
|
captcha: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function submitLogin(username: string | false, password: string | false, gdCode: string, domain: URL, isApp: number, loginToken: string, captchaFlag: string): Promise<LoginResponse>;
|
|
22
|
+
export declare function submitLogin(username: string, password: string, gdCode: string, domain: URL, isApp: number): Promise<LoginResponse>;
|
|
24
23
|
//# sourceMappingURL=method.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/login/method.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/login/method.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAoBtC,eAAO,MAAM,0BAA0B;;;;CAItC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAahC,CAAA;AAED,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,aAAa,CAAC,CAmHxB"}
|
package/dist/login/type.d.ts
CHANGED
package/dist/login/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/login/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/login/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG;IACrC,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
package/dist/main.d.ts
CHANGED