@acedatacloud/nexior 3.30.4 → 3.31.0
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/assets/{Auth-kGCys-gn.js → Auth-FDpP6sdw.js} +1 -1
- package/dist/assets/BotPlaceholder-C_tpj9cL.js +1 -0
- package/dist/assets/{Callback-DWSKlIl4.js → Callback-CF8NsFTN.js} +1 -1
- package/dist/assets/Console-DsJn6ORf.css +1 -0
- package/dist/assets/{Console-_IS1qii3.js → Console-DyDrK8jD.js} +1 -1
- package/dist/assets/{Conversation-Dohp2ZWp.css → Conversation-BmozhRPZ.css} +1 -1
- package/dist/assets/{Conversation-DuQtYVf4.js → Conversation-CbIvRgjb.js} +2 -2
- package/dist/assets/{CopyToClipboard-CEtp94k8.js → CopyToClipboard-BGClcrVG.js} +1 -1
- package/dist/assets/Detail-Cc46R_61.js +2 -0
- package/dist/assets/{Detail-D68ZlN5z.css → Detail-bHGSLGGq.css} +1 -1
- package/dist/assets/{EditArray-cZSRSfyf.js → EditArray-DhB4A-4P.js} +1 -1
- package/dist/assets/{Extra-CbORdop1.js → Extra-OG6qZqkS.js} +1 -1
- package/dist/assets/{FilePreview-Cs6OrAfv.js → FilePreview-vHpQ_39Y.js} +1 -1
- package/dist/assets/{History-gexbX9Zv.js → History-DkRw43Cl.js} +1 -1
- package/dist/assets/{ImagePreview--cM1y0-F.js → ImagePreview-Dif2Q49Y.js} +1 -1
- package/dist/assets/{ImageWrapper-CQl1PxLF.js → ImageWrapper-BskBzKqs.js} +1 -1
- package/dist/assets/ImageWrapper-CCC9KDpV.css +1 -0
- package/dist/assets/{Index-C7BtYXwv.js → Index-7-MqNqOx.js} +1 -1
- package/dist/assets/{Index-BCpgwdRH.js → Index-AOp1iyZX.js} +1 -1
- package/dist/assets/Index-B13mfXWf.js +1 -0
- package/dist/assets/{Index-DxzQLCOp.css → Index-B5VME3qz.css} +1 -1
- package/dist/assets/Index-BDaawPtT.css +1 -0
- package/dist/assets/Index-BJeIJzAF.js +1 -0
- package/dist/assets/Index-BOSlmfKu.js +1 -0
- package/dist/assets/Index-BS8oOxbR.css +1 -0
- package/dist/assets/{Index-CuZIoeXJ.css → Index-BUzTQm1k.css} +1 -1
- package/dist/assets/Index-B_WaHvVq.js +1 -0
- package/dist/assets/Index-BcUqDqOp.css +1 -0
- package/dist/assets/Index-BhKFb4US.js +1 -0
- package/dist/assets/Index-BhtS87g8.js +1 -0
- package/dist/assets/Index-Bi5z34-z.js +1 -0
- package/dist/assets/{Index-DpA3efz6.css → Index-Bohx5BOg.css} +1 -1
- package/dist/assets/Index-BqrsebVL.css +1 -0
- package/dist/assets/Index-Bs6AJerX.js +1 -0
- package/dist/assets/Index-By3C66Xq.js +1 -0
- package/dist/assets/Index-CE9mr3hy.js +1 -0
- package/dist/assets/Index-CQ8oi7FR.css +1 -0
- package/dist/assets/Index-CQsHLtL9.js +1 -0
- package/dist/assets/{Index-DWp92Qyv.css → Index-CTvpJ6Ko.css} +1 -1
- package/dist/assets/Index-Ce2hzTUa.css +1 -0
- package/dist/assets/{Index-Br9x7GnA.css → Index-ChN0dWdx.css} +1 -1
- package/dist/assets/Index-Ct_ncjNQ.css +1 -0
- package/dist/assets/Index-CvNs7Qc8.js +1 -0
- package/dist/assets/{Index-aB38D9pu.js → Index-CvWL3dnP.js} +1 -1
- package/dist/assets/Index-D-RbCzhR.js +1 -0
- package/dist/assets/{Index-BJHZd94h.js → Index-DAl7VUx0.js} +1 -1
- package/dist/assets/{Index-D5sduOkc.js → Index-DI0a679Y.js} +1 -1
- package/dist/assets/{Index-DxhkmCSp.css → Index-DJoSN5Ve.css} +1 -1
- package/dist/assets/Index-DVoeUmg0.css +1 -0
- package/dist/assets/Index-Do0VKmX9.css +1 -0
- package/dist/assets/{Index-Ch-rWHP2.css → Index-M_bCFF5S.css} +1 -1
- package/dist/assets/{Index-CB8Rnaiw.css → Index-OEKXTaNJ.css} +1 -1
- package/dist/assets/{Index-feu64dNe.css → Index-Q9b6AHOk.css} +1 -1
- package/dist/assets/Index-clf6vq08.css +1 -0
- package/dist/assets/Index-fmHObafV.js +1 -0
- package/dist/assets/Index-m8G7Pz-J.js +1 -0
- package/dist/assets/{Invitees-CYP2iQv2.js → Invitees-BjwE0w-8.js} +1 -1
- package/dist/assets/{List-CAfyfgl5.js → List-8o9CvgyI.js} +1 -1
- package/dist/assets/{List-DSRVmKTe.js → List-BfHX6UFu.js} +1 -1
- package/dist/assets/{List-CdFnDuaR.js → List-DVknUaOz.js} +1 -1
- package/dist/assets/{Main-BIRiKmiG.js → Main-B9Wl0aM6.js} +1 -1
- package/dist/assets/Main-CiQBunQe.css +1 -0
- package/dist/assets/Navigator-CZkWVWzN.js +1 -0
- package/dist/assets/Navigator-CwNZQUMg.css +1 -0
- package/dist/assets/NoTasks-4TJvTcNH.js +1 -0
- package/dist/assets/{Pagination-Dw29mJpo.js → Pagination-DrZT-YqX.js} +1 -1
- package/dist/assets/{ScrollList-6wsUvcj6.js → ScrollList-BSHydg5K.js} +1 -1
- package/dist/assets/{Status-CLz-FCw7.js → Status-CU3tRVGG.js} +1 -1
- package/dist/assets/Status-nxFeE51N.css +1 -0
- package/dist/assets/{Subscribe-CV4VHuLD.js → Subscribe-DEpZJt9v.js} +1 -1
- package/dist/assets/{TransportWebHID-CzVKn3HZ.js → TransportWebHID-x82bKdqW.js} +1 -1
- package/dist/assets/{VideoPlayer-DMQFBZXN.js → VideoPlayer-DhXW0ZpT.js} +1 -1
- package/dist/assets/{avatar-CN1uA8Po.js → avatar-Bypfdb1U.js} +1 -1
- package/dist/assets/avatar-i-yziJxn.css +1 -0
- package/dist/assets/{bignumber-BLJFVpCv.js → bignumber-D2i_F2iN.js} +1 -1
- package/dist/assets/common-2iCqJUYS.js +1 -0
- package/dist/assets/{distribution-Bn30t-dJ.js → distribution-DQWow-W5.js} +1 -1
- package/dist/assets/{index-BtWLfZip.js → index-7qIS8l-a.js} +1 -1
- package/dist/assets/{index-qzP26Lh5.js → index-BJU-syOe.js} +1 -1
- package/dist/assets/{index-D5QRd2Da.js → index-BPpDhZjH.js} +1 -1
- package/dist/assets/{index-BC2cccGJ.css → index-Bkear63z.css} +1 -1
- package/dist/assets/{index-DxHsOOmw.js → index-BnkMqzhi.js} +1 -1
- package/dist/assets/{index-DE_Wy0Gu.js → index-DWmgW--A.js} +1 -1
- package/dist/assets/{index-CZva-t16.js → index-Dd5huPwi.js} +1 -1
- package/dist/assets/{index-CCYW3AUY.js → index-DgtHfSqf.js} +27 -27
- package/dist/assets/{index-DGZsu5Ph.js → index-nzc2MroZ.js} +1 -1
- package/dist/assets/{index.es-mIRAKQ1A.js → index.es-CQANB9vJ.js} +1 -1
- package/dist/assets/order-BBkqrzA1.js +1 -0
- package/dist/assets/order-BIslMDZP.js +1 -0
- package/dist/assets/{order-DrwwxsRb.js → order-iKdGqXyS.js} +1 -1
- package/dist/assets/{price-hx3Y1R4a.js → price-Cbls6Qoc.js} +1 -1
- package/dist/assets/{solana-wallets-Cb3-7F7O.js → solana-wallets-CkstrrV4.js} +2 -2
- package/dist/assets/{solanaEmbed.esm-DHLMHDSC.js → solanaEmbed.esm-B1Go1xNW.js} +1 -1
- package/dist/assets/{string_decoder-BDwfFX0y.js → string_decoder-ll7baEuM.js} +1 -1
- package/dist/assets/{vendor-web3-CZJ1DcWo.js → vendor-web3-BXoVw72d.js} +4 -4
- package/dist/assets/{web-CwxjKiW2.js → web-Bl4nr7zA.js} +1 -1
- package/dist/assets/{web-DEeVFGiX.js → web-DE8XF-r4.js} +1 -1
- package/dist/index.html +15 -11
- package/package.json +1 -1
- package/dist/assets/BotPlaceholder-DghltQML.js +0 -1
- package/dist/assets/Console-C-Pnay3G.css +0 -1
- package/dist/assets/Detail-t2hlFwRn.js +0 -2
- package/dist/assets/ImageWrapper-DEadO_7m.css +0 -1
- package/dist/assets/Index-Acpzatzh.js +0 -1
- package/dist/assets/Index-B0a5arSf.js +0 -1
- package/dist/assets/Index-BLbwI9y2.css +0 -1
- package/dist/assets/Index-BNmeEQ_3.js +0 -1
- package/dist/assets/Index-BOpc0vYw.css +0 -1
- package/dist/assets/Index-Bb5DDJPy.js +0 -1
- package/dist/assets/Index-BjRYYdFX.js +0 -1
- package/dist/assets/Index-BqOX37kc.css +0 -1
- package/dist/assets/Index-BrxMTx-Y.js +0 -1
- package/dist/assets/Index-C57ALtjZ.js +0 -1
- package/dist/assets/Index-C60cc38l.js +0 -1
- package/dist/assets/Index-CByCCg-O.css +0 -1
- package/dist/assets/Index-CQHCtrEM.css +0 -1
- package/dist/assets/Index-CfVhUM4U.js +0 -1
- package/dist/assets/Index-CujgCEXB.css +0 -1
- package/dist/assets/Index-D8nMB7dN.js +0 -1
- package/dist/assets/Index-DXRd2oDS.css +0 -1
- package/dist/assets/Index-DY0jBLbu.css +0 -1
- package/dist/assets/Index-DYZt7wpr.css +0 -1
- package/dist/assets/Index-DZ-DbWl-.js +0 -1
- package/dist/assets/Index-DdS211RO.css +0 -1
- package/dist/assets/Index-HQInAAfi.js +0 -1
- package/dist/assets/Index-lMyEH6f1.js +0 -1
- package/dist/assets/Index-u8wK3QUd.js +0 -1
- package/dist/assets/Index-zpannX8x.js +0 -1
- package/dist/assets/Main-CFT_d-Ox.css +0 -1
- package/dist/assets/Navigator-CjErsr21.js +0 -1
- package/dist/assets/Navigator-O-mZrlgA.css +0 -1
- package/dist/assets/NoTasks-CSLShB84.js +0 -1
- package/dist/assets/Status-CGJoVgMo.css +0 -1
- package/dist/assets/avatar-Cfr3XS98.css +0 -1
- package/dist/assets/common-81UClLTs.js +0 -1
- package/dist/assets/order-691hfcVo.js +0 -1
- package/dist/assets/order-sPPLdLb3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as k,t as at,u as tr,v as sr,D as ot,w as ct}from"./vendor-web3-CZJ1DcWo.js";import{g as ut}from"./vendor-dayjs-CzbnksQQ.js";import"./vendor-vue-1w_NBnjl.js";const nr=5;function lt(t){const a=Buffer.alloc(2);return a.writeUInt16BE(t,0),a}const ft={data:Buffer.alloc(0),dataLength:0,sequence:0},ht=(t,a)=>({makeBlocks(n){let r=Buffer.concat([lt(n.length),n]);const s=a-5,f=Math.ceil(r.length/s);r=Buffer.concat([r,Buffer.alloc(f*s-r.length+1).fill(0)]);const c=[];for(let l=0;l<f;l++){const o=Buffer.alloc(5);o.writeUInt16BE(t,0),o.writeUInt8(nr,2),o.writeUInt16BE(l,3);const i=r.slice(l*s,(l+1)*s);c.push(Buffer.concat([o,i]))}return c},reduceResponse(n,r){let{data:s,dataLength:f,sequence:c}=n||ft;if(r.readUInt16BE(0)!==t)throw new k("Invalid channel","InvalidChannel");if(r.readUInt8(2)!==nr)throw new k("Invalid tag","InvalidTag");if(r.readUInt16BE(3)!==c)throw new k("Invalid sequence","InvalidSequence");n||(f=r.readUInt16BE(5)),c++;const l=r.slice(n?5:7);return s=Buffer.concat([s,l]),s.length>f&&(s=s.slice(0,f)),{data:s,dataLength:f,sequence:c}},getReducedResult(n){if(n&&n.dataLength===n.data.length)return n.data}});var z={exports:{}},ne,ir;function W(){if(ir)return ne;ir=1;const t="2.0.0",a=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,s=a-6;return ne={MAX_LENGTH:a,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:s,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},ne}var ie,ar;function K(){if(ar)return ie;ar=1;var t={};return ie=typeof process=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},ie}var or;function M(){return or||(or=1,function(t,a){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:s}=W(),f=K();a=t.exports={};const c=a.re=[],l=a.safeRe=[],o=a.src=[],i=a.safeSrc=[],e=a.t={};let u=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",s],[h,r]],w=N=>{for(const[A,D]of m)N=N.split(`${A}*`).join(`${A}{0,${D}}`).split(`${A}+`).join(`${A}{1,${D}}`);return N},E=(N,A,D)=>{const T=w(A),U=u++;f(N,U,A),e[N]=U,o[U]=A,i[U]=T,c[U]=new RegExp(A,D?"g":void 0),l[U]=new RegExp(T,D?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","\\d+"),E("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),E("MAINVERSION",`(${o[e.NUMERICIDENTIFIER]})\\.(${o[e.NUMERICIDENTIFIER]})\\.(${o[e.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${o[e.NUMERICIDENTIFIERLOOSE]})\\.(${o[e.NUMERICIDENTIFIERLOOSE]})\\.(${o[e.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${o[e.NONNUMERICIDENTIFIER]}|${o[e.NUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${o[e.NONNUMERICIDENTIFIER]}|${o[e.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASE",`(?:-(${o[e.PRERELEASEIDENTIFIER]}(?:\\.${o[e.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${o[e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[e.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER",`${h}+`),E("BUILD",`(?:\\+(${o[e.BUILDIDENTIFIER]}(?:\\.${o[e.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${o[e.MAINVERSION]}${o[e.PRERELEASE]}?${o[e.BUILD]}?`),E("FULL",`^${o[e.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${o[e.MAINVERSIONLOOSE]}${o[e.PRERELEASELOOSE]}?${o[e.BUILD]}?`),E("LOOSE",`^${o[e.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${o[e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${o[e.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${o[e.XRANGEIDENTIFIER]})(?:\\.(${o[e.XRANGEIDENTIFIER]})(?:\\.(${o[e.XRANGEIDENTIFIER]})(?:${o[e.PRERELEASE]})?${o[e.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${o[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[e.XRANGEIDENTIFIERLOOSE]})(?:${o[e.PRERELEASELOOSE]})?${o[e.BUILD]}?)?)?`),E("XRANGE",`^${o[e.GTLT]}\\s*${o[e.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${o[e.GTLT]}\\s*${o[e.XRANGEPLAINLOOSE]}$`),E("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),E("COERCE",`${o[e.COERCEPLAIN]}(?:$|[^\\d])`),E("COERCEFULL",o[e.COERCEPLAIN]+`(?:${o[e.PRERELEASE]})?(?:${o[e.BUILD]})?(?:$|[^\\d])`),E("COERCERTL",o[e.COERCE],!0),E("COERCERTLFULL",o[e.COERCEFULL],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${o[e.LONETILDE]}\\s+`,!0),a.tildeTrimReplace="$1~",E("TILDE",`^${o[e.LONETILDE]}${o[e.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${o[e.LONETILDE]}${o[e.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${o[e.LONECARET]}\\s+`,!0),a.caretTrimReplace="$1^",E("CARET",`^${o[e.LONECARET]}${o[e.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${o[e.LONECARET]}${o[e.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${o[e.GTLT]}\\s*(${o[e.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${o[e.GTLT]}\\s*(${o[e.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${o[e.GTLT]}\\s*(${o[e.LOOSEPLAIN]}|${o[e.XRANGEPLAIN]})`,!0),a.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${o[e.XRANGEPLAIN]})\\s+-\\s+(${o[e.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${o[e.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[e.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(z,z.exports)),z.exports}var ae,cr;function Ke(){if(cr)return ae;cr=1;const t=Object.freeze({loose:!0}),a=Object.freeze({});return ae=r=>r?typeof r!="object"?t:r:a,ae}var oe,ur;function et(){if(ur)return oe;ur=1;const t=/^[0-9]+$/,a=(r,s)=>{const f=t.test(r),c=t.test(s);return f&&c&&(r=+r,s=+s),r===s?0:f&&!c?-1:c&&!f?1:r<s?-1:1};return oe={compareIdentifiers:a,rcompareIdentifiers:(r,s)=>a(s,r)},oe}var ce,lr;function _(){if(lr)return ce;lr=1;const t=K(),{MAX_LENGTH:a,MAX_SAFE_INTEGER:n}=W(),{safeRe:r,t:s}=M(),f=Ke(),{compareIdentifiers:c}=et();class l{constructor(i,e){if(e=f(e),i instanceof l){if(i.loose===!!e.loose&&i.includePrerelease===!!e.includePrerelease)return i;i=i.version}else if(typeof i!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof i}".`);if(i.length>a)throw new TypeError(`version is longer than ${a} characters`);t("SemVer",i,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const u=i.trim().match(e.loose?r[s.LOOSE]:r[s.FULL]);if(!u)throw new TypeError(`Invalid Version: ${i}`);if(this.raw=i,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const m=+h;if(m>=0&&m<n)return m}return h}):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(i){if(t("SemVer.compare",this.version,this.options,i),!(i instanceof l)){if(typeof i=="string"&&i===this.version)return 0;i=new l(i,this.options)}return i.version===this.version?0:this.compareMain(i)||this.comparePre(i)}compareMain(i){return i instanceof l||(i=new l(i,this.options)),c(this.major,i.major)||c(this.minor,i.minor)||c(this.patch,i.patch)}comparePre(i){if(i instanceof l||(i=new l(i,this.options)),this.prerelease.length&&!i.prerelease.length)return-1;if(!this.prerelease.length&&i.prerelease.length)return 1;if(!this.prerelease.length&&!i.prerelease.length)return 0;let e=0;do{const u=this.prerelease[e],h=i.prerelease[e];if(t("prerelease compare",e,u,h),u===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(u===void 0)return-1;if(u===h)continue;return c(u,h)}while(++e)}compareBuild(i){i instanceof l||(i=new l(i,this.options));let e=0;do{const u=this.build[e],h=i.build[e];if(t("build compare",e,u,h),u===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(u===void 0)return-1;if(u===h)continue;return c(u,h)}while(++e)}inc(i,e,u){if(i.startsWith("pre")){if(!e&&u===!1)throw new Error("invalid increment argument: identifier is empty");if(e){const h=`-${e}`.match(this.options.loose?r[s.PRERELEASELOOSE]:r[s.PRERELEASE]);if(!h||h[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(i){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,u);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,u);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,u),this.inc("pre",e,u);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,u),this.inc("pre",e,u);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(u)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(e===this.prerelease.join(".")&&u===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(e){let m=[e,h];u===!1&&(m=[e]),c(this.prerelease[0],e)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${i}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ce=l,ce}var ue,fr;function X(){if(fr)return ue;fr=1;const t=_();return ue=(n,r,s=!1)=>{if(n instanceof t)return n;try{return new t(n,r)}catch(f){if(!s)return null;throw f}},ue}var le,hr;function dt(){if(hr)return le;hr=1;const t=X();return le=(n,r)=>{const s=t(n,r);return s?s.version:null},le}var fe,dr;function Et(){if(dr)return fe;dr=1;const t=X();return fe=(n,r)=>{const s=t(n.trim().replace(/^[=v]+/,""),r);return s?s.version:null},fe}var he,Er;function pt(){if(Er)return he;Er=1;const t=_();return he=(n,r,s,f,c)=>{typeof s=="string"&&(c=f,f=s,s=void 0);try{return new t(n instanceof t?n.version:n,s).inc(r,f,c).version}catch{return null}},he}var de,pr;function mt(){if(pr)return de;pr=1;const t=X();return de=(n,r)=>{const s=t(n,null,!0),f=t(r,null,!0),c=s.compare(f);if(c===0)return null;const l=c>0,o=l?s:f,i=l?f:s,e=!!o.prerelease.length;if(!!i.prerelease.length&&!e){if(!i.patch&&!i.minor)return"major";if(i.compareMain(o)===0)return i.minor&&!i.patch?"minor":"patch"}const h=e?"pre":"";return s.major!==f.major?h+"major":s.minor!==f.minor?h+"minor":s.patch!==f.patch?h+"patch":"prerelease"},de}var Ee,mr;function Rt(){if(mr)return Ee;mr=1;const t=_();return Ee=(n,r)=>new t(n,r).major,Ee}var pe,Rr;function It(){if(Rr)return pe;Rr=1;const t=_();return pe=(n,r)=>new t(n,r).minor,pe}var me,Ir;function vt(){if(Ir)return me;Ir=1;const t=_();return me=(n,r)=>new t(n,r).patch,me}var Re,vr;function $t(){if(vr)return Re;vr=1;const t=X();return Re=(n,r)=>{const s=t(n,r);return s&&s.prerelease.length?s.prerelease:null},Re}var Ie,$r;function F(){if($r)return Ie;$r=1;const t=_();return Ie=(n,r,s)=>new t(n,s).compare(new t(r,s)),Ie}var ve,Sr;function St(){if(Sr)return ve;Sr=1;const t=F();return ve=(n,r,s)=>t(r,n,s),ve}var $e,Lr;function Lt(){if(Lr)return $e;Lr=1;const t=F();return $e=(n,r)=>t(n,r,!0),$e}var Se,gr;function Ze(){if(gr)return Se;gr=1;const t=_();return Se=(n,r,s)=>{const f=new t(n,s),c=new t(r,s);return f.compare(c)||f.compareBuild(c)},Se}var Le,Nr;function gt(){if(Nr)return Le;Nr=1;const t=Ze();return Le=(n,r)=>n.sort((s,f)=>t(s,f,r)),Le}var ge,wr;function Nt(){if(wr)return ge;wr=1;const t=Ze();return ge=(n,r)=>n.sort((s,f)=>t(f,s,r)),ge}var Ne,Or;function Z(){if(Or)return Ne;Or=1;const t=F();return Ne=(n,r,s)=>t(n,r,s)>0,Ne}var we,Ar;function Je(){if(Ar)return we;Ar=1;const t=F();return we=(n,r,s)=>t(n,r,s)<0,we}var Oe,Tr;function rt(){if(Tr)return Oe;Tr=1;const t=F();return Oe=(n,r,s)=>t(n,r,s)===0,Oe}var Ae,Pr;function tt(){if(Pr)return Ae;Pr=1;const t=F();return Ae=(n,r,s)=>t(n,r,s)!==0,Ae}var Te,Cr;function Qe(){if(Cr)return Te;Cr=1;const t=F();return Te=(n,r,s)=>t(n,r,s)>=0,Te}var Pe,qr;function er(){if(qr)return Pe;qr=1;const t=F();return Pe=(n,r,s)=>t(n,r,s)<=0,Pe}var Ce,yr;function st(){if(yr)return Ce;yr=1;const t=rt(),a=tt(),n=Z(),r=Qe(),s=Je(),f=er();return Ce=(l,o,i,e)=>{switch(o){case"===":return typeof l=="object"&&(l=l.version),typeof i=="object"&&(i=i.version),l===i;case"!==":return typeof l=="object"&&(l=l.version),typeof i=="object"&&(i=i.version),l!==i;case"":case"=":case"==":return t(l,i,e);case"!=":return a(l,i,e);case">":return n(l,i,e);case">=":return r(l,i,e);case"<":return s(l,i,e);case"<=":return f(l,i,e);default:throw new TypeError(`Invalid operator: ${o}`)}},Ce}var qe,xr;function wt(){if(xr)return qe;xr=1;const t=_(),a=X(),{safeRe:n,t:r}=M();return qe=(f,c)=>{if(f instanceof t)return f;if(typeof f=="number"&&(f=String(f)),typeof f!="string")return null;c=c||{};let l=null;if(!c.rtl)l=f.match(c.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);else{const m=c.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let w;for(;(w=m.exec(f))&&(!l||l.index+l[0].length!==f.length);)(!l||w.index+w[0].length!==l.index+l[0].length)&&(l=w),m.lastIndex=w.index+w[1].length+w[2].length;m.lastIndex=-1}if(l===null)return null;const o=l[2],i=l[3]||"0",e=l[4]||"0",u=c.includePrerelease&&l[5]?`-${l[5]}`:"",h=c.includePrerelease&&l[6]?`+${l[6]}`:"";return a(`${o}.${i}.${e}${u}${h}`,c)},qe}var ye,Dr;function Ot(){if(Dr)return ye;Dr=1;class t{constructor(){this.max=1e3,this.map=new Map}get(n){const r=this.map.get(n);if(r!==void 0)return this.map.delete(n),this.map.set(n,r),r}delete(n){return this.map.delete(n)}set(n,r){if(!this.delete(n)&&r!==void 0){if(this.map.size>=this.max){const f=this.map.keys().next().value;this.delete(f)}this.map.set(n,r)}return this}}return ye=t,ye}var xe,Ur;function j(){if(Ur)return xe;Ur=1;const t=/\s+/g;class a{constructor(d,v){if(v=s(v),d instanceof a)return d.loose===!!v.loose&&d.includePrerelease===!!v.includePrerelease?d:new a(d.raw,v);if(d instanceof f)return this.raw=d.value,this.set=[[d]],this.formatted=void 0,this;if(this.options=v,this.loose=!!v.loose,this.includePrerelease=!!v.includePrerelease,this.raw=d.trim().replace(t," "),this.set=this.raw.split("||").map(R=>this.parseRange(R.trim())).filter(R=>R.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const R=this.set[0];if(this.set=this.set.filter($=>!E($[0])),this.set.length===0)this.set=[R];else if(this.set.length>1){for(const $ of this.set)if($.length===1&&N($[0])){this.set=[$];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let d=0;d<this.set.length;d++){d>0&&(this.formatted+="||");const v=this.set[d];for(let R=0;R<v.length;R++)R>0&&(this.formatted+=" "),this.formatted+=v[R].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(d){const R=((this.options.includePrerelease&&m)|(this.options.loose&&w))+":"+d,$=r.get(R);if($)return $;const I=this.options.loose,S=I?o[i.HYPHENRANGELOOSE]:o[i.HYPHENRANGE];d=d.replace(S,te(this.options.includePrerelease)),c("hyphen replace",d),d=d.replace(o[i.COMPARATORTRIM],e),c("comparator trim",d),d=d.replace(o[i.TILDETRIM],u),c("tilde trim",d),d=d.replace(o[i.CARETTRIM],h),c("caret trim",d);let O=d.split(" ").map(y=>D(y,this.options)).join(" ").split(/\s+/).map(y=>re(y,this.options));I&&(O=O.filter(y=>(c("loose invalid filter",y,this.options),!!y.match(o[i.COMPARATORLOOSE])))),c("range list",O);const g=new Map,P=O.map(y=>new f(y,this.options));for(const y of P){if(E(y))return[y];g.set(y.value,y)}g.size>1&&g.has("")&&g.delete("");const b=[...g.values()];return r.set(R,b),b}intersects(d,v){if(!(d instanceof a))throw new TypeError("a Range is required");return this.set.some(R=>A(R,v)&&d.set.some($=>A($,v)&&R.every(I=>$.every(S=>I.intersects(S,v)))))}test(d){if(!d)return!1;if(typeof d=="string")try{d=new l(d,this.options)}catch{return!1}for(let v=0;v<this.set.length;v++)if(se(this.set[v],d,this.options))return!0;return!1}}xe=a;const n=Ot(),r=new n,s=Ke(),f=J(),c=K(),l=_(),{safeRe:o,t:i,comparatorTrimReplace:e,tildeTrimReplace:u,caretTrimReplace:h}=M(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:w}=W(),E=p=>p.value==="<0.0.0-0",N=p=>p.value==="",A=(p,d)=>{let v=!0;const R=p.slice();let $=R.pop();for(;v&&R.length;)v=R.every(I=>$.intersects(I,d)),$=R.pop();return v},D=(p,d)=>(c("comp",p,d),p=C(p,d),c("caret",p),p=U(p,d),c("tildes",p),p=L(p,d),c("xrange",p),p=ee(p,d),c("stars",p),p),T=p=>!p||p.toLowerCase()==="x"||p==="*",U=(p,d)=>p.trim().split(/\s+/).map(v=>G(v,d)).join(" "),G=(p,d)=>{const v=d.loose?o[i.TILDELOOSE]:o[i.TILDE];return p.replace(v,(R,$,I,S,O)=>{c("tilde",p,R,$,I,S,O);let g;return T($)?g="":T(I)?g=`>=${$}.0.0 <${+$+1}.0.0-0`:T(S)?g=`>=${$}.${I}.0 <${$}.${+I+1}.0-0`:O?(c("replaceTilde pr",O),g=`>=${$}.${I}.${S}-${O} <${$}.${+I+1}.0-0`):g=`>=${$}.${I}.${S} <${$}.${+I+1}.0-0`,c("tilde return",g),g})},C=(p,d)=>p.trim().split(/\s+/).map(v=>x(v,d)).join(" "),x=(p,d)=>{c("caret",p,d);const v=d.loose?o[i.CARETLOOSE]:o[i.CARET],R=d.includePrerelease?"-0":"";return p.replace(v,($,I,S,O,g)=>{c("caret",p,$,I,S,O,g);let P;return T(I)?P="":T(S)?P=`>=${I}.0.0${R} <${+I+1}.0.0-0`:T(O)?I==="0"?P=`>=${I}.${S}.0${R} <${I}.${+S+1}.0-0`:P=`>=${I}.${S}.0${R} <${+I+1}.0.0-0`:g?(c("replaceCaret pr",g),I==="0"?S==="0"?P=`>=${I}.${S}.${O}-${g} <${I}.${S}.${+O+1}-0`:P=`>=${I}.${S}.${O}-${g} <${I}.${+S+1}.0-0`:P=`>=${I}.${S}.${O}-${g} <${+I+1}.0.0-0`):(c("no pr"),I==="0"?S==="0"?P=`>=${I}.${S}.${O}${R} <${I}.${S}.${+O+1}-0`:P=`>=${I}.${S}.${O}${R} <${I}.${+S+1}.0-0`:P=`>=${I}.${S}.${O} <${+I+1}.0.0-0`),c("caret return",P),P})},L=(p,d)=>(c("replaceXRanges",p,d),p.split(/\s+/).map(v=>B(v,d)).join(" ")),B=(p,d)=>{p=p.trim();const v=d.loose?o[i.XRANGELOOSE]:o[i.XRANGE];return p.replace(v,(R,$,I,S,O,g)=>{c("xRange",p,R,$,I,S,O,g);const P=T(I),b=P||T(S),y=b||T(O),V=y;return $==="="&&V&&($=""),g=d.includePrerelease?"-0":"",P?$===">"||$==="<"?R="<0.0.0-0":R="*":$&&V?(b&&(S=0),O=0,$===">"?($=">=",b?(I=+I+1,S=0,O=0):(S=+S+1,O=0)):$==="<="&&($="<",b?I=+I+1:S=+S+1),$==="<"&&(g="-0"),R=`${$+I}.${S}.${O}${g}`):b?R=`>=${I}.0.0${g} <${+I+1}.0.0-0`:y&&(R=`>=${I}.${S}.0${g} <${I}.${+S+1}.0-0`),c("xRange return",R),R})},ee=(p,d)=>(c("replaceStars",p,d),p.trim().replace(o[i.STAR],"")),re=(p,d)=>(c("replaceGTE0",p,d),p.trim().replace(o[d.includePrerelease?i.GTE0PRE:i.GTE0],"")),te=p=>(d,v,R,$,I,S,O,g,P,b,y,V)=>(T(R)?v="":T($)?v=`>=${R}.0.0${p?"-0":""}`:T(I)?v=`>=${R}.${$}.0${p?"-0":""}`:S?v=`>=${v}`:v=`>=${v}${p?"-0":""}`,T(P)?g="":T(b)?g=`<${+P+1}.0.0-0`:T(y)?g=`<${P}.${+b+1}.0-0`:V?g=`<=${P}.${b}.${y}-${V}`:p?g=`<${P}.${b}.${+y+1}-0`:g=`<=${g}`,`${v} ${g}`.trim()),se=(p,d,v)=>{for(let R=0;R<p.length;R++)if(!p[R].test(d))return!1;if(d.prerelease.length&&!v.includePrerelease){for(let R=0;R<p.length;R++)if(c(p[R].semver),p[R].semver!==f.ANY&&p[R].semver.prerelease.length>0){const $=p[R].semver;if($.major===d.major&&$.minor===d.minor&&$.patch===d.patch)return!0}return!1}return!0};return xe}var De,br;function J(){if(br)return De;br=1;const t=Symbol("SemVer ANY");class a{static get ANY(){return t}constructor(e,u){if(u=n(u),e instanceof a){if(e.loose===!!u.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,u),this.options=u,this.loose=!!u.loose,this.parse(e),this.semver===t?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const u=this.options.loose?r[s.COMPARATORLOOSE]:r[s.COMPARATOR],h=e.match(u);if(!h)throw new TypeError(`Invalid comparator: ${e}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new l(h[2],this.options.loose):this.semver=t}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===t||e===t)return!0;if(typeof e=="string")try{e=new l(e,this.options)}catch{return!1}return f(e,this.operator,this.semver,this.options)}intersects(e,u){if(!(e instanceof a))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(e.value,u).test(this.value):e.operator===""?e.value===""?!0:new o(this.value,u).test(e.semver):(u=n(u),u.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||f(this.semver,"<",e.semver,u)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||f(this.semver,">",e.semver,u)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}De=a;const n=Ke(),{safeRe:r,t:s}=M(),f=st(),c=K(),l=_(),o=j();return De}var Ue,_r;function Q(){if(_r)return Ue;_r=1;const t=j();return Ue=(n,r,s)=>{try{r=new t(r,s)}catch{return!1}return r.test(n)},Ue}var be,Gr;function At(){if(Gr)return be;Gr=1;const t=j();return be=(n,r)=>new t(n,r).set.map(s=>s.map(f=>f.value).join(" ").trim().split(" ")),be}var _e,Fr;function Tt(){if(Fr)return _e;Fr=1;const t=_(),a=j();return _e=(r,s,f)=>{let c=null,l=null,o=null;try{o=new a(s,f)}catch{return null}return r.forEach(i=>{o.test(i)&&(!c||l.compare(i)===-1)&&(c=i,l=new t(c,f))}),c},_e}var Ge,jr;function Pt(){if(jr)return Ge;jr=1;const t=_(),a=j();return Ge=(r,s,f)=>{let c=null,l=null,o=null;try{o=new a(s,f)}catch{return null}return r.forEach(i=>{o.test(i)&&(!c||l.compare(i)===1)&&(c=i,l=new t(c,f))}),c},Ge}var Fe,Xr;function Ct(){if(Xr)return Fe;Xr=1;const t=_(),a=j(),n=Z();return Fe=(s,f)=>{s=new a(s,f);let c=new t("0.0.0");if(s.test(c)||(c=new t("0.0.0-0"),s.test(c)))return c;c=null;for(let l=0;l<s.set.length;++l){const o=s.set[l];let i=null;o.forEach(e=>{const u=new t(e.semver.version);switch(e.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||n(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),i&&(!c||n(c,i))&&(c=i)}return c&&s.test(c)?c:null},Fe}var je,Br;function qt(){if(Br)return je;Br=1;const t=j();return je=(n,r)=>{try{return new t(n,r).range||"*"}catch{return null}},je}var Xe,Vr;function rr(){if(Vr)return Xe;Vr=1;const t=_(),a=J(),{ANY:n}=a,r=j(),s=Q(),f=Z(),c=Je(),l=er(),o=Qe();return Xe=(e,u,h,m)=>{e=new t(e,m),u=new r(u,m);let w,E,N,A,D;switch(h){case">":w=f,E=l,N=c,A=">",D=">=";break;case"<":w=c,E=o,N=f,A="<",D="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,u,m))return!1;for(let T=0;T<u.set.length;++T){const U=u.set[T];let G=null,C=null;if(U.forEach(x=>{x.semver===n&&(x=new a(">=0.0.0")),G=G||x,C=C||x,w(x.semver,G.semver,m)?G=x:N(x.semver,C.semver,m)&&(C=x)}),G.operator===A||G.operator===D||(!C.operator||C.operator===A)&&E(e,C.semver))return!1;if(C.operator===D&&N(e,C.semver))return!1}return!0},Xe}var Be,kr;function yt(){if(kr)return Be;kr=1;const t=rr();return Be=(n,r,s)=>t(n,r,">",s),Be}var Ve,Mr;function xt(){if(Mr)return Ve;Mr=1;const t=rr();return Ve=(n,r,s)=>t(n,r,"<",s),Ve}var ke,zr;function Dt(){if(zr)return ke;zr=1;const t=j();return ke=(n,r,s)=>(n=new t(n,s),r=new t(r,s),n.intersects(r,s)),ke}var Me,Hr;function Ut(){if(Hr)return Me;Hr=1;const t=Q(),a=F();return Me=(n,r,s)=>{const f=[];let c=null,l=null;const o=n.sort((h,m)=>a(h,m,s));for(const h of o)t(h,r,s)?(l=h,c||(c=h)):(l&&f.push([c,l]),l=null,c=null);c&&f.push([c,null]);const i=[];for(const[h,m]of f)h===m?i.push(h):!m&&h===o[0]?i.push("*"):m?h===o[0]?i.push(`<=${m}`):i.push(`${h} - ${m}`):i.push(`>=${h}`);const e=i.join(" || "),u=typeof r.raw=="string"?r.raw:String(r);return e.length<u.length?e:r},Me}var ze,Yr;function bt(){if(Yr)return ze;Yr=1;const t=j(),a=J(),{ANY:n}=a,r=Q(),s=F(),f=(u,h,m={})=>{if(u===h)return!0;u=new t(u,m),h=new t(h,m);let w=!1;e:for(const E of u.set){for(const N of h.set){const A=o(E,N,m);if(w=w||A!==null,A)continue e}if(w)return!1}return!0},c=[new a(">=0.0.0-0")],l=[new a(">=0.0.0")],o=(u,h,m)=>{if(u===h)return!0;if(u.length===1&&u[0].semver===n){if(h.length===1&&h[0].semver===n)return!0;m.includePrerelease?u=c:u=l}if(h.length===1&&h[0].semver===n){if(m.includePrerelease)return!0;h=l}const w=new Set;let E,N;for(const L of u)L.operator===">"||L.operator===">="?E=i(E,L,m):L.operator==="<"||L.operator==="<="?N=e(N,L,m):w.add(L.semver);if(w.size>1)return null;let A;if(E&&N){if(A=s(E.semver,N.semver,m),A>0)return null;if(A===0&&(E.operator!==">="||N.operator!=="<="))return null}for(const L of w){if(E&&!r(L,String(E),m)||N&&!r(L,String(N),m))return null;for(const B of h)if(!r(L,String(B),m))return!1;return!0}let D,T,U,G,C=N&&!m.includePrerelease&&N.semver.prerelease.length?N.semver:!1,x=E&&!m.includePrerelease&&E.semver.prerelease.length?E.semver:!1;C&&C.prerelease.length===1&&N.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(const L of h){if(G=G||L.operator===">"||L.operator===">=",U=U||L.operator==="<"||L.operator==="<=",E){if(x&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===x.major&&L.semver.minor===x.minor&&L.semver.patch===x.patch&&(x=!1),L.operator===">"||L.operator===">="){if(D=i(E,L,m),D===L&&D!==E)return!1}else if(E.operator===">="&&!r(E.semver,String(L),m))return!1}if(N){if(C&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===C.major&&L.semver.minor===C.minor&&L.semver.patch===C.patch&&(C=!1),L.operator==="<"||L.operator==="<="){if(T=e(N,L,m),T===L&&T!==N)return!1}else if(N.operator==="<="&&!r(N.semver,String(L),m))return!1}if(!L.operator&&(N||E)&&A!==0)return!1}return!(E&&U&&!N&&A!==0||N&&G&&!E&&A!==0||x||C)},i=(u,h,m)=>{if(!u)return h;const w=s(u.semver,h.semver,m);return w>0?u:w<0||h.operator===">"&&u.operator===">="?h:u},e=(u,h,m)=>{if(!u)return h;const w=s(u.semver,h.semver,m);return w<0?u:w>0||h.operator==="<"&&u.operator==="<="?h:u};return ze=f,ze}var He,Wr;function _t(){if(Wr)return He;Wr=1;const t=M(),a=W(),n=_(),r=et(),s=X(),f=dt(),c=Et(),l=pt(),o=mt(),i=Rt(),e=It(),u=vt(),h=$t(),m=F(),w=St(),E=Lt(),N=Ze(),A=gt(),D=Nt(),T=Z(),U=Je(),G=rt(),C=tt(),x=Qe(),L=er(),B=st(),ee=wt(),re=J(),te=j(),se=Q(),p=At(),d=Tt(),v=Pt(),R=Ct(),$=qt(),I=rr(),S=yt(),O=xt(),g=Dt(),P=Ut(),b=bt();return He={parse:s,valid:f,clean:c,inc:l,diff:o,major:i,minor:e,patch:u,prerelease:h,compare:m,rcompare:w,compareLoose:E,compareBuild:N,sort:A,rsort:D,gt:T,lt:U,eq:G,neq:C,gte:x,lte:L,cmp:B,coerce:ee,Comparator:re,Range:te,satisfies:se,toComparators:p,maxSatisfying:d,minSatisfying:v,minVersion:R,validRange:$,outside:I,gtr:S,ltr:O,intersects:g,simplifyRange:P,subset:b,SemVer:n,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers},He}var Gt=_t();const Kr=ut(Gt);var q;(function(t){t.blue="blue",t.nanoS="nanoS",t.nanoSP="nanoSP",t.nanoX="nanoX",t.stax="stax",t.europa="europa",t.apex="apex"})(q||(q={}));const Ye={[q.blue]:{id:q.blue,productName:"Ledger Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:480*1024,masks:[822083584,822149120],getBlockSize:t=>4*1024},[q.nanoS]:{id:q.nanoS,productName:"Ledger Nano S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:320*1024,masks:[823132160],getBlockSize:t=>Kr.lt(Kr.coerce(t)??"","2.0.0")?4*1024:2*1024},[q.nanoX]:{id:q.nanoX,productName:"Ledger Nano X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2*1024*1024,masks:[855638016],getBlockSize:t=>4*1024,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[q.nanoSP]:{id:q.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1533*1024,masks:[856686592],getBlockSize:t=>32},[q.apex]:{id:q.apex,productName:"Ledger Nano Gen5",productIdMM:128,legacyUsbProductId:8,usbOnly:!1,memorySize:1533*1024,masks:[859832320],getBlockSize:t=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-8004-0000-4c6564676572",notifyUuid:"13d63400-2c97-8004-0001-4c6564676572",writeUuid:"13d63400-2c97-8004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-8004-0003-4c6564676572"}]},[q.stax]:{id:q.stax,productName:"Ledger Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1533*1024,masks:[857735168],getBlockSize:t=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]},[q.europa]:{id:q.europa,productName:"Ledger Flex",productIdMM:112,legacyUsbProductId:7,usbOnly:!1,memorySize:1533*1024,masks:[858783744],getBlockSize:t=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-3004-0000-4c6564676572",notifyUuid:"13d63400-2c97-3004-0001-4c6564676572",writeUuid:"13d63400-2c97-3004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-3004-0003-4c6564676572"}]}};q.blue,q.nanoS,q.nanoSP,q.nanoX,q.stax,q.europa;const Zr=Object.values(Ye),nt=11415,Jr=t=>{const a=Zr.find(s=>s.legacyUsbProductId===t);if(a)return a;const n=t>>8;return Zr.find(s=>s.productIdMM===n)},Ft=[],Qr={};for(const t in Ye){const a=Ye[t],{bluetoothSpec:n}=a;if(n)for(let r=0;r<n.length;r++){const s=n[r];Ft.push(s.serviceUuid),Qr[s.serviceUuid]=Qr[s.serviceUuid.replace(/-/g,"")]={deviceModel:a,...s}}}const jt=[{vendorId:nt}],Xt=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),Y=()=>{const{hid:t}=navigator;if(!t)throw new k("navigator.hid is not supported","HIDNotSupported");return t};async function it(){const t=await Y().requestDevice({filters:jt});return Array.isArray(t)?t:[t]}async function We(){return(await Y().getDevices()).filter(a=>a.vendorId===nt)}async function Bt(){const t=await We();return t.length>0?t[0]:(await it())[0]}class H extends at{device;deviceModel;channel=Math.floor(Math.random()*65535);packetSize=64;constructor(a){super(),this.device=a,this.deviceModel=typeof a.productId=="number"?Jr(a.productId):void 0,a.addEventListener("inputreport",this.onInputReport)}inputs=[];inputCallback;read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(a=>{this.inputCallback=a});onInputReport=a=>{const n=Buffer.from(a.data.buffer);this.inputCallback?(this.inputCallback(n),this.inputCallback=null):this.inputs.push(n)};static isSupported=Xt;static list=We;static listen=a=>{let n=!1;Bt().then(s=>{if(!s)a.error(new tr("Access denied to use Ledger device"));else if(!n){const f=typeof s.productId=="number"?Jr(s.productId):void 0;a.next({type:"add",descriptor:s,deviceModel:f}),a.complete()}},s=>{a.error(new tr(s.message))});function r(){n=!0}return{unsubscribe:r}};static async request(){const[a]=await it();return H.open(a)}static async openConnected(){const a=await We();return a.length===0?null:H.open(a[0])}static async open(a){await a.open();const n=new H(a),r=s=>{a===s.device&&(Y().removeEventListener("disconnect",r),n._emitDisconnect(new ct))};return Y().addEventListener("disconnect",r),n}_disconnectEmitted=!1;_emitDisconnect=a=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",a))};async close(){await this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),await this.device.close()}exchange=async a=>await this.exchangeAtomicImpl(async()=>{const{channel:r,packetSize:s}=this;sr("apdu","=> "+a.toString("hex"));const f=ht(r,s),c=f.makeBlocks(a);for(let i=0;i<c.length;i++)await this.device.sendReport(0,c[i]);let l,o;for(;!(l=f.getReducedResult(o));)try{const i=await this.read();o=f.reduceResponse(o,i)}catch(i){if(i instanceof k&&i.id==="InvalidChannel")continue;throw i}return sr("apdu","<= "+l.toString("hex")),l}).catch(r=>{throw r&&r.message&&r.message.includes("write")?(this._emitDisconnect(r),new ot(r.message)):r});setScrambleKey(){}}export{H as default};
|
|
1
|
+
import{s as k,t as at,u as tr,v as sr,D as ot,w as ct}from"./vendor-web3-BXoVw72d.js";import{g as ut}from"./vendor-dayjs-CzbnksQQ.js";import"./vendor-vue-1w_NBnjl.js";const nr=5;function lt(t){const a=Buffer.alloc(2);return a.writeUInt16BE(t,0),a}const ft={data:Buffer.alloc(0),dataLength:0,sequence:0},ht=(t,a)=>({makeBlocks(n){let r=Buffer.concat([lt(n.length),n]);const s=a-5,f=Math.ceil(r.length/s);r=Buffer.concat([r,Buffer.alloc(f*s-r.length+1).fill(0)]);const c=[];for(let l=0;l<f;l++){const o=Buffer.alloc(5);o.writeUInt16BE(t,0),o.writeUInt8(nr,2),o.writeUInt16BE(l,3);const i=r.slice(l*s,(l+1)*s);c.push(Buffer.concat([o,i]))}return c},reduceResponse(n,r){let{data:s,dataLength:f,sequence:c}=n||ft;if(r.readUInt16BE(0)!==t)throw new k("Invalid channel","InvalidChannel");if(r.readUInt8(2)!==nr)throw new k("Invalid tag","InvalidTag");if(r.readUInt16BE(3)!==c)throw new k("Invalid sequence","InvalidSequence");n||(f=r.readUInt16BE(5)),c++;const l=r.slice(n?5:7);return s=Buffer.concat([s,l]),s.length>f&&(s=s.slice(0,f)),{data:s,dataLength:f,sequence:c}},getReducedResult(n){if(n&&n.dataLength===n.data.length)return n.data}});var z={exports:{}},ne,ir;function W(){if(ir)return ne;ir=1;const t="2.0.0",a=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,s=a-6;return ne={MAX_LENGTH:a,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:s,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},ne}var ie,ar;function K(){if(ar)return ie;ar=1;var t={};return ie=typeof process=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},ie}var or;function M(){return or||(or=1,function(t,a){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:s}=W(),f=K();a=t.exports={};const c=a.re=[],l=a.safeRe=[],o=a.src=[],i=a.safeSrc=[],e=a.t={};let u=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",s],[h,r]],w=N=>{for(const[A,D]of m)N=N.split(`${A}*`).join(`${A}{0,${D}}`).split(`${A}+`).join(`${A}{1,${D}}`);return N},E=(N,A,D)=>{const T=w(A),U=u++;f(N,U,A),e[N]=U,o[U]=A,i[U]=T,c[U]=new RegExp(A,D?"g":void 0),l[U]=new RegExp(T,D?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","\\d+"),E("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),E("MAINVERSION",`(${o[e.NUMERICIDENTIFIER]})\\.(${o[e.NUMERICIDENTIFIER]})\\.(${o[e.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${o[e.NUMERICIDENTIFIERLOOSE]})\\.(${o[e.NUMERICIDENTIFIERLOOSE]})\\.(${o[e.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${o[e.NONNUMERICIDENTIFIER]}|${o[e.NUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${o[e.NONNUMERICIDENTIFIER]}|${o[e.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASE",`(?:-(${o[e.PRERELEASEIDENTIFIER]}(?:\\.${o[e.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${o[e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[e.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER",`${h}+`),E("BUILD",`(?:\\+(${o[e.BUILDIDENTIFIER]}(?:\\.${o[e.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${o[e.MAINVERSION]}${o[e.PRERELEASE]}?${o[e.BUILD]}?`),E("FULL",`^${o[e.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${o[e.MAINVERSIONLOOSE]}${o[e.PRERELEASELOOSE]}?${o[e.BUILD]}?`),E("LOOSE",`^${o[e.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${o[e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${o[e.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${o[e.XRANGEIDENTIFIER]})(?:\\.(${o[e.XRANGEIDENTIFIER]})(?:\\.(${o[e.XRANGEIDENTIFIER]})(?:${o[e.PRERELEASE]})?${o[e.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${o[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[e.XRANGEIDENTIFIERLOOSE]})(?:${o[e.PRERELEASELOOSE]})?${o[e.BUILD]}?)?)?`),E("XRANGE",`^${o[e.GTLT]}\\s*${o[e.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${o[e.GTLT]}\\s*${o[e.XRANGEPLAINLOOSE]}$`),E("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),E("COERCE",`${o[e.COERCEPLAIN]}(?:$|[^\\d])`),E("COERCEFULL",o[e.COERCEPLAIN]+`(?:${o[e.PRERELEASE]})?(?:${o[e.BUILD]})?(?:$|[^\\d])`),E("COERCERTL",o[e.COERCE],!0),E("COERCERTLFULL",o[e.COERCEFULL],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${o[e.LONETILDE]}\\s+`,!0),a.tildeTrimReplace="$1~",E("TILDE",`^${o[e.LONETILDE]}${o[e.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${o[e.LONETILDE]}${o[e.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${o[e.LONECARET]}\\s+`,!0),a.caretTrimReplace="$1^",E("CARET",`^${o[e.LONECARET]}${o[e.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${o[e.LONECARET]}${o[e.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${o[e.GTLT]}\\s*(${o[e.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${o[e.GTLT]}\\s*(${o[e.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${o[e.GTLT]}\\s*(${o[e.LOOSEPLAIN]}|${o[e.XRANGEPLAIN]})`,!0),a.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${o[e.XRANGEPLAIN]})\\s+-\\s+(${o[e.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${o[e.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[e.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(z,z.exports)),z.exports}var ae,cr;function Ke(){if(cr)return ae;cr=1;const t=Object.freeze({loose:!0}),a=Object.freeze({});return ae=r=>r?typeof r!="object"?t:r:a,ae}var oe,ur;function et(){if(ur)return oe;ur=1;const t=/^[0-9]+$/,a=(r,s)=>{const f=t.test(r),c=t.test(s);return f&&c&&(r=+r,s=+s),r===s?0:f&&!c?-1:c&&!f?1:r<s?-1:1};return oe={compareIdentifiers:a,rcompareIdentifiers:(r,s)=>a(s,r)},oe}var ce,lr;function _(){if(lr)return ce;lr=1;const t=K(),{MAX_LENGTH:a,MAX_SAFE_INTEGER:n}=W(),{safeRe:r,t:s}=M(),f=Ke(),{compareIdentifiers:c}=et();class l{constructor(i,e){if(e=f(e),i instanceof l){if(i.loose===!!e.loose&&i.includePrerelease===!!e.includePrerelease)return i;i=i.version}else if(typeof i!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof i}".`);if(i.length>a)throw new TypeError(`version is longer than ${a} characters`);t("SemVer",i,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const u=i.trim().match(e.loose?r[s.LOOSE]:r[s.FULL]);if(!u)throw new TypeError(`Invalid Version: ${i}`);if(this.raw=i,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const m=+h;if(m>=0&&m<n)return m}return h}):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(i){if(t("SemVer.compare",this.version,this.options,i),!(i instanceof l)){if(typeof i=="string"&&i===this.version)return 0;i=new l(i,this.options)}return i.version===this.version?0:this.compareMain(i)||this.comparePre(i)}compareMain(i){return i instanceof l||(i=new l(i,this.options)),c(this.major,i.major)||c(this.minor,i.minor)||c(this.patch,i.patch)}comparePre(i){if(i instanceof l||(i=new l(i,this.options)),this.prerelease.length&&!i.prerelease.length)return-1;if(!this.prerelease.length&&i.prerelease.length)return 1;if(!this.prerelease.length&&!i.prerelease.length)return 0;let e=0;do{const u=this.prerelease[e],h=i.prerelease[e];if(t("prerelease compare",e,u,h),u===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(u===void 0)return-1;if(u===h)continue;return c(u,h)}while(++e)}compareBuild(i){i instanceof l||(i=new l(i,this.options));let e=0;do{const u=this.build[e],h=i.build[e];if(t("build compare",e,u,h),u===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(u===void 0)return-1;if(u===h)continue;return c(u,h)}while(++e)}inc(i,e,u){if(i.startsWith("pre")){if(!e&&u===!1)throw new Error("invalid increment argument: identifier is empty");if(e){const h=`-${e}`.match(this.options.loose?r[s.PRERELEASELOOSE]:r[s.PRERELEASE]);if(!h||h[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(i){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,u);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,u);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,u),this.inc("pre",e,u);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,u),this.inc("pre",e,u);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(u)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(e===this.prerelease.join(".")&&u===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(e){let m=[e,h];u===!1&&(m=[e]),c(this.prerelease[0],e)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${i}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ce=l,ce}var ue,fr;function X(){if(fr)return ue;fr=1;const t=_();return ue=(n,r,s=!1)=>{if(n instanceof t)return n;try{return new t(n,r)}catch(f){if(!s)return null;throw f}},ue}var le,hr;function dt(){if(hr)return le;hr=1;const t=X();return le=(n,r)=>{const s=t(n,r);return s?s.version:null},le}var fe,dr;function Et(){if(dr)return fe;dr=1;const t=X();return fe=(n,r)=>{const s=t(n.trim().replace(/^[=v]+/,""),r);return s?s.version:null},fe}var he,Er;function pt(){if(Er)return he;Er=1;const t=_();return he=(n,r,s,f,c)=>{typeof s=="string"&&(c=f,f=s,s=void 0);try{return new t(n instanceof t?n.version:n,s).inc(r,f,c).version}catch{return null}},he}var de,pr;function mt(){if(pr)return de;pr=1;const t=X();return de=(n,r)=>{const s=t(n,null,!0),f=t(r,null,!0),c=s.compare(f);if(c===0)return null;const l=c>0,o=l?s:f,i=l?f:s,e=!!o.prerelease.length;if(!!i.prerelease.length&&!e){if(!i.patch&&!i.minor)return"major";if(i.compareMain(o)===0)return i.minor&&!i.patch?"minor":"patch"}const h=e?"pre":"";return s.major!==f.major?h+"major":s.minor!==f.minor?h+"minor":s.patch!==f.patch?h+"patch":"prerelease"},de}var Ee,mr;function Rt(){if(mr)return Ee;mr=1;const t=_();return Ee=(n,r)=>new t(n,r).major,Ee}var pe,Rr;function It(){if(Rr)return pe;Rr=1;const t=_();return pe=(n,r)=>new t(n,r).minor,pe}var me,Ir;function vt(){if(Ir)return me;Ir=1;const t=_();return me=(n,r)=>new t(n,r).patch,me}var Re,vr;function $t(){if(vr)return Re;vr=1;const t=X();return Re=(n,r)=>{const s=t(n,r);return s&&s.prerelease.length?s.prerelease:null},Re}var Ie,$r;function F(){if($r)return Ie;$r=1;const t=_();return Ie=(n,r,s)=>new t(n,s).compare(new t(r,s)),Ie}var ve,Sr;function St(){if(Sr)return ve;Sr=1;const t=F();return ve=(n,r,s)=>t(r,n,s),ve}var $e,Lr;function Lt(){if(Lr)return $e;Lr=1;const t=F();return $e=(n,r)=>t(n,r,!0),$e}var Se,gr;function Ze(){if(gr)return Se;gr=1;const t=_();return Se=(n,r,s)=>{const f=new t(n,s),c=new t(r,s);return f.compare(c)||f.compareBuild(c)},Se}var Le,Nr;function gt(){if(Nr)return Le;Nr=1;const t=Ze();return Le=(n,r)=>n.sort((s,f)=>t(s,f,r)),Le}var ge,wr;function Nt(){if(wr)return ge;wr=1;const t=Ze();return ge=(n,r)=>n.sort((s,f)=>t(f,s,r)),ge}var Ne,Or;function Z(){if(Or)return Ne;Or=1;const t=F();return Ne=(n,r,s)=>t(n,r,s)>0,Ne}var we,Ar;function Je(){if(Ar)return we;Ar=1;const t=F();return we=(n,r,s)=>t(n,r,s)<0,we}var Oe,Tr;function rt(){if(Tr)return Oe;Tr=1;const t=F();return Oe=(n,r,s)=>t(n,r,s)===0,Oe}var Ae,Pr;function tt(){if(Pr)return Ae;Pr=1;const t=F();return Ae=(n,r,s)=>t(n,r,s)!==0,Ae}var Te,Cr;function Qe(){if(Cr)return Te;Cr=1;const t=F();return Te=(n,r,s)=>t(n,r,s)>=0,Te}var Pe,qr;function er(){if(qr)return Pe;qr=1;const t=F();return Pe=(n,r,s)=>t(n,r,s)<=0,Pe}var Ce,yr;function st(){if(yr)return Ce;yr=1;const t=rt(),a=tt(),n=Z(),r=Qe(),s=Je(),f=er();return Ce=(l,o,i,e)=>{switch(o){case"===":return typeof l=="object"&&(l=l.version),typeof i=="object"&&(i=i.version),l===i;case"!==":return typeof l=="object"&&(l=l.version),typeof i=="object"&&(i=i.version),l!==i;case"":case"=":case"==":return t(l,i,e);case"!=":return a(l,i,e);case">":return n(l,i,e);case">=":return r(l,i,e);case"<":return s(l,i,e);case"<=":return f(l,i,e);default:throw new TypeError(`Invalid operator: ${o}`)}},Ce}var qe,xr;function wt(){if(xr)return qe;xr=1;const t=_(),a=X(),{safeRe:n,t:r}=M();return qe=(f,c)=>{if(f instanceof t)return f;if(typeof f=="number"&&(f=String(f)),typeof f!="string")return null;c=c||{};let l=null;if(!c.rtl)l=f.match(c.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);else{const m=c.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let w;for(;(w=m.exec(f))&&(!l||l.index+l[0].length!==f.length);)(!l||w.index+w[0].length!==l.index+l[0].length)&&(l=w),m.lastIndex=w.index+w[1].length+w[2].length;m.lastIndex=-1}if(l===null)return null;const o=l[2],i=l[3]||"0",e=l[4]||"0",u=c.includePrerelease&&l[5]?`-${l[5]}`:"",h=c.includePrerelease&&l[6]?`+${l[6]}`:"";return a(`${o}.${i}.${e}${u}${h}`,c)},qe}var ye,Dr;function Ot(){if(Dr)return ye;Dr=1;class t{constructor(){this.max=1e3,this.map=new Map}get(n){const r=this.map.get(n);if(r!==void 0)return this.map.delete(n),this.map.set(n,r),r}delete(n){return this.map.delete(n)}set(n,r){if(!this.delete(n)&&r!==void 0){if(this.map.size>=this.max){const f=this.map.keys().next().value;this.delete(f)}this.map.set(n,r)}return this}}return ye=t,ye}var xe,Ur;function j(){if(Ur)return xe;Ur=1;const t=/\s+/g;class a{constructor(d,v){if(v=s(v),d instanceof a)return d.loose===!!v.loose&&d.includePrerelease===!!v.includePrerelease?d:new a(d.raw,v);if(d instanceof f)return this.raw=d.value,this.set=[[d]],this.formatted=void 0,this;if(this.options=v,this.loose=!!v.loose,this.includePrerelease=!!v.includePrerelease,this.raw=d.trim().replace(t," "),this.set=this.raw.split("||").map(R=>this.parseRange(R.trim())).filter(R=>R.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const R=this.set[0];if(this.set=this.set.filter($=>!E($[0])),this.set.length===0)this.set=[R];else if(this.set.length>1){for(const $ of this.set)if($.length===1&&N($[0])){this.set=[$];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let d=0;d<this.set.length;d++){d>0&&(this.formatted+="||");const v=this.set[d];for(let R=0;R<v.length;R++)R>0&&(this.formatted+=" "),this.formatted+=v[R].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(d){const R=((this.options.includePrerelease&&m)|(this.options.loose&&w))+":"+d,$=r.get(R);if($)return $;const I=this.options.loose,S=I?o[i.HYPHENRANGELOOSE]:o[i.HYPHENRANGE];d=d.replace(S,te(this.options.includePrerelease)),c("hyphen replace",d),d=d.replace(o[i.COMPARATORTRIM],e),c("comparator trim",d),d=d.replace(o[i.TILDETRIM],u),c("tilde trim",d),d=d.replace(o[i.CARETTRIM],h),c("caret trim",d);let O=d.split(" ").map(y=>D(y,this.options)).join(" ").split(/\s+/).map(y=>re(y,this.options));I&&(O=O.filter(y=>(c("loose invalid filter",y,this.options),!!y.match(o[i.COMPARATORLOOSE])))),c("range list",O);const g=new Map,P=O.map(y=>new f(y,this.options));for(const y of P){if(E(y))return[y];g.set(y.value,y)}g.size>1&&g.has("")&&g.delete("");const b=[...g.values()];return r.set(R,b),b}intersects(d,v){if(!(d instanceof a))throw new TypeError("a Range is required");return this.set.some(R=>A(R,v)&&d.set.some($=>A($,v)&&R.every(I=>$.every(S=>I.intersects(S,v)))))}test(d){if(!d)return!1;if(typeof d=="string")try{d=new l(d,this.options)}catch{return!1}for(let v=0;v<this.set.length;v++)if(se(this.set[v],d,this.options))return!0;return!1}}xe=a;const n=Ot(),r=new n,s=Ke(),f=J(),c=K(),l=_(),{safeRe:o,t:i,comparatorTrimReplace:e,tildeTrimReplace:u,caretTrimReplace:h}=M(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:w}=W(),E=p=>p.value==="<0.0.0-0",N=p=>p.value==="",A=(p,d)=>{let v=!0;const R=p.slice();let $=R.pop();for(;v&&R.length;)v=R.every(I=>$.intersects(I,d)),$=R.pop();return v},D=(p,d)=>(c("comp",p,d),p=C(p,d),c("caret",p),p=U(p,d),c("tildes",p),p=L(p,d),c("xrange",p),p=ee(p,d),c("stars",p),p),T=p=>!p||p.toLowerCase()==="x"||p==="*",U=(p,d)=>p.trim().split(/\s+/).map(v=>G(v,d)).join(" "),G=(p,d)=>{const v=d.loose?o[i.TILDELOOSE]:o[i.TILDE];return p.replace(v,(R,$,I,S,O)=>{c("tilde",p,R,$,I,S,O);let g;return T($)?g="":T(I)?g=`>=${$}.0.0 <${+$+1}.0.0-0`:T(S)?g=`>=${$}.${I}.0 <${$}.${+I+1}.0-0`:O?(c("replaceTilde pr",O),g=`>=${$}.${I}.${S}-${O} <${$}.${+I+1}.0-0`):g=`>=${$}.${I}.${S} <${$}.${+I+1}.0-0`,c("tilde return",g),g})},C=(p,d)=>p.trim().split(/\s+/).map(v=>x(v,d)).join(" "),x=(p,d)=>{c("caret",p,d);const v=d.loose?o[i.CARETLOOSE]:o[i.CARET],R=d.includePrerelease?"-0":"";return p.replace(v,($,I,S,O,g)=>{c("caret",p,$,I,S,O,g);let P;return T(I)?P="":T(S)?P=`>=${I}.0.0${R} <${+I+1}.0.0-0`:T(O)?I==="0"?P=`>=${I}.${S}.0${R} <${I}.${+S+1}.0-0`:P=`>=${I}.${S}.0${R} <${+I+1}.0.0-0`:g?(c("replaceCaret pr",g),I==="0"?S==="0"?P=`>=${I}.${S}.${O}-${g} <${I}.${S}.${+O+1}-0`:P=`>=${I}.${S}.${O}-${g} <${I}.${+S+1}.0-0`:P=`>=${I}.${S}.${O}-${g} <${+I+1}.0.0-0`):(c("no pr"),I==="0"?S==="0"?P=`>=${I}.${S}.${O}${R} <${I}.${S}.${+O+1}-0`:P=`>=${I}.${S}.${O}${R} <${I}.${+S+1}.0-0`:P=`>=${I}.${S}.${O} <${+I+1}.0.0-0`),c("caret return",P),P})},L=(p,d)=>(c("replaceXRanges",p,d),p.split(/\s+/).map(v=>B(v,d)).join(" ")),B=(p,d)=>{p=p.trim();const v=d.loose?o[i.XRANGELOOSE]:o[i.XRANGE];return p.replace(v,(R,$,I,S,O,g)=>{c("xRange",p,R,$,I,S,O,g);const P=T(I),b=P||T(S),y=b||T(O),V=y;return $==="="&&V&&($=""),g=d.includePrerelease?"-0":"",P?$===">"||$==="<"?R="<0.0.0-0":R="*":$&&V?(b&&(S=0),O=0,$===">"?($=">=",b?(I=+I+1,S=0,O=0):(S=+S+1,O=0)):$==="<="&&($="<",b?I=+I+1:S=+S+1),$==="<"&&(g="-0"),R=`${$+I}.${S}.${O}${g}`):b?R=`>=${I}.0.0${g} <${+I+1}.0.0-0`:y&&(R=`>=${I}.${S}.0${g} <${I}.${+S+1}.0-0`),c("xRange return",R),R})},ee=(p,d)=>(c("replaceStars",p,d),p.trim().replace(o[i.STAR],"")),re=(p,d)=>(c("replaceGTE0",p,d),p.trim().replace(o[d.includePrerelease?i.GTE0PRE:i.GTE0],"")),te=p=>(d,v,R,$,I,S,O,g,P,b,y,V)=>(T(R)?v="":T($)?v=`>=${R}.0.0${p?"-0":""}`:T(I)?v=`>=${R}.${$}.0${p?"-0":""}`:S?v=`>=${v}`:v=`>=${v}${p?"-0":""}`,T(P)?g="":T(b)?g=`<${+P+1}.0.0-0`:T(y)?g=`<${P}.${+b+1}.0-0`:V?g=`<=${P}.${b}.${y}-${V}`:p?g=`<${P}.${b}.${+y+1}-0`:g=`<=${g}`,`${v} ${g}`.trim()),se=(p,d,v)=>{for(let R=0;R<p.length;R++)if(!p[R].test(d))return!1;if(d.prerelease.length&&!v.includePrerelease){for(let R=0;R<p.length;R++)if(c(p[R].semver),p[R].semver!==f.ANY&&p[R].semver.prerelease.length>0){const $=p[R].semver;if($.major===d.major&&$.minor===d.minor&&$.patch===d.patch)return!0}return!1}return!0};return xe}var De,br;function J(){if(br)return De;br=1;const t=Symbol("SemVer ANY");class a{static get ANY(){return t}constructor(e,u){if(u=n(u),e instanceof a){if(e.loose===!!u.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,u),this.options=u,this.loose=!!u.loose,this.parse(e),this.semver===t?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const u=this.options.loose?r[s.COMPARATORLOOSE]:r[s.COMPARATOR],h=e.match(u);if(!h)throw new TypeError(`Invalid comparator: ${e}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new l(h[2],this.options.loose):this.semver=t}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===t||e===t)return!0;if(typeof e=="string")try{e=new l(e,this.options)}catch{return!1}return f(e,this.operator,this.semver,this.options)}intersects(e,u){if(!(e instanceof a))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(e.value,u).test(this.value):e.operator===""?e.value===""?!0:new o(this.value,u).test(e.semver):(u=n(u),u.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||f(this.semver,"<",e.semver,u)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||f(this.semver,">",e.semver,u)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}De=a;const n=Ke(),{safeRe:r,t:s}=M(),f=st(),c=K(),l=_(),o=j();return De}var Ue,_r;function Q(){if(_r)return Ue;_r=1;const t=j();return Ue=(n,r,s)=>{try{r=new t(r,s)}catch{return!1}return r.test(n)},Ue}var be,Gr;function At(){if(Gr)return be;Gr=1;const t=j();return be=(n,r)=>new t(n,r).set.map(s=>s.map(f=>f.value).join(" ").trim().split(" ")),be}var _e,Fr;function Tt(){if(Fr)return _e;Fr=1;const t=_(),a=j();return _e=(r,s,f)=>{let c=null,l=null,o=null;try{o=new a(s,f)}catch{return null}return r.forEach(i=>{o.test(i)&&(!c||l.compare(i)===-1)&&(c=i,l=new t(c,f))}),c},_e}var Ge,jr;function Pt(){if(jr)return Ge;jr=1;const t=_(),a=j();return Ge=(r,s,f)=>{let c=null,l=null,o=null;try{o=new a(s,f)}catch{return null}return r.forEach(i=>{o.test(i)&&(!c||l.compare(i)===1)&&(c=i,l=new t(c,f))}),c},Ge}var Fe,Xr;function Ct(){if(Xr)return Fe;Xr=1;const t=_(),a=j(),n=Z();return Fe=(s,f)=>{s=new a(s,f);let c=new t("0.0.0");if(s.test(c)||(c=new t("0.0.0-0"),s.test(c)))return c;c=null;for(let l=0;l<s.set.length;++l){const o=s.set[l];let i=null;o.forEach(e=>{const u=new t(e.semver.version);switch(e.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||n(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),i&&(!c||n(c,i))&&(c=i)}return c&&s.test(c)?c:null},Fe}var je,Br;function qt(){if(Br)return je;Br=1;const t=j();return je=(n,r)=>{try{return new t(n,r).range||"*"}catch{return null}},je}var Xe,Vr;function rr(){if(Vr)return Xe;Vr=1;const t=_(),a=J(),{ANY:n}=a,r=j(),s=Q(),f=Z(),c=Je(),l=er(),o=Qe();return Xe=(e,u,h,m)=>{e=new t(e,m),u=new r(u,m);let w,E,N,A,D;switch(h){case">":w=f,E=l,N=c,A=">",D=">=";break;case"<":w=c,E=o,N=f,A="<",D="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,u,m))return!1;for(let T=0;T<u.set.length;++T){const U=u.set[T];let G=null,C=null;if(U.forEach(x=>{x.semver===n&&(x=new a(">=0.0.0")),G=G||x,C=C||x,w(x.semver,G.semver,m)?G=x:N(x.semver,C.semver,m)&&(C=x)}),G.operator===A||G.operator===D||(!C.operator||C.operator===A)&&E(e,C.semver))return!1;if(C.operator===D&&N(e,C.semver))return!1}return!0},Xe}var Be,kr;function yt(){if(kr)return Be;kr=1;const t=rr();return Be=(n,r,s)=>t(n,r,">",s),Be}var Ve,Mr;function xt(){if(Mr)return Ve;Mr=1;const t=rr();return Ve=(n,r,s)=>t(n,r,"<",s),Ve}var ke,zr;function Dt(){if(zr)return ke;zr=1;const t=j();return ke=(n,r,s)=>(n=new t(n,s),r=new t(r,s),n.intersects(r,s)),ke}var Me,Hr;function Ut(){if(Hr)return Me;Hr=1;const t=Q(),a=F();return Me=(n,r,s)=>{const f=[];let c=null,l=null;const o=n.sort((h,m)=>a(h,m,s));for(const h of o)t(h,r,s)?(l=h,c||(c=h)):(l&&f.push([c,l]),l=null,c=null);c&&f.push([c,null]);const i=[];for(const[h,m]of f)h===m?i.push(h):!m&&h===o[0]?i.push("*"):m?h===o[0]?i.push(`<=${m}`):i.push(`${h} - ${m}`):i.push(`>=${h}`);const e=i.join(" || "),u=typeof r.raw=="string"?r.raw:String(r);return e.length<u.length?e:r},Me}var ze,Yr;function bt(){if(Yr)return ze;Yr=1;const t=j(),a=J(),{ANY:n}=a,r=Q(),s=F(),f=(u,h,m={})=>{if(u===h)return!0;u=new t(u,m),h=new t(h,m);let w=!1;e:for(const E of u.set){for(const N of h.set){const A=o(E,N,m);if(w=w||A!==null,A)continue e}if(w)return!1}return!0},c=[new a(">=0.0.0-0")],l=[new a(">=0.0.0")],o=(u,h,m)=>{if(u===h)return!0;if(u.length===1&&u[0].semver===n){if(h.length===1&&h[0].semver===n)return!0;m.includePrerelease?u=c:u=l}if(h.length===1&&h[0].semver===n){if(m.includePrerelease)return!0;h=l}const w=new Set;let E,N;for(const L of u)L.operator===">"||L.operator===">="?E=i(E,L,m):L.operator==="<"||L.operator==="<="?N=e(N,L,m):w.add(L.semver);if(w.size>1)return null;let A;if(E&&N){if(A=s(E.semver,N.semver,m),A>0)return null;if(A===0&&(E.operator!==">="||N.operator!=="<="))return null}for(const L of w){if(E&&!r(L,String(E),m)||N&&!r(L,String(N),m))return null;for(const B of h)if(!r(L,String(B),m))return!1;return!0}let D,T,U,G,C=N&&!m.includePrerelease&&N.semver.prerelease.length?N.semver:!1,x=E&&!m.includePrerelease&&E.semver.prerelease.length?E.semver:!1;C&&C.prerelease.length===1&&N.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(const L of h){if(G=G||L.operator===">"||L.operator===">=",U=U||L.operator==="<"||L.operator==="<=",E){if(x&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===x.major&&L.semver.minor===x.minor&&L.semver.patch===x.patch&&(x=!1),L.operator===">"||L.operator===">="){if(D=i(E,L,m),D===L&&D!==E)return!1}else if(E.operator===">="&&!r(E.semver,String(L),m))return!1}if(N){if(C&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===C.major&&L.semver.minor===C.minor&&L.semver.patch===C.patch&&(C=!1),L.operator==="<"||L.operator==="<="){if(T=e(N,L,m),T===L&&T!==N)return!1}else if(N.operator==="<="&&!r(N.semver,String(L),m))return!1}if(!L.operator&&(N||E)&&A!==0)return!1}return!(E&&U&&!N&&A!==0||N&&G&&!E&&A!==0||x||C)},i=(u,h,m)=>{if(!u)return h;const w=s(u.semver,h.semver,m);return w>0?u:w<0||h.operator===">"&&u.operator===">="?h:u},e=(u,h,m)=>{if(!u)return h;const w=s(u.semver,h.semver,m);return w<0?u:w>0||h.operator==="<"&&u.operator==="<="?h:u};return ze=f,ze}var He,Wr;function _t(){if(Wr)return He;Wr=1;const t=M(),a=W(),n=_(),r=et(),s=X(),f=dt(),c=Et(),l=pt(),o=mt(),i=Rt(),e=It(),u=vt(),h=$t(),m=F(),w=St(),E=Lt(),N=Ze(),A=gt(),D=Nt(),T=Z(),U=Je(),G=rt(),C=tt(),x=Qe(),L=er(),B=st(),ee=wt(),re=J(),te=j(),se=Q(),p=At(),d=Tt(),v=Pt(),R=Ct(),$=qt(),I=rr(),S=yt(),O=xt(),g=Dt(),P=Ut(),b=bt();return He={parse:s,valid:f,clean:c,inc:l,diff:o,major:i,minor:e,patch:u,prerelease:h,compare:m,rcompare:w,compareLoose:E,compareBuild:N,sort:A,rsort:D,gt:T,lt:U,eq:G,neq:C,gte:x,lte:L,cmp:B,coerce:ee,Comparator:re,Range:te,satisfies:se,toComparators:p,maxSatisfying:d,minSatisfying:v,minVersion:R,validRange:$,outside:I,gtr:S,ltr:O,intersects:g,simplifyRange:P,subset:b,SemVer:n,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers},He}var Gt=_t();const Kr=ut(Gt);var q;(function(t){t.blue="blue",t.nanoS="nanoS",t.nanoSP="nanoSP",t.nanoX="nanoX",t.stax="stax",t.europa="europa",t.apex="apex"})(q||(q={}));const Ye={[q.blue]:{id:q.blue,productName:"Ledger Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:480*1024,masks:[822083584,822149120],getBlockSize:t=>4*1024},[q.nanoS]:{id:q.nanoS,productName:"Ledger Nano S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:320*1024,masks:[823132160],getBlockSize:t=>Kr.lt(Kr.coerce(t)??"","2.0.0")?4*1024:2*1024},[q.nanoX]:{id:q.nanoX,productName:"Ledger Nano X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2*1024*1024,masks:[855638016],getBlockSize:t=>4*1024,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[q.nanoSP]:{id:q.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1533*1024,masks:[856686592],getBlockSize:t=>32},[q.apex]:{id:q.apex,productName:"Ledger Nano Gen5",productIdMM:128,legacyUsbProductId:8,usbOnly:!1,memorySize:1533*1024,masks:[859832320],getBlockSize:t=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-8004-0000-4c6564676572",notifyUuid:"13d63400-2c97-8004-0001-4c6564676572",writeUuid:"13d63400-2c97-8004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-8004-0003-4c6564676572"}]},[q.stax]:{id:q.stax,productName:"Ledger Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1533*1024,masks:[857735168],getBlockSize:t=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]},[q.europa]:{id:q.europa,productName:"Ledger Flex",productIdMM:112,legacyUsbProductId:7,usbOnly:!1,memorySize:1533*1024,masks:[858783744],getBlockSize:t=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-3004-0000-4c6564676572",notifyUuid:"13d63400-2c97-3004-0001-4c6564676572",writeUuid:"13d63400-2c97-3004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-3004-0003-4c6564676572"}]}};q.blue,q.nanoS,q.nanoSP,q.nanoX,q.stax,q.europa;const Zr=Object.values(Ye),nt=11415,Jr=t=>{const a=Zr.find(s=>s.legacyUsbProductId===t);if(a)return a;const n=t>>8;return Zr.find(s=>s.productIdMM===n)},Ft=[],Qr={};for(const t in Ye){const a=Ye[t],{bluetoothSpec:n}=a;if(n)for(let r=0;r<n.length;r++){const s=n[r];Ft.push(s.serviceUuid),Qr[s.serviceUuid]=Qr[s.serviceUuid.replace(/-/g,"")]={deviceModel:a,...s}}}const jt=[{vendorId:nt}],Xt=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),Y=()=>{const{hid:t}=navigator;if(!t)throw new k("navigator.hid is not supported","HIDNotSupported");return t};async function it(){const t=await Y().requestDevice({filters:jt});return Array.isArray(t)?t:[t]}async function We(){return(await Y().getDevices()).filter(a=>a.vendorId===nt)}async function Bt(){const t=await We();return t.length>0?t[0]:(await it())[0]}class H extends at{device;deviceModel;channel=Math.floor(Math.random()*65535);packetSize=64;constructor(a){super(),this.device=a,this.deviceModel=typeof a.productId=="number"?Jr(a.productId):void 0,a.addEventListener("inputreport",this.onInputReport)}inputs=[];inputCallback;read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(a=>{this.inputCallback=a});onInputReport=a=>{const n=Buffer.from(a.data.buffer);this.inputCallback?(this.inputCallback(n),this.inputCallback=null):this.inputs.push(n)};static isSupported=Xt;static list=We;static listen=a=>{let n=!1;Bt().then(s=>{if(!s)a.error(new tr("Access denied to use Ledger device"));else if(!n){const f=typeof s.productId=="number"?Jr(s.productId):void 0;a.next({type:"add",descriptor:s,deviceModel:f}),a.complete()}},s=>{a.error(new tr(s.message))});function r(){n=!0}return{unsubscribe:r}};static async request(){const[a]=await it();return H.open(a)}static async openConnected(){const a=await We();return a.length===0?null:H.open(a[0])}static async open(a){await a.open();const n=new H(a),r=s=>{a===s.device&&(Y().removeEventListener("disconnect",r),n._emitDisconnect(new ct))};return Y().addEventListener("disconnect",r),n}_disconnectEmitted=!1;_emitDisconnect=a=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",a))};async close(){await this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),await this.device.close()}exchange=async a=>await this.exchangeAtomicImpl(async()=>{const{channel:r,packetSize:s}=this;sr("apdu","=> "+a.toString("hex"));const f=ht(r,s),c=f.makeBlocks(a);for(let i=0;i<c.length;i++)await this.device.sendReport(0,c[i]);let l,o;for(;!(l=f.getReducedResult(o));)try{const i=await this.read();o=f.reduceResponse(o,i)}catch(i){if(i instanceof k&&i.id==="InvalidChannel")continue;throw i}return sr("apdu","<= "+l.toString("hex")),l}).catch(r=>{throw r&&r.message&&r.message.includes("write")?(this._emitDisconnect(r),new ot(r.message)):r});setScrambleKey(){}}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t}from"./vue-plyr-QZFBikSk.js";import{d as r,C as n,T as a,K as i,G as o,ai as p,D as c}from"./vendor-vue-1w_NBnjl.js";import{_ as l}from"./index-
|
|
1
|
+
import{s as t}from"./vue-plyr-QZFBikSk.js";import{d as r,C as n,T as a,K as i,G as o,ai as p,D as c}from"./vendor-vue-1w_NBnjl.js";import{_ as l}from"./index-DgtHfSqf.js";const d=r({name:"VideoPlayer",components:{VuePlyr:t},props:{src:{type:String,required:!0},options:{type:Object,required:!1,default:()=>({})}},data(){return{mergedOptions:{controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","fullscreen"],iconUrl:"https://cdn.acedata.cloud/7jq4t0.svg",quality:{default:"1080p",...this.options.quality},...this.options}}}}),u={class:"video max-w-[800px] max-h-[450px] rounded-[15px] overflow-hidden"},m={controls:"",crossorigin:"anonymous",playsinline:"",class:"w-full h-full aspect-[16/9]"},_=["src"];function f(e,y,h,v,g,x){const s=p("vue-plyr");return c(),n("div",u,[a(s,{options:e.mergedOptions},{default:i(()=>[o("video",m,[o("source",{size:"1080",src:e.src,type:"video/mp4"},null,8,_)])]),_:1},8,["options"])])}const C=l(d,[["render",f]]);export{C as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,C as s,G as a,D as r}from"./vendor-vue-1w_NBnjl.js";import{_ as i}from"./index-
|
|
1
|
+
import{d as e,C as s,G as a,D as r}from"./vendor-vue-1w_NBnjl.js";import{_ as i}from"./index-DgtHfSqf.js";const A=e({emits:["click"],computed:{siteTitle(){return this.$store.state.site?.title||"AceData"},url(){return this.$store.state.site?.logo||this.$store.state.site?.favicon}}}),d=["aria-label"],n=["src","alt"];function c(t,o,l,m,V,u){return r(),s("button",{type:"button",class:"brand-logo","aria-label":t.siteTitle,onClick:o[0]||(o[0]=I=>t.$emit("click"))},[a("img",{src:t.url,class:"brand-logo__image",alt:t.siteTitle},null,8,n)],8,d)}const L=i(A,[["render",c],["__scopeId","data-v-2a1ca01c"]]),O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAAAMFBMVEX///+3t7f4+Pi8vLzAwMDExMTS0tLIyMjk5OTz8/PY2NjOzs7u7u7d3d3p6enh4eFVKkJDAAAIfUlEQVR4nNVd15akOAylyRRQ9f9/O02BZJtgBQszfR/2zPahsJCvguVUFJYop35ux66pq6r6+fn9T910bTv3U2najBXK9zw2PxE07fz+n0Qf+raOyetL3g9PS7vgzRUYULfvZyXuR5nAgLF/SuK3UuJN7gf0PbyErDiieuU1zKmLyFJ3Y9u+vmh//V9dXT/b5VN3f+HbFq82nGivHH6999Vv8rC7P+NFzfBlF56xvl/sEy1Xbc8mZ9m3R7bcrO0jl+vXJH7J0YY78UvYKNuDjpWNTQd9tzd5ks9ePUm92u877WMlp4dhR+Y2OYkYdh3XmKclc9iATVwoXyFLZouXIobuBpEXlK+QcYbK7gOF2NpMaN2Vmfdr71LGirAbW5N3lr4F1rckC0GQbQw6cqrM1XACvzOr5EjT+2q+L24Vk6/sRGL7no6t5un9eQE+7JG4r+wk3+e9iGfXwzyeZHLjzDGFt0fEBB564ymOeRwzCg8dHaZ9kx8NZGZ8+UyOv0bSW3o9q5Tac5+0luajjGfqpsT2krIuTeaKZGQf4UUIKpx6xFbo2nGD9HSlpJZAGfSQILVjV02Z4CQsJhD2UdbcJ/dwyRfpNvozwaLo4q/0nMhLIrMThJSZZ4EhiJd6Ugti43SvzCTlPKnZmUNZMV+u4cYKwp85XlfcTBi/s6Z+MZ2LxADhGZzUDU9m5zjIr0woQhLxasAHWS7E9TgZU/Z1EBEIjbzxQYYxOudOxu73qTBcUGEaIzqD1hi96W6JTgzRoDSI/UhmITP7yUPFSYqaagD1R4wJkP8VnT8nTwVQqnauN06QjvtCvYt2IL3Zm/Uk9jjDz0RmMLggwx3SOuIUSniGpJv3bAJo1SAFr9mKH8aI+LqkI0RFtoIh9/L76Cc8GLCDoxxSjyAHgxxFYSEzJ18Ggly4YHQHnCQ2LRoCGINXQirim0JYUJpDatf/p24PP4mVwSblSg6MEhDGuzNVg6J5o8nEvAPAGZiAfk5MDRXNqxcmx/AVHPMprx8G1TEHwOzqTByseTgoDRxYDT6akSh9YSMzr6aLidOeTGCj3EqDkdC8GU9Q9c6voYlyJzxy0sOxOnRs8C3sQpSR92DOO4EDCXkAzoA935bPTy8AIgTBCIIyvyZsExF/uM2Byfk9A7VafuksfdyygFmJcc35NZ7tT5xUYMNwJYcI/FouGP7xOyT1YBOh+aVcsCHHBWCHZHLTxOfxF6ZA8HP82P7ASv4BJj5PMNMO/g3+H9ghqrtnGm4hIJLAd7byVxg5asGCA+AH2N2meYHvKPxZmQRIGtyMaOMweC/ZXJJJdJE0CF27Bm0oK8kWLKSWHxeILB8s7xN8gmxFi0VIFAkNqd5KiI3S7JBqJ7Ssycb70vAL2LAofMiE9hkBrQvX4OTXNLS4eGpwA8KlaxaGKHOy4OWWcSVoXSZz9ohYYLaxpB8bv4V2aFGeFiYOvqTb74V2mHkQ8IXjBKhMuKrMJIoLOQlmVGIiIlyPmXdguwJ6d8J/CZ1H0m4iB1Gr4D569HjCZalPaNoxeWtd5jKf4TRkpy30syh3KbLXPVZsWdIIQUK6dO8Jl+dkbUB6GfRranwIWx3hUzeVi5fRmggtDA6b/dWO3ELkLiF4QldqoXOPxhe8QOjt57LUpXhguGUhtEUFUtq9EBzUQluQWrphIV1oA1JLm0R6VFqh0z21eH30XmjFdofbF14dgC5PG1zS0w9pjuYFF2UYL9KHiXJGYhhXJkwLEk1RvrEMZVWmpgvSVC1XtEtNlYOAL1JYrdESOg3lcGtFQsVGs+Nu++msHdiu0BNEQQ5vYKssIWxQx3JNc1AqnbTFmg3qSoKmYz0mb//S7QDU1k5Vdu+VSnUFyA3aBES1ca9zkqb4PPVQUUVG74OVRfUNSqencXh+UR1sUnfqgy6+qLrVn75QThRt0I26VG0FU4dbRNfE1ULpqVVBIZBTN/kJ0PBDxY6QEbpp5v27JFCxI5xm1k3oIxT+Q+Wowgl93dIJhHzqVrW5erd0QrdIxUE8wFXxcL9IBXSlSRcLuSnq3NR+OZBq4ZWD1FXr8sn9wivVEjcPwtVuKtd6XOKmWUzoQeY/dCczHBcTKpZtnr2QB104gN70ukm+QNaHzBJV7DhbIAt/040ERMMXnbUDAwOtgvZVsUo0KaCi9Omib/SCqleKhE7KSsNIIt7IkFXoi40MSBrNO28X+ooHOKxWqPpuoVHRh7FDo3+pyHsorOZyG5R0w5kPUZmJffYFIrLhTLi1DzFJT0X+aWaZ3JGtfcJNlCvesTOuIpAcLBrdRIms5g4s+jFlM0PFPYY6ul1VtDG4PJzwqQHnGGpKKlA1fVKN0VqxX31Tx1DjOTBXaRFvs3vaWdkniPIEF3hdGgEmxpev0VpeHNf8ZuiROMBhet0hMch9qkogR2wXbeSojHI22jd5ifp1cLbY9dHB8NWhJCbOgkYzBxpFzxH3wu74F++ro8ckWsM7a5l7/IuzVnAxJX1MojGQ3shHslKCPPimY+b+jYfmU0qONPIOj5rzK9lDi33OyQttVpEaglXXMFoabQVmqny3QxaBW4opM3o4CtwDJazWGZtAUMi12ONkAtGMrNGS/1QI5yb+CxciLmc8EwoDKEokefK6CBKPRf47Mj/MEIujvv+MzA/6kKQLCR7y18q5Y8AjiWryrR1T9uwp/RqJ3YUdGWBxYUeR2RzN7gThn6ifCrtLaA7X/dwG4xtusvg+24uVihzKtr/Cqrh7OFPdcVlYcXItmyHS7x67ROwyxxTceAHegqsLHVOQ4WLH00sdE5DhUsev2IbaznR95gKrCnDGi0oXDOmTRrmvhP3i712+u+LvXXO84u9dKL2Cf3V33X7+i6u7N/y5S9IdvOvoF0G/19GP9tfR/wPQ21eEI8clLwAAAABJRU5ErkJggg==";export{L,O as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.brand-logo[data-v-2a1ca01c]{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:pointer}.brand-logo__image[data-v-2a1ca01c]{display:block;width:auto;max-width:180px;height:36px;-o-object-fit:contain;object-fit:contain;-o-object-position:left center;object-position:left center;transition:height .2s ease}.collapsed .brand-logo__image[data-v-2a1ca01c]{height:28px;max-width:40px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cU as xe}from"./index-CCYW3AUY.js";import{h as _e}from"./vendor-dayjs-CzbnksQQ.js";const Re=_e(xe);var fe={exports:{}},ve=fe.exports,de;function Ie(){return de||(de=1,function(Ne){(function(le){var b,Ae=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,se=Math.ceil,G=Math.floor,C="[BigNumber Error] ",Ee=C+"Number primitive has more than 15 significant digits: ",z=1e14,N=14,oe=9007199254740991,ue=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Y=1e7,D=1e9;function Oe(O){var E,v,I,p=h.prototype={constructor:h,toString:null,valueOf:null},M=new h(1),x=20,B=4,U=-7,k=21,Z=-1e7,H=1e7,K=!1,ee=1,J=0,ce={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",ae=!0;function h(e,r){var i,o,t,l,c,n,f,u,s=this;if(!(s instanceof h))return new h(e,r);if(r==null){if(e&&e._isBigNumber===!0){s.s=e.s,!e.c||e.e>H?s.c=s.e=null:e.e<Z?s.c=[s.e=0]:(s.e=e.e,s.c=e.c.slice());return}if((n=typeof e=="number")&&e*0==0){if(s.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,c=e;c>=10;c/=10,l++);l>H?s.c=s.e=null:(s.e=l,s.c=[e]);return}u=String(e)}else{if(!Ae.test(u=String(e)))return I(s,u,n);s.s=u.charCodeAt(0)==45?(u=u.slice(1),-1):1}(l=u.indexOf("."))>-1&&(u=u.replace(".","")),(c=u.search(/e/i))>0?(l<0&&(l=c),l+=+u.slice(c+1),u=u.substring(0,c)):l<0&&(l=u.length)}else{if(_(r,2,j.length,"Base"),r==10&&ae)return s=new h(e),$(s,x+s.e+1,B);if(u=String(e),n=typeof e=="number"){if(e*0!=0)return I(s,u,n,r);if(s.s=1/e<0?(u=u.slice(1),-1):1,h.DEBUG&&u.replace(/^0\.0*|\./,"").length>15)throw Error(Ee+e)}else s.s=u.charCodeAt(0)===45?(u=u.slice(1),-1):1;for(i=j.slice(0,r),l=c=0,f=u.length;c<f;c++)if(i.indexOf(o=u.charAt(c))<0){if(o=="."){if(c>l){l=f;continue}}else if(!t&&(u==u.toUpperCase()&&(u=u.toLowerCase())||u==u.toLowerCase()&&(u=u.toUpperCase()))){t=!0,c=-1,l=0;continue}return I(s,String(e),n,r)}n=!1,u=v(u,r,10,s.s),(l=u.indexOf("."))>-1?u=u.replace(".",""):l=u.length}for(c=0;u.charCodeAt(c)===48;c++);for(f=u.length;u.charCodeAt(--f)===48;);if(u=u.slice(c,++f)){if(f-=c,n&&h.DEBUG&&f>15&&(e>oe||e!==G(e)))throw Error(Ee+s.s*e);if((l=l-c-1)>H)s.c=s.e=null;else if(l<Z)s.c=[s.e=0];else{if(s.e=l,s.c=[],c=(l+1)%N,l<0&&(c+=N),c<f){for(c&&s.c.push(+u.slice(0,c)),f-=N;c<f;)s.c.push(+u.slice(c,c+=N));c=N-(u=u.slice(c)).length}else c-=f;for(;c--;u+="0");s.c.push(+u)}}else s.c=[s.e=0]}h.clone=Oe,h.ROUND_UP=0,h.ROUND_DOWN=1,h.ROUND_CEIL=2,h.ROUND_FLOOR=3,h.ROUND_HALF_UP=4,h.ROUND_HALF_DOWN=5,h.ROUND_HALF_EVEN=6,h.ROUND_HALF_CEIL=7,h.ROUND_HALF_FLOOR=8,h.EUCLID=9,h.config=h.set=function(e){var r,i;if(e!=null)if(typeof e=="object"){if(e.hasOwnProperty(r="DECIMAL_PLACES")&&(i=e[r],_(i,0,D,r),x=i),e.hasOwnProperty(r="ROUNDING_MODE")&&(i=e[r],_(i,0,8,r),B=i),e.hasOwnProperty(r="EXPONENTIAL_AT")&&(i=e[r],i&&i.pop?(_(i[0],-D,0,r),_(i[1],0,D,r),U=i[0],k=i[1]):(_(i,-D,D,r),U=-(k=i<0?-i:i))),e.hasOwnProperty(r="RANGE"))if(i=e[r],i&&i.pop)_(i[0],-D,-1,r),_(i[1],1,D,r),Z=i[0],H=i[1];else if(_(i,-D,D,r),i)Z=-(H=i<0?-i:i);else throw Error(C+r+" cannot be zero: "+i);if(e.hasOwnProperty(r="CRYPTO"))if(i=e[r],i===!!i)if(i)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))K=i;else throw K=!i,Error(C+"crypto unavailable");else K=i;else throw Error(C+r+" not true or false: "+i);if(e.hasOwnProperty(r="MODULO_MODE")&&(i=e[r],_(i,0,9,r),ee=i),e.hasOwnProperty(r="POW_PRECISION")&&(i=e[r],_(i,0,D,r),J=i),e.hasOwnProperty(r="FORMAT"))if(i=e[r],typeof i=="object")ce=i;else throw Error(C+r+" not an object: "+i);if(e.hasOwnProperty(r="ALPHABET"))if(i=e[r],typeof i=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(i))ae=i.slice(0,10)=="0123456789",j=i;else throw Error(C+r+" invalid: "+i)}else throw Error(C+"Object expected: "+e);return{DECIMAL_PLACES:x,ROUNDING_MODE:B,EXPONENTIAL_AT:[U,k],RANGE:[Z,H],CRYPTO:K,MODULO_MODE:ee,POW_PRECISION:J,FORMAT:ce,ALPHABET:j}},h.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!h.DEBUG)return!0;var r,i,o=e.c,t=e.e,l=e.s;e:if({}.toString.call(o)=="[object Array]"){if((l===1||l===-1)&&t>=-D&&t<=D&&t===G(t)){if(o[0]===0){if(t===0&&o.length===1)return!0;break e}if(r=(t+1)%N,r<1&&(r+=N),String(o[0]).length==r){for(r=0;r<o.length;r++)if(i=o[r],i<0||i>=z||i!==G(i))break e;if(i!==0)return!0}}}else if(o===null&&t===null&&(l===null||l===1||l===-1))return!0;throw Error(C+"Invalid BigNumber: "+e)},h.maximum=h.max=function(){return me(arguments,-1)},h.minimum=h.min=function(){return me(arguments,1)},h.random=function(){var e=9007199254740992,r=Math.random()*e&2097151?function(){return G(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(i){var o,t,l,c,n,f=0,u=[],s=new h(M);if(i==null?i=x:_(i,0,D),c=se(i/N),K)if(crypto.getRandomValues){for(o=crypto.getRandomValues(new Uint32Array(c*=2));f<c;)n=o[f]*131072+(o[f+1]>>>11),n>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),o[f]=t[0],o[f+1]=t[1]):(u.push(n%1e14),f+=2);f=c/2}else if(crypto.randomBytes){for(o=crypto.randomBytes(c*=7);f<c;)n=(o[f]&31)*281474976710656+o[f+1]*1099511627776+o[f+2]*4294967296+o[f+3]*16777216+(o[f+4]<<16)+(o[f+5]<<8)+o[f+6],n>=9e15?crypto.randomBytes(7).copy(o,f):(u.push(n%1e14),f+=7);f=c/7}else throw K=!1,Error(C+"crypto unavailable");if(!K)for(;f<c;)n=r(),n<9e15&&(u[f++]=n%1e14);for(c=u[--f],i%=N,c&&i&&(n=ue[N-i],u[f]=G(c/n)*n);u[f]===0;u.pop(),f--);if(f<0)u=[l=0];else{for(l=-1;u[0]===0;u.splice(0,1),l-=N);for(f=1,n=u[0];n>=10;n/=10,f++);f<N&&(l-=N-f)}return s.e=l,s.c=u,s}}(),h.sum=function(){for(var e=1,r=arguments,i=new h(r[0]);e<r.length;)i=i.plus(r[e++]);return i},v=function(){var e="0123456789";function r(i,o,t,l){for(var c,n=[0],f,u=0,s=i.length;u<s;){for(f=n.length;f--;n[f]*=o);for(n[0]+=l.indexOf(i.charAt(u++)),c=0;c<n.length;c++)n[c]>t-1&&(n[c+1]==null&&(n[c+1]=0),n[c+1]+=n[c]/t|0,n[c]%=t)}return n.reverse()}return function(i,o,t,l,c){var n,f,u,s,a,g,w,d,S=i.indexOf("."),T=x,m=B;for(S>=0&&(s=J,J=0,i=i.replace(".",""),d=new h(o),g=d.pow(i.length-S),J=s,d.c=r(V(F(g.c),g.e,"0"),10,t,e),d.e=d.c.length),w=r(i,o,t,c?(n=j,e):(n=e,j)),u=s=w.length;w[--s]==0;w.pop());if(!w[0])return n.charAt(0);if(S<0?--u:(g.c=w,g.e=u,g.s=l,g=E(g,d,T,m,t),w=g.c,a=g.r,u=g.e),f=u+T+1,S=w[f],s=t/2,a=a||f<0||w[f+1]!=null,a=m<4?(S!=null||a)&&(m==0||m==(g.s<0?3:2)):S>s||S==s&&(m==4||a||m==6&&w[f-1]&1||m==(g.s<0?8:7)),f<1||!w[0])i=a?V(n.charAt(1),-T,n.charAt(0)):n.charAt(0);else{if(w.length=f,a)for(--t;++w[--f]>t;)w[f]=0,f||(++u,w=[1].concat(w));for(s=w.length;!w[--s];);for(S=0,i="";S<=s;i+=n.charAt(w[S++]));i=V(i,u,n.charAt(0))}return i}}(),E=function(){function e(o,t,l){var c,n,f,u,s=0,a=o.length,g=t%Y,w=t/Y|0;for(o=o.slice();a--;)f=o[a]%Y,u=o[a]/Y|0,c=w*f+u*g,n=g*f+c%Y*Y+s,s=(n/l|0)+(c/Y|0)+w*u,o[a]=n%l;return s&&(o=[s].concat(o)),o}function r(o,t,l,c){var n,f;if(l!=c)f=l>c?1:-1;else for(n=f=0;n<l;n++)if(o[n]!=t[n]){f=o[n]>t[n]?1:-1;break}return f}function i(o,t,l,c){for(var n=0;l--;)o[l]-=n,n=o[l]<t[l]?1:0,o[l]=n*c+o[l]-t[l];for(;!o[0]&&o.length>1;o.splice(0,1));}return function(o,t,l,c,n){var f,u,s,a,g,w,d,S,T,m,A,P,te,ge,we,X,re,y=o.s==t.s?1:-1,L=o.c,R=t.c;if(!L||!L[0]||!R||!R[0])return new h(!o.s||!t.s||(L?R&&L[0]==R[0]:!R)?NaN:L&&L[0]==0||!R?y*0:y/0);for(S=new h(y),T=S.c=[],u=o.e-t.e,y=l+u+1,n||(n=z,u=q(o.e/N)-q(t.e/N),y=y/N|0),s=0;R[s]==(L[s]||0);s++);if(R[s]>(L[s]||0)&&u--,y<0)T.push(1),a=!0;else{for(ge=L.length,X=R.length,s=0,y+=2,g=G(n/(R[0]+1)),g>1&&(R=e(R,g,n),L=e(L,g,n),X=R.length,ge=L.length),te=X,m=L.slice(0,X),A=m.length;A<X;m[A++]=0);re=R.slice(),re=[0].concat(re),we=R[0],R[1]>=n/2&&we++;do{if(g=0,f=r(R,m,X,A),f<0){if(P=m[0],X!=A&&(P=P*n+(m[1]||0)),g=G(P/we),g>1)for(g>=n&&(g=n-1),w=e(R,g,n),d=w.length,A=m.length;r(w,m,d,A)==1;)g--,i(w,X<d?re:R,d,n),d=w.length,f=1;else g==0&&(f=g=1),w=R.slice(),d=w.length;if(d<A&&(w=[0].concat(w)),i(m,w,A,n),A=m.length,f==-1)for(;r(R,m,X,A)<1;)g++,i(m,X<A?re:R,A,n),A=m.length}else f===0&&(g++,m=[0]);T[s++]=g,m[0]?m[A++]=L[te]||0:(m=[L[te]],A=1)}while((te++<ge||m[0]!=null)&&y--);a=m[0]!=null,T[0]||T.splice(0,1)}if(n==z){for(s=1,y=T[0];y>=10;y/=10,s++);$(S,l+(S.e=s+u*N-1)+1,c,a)}else S.e=u,S.r=+a;return S}}();function he(e,r,i,o){var t,l,c,n,f;if(i==null?i=B:_(i,0,8),!e.c)return e.toString();if(t=e.c[0],c=e.e,r==null)f=F(e.c),f=o==1||o==2&&(c<=U||c>=k)?ne(f,c):V(f,c,"0");else if(e=$(new h(e),r,i),l=e.e,f=F(e.c),n=f.length,o==1||o==2&&(r<=l||l<=U)){for(;n<r;f+="0",n++);f=ne(f,l)}else if(r-=c+(o===2&&l>c),f=V(f,l,"0"),l+1>n){if(--r>0)for(f+=".";r--;f+="0");}else if(r+=l-n,r>0)for(l+1==n&&(f+=".");r--;f+="0");return e.s<0&&t?"-"+f:f}function me(e,r){for(var i,o,t=1,l=new h(e[0]);t<e.length;t++)o=new h(e[t]),(!o.s||(i=Q(l,o))===r||i===0&&l.s===r)&&(l=o);return l}function pe(e,r,i){for(var o=1,t=r.length;!r[--t];r.pop());for(t=r[0];t>=10;t/=10,o++);return(i=o+i*N-1)>H?e.c=e.e=null:i<Z?e.c=[e.e=0]:(e.e=i,e.c=r),e}I=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,i=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,t=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(l,c,n,f){var u,s=n?c:c.replace(t,"");if(o.test(s))l.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(e,function(a,g,w){return u=(w=w.toLowerCase())=="x"?16:w=="b"?2:8,!f||f==u?g:a}),f&&(u=f,s=s.replace(r,"$1").replace(i,"0.$1")),c!=s))return new h(s,u);if(h.DEBUG)throw Error(C+"Not a"+(f?" base "+f:"")+" number: "+c);l.s=null}l.c=l.e=null}}();function $(e,r,i,o){var t,l,c,n,f,u,s,a=e.c,g=ue;if(a){e:{for(t=1,n=a[0];n>=10;n/=10,t++);if(l=r-t,l<0)l+=N,c=r,f=a[u=0],s=G(f/g[t-c-1]%10);else if(u=se((l+1)/N),u>=a.length)if(o){for(;a.length<=u;a.push(0));f=s=0,t=1,l%=N,c=l-N+1}else break e;else{for(f=n=a[u],t=1;n>=10;n/=10,t++);l%=N,c=l-N+t,s=c<0?0:G(f/g[t-c-1]%10)}if(o=o||r<0||a[u+1]!=null||(c<0?f:f%g[t-c-1]),o=i<4?(s||o)&&(i==0||i==(e.s<0?3:2)):s>5||s==5&&(i==4||o||i==6&&(l>0?c>0?f/g[t-c]:0:a[u-1])%10&1||i==(e.s<0?8:7)),r<1||!a[0])return a.length=0,o?(r-=e.e+1,a[0]=g[(N-r%N)%N],e.e=-r||0):a[0]=e.e=0,e;if(l==0?(a.length=u,n=1,u--):(a.length=u+1,n=g[N-l],a[u]=c>0?G(f/g[t-c]%g[c])*n:0),o)for(;;)if(u==0){for(l=1,c=a[0];c>=10;c/=10,l++);for(c=a[0]+=n,n=1;c>=10;c/=10,n++);l!=n&&(e.e++,a[0]==z&&(a[0]=1));break}else{if(a[u]+=n,a[u]!=z)break;a[u--]=0,n=1}for(l=a.length;a[--l]===0;a.pop());}e.e>H?e.c=e.e=null:e.e<Z&&(e.c=[e.e=0])}return e}function W(e){var r,i=e.e;return i===null?e.toString():(r=F(e.c),r=i<=U||i>=k?ne(r,i):V(r,i,"0"),e.s<0?"-"+r:r)}return p.absoluteValue=p.abs=function(){var e=new h(this);return e.s<0&&(e.s=1),e},p.comparedTo=function(e,r){return Q(this,new h(e,r))},p.decimalPlaces=p.dp=function(e,r){var i,o,t,l=this;if(e!=null)return _(e,0,D),r==null?r=B:_(r,0,8),$(new h(l),e+l.e+1,r);if(!(i=l.c))return null;if(o=((t=i.length-1)-q(this.e/N))*N,t=i[t])for(;t%10==0;t/=10,o--);return o<0&&(o=0),o},p.dividedBy=p.div=function(e,r){return E(this,new h(e,r),x,B)},p.dividedToIntegerBy=p.idiv=function(e,r){return E(this,new h(e,r),0,1)},p.exponentiatedBy=p.pow=function(e,r){var i,o,t,l,c,n,f,u,s,a=this;if(e=new h(e),e.c&&!e.isInteger())throw Error(C+"Exponent not an integer: "+W(e));if(r!=null&&(r=new h(r)),n=e.e>14,!a.c||!a.c[0]||a.c[0]==1&&!a.e&&a.c.length==1||!e.c||!e.c[0])return s=new h(Math.pow(+W(a),n?e.s*(2-ie(e)):+W(e))),r?s.mod(r):s;if(f=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new h(NaN);o=!f&&a.isInteger()&&r.isInteger(),o&&(a=a.mod(r))}else{if(e.e>9&&(a.e>0||a.e<-1||(a.e==0?a.c[0]>1||n&&a.c[1]>=24e7:a.c[0]<8e13||n&&a.c[0]<=9999975e7)))return l=a.s<0&&ie(e)?-0:0,a.e>-1&&(l=1/l),new h(f?1/l:l);J&&(l=se(J/N+2))}for(n?(i=new h(.5),f&&(e.s=1),u=ie(e)):(t=Math.abs(+W(e)),u=t%2),s=new h(M);;){if(u){if(s=s.times(a),!s.c)break;l?s.c.length>l&&(s.c.length=l):o&&(s=s.mod(r))}if(t){if(t=G(t/2),t===0)break;u=t%2}else if(e=e.times(i),$(e,e.e+1,1),e.e>14)u=ie(e);else{if(t=+W(e),t===0)break;u=t%2}a=a.times(a),l?a.c&&a.c.length>l&&(a.c.length=l):o&&(a=a.mod(r))}return o?s:(f&&(s=M.div(s)),r?s.mod(r):l?$(s,J,B,c):s)},p.integerValue=function(e){var r=new h(this);return e==null?e=B:_(e,0,8),$(r,r.e+1,e)},p.isEqualTo=p.eq=function(e,r){return Q(this,new h(e,r))===0},p.isFinite=function(){return!!this.c},p.isGreaterThan=p.gt=function(e,r){return Q(this,new h(e,r))>0},p.isGreaterThanOrEqualTo=p.gte=function(e,r){return(r=Q(this,new h(e,r)))===1||r===0},p.isInteger=function(){return!!this.c&&q(this.e/N)>this.c.length-2},p.isLessThan=p.lt=function(e,r){return Q(this,new h(e,r))<0},p.isLessThanOrEqualTo=p.lte=function(e,r){return(r=Q(this,new h(e,r)))===-1||r===0},p.isNaN=function(){return!this.s},p.isNegative=function(){return this.s<0},p.isPositive=function(){return this.s>0},p.isZero=function(){return!!this.c&&this.c[0]==0},p.minus=function(e,r){var i,o,t,l,c=this,n=c.s;if(e=new h(e,r),r=e.s,!n||!r)return new h(NaN);if(n!=r)return e.s=-r,c.plus(e);var f=c.e/N,u=e.e/N,s=c.c,a=e.c;if(!f||!u){if(!s||!a)return s?(e.s=-r,e):new h(a?c:NaN);if(!s[0]||!a[0])return a[0]?(e.s=-r,e):new h(s[0]?c:B==3?-0:0)}if(f=q(f),u=q(u),s=s.slice(),n=f-u){for((l=n<0)?(n=-n,t=s):(u=f,t=a),t.reverse(),r=n;r--;t.push(0));t.reverse()}else for(o=(l=(n=s.length)<(r=a.length))?n:r,n=r=0;r<o;r++)if(s[r]!=a[r]){l=s[r]<a[r];break}if(l&&(t=s,s=a,a=t,e.s=-e.s),r=(o=a.length)-(i=s.length),r>0)for(;r--;s[i++]=0);for(r=z-1;o>n;){if(s[--o]<a[o]){for(i=o;i&&!s[--i];s[i]=r);--s[i],s[o]+=z}s[o]-=a[o]}for(;s[0]==0;s.splice(0,1),--u);return s[0]?pe(e,s,u):(e.s=B==3?-1:1,e.c=[e.e=0],e)},p.modulo=p.mod=function(e,r){var i,o,t=this;return e=new h(e,r),!t.c||!e.s||e.c&&!e.c[0]?new h(NaN):!e.c||t.c&&!t.c[0]?new h(t):(ee==9?(o=e.s,e.s=1,i=E(t,e,0,3),e.s=o,i.s*=o):i=E(t,e,0,ee),e=t.minus(i.times(e)),!e.c[0]&&ee==1&&(e.s=t.s),e)},p.multipliedBy=p.times=function(e,r){var i,o,t,l,c,n,f,u,s,a,g,w,d,S,T,m=this,A=m.c,P=(e=new h(e,r)).c;if(!A||!P||!A[0]||!P[0])return!m.s||!e.s||A&&!A[0]&&!P||P&&!P[0]&&!A?e.c=e.e=e.s=null:(e.s*=m.s,!A||!P?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(o=q(m.e/N)+q(e.e/N),e.s*=m.s,f=A.length,a=P.length,f<a&&(d=A,A=P,P=d,t=f,f=a,a=t),t=f+a,d=[];t--;d.push(0));for(S=z,T=Y,t=a;--t>=0;){for(i=0,g=P[t]%T,w=P[t]/T|0,c=f,l=t+c;l>t;)u=A[--c]%T,s=A[c]/T|0,n=w*u+s*g,u=g*u+n%T*T+d[l]+i,i=(u/S|0)+(n/T|0)+w*s,d[l--]=u%S;d[l]=i}return i?++o:d.splice(0,1),pe(e,d,o)},p.negated=function(){var e=new h(this);return e.s=-e.s||null,e},p.plus=function(e,r){var i,o=this,t=o.s;if(e=new h(e,r),r=e.s,!t||!r)return new h(NaN);if(t!=r)return e.s=-r,o.minus(e);var l=o.e/N,c=e.e/N,n=o.c,f=e.c;if(!l||!c){if(!n||!f)return new h(t/0);if(!n[0]||!f[0])return f[0]?e:new h(n[0]?o:t*0)}if(l=q(l),c=q(c),n=n.slice(),t=l-c){for(t>0?(c=l,i=f):(t=-t,i=n),i.reverse();t--;i.push(0));i.reverse()}for(t=n.length,r=f.length,t-r<0&&(i=f,f=n,n=i,r=t),t=0;r;)t=(n[--r]=n[r]+f[r]+t)/z|0,n[r]=z===n[r]?0:n[r]%z;return t&&(n=[t].concat(n),++c),pe(e,n,c)},p.precision=p.sd=function(e,r){var i,o,t,l=this;if(e!=null&&e!==!!e)return _(e,1,D),r==null?r=B:_(r,0,8),$(new h(l),e,r);if(!(i=l.c))return null;if(t=i.length-1,o=t*N+1,t=i[t]){for(;t%10==0;t/=10,o--);for(t=i[0];t>=10;t/=10,o++);}return e&&l.e+1>o&&(o=l.e+1),o},p.shiftedBy=function(e){return _(e,-oe,oe),this.times("1e"+e)},p.squareRoot=p.sqrt=function(){var e,r,i,o,t,l=this,c=l.c,n=l.s,f=l.e,u=x+4,s=new h("0.5");if(n!==1||!c||!c[0])return new h(!n||n<0&&(!c||c[0])?NaN:c?l:1/0);if(n=Math.sqrt(+W(l)),n==0||n==1/0?(r=F(c),(r.length+f)%2==0&&(r+="0"),n=Math.sqrt(+r),f=q((f+1)/2)-(f<0||f%2),n==1/0?r="5e"+f:(r=n.toExponential(),r=r.slice(0,r.indexOf("e")+1)+f),i=new h(r)):i=new h(n+""),i.c[0]){for(f=i.e,n=f+u,n<3&&(n=0);;)if(t=i,i=s.times(t.plus(E(l,t,u,1))),F(t.c).slice(0,n)===(r=F(i.c)).slice(0,n))if(i.e<f&&--n,r=r.slice(n-3,n+1),r=="9999"||!o&&r=="4999"){if(!o&&($(t,t.e+x+2,0),t.times(t).eq(l))){i=t;break}u+=4,n+=4,o=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&($(i,i.e+x+2,1),e=!i.times(i).eq(l));break}}return $(i,i.e+x+1,B,e)},p.toExponential=function(e,r){return e!=null&&(_(e,0,D),e++),he(this,e,r,1)},p.toFixed=function(e,r){return e!=null&&(_(e,0,D),e=e+this.e+1),he(this,e,r)},p.toFormat=function(e,r,i){var o,t=this;if(i==null)e!=null&&r&&typeof r=="object"?(i=r,r=null):e&&typeof e=="object"?(i=e,e=r=null):i=ce;else if(typeof i!="object")throw Error(C+"Argument not an object: "+i);if(o=t.toFixed(e,r),t.c){var l,c=o.split("."),n=+i.groupSize,f=+i.secondaryGroupSize,u=i.groupSeparator||"",s=c[0],a=c[1],g=t.s<0,w=g?s.slice(1):s,d=w.length;if(f&&(l=n,n=f,f=l,d-=l),n>0&&d>0){for(l=d%n||n,s=w.substr(0,l);l<d;l+=n)s+=u+w.substr(l,n);f>0&&(s+=u+w.slice(l)),g&&(s="-"+s)}o=a?s+(i.decimalSeparator||"")+((f=+i.fractionGroupSize)?a.replace(new RegExp("\\d{"+f+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):a):s}return(i.prefix||"")+o+(i.suffix||"")},p.toFraction=function(e){var r,i,o,t,l,c,n,f,u,s,a,g,w=this,d=w.c;if(e!=null&&(n=new h(e),!n.isInteger()&&(n.c||n.s!==1)||n.lt(M)))throw Error(C+"Argument "+(n.isInteger()?"out of range: ":"not an integer: ")+W(n));if(!d)return new h(w);for(r=new h(M),u=i=new h(M),o=f=new h(M),g=F(d),l=r.e=g.length-w.e-1,r.c[0]=ue[(c=l%N)<0?N+c:c],e=!e||n.comparedTo(r)>0?l>0?r:u:n,c=H,H=1/0,n=new h(g),f.c[0]=0;s=E(n,r,0,1),t=i.plus(s.times(o)),t.comparedTo(e)!=1;)i=o,o=t,u=f.plus(s.times(t=u)),f=t,r=n.minus(s.times(t=r)),n=t;return t=E(e.minus(i),o,0,1),f=f.plus(t.times(u)),i=i.plus(t.times(o)),f.s=u.s=w.s,l=l*2,a=E(u,o,l,B).minus(w).abs().comparedTo(E(f,i,l,B).minus(w).abs())<1?[u,o]:[f,i],H=c,a},p.toNumber=function(){return+W(this)},p.toPrecision=function(e,r){return e!=null&&_(e,1,D),he(this,e,r,2)},p.toString=function(e){var r,i=this,o=i.s,t=i.e;return t===null?o?(r="Infinity",o<0&&(r="-"+r)):r="NaN":(e==null?r=t<=U||t>=k?ne(F(i.c),t):V(F(i.c),t,"0"):e===10&&ae?(i=$(new h(i),x+t+1,B),r=V(F(i.c),i.e,"0")):(_(e,2,j.length,"Base"),r=v(V(F(i.c),t,"0"),10,e,o,!0)),o<0&&i.c[0]&&(r="-"+r)),r},p.valueOf=p.toJSON=function(){return W(this)},p._isBigNumber=!0,O!=null&&h.set(O),h}function q(O){var E=O|0;return O>0||O===E?E:E-1}function F(O){for(var E,v,I=1,p=O.length,M=O[0]+"";I<p;){for(E=O[I++]+"",v=N-E.length;v--;E="0"+E);M+=E}for(p=M.length;M.charCodeAt(--p)===48;);return M.slice(0,p+1||1)}function Q(O,E){var v,I,p=O.c,M=E.c,x=O.s,B=E.s,U=O.e,k=E.e;if(!x||!B)return null;if(v=p&&!p[0],I=M&&!M[0],v||I)return v?I?0:-B:x;if(x!=B)return x;if(v=x<0,I=U==k,!p||!M)return I?0:!p^v?1:-1;if(!I)return U>k^v?1:-1;for(B=(U=p.length)<(k=M.length)?U:k,x=0;x<B;x++)if(p[x]!=M[x])return p[x]>M[x]^v?1:-1;return U==k?0:U>k^v?1:-1}function _(O,E,v,I){if(O<E||O>v||O!==G(O))throw Error(C+(I||"Argument")+(typeof O=="number"?O<E||O>v?" out of range: ":" not an integer: ":" not a primitive number: ")+String(O))}function ie(O){var E=O.c.length-1;return q(O.e/N)==E&&O.c[E]%2!=0}function ne(O,E){return(O.length>1?O.charAt(0)+"."+O.slice(1):O)+(E<0?"e":"e+")+E}function V(O,E,v){var I,p;if(E<0){for(p=v+".";++E;p+=v);O=p+O}else if(I=O.length,++E>I){for(p=v,E-=I;--E;p+=v);O+=p}else E<I&&(O=O.slice(0,E)+"."+O.slice(E));return O}b=Oe(),b.default=b.BigNumber=b,Ne.exports?Ne.exports=b:(le||(le=typeof self<"u"&&self?self:window),le.BigNumber=b)})(ve)}(fe)),fe.exports}export{Re as a,Ie as r};
|
|
1
|
+
import{cU as xe}from"./index-DgtHfSqf.js";import{h as _e}from"./vendor-dayjs-CzbnksQQ.js";const Re=_e(xe);var fe={exports:{}},ve=fe.exports,de;function Ie(){return de||(de=1,function(Ne){(function(le){var b,Ae=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,se=Math.ceil,G=Math.floor,C="[BigNumber Error] ",Ee=C+"Number primitive has more than 15 significant digits: ",z=1e14,N=14,oe=9007199254740991,ue=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Y=1e7,D=1e9;function Oe(O){var E,v,I,p=h.prototype={constructor:h,toString:null,valueOf:null},M=new h(1),x=20,B=4,U=-7,k=21,Z=-1e7,H=1e7,K=!1,ee=1,J=0,ce={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",ae=!0;function h(e,r){var i,o,t,l,c,n,f,u,s=this;if(!(s instanceof h))return new h(e,r);if(r==null){if(e&&e._isBigNumber===!0){s.s=e.s,!e.c||e.e>H?s.c=s.e=null:e.e<Z?s.c=[s.e=0]:(s.e=e.e,s.c=e.c.slice());return}if((n=typeof e=="number")&&e*0==0){if(s.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,c=e;c>=10;c/=10,l++);l>H?s.c=s.e=null:(s.e=l,s.c=[e]);return}u=String(e)}else{if(!Ae.test(u=String(e)))return I(s,u,n);s.s=u.charCodeAt(0)==45?(u=u.slice(1),-1):1}(l=u.indexOf("."))>-1&&(u=u.replace(".","")),(c=u.search(/e/i))>0?(l<0&&(l=c),l+=+u.slice(c+1),u=u.substring(0,c)):l<0&&(l=u.length)}else{if(_(r,2,j.length,"Base"),r==10&&ae)return s=new h(e),$(s,x+s.e+1,B);if(u=String(e),n=typeof e=="number"){if(e*0!=0)return I(s,u,n,r);if(s.s=1/e<0?(u=u.slice(1),-1):1,h.DEBUG&&u.replace(/^0\.0*|\./,"").length>15)throw Error(Ee+e)}else s.s=u.charCodeAt(0)===45?(u=u.slice(1),-1):1;for(i=j.slice(0,r),l=c=0,f=u.length;c<f;c++)if(i.indexOf(o=u.charAt(c))<0){if(o=="."){if(c>l){l=f;continue}}else if(!t&&(u==u.toUpperCase()&&(u=u.toLowerCase())||u==u.toLowerCase()&&(u=u.toUpperCase()))){t=!0,c=-1,l=0;continue}return I(s,String(e),n,r)}n=!1,u=v(u,r,10,s.s),(l=u.indexOf("."))>-1?u=u.replace(".",""):l=u.length}for(c=0;u.charCodeAt(c)===48;c++);for(f=u.length;u.charCodeAt(--f)===48;);if(u=u.slice(c,++f)){if(f-=c,n&&h.DEBUG&&f>15&&(e>oe||e!==G(e)))throw Error(Ee+s.s*e);if((l=l-c-1)>H)s.c=s.e=null;else if(l<Z)s.c=[s.e=0];else{if(s.e=l,s.c=[],c=(l+1)%N,l<0&&(c+=N),c<f){for(c&&s.c.push(+u.slice(0,c)),f-=N;c<f;)s.c.push(+u.slice(c,c+=N));c=N-(u=u.slice(c)).length}else c-=f;for(;c--;u+="0");s.c.push(+u)}}else s.c=[s.e=0]}h.clone=Oe,h.ROUND_UP=0,h.ROUND_DOWN=1,h.ROUND_CEIL=2,h.ROUND_FLOOR=3,h.ROUND_HALF_UP=4,h.ROUND_HALF_DOWN=5,h.ROUND_HALF_EVEN=6,h.ROUND_HALF_CEIL=7,h.ROUND_HALF_FLOOR=8,h.EUCLID=9,h.config=h.set=function(e){var r,i;if(e!=null)if(typeof e=="object"){if(e.hasOwnProperty(r="DECIMAL_PLACES")&&(i=e[r],_(i,0,D,r),x=i),e.hasOwnProperty(r="ROUNDING_MODE")&&(i=e[r],_(i,0,8,r),B=i),e.hasOwnProperty(r="EXPONENTIAL_AT")&&(i=e[r],i&&i.pop?(_(i[0],-D,0,r),_(i[1],0,D,r),U=i[0],k=i[1]):(_(i,-D,D,r),U=-(k=i<0?-i:i))),e.hasOwnProperty(r="RANGE"))if(i=e[r],i&&i.pop)_(i[0],-D,-1,r),_(i[1],1,D,r),Z=i[0],H=i[1];else if(_(i,-D,D,r),i)Z=-(H=i<0?-i:i);else throw Error(C+r+" cannot be zero: "+i);if(e.hasOwnProperty(r="CRYPTO"))if(i=e[r],i===!!i)if(i)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))K=i;else throw K=!i,Error(C+"crypto unavailable");else K=i;else throw Error(C+r+" not true or false: "+i);if(e.hasOwnProperty(r="MODULO_MODE")&&(i=e[r],_(i,0,9,r),ee=i),e.hasOwnProperty(r="POW_PRECISION")&&(i=e[r],_(i,0,D,r),J=i),e.hasOwnProperty(r="FORMAT"))if(i=e[r],typeof i=="object")ce=i;else throw Error(C+r+" not an object: "+i);if(e.hasOwnProperty(r="ALPHABET"))if(i=e[r],typeof i=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(i))ae=i.slice(0,10)=="0123456789",j=i;else throw Error(C+r+" invalid: "+i)}else throw Error(C+"Object expected: "+e);return{DECIMAL_PLACES:x,ROUNDING_MODE:B,EXPONENTIAL_AT:[U,k],RANGE:[Z,H],CRYPTO:K,MODULO_MODE:ee,POW_PRECISION:J,FORMAT:ce,ALPHABET:j}},h.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!h.DEBUG)return!0;var r,i,o=e.c,t=e.e,l=e.s;e:if({}.toString.call(o)=="[object Array]"){if((l===1||l===-1)&&t>=-D&&t<=D&&t===G(t)){if(o[0]===0){if(t===0&&o.length===1)return!0;break e}if(r=(t+1)%N,r<1&&(r+=N),String(o[0]).length==r){for(r=0;r<o.length;r++)if(i=o[r],i<0||i>=z||i!==G(i))break e;if(i!==0)return!0}}}else if(o===null&&t===null&&(l===null||l===1||l===-1))return!0;throw Error(C+"Invalid BigNumber: "+e)},h.maximum=h.max=function(){return me(arguments,-1)},h.minimum=h.min=function(){return me(arguments,1)},h.random=function(){var e=9007199254740992,r=Math.random()*e&2097151?function(){return G(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(i){var o,t,l,c,n,f=0,u=[],s=new h(M);if(i==null?i=x:_(i,0,D),c=se(i/N),K)if(crypto.getRandomValues){for(o=crypto.getRandomValues(new Uint32Array(c*=2));f<c;)n=o[f]*131072+(o[f+1]>>>11),n>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),o[f]=t[0],o[f+1]=t[1]):(u.push(n%1e14),f+=2);f=c/2}else if(crypto.randomBytes){for(o=crypto.randomBytes(c*=7);f<c;)n=(o[f]&31)*281474976710656+o[f+1]*1099511627776+o[f+2]*4294967296+o[f+3]*16777216+(o[f+4]<<16)+(o[f+5]<<8)+o[f+6],n>=9e15?crypto.randomBytes(7).copy(o,f):(u.push(n%1e14),f+=7);f=c/7}else throw K=!1,Error(C+"crypto unavailable");if(!K)for(;f<c;)n=r(),n<9e15&&(u[f++]=n%1e14);for(c=u[--f],i%=N,c&&i&&(n=ue[N-i],u[f]=G(c/n)*n);u[f]===0;u.pop(),f--);if(f<0)u=[l=0];else{for(l=-1;u[0]===0;u.splice(0,1),l-=N);for(f=1,n=u[0];n>=10;n/=10,f++);f<N&&(l-=N-f)}return s.e=l,s.c=u,s}}(),h.sum=function(){for(var e=1,r=arguments,i=new h(r[0]);e<r.length;)i=i.plus(r[e++]);return i},v=function(){var e="0123456789";function r(i,o,t,l){for(var c,n=[0],f,u=0,s=i.length;u<s;){for(f=n.length;f--;n[f]*=o);for(n[0]+=l.indexOf(i.charAt(u++)),c=0;c<n.length;c++)n[c]>t-1&&(n[c+1]==null&&(n[c+1]=0),n[c+1]+=n[c]/t|0,n[c]%=t)}return n.reverse()}return function(i,o,t,l,c){var n,f,u,s,a,g,w,d,S=i.indexOf("."),T=x,m=B;for(S>=0&&(s=J,J=0,i=i.replace(".",""),d=new h(o),g=d.pow(i.length-S),J=s,d.c=r(V(F(g.c),g.e,"0"),10,t,e),d.e=d.c.length),w=r(i,o,t,c?(n=j,e):(n=e,j)),u=s=w.length;w[--s]==0;w.pop());if(!w[0])return n.charAt(0);if(S<0?--u:(g.c=w,g.e=u,g.s=l,g=E(g,d,T,m,t),w=g.c,a=g.r,u=g.e),f=u+T+1,S=w[f],s=t/2,a=a||f<0||w[f+1]!=null,a=m<4?(S!=null||a)&&(m==0||m==(g.s<0?3:2)):S>s||S==s&&(m==4||a||m==6&&w[f-1]&1||m==(g.s<0?8:7)),f<1||!w[0])i=a?V(n.charAt(1),-T,n.charAt(0)):n.charAt(0);else{if(w.length=f,a)for(--t;++w[--f]>t;)w[f]=0,f||(++u,w=[1].concat(w));for(s=w.length;!w[--s];);for(S=0,i="";S<=s;i+=n.charAt(w[S++]));i=V(i,u,n.charAt(0))}return i}}(),E=function(){function e(o,t,l){var c,n,f,u,s=0,a=o.length,g=t%Y,w=t/Y|0;for(o=o.slice();a--;)f=o[a]%Y,u=o[a]/Y|0,c=w*f+u*g,n=g*f+c%Y*Y+s,s=(n/l|0)+(c/Y|0)+w*u,o[a]=n%l;return s&&(o=[s].concat(o)),o}function r(o,t,l,c){var n,f;if(l!=c)f=l>c?1:-1;else for(n=f=0;n<l;n++)if(o[n]!=t[n]){f=o[n]>t[n]?1:-1;break}return f}function i(o,t,l,c){for(var n=0;l--;)o[l]-=n,n=o[l]<t[l]?1:0,o[l]=n*c+o[l]-t[l];for(;!o[0]&&o.length>1;o.splice(0,1));}return function(o,t,l,c,n){var f,u,s,a,g,w,d,S,T,m,A,P,te,ge,we,X,re,y=o.s==t.s?1:-1,L=o.c,R=t.c;if(!L||!L[0]||!R||!R[0])return new h(!o.s||!t.s||(L?R&&L[0]==R[0]:!R)?NaN:L&&L[0]==0||!R?y*0:y/0);for(S=new h(y),T=S.c=[],u=o.e-t.e,y=l+u+1,n||(n=z,u=q(o.e/N)-q(t.e/N),y=y/N|0),s=0;R[s]==(L[s]||0);s++);if(R[s]>(L[s]||0)&&u--,y<0)T.push(1),a=!0;else{for(ge=L.length,X=R.length,s=0,y+=2,g=G(n/(R[0]+1)),g>1&&(R=e(R,g,n),L=e(L,g,n),X=R.length,ge=L.length),te=X,m=L.slice(0,X),A=m.length;A<X;m[A++]=0);re=R.slice(),re=[0].concat(re),we=R[0],R[1]>=n/2&&we++;do{if(g=0,f=r(R,m,X,A),f<0){if(P=m[0],X!=A&&(P=P*n+(m[1]||0)),g=G(P/we),g>1)for(g>=n&&(g=n-1),w=e(R,g,n),d=w.length,A=m.length;r(w,m,d,A)==1;)g--,i(w,X<d?re:R,d,n),d=w.length,f=1;else g==0&&(f=g=1),w=R.slice(),d=w.length;if(d<A&&(w=[0].concat(w)),i(m,w,A,n),A=m.length,f==-1)for(;r(R,m,X,A)<1;)g++,i(m,X<A?re:R,A,n),A=m.length}else f===0&&(g++,m=[0]);T[s++]=g,m[0]?m[A++]=L[te]||0:(m=[L[te]],A=1)}while((te++<ge||m[0]!=null)&&y--);a=m[0]!=null,T[0]||T.splice(0,1)}if(n==z){for(s=1,y=T[0];y>=10;y/=10,s++);$(S,l+(S.e=s+u*N-1)+1,c,a)}else S.e=u,S.r=+a;return S}}();function he(e,r,i,o){var t,l,c,n,f;if(i==null?i=B:_(i,0,8),!e.c)return e.toString();if(t=e.c[0],c=e.e,r==null)f=F(e.c),f=o==1||o==2&&(c<=U||c>=k)?ne(f,c):V(f,c,"0");else if(e=$(new h(e),r,i),l=e.e,f=F(e.c),n=f.length,o==1||o==2&&(r<=l||l<=U)){for(;n<r;f+="0",n++);f=ne(f,l)}else if(r-=c+(o===2&&l>c),f=V(f,l,"0"),l+1>n){if(--r>0)for(f+=".";r--;f+="0");}else if(r+=l-n,r>0)for(l+1==n&&(f+=".");r--;f+="0");return e.s<0&&t?"-"+f:f}function me(e,r){for(var i,o,t=1,l=new h(e[0]);t<e.length;t++)o=new h(e[t]),(!o.s||(i=Q(l,o))===r||i===0&&l.s===r)&&(l=o);return l}function pe(e,r,i){for(var o=1,t=r.length;!r[--t];r.pop());for(t=r[0];t>=10;t/=10,o++);return(i=o+i*N-1)>H?e.c=e.e=null:i<Z?e.c=[e.e=0]:(e.e=i,e.c=r),e}I=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,i=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,t=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(l,c,n,f){var u,s=n?c:c.replace(t,"");if(o.test(s))l.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(e,function(a,g,w){return u=(w=w.toLowerCase())=="x"?16:w=="b"?2:8,!f||f==u?g:a}),f&&(u=f,s=s.replace(r,"$1").replace(i,"0.$1")),c!=s))return new h(s,u);if(h.DEBUG)throw Error(C+"Not a"+(f?" base "+f:"")+" number: "+c);l.s=null}l.c=l.e=null}}();function $(e,r,i,o){var t,l,c,n,f,u,s,a=e.c,g=ue;if(a){e:{for(t=1,n=a[0];n>=10;n/=10,t++);if(l=r-t,l<0)l+=N,c=r,f=a[u=0],s=G(f/g[t-c-1]%10);else if(u=se((l+1)/N),u>=a.length)if(o){for(;a.length<=u;a.push(0));f=s=0,t=1,l%=N,c=l-N+1}else break e;else{for(f=n=a[u],t=1;n>=10;n/=10,t++);l%=N,c=l-N+t,s=c<0?0:G(f/g[t-c-1]%10)}if(o=o||r<0||a[u+1]!=null||(c<0?f:f%g[t-c-1]),o=i<4?(s||o)&&(i==0||i==(e.s<0?3:2)):s>5||s==5&&(i==4||o||i==6&&(l>0?c>0?f/g[t-c]:0:a[u-1])%10&1||i==(e.s<0?8:7)),r<1||!a[0])return a.length=0,o?(r-=e.e+1,a[0]=g[(N-r%N)%N],e.e=-r||0):a[0]=e.e=0,e;if(l==0?(a.length=u,n=1,u--):(a.length=u+1,n=g[N-l],a[u]=c>0?G(f/g[t-c]%g[c])*n:0),o)for(;;)if(u==0){for(l=1,c=a[0];c>=10;c/=10,l++);for(c=a[0]+=n,n=1;c>=10;c/=10,n++);l!=n&&(e.e++,a[0]==z&&(a[0]=1));break}else{if(a[u]+=n,a[u]!=z)break;a[u--]=0,n=1}for(l=a.length;a[--l]===0;a.pop());}e.e>H?e.c=e.e=null:e.e<Z&&(e.c=[e.e=0])}return e}function W(e){var r,i=e.e;return i===null?e.toString():(r=F(e.c),r=i<=U||i>=k?ne(r,i):V(r,i,"0"),e.s<0?"-"+r:r)}return p.absoluteValue=p.abs=function(){var e=new h(this);return e.s<0&&(e.s=1),e},p.comparedTo=function(e,r){return Q(this,new h(e,r))},p.decimalPlaces=p.dp=function(e,r){var i,o,t,l=this;if(e!=null)return _(e,0,D),r==null?r=B:_(r,0,8),$(new h(l),e+l.e+1,r);if(!(i=l.c))return null;if(o=((t=i.length-1)-q(this.e/N))*N,t=i[t])for(;t%10==0;t/=10,o--);return o<0&&(o=0),o},p.dividedBy=p.div=function(e,r){return E(this,new h(e,r),x,B)},p.dividedToIntegerBy=p.idiv=function(e,r){return E(this,new h(e,r),0,1)},p.exponentiatedBy=p.pow=function(e,r){var i,o,t,l,c,n,f,u,s,a=this;if(e=new h(e),e.c&&!e.isInteger())throw Error(C+"Exponent not an integer: "+W(e));if(r!=null&&(r=new h(r)),n=e.e>14,!a.c||!a.c[0]||a.c[0]==1&&!a.e&&a.c.length==1||!e.c||!e.c[0])return s=new h(Math.pow(+W(a),n?e.s*(2-ie(e)):+W(e))),r?s.mod(r):s;if(f=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new h(NaN);o=!f&&a.isInteger()&&r.isInteger(),o&&(a=a.mod(r))}else{if(e.e>9&&(a.e>0||a.e<-1||(a.e==0?a.c[0]>1||n&&a.c[1]>=24e7:a.c[0]<8e13||n&&a.c[0]<=9999975e7)))return l=a.s<0&&ie(e)?-0:0,a.e>-1&&(l=1/l),new h(f?1/l:l);J&&(l=se(J/N+2))}for(n?(i=new h(.5),f&&(e.s=1),u=ie(e)):(t=Math.abs(+W(e)),u=t%2),s=new h(M);;){if(u){if(s=s.times(a),!s.c)break;l?s.c.length>l&&(s.c.length=l):o&&(s=s.mod(r))}if(t){if(t=G(t/2),t===0)break;u=t%2}else if(e=e.times(i),$(e,e.e+1,1),e.e>14)u=ie(e);else{if(t=+W(e),t===0)break;u=t%2}a=a.times(a),l?a.c&&a.c.length>l&&(a.c.length=l):o&&(a=a.mod(r))}return o?s:(f&&(s=M.div(s)),r?s.mod(r):l?$(s,J,B,c):s)},p.integerValue=function(e){var r=new h(this);return e==null?e=B:_(e,0,8),$(r,r.e+1,e)},p.isEqualTo=p.eq=function(e,r){return Q(this,new h(e,r))===0},p.isFinite=function(){return!!this.c},p.isGreaterThan=p.gt=function(e,r){return Q(this,new h(e,r))>0},p.isGreaterThanOrEqualTo=p.gte=function(e,r){return(r=Q(this,new h(e,r)))===1||r===0},p.isInteger=function(){return!!this.c&&q(this.e/N)>this.c.length-2},p.isLessThan=p.lt=function(e,r){return Q(this,new h(e,r))<0},p.isLessThanOrEqualTo=p.lte=function(e,r){return(r=Q(this,new h(e,r)))===-1||r===0},p.isNaN=function(){return!this.s},p.isNegative=function(){return this.s<0},p.isPositive=function(){return this.s>0},p.isZero=function(){return!!this.c&&this.c[0]==0},p.minus=function(e,r){var i,o,t,l,c=this,n=c.s;if(e=new h(e,r),r=e.s,!n||!r)return new h(NaN);if(n!=r)return e.s=-r,c.plus(e);var f=c.e/N,u=e.e/N,s=c.c,a=e.c;if(!f||!u){if(!s||!a)return s?(e.s=-r,e):new h(a?c:NaN);if(!s[0]||!a[0])return a[0]?(e.s=-r,e):new h(s[0]?c:B==3?-0:0)}if(f=q(f),u=q(u),s=s.slice(),n=f-u){for((l=n<0)?(n=-n,t=s):(u=f,t=a),t.reverse(),r=n;r--;t.push(0));t.reverse()}else for(o=(l=(n=s.length)<(r=a.length))?n:r,n=r=0;r<o;r++)if(s[r]!=a[r]){l=s[r]<a[r];break}if(l&&(t=s,s=a,a=t,e.s=-e.s),r=(o=a.length)-(i=s.length),r>0)for(;r--;s[i++]=0);for(r=z-1;o>n;){if(s[--o]<a[o]){for(i=o;i&&!s[--i];s[i]=r);--s[i],s[o]+=z}s[o]-=a[o]}for(;s[0]==0;s.splice(0,1),--u);return s[0]?pe(e,s,u):(e.s=B==3?-1:1,e.c=[e.e=0],e)},p.modulo=p.mod=function(e,r){var i,o,t=this;return e=new h(e,r),!t.c||!e.s||e.c&&!e.c[0]?new h(NaN):!e.c||t.c&&!t.c[0]?new h(t):(ee==9?(o=e.s,e.s=1,i=E(t,e,0,3),e.s=o,i.s*=o):i=E(t,e,0,ee),e=t.minus(i.times(e)),!e.c[0]&&ee==1&&(e.s=t.s),e)},p.multipliedBy=p.times=function(e,r){var i,o,t,l,c,n,f,u,s,a,g,w,d,S,T,m=this,A=m.c,P=(e=new h(e,r)).c;if(!A||!P||!A[0]||!P[0])return!m.s||!e.s||A&&!A[0]&&!P||P&&!P[0]&&!A?e.c=e.e=e.s=null:(e.s*=m.s,!A||!P?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(o=q(m.e/N)+q(e.e/N),e.s*=m.s,f=A.length,a=P.length,f<a&&(d=A,A=P,P=d,t=f,f=a,a=t),t=f+a,d=[];t--;d.push(0));for(S=z,T=Y,t=a;--t>=0;){for(i=0,g=P[t]%T,w=P[t]/T|0,c=f,l=t+c;l>t;)u=A[--c]%T,s=A[c]/T|0,n=w*u+s*g,u=g*u+n%T*T+d[l]+i,i=(u/S|0)+(n/T|0)+w*s,d[l--]=u%S;d[l]=i}return i?++o:d.splice(0,1),pe(e,d,o)},p.negated=function(){var e=new h(this);return e.s=-e.s||null,e},p.plus=function(e,r){var i,o=this,t=o.s;if(e=new h(e,r),r=e.s,!t||!r)return new h(NaN);if(t!=r)return e.s=-r,o.minus(e);var l=o.e/N,c=e.e/N,n=o.c,f=e.c;if(!l||!c){if(!n||!f)return new h(t/0);if(!n[0]||!f[0])return f[0]?e:new h(n[0]?o:t*0)}if(l=q(l),c=q(c),n=n.slice(),t=l-c){for(t>0?(c=l,i=f):(t=-t,i=n),i.reverse();t--;i.push(0));i.reverse()}for(t=n.length,r=f.length,t-r<0&&(i=f,f=n,n=i,r=t),t=0;r;)t=(n[--r]=n[r]+f[r]+t)/z|0,n[r]=z===n[r]?0:n[r]%z;return t&&(n=[t].concat(n),++c),pe(e,n,c)},p.precision=p.sd=function(e,r){var i,o,t,l=this;if(e!=null&&e!==!!e)return _(e,1,D),r==null?r=B:_(r,0,8),$(new h(l),e,r);if(!(i=l.c))return null;if(t=i.length-1,o=t*N+1,t=i[t]){for(;t%10==0;t/=10,o--);for(t=i[0];t>=10;t/=10,o++);}return e&&l.e+1>o&&(o=l.e+1),o},p.shiftedBy=function(e){return _(e,-oe,oe),this.times("1e"+e)},p.squareRoot=p.sqrt=function(){var e,r,i,o,t,l=this,c=l.c,n=l.s,f=l.e,u=x+4,s=new h("0.5");if(n!==1||!c||!c[0])return new h(!n||n<0&&(!c||c[0])?NaN:c?l:1/0);if(n=Math.sqrt(+W(l)),n==0||n==1/0?(r=F(c),(r.length+f)%2==0&&(r+="0"),n=Math.sqrt(+r),f=q((f+1)/2)-(f<0||f%2),n==1/0?r="5e"+f:(r=n.toExponential(),r=r.slice(0,r.indexOf("e")+1)+f),i=new h(r)):i=new h(n+""),i.c[0]){for(f=i.e,n=f+u,n<3&&(n=0);;)if(t=i,i=s.times(t.plus(E(l,t,u,1))),F(t.c).slice(0,n)===(r=F(i.c)).slice(0,n))if(i.e<f&&--n,r=r.slice(n-3,n+1),r=="9999"||!o&&r=="4999"){if(!o&&($(t,t.e+x+2,0),t.times(t).eq(l))){i=t;break}u+=4,n+=4,o=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&($(i,i.e+x+2,1),e=!i.times(i).eq(l));break}}return $(i,i.e+x+1,B,e)},p.toExponential=function(e,r){return e!=null&&(_(e,0,D),e++),he(this,e,r,1)},p.toFixed=function(e,r){return e!=null&&(_(e,0,D),e=e+this.e+1),he(this,e,r)},p.toFormat=function(e,r,i){var o,t=this;if(i==null)e!=null&&r&&typeof r=="object"?(i=r,r=null):e&&typeof e=="object"?(i=e,e=r=null):i=ce;else if(typeof i!="object")throw Error(C+"Argument not an object: "+i);if(o=t.toFixed(e,r),t.c){var l,c=o.split("."),n=+i.groupSize,f=+i.secondaryGroupSize,u=i.groupSeparator||"",s=c[0],a=c[1],g=t.s<0,w=g?s.slice(1):s,d=w.length;if(f&&(l=n,n=f,f=l,d-=l),n>0&&d>0){for(l=d%n||n,s=w.substr(0,l);l<d;l+=n)s+=u+w.substr(l,n);f>0&&(s+=u+w.slice(l)),g&&(s="-"+s)}o=a?s+(i.decimalSeparator||"")+((f=+i.fractionGroupSize)?a.replace(new RegExp("\\d{"+f+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):a):s}return(i.prefix||"")+o+(i.suffix||"")},p.toFraction=function(e){var r,i,o,t,l,c,n,f,u,s,a,g,w=this,d=w.c;if(e!=null&&(n=new h(e),!n.isInteger()&&(n.c||n.s!==1)||n.lt(M)))throw Error(C+"Argument "+(n.isInteger()?"out of range: ":"not an integer: ")+W(n));if(!d)return new h(w);for(r=new h(M),u=i=new h(M),o=f=new h(M),g=F(d),l=r.e=g.length-w.e-1,r.c[0]=ue[(c=l%N)<0?N+c:c],e=!e||n.comparedTo(r)>0?l>0?r:u:n,c=H,H=1/0,n=new h(g),f.c[0]=0;s=E(n,r,0,1),t=i.plus(s.times(o)),t.comparedTo(e)!=1;)i=o,o=t,u=f.plus(s.times(t=u)),f=t,r=n.minus(s.times(t=r)),n=t;return t=E(e.minus(i),o,0,1),f=f.plus(t.times(u)),i=i.plus(t.times(o)),f.s=u.s=w.s,l=l*2,a=E(u,o,l,B).minus(w).abs().comparedTo(E(f,i,l,B).minus(w).abs())<1?[u,o]:[f,i],H=c,a},p.toNumber=function(){return+W(this)},p.toPrecision=function(e,r){return e!=null&&_(e,1,D),he(this,e,r,2)},p.toString=function(e){var r,i=this,o=i.s,t=i.e;return t===null?o?(r="Infinity",o<0&&(r="-"+r)):r="NaN":(e==null?r=t<=U||t>=k?ne(F(i.c),t):V(F(i.c),t,"0"):e===10&&ae?(i=$(new h(i),x+t+1,B),r=V(F(i.c),i.e,"0")):(_(e,2,j.length,"Base"),r=v(V(F(i.c),t,"0"),10,e,o,!0)),o<0&&i.c[0]&&(r="-"+r)),r},p.valueOf=p.toJSON=function(){return W(this)},p._isBigNumber=!0,O!=null&&h.set(O),h}function q(O){var E=O|0;return O>0||O===E?E:E-1}function F(O){for(var E,v,I=1,p=O.length,M=O[0]+"";I<p;){for(E=O[I++]+"",v=N-E.length;v--;E="0"+E);M+=E}for(p=M.length;M.charCodeAt(--p)===48;);return M.slice(0,p+1||1)}function Q(O,E){var v,I,p=O.c,M=E.c,x=O.s,B=E.s,U=O.e,k=E.e;if(!x||!B)return null;if(v=p&&!p[0],I=M&&!M[0],v||I)return v?I?0:-B:x;if(x!=B)return x;if(v=x<0,I=U==k,!p||!M)return I?0:!p^v?1:-1;if(!I)return U>k^v?1:-1;for(B=(U=p.length)<(k=M.length)?U:k,x=0;x<B;x++)if(p[x]!=M[x])return p[x]>M[x]^v?1:-1;return U==k?0:U>k^v?1:-1}function _(O,E,v,I){if(O<E||O>v||O!==G(O))throw Error(C+(I||"Argument")+(typeof O=="number"?O<E||O>v?" out of range: ":" not an integer: ":" not a primitive number: ")+String(O))}function ie(O){var E=O.c.length-1;return q(O.e/N)==E&&O.c[E]%2!=0}function ne(O,E){return(O.length>1?O.charAt(0)+"."+O.slice(1):O)+(E<0?"e":"e+")+E}function V(O,E,v){var I,p;if(E<0){for(p=v+".";++E;p+=v);O=p+O}else if(I=O.length,++E>I){for(p=v,E-=I;--E;p+=v);O+=p}else E<I&&(O=O.slice(0,E)+"."+O.slice(E));return O}b=Oe(),b.default=b.BigNumber=b,Ne.exports?Ne.exports=b:(le||(le=typeof self<"u"&&self?self:window),le.BigNumber=b)})(ve)}(fe)),fe.exports}export{Re as a,Ie as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={"button.setup":{message:"Setup",description:"Text in button for performing setup"},"button.start":{message:"Start",description:"Button text for starting an operation"},"button.copy":{message:"Copy",description:"Text in button for copying content"},"button.copied":{message:"Copied",description:"Button text indicating content has been copied"},"button.restart":{message:"Regenerate",description:"Button text for regenerating content"},"button.preview":{message:"Preview",description:"Button text for opening a preview of a file via URL"},"button.seeRawImage":{message:"View Original Image",description:"Button text for viewing the original image"},"button.seeRawVideo":{message:"View Video",description:"Button text for viewing the original video"},"button.edit":{message:"Edit",description:"Text in button for editing content"},"button.login":{message:"Login",description:"Text in button for logging in"},"button.logout":{message:"Logout",description:"Text in button for logging out"},"button.new":{message:"New",description:"Text in button for creating a new item"},"button.delete":{message:"Delete",description:"Text in button for deleting content"},"button.confirm":{message:"Confirm",description:"Text in button for confirming an action"},"button.cancel":{message:"Cancel",description:"Text in button for canceling an action"},"button.alert":{message:"Alert",description:"Text in button for issuing an alert"},"button.info":{message:"Info",description:"Text in button for displaying information"},"button.publish":{message:"Publish",description:"Text in button for publishing content"},"button.watch":{message:"Watch",description:"Text in button for watching content"},"button.verify":{message:"Real Name Verification",description:"Text in button for user real name verification"},"button.profile":{message:"Profile",description:"Text in button for displaying user profile"},"button.console":{message:"Console",description:"Text in button for displaying the console page to control content"},"button.learn":{message:"Learn",description:"Text in button for allowing users to learn something"},"button.buy":{message:"Buy",description:"Text in button for allowing users to purchase something"},"button.try":{message:"Try",description:"Text in button for allowing users to try something"},"button.startForFree":{message:"Start for Free",description:"Text in button for allowing users to start for free"},"button.downloadAndroid":{message:"Download Android",description:"Text in button for downloading the Android APK"},"button.downloadIos":{message:"Download iOS",description:"Text in button for downloading the iOS package file"},"button.installIos":{message:"Install iOS",description:"Text in button for installing the iOS app"},"button.apply":{message:"Apply",description:"Text in button for allowing users to apply for API services"},"button.refresh":{message:"Refresh",description:"Text in button for refreshing the page"},"button.pay":{message:"Pay",description:"Text in button for allowing users to pay for services"},"button.repay":{message:"Continue Payment",description:"Text in button for allowing users to continue payment"},"button.applied":{message:"Applied",description:"Text in button indicating the user has applied for the service"},"button.acquire":{message:"Acquire",description:"Text in button for allowing users to acquire API service tokens or keys"},"button.fillExample":{message:"Fill Example",description:"Text in button for allowing users to fill in example data"},"button.buyMore":{message:"Top Up",description:"Text in button for allowing users to top up their account"},"button.update":{message:"Update",description:"Text in button for updating content"},"button.view":{message:"View",description:"Text in button for viewing content"},"button.create":{message:"Create",description:"Text in button for creating content"},"button.referralEarnings":{message:"Referral Earnings",description:"Text in button for displaying referral earnings, meaning users can earn by inviting others to use the service"},"button.finish":{message:"Finish",description:"Text in button for completing an action"},"entity.id":{message:"ID",description:"Unique identifier for displaying the entity"},"entity.type":{message:"Type",description:"Text for displaying the type of the entity"},"entity.website":{message:"Ace Data Cloud",description:"Website name, no translation needed, keep as 'Ace Data Cloud'"},"entity.copyright":{message:"Copyright",description:"Text displaying copyright"},"entity.platform":{message:"Platform",description:"Text indicating this is the API service platform"},"entity.title":{message:"Title",description:"Title of the entity"},"entity.icon":{message:"Icon",description:"Icon of the entity"},"entity.status":{message:"Status",description:"Status of the entity"},"status.loading":{message:"Loading...",description:"Status text displayed while content is loading"},"entity.operation":{message:"Operation",description:"Operation of the entity"},"entity.description":{message:"Description",description:"Description of the entity"},"entity.createdAt":{message:"Created At",description:"Time when the entity was created"},"entity.updatedAt":{message:"Updated At",description:"Time when the entity was updated"},"entity.order":{message:"Order",description:"Order of the entity, which includes monetary and service information that the user needs to pay for"},"message.noTasks":{message:"No historical tasks, please start a new task~",description:"Message when there are no tasks"},"message.usedAmount":{message:"Used Amount",description:"Used to display the amount of service used"},"message.mobileAppDescription":{message:"Use AceData directly on your phone with a downloadable Android APK today, while the iOS package will be published once signing is ready.",description:"Description shown on the mobile app download page"},"message.mobileAndroidHint":{message:"For Android phones and tablets. Scan the QR code or download the latest APK directly.",description:"Android download card description"},"message.mobileAndroidPending":{message:"The Android package is not available yet. Please check back shortly.",description:"Shown when the Android package is not available yet"},"message.mobileAvailableNow":{message:"Android available now",description:"Shows that the Android package is currently available"},"message.mobileSecureDelivery":{message:"Secure CDN delivery",description:"Highlights that the package is delivered over a CDN link"},"message.mobileDirectInstall":{message:"Direct APK install",description:"Describes the Android installation method"},"message.mobileLatestRelease":{message:"Latest public release",description:"Explains that the shown version is the current public release"},"message.mobileSharedAccount":{message:"Shared account and credits",description:"Explains that mobile and web use the same account"},"message.mobileIosHint":{message:"For iPhone and iPad. Use the install link first, or fall back to the IPA package when needed.",description:"iOS download card description"},"message.mobileIosPending":{message:"The iOS package is not available yet. Apple signing assets still need to be configured before distribution.",description:"Shown when the iOS package is not available yet"},"message.mobileInstallNote":{message:"For enterprise or Ad Hoc iOS builds, first-time installation may require trusting the certificate in Settings > General > VPN & Device Management.",description:"Mobile app installation note"},"title.mobileApp":{message:"Mobile Downloads",description:"Title of the mobile app download page"},"title.mobileFastAccess":{message:"Faster access, no app store detour",description:"Benefit title on the mobile download page highlighting fast access"},"title.mobileTrustedRelease":{message:"One release surface, cleaner distribution",description:"Benefit title on the mobile download page highlighting managed releases"},"title.mobileUnifiedExperience":{message:"A unified experience across web and mobile",description:"Benefit title on the mobile download page highlighting a shared experience"},"nav.mobileApp":{message:"Mobile",description:"Navigation entry for the mobile app download page"},"message.mobileFastAccess":{message:"Users can scan on their phone to install immediately or download the APK on desktop first and distribute it internally for testing or fast rollout.",description:"Benefit copy on the mobile download page highlighting fast access"},"message.mobileTrustedRelease":{message:"Version, platform state, and installation path stay in one place so your team does not need to chase separate links or outdated build notes.",description:"Benefit copy on the mobile download page highlighting controlled distribution"},"message.mobileUnifiedExperience":{message:"The same account, credits, and product entry points work across mobile and web, making it easier to move between devices without extra setup.",description:"Benefit copy on the mobile download page highlighting a unified account experience"},"message.remainingAmount":{message:"Remaining Amount",description:"Used to display the remaining amount of service"},"message.confirmDelete":{message:"Are you sure you want to delete?",description:"Message confirming the user wants to delete an item"},"message.expiredAt":{message:"Expiration Time",description:"Used to display the expiration time of the service"},"message.alert":{message:"Warning",description:"Message warning the user"},"message.info":{message:"Tip",description:"Message displaying information"},"message.free":{message:"Free",description:"Message indicating that the service is free, meaning the user does not need to pay"},"message.startPrice":{message:"Starting Price",description:"Message displaying the minimum price of the service"},"message.joinDiscord":{message:"Join Discord",description:"Message prompting the user to join the Discord channel"},"message.addWeChat":{message:"WeChat Service",description:"Message prompting the user to add a WeChat account"},"message.serviceTech":{message:"Technical Support",description:"Message displaying technical support information"},"message.businessCooperation":{message:"Data & Business Cooperation",description:"Message displaying business cooperation information"},"message.noData":{message:"No Data",description:"Message indicating there is no data in the table or list"},"nav.home":{message:"Home",description:"Text in the website navigation bar to display the home page"},"nav.content":{message:"Content",description:"Text in the website navigation bar to display the content page"},"nav.category":{message:"Category",description:"Text in the website navigation bar to display the category page"},"nav.service":{message:"All Services",description:"Text in the website navigation bar to display the services page"},"nav.profile":{message:"Me",description:"Text in the website navigation bar to display the profile page"},"nav.products":{message:"Products",description:"Text in the website navigation bar to display the products page"},"nav.referral":{message:"Referral Program",description:"Text in the website navigation bar to display the referral page"},"nav.apiPlatform":{message:"API Platform",description:"Text in the website navigation bar to display the API platform page"},"nav.document":{message:"Developer Documentation",description:"Text in the website navigation bar to display the documentation page"},"nav.console":{message:"Console",description:"Text in the website navigation bar to display the console page"},"nav.chatgpt":{message:"ChatGPT",description:"Text in the website navigation bar to display the ChatGPT page, do not translate this field, must remain 'ChatGPT'"},"nav.deepseek":{message:"DeepSeek",description:"Text in the website navigation bar to display the DeepSeek page, do not translate this field, must remain 'DeepSeek'"},"nav.grok":{message:"Grok",description:"Text in the website navigation bar to display the Grok page, do not translate this field, must remain 'Grok'"},"nav.chat":{message:"Chat",description:"Text in the website navigation bar to display the chat page, do not translate this field, must remain 'Chat'"},"nav.veo":{message:"Veo",description:"Text in the website navigation bar to display the chat page, do not translate this field, must remain 'Veo'"},"nav.sora":{message:"Sora",description:"Text in the website navigation bar for displaying the chat page, must remain as 'Sora'"},"nav.midjourney":{message:"Midjourney",description:"Text in the website navigation bar for displaying the Midjourney page, must remain as 'Midjourney'"},"nav.qrart":{message:"QRArt",description:"Text in the website navigation bar for displaying the QRArt page, must remain as 'QRArt'"},"nav.suno":{message:"Suno",description:"Text in the website navigation bar for displaying the Suno page, must remain as 'Suno'"},"nav.pixverse":{message:"Pixverse",description:"Text in the website navigation bar for displaying the Pixverse page, must remain as 'Pixverse'"},"nav.flux":{message:"Flux",description:"Text in the website navigation bar for displaying the Flux page, must remain as 'Flux'"},"nav.nanobanana":{message:"Nano Banana",description:"Text in the website navigation bar for displaying the Nano Banana page, must remain as 'Nano Banana'"},"nav.seedream":{message:"SeeDream",description:"Text in the website navigation bar for displaying the SeeDream page, must remain as 'SeeDream'"},"nav.seedance":{message:"SeeDance",description:"Text in the website navigation bar for displaying the SeeDance page, must remain as 'SeeDance'"},"nav.luma":{message:"Luma",description:"Text in the website navigation bar for displaying the Luma page, must remain as 'Luma'"},"nav.pika":{message:"Pika",description:"Text in the website navigation bar for displaying the Pika page, must remain as 'Pika'"},"nav.kling":{message:"Kling",description:"Text in the website navigation bar for displaying the Kling page, must remain as 'Kling'"},"nav.hailuo":{message:"Hailuo",description:"Text in the website navigation bar for displaying the Hailuo page, must remain as 'Hailuo'"},"nav.image":{message:"Image",description:"Text in the website navigation bar for displaying the image page"},"nav.music":{message:"Music",description:"Text in the website navigation bar for displaying the music page"},"nav.video":{message:"Video",description:"Text in the website navigation bar for displaying the video page"},"nav.distribution":{message:"Referral Earnings",description:"Text in the website navigation bar for displaying the referral earnings page"},"nav.logOut":{message:"Log Out",description:"Text in the website navigation bar for logging out"},"nav.site":{message:"Site Configuration",description:"Text in the website navigation bar for displaying the site configuration page"},"nav.setting":{message:"Settings",description:"Text in the website navigation bar for displaying the settings page"},"nav.headshots":{message:"AI ID Photo",description:"Text in the website navigation bar for displaying the site configuration page"},"nav.more":{message:"More",description:"Text in the website navigation bar for expanding more services"},"nav.locale":{message:"Language Settings",description:"Text in the website navigation bar for changing the language"},"nav.support":{message:"Customer Support",description:"Text in the website navigation bar for displaying the contact page"},"nav.darkMode":{message:"Dark Mode",description:"Text in the website navigation bar for switching to dark theme"},"title.alert":{message:"Alert",description:"Title for alert messages"},"title.placeholderOfSelect":{message:"Please Select",description:"Placeholder for selection input"},"title.placeholderOfInput":{message:"Please Fill In",description:"Placeholder for input field"},"title.allApplications":{message:"All Applications",description:"Title for the page displaying all applications"},"title.allOrders":{message:"All Orders",description:"Title for the page displaying all orders"},"title.orderInfo":{message:"Order Information",description:"Title for the page displaying order information"},"title.buyMore":{message:"Top Up",description:"Page title for recharging. Must be translated to 'Top Up'."},"title.distribution":{message:"Referral Earnings",description:"Title for the page displaying referral income, meaning users can earn by inviting others to use the service"},"title.site":{message:"Site Configuration",description:"Title for the page displaying site configuration"},"title.distributionHistory":{message:"Recommendation History",description:"Page title displaying the recommendation history"},"title.invitee":{message:"Inviter",description:"Page title displaying the inviter"},"title.allUsages":{message:"Usage History",description:"Page title displaying all usages of the API service"},"title.allCredentials":{message:"Keys",description:"Page title displaying all credentials used to access the API"},"about.title1":{message:"Contact Us",description:"Section title displaying contact information"},"about.title2":{message:"Resources",description:"Section title displaying links"},"about.title3":{message:"Links",description:"Section title displaying support information"},"about.address":{message:"201 North Broad Street, Middletown, DE, USA",description:"Company address"},"about.email":{message:"office@acedata.cloud",description:"Company email"},"about.link1":{message:"Services",description:"Link to the documentation page"},"about.link2":{message:"Developer Documentation",description:"Link to the services page"},"about.link3":{message:"Console",description:"Link to the console page"},"about.link4":{message:"Profile",description:"Link to the profile page"},"about.link5":{message:"UI Platform",description:"Link to the central page"},"about.link6":{message:"Referral Earnings",description:"Link to the referral income page"},"about.link7":{message:"Support",description:"Link to the support page"},"about.link8":{message:"Terms of Service",description:"Link to the terms of service page"},"about.link9":{message:"Privacy Policy",description:"Link to the privacy policy page"},"theme.light":{message:"Light",description:"Name of the light theme"},"theme.dark":{message:"Dark",description:"Name of the dark theme"},"theme.system":{message:"System",description:"Name of the system theme, indicating automatic switching based on system settings"},"settings.general":{message:"General Settings",description:"Title for the general settings section on the settings page"},"settings.language":{message:"Language",description:"Title for the language settings section on the settings page"},"settings.theme":{message:"Theme",description:"Title for the theme settings section on the settings page"},"settings.seo":{message:"SEO Settings",description:"Title for the SEO settings section on the settings page"},"settings.site":{message:"Site Settings",description:"Title for the site settings section on the settings page"},"settings.distribution":{message:"Distribution Settings",description:"Title for the distribution settings section on the settings page"},"settings.function":{message:"Function Settings",description:"Title for the function settings section on the settings page"},"nav.gemini":{message:"Gemini",description:"Text in the website navigation bar to display the Gemini page, must remain as 'Gemini'"},"nav.claude":{message:"Claude",description:"Text in the website navigation bar to display the Claude page, must remain as 'Claude'"},"button.detail":{message:"View Details",description:""},"button.testEnv":{message:"Test Environment",description:"Text in the button to switch to the test environment"},"button.upload":{message:"Upload",description:"Text in the button to upload files or content"},"message.cnbeian":{message:"China Region Filing",description:"Information regarding the filing in the China region"},"message.copyFailed":{message:"Copy Failed",description:"Message displayed when content copy fails"},"nav.tryNow":{message:"Try Now",description:"Text in the website navigation bar to let users try the service"},"title.coin":{message:"Cryptocurrency",description:"Page title displaying cryptocurrency"},"title.distributionRank":{message:"Referral Ranking",description:"Page title displaying referral ranking"},"title.distributionPlatformRank":{message:"Platform Ranking",description:"Page title displaying platform ranking"},"customers.name1":{message:"Mark Du",description:"Customer's name"},"customers.job1":{message:"Software Engineer",description:"Customer's profession"},"customers.comment1":{message:"Ace Data Cloud has provided great service to our team, helping us improve productivity. We love it!",description:"Customer's testimonial"},"customers.name2":{message:"Jacob Williams",description:"Customer's name"},"customers.job2":{message:"Product Manager",description:"Customer's profession"},"customers.comment2":{message:"Ace Data Cloud is a great integration platform with excellent service quality.",description:"Customer's testimonial"},"customers.name3":{message:"Larry Henry",description:"Customer's name"},"customers.job3":{message:"Designer",description:"Customer's profession"},"customers.comment3":{message:"I love the services of Ace Data Cloud, easy to use and reasonably priced. I hope it gets better and better!",description:"Customer review"},"nav.github":{message:"GitHub",description:"Link to the GitHub repository"},"settings.github":{message:"Source Code",description:"Link to view the source code on GitHub"},"settings.about":{message:"About",description:"Title for the about section in the settings page"},"settings.poweredBy":{message:"Open Source Project",description:"Title displaying which open source project this site is based on in the about page"},"settings.poweredByTip":{message:"This site is built on the Nexior open source project, and the code is fully open source.",description:"Description of the open source project this site is based on in the about page"},"settings.apiService":{message:"API Service",description:"Title displaying the API service provider in the about page"},"settings.apiServiceTip":{message:"The API service is provided by Ace Data Cloud.",description:"Description of the API service provider in the about page"},"settings.buildYourOwn":{message:"Build Your Own",description:"Title prompting users that they can build a similar site in the about page"},"settings.buildYourOwnTip":{message:"Want to build a similar AI site? Contact us for deployment support.",description:"Description for building a similar site in the about page"},"settings.contactUs":{message:"Contact Support",description:"Text for the contact support button"},"message.viewOnGithub":{message:"View on GitHub",description:"Text for the link to view the project on GitHub"}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ak as i}from"./index-
|
|
1
|
+
import{ak as i}from"./index-DgtHfSqf.js";class e{key="distribution-histories";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}}const l=new e;class r{key="distribution-statuses";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}async initialize(){return await i.post(`/${this.key}/initialize/`)}}const c=new r;class a{key="distribution-levels";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}}const u=new a;class n{key="shorturl";async create(t){return await i.post(`/${this.key}`,{content:t})}}const y=new n;export{c as a,l as b,u as d,y as s};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{S as k,G as N,H as P,E as F,P as U,I as l,T as H,V as g}from"./vendor-web3-
|
|
1
|
+
import{S as k,G as N,H as P,E as F,P as U,I as l,T as H,V as g}from"./vendor-web3-BXoVw72d.js";import"./vendor-vue-1w_NBnjl.js";import"./vendor-dayjs-CzbnksQQ.js";let v;const O=new Uint8Array(16);function L(){if(!v&&(v=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!v))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return v(O)}const c=[];for(let i=0;i<256;++i)c.push((i+256).toString(16).slice(1));function R(i,t=0){return c[i[t+0]]+c[i[t+1]]+c[i[t+2]]+c[i[t+3]]+"-"+c[i[t+4]]+c[i[t+5]]+"-"+c[i[t+6]]+c[i[t+7]]+"-"+c[i[t+8]]+c[i[t+9]]+"-"+c[i[t+10]]+c[i[t+11]]+c[i[t+12]]+c[i[t+13]]+c[i[t+14]]+c[i[t+15]]}const $=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),z={randomUUID:$};function D(i,t,e){if(z.randomUUID&&!i)return z.randomUUID();i=i||{};const n=i.random||(i.rng||L)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,R(n)}function x(i){return i.version===void 0}function M(i){return x(i)?i.serialize({verifySignatures:!1,requireAllSignatures:!1}):i.serialize()}var W=function(i,t,e,n){function s(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function f(o){try{h(n.next(o))}catch(u){a(u)}}function p(o){try{h(n.throw(o))}catch(u){a(u)}}function h(o){o.done?r(o.value):s(o.value).then(f,p)}h((n=n.apply(i,t||[])).next())})};function T(i){return W(this,void 0,void 0,function*(){try{return yield i.request({method:"wallet_getSnaps"}),!0}catch{return!1}})}function V(){return W(this,void 0,void 0,function*(){try{const i=window.ethereum;if(!i)return null;if(i.providers&&Array.isArray(i.providers)){const t=i.providers;for(const e of t)if(yield T(e))return e}if(i.detected&&Array.isArray(i.detected)){const t=i.detected;for(const e of t)if(yield T(e))return e}return(yield T(i))?i:null}catch(i){return console.error(i),null}})}const q="solana:mainnet",G="solana:devnet",B="solana:testnet",J="solana:localnet",j=[q,G,B,J];function I(i){return j.includes(i)}var m=function(i,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?i!==t||!n:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(i):n?n.value:t.get(i)},_=function(i,t,e,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?i!==t||!s:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(i,e):s?s.value=e:t.set(i,e),e},w,y,b,S,E,A;const Q=j,X=[k,N,P];class C{get address(){return m(this,w,"f")}get publicKey(){return m(this,y,"f").slice()}get chains(){return m(this,b,"f").slice()}get features(){return m(this,S,"f").slice()}get label(){return m(this,E,"f")}get icon(){return m(this,A,"f")}constructor({address:t,publicKey:e,label:n,icon:s}){w.set(this,void 0),y.set(this,void 0),b.set(this,void 0),S.set(this,void 0),E.set(this,void 0),A.set(this,void 0),new.target===C&&Object.freeze(this),_(this,w,t,"f"),_(this,y,e,"f"),_(this,b,Q,"f"),_(this,S,X,"f"),_(this,E,n,"f"),_(this,A,s,"f")}}w=new WeakMap,y=new WeakMap,b=new WeakMap,S=new WeakMap,E=new WeakMap,A=new WeakMap;var d=function(i,t,e,n){function s(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function f(o){try{h(n.next(o))}catch(u){a(u)}}function p(o){try{h(n.throw(o))}catch(u){a(u)}}function h(o){o.done?r(o.value):s(o.value).then(f,p)}h((n=n.apply(i,t||[])).next())})};class K extends F{constructor(t){super(),this._network="mainnet-beta",this._iframeParams={},this._element=null,this._iframe=null,this._publicKey=null,this._account=null,this._isConnected=!1,this._connectHandler=null,this._messageHandlers={},this._handleEvent=e=>{var n,s;switch(e.type){case"connect":{this._collapseIframe(),!((n=e.data)===null||n===void 0)&&n.publicKey?(this._publicKey=e.data.publicKey,this._isConnected=!0,this._connectHandler&&(this._connectHandler.resolve(),this._connectHandler=null),this._connected()):(this._connectHandler&&(this._connectHandler.reject(),this._connectHandler=null),this._disconnected());return}case"disconnect":{this._connectHandler&&(this._connectHandler.reject(),this._connectHandler=null),this._disconnected();return}case"accountChanged":{!((s=e.data)===null||s===void 0)&&s.publicKey?(this._publicKey=e.data.publicKey,this.emit("accountChanged",this.publicKey),this._standardConnected()):(this.emit("accountChanged",void 0),this._standardDisconnected());return}default:return}},this._handleResize=e=>{e.resizeMode==="full"?e.params.mode==="fullscreen"?this._expandIframe():e.params.mode==="hide"&&this._collapseIframe():e.resizeMode==="coordinates"&&this._resizeIframe(e.params)},this._handleMessage=e=>{var n;if(((n=e.data)===null||n===void 0?void 0:n.channel)!=="solflareIframeToWalletAdapter")return;const s=e.data.data||{};if(s.type==="event")this._handleEvent(s.event);else if(s.type==="resize")this._handleResize(s);else if(s.type==="response"&&this._messageHandlers[s.id]){const{resolve:r,reject:a}=this._messageHandlers[s.id];delete this._messageHandlers[s.id],s.error?a(s.error):r(s.result)}},this._removeElement=()=>{this._element&&(this._element.remove(),this._element=null)},this._removeDanglingElements=()=>{const e=document.getElementsByClassName("solflare-metamask-wallet-adapter-iframe");for(const n of e)n.parentElement&&n.remove()},this._injectElement=()=>{this._removeElement(),this._removeDanglingElements();const e=Object.assign(Object.assign({},this._iframeParams),{mm:!0,v:1,cluster:this._network||"mainnet-beta",origin:window.location.origin||"",title:document.title||""}),n=Object.keys(e).map(r=>`${r}=${encodeURIComponent(e[r])}`).join("&"),s=`${K.IFRAME_URL}?${n}`;this._element=document.createElement("div"),this._element.className="solflare-metamask-wallet-adapter-iframe",this._element.innerHTML=`
|
|
2
2
|
<iframe src='${s}' style='position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; border: none; border-radius: 0; z-index: 99999; color-scheme: auto;' allowtransparency='true'></iframe>
|
|
3
3
|
`,document.body.appendChild(this._element),this._iframe=this._element.querySelector("iframe"),window.addEventListener("message",this._handleMessage,!1)},this._collapseIframe=()=>{this._iframe&&(this._iframe.style.top="",this._iframe.style.right="",this._iframe.style.height="2px",this._iframe.style.width="2px")},this._expandIframe=()=>{this._iframe&&(this._iframe.style.top="0px",this._iframe.style.bottom="0px",this._iframe.style.left="0px",this._iframe.style.right="0px",this._iframe.style.width="100%",this._iframe.style.height="100%")},this._resizeIframe=e=>{this._iframe&&(this._iframe.style.top=isFinite(e.top)?`${e.top}px`:"",this._iframe.style.bottom=isFinite(e.bottom)?`${e.bottom}px`:"",this._iframe.style.left=isFinite(e.left)?`${e.left}px`:"",this._iframe.style.right=isFinite(e.right)?`${e.right}px`:"",this._iframe.style.width=isFinite(e.width)?`${e.width}px`:e.width,this._iframe.style.height=isFinite(e.height)?`${e.height}px`:e.height)},this._sendIframeMessage=e=>{if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");return new Promise((n,s)=>{var r,a;const f=D();this._messageHandlers[f]={resolve:n,reject:s},(a=(r=this._iframe)===null||r===void 0?void 0:r.contentWindow)===null||a===void 0||a.postMessage({channel:"solflareWalletAdapterToIframe",data:Object.assign({id:f},e)},"*")})},this._connected=()=>{this._isConnected=!0,this.emit("connect",this.publicKey),this._standardConnected()},this._disconnected=()=>{this._publicKey=null,this._isConnected=!1,window.removeEventListener("message",this._handleMessage,!1),this._removeElement(),this.emit("disconnect"),this._standardDisconnected()},this._standardConnected=()=>{if(!this.publicKey)return;const e=this.publicKey.toString();(!this._account||this._account.address!==e)&&(this._account=new C({address:e,publicKey:this.publicKey.toBytes()}),this.emit("standard_change",{accounts:this.standardAccounts}))},this._standardDisconnected=()=>{this._account&&(this._account=null,this.emit("standard_change",{accounts:this.standardAccounts}))},t?.network&&(this._network=t?.network),window.SolflareMetaMaskParams&&(this._iframeParams=Object.assign(Object.assign({},this._iframeParams),window.SolflareMetaMaskParams)),t?.params&&(this._iframeParams=Object.assign(Object.assign({},this._iframeParams),t?.params))}get publicKey(){return this._publicKey?new U(this._publicKey):null}get standardAccount(){return this._account}get standardAccounts(){return this._account?[this._account]:[]}get isConnected(){return this._isConnected}get connected(){return this.isConnected}get autoApprove(){return!1}connect(){return d(this,void 0,void 0,function*(){this.connected||(this._injectElement(),yield new Promise((t,e)=>{this._connectHandler={resolve:t,reject:e}}))})}disconnect(){return d(this,void 0,void 0,function*(){yield this._sendIframeMessage({method:"disconnect"}),this._disconnected()})}signTransaction(t){var e;return d(this,void 0,void 0,function*(){if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");try{const n=M(t),s=yield this._sendIframeMessage({method:"signTransactionV2",params:{transaction:l.encode(n)}}),{transaction:r}=s;return x(t)?H.from(l.decode(r)):g.deserialize(l.decode(r))}catch(n){throw new Error(((e=n?.toString)===null||e===void 0?void 0:e.call(n))||"Failed to sign transaction")}})}signAllTransactions(t){var e;return d(this,void 0,void 0,function*(){if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");try{const n=t.map(r=>M(r)),{transactions:s}=yield this._sendIframeMessage({method:"signAllTransactionsV2",params:{transactions:n.map(r=>l.encode(r))}});return s.map((r,a)=>x(t[a])?H.from(l.decode(r)):g.deserialize(l.decode(r)))}catch(n){throw new Error(((e=n?.toString)===null||e===void 0?void 0:e.call(n))||"Failed to sign transactions")}})}signAndSendTransaction(t,e){var n;return d(this,void 0,void 0,function*(){if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");try{const s=M(t),{signature:r}=yield this._sendIframeMessage({method:"signAndSendTransaction",params:{transaction:l.encode(s),options:e}});return r}catch(s){throw new Error(((n=s?.toString)===null||n===void 0?void 0:n.call(s))||"Failed to sign and send transaction")}})}signMessage(t,e="utf8"){var n;return d(this,void 0,void 0,function*(){if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");try{const{signature:s}=yield this._sendIframeMessage({method:"signMessage",params:{data:l.encode(t),display:e}});return Uint8Array.from(l.decode(s))}catch(s){throw new Error(((n=s?.toString)===null||n===void 0?void 0:n.call(s))||"Failed to sign message")}})}sign(t,e="utf8"){return d(this,void 0,void 0,function*(){return yield this.signMessage(t,e)})}static isSupported(){return d(this,void 0,void 0,function*(){return!!(yield V())})}standardSignAndSendTransaction(...t){return d(this,void 0,void 0,function*(){if(!this.connected)throw new Error("not connected");const e=[];if(t.length===1){const{transaction:n,account:s,chain:r,options:a}=t[0],{minContextSlot:f,preflightCommitment:p,skipPreflight:h,maxRetries:o}=a||{};if(s!==this._account)throw new Error("invalid account");if(!I(r))throw new Error("invalid chain");const u=yield this.signAndSendTransaction(g.deserialize(n),{preflightCommitment:p,minContextSlot:f,maxRetries:o,skipPreflight:h});e.push({signature:l.decode(u)})}else if(t.length>1)for(const n of t)e.push(...yield this.standardSignAndSendTransaction(n));return e})}standardSignTransaction(...t){return d(this,void 0,void 0,function*(){if(!this.connected)throw new Error("not connected");const e=[];if(t.length===1){const{transaction:n,account:s,chain:r}=t[0];if(s!==this._account)throw new Error("invalid account");if(r&&!I(r))throw new Error("invalid chain");const a=yield this.signTransaction(g.deserialize(n));e.push({signedTransaction:a.serialize()})}else if(t.length>1){let n;for(const a of t){if(a.account!==this._account)throw new Error("invalid account");if(a.chain){if(!I(a.chain))throw new Error("invalid chain");if(n){if(a.chain!==n)throw new Error("conflicting chain")}else n=a.chain}}const s=t.map(({transaction:a})=>g.deserialize(a)),r=yield this.signAllTransactions(s);e.push(...r.map(a=>({signedTransaction:a.serialize()})))}return e})}standardSignMessage(...t){return d(this,void 0,void 0,function*(){if(!this.connected)throw new Error("not connected");const e=[];if(t.length===1){const{message:n,account:s}=t[0];if(s!==this._account)throw new Error("invalid account");const r=yield this.signMessage(n);e.push({signedMessage:n,signature:r})}else if(t.length>1)for(const n of t)e.push(...yield this.standardSignMessage(n));return e})}}K.IFRAME_URL="https://widget.solflare.com/";export{C as StandardSolflareMetaMaskWalletAccount,K as default};
|