@swapkit/wallet-hardware 6.1.1 → 6.3.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/THIRD_PARTY_LICENSES.md +4 -4
- package/dist/{chunk-jzrytcrf.js → chunk-0k1b2ddn.js} +3 -3
- package/dist/{chunk-jzrytcrf.js.map → chunk-0k1b2ddn.js.map} +2 -2
- package/dist/{chunk-jewm2ag3.js → chunk-2tzsz8f3.js} +4 -4
- package/dist/{chunk-jewm2ag3.js.map → chunk-2tzsz8f3.js.map} +1 -1
- package/dist/{chunk-yrxe491r.js → chunk-410fpx61.js} +4 -4
- package/dist/{chunk-yrxe491r.js.map → chunk-410fpx61.js.map} +1 -1
- package/dist/chunk-8mkdjmw2.js +4 -0
- package/dist/chunk-8mkdjmw2.js.map +10 -0
- package/dist/{chunk-xmvg4cds.js → chunk-96p7njae.js} +3 -3
- package/dist/{chunk-xmvg4cds.js.map → chunk-96p7njae.js.map} +2 -2
- package/dist/chunk-97nsp4z6.js +5 -0
- package/dist/chunk-97nsp4z6.js.map +10 -0
- package/dist/{chunk-nhva847d.js → chunk-9a9gn4pb.js} +3 -3
- package/dist/{chunk-5p3ttw6y.js.map → chunk-9a9gn4pb.js.map} +1 -1
- package/dist/chunk-a39rm9nv.js +4 -0
- package/dist/{chunk-gr3eswf1.js.map → chunk-a39rm9nv.js.map} +5 -5
- package/dist/chunk-c8mwf9cn.js +4 -0
- package/dist/{chunk-k3thje6a.js.map → chunk-c8mwf9cn.js.map} +1 -1
- package/dist/{chunk-ds2m83jp.js → chunk-dhhmywmb.js} +4 -4
- package/dist/{chunk-ds2m83jp.js.map → chunk-dhhmywmb.js.map} +1 -1
- package/dist/{chunk-eenx3cv6.js → chunk-dsa641rq.js} +3 -3
- package/dist/{chunk-eenx3cv6.js.map → chunk-dsa641rq.js.map} +2 -2
- package/dist/{chunk-0arpsm5f.js → chunk-grj9nvte.js} +3 -3
- package/dist/{chunk-0arpsm5f.js.map → chunk-grj9nvte.js.map} +1 -1
- package/dist/{chunk-hg71hp4m.js → chunk-napm4102.js} +3 -3
- package/dist/{chunk-hg71hp4m.js.map → chunk-napm4102.js.map} +1 -1
- package/dist/{chunk-k3thje6a.js → chunk-nb08g045.js} +3 -3
- package/dist/{chunk-nhva847d.js.map → chunk-nb08g045.js.map} +1 -1
- package/dist/chunk-npe2r2ge.js +4 -0
- package/dist/{chunk-xx7cwpzq.js.map → chunk-npe2r2ge.js.map} +1 -1
- package/dist/chunk-p9mwkgye.js +4 -0
- package/dist/{chunk-09e51wma.js.map → chunk-p9mwkgye.js.map} +14 -12
- package/dist/{chunk-wfbg89d3.js → chunk-qjp8j8e5.js} +3 -3
- package/dist/{chunk-wfbg89d3.js.map → chunk-qjp8j8e5.js.map} +1 -1
- package/dist/{chunk-xn0fnag5.js → chunk-r1fk1sx9.js} +3 -3
- package/dist/{chunk-xn0fnag5.js.map → chunk-r1fk1sx9.js.map} +1 -1
- package/dist/{chunk-1amf58aq.js → chunk-ta7bqmy3.js} +3 -3
- package/dist/{chunk-1amf58aq.js.map → chunk-ta7bqmy3.js.map} +1 -1
- package/dist/{chunk-3t17wpjg.js → chunk-tgvgr630.js} +3 -3
- package/dist/{chunk-3t17wpjg.js.map → chunk-tgvgr630.js.map} +2 -2
- package/dist/chunk-v8x9ptxs.js +4 -0
- package/dist/chunk-v8x9ptxs.js.map +10 -0
- package/dist/{chunk-dptbnkzm.js → chunk-wm89desc.js} +20 -20
- package/dist/{chunk-dptbnkzm.js.map → chunk-wm89desc.js.map} +12 -10
- package/dist/{chunk-5c7b7z2d.js → chunk-wtyhjt5e.js} +3 -3
- package/dist/{chunk-5c7b7z2d.js.map → chunk-wtyhjt5e.js.map} +1 -1
- package/dist/{chunk-tm47brht.js → chunk-xskdbz15.js} +3 -3
- package/dist/{chunk-tm47brht.js.map → chunk-xskdbz15.js.map} +2 -2
- package/dist/{chunk-8m2sn76p.js → chunk-ytjqb1sd.js} +3 -3
- package/dist/{chunk-8m2sn76p.js.map → chunk-ytjqb1sd.js.map} +1 -1
- package/dist/{chunk-3h1f3hyp.js → chunk-zbesf7sy.js} +3 -3
- package/dist/{chunk-3h1f3hyp.js.map → chunk-zbesf7sy.js.map} +1 -1
- package/dist/keepkey/index.cjs +2 -2
- package/dist/keepkey/index.cjs.map +3 -3
- package/dist/keepkey/index.js +2 -2
- package/dist/keepkey/index.js.map +3 -3
- package/dist/ledger/index.cjs +30 -30
- package/dist/ledger/index.cjs.map +35 -27
- package/dist/ledger/index.js +2 -2
- package/dist/ledger/index.js.map +11 -8
- package/dist/trezor/index.cjs +2 -2
- package/dist/trezor/index.cjs.map +7 -5
- package/dist/trezor/index.js +2 -2
- package/dist/trezor/index.js.map +3 -3
- package/dist/types/helpers/cardano.d.ts +35 -0
- package/dist/types/helpers/cardano.d.ts.map +1 -0
- package/dist/types/keepkey/index.d.ts +1 -0
- package/dist/types/keepkey/index.d.ts.map +1 -1
- package/dist/types/ledger/clients/cardano.d.ts +24 -0
- package/dist/types/ledger/clients/cardano.d.ts.map +1 -0
- package/dist/types/ledger/clients/evm.d.ts +1 -0
- package/dist/types/ledger/clients/evm.d.ts.map +1 -1
- package/dist/types/ledger/clients/stellar.d.ts +13 -0
- package/dist/types/ledger/clients/stellar.d.ts.map +1 -0
- package/dist/types/ledger/clients/ton.d.ts +13 -0
- package/dist/types/ledger/clients/ton.d.ts.map +1 -0
- package/dist/types/ledger/clients/zcash.d.ts.map +1 -1
- package/dist/types/ledger/helpers/getLedgerAddress.d.ts.map +1 -1
- package/dist/types/ledger/helpers/getLedgerClient.d.ts +8 -1
- package/dist/types/ledger/helpers/getLedgerClient.d.ts.map +1 -1
- package/dist/types/ledger/index.d.ts +3 -2
- package/dist/types/ledger/index.d.ts.map +1 -1
- package/dist/types/ledger/types.d.ts +2 -2
- package/dist/types/ledger/types.d.ts.map +1 -1
- package/dist/types/trezor/cardanoSigner.d.ts.map +1 -1
- package/dist/types/trezor/hypercoreSigner.d.ts +22 -0
- package/dist/types/trezor/hypercoreSigner.d.ts.map +1 -0
- package/dist/types/trezor/index.d.ts +3 -2
- package/dist/types/trezor/index.d.ts.map +1 -1
- package/dist/types/trezor/stellarSigner.d.ts +1 -1
- package/package.json +25 -13
- package/src/helpers/cardano.ts +112 -0
- package/src/keepkey/index.ts +14 -14
- package/src/ledger/clients/cardano.ts +204 -0
- package/src/ledger/clients/evm.ts +4 -0
- package/src/ledger/clients/stellar.ts +83 -0
- package/src/ledger/clients/ton.ts +282 -0
- package/src/ledger/clients/zcash.ts +16 -6
- package/src/ledger/helpers/getLedgerAddress.ts +16 -0
- package/src/ledger/helpers/getLedgerClient.ts +13 -0
- package/src/ledger/index.ts +102 -30
- package/src/ledger/types.ts +2 -0
- package/src/trezor/cardanoSigner.ts +24 -80
- package/src/trezor/hypercoreSigner.ts +96 -0
- package/src/trezor/index.ts +153 -75
- package/dist/chunk-09e51wma.js +0 -4
- package/dist/chunk-5p3ttw6y.js +0 -4
- package/dist/chunk-gr3eswf1.js +0 -4
- package/dist/chunk-qjq7gvyx.js +0 -4
- package/dist/chunk-qjq7gvyx.js.map +0 -10
- package/dist/chunk-xx7cwpzq.js +0 -4
|
@@ -120,7 +120,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
120
120
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
121
121
|
SOFTWARE.
|
|
122
122
|
|
|
123
|
-
## @ledgerhq/context-module@2.
|
|
123
|
+
## @ledgerhq/context-module@2.8.0 (Apache-2.0)
|
|
124
124
|
|
|
125
125
|
Apache License
|
|
126
126
|
Version 2.0, January 2004
|
|
@@ -528,7 +528,7 @@ Apache License
|
|
|
528
528
|
See the License for the specific language governing permissions and
|
|
529
529
|
limitations under the License.
|
|
530
530
|
|
|
531
|
-
## @ledgerhq/device-management-kit@1.
|
|
531
|
+
## @ledgerhq/device-management-kit@1.11.0 (Apache-2.0)
|
|
532
532
|
|
|
533
533
|
Apache License
|
|
534
534
|
Version 2.0, January 2004
|
|
@@ -1140,7 +1140,7 @@ Apache License
|
|
|
1140
1140
|
See the License for the specific language governing permissions and
|
|
1141
1141
|
limitations under the License.
|
|
1142
1142
|
|
|
1143
|
-
## @ledgerhq/device-signer-kit-ethereum@1.18.
|
|
1143
|
+
## @ledgerhq/device-signer-kit-ethereum@1.18.2 (Apache-2.0)
|
|
1144
1144
|
|
|
1145
1145
|
Apache License
|
|
1146
1146
|
Version 2.0, January 2004
|
|
@@ -1344,7 +1344,7 @@ Apache License
|
|
|
1344
1344
|
See the License for the specific language governing permissions and
|
|
1345
1345
|
limitations under the License.
|
|
1346
1346
|
|
|
1347
|
-
## @ledgerhq/device-signer-kit-zcash@0.
|
|
1347
|
+
## @ledgerhq/device-signer-kit-zcash@0.9.0 (Apache-2.0)
|
|
1348
1348
|
|
|
1349
1349
|
Apache License
|
|
1350
1350
|
Version 2.0, January 2004
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_a as A,eb as y,gb as B,lb as F,ob as G}from"./chunk-wm89desc.js";class J{static PADDING=2147483648;static splitPath(b){let f=[];return b.split("/").forEach((w)=>{let z=parseInt(w,10);if(isNaN(z))throw Error("invalid number provided");w.length>1&&w[w.length-1]==="'"&&(z+=this.PADDING),f.push(z)}),f}}class K{constructor(b,f,w=B.isSuccessResponse){this._errors=b,this._errorFactory=f,this._isSuccessResponse=w}getError(b){let f=new A(b).encodeToHexaString(b.statusCode);if(F(f,this._errors))return y({error:this._errorFactory({...this._errors[f],errorCode:f})});if(!this._isSuccessResponse(b))return y({error:G.handle(b)})}}function $(){let b="";for(let f=0;f<6;f++)b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(Math.random()*62));return`${b}-${Date.now()}`}export{K as Da,J as Ea,$ as Fa};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
//# debugId=ABA3388AC254016864756E2164756E21
|
|
4
|
+
//# sourceMappingURL=chunk-0k1b2ddn.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../node_modules/.bun/@ledgerhq+signer-utils@1.3.0+
|
|
3
|
+
"sources": ["../../../node_modules/.bun/@ledgerhq+signer-utils@1.3.0+7c70d570025ef4d2/node_modules/@ledgerhq/signer-utils/lib/esm/utils/DerivationPathUtils.js", "../../../node_modules/.bun/@ledgerhq+signer-utils@1.3.0+7c70d570025ef4d2/node_modules/@ledgerhq/signer-utils/lib/esm/utils/CommandErrorHelper.js", "../../../node_modules/.bun/@ledgerhq+signer-utils@1.3.0+7c70d570025ef4d2/node_modules/@ledgerhq/signer-utils/lib/esm/utils/SignatureIdUtils.js"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"class a{static PADDING=2147483648;static splitPath(i){const s=[];return i.split(\"/\").forEach(t=>{let r=parseInt(t,10);if(isNaN(r))throw new Error(\"invalid number provided\");t.length>1&&t[t.length-1]===\"'\"&&(r+=this.PADDING),s.push(r)}),s}}export{a as DerivationPathUtils};\n//# sourceMappingURL=DerivationPathUtils.js.map\n",
|
|
6
6
|
"import{ApduParser as n,CommandResultFactory as o,CommandUtils as t,GlobalCommandErrorHandler as d,isCommandErrorCode as a}from\"@ledgerhq/device-management-kit\";class C{constructor(r,s,e=t.isSuccessResponse){this._errors=r;this._errorFactory=s;this._isSuccessResponse=e}getError(r){const e=new n(r).encodeToHexaString(r.statusCode);if(a(e,this._errors))return o({error:this._errorFactory({...this._errors[e],errorCode:e})});if(!this._isSuccessResponse(r))return o({error:d.handle(r)})}}export{C as CommandErrorHelper};\n//# sourceMappingURL=CommandErrorHelper.js.map\n",
|
|
7
7
|
"const r=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";function e(){let t=\"\";for(let n=0;n<6;n++)t+=r.charAt(Math.floor(Math.random()*r.length));return`${t}-${Date.now()}`}export{e as generateSignatureId};\n//# sourceMappingURL=SignatureIdUtils.js.map\n"
|
|
8
8
|
],
|
|
9
9
|
"mappings": "yEAAA,MAAM,CAAC,OAAQ,SAAQ,iBAAkB,UAAS,CAAC,EAAE,CAAC,IAAM,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,EAAE,QAAQ,KAAG,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC,EAAE,MAAU,MAAM,yBAAyB,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,OAAO,KAAK,MAAM,GAAG,KAAK,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,CCA9E,MAAM,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,EAAE,kBAAkB,CAAC,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAM,EAAE,IAAI,EAAE,CAAC,EAAE,mBAAmB,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,OAAO,EAAE,OAAO,EAAE,CAAC,MAAM,KAAK,cAAc,IAAI,KAAK,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,mBAAmB,CAAC,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CCA3Z,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,GAA3G,iEAAgH,OAAO,KAAK,MAAM,KAAK,OAAO,EAAE,EAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,KAAK,IAAI",
|
|
10
|
-
"debugId": "
|
|
10
|
+
"debugId": "ABA3388AC254016864756E2164756E21",
|
|
11
11
|
"names": []
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{d as
|
|
1
|
+
import{ce as s}from"./chunk-9a9gn4pb.js";async function d({chain:t,indexes:a,publicKey:i,tx:n}){let{getMissingSpendingMetadata:e,getNetworkForChain:o}=await import("@swapkit/toolboxes/utxo");for(let{index:r,...p}of e({chain:t,indexes:a,network:o(t),publicKey:i,tx:n}))n.updateInput(r,p)}
|
|
2
|
+
export{d as La};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
5
|
-
//# sourceMappingURL=chunk-
|
|
4
|
+
//# debugId=645ECF46AED46A0664756E2164756E21
|
|
5
|
+
//# sourceMappingURL=chunk-2tzsz8f3.js.map
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"import type { UTXOChain } from \"@swapkit/helpers\";\nimport type { Transaction } from \"@swapkit/utxo-signer\";\n\nexport async function applyMissingSpendingMetadata({\n chain,\n indexes,\n publicKey,\n tx,\n}: {\n chain: UTXOChain;\n indexes?: number[];\n publicKey: Uint8Array;\n tx: Transaction;\n}) {\n const { getMissingSpendingMetadata, getNetworkForChain } = await import(\"@swapkit/toolboxes/utxo\");\n\n for (const { index, ...metadata } of getMissingSpendingMetadata({\n chain,\n indexes,\n network: getNetworkForChain(chain),\n publicKey,\n tx,\n })) {\n tx.updateInput(index, metadata);\n }\n}\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": "yCAGA,eAAsB,CAA4B,EAChD,QACA,UACA,YACA,MAMC,CACD,IAAQ,6BAA4B,sBAAuB,KAAa,mCAExE,QAAa,WAAU,KAAc,EAA2B,CAC9D,QACA,UACA,QAAS,EAAmB,CAAK,EACjC,YACA,IACF,CAAC,EACC,EAAG,YAAY,EAAO,CAAQ",
|
|
8
|
-
"debugId": "
|
|
8
|
+
"debugId": "645ECF46AED46A0664756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$d as CQ,Xd as h0,Yd as EX,Zd as $X,_d as KX}from"./chunk-nhva847d.js";var WU={};$X(WU,{transcode:()=>wY,resolveObjectURL:()=>xY,kStringMaxLength:()=>qZ,kMaxLength:()=>rU,isUtf8:()=>NY,isAscii:()=>gY,default:()=>fY,constants:()=>VY,btoa:()=>ZY,atob:()=>QY,INSPECT_MAX_BYTES:()=>RZ,File:()=>YY,Buffer:()=>$0,Blob:()=>JY});function aQ(I){var O=I.length;if(O%4>0)throw Error("Invalid string. Length must be a multiple of 4");var W=I.indexOf("=");if(W===-1)W=O;var T=W===O?0:4-W%4;return[W,T]}function eQ(I,O){return(I+O)*3/4-O}function iQ(I){var O,W=aQ(I),T=W[0],H=W[1],L=new Uint8Array(eQ(T,H)),V=0,P=H>0?T-4:T,S;for(S=0;S<P;S+=4)O=PU[I.charCodeAt(S)]<<18|PU[I.charCodeAt(S+1)]<<12|PU[I.charCodeAt(S+2)]<<6|PU[I.charCodeAt(S+3)],L[V++]=O>>16&255,L[V++]=O>>8&255,L[V++]=O&255;if(H===2)O=PU[I.charCodeAt(S)]<<2|PU[I.charCodeAt(S+1)]>>4,L[V++]=O&255;if(H===1)O=PU[I.charCodeAt(S)]<<10|PU[I.charCodeAt(S+1)]<<4|PU[I.charCodeAt(S+2)]>>2,L[V++]=O>>8&255,L[V++]=O&255;return L}function UY(I){return jU[I>>18&63]+jU[I>>12&63]+jU[I>>6&63]+jU[I&63]}function XY(I,O,W){var T,H=[];for(var L=O;L<W;L+=3)T=(I[L]<<16&16711680)+(I[L+1]<<8&65280)+(I[L+2]&255),H.push(UY(T));return H.join("")}function AZ(I){var O,W=I.length,T=W%3,H=[],L=16383;for(var V=0,P=W-T;V<P;V+=L)H.push(XY(I,V,V+L>P?P:V+L));if(T===1)O=I[W-1],H.push(jU[O>>2]+jU[O<<4&63]+"==");else if(T===2)O=(I[W-2]<<8)+I[W-1],H.push(jU[O>>10]+jU[O>>4&63]+jU[O<<2&63]+"=");return H.join("")}function OX(I,O,W,T,H){var L,V,P=H*8-T-1,S=(1<<P)-1,E=S>>1,C=-7,D=W?H-1:0,z=W?-1:1,R=I[O+D];D+=z,L=R&(1<<-C)-1,R>>=-C,C+=P;for(;C>0;L=L*256+I[O+D],D+=z,C-=8);V=L&(1<<-C)-1,L>>=-C,C+=T;for(;C>0;V=V*256+I[O+D],D+=z,C-=8);if(L===0)L=1-E;else if(L===S)return V?NaN:(R?-1:1)*(1/0);else V=V+Math.pow(2,T),L=L-E;return(R?-1:1)*V*Math.pow(2,L-T)}function MZ(I,O,W,T,H,L){var V,P,S,E=L*8-H-1,C=(1<<E)-1,D=C>>1,z=H===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=T?0:L-1,q=T?1:-1,_=O<0||O===0&&1/O<0?1:0;if(O=Math.abs(O),isNaN(O)||O===1/0)P=isNaN(O)?1:0,V=C;else{if(V=Math.floor(Math.log(O)/Math.LN2),O*(S=Math.pow(2,-V))<1)V--,S*=2;if(V+D>=1)O+=z/S;else O+=z*Math.pow(2,1-D);if(O*S>=2)V++,S/=2;if(V+D>=C)P=0,V=C;else if(V+D>=1)P=(O*S-1)*Math.pow(2,H),V=V+D;else P=O*Math.pow(2,D-1)*Math.pow(2,H),V=0}for(;H>=8;I[W+R]=P&255,R+=q,P/=256,H-=8);V=V<<H|P,E+=H;for(;E>0;I[W+R]=V&255,R+=q,V/=256,E-=8);I[W+R-q]|=_*128}function BU(I){if(I>rU)throw RangeError('The value "'+I+'" is invalid for option "size"');let O=new Uint8Array(I);return Object.setPrototypeOf(O,$0.prototype),O}function pX(I,O,W){return class extends W{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}function $0(I,O,W){if(typeof I==="number"){if(typeof O==="string")throw TypeError('The "string" argument must be of type string. Received type number');return hX(I)}return SZ(I,O,W)}function SZ(I,O,W){if(typeof I==="string")return KY(I,O);if(ArrayBuffer.isView(I))return OY(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(vU(I,ArrayBuffer)||I&&vU(I.buffer,ArrayBuffer))return yX(I,O,W);if(typeof SharedArrayBuffer<"u"&&(vU(I,SharedArrayBuffer)||I&&vU(I.buffer,SharedArrayBuffer)))return yX(I,O,W);if(typeof I==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let T=I.valueOf&&I.valueOf();if(T!=null&&T!==I)return $0.from(T,O,W);let H=FY(I);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]==="function")return $0.from(I[Symbol.toPrimitive]("string"),O,W);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}function PZ(I){if(typeof I!=="number")throw TypeError('"size" argument must be of type number');else if(I<0)throw RangeError('The value "'+I+'" is invalid for option "size"')}function $Y(I,O,W){if(PZ(I),I<=0)return BU(I);if(O!==void 0)return typeof W==="string"?BU(I).fill(O,W):BU(I).fill(O);return BU(I)}function hX(I){return PZ(I),BU(I<0?0:uX(I)|0)}function KY(I,O){if(typeof O!=="string"||O==="")O="utf8";if(!$0.isEncoding(O))throw TypeError("Unknown encoding: "+O);let W=kZ(I,O)|0,T=BU(W),H=T.write(I,O);if(H!==W)T=T.slice(0,H);return T}function fX(I){let O=I.length<0?0:uX(I.length)|0,W=BU(O);for(let T=0;T<O;T+=1)W[T]=I[T]&255;return W}function OY(I){if(vU(I,Uint8Array)){let O=new Uint8Array(I);return yX(O.buffer,O.byteOffset,O.byteLength)}return fX(I)}function yX(I,O,W){if(O<0||I.byteLength<O)throw RangeError('"offset" is outside of buffer bounds');if(I.byteLength<O+(W||0))throw RangeError('"length" is outside of buffer bounds');let T;if(O===void 0&&W===void 0)T=new Uint8Array(I);else if(W===void 0)T=new Uint8Array(I,O);else T=new Uint8Array(I,O,W);return Object.setPrototypeOf(T,$0.prototype),T}function FY(I){if($0.isBuffer(I)){let O=uX(I.length)|0,W=BU(O);if(W.length===0)return W;return I.copy(W,0,0,O),W}if(I.length!==void 0){if(typeof I.length!=="number"||Number.isNaN(I.length))return BU(0);return fX(I)}if(I.type==="Buffer"&&Array.isArray(I.data))return fX(I.data)}function uX(I){if(I>=rU)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rU.toString(16)+" bytes");return I|0}function kZ(I,O){if($0.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||vU(I,ArrayBuffer))return I.byteLength;if(typeof I!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);let W=I.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&W===0)return 0;let H=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":return cX(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return fZ(I).length;default:if(H)return T?-1:cX(I).length;O=(""+O).toLowerCase(),H=!0}}function WY(I,O,W){let T=!1;if(O===void 0||O<0)O=0;if(O>this.length)return"";if(W===void 0||W>this.length)W=this.length;if(W<=0)return"";if(W>>>=0,O>>>=0,W<=O)return"";if(!I)I="utf8";while(!0)switch(I){case"hex":return RY(this,O,W);case"utf8":case"utf-8":return vZ(this,O,W);case"ascii":return LY(this,O,W);case"latin1":case"binary":return MY(this,O,W);case"base64":return CY(this,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qY(this,O,W);default:if(T)throw TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),T=!0}}function hU(I,O,W){let T=I[O];I[O]=I[W],I[W]=T}function jZ(I,O,W,T,H){if(I.length===0)return-1;if(typeof W==="string")T=W,W=0;else if(W>2147483647)W=2147483647;else if(W<-2147483648)W=-2147483648;if(W=+W,Number.isNaN(W))W=H?0:I.length-1;if(W<0)W=I.length+W;if(W>=I.length)if(H)return-1;else W=I.length-1;else if(W<0)if(H)W=0;else return-1;if(typeof O==="string")O=$0.from(O,T);if($0.isBuffer(O)){if(O.length===0)return-1;return CZ(I,O,W,T,H)}else if(typeof O==="number"){if(O=O&255,typeof Uint8Array.prototype.indexOf==="function")if(H)return Uint8Array.prototype.indexOf.call(I,O,W);else return Uint8Array.prototype.lastIndexOf.call(I,O,W);return CZ(I,[O],W,T,H)}throw TypeError("val must be string, number or Buffer")}function CZ(I,O,W,T,H){let L=1,V=I.length,P=O.length;if(T!==void 0){if(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le"){if(I.length<2||O.length<2)return-1;L=2,V/=2,P/=2,W/=2}}function S(C,D){if(L===1)return C[D];else return C.readUInt16BE(D*L)}let E;if(H){let C=-1;for(E=W;E<V;E++)if(S(I,E)===S(O,C===-1?0:E-C)){if(C===-1)C=E;if(E-C+1===P)return C*L}else{if(C!==-1)E-=E-C;C=-1}}else{if(W+P>V)W=V-P;for(E=W;E>=0;E--){let C=!0;for(let D=0;D<P;D++)if(S(I,E+D)!==S(O,D)){C=!1;break}if(C)return E}}return-1}function HY(I,O,W,T){W=Number(W)||0;let H=I.length-W;if(!T)T=H;else if(T=Number(T),T>H)T=H;let L=O.length;if(T>L/2)T=L/2;let V;for(V=0;V<T;++V){let P=parseInt(O.substr(V*2,2),16);if(Number.isNaN(P))return V;I[W+V]=P}return V}function DY(I,O,W,T){return FX(cX(O,I.length-W),I,W,T)}function TY(I,O,W,T){return FX(jY(O),I,W,T)}function AY(I,O,W,T){return FX(fZ(O),I,W,T)}function zY(I,O,W,T){return FX(vY(O,I.length-W),I,W,T)}function CY(I,O,W){if(O===0&&W===I.length)return AZ(I);else return AZ(I.slice(O,W))}function vZ(I,O,W){W=Math.min(I.length,W);let T=[],H=O;while(H<W){let L=I[H],V=null,P=L>239?4:L>223?3:L>191?2:1;if(H+P<=W){let S,E,C,D;switch(P){case 1:if(L<128)V=L;break;case 2:if(S=I[H+1],(S&192)===128){if(D=(L&31)<<6|S&63,D>127)V=D}break;case 3:if(S=I[H+1],E=I[H+2],(S&192)===128&&(E&192)===128){if(D=(L&15)<<12|(S&63)<<6|E&63,D>2047&&(D<55296||D>57343))V=D}break;case 4:if(S=I[H+1],E=I[H+2],C=I[H+3],(S&192)===128&&(E&192)===128&&(C&192)===128){if(D=(L&15)<<18|(S&63)<<12|(E&63)<<6|C&63,D>65535&&D<1114112)V=D}}}if(V===null)V=65533,P=1;else if(V>65535)V-=65536,T.push(V>>>10&1023|55296),V=56320|V&1023;T.push(V),H+=P}return EY(T)}function EY(I){let O=I.length;if(O<=EZ)return String.fromCharCode.apply(String,I);let W="",T=0;while(T<O)W+=String.fromCharCode.apply(String,I.slice(T,T+=EZ));return W}function LY(I,O,W){let T="";W=Math.min(I.length,W);for(let H=O;H<W;++H)T+=String.fromCharCode(I[H]&127);return T}function MY(I,O,W){let T="";W=Math.min(I.length,W);for(let H=O;H<W;++H)T+=String.fromCharCode(I[H]);return T}function RY(I,O,W){let T=I.length;if(!O||O<0)O=0;if(!W||W<0||W>T)W=T;let H="";for(let L=O;L<W;++L)H+=_Y[I[L]];return H}function qY(I,O,W){let T=I.slice(O,W),H="";for(let L=0;L<T.length-1;L+=2)H+=String.fromCharCode(T[L]+T[L+1]*256);return H}function FU(I,O,W){if(I%1!==0||I<0)throw RangeError("offset is not uint");if(I+O>W)throw RangeError("Trying to access beyond buffer length")}function LU(I,O,W,T,H,L){if(!$0.isBuffer(I))throw TypeError('"buffer" argument must be a Buffer instance');if(O>H||O<L)throw RangeError('"value" argument is out of bounds');if(W+T>I.length)throw RangeError("Index out of range")}function _Z(I,O,W,T,H){wZ(O,T,H,I,W,7);let L=Number(O&BigInt(4294967295));I[W++]=L,L=L>>8,I[W++]=L,L=L>>8,I[W++]=L,L=L>>8,I[W++]=L;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[W++]=V,V=V>>8,I[W++]=V,V=V>>8,I[W++]=V,V=V>>8,I[W++]=V,W}function BZ(I,O,W,T,H){wZ(O,T,H,I,W,7);let L=Number(O&BigInt(4294967295));I[W+7]=L,L=L>>8,I[W+6]=L,L=L>>8,I[W+5]=L,L=L>>8,I[W+4]=L;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[W+3]=V,V=V>>8,I[W+2]=V,V=V>>8,I[W+1]=V,V=V>>8,I[W]=V,W+8}function xZ(I,O,W,T,H,L){if(W+T>I.length)throw RangeError("Index out of range");if(W<0)throw RangeError("Index out of range")}function NZ(I,O,W,T,H){if(O=+O,W=W>>>0,!H)xZ(I,O,W,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return MZ(I,O,W,T,23,4),W+4}function gZ(I,O,W,T,H){if(O=+O,W=W>>>0,!H)xZ(I,O,W,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return MZ(I,O,W,T,52,8),W+8}function LZ(I){let O="",W=I.length,T=I[0]==="-"?1:0;for(;W>=T+4;W-=3)O=`_${I.slice(W-3,W)}${O}`;return`${I.slice(0,W)}${O}`}function SY(I,O,W){if(oU(O,"offset"),I[O]===void 0||I[O+W]===void 0)aU(O,I.length-(W+1))}function wZ(I,O,W,T,H,L){if(I>W||I<O){let V=typeof O==="bigint"?"n":"",P;if(L>3)if(O===0||O===BigInt(0))P=`>= 0${V} and < 2${V} ** ${(L+1)*8}${V}`;else P=`>= -(2${V} ** ${(L+1)*8-1}${V}) and < 2 ** ${(L+1)*8-1}${V}`;else P=`>= ${O}${V} and <= ${W}${V}`;throw new wX("value",P,I)}SY(T,H,L)}function oU(I,O){if(typeof I!=="number")throw new IY(O,"number",I)}function aU(I,O,W){if(Math.floor(I)!==I)throw oU(I,W),new wX(W||"offset","an integer",I);if(O<0)throw new GY;throw new wX(W||"offset",`>= ${W?1:0} and <= ${O}`,I)}function kY(I){if(I=I.split("=")[0],I=I.trim().replace(PY,""),I.length<2)return"";while(I.length%4!==0)I=I+"=";return I}function cX(I,O){O=O||1/0;let W,T=I.length,H=null,L=[];for(let V=0;V<T;++V){if(W=I.charCodeAt(V),W>55295&&W<57344){if(!H){if(W>56319){if((O-=3)>-1)L.push(239,191,189);continue}else if(V+1===T){if((O-=3)>-1)L.push(239,191,189);continue}H=W;continue}if(W<56320){if((O-=3)>-1)L.push(239,191,189);H=W;continue}W=(H-55296<<10|W-56320)+65536}else if(H){if((O-=3)>-1)L.push(239,191,189)}if(H=null,W<128){if((O-=1)<0)break;L.push(W)}else if(W<2048){if((O-=2)<0)break;L.push(W>>6|192,W&63|128)}else if(W<65536){if((O-=3)<0)break;L.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if((O-=4)<0)break;L.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw Error("Invalid code point")}return L}function jY(I){let O=[];for(let W=0;W<I.length;++W)O.push(I.charCodeAt(W)&255);return O}function vY(I,O){let W,T,H,L=[];for(let V=0;V<I.length;++V){if((O-=2)<0)break;W=I.charCodeAt(V),T=W>>8,H=W%256,L.push(H),L.push(T)}return L}function fZ(I){return iQ(kY(I))}function FX(I,O,W,T){let H;for(H=0;H<T;++H){if(H+W>=O.length||H>=I.length)break;O[H+W]=I[H]}return H}function vU(I,O){return I instanceof O||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===O.name}function wU(I){return typeof BigInt>"u"?BY:I}function BY(){throw Error("BigInt not supported")}function bX(I){return()=>{throw Error(I+" is not implemented for node:buffer browser polyfill")}}var jU,PU,gX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pU,TZ,zZ,RZ=50,rU=2147483647,qZ=536870888,ZY,QY,YY,JY,VY,GY,IY,wX,EZ=4096,PY,_Y,xY,NY,gY=(I)=>{for(let O of I)if(O.charCodeAt(0)>127)return!1;return!0},wY,fY;var HU=KX(()=>{jU=[],PU=[];for(pU=0,TZ=gX.length;pU<TZ;++pU)jU[pU]=gX[pU],PU[gX.charCodeAt(pU)]=pU;PU[45]=62;PU[95]=63;zZ=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,ZY=globalThis.btoa,QY=globalThis.atob,YY=globalThis.File,JY=globalThis.Blob,VY={MAX_LENGTH:rU,MAX_STRING_LENGTH:qZ};GY=pX("ERR_BUFFER_OUT_OF_BOUNDS",function(I){if(I)return`${I} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),IY=pX("ERR_INVALID_ARG_TYPE",function(I,O){return`The "${I}" argument must be of type number. Received type ${typeof O}`},TypeError),wX=pX("ERR_OUT_OF_RANGE",function(I,O,W){let T=`The value of "${I}" is out of range.`,H=W;if(Number.isInteger(W)&&Math.abs(W)>4294967296)H=LZ(String(W));else if(typeof W==="bigint"){if(H=String(W),W>BigInt(2)**BigInt(32)||W<-(BigInt(2)**BigInt(32)))H=LZ(H);H+="n"}return T+=` It must be ${O}. Received ${H}`,T},RangeError);Object.defineProperty($0.prototype,"parent",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.buffer}});Object.defineProperty($0.prototype,"offset",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.byteOffset}});$0.poolSize=8192;$0.from=function(I,O,W){return SZ(I,O,W)};Object.setPrototypeOf($0.prototype,Uint8Array.prototype);Object.setPrototypeOf($0,Uint8Array);$0.alloc=function(I,O,W){return $Y(I,O,W)};$0.allocUnsafe=function(I){return hX(I)};$0.allocUnsafeSlow=function(I){return hX(I)};$0.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==$0.prototype};$0.compare=function(I,O){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(vU(O,Uint8Array))O=$0.from(O,O.offset,O.byteLength);if(!$0.isBuffer(I)||!$0.isBuffer(O))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===O)return 0;let W=I.length,T=O.length;for(let H=0,L=Math.min(W,T);H<L;++H)if(I[H]!==O[H]){W=I[H],T=O[H];break}if(W<T)return-1;if(T<W)return 1;return 0};$0.isEncoding=function(I){switch(String(I).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};$0.concat=function(I,O){if(!Array.isArray(I))throw TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return $0.alloc(0);let W;if(O===void 0){O=0;for(W=0;W<I.length;++W)O+=I[W].length}let T=$0.allocUnsafe(O),H=0;for(W=0;W<I.length;++W){let L=I[W];if(vU(L,Uint8Array))if(H+L.length>T.length){if(!$0.isBuffer(L))L=$0.from(L);L.copy(T,H)}else Uint8Array.prototype.set.call(T,L,H);else if(!$0.isBuffer(L))throw TypeError('"list" argument must be an Array of Buffers');else L.copy(T,H);H+=L.length}return T};$0.byteLength=kZ;$0.prototype._isBuffer=!0;$0.prototype.swap16=function(){let I=this.length;if(I%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<I;O+=2)hU(this,O,O+1);return this};$0.prototype.swap32=function(){let I=this.length;if(I%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<I;O+=4)hU(this,O,O+3),hU(this,O+1,O+2);return this};$0.prototype.swap64=function(){let I=this.length;if(I%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<I;O+=8)hU(this,O,O+7),hU(this,O+1,O+6),hU(this,O+2,O+5),hU(this,O+3,O+4);return this};$0.prototype.toString=function(){let I=this.length;if(I===0)return"";if(arguments.length===0)return vZ(this,0,I);return WY.apply(this,arguments)};$0.prototype.toLocaleString=$0.prototype.toString;$0.prototype.equals=function(I){if(!$0.isBuffer(I))throw TypeError("Argument must be a Buffer");if(this===I)return!0;return $0.compare(this,I)===0};$0.prototype.inspect=function(){let I="",O=RZ;if(I=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O)I+=" ... ";return"<Buffer "+I+">"};if(zZ)$0.prototype[zZ]=$0.prototype.inspect;$0.prototype.compare=function(I,O,W,T,H){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(!$0.isBuffer(I))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(O===void 0)O=0;if(W===void 0)W=I?I.length:0;if(T===void 0)T=0;if(H===void 0)H=this.length;if(O<0||W>I.length||T<0||H>this.length)throw RangeError("out of range index");if(T>=H&&O>=W)return 0;if(T>=H)return-1;if(O>=W)return 1;if(O>>>=0,W>>>=0,T>>>=0,H>>>=0,this===I)return 0;let L=H-T,V=W-O,P=Math.min(L,V),S=this.slice(T,H),E=I.slice(O,W);for(let C=0;C<P;++C)if(S[C]!==E[C]){L=S[C],V=E[C];break}if(L<V)return-1;if(V<L)return 1;return 0};$0.prototype.includes=function(I,O,W){return this.indexOf(I,O,W)!==-1};$0.prototype.indexOf=function(I,O,W){return jZ(this,I,O,W,!0)};$0.prototype.lastIndexOf=function(I,O,W){return jZ(this,I,O,W,!1)};$0.prototype.write=function(I,O,W,T){if(O===void 0)T="utf8",W=this.length,O=0;else if(W===void 0&&typeof O==="string")T=O,W=this.length,O=0;else if(isFinite(O))if(O=O>>>0,isFinite(W)){if(W=W>>>0,T===void 0)T="utf8"}else T=W,W=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let H=this.length-O;if(W===void 0||W>H)W=H;if(I.length>0&&(W<0||O<0)||O>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!T)T="utf8";let L=!1;for(;;)switch(T){case"hex":return HY(this,I,O,W);case"utf8":case"utf-8":return DY(this,I,O,W);case"ascii":case"latin1":case"binary":return TY(this,I,O,W);case"base64":return AY(this,I,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zY(this,I,O,W);default:if(L)throw TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),L=!0}};$0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};$0.prototype.slice=function(I,O){let W=this.length;if(I=~~I,O=O===void 0?W:~~O,I<0){if(I+=W,I<0)I=0}else if(I>W)I=W;if(O<0){if(O+=W,O<0)O=0}else if(O>W)O=W;if(O<I)O=I;let T=this.subarray(I,O);return Object.setPrototypeOf(T,$0.prototype),T};$0.prototype.readUintLE=$0.prototype.readUIntLE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I],H=1,L=0;while(++L<O&&(H*=256))T+=this[I+L]*H;return T};$0.prototype.readUintBE=$0.prototype.readUIntBE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I+--O],H=1;while(O>0&&(H*=256))T+=this[I+--O]*H;return T};$0.prototype.readUint8=$0.prototype.readUInt8=function(I,O){if(I=I>>>0,!O)FU(I,1,this.length);return this[I]};$0.prototype.readUint16LE=$0.prototype.readUInt16LE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);return this[I]|this[I+1]<<8};$0.prototype.readUint16BE=$0.prototype.readUInt16BE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);return this[I]<<8|this[I+1]};$0.prototype.readUint32LE=$0.prototype.readUInt32LE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216};$0.prototype.readUint32BE=$0.prototype.readUInt32BE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])};$0.prototype.readBigUInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=O+this[++I]*256+this[++I]*65536+this[++I]*16777216,H=this[++I]+this[++I]*256+this[++I]*65536+W*16777216;return BigInt(T)+(BigInt(H)<<BigInt(32))});$0.prototype.readBigUInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=O*16777216+this[++I]*65536+this[++I]*256+this[++I],H=this[++I]*16777216+this[++I]*65536+this[++I]*256+W;return(BigInt(T)<<BigInt(32))+BigInt(H)});$0.prototype.readIntLE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I],H=1,L=0;while(++L<O&&(H*=256))T+=this[I+L]*H;if(H*=128,T>=H)T-=Math.pow(2,8*O);return T};$0.prototype.readIntBE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=O,H=1,L=this[I+--T];while(T>0&&(H*=256))L+=this[I+--T]*H;if(H*=128,L>=H)L-=Math.pow(2,8*O);return L};$0.prototype.readInt8=function(I,O){if(I=I>>>0,!O)FU(I,1,this.length);if(!(this[I]&128))return this[I];return(255-this[I]+1)*-1};$0.prototype.readInt16LE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);let W=this[I]|this[I+1]<<8;return W&32768?W|4294901760:W};$0.prototype.readInt16BE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);let W=this[I+1]|this[I]<<8;return W&32768?W|4294901760:W};$0.prototype.readInt32LE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24};$0.prototype.readInt32BE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]};$0.prototype.readBigInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=this[I+4]+this[I+5]*256+this[I+6]*65536+(W<<24);return(BigInt(T)<<BigInt(32))+BigInt(O+this[++I]*256+this[++I]*65536+this[++I]*16777216)});$0.prototype.readBigInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=(O<<24)+this[++I]*65536+this[++I]*256+this[++I];return(BigInt(T)<<BigInt(32))+BigInt(this[++I]*16777216+this[++I]*65536+this[++I]*256+W)});$0.prototype.readFloatLE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return OX(this,I,!0,23,4)};$0.prototype.readFloatBE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return OX(this,I,!1,23,4)};$0.prototype.readDoubleLE=function(I,O){if(I=I>>>0,!O)FU(I,8,this.length);return OX(this,I,!0,52,8)};$0.prototype.readDoubleBE=function(I,O){if(I=I>>>0,!O)FU(I,8,this.length);return OX(this,I,!1,52,8)};$0.prototype.writeUintLE=$0.prototype.writeUIntLE=function(I,O,W,T){if(I=+I,O=O>>>0,W=W>>>0,!T){let V=Math.pow(2,8*W)-1;LU(this,I,O,W,V,0)}let H=1,L=0;this[O]=I&255;while(++L<W&&(H*=256))this[O+L]=I/H&255;return O+W};$0.prototype.writeUintBE=$0.prototype.writeUIntBE=function(I,O,W,T){if(I=+I,O=O>>>0,W=W>>>0,!T){let V=Math.pow(2,8*W)-1;LU(this,I,O,W,V,0)}let H=W-1,L=1;this[O+H]=I&255;while(--H>=0&&(L*=256))this[O+H]=I/L&255;return O+W};$0.prototype.writeUint8=$0.prototype.writeUInt8=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,1,255,0);return this[O]=I&255,O+1};$0.prototype.writeUint16LE=$0.prototype.writeUInt16LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,65535,0);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeUint16BE=$0.prototype.writeUInt16BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,65535,0);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeUint32LE=$0.prototype.writeUInt32LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,4294967295,0);return this[O+3]=I>>>24,this[O+2]=I>>>16,this[O+1]=I>>>8,this[O]=I&255,O+4};$0.prototype.writeUint32BE=$0.prototype.writeUInt32BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,4294967295,0);return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigUInt64LE=wU(function(I,O=0){return _Z(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeBigUInt64BE=wU(function(I,O=0){return BZ(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeIntLE=function(I,O,W,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*W-1);LU(this,I,O,W,P-1,-P)}let H=0,L=1,V=0;this[O]=I&255;while(++H<W&&(L*=256)){if(I<0&&V===0&&this[O+H-1]!==0)V=1;this[O+H]=(I/L>>0)-V&255}return O+W};$0.prototype.writeIntBE=function(I,O,W,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*W-1);LU(this,I,O,W,P-1,-P)}let H=W-1,L=1,V=0;this[O+H]=I&255;while(--H>=0&&(L*=256)){if(I<0&&V===0&&this[O+H+1]!==0)V=1;this[O+H]=(I/L>>0)-V&255}return O+W};$0.prototype.writeInt8=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,1,127,-128);if(I<0)I=255+I+1;return this[O]=I&255,O+1};$0.prototype.writeInt16LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,32767,-32768);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeInt16BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,32767,-32768);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeInt32LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,2147483647,-2147483648);return this[O]=I&255,this[O+1]=I>>>8,this[O+2]=I>>>16,this[O+3]=I>>>24,O+4};$0.prototype.writeInt32BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,2147483647,-2147483648);if(I<0)I=4294967295+I+1;return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigInt64LE=wU(function(I,O=0){return _Z(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeBigInt64BE=wU(function(I,O=0){return BZ(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeFloatLE=function(I,O,W){return NZ(this,I,O,!0,W)};$0.prototype.writeFloatBE=function(I,O,W){return NZ(this,I,O,!1,W)};$0.prototype.writeDoubleLE=function(I,O,W){return gZ(this,I,O,!0,W)};$0.prototype.writeDoubleBE=function(I,O,W){return gZ(this,I,O,!1,W)};$0.prototype.copy=function(I,O,W,T){if(!$0.isBuffer(I))throw TypeError("argument should be a Buffer");if(!W)W=0;if(!T&&T!==0)T=this.length;if(O>=I.length)O=I.length;if(!O)O=0;if(T>0&&T<W)T=W;if(T===W)return 0;if(I.length===0||this.length===0)return 0;if(O<0)throw RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw RangeError("Index out of range");if(T<0)throw RangeError("sourceEnd out of bounds");if(T>this.length)T=this.length;if(I.length-O<T-W)T=I.length-O+W;let H=T-W;if(this===I&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(O,W,T);else Uint8Array.prototype.set.call(I,this.subarray(W,T),O);return H};$0.prototype.fill=function(I,O,W,T){if(typeof I==="string"){if(typeof O==="string")T=O,O=0,W=this.length;else if(typeof W==="string")T=W,W=this.length;if(T!==void 0&&typeof T!=="string")throw TypeError("encoding must be a string");if(typeof T==="string"&&!$0.isEncoding(T))throw TypeError("Unknown encoding: "+T);if(I.length===1){let L=I.charCodeAt(0);if(T==="utf8"&&L<128||T==="latin1")I=L}}else if(typeof I==="number")I=I&255;else if(typeof I==="boolean")I=Number(I);if(O<0||this.length<O||this.length<W)throw RangeError("Out of range index");if(W<=O)return this;if(O=O>>>0,W=W===void 0?this.length:W>>>0,!I)I=0;let H;if(typeof I==="number")for(H=O;H<W;++H)this[H]=I;else{let L=$0.isBuffer(I)?I:$0.from(I,T),V=L.length;if(V===0)throw TypeError('The value "'+I+'" is invalid for argument "value"');for(H=0;H<W-O;++H)this[H+O]=L[H%V]}return this};PY=/[^+/0-9A-Za-z-_]/g;_Y=function(){let I=Array(256);for(let O=0;O<16;++O){let W=O*16;for(let T=0;T<16;++T)I[W+T]="0123456789abcdef"[O]+"0123456789abcdef"[T]}return I}();xY=bX("resolveObjectURL"),NY=bX("isUtf8"),wY=bX("transcode"),fY=$0});var nZ={};$X(nZ,{types:()=>nY,promisify:()=>bZ,log:()=>pZ,isUndefined:()=>nU,isSymbol:()=>sY,isString:()=>zX,isRegExp:()=>WX,isPrimitive:()=>tY,isObject:()=>mU,isNumber:()=>cZ,isNullOrUndefined:()=>mY,isNull:()=>AX,isFunction:()=>DX,isError:()=>HX,isDate:()=>nX,isBuffer:()=>rY,isBoolean:()=>sX,isArray:()=>yZ,inspect:()=>uU,inherits:()=>hZ,format:()=>mX,deprecate:()=>cY,default:()=>iY,debuglog:()=>pY,callbackifyOnRejected:()=>aX,callbackify:()=>lZ,_extend:()=>rX,TextEncoder:()=>dZ,TextDecoder:()=>oZ});function mX(I,...O){if(!zX(I)){var W=[I];for(var T=0;T<O.length;T++)W.push(uU(O[T]));return W.join(" ")}var T=0,H=O.length,L=String(I).replace(yY,function(P){if(P==="%%")return"%";if(T>=H)return P;switch(P){case"%s":return String(O[T++]);case"%d":return Number(O[T++]);case"%j":try{return JSON.stringify(O[T++])}catch(S){return"[Circular]"}default:return P}});for(var V=O[T];T<H;V=O[++T])if(AX(V)||!mU(V))L+=" "+V;else L+=" "+uU(V);return L}function cY(I,O){if(typeof process>"u"||process?.noDeprecation===!0)return I;var W=!1;function T(...H){if(!W){if(process.throwDeprecation)throw Error(O);else if(process.traceDeprecation)console.trace(O);else console.error(O);W=!0}return I.apply(this,...H)}return T}function hY(I,O){var W=uU.styles[O];if(W)return"\x1B["+uU.colors[W][0]+"m"+I+"\x1B["+uU.colors[W][1]+"m";else return I}function uY(I,O){return I}function bY(I){var O={};return I.forEach(function(W,T){O[W]=!0}),O}function TX(I,O,W){if(I.customInspect&&O&&DX(O.inspect)&&O.inspect!==uU&&!(O.constructor&&O.constructor.prototype===O)){var T=O.inspect(W,I);if(!zX(T))T=TX(I,T,W);return T}var H=lY(I,O);if(H)return H;var L=Object.keys(O),V=bY(L);if(I.showHidden)L=Object.getOwnPropertyNames(O);if(HX(O)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return lX(O);if(L.length===0){if(DX(O)){var P=O.name?": "+O.name:"";return I.stylize("[Function"+P+"]","special")}if(WX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");if(nX(O))return I.stylize(Date.prototype.toString.call(O),"date");if(HX(O))return lX(O)}var S="",E=!1,C=["{","}"];if(yZ(O))E=!0,C=["[","]"];if(DX(O)){var D=O.name?": "+O.name:"";S=" [Function"+D+"]"}if(WX(O))S=" "+RegExp.prototype.toString.call(O);if(nX(O))S=" "+Date.prototype.toUTCString.call(O);if(HX(O))S=" "+lX(O);if(L.length===0&&(!E||O.length==0))return C[0]+S+C[1];if(W<0)if(WX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");else return I.stylize("[Object]","special");I.seen.push(O);var z;if(E)z=dY(I,O,W,V,L);else z=L.map(function(R){return oX(I,O,W,V,R,E)});return I.seen.pop(),oY(z,S,C)}function lY(I,O){if(nU(O))return I.stylize("undefined","undefined");if(zX(O)){var W="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(W,"string")}if(cZ(O))return I.stylize(""+O,"number");if(sX(O))return I.stylize(""+O,"boolean");if(AX(O))return I.stylize("null","null")}function lX(I){return"["+Error.prototype.toString.call(I)+"]"}function dY(I,O,W,T,H){var L=[];for(var V=0,P=O.length;V<P;++V)if(uZ(O,String(V)))L.push(oX(I,O,W,T,String(V),!0));else L.push("");return H.forEach(function(S){if(!S.match(/^\d+$/))L.push(oX(I,O,W,T,S,!0))}),L}function oX(I,O,W,T,H,L){var V,P,S;if(S=Object.getOwnPropertyDescriptor(O,H)||{value:O[H]},S.get)if(S.set)P=I.stylize("[Getter/Setter]","special");else P=I.stylize("[Getter]","special");else if(S.set)P=I.stylize("[Setter]","special");if(!uZ(T,H))V="["+H+"]";if(!P)if(I.seen.indexOf(S.value)<0){if(AX(W))P=TX(I,S.value,null);else P=TX(I,S.value,W-1);if(P.indexOf(`
|
|
1
|
+
import{$d as EX,_d as h0,ae as $X,be as KX,ce as CQ}from"./chunk-9a9gn4pb.js";var WU={};$X(WU,{transcode:()=>wY,resolveObjectURL:()=>xY,kStringMaxLength:()=>qZ,kMaxLength:()=>rU,isUtf8:()=>NY,isAscii:()=>gY,default:()=>fY,constants:()=>VY,btoa:()=>ZY,atob:()=>QY,INSPECT_MAX_BYTES:()=>RZ,File:()=>YY,Buffer:()=>$0,Blob:()=>JY});function aQ(I){var O=I.length;if(O%4>0)throw Error("Invalid string. Length must be a multiple of 4");var W=I.indexOf("=");if(W===-1)W=O;var T=W===O?0:4-W%4;return[W,T]}function eQ(I,O){return(I+O)*3/4-O}function iQ(I){var O,W=aQ(I),T=W[0],H=W[1],L=new Uint8Array(eQ(T,H)),V=0,P=H>0?T-4:T,S;for(S=0;S<P;S+=4)O=PU[I.charCodeAt(S)]<<18|PU[I.charCodeAt(S+1)]<<12|PU[I.charCodeAt(S+2)]<<6|PU[I.charCodeAt(S+3)],L[V++]=O>>16&255,L[V++]=O>>8&255,L[V++]=O&255;if(H===2)O=PU[I.charCodeAt(S)]<<2|PU[I.charCodeAt(S+1)]>>4,L[V++]=O&255;if(H===1)O=PU[I.charCodeAt(S)]<<10|PU[I.charCodeAt(S+1)]<<4|PU[I.charCodeAt(S+2)]>>2,L[V++]=O>>8&255,L[V++]=O&255;return L}function UY(I){return jU[I>>18&63]+jU[I>>12&63]+jU[I>>6&63]+jU[I&63]}function XY(I,O,W){var T,H=[];for(var L=O;L<W;L+=3)T=(I[L]<<16&16711680)+(I[L+1]<<8&65280)+(I[L+2]&255),H.push(UY(T));return H.join("")}function AZ(I){var O,W=I.length,T=W%3,H=[],L=16383;for(var V=0,P=W-T;V<P;V+=L)H.push(XY(I,V,V+L>P?P:V+L));if(T===1)O=I[W-1],H.push(jU[O>>2]+jU[O<<4&63]+"==");else if(T===2)O=(I[W-2]<<8)+I[W-1],H.push(jU[O>>10]+jU[O>>4&63]+jU[O<<2&63]+"=");return H.join("")}function OX(I,O,W,T,H){var L,V,P=H*8-T-1,S=(1<<P)-1,E=S>>1,C=-7,D=W?H-1:0,z=W?-1:1,R=I[O+D];D+=z,L=R&(1<<-C)-1,R>>=-C,C+=P;for(;C>0;L=L*256+I[O+D],D+=z,C-=8);V=L&(1<<-C)-1,L>>=-C,C+=T;for(;C>0;V=V*256+I[O+D],D+=z,C-=8);if(L===0)L=1-E;else if(L===S)return V?NaN:(R?-1:1)*(1/0);else V=V+Math.pow(2,T),L=L-E;return(R?-1:1)*V*Math.pow(2,L-T)}function MZ(I,O,W,T,H,L){var V,P,S,E=L*8-H-1,C=(1<<E)-1,D=C>>1,z=H===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=T?0:L-1,q=T?1:-1,_=O<0||O===0&&1/O<0?1:0;if(O=Math.abs(O),isNaN(O)||O===1/0)P=isNaN(O)?1:0,V=C;else{if(V=Math.floor(Math.log(O)/Math.LN2),O*(S=Math.pow(2,-V))<1)V--,S*=2;if(V+D>=1)O+=z/S;else O+=z*Math.pow(2,1-D);if(O*S>=2)V++,S/=2;if(V+D>=C)P=0,V=C;else if(V+D>=1)P=(O*S-1)*Math.pow(2,H),V=V+D;else P=O*Math.pow(2,D-1)*Math.pow(2,H),V=0}for(;H>=8;I[W+R]=P&255,R+=q,P/=256,H-=8);V=V<<H|P,E+=H;for(;E>0;I[W+R]=V&255,R+=q,V/=256,E-=8);I[W+R-q]|=_*128}function BU(I){if(I>rU)throw RangeError('The value "'+I+'" is invalid for option "size"');let O=new Uint8Array(I);return Object.setPrototypeOf(O,$0.prototype),O}function pX(I,O,W){return class extends W{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}function $0(I,O,W){if(typeof I==="number"){if(typeof O==="string")throw TypeError('The "string" argument must be of type string. Received type number');return hX(I)}return SZ(I,O,W)}function SZ(I,O,W){if(typeof I==="string")return KY(I,O);if(ArrayBuffer.isView(I))return OY(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(vU(I,ArrayBuffer)||I&&vU(I.buffer,ArrayBuffer))return yX(I,O,W);if(typeof SharedArrayBuffer<"u"&&(vU(I,SharedArrayBuffer)||I&&vU(I.buffer,SharedArrayBuffer)))return yX(I,O,W);if(typeof I==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let T=I.valueOf&&I.valueOf();if(T!=null&&T!==I)return $0.from(T,O,W);let H=FY(I);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]==="function")return $0.from(I[Symbol.toPrimitive]("string"),O,W);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}function PZ(I){if(typeof I!=="number")throw TypeError('"size" argument must be of type number');else if(I<0)throw RangeError('The value "'+I+'" is invalid for option "size"')}function $Y(I,O,W){if(PZ(I),I<=0)return BU(I);if(O!==void 0)return typeof W==="string"?BU(I).fill(O,W):BU(I).fill(O);return BU(I)}function hX(I){return PZ(I),BU(I<0?0:uX(I)|0)}function KY(I,O){if(typeof O!=="string"||O==="")O="utf8";if(!$0.isEncoding(O))throw TypeError("Unknown encoding: "+O);let W=kZ(I,O)|0,T=BU(W),H=T.write(I,O);if(H!==W)T=T.slice(0,H);return T}function fX(I){let O=I.length<0?0:uX(I.length)|0,W=BU(O);for(let T=0;T<O;T+=1)W[T]=I[T]&255;return W}function OY(I){if(vU(I,Uint8Array)){let O=new Uint8Array(I);return yX(O.buffer,O.byteOffset,O.byteLength)}return fX(I)}function yX(I,O,W){if(O<0||I.byteLength<O)throw RangeError('"offset" is outside of buffer bounds');if(I.byteLength<O+(W||0))throw RangeError('"length" is outside of buffer bounds');let T;if(O===void 0&&W===void 0)T=new Uint8Array(I);else if(W===void 0)T=new Uint8Array(I,O);else T=new Uint8Array(I,O,W);return Object.setPrototypeOf(T,$0.prototype),T}function FY(I){if($0.isBuffer(I)){let O=uX(I.length)|0,W=BU(O);if(W.length===0)return W;return I.copy(W,0,0,O),W}if(I.length!==void 0){if(typeof I.length!=="number"||Number.isNaN(I.length))return BU(0);return fX(I)}if(I.type==="Buffer"&&Array.isArray(I.data))return fX(I.data)}function uX(I){if(I>=rU)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rU.toString(16)+" bytes");return I|0}function kZ(I,O){if($0.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||vU(I,ArrayBuffer))return I.byteLength;if(typeof I!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);let W=I.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&W===0)return 0;let H=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":return cX(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return fZ(I).length;default:if(H)return T?-1:cX(I).length;O=(""+O).toLowerCase(),H=!0}}function WY(I,O,W){let T=!1;if(O===void 0||O<0)O=0;if(O>this.length)return"";if(W===void 0||W>this.length)W=this.length;if(W<=0)return"";if(W>>>=0,O>>>=0,W<=O)return"";if(!I)I="utf8";while(!0)switch(I){case"hex":return RY(this,O,W);case"utf8":case"utf-8":return vZ(this,O,W);case"ascii":return LY(this,O,W);case"latin1":case"binary":return MY(this,O,W);case"base64":return CY(this,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qY(this,O,W);default:if(T)throw TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),T=!0}}function hU(I,O,W){let T=I[O];I[O]=I[W],I[W]=T}function jZ(I,O,W,T,H){if(I.length===0)return-1;if(typeof W==="string")T=W,W=0;else if(W>2147483647)W=2147483647;else if(W<-2147483648)W=-2147483648;if(W=+W,Number.isNaN(W))W=H?0:I.length-1;if(W<0)W=I.length+W;if(W>=I.length)if(H)return-1;else W=I.length-1;else if(W<0)if(H)W=0;else return-1;if(typeof O==="string")O=$0.from(O,T);if($0.isBuffer(O)){if(O.length===0)return-1;return CZ(I,O,W,T,H)}else if(typeof O==="number"){if(O=O&255,typeof Uint8Array.prototype.indexOf==="function")if(H)return Uint8Array.prototype.indexOf.call(I,O,W);else return Uint8Array.prototype.lastIndexOf.call(I,O,W);return CZ(I,[O],W,T,H)}throw TypeError("val must be string, number or Buffer")}function CZ(I,O,W,T,H){let L=1,V=I.length,P=O.length;if(T!==void 0){if(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le"){if(I.length<2||O.length<2)return-1;L=2,V/=2,P/=2,W/=2}}function S(C,D){if(L===1)return C[D];else return C.readUInt16BE(D*L)}let E;if(H){let C=-1;for(E=W;E<V;E++)if(S(I,E)===S(O,C===-1?0:E-C)){if(C===-1)C=E;if(E-C+1===P)return C*L}else{if(C!==-1)E-=E-C;C=-1}}else{if(W+P>V)W=V-P;for(E=W;E>=0;E--){let C=!0;for(let D=0;D<P;D++)if(S(I,E+D)!==S(O,D)){C=!1;break}if(C)return E}}return-1}function HY(I,O,W,T){W=Number(W)||0;let H=I.length-W;if(!T)T=H;else if(T=Number(T),T>H)T=H;let L=O.length;if(T>L/2)T=L/2;let V;for(V=0;V<T;++V){let P=parseInt(O.substr(V*2,2),16);if(Number.isNaN(P))return V;I[W+V]=P}return V}function DY(I,O,W,T){return FX(cX(O,I.length-W),I,W,T)}function TY(I,O,W,T){return FX(jY(O),I,W,T)}function AY(I,O,W,T){return FX(fZ(O),I,W,T)}function zY(I,O,W,T){return FX(vY(O,I.length-W),I,W,T)}function CY(I,O,W){if(O===0&&W===I.length)return AZ(I);else return AZ(I.slice(O,W))}function vZ(I,O,W){W=Math.min(I.length,W);let T=[],H=O;while(H<W){let L=I[H],V=null,P=L>239?4:L>223?3:L>191?2:1;if(H+P<=W){let S,E,C,D;switch(P){case 1:if(L<128)V=L;break;case 2:if(S=I[H+1],(S&192)===128){if(D=(L&31)<<6|S&63,D>127)V=D}break;case 3:if(S=I[H+1],E=I[H+2],(S&192)===128&&(E&192)===128){if(D=(L&15)<<12|(S&63)<<6|E&63,D>2047&&(D<55296||D>57343))V=D}break;case 4:if(S=I[H+1],E=I[H+2],C=I[H+3],(S&192)===128&&(E&192)===128&&(C&192)===128){if(D=(L&15)<<18|(S&63)<<12|(E&63)<<6|C&63,D>65535&&D<1114112)V=D}}}if(V===null)V=65533,P=1;else if(V>65535)V-=65536,T.push(V>>>10&1023|55296),V=56320|V&1023;T.push(V),H+=P}return EY(T)}function EY(I){let O=I.length;if(O<=EZ)return String.fromCharCode.apply(String,I);let W="",T=0;while(T<O)W+=String.fromCharCode.apply(String,I.slice(T,T+=EZ));return W}function LY(I,O,W){let T="";W=Math.min(I.length,W);for(let H=O;H<W;++H)T+=String.fromCharCode(I[H]&127);return T}function MY(I,O,W){let T="";W=Math.min(I.length,W);for(let H=O;H<W;++H)T+=String.fromCharCode(I[H]);return T}function RY(I,O,W){let T=I.length;if(!O||O<0)O=0;if(!W||W<0||W>T)W=T;let H="";for(let L=O;L<W;++L)H+=_Y[I[L]];return H}function qY(I,O,W){let T=I.slice(O,W),H="";for(let L=0;L<T.length-1;L+=2)H+=String.fromCharCode(T[L]+T[L+1]*256);return H}function FU(I,O,W){if(I%1!==0||I<0)throw RangeError("offset is not uint");if(I+O>W)throw RangeError("Trying to access beyond buffer length")}function LU(I,O,W,T,H,L){if(!$0.isBuffer(I))throw TypeError('"buffer" argument must be a Buffer instance');if(O>H||O<L)throw RangeError('"value" argument is out of bounds');if(W+T>I.length)throw RangeError("Index out of range")}function _Z(I,O,W,T,H){wZ(O,T,H,I,W,7);let L=Number(O&BigInt(4294967295));I[W++]=L,L=L>>8,I[W++]=L,L=L>>8,I[W++]=L,L=L>>8,I[W++]=L;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[W++]=V,V=V>>8,I[W++]=V,V=V>>8,I[W++]=V,V=V>>8,I[W++]=V,W}function BZ(I,O,W,T,H){wZ(O,T,H,I,W,7);let L=Number(O&BigInt(4294967295));I[W+7]=L,L=L>>8,I[W+6]=L,L=L>>8,I[W+5]=L,L=L>>8,I[W+4]=L;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[W+3]=V,V=V>>8,I[W+2]=V,V=V>>8,I[W+1]=V,V=V>>8,I[W]=V,W+8}function xZ(I,O,W,T,H,L){if(W+T>I.length)throw RangeError("Index out of range");if(W<0)throw RangeError("Index out of range")}function NZ(I,O,W,T,H){if(O=+O,W=W>>>0,!H)xZ(I,O,W,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return MZ(I,O,W,T,23,4),W+4}function gZ(I,O,W,T,H){if(O=+O,W=W>>>0,!H)xZ(I,O,W,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return MZ(I,O,W,T,52,8),W+8}function LZ(I){let O="",W=I.length,T=I[0]==="-"?1:0;for(;W>=T+4;W-=3)O=`_${I.slice(W-3,W)}${O}`;return`${I.slice(0,W)}${O}`}function SY(I,O,W){if(oU(O,"offset"),I[O]===void 0||I[O+W]===void 0)aU(O,I.length-(W+1))}function wZ(I,O,W,T,H,L){if(I>W||I<O){let V=typeof O==="bigint"?"n":"",P;if(L>3)if(O===0||O===BigInt(0))P=`>= 0${V} and < 2${V} ** ${(L+1)*8}${V}`;else P=`>= -(2${V} ** ${(L+1)*8-1}${V}) and < 2 ** ${(L+1)*8-1}${V}`;else P=`>= ${O}${V} and <= ${W}${V}`;throw new wX("value",P,I)}SY(T,H,L)}function oU(I,O){if(typeof I!=="number")throw new IY(O,"number",I)}function aU(I,O,W){if(Math.floor(I)!==I)throw oU(I,W),new wX(W||"offset","an integer",I);if(O<0)throw new GY;throw new wX(W||"offset",`>= ${W?1:0} and <= ${O}`,I)}function kY(I){if(I=I.split("=")[0],I=I.trim().replace(PY,""),I.length<2)return"";while(I.length%4!==0)I=I+"=";return I}function cX(I,O){O=O||1/0;let W,T=I.length,H=null,L=[];for(let V=0;V<T;++V){if(W=I.charCodeAt(V),W>55295&&W<57344){if(!H){if(W>56319){if((O-=3)>-1)L.push(239,191,189);continue}else if(V+1===T){if((O-=3)>-1)L.push(239,191,189);continue}H=W;continue}if(W<56320){if((O-=3)>-1)L.push(239,191,189);H=W;continue}W=(H-55296<<10|W-56320)+65536}else if(H){if((O-=3)>-1)L.push(239,191,189)}if(H=null,W<128){if((O-=1)<0)break;L.push(W)}else if(W<2048){if((O-=2)<0)break;L.push(W>>6|192,W&63|128)}else if(W<65536){if((O-=3)<0)break;L.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if((O-=4)<0)break;L.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw Error("Invalid code point")}return L}function jY(I){let O=[];for(let W=0;W<I.length;++W)O.push(I.charCodeAt(W)&255);return O}function vY(I,O){let W,T,H,L=[];for(let V=0;V<I.length;++V){if((O-=2)<0)break;W=I.charCodeAt(V),T=W>>8,H=W%256,L.push(H),L.push(T)}return L}function fZ(I){return iQ(kY(I))}function FX(I,O,W,T){let H;for(H=0;H<T;++H){if(H+W>=O.length||H>=I.length)break;O[H+W]=I[H]}return H}function vU(I,O){return I instanceof O||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===O.name}function wU(I){return typeof BigInt>"u"?BY:I}function BY(){throw Error("BigInt not supported")}function bX(I){return()=>{throw Error(I+" is not implemented for node:buffer browser polyfill")}}var jU,PU,gX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pU,TZ,zZ,RZ=50,rU=2147483647,qZ=536870888,ZY,QY,YY,JY,VY,GY,IY,wX,EZ=4096,PY,_Y,xY,NY,gY=(I)=>{for(let O of I)if(O.charCodeAt(0)>127)return!1;return!0},wY,fY;var HU=KX(()=>{jU=[],PU=[];for(pU=0,TZ=gX.length;pU<TZ;++pU)jU[pU]=gX[pU],PU[gX.charCodeAt(pU)]=pU;PU[45]=62;PU[95]=63;zZ=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,ZY=globalThis.btoa,QY=globalThis.atob,YY=globalThis.File,JY=globalThis.Blob,VY={MAX_LENGTH:rU,MAX_STRING_LENGTH:qZ};GY=pX("ERR_BUFFER_OUT_OF_BOUNDS",function(I){if(I)return`${I} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),IY=pX("ERR_INVALID_ARG_TYPE",function(I,O){return`The "${I}" argument must be of type number. Received type ${typeof O}`},TypeError),wX=pX("ERR_OUT_OF_RANGE",function(I,O,W){let T=`The value of "${I}" is out of range.`,H=W;if(Number.isInteger(W)&&Math.abs(W)>4294967296)H=LZ(String(W));else if(typeof W==="bigint"){if(H=String(W),W>BigInt(2)**BigInt(32)||W<-(BigInt(2)**BigInt(32)))H=LZ(H);H+="n"}return T+=` It must be ${O}. Received ${H}`,T},RangeError);Object.defineProperty($0.prototype,"parent",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.buffer}});Object.defineProperty($0.prototype,"offset",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.byteOffset}});$0.poolSize=8192;$0.from=function(I,O,W){return SZ(I,O,W)};Object.setPrototypeOf($0.prototype,Uint8Array.prototype);Object.setPrototypeOf($0,Uint8Array);$0.alloc=function(I,O,W){return $Y(I,O,W)};$0.allocUnsafe=function(I){return hX(I)};$0.allocUnsafeSlow=function(I){return hX(I)};$0.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==$0.prototype};$0.compare=function(I,O){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(vU(O,Uint8Array))O=$0.from(O,O.offset,O.byteLength);if(!$0.isBuffer(I)||!$0.isBuffer(O))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===O)return 0;let W=I.length,T=O.length;for(let H=0,L=Math.min(W,T);H<L;++H)if(I[H]!==O[H]){W=I[H],T=O[H];break}if(W<T)return-1;if(T<W)return 1;return 0};$0.isEncoding=function(I){switch(String(I).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};$0.concat=function(I,O){if(!Array.isArray(I))throw TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return $0.alloc(0);let W;if(O===void 0){O=0;for(W=0;W<I.length;++W)O+=I[W].length}let T=$0.allocUnsafe(O),H=0;for(W=0;W<I.length;++W){let L=I[W];if(vU(L,Uint8Array))if(H+L.length>T.length){if(!$0.isBuffer(L))L=$0.from(L);L.copy(T,H)}else Uint8Array.prototype.set.call(T,L,H);else if(!$0.isBuffer(L))throw TypeError('"list" argument must be an Array of Buffers');else L.copy(T,H);H+=L.length}return T};$0.byteLength=kZ;$0.prototype._isBuffer=!0;$0.prototype.swap16=function(){let I=this.length;if(I%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<I;O+=2)hU(this,O,O+1);return this};$0.prototype.swap32=function(){let I=this.length;if(I%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<I;O+=4)hU(this,O,O+3),hU(this,O+1,O+2);return this};$0.prototype.swap64=function(){let I=this.length;if(I%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<I;O+=8)hU(this,O,O+7),hU(this,O+1,O+6),hU(this,O+2,O+5),hU(this,O+3,O+4);return this};$0.prototype.toString=function(){let I=this.length;if(I===0)return"";if(arguments.length===0)return vZ(this,0,I);return WY.apply(this,arguments)};$0.prototype.toLocaleString=$0.prototype.toString;$0.prototype.equals=function(I){if(!$0.isBuffer(I))throw TypeError("Argument must be a Buffer");if(this===I)return!0;return $0.compare(this,I)===0};$0.prototype.inspect=function(){let I="",O=RZ;if(I=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O)I+=" ... ";return"<Buffer "+I+">"};if(zZ)$0.prototype[zZ]=$0.prototype.inspect;$0.prototype.compare=function(I,O,W,T,H){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(!$0.isBuffer(I))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(O===void 0)O=0;if(W===void 0)W=I?I.length:0;if(T===void 0)T=0;if(H===void 0)H=this.length;if(O<0||W>I.length||T<0||H>this.length)throw RangeError("out of range index");if(T>=H&&O>=W)return 0;if(T>=H)return-1;if(O>=W)return 1;if(O>>>=0,W>>>=0,T>>>=0,H>>>=0,this===I)return 0;let L=H-T,V=W-O,P=Math.min(L,V),S=this.slice(T,H),E=I.slice(O,W);for(let C=0;C<P;++C)if(S[C]!==E[C]){L=S[C],V=E[C];break}if(L<V)return-1;if(V<L)return 1;return 0};$0.prototype.includes=function(I,O,W){return this.indexOf(I,O,W)!==-1};$0.prototype.indexOf=function(I,O,W){return jZ(this,I,O,W,!0)};$0.prototype.lastIndexOf=function(I,O,W){return jZ(this,I,O,W,!1)};$0.prototype.write=function(I,O,W,T){if(O===void 0)T="utf8",W=this.length,O=0;else if(W===void 0&&typeof O==="string")T=O,W=this.length,O=0;else if(isFinite(O))if(O=O>>>0,isFinite(W)){if(W=W>>>0,T===void 0)T="utf8"}else T=W,W=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let H=this.length-O;if(W===void 0||W>H)W=H;if(I.length>0&&(W<0||O<0)||O>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!T)T="utf8";let L=!1;for(;;)switch(T){case"hex":return HY(this,I,O,W);case"utf8":case"utf-8":return DY(this,I,O,W);case"ascii":case"latin1":case"binary":return TY(this,I,O,W);case"base64":return AY(this,I,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zY(this,I,O,W);default:if(L)throw TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),L=!0}};$0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};$0.prototype.slice=function(I,O){let W=this.length;if(I=~~I,O=O===void 0?W:~~O,I<0){if(I+=W,I<0)I=0}else if(I>W)I=W;if(O<0){if(O+=W,O<0)O=0}else if(O>W)O=W;if(O<I)O=I;let T=this.subarray(I,O);return Object.setPrototypeOf(T,$0.prototype),T};$0.prototype.readUintLE=$0.prototype.readUIntLE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I],H=1,L=0;while(++L<O&&(H*=256))T+=this[I+L]*H;return T};$0.prototype.readUintBE=$0.prototype.readUIntBE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I+--O],H=1;while(O>0&&(H*=256))T+=this[I+--O]*H;return T};$0.prototype.readUint8=$0.prototype.readUInt8=function(I,O){if(I=I>>>0,!O)FU(I,1,this.length);return this[I]};$0.prototype.readUint16LE=$0.prototype.readUInt16LE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);return this[I]|this[I+1]<<8};$0.prototype.readUint16BE=$0.prototype.readUInt16BE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);return this[I]<<8|this[I+1]};$0.prototype.readUint32LE=$0.prototype.readUInt32LE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216};$0.prototype.readUint32BE=$0.prototype.readUInt32BE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])};$0.prototype.readBigUInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=O+this[++I]*256+this[++I]*65536+this[++I]*16777216,H=this[++I]+this[++I]*256+this[++I]*65536+W*16777216;return BigInt(T)+(BigInt(H)<<BigInt(32))});$0.prototype.readBigUInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=O*16777216+this[++I]*65536+this[++I]*256+this[++I],H=this[++I]*16777216+this[++I]*65536+this[++I]*256+W;return(BigInt(T)<<BigInt(32))+BigInt(H)});$0.prototype.readIntLE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I],H=1,L=0;while(++L<O&&(H*=256))T+=this[I+L]*H;if(H*=128,T>=H)T-=Math.pow(2,8*O);return T};$0.prototype.readIntBE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=O,H=1,L=this[I+--T];while(T>0&&(H*=256))L+=this[I+--T]*H;if(H*=128,L>=H)L-=Math.pow(2,8*O);return L};$0.prototype.readInt8=function(I,O){if(I=I>>>0,!O)FU(I,1,this.length);if(!(this[I]&128))return this[I];return(255-this[I]+1)*-1};$0.prototype.readInt16LE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);let W=this[I]|this[I+1]<<8;return W&32768?W|4294901760:W};$0.prototype.readInt16BE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);let W=this[I+1]|this[I]<<8;return W&32768?W|4294901760:W};$0.prototype.readInt32LE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24};$0.prototype.readInt32BE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]};$0.prototype.readBigInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=this[I+4]+this[I+5]*256+this[I+6]*65536+(W<<24);return(BigInt(T)<<BigInt(32))+BigInt(O+this[++I]*256+this[++I]*65536+this[++I]*16777216)});$0.prototype.readBigInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=(O<<24)+this[++I]*65536+this[++I]*256+this[++I];return(BigInt(T)<<BigInt(32))+BigInt(this[++I]*16777216+this[++I]*65536+this[++I]*256+W)});$0.prototype.readFloatLE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return OX(this,I,!0,23,4)};$0.prototype.readFloatBE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return OX(this,I,!1,23,4)};$0.prototype.readDoubleLE=function(I,O){if(I=I>>>0,!O)FU(I,8,this.length);return OX(this,I,!0,52,8)};$0.prototype.readDoubleBE=function(I,O){if(I=I>>>0,!O)FU(I,8,this.length);return OX(this,I,!1,52,8)};$0.prototype.writeUintLE=$0.prototype.writeUIntLE=function(I,O,W,T){if(I=+I,O=O>>>0,W=W>>>0,!T){let V=Math.pow(2,8*W)-1;LU(this,I,O,W,V,0)}let H=1,L=0;this[O]=I&255;while(++L<W&&(H*=256))this[O+L]=I/H&255;return O+W};$0.prototype.writeUintBE=$0.prototype.writeUIntBE=function(I,O,W,T){if(I=+I,O=O>>>0,W=W>>>0,!T){let V=Math.pow(2,8*W)-1;LU(this,I,O,W,V,0)}let H=W-1,L=1;this[O+H]=I&255;while(--H>=0&&(L*=256))this[O+H]=I/L&255;return O+W};$0.prototype.writeUint8=$0.prototype.writeUInt8=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,1,255,0);return this[O]=I&255,O+1};$0.prototype.writeUint16LE=$0.prototype.writeUInt16LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,65535,0);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeUint16BE=$0.prototype.writeUInt16BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,65535,0);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeUint32LE=$0.prototype.writeUInt32LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,4294967295,0);return this[O+3]=I>>>24,this[O+2]=I>>>16,this[O+1]=I>>>8,this[O]=I&255,O+4};$0.prototype.writeUint32BE=$0.prototype.writeUInt32BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,4294967295,0);return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigUInt64LE=wU(function(I,O=0){return _Z(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeBigUInt64BE=wU(function(I,O=0){return BZ(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeIntLE=function(I,O,W,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*W-1);LU(this,I,O,W,P-1,-P)}let H=0,L=1,V=0;this[O]=I&255;while(++H<W&&(L*=256)){if(I<0&&V===0&&this[O+H-1]!==0)V=1;this[O+H]=(I/L>>0)-V&255}return O+W};$0.prototype.writeIntBE=function(I,O,W,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*W-1);LU(this,I,O,W,P-1,-P)}let H=W-1,L=1,V=0;this[O+H]=I&255;while(--H>=0&&(L*=256)){if(I<0&&V===0&&this[O+H+1]!==0)V=1;this[O+H]=(I/L>>0)-V&255}return O+W};$0.prototype.writeInt8=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,1,127,-128);if(I<0)I=255+I+1;return this[O]=I&255,O+1};$0.prototype.writeInt16LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,32767,-32768);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeInt16BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,32767,-32768);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeInt32LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,2147483647,-2147483648);return this[O]=I&255,this[O+1]=I>>>8,this[O+2]=I>>>16,this[O+3]=I>>>24,O+4};$0.prototype.writeInt32BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,2147483647,-2147483648);if(I<0)I=4294967295+I+1;return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigInt64LE=wU(function(I,O=0){return _Z(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeBigInt64BE=wU(function(I,O=0){return BZ(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeFloatLE=function(I,O,W){return NZ(this,I,O,!0,W)};$0.prototype.writeFloatBE=function(I,O,W){return NZ(this,I,O,!1,W)};$0.prototype.writeDoubleLE=function(I,O,W){return gZ(this,I,O,!0,W)};$0.prototype.writeDoubleBE=function(I,O,W){return gZ(this,I,O,!1,W)};$0.prototype.copy=function(I,O,W,T){if(!$0.isBuffer(I))throw TypeError("argument should be a Buffer");if(!W)W=0;if(!T&&T!==0)T=this.length;if(O>=I.length)O=I.length;if(!O)O=0;if(T>0&&T<W)T=W;if(T===W)return 0;if(I.length===0||this.length===0)return 0;if(O<0)throw RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw RangeError("Index out of range");if(T<0)throw RangeError("sourceEnd out of bounds");if(T>this.length)T=this.length;if(I.length-O<T-W)T=I.length-O+W;let H=T-W;if(this===I&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(O,W,T);else Uint8Array.prototype.set.call(I,this.subarray(W,T),O);return H};$0.prototype.fill=function(I,O,W,T){if(typeof I==="string"){if(typeof O==="string")T=O,O=0,W=this.length;else if(typeof W==="string")T=W,W=this.length;if(T!==void 0&&typeof T!=="string")throw TypeError("encoding must be a string");if(typeof T==="string"&&!$0.isEncoding(T))throw TypeError("Unknown encoding: "+T);if(I.length===1){let L=I.charCodeAt(0);if(T==="utf8"&&L<128||T==="latin1")I=L}}else if(typeof I==="number")I=I&255;else if(typeof I==="boolean")I=Number(I);if(O<0||this.length<O||this.length<W)throw RangeError("Out of range index");if(W<=O)return this;if(O=O>>>0,W=W===void 0?this.length:W>>>0,!I)I=0;let H;if(typeof I==="number")for(H=O;H<W;++H)this[H]=I;else{let L=$0.isBuffer(I)?I:$0.from(I,T),V=L.length;if(V===0)throw TypeError('The value "'+I+'" is invalid for argument "value"');for(H=0;H<W-O;++H)this[H+O]=L[H%V]}return this};PY=/[^+/0-9A-Za-z-_]/g;_Y=function(){let I=Array(256);for(let O=0;O<16;++O){let W=O*16;for(let T=0;T<16;++T)I[W+T]="0123456789abcdef"[O]+"0123456789abcdef"[T]}return I}();xY=bX("resolveObjectURL"),NY=bX("isUtf8"),wY=bX("transcode"),fY=$0});var nZ={};$X(nZ,{types:()=>nY,promisify:()=>bZ,log:()=>pZ,isUndefined:()=>nU,isSymbol:()=>sY,isString:()=>zX,isRegExp:()=>WX,isPrimitive:()=>tY,isObject:()=>mU,isNumber:()=>cZ,isNullOrUndefined:()=>mY,isNull:()=>AX,isFunction:()=>DX,isError:()=>HX,isDate:()=>nX,isBuffer:()=>rY,isBoolean:()=>sX,isArray:()=>yZ,inspect:()=>uU,inherits:()=>hZ,format:()=>mX,deprecate:()=>cY,default:()=>iY,debuglog:()=>pY,callbackifyOnRejected:()=>aX,callbackify:()=>lZ,_extend:()=>rX,TextEncoder:()=>dZ,TextDecoder:()=>oZ});function mX(I,...O){if(!zX(I)){var W=[I];for(var T=0;T<O.length;T++)W.push(uU(O[T]));return W.join(" ")}var T=0,H=O.length,L=String(I).replace(yY,function(P){if(P==="%%")return"%";if(T>=H)return P;switch(P){case"%s":return String(O[T++]);case"%d":return Number(O[T++]);case"%j":try{return JSON.stringify(O[T++])}catch(S){return"[Circular]"}default:return P}});for(var V=O[T];T<H;V=O[++T])if(AX(V)||!mU(V))L+=" "+V;else L+=" "+uU(V);return L}function cY(I,O){if(typeof process>"u"||process?.noDeprecation===!0)return I;var W=!1;function T(...H){if(!W){if(process.throwDeprecation)throw Error(O);else if(process.traceDeprecation)console.trace(O);else console.error(O);W=!0}return I.apply(this,...H)}return T}function hY(I,O){var W=uU.styles[O];if(W)return"\x1B["+uU.colors[W][0]+"m"+I+"\x1B["+uU.colors[W][1]+"m";else return I}function uY(I,O){return I}function bY(I){var O={};return I.forEach(function(W,T){O[W]=!0}),O}function TX(I,O,W){if(I.customInspect&&O&&DX(O.inspect)&&O.inspect!==uU&&!(O.constructor&&O.constructor.prototype===O)){var T=O.inspect(W,I);if(!zX(T))T=TX(I,T,W);return T}var H=lY(I,O);if(H)return H;var L=Object.keys(O),V=bY(L);if(I.showHidden)L=Object.getOwnPropertyNames(O);if(HX(O)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return lX(O);if(L.length===0){if(DX(O)){var P=O.name?": "+O.name:"";return I.stylize("[Function"+P+"]","special")}if(WX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");if(nX(O))return I.stylize(Date.prototype.toString.call(O),"date");if(HX(O))return lX(O)}var S="",E=!1,C=["{","}"];if(yZ(O))E=!0,C=["[","]"];if(DX(O)){var D=O.name?": "+O.name:"";S=" [Function"+D+"]"}if(WX(O))S=" "+RegExp.prototype.toString.call(O);if(nX(O))S=" "+Date.prototype.toUTCString.call(O);if(HX(O))S=" "+lX(O);if(L.length===0&&(!E||O.length==0))return C[0]+S+C[1];if(W<0)if(WX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");else return I.stylize("[Object]","special");I.seen.push(O);var z;if(E)z=dY(I,O,W,V,L);else z=L.map(function(R){return oX(I,O,W,V,R,E)});return I.seen.pop(),oY(z,S,C)}function lY(I,O){if(nU(O))return I.stylize("undefined","undefined");if(zX(O)){var W="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(W,"string")}if(cZ(O))return I.stylize(""+O,"number");if(sX(O))return I.stylize(""+O,"boolean");if(AX(O))return I.stylize("null","null")}function lX(I){return"["+Error.prototype.toString.call(I)+"]"}function dY(I,O,W,T,H){var L=[];for(var V=0,P=O.length;V<P;++V)if(uZ(O,String(V)))L.push(oX(I,O,W,T,String(V),!0));else L.push("");return H.forEach(function(S){if(!S.match(/^\d+$/))L.push(oX(I,O,W,T,S,!0))}),L}function oX(I,O,W,T,H,L){var V,P,S;if(S=Object.getOwnPropertyDescriptor(O,H)||{value:O[H]},S.get)if(S.set)P=I.stylize("[Getter/Setter]","special");else P=I.stylize("[Getter]","special");else if(S.set)P=I.stylize("[Setter]","special");if(!uZ(T,H))V="["+H+"]";if(!P)if(I.seen.indexOf(S.value)<0){if(AX(W))P=TX(I,S.value,null);else P=TX(I,S.value,W-1);if(P.indexOf(`
|
|
2
2
|
`)>-1)if(L)P=P.split(`
|
|
3
3
|
`).map(function(E){return" "+E}).join(`
|
|
4
4
|
`).slice(2);else P=`
|
|
@@ -14,7 +14,7 @@ import{$d as CQ,Xd as h0,Yd as EX,Zd as $X,_d as KX}from"./chunk-nhva847d.js";va
|
|
|
14
14
|
`)}}),yV=I0((I)=>{var O=I;O.der=hQ(),O.pem=fV()}),IX=I0((I)=>{var O=I;O.bignum=vV(),O.define=_V().define,O.base=QX(),O.constants=cQ(),O.decoders=wV(),O.encoders=yV()}),cV=I0((I,O)=>{var W=IX(),T=W.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),H=W.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),L=W.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),V=W.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(L),this.key("subjectPublicKey").bitstr())}),P=W.define("RelativeDistinguishedName",function(){this.setof(H)}),S=W.define("RDNSequence",function(){this.seqof(P)}),E=W.define("Name",function(){this.choice({rdnSequence:this.use(S)})}),C=W.define("Validity",function(){this.seq().obj(this.key("notBefore").use(T),this.key("notAfter").use(T))}),D=W.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),z=W.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(L),this.key("issuer").use(E),this.key("validity").use(C),this.key("subject").use(E),this.key("subjectPublicKeyInfo").use(V),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(D).optional())}),R=W.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(z),this.key("signatureAlgorithm").use(L),this.key("signatureValue").bitstr())});O.exports=R}),pV=I0((I)=>{var O=IX();I.certificate=cV();var W=O.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});I.RSAPrivateKey=W;var T=O.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});I.RSAPublicKey=T;var H=O.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),L=O.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(H),this.key("subjectPublicKey").bitstr())});I.PublicKey=L;var V=O.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(H),this.key("subjectPrivateKey").octstr())});I.PrivateKey=V;var P=O.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});I.EncryptedPrivateKey=P;var S=O.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});I.DSAPrivateKey=S,I.DSAparam=O.define("DSAparam",function(){this.int()});var E=O.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),C=O.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(E),this.key("publicKey").optional().explicit(1).bitstr())});I.ECPrivateKey=C,I.signature=O.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),hV=I0((I,O)=>{O.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}),uV=I0((I,O)=>{var W=EU().Buffer,T=YZ().Transform,H=SU();function L(E){T.call(this),this._block=W.allocUnsafe(E),this._blockSize=E,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}H(L,T),L.prototype._transform=function(E,C,D){var z=null;try{this.update(E,C)}catch(R){z=R}D(z)},L.prototype._flush=function(E){var C=null;try{this.push(this.digest())}catch(D){C=D}E(C)};var V=typeof Uint8Array<"u",P=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(W.prototype instanceof Uint8Array||W.TYPED_ARRAY_SUPPORT);function S(E,C){if(E instanceof W)return E;if(typeof E==="string")return W.from(E,C);if(P&&ArrayBuffer.isView(E)){if(E.byteLength===0)return W.alloc(0);var D=W.from(E.buffer,E.byteOffset,E.byteLength);if(D.byteLength===E.byteLength)return D}if(V&&E instanceof Uint8Array)return W.from(E);if(W.isBuffer(E)&&E.constructor&&typeof E.constructor.isBuffer==="function"&&E.constructor.isBuffer(E))return W.from(E);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}L.prototype.update=function(E,C){if(this._finalized)throw Error("Digest already called");E=S(E,C);var D=this._block,z=0;while(this._blockOffset+E.length-z>=this._blockSize){for(var R=this._blockOffset;R<this._blockSize;)D[R++]=E[z++];this._update(),this._blockOffset=0}while(z<E.length)D[this._blockOffset++]=E[z++];for(var q=0,_=E.length*8;_>0;++q)if(this._length[q]+=_,_=this._length[q]/4294967296|0,_>0)this._length[q]-=4294967296*_;return this},L.prototype._update=function(){throw Error("_update is not implemented")},L.prototype.digest=function(E){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var C=this._digest();if(E!==void 0)C=C.toString(E);this._block.fill(0),this._blockOffset=0;for(var D=0;D<4;++D)this._length[D]=0;return C},L.prototype._digest=function(){throw Error("_digest is not implemented")},O.exports=L}),bV=I0((I,O)=>{var W=SU(),T=uV(),H=EU().Buffer,L=Array(16);function V(){T.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}W(V,T),V.prototype._update=function(){var z=L;for(var R=0;R<16;++R)z[R]=this._block.readInt32LE(R*4);var q=this._a,_=this._b,k=this._c,j=this._d;q=S(q,_,k,j,z[0],3614090360,7),j=S(j,q,_,k,z[1],3905402710,12),k=S(k,j,q,_,z[2],606105819,17),_=S(_,k,j,q,z[3],3250441966,22),q=S(q,_,k,j,z[4],4118548399,7),j=S(j,q,_,k,z[5],1200080426,12),k=S(k,j,q,_,z[6],2821735955,17),_=S(_,k,j,q,z[7],4249261313,22),q=S(q,_,k,j,z[8],1770035416,7),j=S(j,q,_,k,z[9],2336552879,12),k=S(k,j,q,_,z[10],4294925233,17),_=S(_,k,j,q,z[11],2304563134,22),q=S(q,_,k,j,z[12],1804603682,7),j=S(j,q,_,k,z[13],4254626195,12),k=S(k,j,q,_,z[14],2792965006,17),_=S(_,k,j,q,z[15],1236535329,22),q=E(q,_,k,j,z[1],4129170786,5),j=E(j,q,_,k,z[6],3225465664,9),k=E(k,j,q,_,z[11],643717713,14),_=E(_,k,j,q,z[0],3921069994,20),q=E(q,_,k,j,z[5],3593408605,5),j=E(j,q,_,k,z[10],38016083,9),k=E(k,j,q,_,z[15],3634488961,14),_=E(_,k,j,q,z[4],3889429448,20),q=E(q,_,k,j,z[9],568446438,5),j=E(j,q,_,k,z[14],3275163606,9),k=E(k,j,q,_,z[3],4107603335,14),_=E(_,k,j,q,z[8],1163531501,20),q=E(q,_,k,j,z[13],2850285829,5),j=E(j,q,_,k,z[2],4243563512,9),k=E(k,j,q,_,z[7],1735328473,14),_=E(_,k,j,q,z[12],2368359562,20),q=C(q,_,k,j,z[5],4294588738,4),j=C(j,q,_,k,z[8],2272392833,11),k=C(k,j,q,_,z[11],1839030562,16),_=C(_,k,j,q,z[14],4259657740,23),q=C(q,_,k,j,z[1],2763975236,4),j=C(j,q,_,k,z[4],1272893353,11),k=C(k,j,q,_,z[7],4139469664,16),_=C(_,k,j,q,z[10],3200236656,23),q=C(q,_,k,j,z[13],681279174,4),j=C(j,q,_,k,z[0],3936430074,11),k=C(k,j,q,_,z[3],3572445317,16),_=C(_,k,j,q,z[6],76029189,23),q=C(q,_,k,j,z[9],3654602809,4),j=C(j,q,_,k,z[12],3873151461,11),k=C(k,j,q,_,z[15],530742520,16),_=C(_,k,j,q,z[2],3299628645,23),q=D(q,_,k,j,z[0],4096336452,6),j=D(j,q,_,k,z[7],1126891415,10),k=D(k,j,q,_,z[14],2878612391,15),_=D(_,k,j,q,z[5],4237533241,21),q=D(q,_,k,j,z[12],1700485571,6),j=D(j,q,_,k,z[3],2399980690,10),k=D(k,j,q,_,z[10],4293915773,15),_=D(_,k,j,q,z[1],2240044497,21),q=D(q,_,k,j,z[8],1873313359,6),j=D(j,q,_,k,z[15],4264355552,10),k=D(k,j,q,_,z[6],2734768916,15),_=D(_,k,j,q,z[13],1309151649,21),q=D(q,_,k,j,z[4],4149444226,6),j=D(j,q,_,k,z[11],3174756917,10),k=D(k,j,q,_,z[2],718787259,15),_=D(_,k,j,q,z[9],3951481745,21),this._a=this._a+q|0,this._b=this._b+_|0,this._c=this._c+k|0,this._d=this._d+j|0},V.prototype._digest=function(){if(this._block[this._blockOffset++]=128,this._blockOffset>56)this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0;this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var z=H.allocUnsafe(16);return z.writeInt32LE(this._a,0),z.writeInt32LE(this._b,4),z.writeInt32LE(this._c,8),z.writeInt32LE(this._d,12),z};function P(z,R){return z<<R|z>>>32-R}function S(z,R,q,_,k,j,v){return P(z+(R&q|~R&_)+k+j|0,v)+R|0}function E(z,R,q,_,k,j,v){return P(z+(R&_|q&~_)+k+j|0,v)+R|0}function C(z,R,q,_,k,j,v){return P(z+(R^q^_)+k+j|0,v)+R|0}function D(z,R,q,_,k,j,v){return P(z+(q^(R|~_))+k+j|0,v)+R|0}O.exports=V}),lV=I0((I,O)=>{var W=EU().Buffer,T=bV();function H(L,V,P,S){if(!W.isBuffer(L))L=W.from(L,"binary");if(V){if(!W.isBuffer(V))V=W.from(V,"binary");if(V.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var E=P/8,C=W.alloc(E),D=W.alloc(S||0),z=W.alloc(0);while(E>0||S>0){var R=new T;if(R.update(z),R.update(L),V)R.update(V);z=R.digest();var q=0;if(E>0){var _=C.length-E;q=Math.min(E,z.length),z.copy(C,_,0,q),E-=q}if(q<z.length&&S>0){var k=D.length-S,j=Math.min(S,z.length-q);z.copy(D,k,q,q+j),S-=j}}return z.fill(0),{key:C,iv:D}}O.exports=H}),uQ=I0((I)=>{var O=(qU(),h0(RU));I.createCipher=I.Cipher=O.createCipher,I.createCipheriv=I.Cipheriv=O.createCipheriv,I.createDecipher=I.Decipher=O.createDecipher,I.createDecipheriv=I.Decipheriv=O.createDecipheriv,I.listCiphers=I.getCiphers=O.getCiphers}),dV=I0((I,O)=>{var W=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,T=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,H=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,L=lV(),V=uQ(),P=EU().Buffer;O.exports=function(S,E){var C=S.toString(),D=C.match(W),z;if(!D){var R=C.match(H);z=P.from(R[2].replace(/[\r\n]/g,""),"base64")}else{var q="aes"+D[1],_=P.from(D[2],"hex"),k=P.from(D[3].replace(/[\r\n]/g,""),"base64"),j=L(E,_.slice(0,8),parseInt(D[1],10)).key,v=[],x=V.createDecipheriv(q,j,_);v.push(x.update(k)),v.push(x.final()),z=P.concat(v)}var N=C.match(T)[1];return{tag:N,data:z}}}),bQ=I0((I,O)=>{var W=pV(),T=hV(),H=dV(),L=uQ(),V=BQ().pbkdf2Sync,P=EU().Buffer;function S(C,D){var z=C.algorithm.decrypt.kde.kdeparams.salt,R=parseInt(C.algorithm.decrypt.kde.kdeparams.iters.toString(),10),q=T[C.algorithm.decrypt.cipher.algo.join(".")],_=C.algorithm.decrypt.cipher.iv,k=C.subjectPrivateKey,j=parseInt(q.split("-")[1],10)/8,v=V(D,z,R,j,"sha1"),x=L.createDecipheriv(q,v,_),N=[];return N.push(x.update(k)),N.push(x.final()),P.concat(N)}function E(C){var D;if(typeof C==="object"&&!P.isBuffer(C))D=C.passphrase,C=C.key;if(typeof C==="string")C=P.from(C);var z=H(C,D),R=z.tag,q=z.data,_,k;switch(R){case"CERTIFICATE":k=W.certificate.decode(q,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!k)k=W.PublicKey.decode(q,"der");switch(_=k.algorithm.algorithm.join("."),_){case"1.2.840.113549.1.1.1":return W.RSAPublicKey.decode(k.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return k.subjectPrivateKey=k.subjectPublicKey,{type:"ec",data:k};case"1.2.840.10040.4.1":return k.algorithm.params.pub_key=W.DSAparam.decode(k.subjectPublicKey.data,"der"),{type:"dsa",data:k.algorithm.params};default:throw Error("unknown key id "+_)}case"ENCRYPTED PRIVATE KEY":q=W.EncryptedPrivateKey.decode(q,"der"),q=S(q,D);case"PRIVATE KEY":switch(k=W.PrivateKey.decode(q,"der"),_=k.algorithm.algorithm.join("."),_){case"1.2.840.113549.1.1.1":return W.RSAPrivateKey.decode(k.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:k.algorithm.curve,privateKey:W.ECPrivateKey.decode(k.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return k.algorithm.params.priv_key=W.DSAparam.decode(k.subjectPrivateKey,"der"),{type:"dsa",params:k.algorithm.params};default:throw Error("unknown key id "+_)}case"RSA PUBLIC KEY":return W.RSAPublicKey.decode(q,"der");case"RSA PRIVATE KEY":return W.RSAPrivateKey.decode(q,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:W.DSAPrivateKey.decode(q,"der")};case"EC PRIVATE KEY":return q=W.ECPrivateKey.decode(q,"der"),{curve:q.parameters.value,privateKey:q.privateKey};default:throw Error("unknown key type "+R)}}E.signature=W.signature,O.exports=E}),lQ=I0((I,O)=>{var W=SX(),T=EU().Buffer;O.exports=function(L,V){var P=T.alloc(0),S=0,E;while(P.length<V)E=H(S++),P=T.concat([P,W("sha1").update(L).update(E).digest()]);return P.slice(0,V)};function H(L){var V=T.allocUnsafe(4);return V.writeUInt32BE(L,0),V}}),dQ=I0((I,O)=>{O.exports=function(W,T){var H=W.length,L=-1;while(++L<H)W[L]^=T[L];return W}}),HZ=I0((I,O)=>{(function(W,T){function H(U,Q){if(!U)throw Error(Q||"Assertion failed")}function L(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof W==="object")W.exports=V;else T.BN=V;V.BN=V,V.wordSize=26;var P;try{if(typeof window<"u"&&typeof window.Buffer<"u")P=window.Buffer;else P=(HU(),h0(WU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;H(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var Z=0;if(U[0]==="-")Z++,this.negative=1;if(Z<U.length){if(Q===16)this._parseHex(U,Z,J);else if(this._parseBase(U,Q,Z),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else H(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(H(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y,K,F=0;if(J==="be"){for(Z=U.length-1,Y=0;Z>=0;Z-=3)if(K=U[Z]|U[Z-1]<<8|U[Z-2]<<16,this.words[Y]|=K<<F&67108863,this.words[Y+1]=K>>>26-F&67108863,F+=24,F>=26)F-=26,Y++}else if(J==="le"){for(Z=0,Y=0;Z<U.length;Z+=3)if(K=U[Z]|U[Z+1]<<8|U[Z+2]<<16,this.words[Y]|=K<<F&67108863,this.words[Y+1]=K>>>26-F&67108863,F+=24,F>=26)F-=26,Y++}return this.strip()};function S(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function E(U,Q,J){var Z=S(U,J);if(J-1>=Q)Z|=S(U,J-1)<<4;return Z}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y=0,K=0,F;if(J==="be")for(Z=U.length-1;Z>=Q;Z-=2)if(F=E(U,Q,Z)<<Y,this.words[K]|=F&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=F>>>26;else Y+=8;else{var G=U.length-Q;for(Z=G%2===0?Q+1:Q;Z<U.length;Z+=2)if(F=E(U,Q,Z)<<Y,this.words[K]|=F&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=F>>>26;else Y+=8}this.strip()};function C(U,Q,J,Z){var Y=0,K=Math.min(U.length,J);for(var F=Q;F<K;F++){var G=U.charCodeAt(F)-48;if(Y*=Z,G>=49)Y+=G-49+10;else if(G>=17)Y+=G-17+10;else Y+=G}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var Z=0,Y=1;Y<=67108863;Y*=Q)Z++;Z--,Y=Y/Q|0;var K=U.length-J,F=K%Z,G=Math.min(K,K-F)+J,X=0;for(var $=J;$<G;$+=Z)if(X=C(U,$,$+Z,Q),this.imuln(Y),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X);if(F!==0){var M=1;X=C(U,$,U.length,Q);for($=0;$<F;$++)M*=Q;if(this.imuln(M),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],z=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var Z=0,Y=0;for(var K=0;K<this.length;K++){var F=this.words[K],G=((F<<Z|Y)&16777215).toString(16);if(Y=F>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,K--;if(Y!==0||K!==this.length-1)J=D[6-G.length]+G+J;else J=G+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var X=z[U],$=R[U];J="";var M=this.clone();M.negative=0;while(!M.isZero()){var A=M.modn($).toString(U);if(M=M.idivn($),!M.isZero())J=D[X-A.length]+A+J;else J=A+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}H(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)H(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return H(typeof P<"u"),this.toArrayLike(P,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var Z=this.byteLength(),Y=J||Math.max(1,Z);H(Z<=Y,"byte array longer than desired length"),H(Y>0,"Requested array length <= 0"),this.strip();var K=Q==="le",F=new U(Y),G,X,$=this.clone();if(!K){for(X=0;X<Y-Z;X++)F[X]=0;for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),F[Y-X-1]=G}else{for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),F[X]=G;for(;X<Y;X++)F[X]=0}return F},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function q(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var Z=J/26|0,Y=J%26;Q[J]=(U.words[Z]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return H((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return H((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var Z=0;Z<J.length;Z++)this.words[Z]=Q.words[Z]^J.words[Z];if(this!==Q)for(;Z<Q.length;Z++)this.words[Z]=Q.words[Z];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return H((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){H(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var Z=0;Z<Q;Z++)this.words[Z]=~this.words[Z]&67108863;if(J>0)this.words[Z]=~this.words[Z]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){H(typeof U==="number"&&U>=0);var J=U/26|0,Z=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<Z;else this.words[J]=this.words[J]&~(1<<Z);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,Z;if(this.length>U.length)J=this,Z=U;else J=U,Z=this;var Y=0;for(var K=0;K<Z.length;K++)Q=(J.words[K]|0)+(Z.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;for(;Y!==0&&K<J.length;K++)Q=(J.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;K<J.length;K++)this.words[K]=J.words[K];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,Y;if(J>0)Z=this,Y=U;else Z=U,Y=this;var K=0;for(var F=0;F<Y.length;F++)Q=(Z.words[F]|0)-(Y.words[F]|0)+K,K=Q>>26,this.words[F]=Q&67108863;for(;K!==0&&F<Z.length;F++)Q=(Z.words[F]|0)+K,K=Q>>26,this.words[F]=Q&67108863;if(K===0&&F<Z.length&&Z!==this)for(;F<Z.length;F++)this.words[F]=Z.words[F];if(this.length=Math.max(this.length,F),Z!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function _(U,Q,J){J.negative=Q.negative^U.negative;var Z=U.length+Q.length|0;J.length=Z,Z=Z-1|0;var Y=U.words[0]|0,K=Q.words[0]|0,F=Y*K,G=F&67108863,X=F/67108864|0;J.words[0]=G;for(var $=1;$<Z;$++){var M=X>>>26,A=X&67108863,B=Math.min($,Q.length-1);for(var w=Math.max(0,$-U.length+1);w<=B;w++){var p=$-w|0;Y=U.words[p]|0,K=Q.words[w]|0,F=Y*K+A,M+=F/67108864|0,A=F&67108863}J.words[$]=A|0,X=M|0}if(X!==0)J.words[$]=X|0;else J.length--;return J.strip()}var k=function(U,Q,J){var Z=U.words,Y=Q.words,K=J.words,F=0,G,X,$,M=Z[0]|0,A=M&8191,B=M>>>13,w=Z[1]|0,p=w&8191,n=w>>>13,K0=Z[2]|0,r=K0&8191,d=K0>>>13,J0=Z[3]|0,m=J0&8191,i=J0>>>13,g0=Z[4]|0,y=g0&8191,h=g0>>>13,V0=Z[5]|0,t=V0&8191,e=V0>>>13,E0=Z[6]|0,c=E0&8191,o=E0>>>13,N0=Z[7]|0,s=N0&8191,Z0=N0>>>13,f0=Z[8]|0,W0=f0&8191,H0=f0>>>13,n0=Z[9]|0,O0=n0&8191,D0=n0>>>13,t0=Y[0]|0,z0=t0&8191,A0=t0>>>13,AU=Y[1]|0,L0=AU&8191,k0=AU>>>13,zU=Y[2]|0,j0=zU&8191,M0=zU>>>13,DU=Y[3]|0,v0=DU&8191,R0=DU>>>13,KU=Y[4]|0,_0=KU&8191,B0=KU>>>13,OU=Y[5]|0,q0=OU&8191,g=OU>>>13,l=Y[6]|0,a=l&8191,X0=l>>>13,w0=Y[7]|0,F0=w0&8191,T0=w0>>>13,m0=Y[8]|0,S0=m0&8191,x0=m0>>>13,TU=Y[9]|0,P0=TU&8191,C0=TU>>>13;J.negative=U.negative^Q.negative,J.length=19,G=Math.imul(A,z0),X=Math.imul(A,A0),X=X+Math.imul(B,z0)|0,$=Math.imul(B,A0);var s0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,G=Math.imul(p,z0),X=Math.imul(p,A0),X=X+Math.imul(n,z0)|0,$=Math.imul(n,A0),G=G+Math.imul(A,L0)|0,X=X+Math.imul(A,k0)|0,X=X+Math.imul(B,L0)|0,$=$+Math.imul(B,k0)|0;var c0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(c0>>>26)|0,c0&=67108863,G=Math.imul(r,z0),X=Math.imul(r,A0),X=X+Math.imul(d,z0)|0,$=Math.imul(d,A0),G=G+Math.imul(p,L0)|0,X=X+Math.imul(p,k0)|0,X=X+Math.imul(n,L0)|0,$=$+Math.imul(n,k0)|0,G=G+Math.imul(A,j0)|0,X=X+Math.imul(A,M0)|0,X=X+Math.imul(B,j0)|0,$=$+Math.imul(B,M0)|0;var y0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(y0>>>26)|0,y0&=67108863,G=Math.imul(m,z0),X=Math.imul(m,A0),X=X+Math.imul(i,z0)|0,$=Math.imul(i,A0),G=G+Math.imul(r,L0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(d,L0)|0,$=$+Math.imul(d,k0)|0,G=G+Math.imul(p,j0)|0,X=X+Math.imul(p,M0)|0,X=X+Math.imul(n,j0)|0,$=$+Math.imul(n,M0)|0,G=G+Math.imul(A,v0)|0,X=X+Math.imul(A,R0)|0,X=X+Math.imul(B,v0)|0,$=$+Math.imul(B,R0)|0;var l0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(l0>>>26)|0,l0&=67108863,G=Math.imul(y,z0),X=Math.imul(y,A0),X=X+Math.imul(h,z0)|0,$=Math.imul(h,A0),G=G+Math.imul(m,L0)|0,X=X+Math.imul(m,k0)|0,X=X+Math.imul(i,L0)|0,$=$+Math.imul(i,k0)|0,G=G+Math.imul(r,j0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(d,j0)|0,$=$+Math.imul(d,M0)|0,G=G+Math.imul(p,v0)|0,X=X+Math.imul(p,R0)|0,X=X+Math.imul(n,v0)|0,$=$+Math.imul(n,R0)|0,G=G+Math.imul(A,_0)|0,X=X+Math.imul(A,B0)|0,X=X+Math.imul(B,_0)|0,$=$+Math.imul(B,B0)|0;var b0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(b0>>>26)|0,b0&=67108863,G=Math.imul(t,z0),X=Math.imul(t,A0),X=X+Math.imul(e,z0)|0,$=Math.imul(e,A0),G=G+Math.imul(y,L0)|0,X=X+Math.imul(y,k0)|0,X=X+Math.imul(h,L0)|0,$=$+Math.imul(h,k0)|0,G=G+Math.imul(m,j0)|0,X=X+Math.imul(m,M0)|0,X=X+Math.imul(i,j0)|0,$=$+Math.imul(i,M0)|0,G=G+Math.imul(r,v0)|0,X=X+Math.imul(r,R0)|0,X=X+Math.imul(d,v0)|0,$=$+Math.imul(d,R0)|0,G=G+Math.imul(p,_0)|0,X=X+Math.imul(p,B0)|0,X=X+Math.imul(n,_0)|0,$=$+Math.imul(n,B0)|0,G=G+Math.imul(A,q0)|0,X=X+Math.imul(A,g)|0,X=X+Math.imul(B,q0)|0,$=$+Math.imul(B,g)|0;var r0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,G=Math.imul(c,z0),X=Math.imul(c,A0),X=X+Math.imul(o,z0)|0,$=Math.imul(o,A0),G=G+Math.imul(t,L0)|0,X=X+Math.imul(t,k0)|0,X=X+Math.imul(e,L0)|0,$=$+Math.imul(e,k0)|0,G=G+Math.imul(y,j0)|0,X=X+Math.imul(y,M0)|0,X=X+Math.imul(h,j0)|0,$=$+Math.imul(h,M0)|0,G=G+Math.imul(m,v0)|0,X=X+Math.imul(m,R0)|0,X=X+Math.imul(i,v0)|0,$=$+Math.imul(i,R0)|0,G=G+Math.imul(r,_0)|0,X=X+Math.imul(r,B0)|0,X=X+Math.imul(d,_0)|0,$=$+Math.imul(d,B0)|0,G=G+Math.imul(p,q0)|0,X=X+Math.imul(p,g)|0,X=X+Math.imul(n,q0)|0,$=$+Math.imul(n,g)|0,G=G+Math.imul(A,a)|0,X=X+Math.imul(A,X0)|0,X=X+Math.imul(B,a)|0,$=$+Math.imul(B,X0)|0;var a0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,G=Math.imul(s,z0),X=Math.imul(s,A0),X=X+Math.imul(Z0,z0)|0,$=Math.imul(Z0,A0),G=G+Math.imul(c,L0)|0,X=X+Math.imul(c,k0)|0,X=X+Math.imul(o,L0)|0,$=$+Math.imul(o,k0)|0,G=G+Math.imul(t,j0)|0,X=X+Math.imul(t,M0)|0,X=X+Math.imul(e,j0)|0,$=$+Math.imul(e,M0)|0,G=G+Math.imul(y,v0)|0,X=X+Math.imul(y,R0)|0,X=X+Math.imul(h,v0)|0,$=$+Math.imul(h,R0)|0,G=G+Math.imul(m,_0)|0,X=X+Math.imul(m,B0)|0,X=X+Math.imul(i,_0)|0,$=$+Math.imul(i,B0)|0,G=G+Math.imul(r,q0)|0,X=X+Math.imul(r,g)|0,X=X+Math.imul(d,q0)|0,$=$+Math.imul(d,g)|0,G=G+Math.imul(p,a)|0,X=X+Math.imul(p,X0)|0,X=X+Math.imul(n,a)|0,$=$+Math.imul(n,X0)|0,G=G+Math.imul(A,F0)|0,X=X+Math.imul(A,T0)|0,X=X+Math.imul(B,F0)|0,$=$+Math.imul(B,T0)|0;var e0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,G=Math.imul(W0,z0),X=Math.imul(W0,A0),X=X+Math.imul(H0,z0)|0,$=Math.imul(H0,A0),G=G+Math.imul(s,L0)|0,X=X+Math.imul(s,k0)|0,X=X+Math.imul(Z0,L0)|0,$=$+Math.imul(Z0,k0)|0,G=G+Math.imul(c,j0)|0,X=X+Math.imul(c,M0)|0,X=X+Math.imul(o,j0)|0,$=$+Math.imul(o,M0)|0,G=G+Math.imul(t,v0)|0,X=X+Math.imul(t,R0)|0,X=X+Math.imul(e,v0)|0,$=$+Math.imul(e,R0)|0,G=G+Math.imul(y,_0)|0,X=X+Math.imul(y,B0)|0,X=X+Math.imul(h,_0)|0,$=$+Math.imul(h,B0)|0,G=G+Math.imul(m,q0)|0,X=X+Math.imul(m,g)|0,X=X+Math.imul(i,q0)|0,$=$+Math.imul(i,g)|0,G=G+Math.imul(r,a)|0,X=X+Math.imul(r,X0)|0,X=X+Math.imul(d,a)|0,$=$+Math.imul(d,X0)|0,G=G+Math.imul(p,F0)|0,X=X+Math.imul(p,T0)|0,X=X+Math.imul(n,F0)|0,$=$+Math.imul(n,T0)|0,G=G+Math.imul(A,S0)|0,X=X+Math.imul(A,x0)|0,X=X+Math.imul(B,S0)|0,$=$+Math.imul(B,x0)|0;var i0=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,G=Math.imul(O0,z0),X=Math.imul(O0,A0),X=X+Math.imul(D0,z0)|0,$=Math.imul(D0,A0),G=G+Math.imul(W0,L0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(H0,L0)|0,$=$+Math.imul(H0,k0)|0,G=G+Math.imul(s,j0)|0,X=X+Math.imul(s,M0)|0,X=X+Math.imul(Z0,j0)|0,$=$+Math.imul(Z0,M0)|0,G=G+Math.imul(c,v0)|0,X=X+Math.imul(c,R0)|0,X=X+Math.imul(o,v0)|0,$=$+Math.imul(o,R0)|0,G=G+Math.imul(t,_0)|0,X=X+Math.imul(t,B0)|0,X=X+Math.imul(e,_0)|0,$=$+Math.imul(e,B0)|0,G=G+Math.imul(y,q0)|0,X=X+Math.imul(y,g)|0,X=X+Math.imul(h,q0)|0,$=$+Math.imul(h,g)|0,G=G+Math.imul(m,a)|0,X=X+Math.imul(m,X0)|0,X=X+Math.imul(i,a)|0,$=$+Math.imul(i,X0)|0,G=G+Math.imul(r,F0)|0,X=X+Math.imul(r,T0)|0,X=X+Math.imul(d,F0)|0,$=$+Math.imul(d,T0)|0,G=G+Math.imul(p,S0)|0,X=X+Math.imul(p,x0)|0,X=X+Math.imul(n,S0)|0,$=$+Math.imul(n,x0)|0,G=G+Math.imul(A,P0)|0,X=X+Math.imul(A,C0)|0,X=X+Math.imul(B,P0)|0,$=$+Math.imul(B,C0)|0;var UU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(UU>>>26)|0,UU&=67108863,G=Math.imul(O0,L0),X=Math.imul(O0,k0),X=X+Math.imul(D0,L0)|0,$=Math.imul(D0,k0),G=G+Math.imul(W0,j0)|0,X=X+Math.imul(W0,M0)|0,X=X+Math.imul(H0,j0)|0,$=$+Math.imul(H0,M0)|0,G=G+Math.imul(s,v0)|0,X=X+Math.imul(s,R0)|0,X=X+Math.imul(Z0,v0)|0,$=$+Math.imul(Z0,R0)|0,G=G+Math.imul(c,_0)|0,X=X+Math.imul(c,B0)|0,X=X+Math.imul(o,_0)|0,$=$+Math.imul(o,B0)|0,G=G+Math.imul(t,q0)|0,X=X+Math.imul(t,g)|0,X=X+Math.imul(e,q0)|0,$=$+Math.imul(e,g)|0,G=G+Math.imul(y,a)|0,X=X+Math.imul(y,X0)|0,X=X+Math.imul(h,a)|0,$=$+Math.imul(h,X0)|0,G=G+Math.imul(m,F0)|0,X=X+Math.imul(m,T0)|0,X=X+Math.imul(i,F0)|0,$=$+Math.imul(i,T0)|0,G=G+Math.imul(r,S0)|0,X=X+Math.imul(r,x0)|0,X=X+Math.imul(d,S0)|0,$=$+Math.imul(d,x0)|0,G=G+Math.imul(p,P0)|0,X=X+Math.imul(p,C0)|0,X=X+Math.imul(n,P0)|0,$=$+Math.imul(n,C0)|0;var XU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(XU>>>26)|0,XU&=67108863,G=Math.imul(O0,j0),X=Math.imul(O0,M0),X=X+Math.imul(D0,j0)|0,$=Math.imul(D0,M0),G=G+Math.imul(W0,v0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(H0,v0)|0,$=$+Math.imul(H0,R0)|0,G=G+Math.imul(s,_0)|0,X=X+Math.imul(s,B0)|0,X=X+Math.imul(Z0,_0)|0,$=$+Math.imul(Z0,B0)|0,G=G+Math.imul(c,q0)|0,X=X+Math.imul(c,g)|0,X=X+Math.imul(o,q0)|0,$=$+Math.imul(o,g)|0,G=G+Math.imul(t,a)|0,X=X+Math.imul(t,X0)|0,X=X+Math.imul(e,a)|0,$=$+Math.imul(e,X0)|0,G=G+Math.imul(y,F0)|0,X=X+Math.imul(y,T0)|0,X=X+Math.imul(h,F0)|0,$=$+Math.imul(h,T0)|0,G=G+Math.imul(m,S0)|0,X=X+Math.imul(m,x0)|0,X=X+Math.imul(i,S0)|0,$=$+Math.imul(i,x0)|0,G=G+Math.imul(r,P0)|0,X=X+Math.imul(r,C0)|0,X=X+Math.imul(d,P0)|0,$=$+Math.imul(d,C0)|0;var ZU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,G=Math.imul(O0,v0),X=Math.imul(O0,R0),X=X+Math.imul(D0,v0)|0,$=Math.imul(D0,R0),G=G+Math.imul(W0,_0)|0,X=X+Math.imul(W0,B0)|0,X=X+Math.imul(H0,_0)|0,$=$+Math.imul(H0,B0)|0,G=G+Math.imul(s,q0)|0,X=X+Math.imul(s,g)|0,X=X+Math.imul(Z0,q0)|0,$=$+Math.imul(Z0,g)|0,G=G+Math.imul(c,a)|0,X=X+Math.imul(c,X0)|0,X=X+Math.imul(o,a)|0,$=$+Math.imul(o,X0)|0,G=G+Math.imul(t,F0)|0,X=X+Math.imul(t,T0)|0,X=X+Math.imul(e,F0)|0,$=$+Math.imul(e,T0)|0,G=G+Math.imul(y,S0)|0,X=X+Math.imul(y,x0)|0,X=X+Math.imul(h,S0)|0,$=$+Math.imul(h,x0)|0,G=G+Math.imul(m,P0)|0,X=X+Math.imul(m,C0)|0,X=X+Math.imul(i,P0)|0,$=$+Math.imul(i,C0)|0;var QU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(QU>>>26)|0,QU&=67108863,G=Math.imul(O0,_0),X=Math.imul(O0,B0),X=X+Math.imul(D0,_0)|0,$=Math.imul(D0,B0),G=G+Math.imul(W0,q0)|0,X=X+Math.imul(W0,g)|0,X=X+Math.imul(H0,q0)|0,$=$+Math.imul(H0,g)|0,G=G+Math.imul(s,a)|0,X=X+Math.imul(s,X0)|0,X=X+Math.imul(Z0,a)|0,$=$+Math.imul(Z0,X0)|0,G=G+Math.imul(c,F0)|0,X=X+Math.imul(c,T0)|0,X=X+Math.imul(o,F0)|0,$=$+Math.imul(o,T0)|0,G=G+Math.imul(t,S0)|0,X=X+Math.imul(t,x0)|0,X=X+Math.imul(e,S0)|0,$=$+Math.imul(e,x0)|0,G=G+Math.imul(y,P0)|0,X=X+Math.imul(y,C0)|0,X=X+Math.imul(h,P0)|0,$=$+Math.imul(h,C0)|0;var YU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(YU>>>26)|0,YU&=67108863,G=Math.imul(O0,q0),X=Math.imul(O0,g),X=X+Math.imul(D0,q0)|0,$=Math.imul(D0,g),G=G+Math.imul(W0,a)|0,X=X+Math.imul(W0,X0)|0,X=X+Math.imul(H0,a)|0,$=$+Math.imul(H0,X0)|0,G=G+Math.imul(s,F0)|0,X=X+Math.imul(s,T0)|0,X=X+Math.imul(Z0,F0)|0,$=$+Math.imul(Z0,T0)|0,G=G+Math.imul(c,S0)|0,X=X+Math.imul(c,x0)|0,X=X+Math.imul(o,S0)|0,$=$+Math.imul(o,x0)|0,G=G+Math.imul(t,P0)|0,X=X+Math.imul(t,C0)|0,X=X+Math.imul(e,P0)|0,$=$+Math.imul(e,C0)|0;var JU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(JU>>>26)|0,JU&=67108863,G=Math.imul(O0,a),X=Math.imul(O0,X0),X=X+Math.imul(D0,a)|0,$=Math.imul(D0,X0),G=G+Math.imul(W0,F0)|0,X=X+Math.imul(W0,T0)|0,X=X+Math.imul(H0,F0)|0,$=$+Math.imul(H0,T0)|0,G=G+Math.imul(s,S0)|0,X=X+Math.imul(s,x0)|0,X=X+Math.imul(Z0,S0)|0,$=$+Math.imul(Z0,x0)|0,G=G+Math.imul(c,P0)|0,X=X+Math.imul(c,C0)|0,X=X+Math.imul(o,P0)|0,$=$+Math.imul(o,C0)|0;var VU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(VU>>>26)|0,VU&=67108863,G=Math.imul(O0,F0),X=Math.imul(O0,T0),X=X+Math.imul(D0,F0)|0,$=Math.imul(D0,T0),G=G+Math.imul(W0,S0)|0,X=X+Math.imul(W0,x0)|0,X=X+Math.imul(H0,S0)|0,$=$+Math.imul(H0,x0)|0,G=G+Math.imul(s,P0)|0,X=X+Math.imul(s,C0)|0,X=X+Math.imul(Z0,P0)|0,$=$+Math.imul(Z0,C0)|0;var GU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(GU>>>26)|0,GU&=67108863,G=Math.imul(O0,S0),X=Math.imul(O0,x0),X=X+Math.imul(D0,S0)|0,$=Math.imul(D0,x0),G=G+Math.imul(W0,P0)|0,X=X+Math.imul(W0,C0)|0,X=X+Math.imul(H0,P0)|0,$=$+Math.imul(H0,C0)|0;var IU=(F+G|0)+((X&8191)<<13)|0;F=($+(X>>>13)|0)+(IU>>>26)|0,IU&=67108863,G=Math.imul(O0,P0),X=Math.imul(O0,C0),X=X+Math.imul(D0,P0)|0,$=Math.imul(D0,C0);var $U=(F+G|0)+((X&8191)<<13)|0;if(F=($+(X>>>13)|0)+($U>>>26)|0,$U&=67108863,K[0]=s0,K[1]=c0,K[2]=y0,K[3]=l0,K[4]=b0,K[5]=r0,K[6]=a0,K[7]=e0,K[8]=i0,K[9]=UU,K[10]=XU,K[11]=ZU,K[12]=QU,K[13]=YU,K[14]=JU,K[15]=VU,K[16]=GU,K[17]=IU,K[18]=$U,F!==0)K[19]=F,J.length++;return J};if(!Math.imul)k=_;function j(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var Z=0,Y=0;for(var K=0;K<J.length-1;K++){var F=Y;Y=0;var G=Z&67108863,X=Math.min(K,Q.length-1);for(var $=Math.max(0,K-U.length+1);$<=X;$++){var M=K-$,A=U.words[M]|0,B=Q.words[$]|0,w=A*B,p=w&67108863;F=F+(w/67108864|0)|0,p=p+G|0,G=p&67108863,F=F+(p>>>26)|0,Y+=F>>>26,F&=67108863}J.words[K]=G,Z=F,F=Y}if(Z!==0)J.words[K]=Z;else J.length--;return J.strip()}function v(U,Q,J){var Z=new x;return Z.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,Z=this.length+U.length;if(this.length===10&&U.length===10)J=k(this,U,Q);else if(Z<63)J=_(this,U,Q);else if(Z<1024)J=j(this,U,Q);else J=v(this,U,Q);return J};function x(U,Q){this.x=U,this.y=Q}x.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var Z=0;Z<U;Z++)Q[Z]=this.revBin(Z,J,U);return Q},x.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var Z=0;for(var Y=0;Y<Q;Y++)Z|=(U&1)<<Q-Y-1,U>>=1;return Z},x.prototype.permute=function(U,Q,J,Z,Y,K){for(var F=0;F<K;F++)Z[F]=Q[U[F]],Y[F]=J[U[F]]},x.prototype.transform=function(U,Q,J,Z,Y,K){this.permute(K,U,Q,J,Z,Y);for(var F=1;F<Y;F<<=1){var G=F<<1,X=Math.cos(2*Math.PI/G),$=Math.sin(2*Math.PI/G);for(var M=0;M<Y;M+=G){var A=X,B=$;for(var w=0;w<F;w++){var p=J[M+w],n=Z[M+w],K0=J[M+w+F],r=Z[M+w+F],d=A*K0-B*r;if(r=A*r+B*K0,K0=d,J[M+w]=p+K0,Z[M+w]=n+r,J[M+w+F]=p-K0,Z[M+w+F]=n-r,w!==G)d=X*A-$*B,B=X*B+$*A,A=d}}}},x.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,Z=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+Z},x.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var Z=0;Z<J/2;Z++){var Y=U[Z];U[Z]=U[J-Z-1],U[J-Z-1]=Y,Y=Q[Z],Q[Z]=-Q[J-Z-1],Q[J-Z-1]=-Y}},x.prototype.normalize13b=function(U,Q){var J=0;for(var Z=0;Z<Q/2;Z++){var Y=Math.round(U[2*Z+1]/Q)*8192+Math.round(U[2*Z]/Q)+J;if(U[Z]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},x.prototype.convert13b=function(U,Q,J,Z){var Y=0;for(var K=0;K<Q;K++)Y=Y+(U[K]|0),J[2*K]=Y&8191,Y=Y>>>13,J[2*K+1]=Y&8191,Y=Y>>>13;for(K=2*Q;K<Z;++K)J[K]=0;H(Y===0),H((Y&-8192)===0)},x.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},x.prototype.mulp=function(U,Q,J){var Z=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(Z),K=this.stub(Z),F=Array(Z),G=Array(Z),X=Array(Z),$=Array(Z),M=Array(Z),A=Array(Z),B=J.words;B.length=Z,this.convert13b(U.words,U.length,F,Z),this.convert13b(Q.words,Q.length,$,Z),this.transform(F,K,G,X,Z,Y),this.transform($,K,M,A,Z,Y);for(var w=0;w<Z;w++){var p=G[w]*M[w]-X[w]*A[w];X[w]=G[w]*A[w]+X[w]*M[w],G[w]=p}return this.conjugate(G,X,Z),this.transform(G,X,B,K,Z,Y),this.conjugate(B,K,Z),this.normalize13b(B,Z),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),v(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){H(typeof U==="number"),H(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var Z=(this.words[J]|0)*U,Y=(Z&67108863)+(Q&67108863);Q>>=26,Q+=Z/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=q(U);if(Q.length===0)return new V(1);var J=this;for(var Z=0;Z<Q.length;Z++,J=J.sqr())if(Q[Z]!==0)break;if(++Z<Q.length)for(var Y=J.sqr();Z<Q.length;Z++,Y=Y.sqr()){if(Q[Z]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var K=0;for(Y=0;Y<this.length;Y++){var F=this.words[Y]&Z,G=(this.words[Y]|0)-F<<Q;this.words[Y]=G|K,K=F>>>26-Q}if(K)this.words[Y]=K,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return H(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){H(typeof U==="number"&&U>=0);var Z;if(Q)Z=(Q-Q%26)/26;else Z=0;var Y=U%26,K=Math.min((U-Y)/26,this.length),F=67108863^67108863>>>Y<<Y,G=J;if(Z-=K,Z=Math.max(0,Z),G){for(var X=0;X<K;X++)G.words[X]=this.words[X];G.length=K}if(K===0);else if(this.length>K){this.length-=K;for(X=0;X<this.length;X++)this.words[X]=this.words[X+K]}else this.words[0]=0,this.length=1;var $=0;for(X=this.length-1;X>=0&&($!==0||X>=Z);X--){var M=this.words[X]|0;this.words[X]=$<<26-Y|M>>>Y,$=M&F}if(G&&$!==0)G.words[G.length++]=$;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return H(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&Z)},V.prototype.imaskn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(H(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var Z=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=Z}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var Z=U.length+J,Y;this._expand(Z);var K,F=0;for(Y=0;Y<U.length;Y++){K=(this.words[Y+J]|0)+F;var G=(U.words[Y]|0)*Q;K-=G&67108863,F=(K>>26)-(G/67108864|0),this.words[Y+J]=K&67108863}for(;Y<this.length-J;Y++)K=(this.words[Y+J]|0)+F,F=K>>26,this.words[Y+J]=K&67108863;if(F===0)return this.strip();H(F===-1),F=0;for(Y=0;Y<this.length;Y++)K=-(this.words[Y]|0)+F,F=K>>26,this.words[Y]=K&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,Z=this.clone(),Y=U,K=Y.words[Y.length-1]|0,F=this._countBits(K);if(J=26-F,J!==0)Y=Y.ushln(J),Z.iushln(J),K=Y.words[Y.length-1]|0;var G=Z.length-Y.length,X;if(Q!=="mod"){X=new V(null),X.length=G+1,X.words=Array(X.length);for(var $=0;$<X.length;$++)X.words[$]=0}var M=Z.clone()._ishlnsubmul(Y,1,G);if(M.negative===0){if(Z=M,X)X.words[G]=1}for(var A=G-1;A>=0;A--){var B=(Z.words[Y.length+A]|0)*67108864+(Z.words[Y.length+A-1]|0);B=Math.min(B/K|0,67108863),Z._ishlnsubmul(Y,B,A);while(Z.negative!==0)if(B--,Z.negative=0,Z._ishlnsubmul(Y,1,A),!Z.isZero())Z.negative^=1;if(X)X.words[A]=B}if(X)X.strip();if(Z.strip(),Q!=="div"&&J!==0)Z.iushrn(J);return{div:X||null,mod:Z}},V.prototype.divmod=function(U,Q,J){if(H(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var Z,Y,K;if(this.negative!==0&&U.negative===0){if(K=this.neg().divmod(U,Q),Q!=="mod")Z=K.div.neg();if(Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:Z,mod:Y}}if(this.negative===0&&U.negative!==0){if(K=this.divmod(U.neg(),Q),Q!=="mod")Z=K.div.neg();return{div:Z,mod:K.mod}}if((this.negative&U.negative)!==0){if(K=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:K.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,Z=U.ushrn(1),Y=U.andln(1),K=J.cmp(Z);if(K<0||Y===1&&K===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){H(U<=67108863);var Q=67108864%U,J=0;for(var Z=this.length-1;Z>=0;Z--)J=(Q*J+(this.words[Z]|0))%U;return J},V.prototype.idivn=function(U){H(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var Z=(this.words[J]|0)+Q*67108864;this.words[J]=Z/U|0,Q=Z%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=new V(0),F=new V(1),G=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++G;var X=J.clone(),$=Q.clone();while(!Q.isZero()){for(var M=0,A=1;(Q.words[0]&A)===0&&M<26;++M,A<<=1);if(M>0){Q.iushrn(M);while(M-- >0){if(Z.isOdd()||Y.isOdd())Z.iadd(X),Y.isub($);Z.iushrn(1),Y.iushrn(1)}}for(var B=0,w=1;(J.words[0]&w)===0&&B<26;++B,w<<=1);if(B>0){J.iushrn(B);while(B-- >0){if(K.isOdd()||F.isOdd())K.iadd(X),F.isub($);K.iushrn(1),F.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(K),Y.isub(F);else J.isub(Q),K.isub(Z),F.isub(Y)}return{a:K,b:F,gcd:J.iushln(G)}},V.prototype._invmp=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var F=0,G=1;(Q.words[0]&G)===0&&F<26;++F,G<<=1);if(F>0){Q.iushrn(F);while(F-- >0){if(Z.isOdd())Z.iadd(K);Z.iushrn(1)}}for(var X=0,$=1;(J.words[0]&$)===0&&X<26;++X,$<<=1);if(X>0){J.iushrn(X);while(X-- >0){if(Y.isOdd())Y.iadd(K);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(Y);else J.isub(Q),Y.isub(Z)}var M;if(Q.cmpn(1)===0)M=Z;else M=Y;if(M.cmpn(0)<0)M.iadd(U);return M},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var Z=0;Q.isEven()&&J.isEven();Z++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var K=Q;Q=J,J=K}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(Z)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){H(typeof U==="number");var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=Z,this;var Y=Z;for(var K=J;Y!==0&&K<this.length;K++){var F=this.words[K]|0;F+=Y,Y=F>>>26,F&=67108863,this.words[K]=F}if(Y!==0)this.words[K]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;H(U<=67108863,"Number is too big");var Z=this.words[0]|0;J=Z===U?0:Z<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var Z=this.words[J]|0,Y=U.words[J]|0;if(Z===Y)continue;if(Z<Y)Q=-1;else if(Z>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new u(U)},V.prototype.toRed=function(U){return H(!this.red,"Already a number in reduction context"),H(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return H(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return H(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return H(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return H(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return H(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return H(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return H(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return H(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return H(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return H(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return H(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return H(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return H(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var N={k256:null,p224:null,p192:null,p25519:null};function f(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}f.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},f.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var Z=J<this.n?-1:Q.ucmp(this.p);if(Z===0)Q.words[0]=0,Q.length=1;else if(Z>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},f.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},f.prototype.imulK=function(U){return U.imul(this.k)};function b(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}L(b,f),b.prototype.split=function(U,Q){var J=4194303,Z=Math.min(U.length,9);for(var Y=0;Y<Z;Y++)Q.words[Y]=U.words[Y];if(Q.length=Z,U.length<=9){U.words[0]=0,U.length=1;return}var K=U.words[9];Q.words[Q.length++]=K&J;for(Y=10;Y<U.length;Y++){var F=U.words[Y]|0;U.words[Y-10]=(F&J)<<4|K>>>22,K=F}if(K>>>=22,U.words[Y-10]=K,K===0&&U.length>10)U.length-=10;else U.length-=9},b.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var Z=U.words[J]|0;Q+=Z*977,U.words[J]=Q&67108863,Q=Z*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function Q0(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}L(Q0,f);function G0(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}L(G0,f);function Y0(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}L(Y0,f),Y0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var Z=(U.words[J]|0)*19+Q,Y=Z&67108863;Z>>>=26,U.words[J]=Y,Q=Z}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(N[U])return N[U];var Q;if(U==="k256")Q=new b;else if(U==="p224")Q=new Q0;else if(U==="p192")Q=new G0;else if(U==="p25519")Q=new Y0;else throw Error("Unknown prime "+U);return N[U]=Q,Q};function u(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else H(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}u.prototype._verify1=function(U){H(U.negative===0,"red works only with positives"),H(U.red,"red works only with red numbers")},u.prototype._verify2=function(U,Q){H((U.negative|Q.negative)===0,"red works only with positives"),H(U.red&&U.red===Q.red,"red works only with red numbers")},u.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},u.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},u.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},u.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},u.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},u.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},u.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},u.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},u.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},u.prototype.isqr=function(U){return this.imul(U,U.clone())},u.prototype.sqr=function(U){return this.mul(U,U)},u.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(H(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var Z=this.m.subn(1),Y=0;while(!Z.isZero()&&Z.andln(1)===0)Y++,Z.iushrn(1);H(!Z.isZero());var K=new V(1).toRed(this),F=K.redNeg(),G=this.m.subn(1).iushrn(1),X=this.m.bitLength();X=new V(2*X*X).toRed(this);while(this.pow(X,G).cmp(F)!==0)X.redIAdd(F);var $=this.pow(X,Z),M=this.pow(U,Z.addn(1).iushrn(1)),A=this.pow(U,Z),B=Y;while(A.cmp(K)!==0){var w=A;for(var p=0;w.cmp(K)!==0;p++)w=w.redSqr();H(p<B);var n=this.pow($,new V(1).iushln(B-p-1));M=M.redMul(n),$=n.redSqr(),A=A.redMul($),B=p}return M},u.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},u.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,Z=Array(1<<J);Z[0]=new V(1).toRed(this),Z[1]=U;for(var Y=2;Y<Z.length;Y++)Z[Y]=this.mul(Z[Y-1],U);var K=Z[0],F=0,G=0,X=Q.bitLength()%26;if(X===0)X=26;for(Y=Q.length-1;Y>=0;Y--){var $=Q.words[Y];for(var M=X-1;M>=0;M--){var A=$>>M&1;if(K!==Z[0])K=this.sqr(K);if(A===0&&F===0){G=0;continue}if(F<<=1,F|=A,G++,G!==J&&(Y!==0||M!==0))continue;K=this.mul(K,Z[F]),G=0,F=0}X=26}return K},u.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},u.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new U0(U)};function U0(U){if(u.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}L(U0,u),U0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},U0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},U0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},U0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},U0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof O>"u"||O,I)}),oQ=I0((I,O)=>{var W=HZ(),T=EU().Buffer;function H(L,V){return T.from(L.toRed(W.mont(V.modulus)).redPow(new W(V.publicExponent)).fromRed().toArray())}O.exports=H}),oV=I0((I,O)=>{(function(W,T){function H(Z,Y){if(!Z)throw Error(Y||"Assertion failed")}function L(Z,Y){Z.super_=Y;var K=function(){};K.prototype=Y.prototype,Z.prototype=new K,Z.prototype.constructor=Z}function V(Z,Y,K){if(V.isBN(Z))return Z;if(this.negative=0,this.words=null,this.length=0,this.red=null,Z!==null){if(Y==="le"||Y==="be")K=Y,Y=10;this._init(Z||0,Y||10,K||"be")}}if(typeof W==="object")W.exports=V;else T.BN=V;V.BN=V,V.wordSize=26;var P;try{if(typeof window<"u"&&typeof window.Buffer<"u")P=window.Buffer;else P=(HU(),h0(WU)).Buffer}catch(Z){}V.isBN=function(Z){if(Z instanceof V)return!0;return Z!==null&&typeof Z==="object"&&Z.constructor.wordSize===V.wordSize&&Array.isArray(Z.words)},V.max=function(Z,Y){if(Z.cmp(Y)>0)return Z;return Y},V.min=function(Z,Y){if(Z.cmp(Y)<0)return Z;return Y},V.prototype._init=function(Z,Y,K){if(typeof Z==="number")return this._initNumber(Z,Y,K);if(typeof Z==="object")return this._initArray(Z,Y,K);if(Y==="hex")Y=16;H(Y===(Y|0)&&Y>=2&&Y<=36),Z=Z.toString().replace(/\s+/g,"");var F=0;if(Z[0]==="-")F++,this.negative=1;if(F<Z.length){if(Y===16)this._parseHex(Z,F,K);else if(this._parseBase(Z,Y,F),K==="le")this._initArray(this.toArray(),Y,K)}},V.prototype._initNumber=function(Z,Y,K){if(Z<0)this.negative=1,Z=-Z;if(Z<67108864)this.words=[Z&67108863],this.length=1;else if(Z<4503599627370496)this.words=[Z&67108863,Z/67108864&67108863],this.length=2;else H(Z<9007199254740992),this.words=[Z&67108863,Z/67108864&67108863,1],this.length=3;if(K!=="le")return;this._initArray(this.toArray(),Y,K)},V.prototype._initArray=function(Z,Y,K){if(H(typeof Z.length==="number"),Z.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Z.length/3),this.words=Array(this.length);for(var F=0;F<this.length;F++)this.words[F]=0;var G,X,$=0;if(K==="be"){for(F=Z.length-1,G=0;F>=0;F-=3)if(X=Z[F]|Z[F-1]<<8|Z[F-2]<<16,this.words[G]|=X<<$&67108863,this.words[G+1]=X>>>26-$&67108863,$+=24,$>=26)$-=26,G++}else if(K==="le"){for(F=0,G=0;F<Z.length;F+=3)if(X=Z[F]|Z[F+1]<<8|Z[F+2]<<16,this.words[G]|=X<<$&67108863,this.words[G+1]=X>>>26-$&67108863,$+=24,$>=26)$-=26,G++}return this._strip()};function S(Z,Y){var K=Z.charCodeAt(Y);if(K>=48&&K<=57)return K-48;else if(K>=65&&K<=70)return K-55;else if(K>=97&&K<=102)return K-87;else H(!1,"Invalid character in "+Z)}function E(Z,Y,K){var F=S(Z,K);if(K-1>=Y)F|=S(Z,K-1)<<4;return F}V.prototype._parseHex=function(Z,Y,K){this.length=Math.ceil((Z.length-Y)/6),this.words=Array(this.length);for(var F=0;F<this.length;F++)this.words[F]=0;var G=0,X=0,$;if(K==="be")for(F=Z.length-1;F>=Y;F-=2)if($=E(Z,Y,F)<<G,this.words[X]|=$&67108863,G>=18)G-=18,X+=1,this.words[X]|=$>>>26;else G+=8;else{var M=Z.length-Y;for(F=M%2===0?Y+1:Y;F<Z.length;F+=2)if($=E(Z,Y,F)<<G,this.words[X]|=$&67108863,G>=18)G-=18,X+=1,this.words[X]|=$>>>26;else G+=8}this._strip()};function C(Z,Y,K,F){var G=0,X=0,$=Math.min(Z.length,K);for(var M=Y;M<$;M++){var A=Z.charCodeAt(M)-48;if(G*=F,A>=49)X=A-49+10;else if(A>=17)X=A-17+10;else X=A;H(A>=0&&X<F,"Invalid character"),G+=X}return G}V.prototype._parseBase=function(Z,Y,K){this.words=[0],this.length=1;for(var F=0,G=1;G<=67108863;G*=Y)F++;F--,G=G/Y|0;var X=Z.length-K,$=X%F,M=Math.min(X,X-$)+K,A=0;for(var B=K;B<M;B+=F)if(A=C(Z,B,B+F,Y),this.imuln(G),this.words[0]+A<67108864)this.words[0]+=A;else this._iaddn(A);if($!==0){var w=1;A=C(Z,B,Z.length,Y);for(B=0;B<$;B++)w*=Y;if(this.imuln(w),this.words[0]+A<67108864)this.words[0]+=A;else this._iaddn(A)}this._strip()},V.prototype.copy=function(Z){Z.words=Array(this.length);for(var Y=0;Y<this.length;Y++)Z.words[Y]=this.words[Y];Z.length=this.length,Z.negative=this.negative,Z.red=this.red};function D(Z,Y){Z.words=Y.words,Z.length=Y.length,Z.negative=Y.negative,Z.red=Y.red}if(V.prototype._move=function(Z){D(Z,this)},V.prototype.clone=function(){var Z=new V(null);return this.copy(Z),Z},V.prototype._expand=function(Z){while(this.length<Z)this.words[this.length++]=0;return this},V.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{V.prototype[Symbol.for("nodejs.util.inspect.custom")]=z}catch(Z){V.prototype.inspect=z}else V.prototype.inspect=z;function z(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var R=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],q=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(V.prototype.toString=function(Z,Y){Z=Z||10,Y=Y|0||1;var K;if(Z===16||Z==="hex"){K="";var F=0,G=0;for(var X=0;X<this.length;X++){var $=this.words[X],M=(($<<F|G)&16777215).toString(16);if(G=$>>>24-F&16777215,F+=2,F>=26)F-=26,X--;if(G!==0||X!==this.length-1)K=R[6-M.length]+M+K;else K=M+K}if(G!==0)K=G.toString(16)+K;while(K.length%Y!==0)K="0"+K;if(this.negative!==0)K="-"+K;return K}if(Z===(Z|0)&&Z>=2&&Z<=36){var A=q[Z],B=_[Z];K="";var w=this.clone();w.negative=0;while(!w.isZero()){var p=w.modrn(B).toString(Z);if(w=w.idivn(B),!w.isZero())K=R[A-p.length]+p+K;else K=p+K}if(this.isZero())K="0"+K;while(K.length%Y!==0)K="0"+K;if(this.negative!==0)K="-"+K;return K}H(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var Z=this.words[0];if(this.length===2)Z+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Z+=4503599627370496+this.words[1]*67108864;else if(this.length>2)H(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Z:Z},V.prototype.toJSON=function(){return this.toString(16,2)},P)V.prototype.toBuffer=function(Z,Y){return this.toArrayLike(P,Z,Y)};V.prototype.toArray=function(Z,Y){return this.toArrayLike(Array,Z,Y)};var k=function(Z,Y){if(Z.allocUnsafe)return Z.allocUnsafe(Y);return new Z(Y)};if(V.prototype.toArrayLike=function(Z,Y,K){this._strip();var F=this.byteLength(),G=K||Math.max(1,F);H(F<=G,"byte array longer than desired length"),H(G>0,"Requested array length <= 0");var X=k(Z,G),$=Y==="le"?"LE":"BE";return this["_toArrayLike"+$](X,F),X},V.prototype._toArrayLikeLE=function(Z,Y){var K=0,F=0;for(var G=0,X=0;G<this.length;G++){var $=this.words[G]<<X|F;if(Z[K++]=$&255,K<Z.length)Z[K++]=$>>8&255;if(K<Z.length)Z[K++]=$>>16&255;if(X===6){if(K<Z.length)Z[K++]=$>>24&255;F=0,X=0}else F=$>>>24,X+=2}if(K<Z.length){Z[K++]=F;while(K<Z.length)Z[K++]=0}},V.prototype._toArrayLikeBE=function(Z,Y){var K=Z.length-1,F=0;for(var G=0,X=0;G<this.length;G++){var $=this.words[G]<<X|F;if(Z[K--]=$&255,K>=0)Z[K--]=$>>8&255;if(K>=0)Z[K--]=$>>16&255;if(X===6){if(K>=0)Z[K--]=$>>24&255;F=0,X=0}else F=$>>>24,X+=2}if(K>=0){Z[K--]=F;while(K>=0)Z[K--]=0}},Math.clz32)V.prototype._countBits=function(Z){return 32-Math.clz32(Z)};else V.prototype._countBits=function(Z){var Y=Z,K=0;if(Y>=4096)K+=13,Y>>>=13;if(Y>=64)K+=7,Y>>>=7;if(Y>=8)K+=4,Y>>>=4;if(Y>=2)K+=2,Y>>>=2;return K+Y};V.prototype._zeroBits=function(Z){if(Z===0)return 26;var Y=Z,K=0;if((Y&8191)===0)K+=13,Y>>>=13;if((Y&127)===0)K+=7,Y>>>=7;if((Y&15)===0)K+=4,Y>>>=4;if((Y&3)===0)K+=2,Y>>>=2;if((Y&1)===0)K++;return K},V.prototype.bitLength=function(){var Z=this.words[this.length-1],Y=this._countBits(Z);return(this.length-1)*26+Y};function j(Z){var Y=Array(Z.bitLength());for(var K=0;K<Y.length;K++){var F=K/26|0,G=K%26;Y[K]=Z.words[F]>>>G&1}return Y}V.prototype.zeroBits=function(){if(this.isZero())return 0;var Z=0;for(var Y=0;Y<this.length;Y++){var K=this._zeroBits(this.words[Y]);if(Z+=K,K!==26)break}return Z},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(Z){if(this.negative!==0)return this.abs().inotn(Z).iaddn(1);return this.clone()},V.prototype.fromTwos=function(Z){if(this.testn(Z-1))return this.notn(Z).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(Z){while(this.length<Z.length)this.words[this.length++]=0;for(var Y=0;Y<Z.length;Y++)this.words[Y]=this.words[Y]|Z.words[Y];return this._strip()},V.prototype.ior=function(Z){return H((this.negative|Z.negative)===0),this.iuor(Z)},V.prototype.or=function(Z){if(this.length>Z.length)return this.clone().ior(Z);return Z.clone().ior(this)},V.prototype.uor=function(Z){if(this.length>Z.length)return this.clone().iuor(Z);return Z.clone().iuor(this)},V.prototype.iuand=function(Z){var Y;if(this.length>Z.length)Y=Z;else Y=this;for(var K=0;K<Y.length;K++)this.words[K]=this.words[K]&Z.words[K];return this.length=Y.length,this._strip()},V.prototype.iand=function(Z){return H((this.negative|Z.negative)===0),this.iuand(Z)},V.prototype.and=function(Z){if(this.length>Z.length)return this.clone().iand(Z);return Z.clone().iand(this)},V.prototype.uand=function(Z){if(this.length>Z.length)return this.clone().iuand(Z);return Z.clone().iuand(this)},V.prototype.iuxor=function(Z){var Y,K;if(this.length>Z.length)Y=this,K=Z;else Y=Z,K=this;for(var F=0;F<K.length;F++)this.words[F]=Y.words[F]^K.words[F];if(this!==Y)for(;F<Y.length;F++)this.words[F]=Y.words[F];return this.length=Y.length,this._strip()},V.prototype.ixor=function(Z){return H((this.negative|Z.negative)===0),this.iuxor(Z)},V.prototype.xor=function(Z){if(this.length>Z.length)return this.clone().ixor(Z);return Z.clone().ixor(this)},V.prototype.uxor=function(Z){if(this.length>Z.length)return this.clone().iuxor(Z);return Z.clone().iuxor(this)},V.prototype.inotn=function(Z){H(typeof Z==="number"&&Z>=0);var Y=Math.ceil(Z/26)|0,K=Z%26;if(this._expand(Y),K>0)Y--;for(var F=0;F<Y;F++)this.words[F]=~this.words[F]&67108863;if(K>0)this.words[F]=~this.words[F]&67108863>>26-K;return this._strip()},V.prototype.notn=function(Z){return this.clone().inotn(Z)},V.prototype.setn=function(Z,Y){H(typeof Z==="number"&&Z>=0);var K=Z/26|0,F=Z%26;if(this._expand(K+1),Y)this.words[K]=this.words[K]|1<<F;else this.words[K]=this.words[K]&~(1<<F);return this._strip()},V.prototype.iadd=function(Z){var Y;if(this.negative!==0&&Z.negative===0)return this.negative=0,Y=this.isub(Z),this.negative^=1,this._normSign();else if(this.negative===0&&Z.negative!==0)return Z.negative=0,Y=this.isub(Z),Z.negative=1,Y._normSign();var K,F;if(this.length>Z.length)K=this,F=Z;else K=Z,F=this;var G=0;for(var X=0;X<F.length;X++)Y=(K.words[X]|0)+(F.words[X]|0)+G,this.words[X]=Y&67108863,G=Y>>>26;for(;G!==0&&X<K.length;X++)Y=(K.words[X]|0)+G,this.words[X]=Y&67108863,G=Y>>>26;if(this.length=K.length,G!==0)this.words[this.length]=G,this.length++;else if(K!==this)for(;X<K.length;X++)this.words[X]=K.words[X];return this},V.prototype.add=function(Z){var Y;if(Z.negative!==0&&this.negative===0)return Z.negative=0,Y=this.sub(Z),Z.negative^=1,Y;else if(Z.negative===0&&this.negative!==0)return this.negative=0,Y=Z.sub(this),this.negative=1,Y;if(this.length>Z.length)return this.clone().iadd(Z);return Z.clone().iadd(this)},V.prototype.isub=function(Z){if(Z.negative!==0){Z.negative=0;var Y=this.iadd(Z);return Z.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Z),this.negative=1,this._normSign();var K=this.cmp(Z);if(K===0)return this.negative=0,this.length=1,this.words[0]=0,this;var F,G;if(K>0)F=this,G=Z;else F=Z,G=this;var X=0;for(var $=0;$<G.length;$++)Y=(F.words[$]|0)-(G.words[$]|0)+X,X=Y>>26,this.words[$]=Y&67108863;for(;X!==0&&$<F.length;$++)Y=(F.words[$]|0)+X,X=Y>>26,this.words[$]=Y&67108863;if(X===0&&$<F.length&&F!==this)for(;$<F.length;$++)this.words[$]=F.words[$];if(this.length=Math.max(this.length,$),F!==this)this.negative=1;return this._strip()},V.prototype.sub=function(Z){return this.clone().isub(Z)};function v(Z,Y,K){K.negative=Y.negative^Z.negative;var F=Z.length+Y.length|0;K.length=F,F=F-1|0;var G=Z.words[0]|0,X=Y.words[0]|0,$=G*X,M=$&67108863,A=$/67108864|0;K.words[0]=M;for(var B=1;B<F;B++){var w=A>>>26,p=A&67108863,n=Math.min(B,Y.length-1);for(var K0=Math.max(0,B-Z.length+1);K0<=n;K0++){var r=B-K0|0;G=Z.words[r]|0,X=Y.words[K0]|0,$=G*X+p,w+=$/67108864|0,p=$&67108863}K.words[B]=p|0,A=w|0}if(A!==0)K.words[B]=A|0;else K.length--;return K._strip()}var x=function(Z,Y,K){var F=Z.words,G=Y.words,X=K.words,$=0,M,A,B,w=F[0]|0,p=w&8191,n=w>>>13,K0=F[1]|0,r=K0&8191,d=K0>>>13,J0=F[2]|0,m=J0&8191,i=J0>>>13,g0=F[3]|0,y=g0&8191,h=g0>>>13,V0=F[4]|0,t=V0&8191,e=V0>>>13,E0=F[5]|0,c=E0&8191,o=E0>>>13,N0=F[6]|0,s=N0&8191,Z0=N0>>>13,f0=F[7]|0,W0=f0&8191,H0=f0>>>13,n0=F[8]|0,O0=n0&8191,D0=n0>>>13,t0=F[9]|0,z0=t0&8191,A0=t0>>>13,AU=G[0]|0,L0=AU&8191,k0=AU>>>13,zU=G[1]|0,j0=zU&8191,M0=zU>>>13,DU=G[2]|0,v0=DU&8191,R0=DU>>>13,KU=G[3]|0,_0=KU&8191,B0=KU>>>13,OU=G[4]|0,q0=OU&8191,g=OU>>>13,l=G[5]|0,a=l&8191,X0=l>>>13,w0=G[6]|0,F0=w0&8191,T0=w0>>>13,m0=G[7]|0,S0=m0&8191,x0=m0>>>13,TU=G[8]|0,P0=TU&8191,C0=TU>>>13,s0=G[9]|0,c0=s0&8191,y0=s0>>>13;K.negative=Z.negative^Y.negative,K.length=19,M=Math.imul(p,L0),A=Math.imul(p,k0),A=A+Math.imul(n,L0)|0,B=Math.imul(n,k0);var l0=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(l0>>>26)|0,l0&=67108863,M=Math.imul(r,L0),A=Math.imul(r,k0),A=A+Math.imul(d,L0)|0,B=Math.imul(d,k0),M=M+Math.imul(p,j0)|0,A=A+Math.imul(p,M0)|0,A=A+Math.imul(n,j0)|0,B=B+Math.imul(n,M0)|0;var b0=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(b0>>>26)|0,b0&=67108863,M=Math.imul(m,L0),A=Math.imul(m,k0),A=A+Math.imul(i,L0)|0,B=Math.imul(i,k0),M=M+Math.imul(r,j0)|0,A=A+Math.imul(r,M0)|0,A=A+Math.imul(d,j0)|0,B=B+Math.imul(d,M0)|0,M=M+Math.imul(p,v0)|0,A=A+Math.imul(p,R0)|0,A=A+Math.imul(n,v0)|0,B=B+Math.imul(n,R0)|0;var r0=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(r0>>>26)|0,r0&=67108863,M=Math.imul(y,L0),A=Math.imul(y,k0),A=A+Math.imul(h,L0)|0,B=Math.imul(h,k0),M=M+Math.imul(m,j0)|0,A=A+Math.imul(m,M0)|0,A=A+Math.imul(i,j0)|0,B=B+Math.imul(i,M0)|0,M=M+Math.imul(r,v0)|0,A=A+Math.imul(r,R0)|0,A=A+Math.imul(d,v0)|0,B=B+Math.imul(d,R0)|0,M=M+Math.imul(p,_0)|0,A=A+Math.imul(p,B0)|0,A=A+Math.imul(n,_0)|0,B=B+Math.imul(n,B0)|0;var a0=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(a0>>>26)|0,a0&=67108863,M=Math.imul(t,L0),A=Math.imul(t,k0),A=A+Math.imul(e,L0)|0,B=Math.imul(e,k0),M=M+Math.imul(y,j0)|0,A=A+Math.imul(y,M0)|0,A=A+Math.imul(h,j0)|0,B=B+Math.imul(h,M0)|0,M=M+Math.imul(m,v0)|0,A=A+Math.imul(m,R0)|0,A=A+Math.imul(i,v0)|0,B=B+Math.imul(i,R0)|0,M=M+Math.imul(r,_0)|0,A=A+Math.imul(r,B0)|0,A=A+Math.imul(d,_0)|0,B=B+Math.imul(d,B0)|0,M=M+Math.imul(p,q0)|0,A=A+Math.imul(p,g)|0,A=A+Math.imul(n,q0)|0,B=B+Math.imul(n,g)|0;var e0=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(e0>>>26)|0,e0&=67108863,M=Math.imul(c,L0),A=Math.imul(c,k0),A=A+Math.imul(o,L0)|0,B=Math.imul(o,k0),M=M+Math.imul(t,j0)|0,A=A+Math.imul(t,M0)|0,A=A+Math.imul(e,j0)|0,B=B+Math.imul(e,M0)|0,M=M+Math.imul(y,v0)|0,A=A+Math.imul(y,R0)|0,A=A+Math.imul(h,v0)|0,B=B+Math.imul(h,R0)|0,M=M+Math.imul(m,_0)|0,A=A+Math.imul(m,B0)|0,A=A+Math.imul(i,_0)|0,B=B+Math.imul(i,B0)|0,M=M+Math.imul(r,q0)|0,A=A+Math.imul(r,g)|0,A=A+Math.imul(d,q0)|0,B=B+Math.imul(d,g)|0,M=M+Math.imul(p,a)|0,A=A+Math.imul(p,X0)|0,A=A+Math.imul(n,a)|0,B=B+Math.imul(n,X0)|0;var i0=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(i0>>>26)|0,i0&=67108863,M=Math.imul(s,L0),A=Math.imul(s,k0),A=A+Math.imul(Z0,L0)|0,B=Math.imul(Z0,k0),M=M+Math.imul(c,j0)|0,A=A+Math.imul(c,M0)|0,A=A+Math.imul(o,j0)|0,B=B+Math.imul(o,M0)|0,M=M+Math.imul(t,v0)|0,A=A+Math.imul(t,R0)|0,A=A+Math.imul(e,v0)|0,B=B+Math.imul(e,R0)|0,M=M+Math.imul(y,_0)|0,A=A+Math.imul(y,B0)|0,A=A+Math.imul(h,_0)|0,B=B+Math.imul(h,B0)|0,M=M+Math.imul(m,q0)|0,A=A+Math.imul(m,g)|0,A=A+Math.imul(i,q0)|0,B=B+Math.imul(i,g)|0,M=M+Math.imul(r,a)|0,A=A+Math.imul(r,X0)|0,A=A+Math.imul(d,a)|0,B=B+Math.imul(d,X0)|0,M=M+Math.imul(p,F0)|0,A=A+Math.imul(p,T0)|0,A=A+Math.imul(n,F0)|0,B=B+Math.imul(n,T0)|0;var UU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(UU>>>26)|0,UU&=67108863,M=Math.imul(W0,L0),A=Math.imul(W0,k0),A=A+Math.imul(H0,L0)|0,B=Math.imul(H0,k0),M=M+Math.imul(s,j0)|0,A=A+Math.imul(s,M0)|0,A=A+Math.imul(Z0,j0)|0,B=B+Math.imul(Z0,M0)|0,M=M+Math.imul(c,v0)|0,A=A+Math.imul(c,R0)|0,A=A+Math.imul(o,v0)|0,B=B+Math.imul(o,R0)|0,M=M+Math.imul(t,_0)|0,A=A+Math.imul(t,B0)|0,A=A+Math.imul(e,_0)|0,B=B+Math.imul(e,B0)|0,M=M+Math.imul(y,q0)|0,A=A+Math.imul(y,g)|0,A=A+Math.imul(h,q0)|0,B=B+Math.imul(h,g)|0,M=M+Math.imul(m,a)|0,A=A+Math.imul(m,X0)|0,A=A+Math.imul(i,a)|0,B=B+Math.imul(i,X0)|0,M=M+Math.imul(r,F0)|0,A=A+Math.imul(r,T0)|0,A=A+Math.imul(d,F0)|0,B=B+Math.imul(d,T0)|0,M=M+Math.imul(p,S0)|0,A=A+Math.imul(p,x0)|0,A=A+Math.imul(n,S0)|0,B=B+Math.imul(n,x0)|0;var XU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(XU>>>26)|0,XU&=67108863,M=Math.imul(O0,L0),A=Math.imul(O0,k0),A=A+Math.imul(D0,L0)|0,B=Math.imul(D0,k0),M=M+Math.imul(W0,j0)|0,A=A+Math.imul(W0,M0)|0,A=A+Math.imul(H0,j0)|0,B=B+Math.imul(H0,M0)|0,M=M+Math.imul(s,v0)|0,A=A+Math.imul(s,R0)|0,A=A+Math.imul(Z0,v0)|0,B=B+Math.imul(Z0,R0)|0,M=M+Math.imul(c,_0)|0,A=A+Math.imul(c,B0)|0,A=A+Math.imul(o,_0)|0,B=B+Math.imul(o,B0)|0,M=M+Math.imul(t,q0)|0,A=A+Math.imul(t,g)|0,A=A+Math.imul(e,q0)|0,B=B+Math.imul(e,g)|0,M=M+Math.imul(y,a)|0,A=A+Math.imul(y,X0)|0,A=A+Math.imul(h,a)|0,B=B+Math.imul(h,X0)|0,M=M+Math.imul(m,F0)|0,A=A+Math.imul(m,T0)|0,A=A+Math.imul(i,F0)|0,B=B+Math.imul(i,T0)|0,M=M+Math.imul(r,S0)|0,A=A+Math.imul(r,x0)|0,A=A+Math.imul(d,S0)|0,B=B+Math.imul(d,x0)|0,M=M+Math.imul(p,P0)|0,A=A+Math.imul(p,C0)|0,A=A+Math.imul(n,P0)|0,B=B+Math.imul(n,C0)|0;var ZU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,M=Math.imul(z0,L0),A=Math.imul(z0,k0),A=A+Math.imul(A0,L0)|0,B=Math.imul(A0,k0),M=M+Math.imul(O0,j0)|0,A=A+Math.imul(O0,M0)|0,A=A+Math.imul(D0,j0)|0,B=B+Math.imul(D0,M0)|0,M=M+Math.imul(W0,v0)|0,A=A+Math.imul(W0,R0)|0,A=A+Math.imul(H0,v0)|0,B=B+Math.imul(H0,R0)|0,M=M+Math.imul(s,_0)|0,A=A+Math.imul(s,B0)|0,A=A+Math.imul(Z0,_0)|0,B=B+Math.imul(Z0,B0)|0,M=M+Math.imul(c,q0)|0,A=A+Math.imul(c,g)|0,A=A+Math.imul(o,q0)|0,B=B+Math.imul(o,g)|0,M=M+Math.imul(t,a)|0,A=A+Math.imul(t,X0)|0,A=A+Math.imul(e,a)|0,B=B+Math.imul(e,X0)|0,M=M+Math.imul(y,F0)|0,A=A+Math.imul(y,T0)|0,A=A+Math.imul(h,F0)|0,B=B+Math.imul(h,T0)|0,M=M+Math.imul(m,S0)|0,A=A+Math.imul(m,x0)|0,A=A+Math.imul(i,S0)|0,B=B+Math.imul(i,x0)|0,M=M+Math.imul(r,P0)|0,A=A+Math.imul(r,C0)|0,A=A+Math.imul(d,P0)|0,B=B+Math.imul(d,C0)|0,M=M+Math.imul(p,c0)|0,A=A+Math.imul(p,y0)|0,A=A+Math.imul(n,c0)|0,B=B+Math.imul(n,y0)|0;var QU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(QU>>>26)|0,QU&=67108863,M=Math.imul(z0,j0),A=Math.imul(z0,M0),A=A+Math.imul(A0,j0)|0,B=Math.imul(A0,M0),M=M+Math.imul(O0,v0)|0,A=A+Math.imul(O0,R0)|0,A=A+Math.imul(D0,v0)|0,B=B+Math.imul(D0,R0)|0,M=M+Math.imul(W0,_0)|0,A=A+Math.imul(W0,B0)|0,A=A+Math.imul(H0,_0)|0,B=B+Math.imul(H0,B0)|0,M=M+Math.imul(s,q0)|0,A=A+Math.imul(s,g)|0,A=A+Math.imul(Z0,q0)|0,B=B+Math.imul(Z0,g)|0,M=M+Math.imul(c,a)|0,A=A+Math.imul(c,X0)|0,A=A+Math.imul(o,a)|0,B=B+Math.imul(o,X0)|0,M=M+Math.imul(t,F0)|0,A=A+Math.imul(t,T0)|0,A=A+Math.imul(e,F0)|0,B=B+Math.imul(e,T0)|0,M=M+Math.imul(y,S0)|0,A=A+Math.imul(y,x0)|0,A=A+Math.imul(h,S0)|0,B=B+Math.imul(h,x0)|0,M=M+Math.imul(m,P0)|0,A=A+Math.imul(m,C0)|0,A=A+Math.imul(i,P0)|0,B=B+Math.imul(i,C0)|0,M=M+Math.imul(r,c0)|0,A=A+Math.imul(r,y0)|0,A=A+Math.imul(d,c0)|0,B=B+Math.imul(d,y0)|0;var YU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(YU>>>26)|0,YU&=67108863,M=Math.imul(z0,v0),A=Math.imul(z0,R0),A=A+Math.imul(A0,v0)|0,B=Math.imul(A0,R0),M=M+Math.imul(O0,_0)|0,A=A+Math.imul(O0,B0)|0,A=A+Math.imul(D0,_0)|0,B=B+Math.imul(D0,B0)|0,M=M+Math.imul(W0,q0)|0,A=A+Math.imul(W0,g)|0,A=A+Math.imul(H0,q0)|0,B=B+Math.imul(H0,g)|0,M=M+Math.imul(s,a)|0,A=A+Math.imul(s,X0)|0,A=A+Math.imul(Z0,a)|0,B=B+Math.imul(Z0,X0)|0,M=M+Math.imul(c,F0)|0,A=A+Math.imul(c,T0)|0,A=A+Math.imul(o,F0)|0,B=B+Math.imul(o,T0)|0,M=M+Math.imul(t,S0)|0,A=A+Math.imul(t,x0)|0,A=A+Math.imul(e,S0)|0,B=B+Math.imul(e,x0)|0,M=M+Math.imul(y,P0)|0,A=A+Math.imul(y,C0)|0,A=A+Math.imul(h,P0)|0,B=B+Math.imul(h,C0)|0,M=M+Math.imul(m,c0)|0,A=A+Math.imul(m,y0)|0,A=A+Math.imul(i,c0)|0,B=B+Math.imul(i,y0)|0;var JU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(JU>>>26)|0,JU&=67108863,M=Math.imul(z0,_0),A=Math.imul(z0,B0),A=A+Math.imul(A0,_0)|0,B=Math.imul(A0,B0),M=M+Math.imul(O0,q0)|0,A=A+Math.imul(O0,g)|0,A=A+Math.imul(D0,q0)|0,B=B+Math.imul(D0,g)|0,M=M+Math.imul(W0,a)|0,A=A+Math.imul(W0,X0)|0,A=A+Math.imul(H0,a)|0,B=B+Math.imul(H0,X0)|0,M=M+Math.imul(s,F0)|0,A=A+Math.imul(s,T0)|0,A=A+Math.imul(Z0,F0)|0,B=B+Math.imul(Z0,T0)|0,M=M+Math.imul(c,S0)|0,A=A+Math.imul(c,x0)|0,A=A+Math.imul(o,S0)|0,B=B+Math.imul(o,x0)|0,M=M+Math.imul(t,P0)|0,A=A+Math.imul(t,C0)|0,A=A+Math.imul(e,P0)|0,B=B+Math.imul(e,C0)|0,M=M+Math.imul(y,c0)|0,A=A+Math.imul(y,y0)|0,A=A+Math.imul(h,c0)|0,B=B+Math.imul(h,y0)|0;var VU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(VU>>>26)|0,VU&=67108863,M=Math.imul(z0,q0),A=Math.imul(z0,g),A=A+Math.imul(A0,q0)|0,B=Math.imul(A0,g),M=M+Math.imul(O0,a)|0,A=A+Math.imul(O0,X0)|0,A=A+Math.imul(D0,a)|0,B=B+Math.imul(D0,X0)|0,M=M+Math.imul(W0,F0)|0,A=A+Math.imul(W0,T0)|0,A=A+Math.imul(H0,F0)|0,B=B+Math.imul(H0,T0)|0,M=M+Math.imul(s,S0)|0,A=A+Math.imul(s,x0)|0,A=A+Math.imul(Z0,S0)|0,B=B+Math.imul(Z0,x0)|0,M=M+Math.imul(c,P0)|0,A=A+Math.imul(c,C0)|0,A=A+Math.imul(o,P0)|0,B=B+Math.imul(o,C0)|0,M=M+Math.imul(t,c0)|0,A=A+Math.imul(t,y0)|0,A=A+Math.imul(e,c0)|0,B=B+Math.imul(e,y0)|0;var GU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(GU>>>26)|0,GU&=67108863,M=Math.imul(z0,a),A=Math.imul(z0,X0),A=A+Math.imul(A0,a)|0,B=Math.imul(A0,X0),M=M+Math.imul(O0,F0)|0,A=A+Math.imul(O0,T0)|0,A=A+Math.imul(D0,F0)|0,B=B+Math.imul(D0,T0)|0,M=M+Math.imul(W0,S0)|0,A=A+Math.imul(W0,x0)|0,A=A+Math.imul(H0,S0)|0,B=B+Math.imul(H0,x0)|0,M=M+Math.imul(s,P0)|0,A=A+Math.imul(s,C0)|0,A=A+Math.imul(Z0,P0)|0,B=B+Math.imul(Z0,C0)|0,M=M+Math.imul(c,c0)|0,A=A+Math.imul(c,y0)|0,A=A+Math.imul(o,c0)|0,B=B+Math.imul(o,y0)|0;var IU=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(IU>>>26)|0,IU&=67108863,M=Math.imul(z0,F0),A=Math.imul(z0,T0),A=A+Math.imul(A0,F0)|0,B=Math.imul(A0,T0),M=M+Math.imul(O0,S0)|0,A=A+Math.imul(O0,x0)|0,A=A+Math.imul(D0,S0)|0,B=B+Math.imul(D0,x0)|0,M=M+Math.imul(W0,P0)|0,A=A+Math.imul(W0,C0)|0,A=A+Math.imul(H0,P0)|0,B=B+Math.imul(H0,C0)|0,M=M+Math.imul(s,c0)|0,A=A+Math.imul(s,y0)|0,A=A+Math.imul(Z0,c0)|0,B=B+Math.imul(Z0,y0)|0;var $U=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+($U>>>26)|0,$U&=67108863,M=Math.imul(z0,S0),A=Math.imul(z0,x0),A=A+Math.imul(A0,S0)|0,B=Math.imul(A0,x0),M=M+Math.imul(O0,P0)|0,A=A+Math.imul(O0,C0)|0,A=A+Math.imul(D0,P0)|0,B=B+Math.imul(D0,C0)|0,M=M+Math.imul(W0,c0)|0,A=A+Math.imul(W0,y0)|0,A=A+Math.imul(H0,c0)|0,B=B+Math.imul(H0,y0)|0;var BX=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(BX>>>26)|0,BX&=67108863,M=Math.imul(z0,P0),A=Math.imul(z0,C0),A=A+Math.imul(A0,P0)|0,B=Math.imul(A0,C0),M=M+Math.imul(O0,c0)|0,A=A+Math.imul(O0,y0)|0,A=A+Math.imul(D0,c0)|0,B=B+Math.imul(D0,y0)|0;var xX=($+M|0)+((A&8191)<<13)|0;$=(B+(A>>>13)|0)+(xX>>>26)|0,xX&=67108863,M=Math.imul(z0,c0),A=Math.imul(z0,y0),A=A+Math.imul(A0,c0)|0,B=Math.imul(A0,y0);var NX=($+M|0)+((A&8191)<<13)|0;if($=(B+(A>>>13)|0)+(NX>>>26)|0,NX&=67108863,X[0]=l0,X[1]=b0,X[2]=r0,X[3]=a0,X[4]=e0,X[5]=i0,X[6]=UU,X[7]=XU,X[8]=ZU,X[9]=QU,X[10]=YU,X[11]=JU,X[12]=VU,X[13]=GU,X[14]=IU,X[15]=$U,X[16]=BX,X[17]=xX,X[18]=NX,$!==0)X[19]=$,K.length++;return K};if(!Math.imul)x=v;function N(Z,Y,K){K.negative=Y.negative^Z.negative,K.length=Z.length+Y.length;var F=0,G=0;for(var X=0;X<K.length-1;X++){var $=G;G=0;var M=F&67108863,A=Math.min(X,Y.length-1);for(var B=Math.max(0,X-Z.length+1);B<=A;B++){var w=X-B,p=Z.words[w]|0,n=Y.words[B]|0,K0=p*n,r=K0&67108863;$=$+(K0/67108864|0)|0,r=r+M|0,M=r&67108863,$=$+(r>>>26)|0,G+=$>>>26,$&=67108863}K.words[X]=M,F=$,$=G}if(F!==0)K.words[X]=F;else K.length--;return K._strip()}function f(Z,Y,K){return N(Z,Y,K)}V.prototype.mulTo=function(Z,Y){var K,F=this.length+Z.length;if(this.length===10&&Z.length===10)K=x(this,Z,Y);else if(F<63)K=v(this,Z,Y);else if(F<1024)K=N(this,Z,Y);else K=f(this,Z,Y);return K};function b(Z,Y){this.x=Z,this.y=Y}b.prototype.makeRBT=function(Z){var Y=Array(Z),K=V.prototype._countBits(Z)-1;for(var F=0;F<Z;F++)Y[F]=this.revBin(F,K,Z);return Y},b.prototype.revBin=function(Z,Y,K){if(Z===0||Z===K-1)return Z;var F=0;for(var G=0;G<Y;G++)F|=(Z&1)<<Y-G-1,Z>>=1;return F},b.prototype.permute=function(Z,Y,K,F,G,X){for(var $=0;$<X;$++)F[$]=Y[Z[$]],G[$]=K[Z[$]]},b.prototype.transform=function(Z,Y,K,F,G,X){this.permute(X,Z,Y,K,F,G);for(var $=1;$<G;$<<=1){var M=$<<1,A=Math.cos(2*Math.PI/M),B=Math.sin(2*Math.PI/M);for(var w=0;w<G;w+=M){var p=A,n=B;for(var K0=0;K0<$;K0++){var r=K[w+K0],d=F[w+K0],J0=K[w+K0+$],m=F[w+K0+$],i=p*J0-n*m;if(m=p*m+n*J0,J0=i,K[w+K0]=r+J0,F[w+K0]=d+m,K[w+K0+$]=r-J0,F[w+K0+$]=d-m,K0!==M)i=A*p-B*n,n=A*n+B*p,p=i}}}},b.prototype.guessLen13b=function(Z,Y){var K=Math.max(Y,Z)|1,F=K&1,G=0;for(K=K/2|0;K;K=K>>>1)G++;return 1<<G+1+F},b.prototype.conjugate=function(Z,Y,K){if(K<=1)return;for(var F=0;F<K/2;F++){var G=Z[F];Z[F]=Z[K-F-1],Z[K-F-1]=G,G=Y[F],Y[F]=-Y[K-F-1],Y[K-F-1]=-G}},b.prototype.normalize13b=function(Z,Y){var K=0;for(var F=0;F<Y/2;F++){var G=Math.round(Z[2*F+1]/Y)*8192+Math.round(Z[2*F]/Y)+K;if(Z[F]=G&67108863,G<67108864)K=0;else K=G/67108864|0}return Z},b.prototype.convert13b=function(Z,Y,K,F){var G=0;for(var X=0;X<Y;X++)G=G+(Z[X]|0),K[2*X]=G&8191,G=G>>>13,K[2*X+1]=G&8191,G=G>>>13;for(X=2*Y;X<F;++X)K[X]=0;H(G===0),H((G&-8192)===0)},b.prototype.stub=function(Z){var Y=Array(Z);for(var K=0;K<Z;K++)Y[K]=0;return Y},b.prototype.mulp=function(Z,Y,K){var F=2*this.guessLen13b(Z.length,Y.length),G=this.makeRBT(F),X=this.stub(F),$=Array(F),M=Array(F),A=Array(F),B=Array(F),w=Array(F),p=Array(F),n=K.words;n.length=F,this.convert13b(Z.words,Z.length,$,F),this.convert13b(Y.words,Y.length,B,F),this.transform($,X,M,A,F,G),this.transform(B,X,w,p,F,G);for(var K0=0;K0<F;K0++){var r=M[K0]*w[K0]-A[K0]*p[K0];A[K0]=M[K0]*p[K0]+A[K0]*w[K0],M[K0]=r}return this.conjugate(M,A,F),this.transform(M,A,n,X,F,G),this.conjugate(n,X,F),this.normalize13b(n,F),K.negative=Z.negative^Y.negative,K.length=Z.length+Y.length,K._strip()},V.prototype.mul=function(Z){var Y=new V(null);return Y.words=Array(this.length+Z.length),this.mulTo(Z,Y)},V.prototype.mulf=function(Z){var Y=new V(null);return Y.words=Array(this.length+Z.length),f(this,Z,Y)},V.prototype.imul=function(Z){return this.clone().mulTo(Z,this)},V.prototype.imuln=function(Z){var Y=Z<0;if(Y)Z=-Z;H(typeof Z==="number"),H(Z<67108864);var K=0;for(var F=0;F<this.length;F++){var G=(this.words[F]|0)*Z,X=(G&67108863)+(K&67108863);K>>=26,K+=G/67108864|0,K+=X>>>26,this.words[F]=X&67108863}if(K!==0)this.words[F]=K,this.length++;return this.length=Z===0?1:this.length,Y?this.ineg():this},V.prototype.muln=function(Z){return this.clone().imuln(Z)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(Z){var Y=j(Z);if(Y.length===0)return new V(1);var K=this;for(var F=0;F<Y.length;F++,K=K.sqr())if(Y[F]!==0)break;if(++F<Y.length)for(var G=K.sqr();F<Y.length;F++,G=G.sqr()){if(Y[F]===0)continue;K=K.mul(G)}return K},V.prototype.iushln=function(Z){H(typeof Z==="number"&&Z>=0);var Y=Z%26,K=(Z-Y)/26,F=67108863>>>26-Y<<26-Y,G;if(Y!==0){var X=0;for(G=0;G<this.length;G++){var $=this.words[G]&F,M=(this.words[G]|0)-$<<Y;this.words[G]=M|X,X=$>>>26-Y}if(X)this.words[G]=X,this.length++}if(K!==0){for(G=this.length-1;G>=0;G--)this.words[G+K]=this.words[G];for(G=0;G<K;G++)this.words[G]=0;this.length+=K}return this._strip()},V.prototype.ishln=function(Z){return H(this.negative===0),this.iushln(Z)},V.prototype.iushrn=function(Z,Y,K){H(typeof Z==="number"&&Z>=0);var F;if(Y)F=(Y-Y%26)/26;else F=0;var G=Z%26,X=Math.min((Z-G)/26,this.length),$=67108863^67108863>>>G<<G,M=K;if(F-=X,F=Math.max(0,F),M){for(var A=0;A<X;A++)M.words[A]=this.words[A];M.length=X}if(X===0);else if(this.length>X){this.length-=X;for(A=0;A<this.length;A++)this.words[A]=this.words[A+X]}else this.words[0]=0,this.length=1;var B=0;for(A=this.length-1;A>=0&&(B!==0||A>=F);A--){var w=this.words[A]|0;this.words[A]=B<<26-G|w>>>G,B=w&$}if(M&&B!==0)M.words[M.length++]=B;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},V.prototype.ishrn=function(Z,Y,K){return H(this.negative===0),this.iushrn(Z,Y,K)},V.prototype.shln=function(Z){return this.clone().ishln(Z)},V.prototype.ushln=function(Z){return this.clone().iushln(Z)},V.prototype.shrn=function(Z){return this.clone().ishrn(Z)},V.prototype.ushrn=function(Z){return this.clone().iushrn(Z)},V.prototype.testn=function(Z){H(typeof Z==="number"&&Z>=0);var Y=Z%26,K=(Z-Y)/26,F=1<<Y;if(this.length<=K)return!1;var G=this.words[K];return!!(G&F)},V.prototype.imaskn=function(Z){H(typeof Z==="number"&&Z>=0);var Y=Z%26,K=(Z-Y)/26;if(H(this.negative===0,"imaskn works only with positive numbers"),this.length<=K)return this;if(Y!==0)K++;if(this.length=Math.min(K,this.length),Y!==0){var F=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=F}return this._strip()},V.prototype.maskn=function(Z){return this.clone().imaskn(Z)},V.prototype.iaddn=function(Z){if(H(typeof Z==="number"),H(Z<67108864),Z<0)return this.isubn(-Z);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=Z)return this.words[0]=Z-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Z),this.negative=1,this}return this._iaddn(Z)},V.prototype._iaddn=function(Z){this.words[0]+=Z;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)if(this.words[Y]-=67108864,Y===this.length-1)this.words[Y+1]=1;else this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},V.prototype.isubn=function(Z){if(H(typeof Z==="number"),H(Z<67108864),Z<0)return this.iaddn(-Z);if(this.negative!==0)return this.negative=0,this.iaddn(Z),this.negative=1,this;if(this.words[0]-=Z,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Y=0;Y<this.length&&this.words[Y]<0;Y++)this.words[Y]+=67108864,this.words[Y+1]-=1;return this._strip()},V.prototype.addn=function(Z){return this.clone().iaddn(Z)},V.prototype.subn=function(Z){return this.clone().isubn(Z)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(Z,Y,K){var F=Z.length+K,G;this._expand(F);var X,$=0;for(G=0;G<Z.length;G++){X=(this.words[G+K]|0)+$;var M=(Z.words[G]|0)*Y;X-=M&67108863,$=(X>>26)-(M/67108864|0),this.words[G+K]=X&67108863}for(;G<this.length-K;G++)X=(this.words[G+K]|0)+$,$=X>>26,this.words[G+K]=X&67108863;if($===0)return this._strip();H($===-1),$=0;for(G=0;G<this.length;G++)X=-(this.words[G]|0)+$,$=X>>26,this.words[G]=X&67108863;return this.negative=1,this._strip()},V.prototype._wordDiv=function(Z,Y){var K=this.length-Z.length,F=this.clone(),G=Z,X=G.words[G.length-1]|0,$=this._countBits(X);if(K=26-$,K!==0)G=G.ushln(K),F.iushln(K),X=G.words[G.length-1]|0;var M=F.length-G.length,A;if(Y!=="mod"){A=new V(null),A.length=M+1,A.words=Array(A.length);for(var B=0;B<A.length;B++)A.words[B]=0}var w=F.clone()._ishlnsubmul(G,1,M);if(w.negative===0){if(F=w,A)A.words[M]=1}for(var p=M-1;p>=0;p--){var n=(F.words[G.length+p]|0)*67108864+(F.words[G.length+p-1]|0);n=Math.min(n/X|0,67108863),F._ishlnsubmul(G,n,p);while(F.negative!==0)if(n--,F.negative=0,F._ishlnsubmul(G,1,p),!F.isZero())F.negative^=1;if(A)A.words[p]=n}if(A)A._strip();if(F._strip(),Y!=="div"&&K!==0)F.iushrn(K);return{div:A||null,mod:F}},V.prototype.divmod=function(Z,Y,K){if(H(!Z.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var F,G,X;if(this.negative!==0&&Z.negative===0){if(X=this.neg().divmod(Z,Y),Y!=="mod")F=X.div.neg();if(Y!=="div"){if(G=X.mod.neg(),K&&G.negative!==0)G.iadd(Z)}return{div:F,mod:G}}if(this.negative===0&&Z.negative!==0){if(X=this.divmod(Z.neg(),Y),Y!=="mod")F=X.div.neg();return{div:F,mod:X.mod}}if((this.negative&Z.negative)!==0){if(X=this.neg().divmod(Z.neg(),Y),Y!=="div"){if(G=X.mod.neg(),K&&G.negative!==0)G.isub(Z)}return{div:X.div,mod:G}}if(Z.length>this.length||this.cmp(Z)<0)return{div:new V(0),mod:this};if(Z.length===1){if(Y==="div")return{div:this.divn(Z.words[0]),mod:null};if(Y==="mod")return{div:null,mod:new V(this.modrn(Z.words[0]))};return{div:this.divn(Z.words[0]),mod:new V(this.modrn(Z.words[0]))}}return this._wordDiv(Z,Y)},V.prototype.div=function(Z){return this.divmod(Z,"div",!1).div},V.prototype.mod=function(Z){return this.divmod(Z,"mod",!1).mod},V.prototype.umod=function(Z){return this.divmod(Z,"mod",!0).mod},V.prototype.divRound=function(Z){var Y=this.divmod(Z);if(Y.mod.isZero())return Y.div;var K=Y.div.negative!==0?Y.mod.isub(Z):Y.mod,F=Z.ushrn(1),G=Z.andln(1),X=K.cmp(F);if(X<0||G===1&&X===0)return Y.div;return Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},V.prototype.modrn=function(Z){var Y=Z<0;if(Y)Z=-Z;H(Z<=67108863);var K=67108864%Z,F=0;for(var G=this.length-1;G>=0;G--)F=(K*F+(this.words[G]|0))%Z;return Y?-F:F},V.prototype.modn=function(Z){return this.modrn(Z)},V.prototype.idivn=function(Z){var Y=Z<0;if(Y)Z=-Z;H(Z<=67108863);var K=0;for(var F=this.length-1;F>=0;F--){var G=(this.words[F]|0)+K*67108864;this.words[F]=G/Z|0,K=G%Z}return this._strip(),Y?this.ineg():this},V.prototype.divn=function(Z){return this.clone().idivn(Z)},V.prototype.egcd=function(Z){H(Z.negative===0),H(!Z.isZero());var Y=this,K=Z.clone();if(Y.negative!==0)Y=Y.umod(Z);else Y=Y.clone();var F=new V(1),G=new V(0),X=new V(0),$=new V(1),M=0;while(Y.isEven()&&K.isEven())Y.iushrn(1),K.iushrn(1),++M;var A=K.clone(),B=Y.clone();while(!Y.isZero()){for(var w=0,p=1;(Y.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0){Y.iushrn(w);while(w-- >0){if(F.isOdd()||G.isOdd())F.iadd(A),G.isub(B);F.iushrn(1),G.iushrn(1)}}for(var n=0,K0=1;(K.words[0]&K0)===0&&n<26;++n,K0<<=1);if(n>0){K.iushrn(n);while(n-- >0){if(X.isOdd()||$.isOdd())X.iadd(A),$.isub(B);X.iushrn(1),$.iushrn(1)}}if(Y.cmp(K)>=0)Y.isub(K),F.isub(X),G.isub($);else K.isub(Y),X.isub(F),$.isub(G)}return{a:X,b:$,gcd:K.iushln(M)}},V.prototype._invmp=function(Z){H(Z.negative===0),H(!Z.isZero());var Y=this,K=Z.clone();if(Y.negative!==0)Y=Y.umod(Z);else Y=Y.clone();var F=new V(1),G=new V(0),X=K.clone();while(Y.cmpn(1)>0&&K.cmpn(1)>0){for(var $=0,M=1;(Y.words[0]&M)===0&&$<26;++$,M<<=1);if($>0){Y.iushrn($);while($-- >0){if(F.isOdd())F.iadd(X);F.iushrn(1)}}for(var A=0,B=1;(K.words[0]&B)===0&&A<26;++A,B<<=1);if(A>0){K.iushrn(A);while(A-- >0){if(G.isOdd())G.iadd(X);G.iushrn(1)}}if(Y.cmp(K)>=0)Y.isub(K),F.isub(G);else K.isub(Y),G.isub(F)}var w;if(Y.cmpn(1)===0)w=F;else w=G;if(w.cmpn(0)<0)w.iadd(Z);return w},V.prototype.gcd=function(Z){if(this.isZero())return Z.abs();if(Z.isZero())return this.abs();var Y=this.clone(),K=Z.clone();Y.negative=0,K.negative=0;for(var F=0;Y.isEven()&&K.isEven();F++)Y.iushrn(1),K.iushrn(1);do{while(Y.isEven())Y.iushrn(1);while(K.isEven())K.iushrn(1);var G=Y.cmp(K);if(G<0){var X=Y;Y=K,K=X}else if(G===0||K.cmpn(1)===0)break;Y.isub(K)}while(!0);return K.iushln(F)},V.prototype.invm=function(Z){return this.egcd(Z).a.umod(Z)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(Z){return this.words[0]&Z},V.prototype.bincn=function(Z){H(typeof Z==="number");var Y=Z%26,K=(Z-Y)/26,F=1<<Y;if(this.length<=K)return this._expand(K+1),this.words[K]|=F,this;var G=F;for(var X=K;G!==0&&X<this.length;X++){var $=this.words[X]|0;$+=G,G=$>>>26,$&=67108863,this.words[X]=$}if(G!==0)this.words[X]=G,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(Z){var Y=Z<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this._strip();var K;if(this.length>1)K=1;else{if(Y)Z=-Z;H(Z<=67108863,"Number is too big");var F=this.words[0]|0;K=F===Z?0:F<Z?-1:1}if(this.negative!==0)return-K|0;return K},V.prototype.cmp=function(Z){if(this.negative!==0&&Z.negative===0)return-1;if(this.negative===0&&Z.negative!==0)return 1;var Y=this.ucmp(Z);if(this.negative!==0)return-Y|0;return Y},V.prototype.ucmp=function(Z){if(this.length>Z.length)return 1;if(this.length<Z.length)return-1;var Y=0;for(var K=this.length-1;K>=0;K--){var F=this.words[K]|0,G=Z.words[K]|0;if(F===G)continue;if(F<G)Y=-1;else if(F>G)Y=1;break}return Y},V.prototype.gtn=function(Z){return this.cmpn(Z)===1},V.prototype.gt=function(Z){return this.cmp(Z)===1},V.prototype.gten=function(Z){return this.cmpn(Z)>=0},V.prototype.gte=function(Z){return this.cmp(Z)>=0},V.prototype.ltn=function(Z){return this.cmpn(Z)===-1},V.prototype.lt=function(Z){return this.cmp(Z)===-1},V.prototype.lten=function(Z){return this.cmpn(Z)<=0},V.prototype.lte=function(Z){return this.cmp(Z)<=0},V.prototype.eqn=function(Z){return this.cmpn(Z)===0},V.prototype.eq=function(Z){return this.cmp(Z)===0},V.red=function(Z){return new Q(Z)},V.prototype.toRed=function(Z){return H(!this.red,"Already a number in reduction context"),H(this.negative===0,"red works only with positives"),Z.convertTo(this)._forceRed(Z)},V.prototype.fromRed=function(){return H(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(Z){return this.red=Z,this},V.prototype.forceRed=function(Z){return H(!this.red,"Already a number in reduction context"),this._forceRed(Z)},V.prototype.redAdd=function(Z){return H(this.red,"redAdd works only with red numbers"),this.red.add(this,Z)},V.prototype.redIAdd=function(Z){return H(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Z)},V.prototype.redSub=function(Z){return H(this.red,"redSub works only with red numbers"),this.red.sub(this,Z)},V.prototype.redISub=function(Z){return H(this.red,"redISub works only with red numbers"),this.red.isub(this,Z)},V.prototype.redShl=function(Z){return H(this.red,"redShl works only with red numbers"),this.red.shl(this,Z)},V.prototype.redMul=function(Z){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.mul(this,Z)},V.prototype.redIMul=function(Z){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.imul(this,Z)},V.prototype.redSqr=function(){return H(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return H(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return H(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return H(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return H(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(Z){return H(this.red&&!Z.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Z)};var Q0={k256:null,p224:null,p192:null,p25519:null};function G0(Z,Y){this.name=Z,this.p=new V(Y,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}G0.prototype._tmp=function(){var Z=new V(null);return Z.words=Array(Math.ceil(this.n/13)),Z},G0.prototype.ireduce=function(Z){var Y=Z,K;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),K=Y.bitLength();while(K>this.n);var F=K<this.n?-1:Y.ucmp(this.p);if(F===0)Y.words[0]=0,Y.length=1;else if(F>0)Y.isub(this.p);else if(Y.strip!==void 0)Y.strip();else Y._strip();return Y},G0.prototype.split=function(Z,Y){Z.iushrn(this.n,0,Y)},G0.prototype.imulK=function(Z){return Z.imul(this.k)};function Y0(){G0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}L(Y0,G0),Y0.prototype.split=function(Z,Y){var K=4194303,F=Math.min(Z.length,9);for(var G=0;G<F;G++)Y.words[G]=Z.words[G];if(Y.length=F,Z.length<=9){Z.words[0]=0,Z.length=1;return}var X=Z.words[9];Y.words[Y.length++]=X&K;for(G=10;G<Z.length;G++){var $=Z.words[G]|0;Z.words[G-10]=($&K)<<4|X>>>22,X=$}if(X>>>=22,Z.words[G-10]=X,X===0&&Z.length>10)Z.length-=10;else Z.length-=9},Y0.prototype.imulK=function(Z){Z.words[Z.length]=0,Z.words[Z.length+1]=0,Z.length+=2;var Y=0;for(var K=0;K<Z.length;K++){var F=Z.words[K]|0;Y+=F*977,Z.words[K]=Y&67108863,Y=F*64+(Y/67108864|0)}if(Z.words[Z.length-1]===0){if(Z.length--,Z.words[Z.length-1]===0)Z.length--}return Z};function u(){G0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}L(u,G0);function U0(){G0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}L(U0,G0);function U(){G0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}L(U,G0),U.prototype.imulK=function(Z){var Y=0;for(var K=0;K<Z.length;K++){var F=(Z.words[K]|0)*19+Y,G=F&67108863;F>>>=26,Z.words[K]=G,Y=F}if(Y!==0)Z.words[Z.length++]=Y;return Z},V._prime=function(Z){if(Q0[Z])return Q0[Z];var Y;if(Z==="k256")Y=new Y0;else if(Z==="p224")Y=new u;else if(Z==="p192")Y=new U0;else if(Z==="p25519")Y=new U;else throw Error("Unknown prime "+Z);return Q0[Z]=Y,Y};function Q(Z){if(typeof Z==="string"){var Y=V._prime(Z);this.m=Y.p,this.prime=Y}else H(Z.gtn(1),"modulus must be greater than 1"),this.m=Z,this.prime=null}Q.prototype._verify1=function(Z){H(Z.negative===0,"red works only with positives"),H(Z.red,"red works only with red numbers")},Q.prototype._verify2=function(Z,Y){H((Z.negative|Y.negative)===0,"red works only with positives"),H(Z.red&&Z.red===Y.red,"red works only with red numbers")},Q.prototype.imod=function(Z){if(this.prime)return this.prime.ireduce(Z)._forceRed(this);return D(Z,Z.umod(this.m)._forceRed(this)),Z},Q.prototype.neg=function(Z){if(Z.isZero())return Z.clone();return this.m.sub(Z)._forceRed(this)},Q.prototype.add=function(Z,Y){this._verify2(Z,Y);var K=Z.add(Y);if(K.cmp(this.m)>=0)K.isub(this.m);return K._forceRed(this)},Q.prototype.iadd=function(Z,Y){this._verify2(Z,Y);var K=Z.iadd(Y);if(K.cmp(this.m)>=0)K.isub(this.m);return K},Q.prototype.sub=function(Z,Y){this._verify2(Z,Y);var K=Z.sub(Y);if(K.cmpn(0)<0)K.iadd(this.m);return K._forceRed(this)},Q.prototype.isub=function(Z,Y){this._verify2(Z,Y);var K=Z.isub(Y);if(K.cmpn(0)<0)K.iadd(this.m);return K},Q.prototype.shl=function(Z,Y){return this._verify1(Z),this.imod(Z.ushln(Y))},Q.prototype.imul=function(Z,Y){return this._verify2(Z,Y),this.imod(Z.imul(Y))},Q.prototype.mul=function(Z,Y){return this._verify2(Z,Y),this.imod(Z.mul(Y))},Q.prototype.isqr=function(Z){return this.imul(Z,Z.clone())},Q.prototype.sqr=function(Z){return this.mul(Z,Z)},Q.prototype.sqrt=function(Z){if(Z.isZero())return Z.clone();var Y=this.m.andln(3);if(H(Y%2===1),Y===3){var K=this.m.add(new V(1)).iushrn(2);return this.pow(Z,K)}var F=this.m.subn(1),G=0;while(!F.isZero()&&F.andln(1)===0)G++,F.iushrn(1);H(!F.isZero());var X=new V(1).toRed(this),$=X.redNeg(),M=this.m.subn(1).iushrn(1),A=this.m.bitLength();A=new V(2*A*A).toRed(this);while(this.pow(A,M).cmp($)!==0)A.redIAdd($);var B=this.pow(A,F),w=this.pow(Z,F.addn(1).iushrn(1)),p=this.pow(Z,F),n=G;while(p.cmp(X)!==0){var K0=p;for(var r=0;K0.cmp(X)!==0;r++)K0=K0.redSqr();H(r<n);var d=this.pow(B,new V(1).iushln(n-r-1));w=w.redMul(d),B=d.redSqr(),p=p.redMul(B),n=r}return w},Q.prototype.invm=function(Z){var Y=Z._invmp(this.m);if(Y.negative!==0)return Y.negative=0,this.imod(Y).redNeg();else return this.imod(Y)},Q.prototype.pow=function(Z,Y){if(Y.isZero())return new V(1).toRed(this);if(Y.cmpn(1)===0)return Z.clone();var K=4,F=Array(1<<K);F[0]=new V(1).toRed(this),F[1]=Z;for(var G=2;G<F.length;G++)F[G]=this.mul(F[G-1],Z);var X=F[0],$=0,M=0,A=Y.bitLength()%26;if(A===0)A=26;for(G=Y.length-1;G>=0;G--){var B=Y.words[G];for(var w=A-1;w>=0;w--){var p=B>>w&1;if(X!==F[0])X=this.sqr(X);if(p===0&&$===0){M=0;continue}if($<<=1,$|=p,M++,M!==K&&(G!==0||w!==0))continue;X=this.mul(X,F[$]),M=0,$=0}A=26}return X},Q.prototype.convertTo=function(Z){var Y=Z.umod(this.m);return Y===Z?Y.clone():Y},Q.prototype.convertFrom=function(Z){var Y=Z.clone();return Y.red=null,Y},V.mont=function(Z){return new J(Z)};function J(Z){if(Q.call(this,Z),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}L(J,Q),J.prototype.convertTo=function(Z){return this.imod(Z.ushln(this.shift))},J.prototype.convertFrom=function(Z){var Y=this.imod(Z.mul(this.rinv));return Y.red=null,Y},J.prototype.imul=function(Z,Y){if(Z.isZero()||Y.isZero())return Z.words[0]=0,Z.length=1,Z;var K=Z.imul(Y),F=K.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=K.isub(F).iushrn(this.shift),X=G;if(G.cmp(this.m)>=0)X=G.isub(this.m);else if(G.cmpn(0)<0)X=G.iadd(this.m);return X._forceRed(this)},J.prototype.mul=function(Z,Y){if(Z.isZero()||Y.isZero())return new V(0)._forceRed(this);var K=Z.mul(Y),F=K.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=K.isub(F).iushrn(this.shift),X=G;if(G.cmp(this.m)>=0)X=G.isub(this.m);else if(G.cmpn(0)<0)X=G.iadd(this.m);return X._forceRed(this)},J.prototype.invm=function(Z){var Y=this.imod(Z._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof O>"u"||O,I)}),nQ=I0((I,O)=>{var W=oV(),T=qX(),H=EU().Buffer;function L(S){var E=S.modulus.byteLength(),C;do C=new W(T(E));while(C.cmp(S.modulus)>=0||!C.umod(S.prime1)||!C.umod(S.prime2));return C}function V(S){var E=L(S),C=E.toRed(W.mont(S.modulus)).redPow(new W(S.publicExponent)).fromRed();return{blinder:C,unblinder:E.invm(S.modulus)}}function P(S,E){var C=V(E),D=E.modulus.byteLength(),z=new W(S).mul(C.blinder).umod(E.modulus),R=z.toRed(W.mont(E.prime1)),q=z.toRed(W.mont(E.prime2)),_=E.coefficient,k=E.prime1,j=E.prime2,v=R.redPow(E.exponent1).fromRed(),x=q.redPow(E.exponent2).fromRed(),N=v.isub(x).imul(_).umod(k).imul(j);return x.iadd(N).imul(C.unblinder).umod(E.modulus).toArrayLike(H,"be",D)}P.getr=L,O.exports=P}),nV=I0((I,O)=>{var W=bQ(),T=qX(),H=SX(),L=lQ(),V=dQ(),P=HZ(),S=oQ(),E=nQ(),C=EU().Buffer;O.exports=function(q,_,k){var j;if(q.padding)j=q.padding;else if(k)j=1;else j=4;var v=W(q),x;if(j===4)x=D(v,_);else if(j===1)x=z(v,_,k);else if(j===3){if(x=new P(_),x.cmp(v.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(k)return E(x,v);else return S(x,v)};function D(q,_){var k=q.modulus.byteLength(),j=_.length,v=H("sha1").update(C.alloc(0)).digest(),x=v.length,N=2*x;if(j>k-N-2)throw Error("message too long");var f=C.alloc(k-j-N-2),b=k-x-1,Q0=T(x),G0=V(C.concat([v,f,C.alloc(1,1),_],b),L(Q0,b)),Y0=V(Q0,L(G0,x));return new P(C.concat([C.alloc(1),Y0,G0],k))}function z(q,_,k){var j=_.length,v=q.modulus.byteLength();if(j>v-11)throw Error("message too long");var x;if(k)x=C.alloc(v-j-3,255);else x=R(v-j-3);return new P(C.concat([C.from([0,k?1:2]),x,C.alloc(1),_],v))}function R(q){var _=C.allocUnsafe(q),k=0,j=T(q*2),v=0,x;while(k<q){if(v===j.length)j=T(q*2),v=0;if(x=j[v++],x)_[k++]=x}return _}}),mV=I0((I,O)=>{var W=bQ(),T=lQ(),H=dQ(),L=HZ(),V=nQ(),P=SX(),S=oQ(),E=EU().Buffer;O.exports=function(R,q,_){var k;if(R.padding)k=R.padding;else if(_)k=1;else k=4;var j=W(R),v=j.modulus.byteLength();if(q.length>v||new L(q).cmp(j.modulus)>=0)throw Error("decryption error");var x;if(_)x=S(new L(q),j);else x=V(q,j);var N=E.alloc(v-x.length);if(x=E.concat([N,x],v),k===4)return C(j,x);else if(k===1)return D(j,x,_);else if(k===3)return x;else throw Error("unknown padding")};function C(R,q){var _=R.modulus.byteLength(),k=P("sha1").update(E.alloc(0)).digest(),j=k.length;if(q[0]!==0)throw Error("decryption error");var v=q.slice(1,j+1),x=q.slice(j+1),N=H(v,T(x,j)),f=H(x,T(N,_-j-1));if(z(k,f.slice(0,j)))throw Error("decryption error");var b=j;while(f[b]===0)b++;if(f[b++]!==1)throw Error("decryption error");return f.slice(b)}function D(R,q,_){var k=q.slice(0,2),j=2,v=0;while(q[j++]!==0)if(j>=q.length){v++;break}var x=q.slice(2,j-1);if(k.toString("hex")!=="0002"&&!_||k.toString("hex")!=="0001"&&_)v++;if(x.length<8)v++;if(v)throw Error("decryption error");return q.slice(j)}function z(R,q){R=E.from(R),q=E.from(q);var _=0,k=R.length;if(R.length!==q.length)_++,k=Math.min(R.length,q.length);var j=-1;while(++j<k)_+=R[j]^q[j];return _}}),JZ=I0((I)=>{I.publicEncrypt=nV(),I.privateDecrypt=mV(),I.privateEncrypt=function(O,W){return I.publicEncrypt(O,W,!0)},I.publicDecrypt=function(O,W){return I.privateDecrypt(O,W,!0)}}),sV=I0((I)=>{var O=(qU(),h0(RU));if(typeof O.publicEncrypt!=="function")O=JZ();if(I.publicEncrypt=O.publicEncrypt,I.privateDecrypt=O.privateDecrypt,typeof O.privateEncrypt!=="function")I.privateEncrypt=JZ().privateEncrypt;else I.privateEncrypt=O.privateEncrypt;if(typeof O.publicDecrypt!=="function")I.publicDecrypt=JZ().publicDecrypt;else I.publicDecrypt=O.publicDecrypt}),tV=I0((I)=>{var O=EU(),W=qX(),T=O.Buffer,H=O.kMaxLength,L=globalThis.crypto||globalThis.msCrypto,V=Math.pow(2,32)-1;function P(z,R){if(typeof z!=="number"||z!==z)throw TypeError("offset must be a number");if(z>V||z<0)throw TypeError("offset must be a uint32");if(z>H||z>R)throw RangeError("offset out of range")}function S(z,R,q){if(typeof z!=="number"||z!==z)throw TypeError("size must be a number");if(z>V||z<0)throw TypeError("size must be a uint32");if(z+R>q||z>H)throw RangeError("buffer too small")}L&&L.getRandomValues,I.randomFill=E,I.randomFillSync=D;function E(z,R,q,_){if(!T.isBuffer(z)&&!(z instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof R==="function")_=R,R=0,q=z.length;else if(typeof q==="function")_=q,q=z.length-R;else if(typeof _!=="function")throw TypeError('"cb" argument must be a function');return P(R,z.length),S(q,R,z.length),C(z,R,q,_)}function C(z,R,q,_){if(!1)var k,j;if(_){W(q,function(x,N){if(x)return _(x);N.copy(z,R),_(null,z)});return}var v=W(q);return v.copy(z,R),z}function D(z,R,q){if(typeof R>"u")R=0;if(!T.isBuffer(z)&&!(z instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(P(R,z.length),q===void 0)q=z.length-R;return S(q,R,z.length),C(z,R,q)}}),rV=I0((I,O)=>{var W=(qU(),h0(RU));if(typeof W.randomFill==="function"&&typeof W.randomFillSync==="function")I.randomFill=W.randomFill,I.randomFillSync=W.randomFillSync;else O.exports=tV()}),aV=I0((I)=>{I.randomBytes=I.rng=I.pseudoRandomBytes=I.prng=qX(),I.createHash=I.Hash=SX(),I.createHmac=I.Hmac=EQ();var O=LJ(),W=Object.keys(O),T=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(W);I.getHashes=function(){return T};var H=BQ();I.pbkdf2=H.pbkdf2,I.pbkdf2Sync=H.pbkdf2Sync;var L=QV();I.Cipher=L.Cipher,I.createCipher=L.createCipher,I.Cipheriv=L.Cipheriv,I.createCipheriv=L.createCipheriv,I.Decipher=L.Decipher,I.createDecipher=L.createDecipher,I.Decipheriv=L.Decipheriv,I.createDecipheriv=L.createDecipheriv,I.getCiphers=L.getCiphers,I.listCiphers=L.listCiphers;var V=YV();I.DiffieHellmanGroup=V.DiffieHellmanGroup,I.createDiffieHellmanGroup=V.createDiffieHellmanGroup,I.getDiffieHellman=V.getDiffieHellman,I.createDiffieHellman=V.createDiffieHellman,I.DiffieHellman=V.DiffieHellman;var P=JV();I.createSign=P.createSign,I.Sign=P.Sign,I.createVerify=P.createVerify,I.Verify=P.Verify,I.createECDH=jV();var S=sV();I.publicEncrypt=S.publicEncrypt,I.privateEncrypt=S.privateEncrypt,I.publicDecrypt=S.publicDecrypt,I.privateDecrypt=S.privateDecrypt;var E=rV();I.randomFill=E.randomFill,I.randomFillSync=E.randomFillSync,I.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
|
|
15
15
|
we accept pull requests
|
|
16
16
|
https://github.com/browserify/crypto-browserify`)},I.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),p0=EJ(aV(),1),eV=p0.prng,iV=p0.pseudoRandomBytes,UG=p0.rng,XG=p0.randomBytes,ZG=p0.Hash,QG=p0.createHash,YG=p0.Hmac,JG=p0.createHmac,VG=p0.getHashes,GG=p0.pbkdf2,IG=p0.pbkdf2Sync,$G=p0.Cipher,KG=p0.createCipher,OG=p0.Cipheriv,FG=p0.createCipheriv,WG=p0.Decipher,HG=p0.createDecipher,DG=p0.Decipheriv,TG=p0.createDecipheriv,AG=p0.getCiphers,zG=p0.listCiphers,CG=p0.DiffieHellmanGroup,EG=p0.createDiffieHellmanGroup,LG=p0.getDiffieHellman,MG=p0.createDiffieHellman,RG=p0.DiffieHellman,qG=p0.createSign,SG=p0.Sign,PG=p0.createVerify,kG=p0.Verify,jG=p0.createECDH,vG=p0.publicEncrypt,_G=p0.privateEncrypt,BG=p0.publicDecrypt,xG=p0.privateDecrypt,NG=p0.randomFill,gG=p0.randomFillSync,wG=p0.createCredentials,fG=p0.constants,hG=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];bG=crypto,lG=crypto});var DZ=EX((jX,mQ)=>{(function(I,O){if(typeof jX==="object")mQ.exports=jX=O();else if(typeof define==="function"&&define.amd)define([],O);else I.CryptoJS=O()})(jX,function(){var I=I||function(O,W){var T;if(typeof window<"u"&&window.crypto)T=window.crypto;if(typeof self<"u"&&self.crypto)T=self.crypto;if(typeof globalThis<"u"&&globalThis.crypto)T=globalThis.crypto;if(!T&&typeof window<"u"&&window.msCrypto)T=window.msCrypto;if(!T&&typeof global<"u"&&global.crypto)T=global.crypto;if(!T)try{T=(qU(),h0(RU))}catch(j){}var H=function(){if(T){if(typeof T.getRandomValues==="function")try{return T.getRandomValues(new Uint32Array(1))[0]}catch(j){}if(typeof T.randomBytes==="function")try{return T.randomBytes(4).readInt32LE()}catch(j){}}throw Error("Native crypto module could not be used to get secure random number.")},L=Object.create||function(){function j(){}return function(v){var x;return j.prototype=v,x=new j,j.prototype=null,x}}(),V={},P=V.lib={},S=P.Base=function(){return{extend:function(j){var v=L(this);if(j)v.mixIn(j);if(!v.hasOwnProperty("init")||this.init===v.init)v.init=function(){v.$super.init.apply(this,arguments)};return v.init.prototype=v,v.$super=this,v},create:function(){var j=this.extend();return j.init.apply(j,arguments),j},init:function(){},mixIn:function(j){for(var v in j)if(j.hasOwnProperty(v))this[v]=j[v];if(j.hasOwnProperty("toString"))this.toString=j.toString},clone:function(){return this.init.prototype.extend(this)}}}(),E=P.WordArray=S.extend({init:function(j,v){if(j=this.words=j||[],v!=W)this.sigBytes=v;else this.sigBytes=j.length*4},toString:function(j){return(j||D).stringify(this)},concat:function(j){var v=this.words,x=j.words,N=this.sigBytes,f=j.sigBytes;if(this.clamp(),N%4)for(var b=0;b<f;b++){var Q0=x[b>>>2]>>>24-b%4*8&255;v[N+b>>>2]|=Q0<<24-(N+b)%4*8}else for(var G0=0;G0<f;G0+=4)v[N+G0>>>2]=x[G0>>>2];return this.sigBytes+=f,this},clamp:function(){var j=this.words,v=this.sigBytes;j[v>>>2]&=4294967295<<32-v%4*8,j.length=O.ceil(v/4)},clone:function(){var j=S.clone.call(this);return j.words=this.words.slice(0),j},random:function(j){var v=[];for(var x=0;x<j;x+=4)v.push(H());return new E.init(v,j)}}),C=V.enc={},D=C.Hex={stringify:function(j){var{words:v,sigBytes:x}=j,N=[];for(var f=0;f<x;f++){var b=v[f>>>2]>>>24-f%4*8&255;N.push((b>>>4).toString(16)),N.push((b&15).toString(16))}return N.join("")},parse:function(j){var v=j.length,x=[];for(var N=0;N<v;N+=2)x[N>>>3]|=parseInt(j.substr(N,2),16)<<24-N%8*4;return new E.init(x,v/2)}},z=C.Latin1={stringify:function(j){var{words:v,sigBytes:x}=j,N=[];for(var f=0;f<x;f++){var b=v[f>>>2]>>>24-f%4*8&255;N.push(String.fromCharCode(b))}return N.join("")},parse:function(j){var v=j.length,x=[];for(var N=0;N<v;N++)x[N>>>2]|=(j.charCodeAt(N)&255)<<24-N%4*8;return new E.init(x,v)}},R=C.Utf8={stringify:function(j){try{return decodeURIComponent(escape(z.stringify(j)))}catch(v){throw Error("Malformed UTF-8 data")}},parse:function(j){return z.parse(unescape(encodeURIComponent(j)))}},q=P.BufferedBlockAlgorithm=S.extend({reset:function(){this._data=new E.init,this._nDataBytes=0},_append:function(j){if(typeof j=="string")j=R.parse(j);this._data.concat(j),this._nDataBytes+=j.sigBytes},_process:function(j){var v,x=this._data,N=x.words,f=x.sigBytes,b=this.blockSize,Q0=b*4,G0=f/Q0;if(j)G0=O.ceil(G0);else G0=O.max((G0|0)-this._minBufferSize,0);var Y0=G0*b,u=O.min(Y0*4,f);if(Y0){for(var U0=0;U0<Y0;U0+=b)this._doProcessBlock(N,U0);v=N.splice(0,Y0),x.sigBytes-=u}return new E.init(v,u)},clone:function(){var j=S.clone.call(this);return j._data=this._data.clone(),j},_minBufferSize:0}),_=P.Hasher=q.extend({cfg:S.extend(),init:function(j){this.cfg=this.cfg.extend(j),this.reset()},reset:function(){q.reset.call(this),this._doReset()},update:function(j){return this._append(j),this._process(),this},finalize:function(j){if(j)this._append(j);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(j){return function(v,x){return new j.init(x).finalize(v)}},_createHmacHelper:function(j){return function(v,x){return new k.HMAC.init(j,x).finalize(v)}}}),k=V.algo={};return V}(Math);return I})});var tQ=EX((vX,sQ)=>{(function(I,O){if(typeof vX==="object")sQ.exports=vX=O(DZ());else if(typeof define==="function"&&define.amd)define(["./core"],O);else O(I.CryptoJS)})(vX,function(I){return function(O){var W=I,T=W.lib,H=T.WordArray,L=T.Hasher,V=W.algo,P=[],S=[];(function(){function D(_){var k=O.sqrt(_);for(var j=2;j<=k;j++)if(!(_%j))return!1;return!0}function z(_){return(_-(_|0))*4294967296|0}var R=2,q=0;while(q<64){if(D(R)){if(q<8)P[q]=z(O.pow(R,0.5));S[q]=z(O.pow(R,0.3333333333333333)),q++}R++}})();var E=[],C=V.SHA256=L.extend({_doReset:function(){this._hash=new H.init(P.slice(0))},_doProcessBlock:function(D,z){var R=this._hash.words,q=R[0],_=R[1],k=R[2],j=R[3],v=R[4],x=R[5],N=R[6],f=R[7];for(var b=0;b<64;b++){if(b<16)E[b]=D[z+b]|0;else{var Q0=E[b-15],G0=(Q0<<25|Q0>>>7)^(Q0<<14|Q0>>>18)^Q0>>>3,Y0=E[b-2],u=(Y0<<15|Y0>>>17)^(Y0<<13|Y0>>>19)^Y0>>>10;E[b]=G0+E[b-7]+u+E[b-16]}var U0=v&x^~v&N,U=q&_^q&k^_&k,Q=(q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22),J=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),Z=f+J+U0+S[b]+E[b],Y=Q+U;f=N,N=x,x=v,v=j+Z|0,j=k,k=_,_=q,q=Z+Y|0}R[0]=R[0]+q|0,R[1]=R[1]+_|0,R[2]=R[2]+k|0,R[3]=R[3]+j|0,R[4]=R[4]+v|0,R[5]=R[5]+x|0,R[6]=R[6]+N|0,R[7]=R[7]+f|0},_doFinalize:function(){var D=this._data,z=D.words,R=this._nDataBytes*8,q=D.sigBytes*8;return z[q>>>5]|=128<<24-q%32,z[(q+64>>>9<<4)+14]=O.floor(R/4294967296),z[(q+64>>>9<<4)+15]=R,D.sigBytes=z.length*4,this._process(),this._hash},clone:function(){var D=L.clone.call(this);return D._hash=this._hash.clone(),D}});W.SHA256=L._createHelper(C),W.HmacSHA256=L._createHmacHelper(C)}(Math),I.SHA256})});var dG=EX((_X,rQ)=>{(function(I,O,W){if(typeof _X==="object")rQ.exports=_X=O(DZ(),tQ());else if(typeof define==="function"&&define.amd)define(["./core","./sha256"],O);else O(I.CryptoJS)})(_X,function(I){return function(){var O=I,W=O.lib,T=W.WordArray,H=O.algo,L=H.SHA256,V=H.SHA224=L.extend({_doReset:function(){this._hash=new T.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var P=L._doFinalize.call(this);return P.sigBytes-=4,P}});O.SHA224=L._createHelper(V),O.HmacSHA224=L._createHmacHelper(V)}(),I.SHA224})});
|
|
17
|
-
export{DZ as
|
|
17
|
+
export{DZ as Aa,tQ as Ba,dG as Ca};
|
|
18
18
|
|
|
19
|
-
//# debugId=
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# debugId=F00BBFA7BF41163964756E2164756E21
|
|
20
|
+
//# sourceMappingURL=chunk-410fpx61.js.map
|