sliccy 4.28.2 → 4.29.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/README.md +17 -16
- package/dist/node-server/bridge-security.d.ts +26 -0
- package/dist/node-server/bridge-security.js +41 -2
- package/dist/node-server/chrome-launch.d.ts +62 -1
- package/dist/node-server/chrome-launch.js +168 -2
- package/dist/node-server/electron-controller.d.ts +115 -5
- package/dist/node-server/electron-controller.js +167 -28
- package/dist/node-server/electron-main.js +37 -2
- package/dist/node-server/electron-runtime.d.ts +0 -2
- package/dist/node-server/electron-runtime.js +63 -68
- package/dist/node-server/fetch-proxy-headers.d.ts +25 -0
- package/dist/node-server/fetch-proxy-headers.js +36 -0
- package/dist/node-server/index.js +46 -11
- package/dist/node-server/routes/fetch-proxy.js +12 -12
- package/dist/ui/assets/account-store-lwRLg8qZ.js +38 -0
- package/dist/ui/assets/account-store-o8Dx0iny.js +99 -0
- package/dist/ui/assets/adobe-oauth-state-DJ7nvXJJ.js +1 -0
- package/dist/ui/assets/adobe-oauth-state-fjk_YXgL.js +1 -0
- package/dist/ui/assets/adobe-t0y7yh0d.js +2 -0
- package/dist/ui/assets/adobe-w6Q7iSKn.js +1 -0
- package/dist/ui/assets/{agent-message-to-chat-DQErB0Zj.js → agent-message-to-chat-yezUzugT.js} +1 -1
- package/dist/ui/assets/{anthropic-BaI_sJYa.js → anthropic-DwYAPtk5.js} +1 -1
- package/dist/ui/assets/{apps-BAXGsVHu.js → apps-D-6_Des4.js} +1 -1
- package/dist/ui/assets/{azure-openai-CKd81QhZ.js → azure-openai-BUQWXp4U.js} +1 -1
- package/dist/ui/assets/{azure-openai-DTsNmcxo.js → azure-openai-Cza179on.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-CMjHELHX.js → azure-openai-responses-Bnxym5u-.js} +1 -1
- package/dist/ui/assets/backend-local-mrUgrni5.js +9 -0
- package/dist/ui/assets/{bedrock-camp-DS1dgU6g.js → bedrock-camp-C1lmRgcD.js} +2 -2
- package/dist/ui/assets/bsh-watchdog-aV3rA0w_.js +60 -0
- package/dist/ui/assets/cdp-bridge-CUqQUcaF.js +1 -0
- package/dist/ui/assets/{cdp-D4JkCTey.js → cdp-z9uzg44m.js} +5 -5
- package/dist/ui/assets/composer-speech-BJF-32Qm.js +1 -0
- package/dist/ui/assets/{connect-surface-CyQMJFj3.js → connect-surface-v46dKJYB.js} +1 -1
- package/dist/ui/assets/dip-Iosy_HJh.js +1 -0
- package/dist/ui/assets/{dist-CVvNIY9j.js → dist-BHeXHQU_.js} +1 -1
- package/dist/ui/assets/{dist-Ciobg3J4.js → dist-Fdgn9mju.js} +2 -2
- package/dist/ui/assets/ensure-speech-assets-CILvdvdL.js +1 -0
- package/dist/ui/assets/{es-DjQZltrp.js → es-Z-wNZ0C3.js} +4 -4
- package/dist/ui/assets/esp8266-CL1TORn3.js +1 -0
- package/dist/ui/assets/{esptool-operations-SV6FPHJC.js → esptool-operations-CYdcX9Mk.js} +2 -2
- package/dist/ui/assets/extension-bridge-transport-DYOF2OYC.js +1 -0
- package/dist/ui/assets/fetch-body-D2PwksUW.js +1 -0
- package/dist/ui/assets/fetch-body-DDu_AU5I.js +1 -0
- package/dist/ui/assets/{fs-Bv2avR3Y.js → fs-CruOlxoS.js} +2 -2
- package/dist/ui/assets/{fs-B-yB8nmS.js → fs-crZm8xnS.js} +1 -1
- package/dist/ui/assets/github-CQtjJB1r.js +2 -0
- package/dist/ui/assets/github-FUziE_96.js +1 -0
- package/dist/ui/assets/{github-copilot--B7IUER8.js → github-copilot-DOj1kxaL.js} +1 -1
- package/dist/ui/assets/{github-copilot-CFeOxiAY.js → github-copilot-yTNPvKEy.js} +1 -1
- package/dist/ui/assets/{google-yB8wbiw4.js → google-CSaY-DQE.js} +1 -1
- package/dist/ui/assets/{google-shared-CeGHiQ17.js → google-shared-RiqqHuiz.js} +1 -1
- package/dist/ui/assets/{google-vertex-Dbruz2uo.js → google-vertex-CBHKHWKe.js} +1 -1
- package/dist/ui/assets/hear-COc8-jz9.js +1 -0
- package/dist/ui/assets/hear-Ca-dJ63I.js +1 -0
- package/dist/ui/assets/hid-picker-DUJBI46p.js +1 -0
- package/dist/ui/assets/{intercepted-oauth-tLpKagkf.js → intercepted-oauth-E9BfBX02.js} +1 -1
- package/dist/ui/assets/js-realm-worker-BIJifCVd.js +47 -0
- package/dist/ui/assets/{json-parse-BIGBjpLL.js → json-parse-CWht3lea.js} +1 -1
- package/dist/ui/assets/kernel-worker-CFGgP28u.js +10060 -0
- package/dist/ui/assets/{kokoro-IuvgZkZk.js → kokoro-B5jJ2WUJ.js} +2 -2
- package/dist/ui/assets/{kokoro-pZaPWf_-.js → kokoro-BdpwC7DT.js} +2 -2
- package/dist/ui/assets/kokoro-engine-io4cnyoV.js +1 -0
- package/dist/ui/assets/{lick-ws-bridge-CbVQgXpI.js → lick-ws-bridge-s5Y2i_Ua.js} +1 -1
- package/dist/ui/assets/{local-llm-FEU-X2iM.js → local-llm-CKo8wJkz.js} +1 -1
- package/dist/ui/assets/magick-wasm-oRIuPV7a.js +43 -0
- package/dist/ui/assets/main-CY_go8Ex.js +24 -0
- package/dist/ui/assets/{main-cherry-B1mI8ArD.js → main-cherry-BRV9Q0tu.js} +1 -1
- package/dist/ui/assets/{mistral-CJVvXrOL.js → mistral-BTNTllXI.js} +1 -1
- package/dist/ui/assets/mount-DlwSk_tU.js +1 -0
- package/dist/ui/assets/mount-bridge-client-DDnAgZEL.js +2 -0
- package/dist/ui/assets/mount-id-_7_PCY9F.js +1 -0
- package/dist/ui/assets/mount-pc-SiJqJ.js +2 -0
- package/dist/ui/assets/mount-picker-popup-Hrvzr69c.js +1 -0
- package/dist/ui/assets/{mount-table-store-CQJEV6Ij.js → mount-table-store-ggb440m4.js} +1 -1
- package/dist/ui/assets/new-session-CfjGoE_n.js +2 -0
- package/dist/ui/assets/oauth-bootstrap-Le_gIjYT.js +2 -0
- package/dist/ui/assets/oauth-service-D4iuqFv6.js +1 -0
- package/dist/ui/assets/oauth-service-YGl8VFS-.js +1 -0
- package/dist/ui/assets/{openai-codex-BpHxok9y.js → openai-codex-CU65yKca.js} +1 -1
- package/dist/ui/assets/{openai-codex-DIIqvcoZ.js → openai-codex-Dx5taSaF.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-CLrAtex4.js → openai-codex-responses-7JN1dUxK.js} +1 -1
- package/dist/ui/assets/{openai-completions-CyC3I8Ls.js → openai-completions-YNL_qr9N.js} +1 -1
- package/dist/ui/assets/{openai-responses-D3BggRn6.js → openai-responses-nczmKECx.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-GJLWYx-P.js → openai-responses-shared-9YVaeX5D.js} +1 -1
- package/dist/ui/assets/panel-responder-BKgfV-nl.js +1 -0
- package/dist/ui/assets/{panel-rpc-Ck8CVyMh.js → panel-rpc-D0J5pskz.js} +1 -1
- package/dist/ui/assets/panel-rpc-handlers-BFGsncpn.js +2 -0
- package/dist/ui/assets/{picker-approval-tzbkMw-e.js → picker-approval-Dc390nC7.js} +1 -1
- package/dist/ui/assets/picker-popup-CpulHQsi.js +1 -0
- package/dist/ui/assets/preview-vfs-responder-CSDC7Oy2.js +1 -0
- package/dist/ui/assets/provider-Lb9gUmQt.js +2 -0
- package/dist/ui/assets/provider-store-access-COfmBqcb.js +1 -0
- package/dist/ui/assets/provider-store-access-CjPYCH1J.js +1 -0
- package/dist/ui/assets/{provider-UGTRh0sb.js → provider-vMORCKxQ.js} +1 -1
- package/dist/ui/assets/{providers-C-thqKYx.js → providers-CkeJGhLV.js} +1 -1
- package/dist/ui/assets/proxied-fetch-CKDBmEMl.js +2 -0
- package/dist/ui/assets/proxied-fetch-CM0jk_Mr.js +1 -0
- package/dist/ui/assets/py-realm-worker-hOFi8vjM.js +242 -0
- package/dist/ui/assets/{pyodide-BvA4c-59.js → pyodide-CqQhZelL.js} +2 -2
- package/dist/ui/assets/{quick-llm-pCxnbK4A.js → quick-llm-CksvHcNV.js} +1 -1
- package/dist/ui/assets/{remote-cache-BffIqHgi.js → remote-cache-BL6NRenp.js} +1 -1
- package/dist/ui/assets/remote-terminal-view-Qv9yhXQm.js +5 -0
- package/dist/ui/assets/remote-vfs-client-Z2qM01yP.js +1 -0
- package/dist/ui/assets/secret-env-DncfFSea.js +1 -0
- package/dist/ui/assets/secret-topology-bwXIzzAK.js +1 -0
- package/dist/ui/assets/secrets-bridge-client-BSipj-5f.js +2 -0
- package/dist/ui/assets/serial-picker-B6s4NeaB.js +1 -0
- package/dist/ui/assets/session-freezer-1tkfzApv.js +1 -0
- package/dist/ui/assets/shared-Bn9ltvMZ.js +1 -0
- package/dist/ui/assets/speak-Bri-_DZL.js +1 -0
- package/dist/ui/assets/speak-D9WnbzxD.js +2 -0
- package/dist/ui/assets/speech-assets-bridge-B8NqCAE8.js +1 -0
- package/dist/ui/assets/speech-assets-bridge-BUDIvdid.js +1 -0
- package/dist/ui/assets/{sprinkle-bridge-DrAUCEC_.js → sprinkle-bridge-Du2dCM8G.js} +1 -1
- package/dist/ui/assets/{sprinkle-manager-C3_2AgeR.js → sprinkle-manager-BhhaIwAz.js} +1 -1
- package/dist/ui/assets/{sql-wasm-Cu5Uk_6k.js → sql-wasm-BWbkWL23.js} +1 -1
- package/dist/ui/assets/{store-DSwnBJEJ.js → store-iS53cbT5.js} +1 -1
- package/dist/ui/assets/sudo-DH2Ru5S3.js +5 -0
- package/dist/ui/assets/tool-ui-DfXu6quJ.js +1 -0
- package/dist/ui/assets/tool-ui-t6ocn6AG.js +1 -0
- package/dist/ui/assets/transformers-env-2Uj9Fgd2.js +1 -0
- package/dist/ui/assets/transformers-env-CgaV7qpU.js +1 -0
- package/dist/ui/assets/transformers.web-BxHOGVSB.js +45 -0
- package/dist/ui/assets/transformers.web-CuUo4MLm.js +39 -0
- package/dist/ui/assets/{tray-leave-runtime-Dk3OSbMO.js → tray-leave-runtime-ND08HLeb.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-Dcc69AtK.js → upgrade-detection-Y3TdGYus.js} +1 -1
- package/dist/ui/assets/usb-picker-D_K0weAY.js +1 -0
- package/dist/ui/assets/{voice-reply-UcYXGV0I.js → voice-reply-DfKSbOma.js} +1 -1
- package/dist/ui/assets/wc-attach-BvytbCpS.js +13 -0
- package/dist/ui/assets/{wc-detached-CJFrvQ5w.js → wc-detached-Bw0mLsiP.js} +1 -1
- package/dist/ui/assets/wc-extension-DS-jtOJw.js +2 -0
- package/dist/ui/assets/wc-live-B3kXelNl.js +253 -0
- package/dist/ui/assets/wc-nav-tMI3vvSL.js +2 -0
- package/dist/ui/assets/wc-onboarding-Dm8BUVRJ.js +2 -0
- package/dist/ui/assets/wc-permissions-mVh0SOdZ.js +3 -0
- package/dist/ui/assets/wc-permissions-providers-BufEXbhX.js +2 -0
- package/dist/ui/assets/wc-permissions-registry-CR1rTd2H.js +1 -0
- package/dist/ui/assets/wc-permissions-registry-Dx-BRiKK.js +1 -0
- package/dist/ui/assets/wc-placeholder-DEo1-1V5.js +4 -0
- package/dist/ui/assets/wc-settings-D3QCZnur.js +24 -0
- package/dist/ui/assets/{wc-shell-BGaEWRGh.js → wc-shell-DgOdmKyR.js} +603 -101
- package/dist/ui/assets/wc-sprinkles-D5si03_4.js +2 -0
- package/dist/ui/assets/wc-tray-lTqtwMFb.js +5 -0
- package/dist/ui/assets/whisper-engine-Emfsg6Pq.js +1 -0
- package/dist/ui/assets/whisper-session-Dt-B3KmT.js +2 -0
- package/dist/ui/assets/worker-D1KsWRGg.js +1 -1
- package/dist/ui/assets/writable-vfs-client-BKZGifKZ.js +1 -0
- package/dist/ui/assets/{xai-grok-BX1SWx3y.js → xai-grok-D4a_2yZf.js} +1 -1
- package/dist/ui/assets/{xai-grok-CggP425A.js → xai-grok-Dpq_7ZV8.js} +1 -1
- package/dist/ui/electron-overlay-entry.css +37 -0
- package/dist/ui/electron-overlay-entry.js +5853 -222
- package/dist/ui/index.html +7 -3
- package/dist/ui/llm-proxy-sw.js +1 -1
- package/dist/ui/packages/webapp/index.html +7 -3
- package/dist/ui/preview-sw.js +1 -1
- package/package.json +6 -1
- package/dist/ui/assets/__vite-browser-external-CM3Eme-n.js +0 -1
- package/dist/ui/assets/account-store-Dha2nLml.js +0 -38
- package/dist/ui/assets/account-store-DmjUSua_.js +0 -99
- package/dist/ui/assets/adobe-CpNl5eLk.js +0 -2
- package/dist/ui/assets/adobe-CtI7bDCt.js +0 -1
- package/dist/ui/assets/backend-local-CMfz45hs.js +0 -9
- package/dist/ui/assets/biome_wasm-DEjrJMqV.js +0 -1
- package/dist/ui/assets/bsh-watchdog-B27e-Og-.js +0 -74
- package/dist/ui/assets/cdn-url-builder-Cq7LLgru.js +0 -1
- package/dist/ui/assets/chunk-CMxvf4Kt.js +0 -1
- package/dist/ui/assets/common-ewBM5he1.js +0 -1
- package/dist/ui/assets/composer-speech-DYshRh0w.js +0 -1
- package/dist/ui/assets/dip-De30SVSa.js +0 -1
- package/dist/ui/assets/dist-DElqKLgF.js +0 -43
- package/dist/ui/assets/esp32-BTVUAltJ.js +0 -1
- package/dist/ui/assets/esp32c2-Cvhq9547.js +0 -1
- package/dist/ui/assets/esp32c3-D9lOBWYZ.js +0 -1
- package/dist/ui/assets/esp32c5-D2poFXyG.js +0 -1
- package/dist/ui/assets/esp32c6-Ct3LxBMw.js +0 -1
- package/dist/ui/assets/esp32c61-BsudQf3e.js +0 -1
- package/dist/ui/assets/esp32h2-CPO25efF.js +0 -1
- package/dist/ui/assets/esp32p4-GHiT8voO.js +0 -1
- package/dist/ui/assets/esp32s2-DrH4e7iJ.js +0 -1
- package/dist/ui/assets/esp32s3-BHbeScNz.js +0 -1
- package/dist/ui/assets/esp8266-DNz2CP4r.js +0 -1
- package/dist/ui/assets/github-DRvbws57.js +0 -2
- package/dist/ui/assets/github-DcwUCUyU.js +0 -1
- package/dist/ui/assets/hear-20YdcW5b.js +0 -1
- package/dist/ui/assets/hear-BOsXTls8.js +0 -1
- package/dist/ui/assets/js-realm-worker-BWFis6jC.js +0 -5
- package/dist/ui/assets/kernel-worker-DuaByjq4.js +0 -9820
- package/dist/ui/assets/kokoro-engine-CHIq9iyX.js +0 -2
- package/dist/ui/assets/kokoro-engine-CjyxHaAM.js +0 -1
- package/dist/ui/assets/magick-wasm-BvNy9LFP.js +0 -1
- package/dist/ui/assets/main-D-3iO2Pb.js +0 -24
- package/dist/ui/assets/mount-B60ugIMY.js +0 -1
- package/dist/ui/assets/mount-TPowGzXN.js +0 -2
- package/dist/ui/assets/mount-id-DtHfwjbZ.js +0 -1
- package/dist/ui/assets/mount-picker-popup-BORxgnGu.js +0 -1
- package/dist/ui/assets/new-session-BjrjaQDu.js +0 -2
- package/dist/ui/assets/nodejs-BQ9Oov1A.js +0 -1
- package/dist/ui/assets/oauth-bootstrap-D15vXH8k.js +0 -2
- package/dist/ui/assets/oauth-service-CoJ-pYVD.js +0 -1
- package/dist/ui/assets/oauth-service-D49nt7eJ.js +0 -1
- package/dist/ui/assets/panel-rpc-handlers-Ca3yEyOL.js +0 -2
- package/dist/ui/assets/preview-vfs-responder-dyQBWIl5.js +0 -1
- package/dist/ui/assets/provider-CT4MGofi.js +0 -2
- package/dist/ui/assets/provider-store-access-BHHITTJF.js +0 -1
- package/dist/ui/assets/provider-store-access-BSS9maA7.js +0 -1
- package/dist/ui/assets/proxied-fetch-BBO8HwcV.js +0 -1
- package/dist/ui/assets/py-realm-worker-BnG_DxBd.js +0 -242
- package/dist/ui/assets/remote-terminal-view-CSqiig2G.js +0 -6
- package/dist/ui/assets/remote-vfs-client-BwJhhtIV.js +0 -1
- package/dist/ui/assets/secret-env-DcfTe28K.js +0 -1
- package/dist/ui/assets/session-freezer-NFd-CALu.js +0 -1
- package/dist/ui/assets/setup-sudo-KPDfIsQ7.js +0 -1
- package/dist/ui/assets/shared-B7TdM-Ik.js +0 -1
- package/dist/ui/assets/speak-D511iTBd.js +0 -1
- package/dist/ui/assets/speak-EKtIqp6j.js +0 -1
- package/dist/ui/assets/sudo-B4yfntyh.js +0 -4
- package/dist/ui/assets/tool-ui-N76-EdVc.js +0 -1
- package/dist/ui/assets/tool-ui-YOPqzMmL.js +0 -1
- package/dist/ui/assets/transformers-env-6vj5CcH9.js +0 -1
- package/dist/ui/assets/transformers-env-O5Vtz_xj.js +0 -1
- package/dist/ui/assets/transformers.web-C9_H_wuQ.js +0 -37
- package/dist/ui/assets/transformers.web-DJfCkvxA.js +0 -43
- package/dist/ui/assets/typescript-qBO0Z4wm.js +0 -448
- package/dist/ui/assets/wc-attach-B62W7N_T.js +0 -13
- package/dist/ui/assets/wc-extension-C1CIBnT2.js +0 -2
- package/dist/ui/assets/wc-live-B3Dxlxlf.js +0 -253
- package/dist/ui/assets/wc-nav-DWMYNnDA.js +0 -2
- package/dist/ui/assets/wc-onboarding-DpKk5u_V.js +0 -2
- package/dist/ui/assets/wc-placeholder-CGPP_IEm.js +0 -4
- package/dist/ui/assets/wc-settings-DjqUSzpO.js +0 -24
- package/dist/ui/assets/wc-sprinkles-B5_aCIM5.js +0 -2
- package/dist/ui/assets/wc-tray-kVPhrwG1.js +0 -5
- package/dist/ui/assets/web-BMWiUYJ-.js +0 -1
- package/dist/ui/assets/whisper-session-D89gZWHf.js +0 -2
- package/dist/ui/assets/writable-vfs-client-DMYsajEE.js +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),u=o((e=>{
|
|
2
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3
|
+
e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),d=o((e=>{
|
|
4
|
+
/*!
|
|
5
|
+
* The buffer module from node.js, for the browser.
|
|
6
|
+
*
|
|
7
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
8
|
+
* @license MIT
|
|
9
|
+
*/
|
|
10
|
+
let t=l(),n=u(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;let i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return p(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return m(e,t);if(ArrayBuffer.isView(e))return g(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(he(e,ArrayBuffer)||e&&he(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(he(e,SharedArrayBuffer)||e&&he(e.buffer,SharedArrayBuffer)))return _(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=v(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function d(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function f(e,t,n){return d(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return f(e,t,n)};function p(e){return d(e),o(e<0?0:y(e)|0)}s.allocUnsafe=function(e){return p(e)},s.allocUnsafeSlow=function(e){return p(e)};function m(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=x(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function h(e){let t=e.length<0?0:y(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function g(e){if(he(e,Uint8Array)){let t=new Uint8Array(e);return _(t.buffer,t.byteOffset,t.byteLength)}return h(e)}function _(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function v(e){if(s.isBuffer(e)){let t=y(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||G(e.length)?o(0):h(e);if(e.type===`Buffer`&&Array.isArray(e.data))return h(e.data)}function y(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function b(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(he(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),he(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).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}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(he(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function x(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||he(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return pe(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return U(e).length;default:if(i)return r?-1:pe(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=x;function S(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return N(this,t,n);case`utf8`:case`utf-8`:return ee(this,t,n);case`ascii`:return ne(this,t,n);case`latin1`:case`binary`:return re(this,t,n);case`base64`:return j(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return P(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function C(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)C(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?ee(this,0,e):S.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(he(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function w(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,G(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:T(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):T(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function T(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)};function E(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(G(r))return o;e[n+o]=r}return o}function D(e,t,n,r){return W(pe(t,e.length-n),e,n,r)}function O(e,t,n,r){return W(me(t),e,n,r)}function k(e,t,n,r){return W(U(t),e,n,r)}function A(e,t,n,r){return W(H(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return E(this,e,t,n);case`utf8`:case`utf-8`:return D(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return O(this,e,t,n);case`base64`:return k(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return A(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function j(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function ee(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}let te=4096;function M(e){let t=e.length;if(t<=te)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=te));return n}function ne(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function re(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=K[e[r]];return i}function P(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function F(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=ge(function(e){e>>>=0,ue(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&de(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=ge(function(e){e>>>=0,ue(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&de(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=ge(function(e){e>>>=0,ue(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&de(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=ge(function(e){e>>>=0,ue(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&de(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!1,52,8)};function I(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;I(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;I(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ie(e,t,n,r,i){le(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function ae(e,t,n,r,i){le(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=ge(function(e,t=0){return ie(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=ge(function(e,t=0){return ae(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);I(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);I(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=ge(function(e,t=0){return ie(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=ge(function(e,t=0){return ae(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function oe(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,r,i,a){return t=+t,r>>>=0,a||oe(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)};function R(e,t,r,i,a){return t=+t,r>>>=0,a||oe(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let z={};function se(e,t,n){z[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}se(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),se(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),se(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=B(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=B(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function B(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function ce(e,t,n){ue(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&de(t,e.length-(n+1))}function le(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE(`value`,i,e)}ce(r,i,a)}function ue(e,t){if(typeof e!=`number`)throw new z.ERR_INVALID_ARG_TYPE(t,`number`,e)}function de(e,t,n){throw Math.floor(e)===e?t<0?new z.ERR_BUFFER_OUT_OF_BOUNDS:new z.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(ue(e,n),new z.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let fe=/[^+/0-9A-Za-z-_]/g;function V(e){if(e=e.split(`=`)[0],e=e.trim().replace(fe,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function pe(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function me(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function H(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function U(e){return t.toByteArray(V(e))}function W(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function he(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function G(e){return e!==e}let K=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function ge(e){return typeof BigInt>`u`?q:e}function q(){throw Error(`BigInt not supported`)}})),f=d();globalThis.Buffer===void 0&&(globalThis.Buffer=f.Buffer);var p=class extends Error{status;statusText;url;body;constructor(e,t,n,r){let i=typeof r==`string`&&r?`: ${r.slice(0,200)}`:r&&typeof r==`object`?`: ${m(r).slice(0,200)}`:``;super(`HTTP ${e} ${t} ${n}${i}`),this.status=e,this.statusText=t,this.url=n,this.body=r,this.name=`HttpError`}};function m(e){try{return JSON.stringify(e)}catch{return String(e)}}function h(e){return new Promise(t=>setTimeout(t,e))}function g(e,t,n){let r;if(r=/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:e?`${e.endsWith(`/`)?e.slice(0,-1):e}${t.startsWith(`/`)?t:`/${t}`}`:t,!n)return r;let i=[];for(let[e,t]of Object.entries(n))if(t!=null)if(Array.isArray(t))for(let n of t)n!=null&&i.push(`${encodeURIComponent(e)}=${encodeURIComponent(String(n))}`);else i.push(`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`);return i.length===0?r:r+(r.includes(`?`)?`&`:`?`)+i.join(`&`)}function _(e,t){let n={};if(e)for(let[t,r]of Object.entries(e))n[t]=r;if(t)for(let[e,r]of Object.entries(t))n[e]=r;return n}function v(e){if(!e)return!1;let t=e.toLowerCase();return t.startsWith(`application/json`)||/[+/]json(;|$|\s)/.test(t)}function y(e){if(!e)return null;let t=e.trim();if(!t)return null;if(/^\d+(\.\d+)?$/.test(t)){let e=Number(t);if(Number.isFinite(e)&&e>=0)return Math.round(e*1e3)}let n=Date.parse(t);if(Number.isFinite(n)){let e=n-Date.now();return e>0?e:0}return null}async function b(e){if(v(e.headers.get(`content-type`))){let t=await e.text();if(!t)return null;try{return JSON.parse(t)}catch{return t}}return e.text()}function x(e,t){if(e!=null)return typeof e==`string`||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof Blob<`u`&&e instanceof Blob||typeof FormData<`u`&&e instanceof FormData||typeof URLSearchParams<`u`&&e instanceof URLSearchParams||typeof ReadableStream<`u`&&e instanceof ReadableStream?e:typeof e==`object`?(Object.keys(t).some(e=>e.toLowerCase()===`content-type`)||(t[`Content-Type`]=`application/json`),JSON.stringify(e)):String(e)}function S(e){let t=e.sleep??h;function n(n){let r=new Set(n.retry?.on??[]),i=Math.max(1,Math.trunc(n.retry?.maxAttempts??1));async function a(a,o,s={}){let c=g(n.baseUrl,o,s.params),l=_(n.headers,s.headers);if(n.token){let e=await n.token({method:a,path:o,url:c});e&&(Object.keys(l).some(e=>e.toLowerCase()===`authorization`)||(l.Authorization=`Bearer ${e}`))}let u=x(s.body,l),d={method:a,headers:l};u!==void 0&&(d.body=u);let f=null;for(let a=0;a<i;a++){let o=n.timeoutMs?new AbortController:null,l=o?setTimeout(()=>o.abort(Error(`timeout`)),n.timeoutMs):null,u=s.signal&&o?.signal?AbortSignal.any([s.signal,o.signal]):s.signal??o?.signal,m=u?{...d,signal:u}:d,h;try{h=await e.fetch(c,m)}finally{l!==null&&clearTimeout(l)}if(f=h,h.ok){let e=await b(h);return s.raw?{body:e,headers:Object.fromEntries(h.headers.entries()),status:h.status}:e}if(!(a+1<i&&r.has(h.status))){let e=await b(h).catch(()=>null);throw new p(h.status,h.statusText,c,e)}let g=y(h.headers.get(`retry-after`)),_=500*2**a;await t(g===null?_:g)}if(f){let e=await b(f).catch(()=>null);throw new p(f.status,f.statusText,c,e)}throw Error(`http: no attempts made for ${a} ${c}`)}return Object.freeze({get:((e,t)=>a(`GET`,e,t)),post:((e,t)=>a(`POST`,e,t)),put:((e,t)=>a(`PUT`,e,t)),patch:((e,t)=>a(`PATCH`,e,t)),delete:((e,t)=>a(`DELETE`,e,t))})}return Object.freeze({client:n})}var C=o(((e,t)=>{t.exports={}})),w=o(((e,t)=>{
|
|
11
|
+
/**
|
|
12
|
+
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
13
|
+
*
|
|
14
|
+
* @namespace md5
|
|
15
|
+
* @version 0.8.3
|
|
16
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
17
|
+
* @copyright Chen, Yi-Cyuan 2014-2023
|
|
18
|
+
* @license MIT
|
|
19
|
+
*/
|
|
20
|
+
(function(){var e=`input is invalid type`,n=`finalize already called`,r=typeof window==`object`,i=r?window:{};i.JS_MD5_NO_WINDOW&&(r=!1);var a=!r&&typeof self==`object`,o=!i.JS_MD5_NO_NODE_JS&&typeof process==`object`&&process.versions&&process.versions.node;o?i=globalThis:a&&(i=self);var s=!i.JS_MD5_NO_COMMON_JS&&typeof t==`object`&&t.exports,c=typeof define==`function`&&define.amd,l=!i.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<`u`,u=`0123456789abcdef`.split(``),f=[128,32768,8388608,-2147483648],p=[0,8,16,24],m=[`hex`,`array`,`digest`,`buffer`,`arrayBuffer`,`base64`],h=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),g=[],_;if(l){var v=new ArrayBuffer(68);_=new Uint8Array(v),g=new Uint32Array(v)}var y=Array.isArray;(i.JS_MD5_NO_NODE_JS||!y)&&(y=function(e){return Object.prototype.toString.call(e)===`[object Array]`});var b=ArrayBuffer.isView;l&&(i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!b)&&(b=function(e){return typeof e==`object`&&e.buffer&&e.buffer.constructor===ArrayBuffer});var x=function(t){var n=typeof t;if(n===`string`)return[t,!0];if(n!==`object`||t===null)throw Error(e);if(l&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!y(t)&&!b(t))throw Error(e);return[t,!1]},S=function(e){return function(t){return new O(!0).update(t)[e]()}},w=function(){var e=S(`hex`);o&&(e=T(e)),e.create=function(){return new O},e.update=function(t){return e.create().update(t)};for(var t=0;t<m.length;++t){var n=m[t];e[n]=S(n)}return e},T=function(t){var n=C(),r=d().Buffer,a=r.from&&!i.JS_MD5_NO_BUFFER_FROM?r.from:function(e){return new r(e)};return function(i){if(typeof i==`string`)return n.createHash(`md5`).update(i,`utf8`).digest(`hex`);if(i==null)throw Error(e);return i.constructor===ArrayBuffer&&(i=new Uint8Array(i)),y(i)||b(i)||i.constructor===r?n.createHash(`md5`).update(a(i)).digest(`hex`):t(i)}},E=function(e){return function(t,n){return new k(t,!0).update(n)[e]()}},D=function(){var e=E(`hex`);e.create=function(e){return new k(e)},e.update=function(t,n){return e.create(t).update(n)};for(var t=0;t<m.length;++t){var n=m[t];e[n]=E(n)}return e};function O(e){if(e)g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g,this.buffer8=_;else if(l){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}O.prototype.update=function(e){if(this.finalized)throw Error(n);var t=x(e);e=t[0];for(var r=t[1],i,a=0,o,s=e.length,c=this.blocks,u=this.buffer8;a<s;){if(this.hashed&&(this.hashed=!1,c[0]=c[16],c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),r)if(l)for(o=this.start;a<s&&o<64;++a)i=e.charCodeAt(a),i<128?u[o++]=i:i<2048?(u[o++]=192|i>>>6,u[o++]=128|i&63):i<55296||i>=57344?(u[o++]=224|i>>>12,u[o++]=128|i>>>6&63,u[o++]=128|i&63):(i=65536+((i&1023)<<10|e.charCodeAt(++a)&1023),u[o++]=240|i>>>18,u[o++]=128|i>>>12&63,u[o++]=128|i>>>6&63,u[o++]=128|i&63);else for(o=this.start;a<s&&o<64;++a)i=e.charCodeAt(a),i<128?c[o>>>2]|=i<<p[o++&3]:i<2048?(c[o>>>2]|=(192|i>>>6)<<p[o++&3],c[o>>>2]|=(128|i&63)<<p[o++&3]):i<55296||i>=57344?(c[o>>>2]|=(224|i>>>12)<<p[o++&3],c[o>>>2]|=(128|i>>>6&63)<<p[o++&3],c[o>>>2]|=(128|i&63)<<p[o++&3]):(i=65536+((i&1023)<<10|e.charCodeAt(++a)&1023),c[o>>>2]|=(240|i>>>18)<<p[o++&3],c[o>>>2]|=(128|i>>>12&63)<<p[o++&3],c[o>>>2]|=(128|i>>>6&63)<<p[o++&3],c[o>>>2]|=(128|i&63)<<p[o++&3]);else if(l)for(o=this.start;a<s&&o<64;++a)u[o++]=e[a];else for(o=this.start;a<s&&o<64;++a)c[o>>>2]|=e[a]<<p[o++&3];this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes%=4294967296),this},O.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>>2]|=f[t&3],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},O.prototype.hash=function(){var e,t,n,r,i,a,o=this.blocks;this.first?(e=o[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,r=(-1732584194^e&2004318071)+o[1]-117830708,r=(r<<12|r>>>20)+e<<0,n=(-271733879^r&(e^-271733879))+o[2]-1126478375,n=(n<<17|n>>>15)+r<<0,t=(e^n&(r^e))+o[3]-1316259209,t=(t<<22|t>>>10)+n<<0):(e=this.h0,t=this.h1,n=this.h2,r=this.h3,e+=(r^t&(n^r))+o[0]-680876936,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+o[1]-389564586,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+o[2]+606105819,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+o[3]-1044525330,t=(t<<22|t>>>10)+n<<0),e+=(r^t&(n^r))+o[4]-176418897,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+o[5]+1200080426,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+o[6]-1473231341,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+o[7]-45705983,t=(t<<22|t>>>10)+n<<0,e+=(r^t&(n^r))+o[8]+1770035416,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+o[9]-1958414417,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+o[10]-42063,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+o[11]-1990404162,t=(t<<22|t>>>10)+n<<0,e+=(r^t&(n^r))+o[12]+1804603682,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+o[13]-40341101,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+o[14]-1502002290,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+o[15]+1236535329,t=(t<<22|t>>>10)+n<<0,e+=(n^r&(t^n))+o[1]-165796510,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+o[6]-1069501632,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+o[11]+643717713,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+o[0]-373897302,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+o[5]-701558691,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+o[10]+38016083,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+o[15]-660478335,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+o[4]-405537848,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+o[9]+568446438,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+o[14]-1019803690,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+o[3]-187363961,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+o[8]+1163531501,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+o[13]-1444681467,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+o[2]-51403784,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+o[7]+1735328473,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+o[12]-1926607734,t=(t<<20|t>>>12)+n<<0,i=t^n,e+=(i^r)+o[5]-378558,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+o[8]-2022574463,r=(r<<11|r>>>21)+e<<0,a=r^e,n+=(a^t)+o[11]+1839030562,n=(n<<16|n>>>16)+r<<0,t+=(a^n)+o[14]-35309556,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+o[1]-1530992060,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+o[4]+1272893353,r=(r<<11|r>>>21)+e<<0,a=r^e,n+=(a^t)+o[7]-155497632,n=(n<<16|n>>>16)+r<<0,t+=(a^n)+o[10]-1094730640,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+o[13]+681279174,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+o[0]-358537222,r=(r<<11|r>>>21)+e<<0,a=r^e,n+=(a^t)+o[3]-722521979,n=(n<<16|n>>>16)+r<<0,t+=(a^n)+o[6]+76029189,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+o[9]-640364487,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+o[12]-421815835,r=(r<<11|r>>>21)+e<<0,a=r^e,n+=(a^t)+o[15]+530742520,n=(n<<16|n>>>16)+r<<0,t+=(a^n)+o[2]-995338651,t=(t<<23|t>>>9)+n<<0,e+=(n^(t|~r))+o[0]-198630844,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+o[7]+1126891415,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+o[14]-1416354905,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+o[5]-57434055,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+o[12]+1700485571,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+o[3]-1894986606,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+o[10]-1051523,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+o[1]-2054922799,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+o[8]+1873313359,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+o[15]-30611744,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+o[6]-1560198380,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+o[13]+1309151649,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+o[4]-145523070,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+o[11]-1120210379,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+o[2]+718787259,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+o[9]-343485551,t=(t<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},O.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return u[e>>>4&15]+u[e&15]+u[e>>>12&15]+u[e>>>8&15]+u[e>>>20&15]+u[e>>>16&15]+u[e>>>28&15]+u[e>>>24&15]+u[t>>>4&15]+u[t&15]+u[t>>>12&15]+u[t>>>8&15]+u[t>>>20&15]+u[t>>>16&15]+u[t>>>28&15]+u[t>>>24&15]+u[n>>>4&15]+u[n&15]+u[n>>>12&15]+u[n>>>8&15]+u[n>>>20&15]+u[n>>>16&15]+u[n>>>28&15]+u[n>>>24&15]+u[r>>>4&15]+u[r&15]+u[r>>>12&15]+u[r>>>8&15]+u[r>>>20&15]+u[r>>>16&15]+u[r>>>28&15]+u[r>>>24&15]},O.prototype.toString=O.prototype.hex,O.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return[e&255,e>>>8&255,e>>>16&255,e>>>24&255,t&255,t>>>8&255,t>>>16&255,t>>>24&255,n&255,n>>>8&255,n>>>16&255,n>>>24&255,r&255,r>>>8&255,r>>>16&255,r>>>24&255]},O.prototype.array=O.prototype.digest,O.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},O.prototype.buffer=O.prototype.arrayBuffer,O.prototype.base64=function(){for(var e,t,n,r=``,i=this.array(),a=0;a<15;)e=i[a++],t=i[a++],n=i[a++],r+=h[e>>>2]+h[(e<<4|t>>>4)&63]+h[(t<<2|n>>>6)&63]+h[n&63];return e=i[a],r+=h[e>>>2]+h[e<<4&63]+`==`,r};function k(e,t){var n,r=x(e);if(e=r[0],r[1]){var i=[],a=e.length,o=0,s;for(n=0;n<a;++n)s=e.charCodeAt(n),s<128?i[o++]=s:s<2048?(i[o++]=192|s>>>6,i[o++]=128|s&63):s<55296||s>=57344?(i[o++]=224|s>>>12,i[o++]=128|s>>>6&63,i[o++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++n)&1023),i[o++]=240|s>>>18,i[o++]=128|s>>>12&63,i[o++]=128|s>>>6&63,i[o++]=128|s&63);e=i}e.length>64&&(e=new O(!0).update(e).array());var c=[],l=[];for(n=0;n<64;++n){var u=e[n]||0;c[n]=92^u,l[n]=54^u}O.call(this,t),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=t}k.prototype=new O,k.prototype.finalize=function(){if(O.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();O.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(e),O.prototype.finalize.call(this)}};var A=w();A.md5=A,A.md5.hmac=D(),s?t.exports=A:(i.md5=A,c&&define(function(){return A}))})()})),T=o(((e,t)=>{
|
|
21
|
+
/*
|
|
22
|
+
* [js-sha1]{@link https://github.com/emn178/js-sha1}
|
|
23
|
+
*
|
|
24
|
+
* @version 0.7.0
|
|
25
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
26
|
+
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
27
|
+
* @license MIT
|
|
28
|
+
*/
|
|
29
|
+
(function(){var e=`input is invalid type`,n=`finalize already called`,r=typeof window==`object`,i=r?window:{};i.JS_SHA1_NO_WINDOW&&(r=!1);var a=!r&&typeof self==`object`,o=!i.JS_SHA1_NO_NODE_JS&&typeof process==`object`&&process.versions&&process.versions.node;o?i=globalThis:a&&(i=self);var s=!i.JS_SHA1_NO_COMMON_JS&&typeof t==`object`&&t.exports,c=typeof define==`function`&&define.amd,l=!i.JS_SHA1_NO_ARRAY_BUFFER&&typeof ArrayBuffer<`u`,u=`0123456789abcdef`.split(``),f=[-2147483648,8388608,32768,128],p=[24,16,8,0],m=[`hex`,`array`,`digest`,`arrayBuffer`],h=[],g=Array.isArray;(i.JS_SHA1_NO_NODE_JS||!g)&&(g=function(e){return Object.prototype.toString.call(e)===`[object Array]`});var _=ArrayBuffer.isView;l&&(i.JS_SHA1_NO_ARRAY_BUFFER_IS_VIEW||!_)&&(_=function(e){return typeof e==`object`&&e.buffer&&e.buffer.constructor===ArrayBuffer});var v=function(t){var n=typeof t;if(n===`string`)return[t,!0];if(n!==`object`||t===null)throw Error(e);if(l&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!g(t)&&!_(t))throw Error(e);return[t,!1]},y=function(e){return function(t){return new T(!0).update(t)[e]()}},b=function(){var e=y(`hex`);o&&(e=x(e)),e.create=function(){return new T},e.update=function(t){return e.create().update(t)};for(var t=0;t<m.length;++t){var n=m[t];e[n]=y(n)}return e},x=function(t){var n=C(),r=d().Buffer,a=r.from&&!i.JS_SHA1_NO_BUFFER_FROM?r.from:function(e){return new r(e)};return function(i){if(typeof i==`string`)return n.createHash(`sha1`).update(i,`utf8`).digest(`hex`);if(i==null)throw Error(e);return i.constructor===ArrayBuffer&&(i=new Uint8Array(i)),g(i)||_(i)||i.constructor===r?n.createHash(`sha1`).update(a(i)).digest(`hex`):t(i)}},S=function(e){return function(t,n){return new E(t,!0).update(n)[e]()}},w=function(){var e=S(`hex`);e.create=function(e){return new E(e)},e.update=function(t,n){return e.create(t).update(n)};for(var t=0;t<m.length;++t){var n=m[t];e[n]=S(n)}return e};function T(e){e?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}T.prototype.update=function(e){if(this.finalized)throw Error(n);var t=v(e);e=t[0];for(var r=t[1],i,a=0,o,s=e.length||0,c=this.blocks;a<s;){if(this.hashed&&(this.hashed=!1,c[0]=this.block,this.block=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),r)for(o=this.start;a<s&&o<64;++a)i=e.charCodeAt(a),i<128?c[o>>>2]|=i<<p[o++&3]:i<2048?(c[o>>>2]|=(192|i>>>6)<<p[o++&3],c[o>>>2]|=(128|i&63)<<p[o++&3]):i<55296||i>=57344?(c[o>>>2]|=(224|i>>>12)<<p[o++&3],c[o>>>2]|=(128|i>>>6&63)<<p[o++&3],c[o>>>2]|=(128|i&63)<<p[o++&3]):(i=65536+((i&1023)<<10|e.charCodeAt(++a)&1023),c[o>>>2]|=(240|i>>>18)<<p[o++&3],c[o>>>2]|=(128|i>>>12&63)<<p[o++&3],c[o>>>2]|=(128|i>>>6&63)<<p[o++&3],c[o>>>2]|=(128|i&63)<<p[o++&3]);else for(o=this.start;a<s&&o<64;++a)c[o>>>2]|=e[a]<<p[o++&3];this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=c[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes%=4294967296),this},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=f[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},T.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,a,o,s,c=this.blocks;for(o=16;o<80;++o)s=c[o-3]^c[o-8]^c[o-14]^c[o-16],c[o]=s<<1|s>>>31;for(o=0;o<20;o+=5)a=t&n|~t&r,s=e<<5|e>>>27,i=s+a+i+1518500249+c[o]<<0,t=t<<30|t>>>2,a=e&t|~e&n,s=i<<5|i>>>27,r=s+a+r+1518500249+c[o+1]<<0,e=e<<30|e>>>2,a=i&e|~i&t,s=r<<5|r>>>27,n=s+a+n+1518500249+c[o+2]<<0,i=i<<30|i>>>2,a=r&i|~r&e,s=n<<5|n>>>27,t=s+a+t+1518500249+c[o+3]<<0,r=r<<30|r>>>2,a=n&r|~n&i,s=t<<5|t>>>27,e=s+a+e+1518500249+c[o+4]<<0,n=n<<30|n>>>2;for(;o<40;o+=5)a=t^n^r,s=e<<5|e>>>27,i=s+a+i+1859775393+c[o]<<0,t=t<<30|t>>>2,a=e^t^n,s=i<<5|i>>>27,r=s+a+r+1859775393+c[o+1]<<0,e=e<<30|e>>>2,a=i^e^t,s=r<<5|r>>>27,n=s+a+n+1859775393+c[o+2]<<0,i=i<<30|i>>>2,a=r^i^e,s=n<<5|n>>>27,t=s+a+t+1859775393+c[o+3]<<0,r=r<<30|r>>>2,a=n^r^i,s=t<<5|t>>>27,e=s+a+e+1859775393+c[o+4]<<0,n=n<<30|n>>>2;for(;o<60;o+=5)a=t&n|t&r|n&r,s=e<<5|e>>>27,i=s+a+i-1894007588+c[o]<<0,t=t<<30|t>>>2,a=e&t|e&n|t&n,s=i<<5|i>>>27,r=s+a+r-1894007588+c[o+1]<<0,e=e<<30|e>>>2,a=i&e|i&t|e&t,s=r<<5|r>>>27,n=s+a+n-1894007588+c[o+2]<<0,i=i<<30|i>>>2,a=r&i|r&e|i&e,s=n<<5|n>>>27,t=s+a+t-1894007588+c[o+3]<<0,r=r<<30|r>>>2,a=n&r|n&i|r&i,s=t<<5|t>>>27,e=s+a+e-1894007588+c[o+4]<<0,n=n<<30|n>>>2;for(;o<80;o+=5)a=t^n^r,s=e<<5|e>>>27,i=s+a+i-899497514+c[o]<<0,t=t<<30|t>>>2,a=e^t^n,s=i<<5|i>>>27,r=s+a+r-899497514+c[o+1]<<0,e=e<<30|e>>>2,a=i^e^t,s=r<<5|r>>>27,n=s+a+n-899497514+c[o+2]<<0,i=i<<30|i>>>2,a=r^i^e,s=n<<5|n>>>27,t=s+a+t-899497514+c[o+3]<<0,r=r<<30|r>>>2,a=n^r^i,s=t<<5|t>>>27,e=s+a+e-899497514+c[o+4]<<0,n=n<<30|n>>>2;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+i<<0},T.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4;return u[e>>>28&15]+u[e>>>24&15]+u[e>>>20&15]+u[e>>>16&15]+u[e>>>12&15]+u[e>>>8&15]+u[e>>>4&15]+u[e&15]+u[t>>>28&15]+u[t>>>24&15]+u[t>>>20&15]+u[t>>>16&15]+u[t>>>12&15]+u[t>>>8&15]+u[t>>>4&15]+u[t&15]+u[n>>>28&15]+u[n>>>24&15]+u[n>>>20&15]+u[n>>>16&15]+u[n>>>12&15]+u[n>>>8&15]+u[n>>>4&15]+u[n&15]+u[r>>>28&15]+u[r>>>24&15]+u[r>>>20&15]+u[r>>>16&15]+u[r>>>12&15]+u[r>>>8&15]+u[r>>>4&15]+u[r&15]+u[i>>>28&15]+u[i>>>24&15]+u[i>>>20&15]+u[i>>>16&15]+u[i>>>12&15]+u[i>>>8&15]+u[i>>>4&15]+u[i&15]},T.prototype.toString=T.prototype.hex,T.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4;return[e>>>24&255,e>>>16&255,e>>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255]},T.prototype.array=T.prototype.digest,T.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};function E(e,t){var n,r=v(e);if(e=r[0],r[1]){var i=[],a=e.length,o=0,s;for(n=0;n<a;++n)s=e.charCodeAt(n),s<128?i[o++]=s:s<2048?(i[o++]=192|s>>>6,i[o++]=128|s&63):s<55296||s>=57344?(i[o++]=224|s>>>12,i[o++]=128|s>>>6&63,i[o++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++n)&1023),i[o++]=240|s>>>18,i[o++]=128|s>>>12&63,i[o++]=128|s>>>6&63,i[o++]=128|s&63);e=i}e.length>64&&(e=new T(!0).update(e).array());var c=[],l=[];for(n=0;n<64;++n){var u=e[n]||0;c[n]=92^u,l[n]=54^u}T.call(this,t),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=t}E.prototype=new T,E.prototype.finalize=function(){if(T.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();T.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(e),T.prototype.finalize.call(this)}};var D=b();D.sha1=D,D.sha1.hmac=w(),s?t.exports=D:(i.sha1=D,c&&define(function(){return D}))})()})),E=o(((e,t)=>{
|
|
30
|
+
/**
|
|
31
|
+
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
32
|
+
*
|
|
33
|
+
* @version 0.11.1
|
|
34
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
35
|
+
* @copyright Chen, Yi-Cyuan 2014-2025
|
|
36
|
+
* @license MIT
|
|
37
|
+
*/
|
|
38
|
+
(function(){var e=`input is invalid type`,n=typeof window==`object`,r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&typeof self==`object`,a=!r.JS_SHA256_NO_NODE_JS&&typeof process==`object`&&process.versions&&process.versions.node&&process.type!=`renderer`;a?r=globalThis:i&&(r=self);var o=!r.JS_SHA256_NO_COMMON_JS&&typeof t==`object`&&t.exports,s=typeof define==`function`&&define.amd,c=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<`u`,l=`0123456789abcdef`.split(``),u=[-2147483648,8388608,32768,128],f=[24,16,8,0],p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=[`hex`,`array`,`digest`,`arrayBuffer`],h=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)===`[object Array]`}),c&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e==`object`&&e.buffer&&e.buffer.constructor===ArrayBuffer});var g=function(e,t){return function(n){return new x(t,!0).update(n)[e]()}},_=function(e){var t=g(`hex`,e);a&&(t=v(t,e)),t.create=function(){return new x(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<m.length;++n){var r=m[n];t[r]=g(r,e)}return t},v=function(t,n){var i=C(),a=d().Buffer,o=n?`sha224`:`sha256`,s=a.from&&!r.JS_SHA256_NO_BUFFER_FROM?a.from:function(e){return new a(e)};return function(n){if(typeof n==`string`)return i.createHash(o).update(n,`utf8`).digest(`hex`);if(n==null)throw Error(e);return n.constructor===ArrayBuffer&&(n=new Uint8Array(n)),Array.isArray(n)||ArrayBuffer.isView(n)||n.constructor===a?i.createHash(o).update(s(n)).digest(`hex`):t(n)}},y=function(e,t){return function(n,r){return new S(n,t,!0).update(r)[e]()}},b=function(e){var t=y(`hex`,e);t.create=function(t){return new S(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<m.length;++n){var r=m[n];t[r]=y(r,e)}return t};function x(e,t){t?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}x.prototype.update=function(t){if(!this.finalized){var n,r=typeof t;if(r!==`string`){if(r===`object`){if(t===null)throw Error(e);if(c&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!c||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);n=!0}for(var i,a=0,o,s=t.length,l=this.blocks;a<s;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,this.block=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),n)for(o=this.start;a<s&&o<64;++a)l[o>>>2]|=t[a]<<f[o++&3];else for(o=this.start;a<s&&o<64;++a)i=t.charCodeAt(a),i<128?l[o>>>2]|=i<<f[o++&3]:i<2048?(l[o>>>2]|=(192|i>>>6)<<f[o++&3],l[o>>>2]|=(128|i&63)<<f[o++&3]):i<55296||i>=57344?(l[o>>>2]|=(224|i>>>12)<<f[o++&3],l[o>>>2]|=(128|i>>>6&63)<<f[o++&3],l[o>>>2]|=(128|i&63)<<f[o++&3]):(i=65536+((i&1023)<<10|t.charCodeAt(++a)&1023),l[o>>>2]|=(240|i>>>18)<<f[o++&3],l[o>>>2]|=(128|i>>>12&63)<<f[o++&3],l[o>>>2]|=(128|i>>>6&63)<<f[o++&3],l[o>>>2]|=(128|i&63)<<f[o++&3]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=l[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes%=4294967296),this}},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=u[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},x.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,a=this.h5,o=this.h6,s=this.h7,c=this.blocks,l,u,d,f,m,h,g,_,v,y,b;for(l=16;l<64;++l)m=c[l-15],u=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=c[l-2],d=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,c[l]=c[l-16]+u+c[l-7]+d<<0;for(b=t&n,l=0;l<64;l+=4)this.first?(this.is224?(_=300032,m=c[0]-1413257819,s=m-150054599<<0,r=m+24177077<<0):(_=704751109,m=c[0]-210244248,s=m-1521486534<<0,r=m+143694565<<0),this.first=!1):(u=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),_=e&t,f=_^e&n^b,g=i&a^~i&o,m=s+d+g+p[l]+c[l],h=u+f,s=r+m<<0,r=m+h<<0),u=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),v=r&e,f=v^r&t^_,g=s&i^~s&a,m=o+d+g+p[l+1]+c[l+1],h=u+f,o=n+m<<0,n=m+h<<0,u=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,f=y^n&e^v,g=o&s^~o&i,m=a+d+g+p[l+2]+c[l+2],h=u+f,a=t+m<<0,t=m+h<<0,u=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=t&n,f=b^t&r^y,g=a&o^~a&s,m=i+d+g+p[l+3]+c[l+3],h=u+f,i=e+m<<0,e=m+h<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+i<<0,this.h5=this.h5+a<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0},x.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,a=this.h5,o=this.h6,s=this.h7,c=l[e>>>28&15]+l[e>>>24&15]+l[e>>>20&15]+l[e>>>16&15]+l[e>>>12&15]+l[e>>>8&15]+l[e>>>4&15]+l[e&15]+l[t>>>28&15]+l[t>>>24&15]+l[t>>>20&15]+l[t>>>16&15]+l[t>>>12&15]+l[t>>>8&15]+l[t>>>4&15]+l[t&15]+l[n>>>28&15]+l[n>>>24&15]+l[n>>>20&15]+l[n>>>16&15]+l[n>>>12&15]+l[n>>>8&15]+l[n>>>4&15]+l[n&15]+l[r>>>28&15]+l[r>>>24&15]+l[r>>>20&15]+l[r>>>16&15]+l[r>>>12&15]+l[r>>>8&15]+l[r>>>4&15]+l[r&15]+l[i>>>28&15]+l[i>>>24&15]+l[i>>>20&15]+l[i>>>16&15]+l[i>>>12&15]+l[i>>>8&15]+l[i>>>4&15]+l[i&15]+l[a>>>28&15]+l[a>>>24&15]+l[a>>>20&15]+l[a>>>16&15]+l[a>>>12&15]+l[a>>>8&15]+l[a>>>4&15]+l[a&15]+l[o>>>28&15]+l[o>>>24&15]+l[o>>>20&15]+l[o>>>16&15]+l[o>>>12&15]+l[o>>>8&15]+l[o>>>4&15]+l[o&15];return this.is224||(c+=l[s>>>28&15]+l[s>>>24&15]+l[s>>>20&15]+l[s>>>16&15]+l[s>>>12&15]+l[s>>>8&15]+l[s>>>4&15]+l[s&15]),c},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,a=this.h5,o=this.h6,s=this.h7,c=[e>>>24&255,e>>>16&255,e>>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255];return this.is224||c.push(s>>>24&255,s>>>16&255,s>>>8&255,s&255),c},x.prototype.array=x.prototype.digest,x.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function S(t,n,r){var i,a=typeof t;if(a===`string`){var o=[],s=t.length,l=0,u;for(i=0;i<s;++i)u=t.charCodeAt(i),u<128?o[l++]=u:u<2048?(o[l++]=192|u>>>6,o[l++]=128|u&63):u<55296||u>=57344?(o[l++]=224|u>>>12,o[l++]=128|u>>>6&63,o[l++]=128|u&63):(u=65536+((u&1023)<<10|t.charCodeAt(++i)&1023),o[l++]=240|u>>>18,o[l++]=128|u>>>12&63,o[l++]=128|u>>>6&63,o[l++]=128|u&63);t=o}else if(a===`object`){if(t===null)throw Error(e);if(c&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!c||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);t.length>64&&(t=new x(n,!0).update(t).array());var d=[],f=[];for(i=0;i<64;++i){var p=t[i]||0;d[i]=92^p,f[i]=54^p}x.call(this,n,r),this.update(f),this.oKeyPad=d,this.inner=!0,this.sharedMemory=r}S.prototype=new x,S.prototype.finalize=function(){if(x.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();x.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),x.prototype.finalize.call(this)}};var w=_();w.sha256=w,w.sha224=_(!0),w.sha256.hmac=b(),w.sha224.hmac=b(!0),o?t.exports=w:(r.sha256=w.sha256,r.sha224=w.sha224,s&&define(function(){return w}))})()})),D=o((e=>{var t=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!=`object`)throw TypeError(r+`must be non-object`);for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r=0,i,a,o;for(t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},i={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})),O=o((e=>{var t=D(),n=4,r=0,i=1,a=2;function o(e){for(var t=e.length;--t>=0;)e[t]=0}var s=0,c=1,l=2,u=3,d=258,f=29,p=256,m=p+1+f,h=30,g=19,_=2*m+1,v=15,y=16,b=7,x=256,S=16,C=17,w=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=512,j=Array((m+2)*2);o(j);var ee=Array(h*2);o(ee);var te=Array(A);o(te);var M=Array(d-u+1);o(M);var ne=Array(f);o(ne);var re=Array(h);o(re);function N(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var P,F,I;function ie(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ae(e){return e<256?te[e]:te[256+(e>>>7)]}function oe(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function L(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<<e.bi_valid&65535,oe(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function R(e,t,n){L(e,n[t*2],n[t*2+1])}function z(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function se(e){e.bi_valid===16?(oe(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function B(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=v;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<_;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}}function ce(e,t,n){var r=Array(v+1),i=0,a,o;for(a=1;a<=v;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=z(r[s]++,s))}}function le(){var e,t,n,r,i,a=Array(v+1);for(n=0,r=0;r<f-1;r++)for(ne[r]=n,e=0;e<1<<T[r];e++)M[n++]=r;for(M[n-1]=r,i=0,r=0;r<16;r++)for(re[r]=i,e=0;e<1<<E[r];e++)te[i++]=r;for(i>>=7;r<h;r++)for(re[r]=i<<7,e=0;e<1<<E[r]-7;e++)te[256+ i++]=r;for(t=0;t<=v;t++)a[t]=0;for(e=0;e<=143;)j[e*2+1]=8,e++,a[8]++;for(;e<=255;)j[e*2+1]=9,e++,a[9]++;for(;e<=279;)j[e*2+1]=7,e++,a[7]++;for(;e<=287;)j[e*2+1]=8,e++,a[8]++;for(ce(j,m+1,a),e=0;e<h;e++)ee[e*2+1]=5,ee[e*2]=z(e,5);P=new N(j,T,p+1,m,v),F=new N(ee,E,0,h,v),I=new N([],O,0,g,b)}function ue(e){var t;for(t=0;t<m;t++)e.dyn_ltree[t*2]=0;for(t=0;t<h;t++)e.dyn_dtree[t*2]=0;for(t=0;t<g;t++)e.bl_tree[t*2]=0;e.dyn_ltree[x*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function de(e){e.bi_valid>8?oe(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function fe(e,n,r,i){de(e),i&&(oe(e,r),oe(e,~r)),t.arraySet(e.pending_buf,e.window,n,r,e.pending),e.pending+=r}function V(e,t,n,r){var i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function pe(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&V(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!V(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function me(e,t,n){var r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?R(e,i,t):(o=M[i],R(e,o+p+1,t),s=T[o],s!==0&&(i-=ne[o],L(e,i,s)),r--,o=ae(r),R(e,o,n),s=E[o],s!==0&&(r-=re[o],L(e,r,s)));while(a<e.last_lit);R(e,x,t)}function H(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=_,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)pe(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pe(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,pe(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],B(e,t),ce(n,c,e.bl_count)}function U(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[C*2]++:e.bl_tree[w*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[S*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))}function W(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do R(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(R(e,C,e.bl_tree),L(e,s-3,3)):(R(e,w,e.bl_tree),L(e,s-11,7)):(a!==i&&(R(e,a,e.bl_tree),s--),R(e,S,e.bl_tree),L(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}}function he(e){var t;for(U(e,e.dyn_ltree,e.l_desc.max_code),U(e,e.dyn_dtree,e.d_desc.max_code),H(e,e.bl_desc),t=g-1;t>=3&&e.bl_tree[k[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function G(e,t,n,r){var i;for(L(e,t-257,5),L(e,n-1,5),L(e,r-4,4),i=0;i<r;i++)L(e,e.bl_tree[k[i]*2+1],3);W(e,e.dyn_ltree,t-1),W(e,e.dyn_dtree,n-1)}function K(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return r;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return i;for(n=32;n<p;n++)if(e.dyn_ltree[n*2]!==0)return i;return r}var ge=!1;function q(e){ge||=(le(),!0),e.l_desc=new ie(e.dyn_ltree,P),e.d_desc=new ie(e.dyn_dtree,F),e.bl_desc=new ie(e.bl_tree,I),e.bi_buf=0,e.bi_valid=0,ue(e)}function J(e,t,n,r){L(e,(s<<1)+ +!!r,3),fe(e,t,n,!0)}function _e(e){L(e,c<<1,3),R(e,x,j),se(e)}function ve(e,t,r,i){var o,s,u=0;e.level>0?(e.strm.data_type===a&&(e.strm.data_type=K(e)),H(e,e.l_desc),H(e,e.d_desc),u=he(e),o=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=o&&(o=s)):o=s=r+5,r+4<=o&&t!==-1?J(e,t,r,i):e.strategy===n||s===o?(L(e,(c<<1)+ +!!i,3),me(e,j,ee)):(L(e,(l<<1)+ +!!i,3),G(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),me(e,e.dyn_ltree,e.dyn_dtree)),ue(e),i&&de(e)}function Y(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(M[n]+p+1)*2]++,e.dyn_dtree[ae(t)*2]++),e.last_lit===e.lit_bufsize-1}e._tr_init=q,e._tr_stored_block=J,e._tr_flush_block=ve,e._tr_tally=Y,e._tr_align=_e})),k=o(((e,t)=>{function n(e,t,n,r){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=n})),A=o(((e,t)=>{function n(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var r=n();function i(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}t.exports=i})),j=o(((e,t)=>{t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}})),ee=o((e=>{var t=D(),n=O(),r=k(),i=A(),a=j(),o=0,s=1,c=3,l=4,u=5,d=0,f=1,p=-2,m=-3,h=-5,g=-1,_=1,v=2,y=3,b=4,x=0,S=2,C=8,w=9,T=15,E=8,ee=286,te=30,M=19,ne=2*ee+1,re=15,N=3,P=258,F=P+N+1,I=32,ie=42,ae=69,oe=73,L=91,R=103,z=113,se=666,B=1,ce=2,le=3,ue=4,de=3;function fe(e,t){return e.msg=a[t],t}function V(e){return(e<<1)-(e>4?9:0)}function pe(e){for(var t=e.length;--t>=0;)e[t]=0}function me(e){var n=e.state,r=n.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(t.arraySet(e.output,n.pending_buf,n.pending_out,r,e.next_out),e.next_out+=r,n.pending_out+=r,e.total_out+=r,e.avail_out-=r,n.pending-=r,n.pending===0&&(n.pending_out=0))}function H(e,t){n._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,me(e.strm)}function U(e,t){e.pending_buf[e.pending++]=t}function W(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function he(e,n,a,o){var s=e.avail_in;return s>o&&(s=o),s===0?0:(e.avail_in-=s,t.arraySet(n,e.input,e.next_in,s,a),e.state.wrap===1?e.adler=r(e.adler,n,s,a):e.state.wrap===2&&(e.adler=i(e.adler,n,s,a)),e.next_in+=s,e.total_in+=s,s)}function G(e,t){var n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-F?e.strstart-(e.w_size-F):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+P,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(i=t,l[i+o]!==m||l[i+o-1]!==p||l[i]!==l[r]||l[++i]!==l[r+1])continue;r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=P-(f-r),r=f-P,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead}function K(e){var n=e.w_size,r,i,a,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-F)){t.arraySet(e.window,e.window,n,n,0),e.match_start-=n,e.strstart-=n,e.block_start-=n,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=n?a-n:0;while(--i);i=n,r=i;do a=e.prev[--r],e.prev[r]=a>=n?a-n:0;while(--i);o+=n}if(e.strm.avail_in===0)break;if(i=he(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=N)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+N-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<N)););}while(e.lookahead<F&&e.strm.avail_in!==0)}function ge(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(K(e),e.lookahead===0&&t===o)return B;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,H(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-F&&(H(e,!1),e.strm.avail_out===0))return B}return e.insert=0,t===l?(H(e,!0),e.strm.avail_out===0?le:ue):(e.strstart>e.block_start&&(H(e,!1),e.strm.avail_out),B)}function q(e,t){for(var r,i;;){if(e.lookahead<F){if(K(e),e.lookahead<F&&t===o)return B;if(e.lookahead===0)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-F&&(e.match_length=G(e,r)),e.match_length>=N)if(i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(H(e,!1),e.strm.avail_out===0))return B}return e.insert=e.strstart<N-1?e.strstart:N-1,t===l?(H(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(H(e,!1),e.strm.avail_out===0)?B:ce}function J(e,t){for(var r,i,a;;){if(e.lookahead<F){if(K(e),e.lookahead<F&&t===o)return B;if(e.lookahead===0)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=N-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-F&&(e.match_length=G(e,r),e.match_length<=5&&(e.strategy===_||e.match_length===N&&e.strstart-e.match_start>4096)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-N,i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=N-1,e.strstart++,i&&(H(e,!1),e.strm.avail_out===0))return B}else if(e.match_available){if(i=n._tr_tally(e,0,e.window[e.strstart-1]),i&&H(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return B}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(i=n._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<N-1?e.strstart:N-1,t===l?(H(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(H(e,!1),e.strm.avail_out===0)?B:ce}function _e(e,t){for(var r,i,a,s,c=e.window;;){if(e.lookahead<=P){if(K(e),e.lookahead<=P&&t===o)return B;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=N&&e.strstart>0&&(a=e.strstart-1,i=c[a],i===c[++a]&&i===c[++a]&&i===c[++a])){s=e.strstart+P;do;while(i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&a<s);e.match_length=P-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(r=n._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(H(e,!1),e.strm.avail_out===0))return B}return e.insert=0,t===l?(H(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(H(e,!1),e.strm.avail_out===0)?B:ce}function ve(e,t){for(var r;;){if(e.lookahead===0&&(K(e),e.lookahead===0)){if(t===o)return B;break}if(e.match_length=0,r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(H(e,!1),e.strm.avail_out===0))return B}return e.insert=0,t===l?(H(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(H(e,!1),e.strm.avail_out===0)?B:ce}function Y(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var X=[new Y(0,0,0,0,ge),new Y(4,4,8,4,q),new Y(4,5,16,8,q),new Y(4,6,32,32,q),new Y(4,4,16,16,J),new Y(8,16,32,32,J),new Y(8,16,128,128,J),new Y(8,32,128,256,J),new Y(32,128,258,1024,J),new Y(32,258,258,4096,J)];function ye(e){e.window_size=2*e.w_size,pe(e.head),e.max_lazy_match=X[e.level].max_lazy,e.good_match=X[e.level].good_length,e.nice_match=X[e.level].nice_length,e.max_chain_length=X[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=N-1,e.match_available=0,e.ins_h=0}function be(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(ne*2),this.dyn_dtree=new t.Buf16((2*te+1)*2),this.bl_tree=new t.Buf16((2*M+1)*2),pe(this.dyn_ltree),pe(this.dyn_dtree),pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(re+1),this.heap=new t.Buf16(2*ee+1),pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*ee+1),pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Z(e){var t;return!e||!e.state?fe(e,p):(e.total_in=e.total_out=0,e.data_type=S,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ie:z,e.adler=t.wrap===2?0:1,t.last_flush=o,n._tr_init(t),d)}function xe(e){var t=Z(e);return t===d&&ye(e.state),t}function Se(e,t){return!e||!e.state||e.state.wrap!==2?p:(e.state.gzhead=t,d)}function Ce(e,n,r,i,a,o){if(!e)return p;var s=1;if(n===g&&(n=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>w||r!==C||i<8||i>15||n<0||n>9||o<0||o>b)return fe(e,p);i===8&&(i=9);var c=new be;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+N-1)/N),c.window=new t.Buf8(c.w_size*2),c.head=new t.Buf16(c.hash_size),c.prev=new t.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new t.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=n,c.strategy=o,c.method=r,xe(e)}function we(e,t){return Ce(e,t,C,T,E,x)}function Q(e,t){var r,a,m,g;if(!e||!e.state||t>u||t<0)return e?fe(e,p):p;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===se&&t!==l)return fe(e,e.avail_out===0?h:p);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===ie)if(a.wrap===2)e.adler=0,U(a,31),U(a,139),U(a,8),a.gzhead?(U(a,+!!a.gzhead.text+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),U(a,a.gzhead.time&255),U(a,a.gzhead.time>>8&255),U(a,a.gzhead.time>>16&255),U(a,a.gzhead.time>>24&255),U(a,a.level===9?2:a.strategy>=v||a.level<2?4:0),U(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(U(a,a.gzhead.extra.length&255),U(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=i(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=ae):(U(a,0),U(a,0),U(a,0),U(a,0),U(a,0),U(a,a.level===9?2:a.strategy>=v||a.level<2?4:0),U(a,de),a.status=z);else{var _=C+(a.w_bits-8<<4)<<8,b=-1;b=a.strategy>=v||a.level<2?0:a.level<6?1:a.level===6?2:3,_|=b<<6,a.strstart!==0&&(_|=I),_+=31-_%31,a.status=z,W(a,_),a.strstart!==0&&(W(a,e.adler>>>16),W(a,e.adler&65535)),e.adler=1}if(a.status===ae)if(a.gzhead.extra){for(m=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size));)U(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=oe)}else a.status=oe;if(a.status===oe)if(a.gzhead.name){m=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size)){g=1;break}g=a.gzindex<a.gzhead.name.length?a.gzhead.name.charCodeAt(a.gzindex++)&255:0,U(a,g)}while(g!==0);a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),g===0&&(a.gzindex=0,a.status=L)}else a.status=L;if(a.status===L)if(a.gzhead.comment){m=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size)){g=1;break}g=a.gzindex<a.gzhead.comment.length?a.gzhead.comment.charCodeAt(a.gzindex++)&255:0,U(a,g)}while(g!==0);a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),g===0&&(a.status=R)}else a.status=R;if(a.status===R&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&me(e),a.pending+2<=a.pending_buf_size&&(U(a,e.adler&255),U(a,e.adler>>8&255),e.adler=0,a.status=z)):a.status=z),a.pending!==0){if(me(e),e.avail_out===0)return a.last_flush=-1,d}else if(e.avail_in===0&&V(t)<=V(r)&&t!==l)return fe(e,h);if(a.status===se&&e.avail_in!==0)return fe(e,h);if(e.avail_in!==0||a.lookahead!==0||t!==o&&a.status!==se){var x=a.strategy===v?ve(a,t):a.strategy===y?_e(a,t):X[a.level].func(a,t);if((x===le||x===ue)&&(a.status=se),x===B||x===le)return e.avail_out===0&&(a.last_flush=-1),d;if(x===ce&&(t===s?n._tr_align(a):t!==u&&(n._tr_stored_block(a,0,0,!1),t===c&&(pe(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),me(e),e.avail_out===0))return a.last_flush=-1,d}return t===l?a.wrap<=0?f:(a.wrap===2?(U(a,e.adler&255),U(a,e.adler>>8&255),U(a,e.adler>>16&255),U(a,e.adler>>24&255),U(a,e.total_in&255),U(a,e.total_in>>8&255),U(a,e.total_in>>16&255),U(a,e.total_in>>24&255)):(W(a,e.adler>>>16),W(a,e.adler&65535)),me(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending===0?f:d):d}function Te(e){var t;return!e||!e.state?p:(t=e.state.status,t!==ie&&t!==ae&&t!==oe&&t!==L&&t!==R&&t!==z&&t!==se?fe(e,p):(e.state=null,t===z?fe(e,m):d))}function $(e,n){var i=n.length,a,o,s,c,l,u,f,m;if(!e||!e.state||(a=e.state,c=a.wrap,c===2||c===1&&a.status!==ie||a.lookahead))return p;for(c===1&&(e.adler=r(e.adler,n,i,0)),a.wrap=0,i>=a.w_size&&(c===0&&(pe(a.head),a.strstart=0,a.block_start=0,a.insert=0),m=new t.Buf8(a.w_size),t.arraySet(m,n,i-a.w_size,a.w_size,0),n=m,i=a.w_size),l=e.avail_in,u=e.next_in,f=e.input,e.avail_in=i,e.next_in=0,e.input=n,K(a);a.lookahead>=N;){o=a.strstart,s=a.lookahead-(N-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[o+N-1])&a.hash_mask,a.prev[o&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=o,o++;while(--s);a.strstart=o,a.lookahead=N-1,K(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=N-1,a.match_available=0,e.next_in=u,e.input=f,e.avail_in=l,a.wrap=c,d}e.deflateInit=we,e.deflateInit2=Ce,e.deflateReset=xe,e.deflateResetKeep=Z,e.deflateSetHeader=Se,e.deflate=Q,e.deflateEnd=Te,e.deflateSetDictionary=$,e.deflateInfo=`pako deflate (from Nodeca project)`})),te=o((e=>{var t=D(),n=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var i=new t.Buf8(256),a=0;a<256;a++)i[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1,e.string2buf=function(e){var n,r,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),c+=r<128?1:r<2048?2:r<65536?3:4;for(n=new t.Buf8(c),o=0,a=0;o<c;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?n[o++]=r:r<2048?(n[o++]=192|r>>>6,n[o++]=128|r&63):r<65536?(n[o++]=224|r>>>12,n[o++]=128|r>>>6&63,n[o++]=128|r&63):(n[o++]=240|r>>>18,n[o++]=128|r>>>12&63,n[o++]=128|r>>>6&63,n[o++]=128|r&63);return n};function o(e,i){if(i<65534&&(e.subarray&&r||!e.subarray&&n))return String.fromCharCode.apply(null,t.shrinkBuf(e,i));for(var a=``,o=0;o<i;o++)a+=String.fromCharCode(e[o]);return a}e.buf2binstring=function(e){return o(e,e.length)},e.binstring2buf=function(e){for(var n=new t.Buf8(e.length),r=0,i=n.length;r<i;r++)n[r]=e.charCodeAt(r);return n},e.buf2string=function(e,t){var n,r,a,s,c=t||e.length,l=Array(c*2);for(r=0,n=0;n<c;){if(a=e[n++],a<128){l[r++]=a;continue}if(s=i[a],s>4){l[r++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n<c;)a=a<<6|e[n++]&63,s--;if(s>1){l[r++]=65533;continue}a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|a&1023)}return o(l,r)},e.utf8border=function(e,t){var n;for(t||=e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+i[e[n]]>t?n:t}})),M=o(((e,t)=>{function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}t.exports=n})),ne=o((e=>{var t=ee(),n=D(),r=te(),i=j(),a=M(),o=Object.prototype.toString,s=0,c=4,l=0,u=1,d=2,f=-1,p=0,m=8;function h(e){if(!(this instanceof h))return new h(e);this.options=n.assign({level:f,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:``},e||{});var s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var c=t.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(c!==l)throw Error(i[c]);if(s.header&&t.deflateSetHeader(this.strm,s.header),s.dictionary){var u=typeof s.dictionary==`string`?r.string2buf(s.dictionary):o.call(s.dictionary)===`[object ArrayBuffer]`?new Uint8Array(s.dictionary):s.dictionary;if(c=t.deflateSetDictionary(this.strm,u),c!==l)throw Error(i[c]);this._dict_set=!0}}h.prototype.push=function(e,i){var a=this.strm,f=this.options.chunkSize,p,m;if(this.ended)return!1;m=i===~~i?i:i===!0?c:s,typeof e==`string`?a.input=r.string2buf(e):o.call(e)===`[object ArrayBuffer]`?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(a.avail_out===0&&(a.output=new n.Buf8(f),a.next_out=0,a.avail_out=f),p=t.deflate(a,m),p!==u&&p!==l)return this.onEnd(p),this.ended=!0,!1;(a.avail_out===0||a.avail_in===0&&(m===c||m===d))&&(this.options.to===`string`?this.onData(r.buf2binstring(n.shrinkBuf(a.output,a.next_out))):this.onData(n.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||a.avail_out===0)&&p!==u);return m===c?(p=t.deflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===l):m===d?(this.onEnd(l),a.avail_out=0,!0):!0},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===l&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function g(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||i[n.err];return n.result}function _(e,t){return t||={},t.raw=!0,g(e,t)}function v(e,t){return t||={},t.gzip=!0,g(e,t)}e.Deflate=h,e.deflate=g,e.deflateRaw=_,e.gzip=v})),re=o(((e,t)=>{var n=30,r=12;t.exports=function(e,t){var i=e.state,a=e.next_in,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D=e.input,O;o=a+(e.avail_in-5),s=e.next_out,O=e.output,c=s-(t-e.avail_out),l=s+(e.avail_out-257),u=i.dmax,d=i.wsize,f=i.whave,p=i.wnext,m=i.window,h=i.hold,g=i.bits,_=i.lencode,v=i.distcode,y=(1<<i.lenbits)-1,b=(1<<i.distbits)-1;top:do{g<15&&(h+=D[a++]<<g,g+=8,h+=D[a++]<<g,g+=8),x=_[h&y];dolen:for(;;){if(S=x>>>24,h>>>=S,g-=S,S=x>>>16&255,S===0)O[s++]=x&65535;else if(S&16){C=x&65535,S&=15,S&&(g<S&&(h+=D[a++]<<g,g+=8),C+=h&(1<<S)-1,h>>>=S,g-=S),g<15&&(h+=D[a++]<<g,g+=8,h+=D[a++]<<g,g+=8),x=v[h&b];dodist:for(;;){if(S=x>>>24,h>>>=S,g-=S,S=x>>>16&255,S&16){if(w=x&65535,S&=15,g<S&&(h+=D[a++]<<g,g+=8,g<S&&(h+=D[a++]<<g,g+=8)),w+=h&(1<<S)-1,w>u){e.msg=`invalid distance too far back`,i.mode=n;break top}if(h>>>=S,g-=S,S=s-c,w>S){if(S=w-S,S>f&&i.sane){e.msg=`invalid distance too far back`,i.mode=n;break top}if(T=0,E=m,p===0){if(T+=d-S,S<C){C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}}else if(p<S){if(T+=d+p-S,S-=p,S<C){C-=S;do O[s++]=m[T++];while(--S);if(T=0,p<C){S=p,C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}}}else if(T+=p-S,S<C){C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}for(;C>2;)O[s++]=E[T++],O[s++]=E[T++],O[s++]=E[T++],C-=3;C&&(O[s++]=E[T++],C>1&&(O[s++]=E[T++]))}else{T=s-w;do O[s++]=O[T++],O[s++]=O[T++],O[s++]=O[T++],C-=3;while(C>2);C&&(O[s++]=O[T++],C>1&&(O[s++]=O[T++]))}}else if(S&64){e.msg=`invalid distance code`,i.mode=n;break top}else{x=v[(x&65535)+(h&(1<<S)-1)];continue dodist}break}}else if(!(S&64)){x=_[(x&65535)+(h&(1<<S)-1)];continue dolen}else if(S&32){i.mode=r;break top}else{e.msg=`invalid literal/length code`,i.mode=n;break top}break}}while(a<o&&s<l);C=g>>3,a-=C,g-=C<<3,h&=(1<<g)-1,e.next_in=a,e.next_out=s,e.avail_in=a<o?5+(o-a):5-(a-o),e.avail_out=s<l?257+(l-s):257-(s-l),i.hold=h,i.bits=g}})),N=o(((e,t)=>{var n=D(),r=15,i=852,a=592,o=0,s=1,c=2,l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],d=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,p,m,h,g,_,v){var y=v.bits,b=0,x=0,S=0,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A,j,ee,te,M,ne=null,re=0,N,P=new n.Buf16(r+1),F=new n.Buf16(r+1),I=null,ie=0,ae,oe,L;for(b=0;b<=r;b++)P[b]=0;for(x=0;x<m;x++)P[t[p+x]]++;for(w=y,C=r;C>=1&&P[C]===0;C--);if(w>C&&(w=C),C===0)return h[g++]=20971520,h[g++]=20971520,v.bits=1,0;for(S=1;S<C&&P[S]===0;S++);for(w<S&&(w=S),D=1,b=1;b<=r;b++)if(D<<=1,D-=P[b],D<0)return-1;if(D>0&&(e===o||C!==1))return-1;for(F[1]=0,b=1;b<r;b++)F[b+1]=F[b]+P[b];for(x=0;x<m;x++)t[p+x]!==0&&(_[F[t[p+x]]++]=x);if(e===o?(ne=I=_,N=19):e===s?(ne=l,re-=257,I=u,ie-=257,N=256):(ne=d,I=f,N=-1),k=0,x=0,b=S,M=g,T=w,E=0,ee=-1,O=1<<w,te=O-1,e===s&&O>i||e===c&&O>a)return 1;for(;;){ae=b-E,_[x]<N?(oe=0,L=_[x]):_[x]>N?(oe=I[ie+_[x]],L=ne[re+_[x]]):(oe=96,L=0),A=1<<b-E,j=1<<T,S=j;do j-=A,h[M+(k>>E)+j]=ae<<24|oe<<16|L|0;while(j!==0);for(A=1<<b-1;k&A;)A>>=1;if(A===0?k=0:(k&=A-1,k+=A),x++,--P[b]===0){if(b===C)break;b=t[p+_[x]]}if(b>w&&(k&te)!==ee){for(E===0&&(E=w),M+=S,T=b-E,D=1<<T;T+E<C&&(D-=P[T+E],!(D<=0));)T++,D<<=1;if(O+=1<<T,e===s&&O>i||e===c&&O>a)return 1;ee=k&te,h[ee]=w<<24|T<<16|M-g|0}}return k!==0&&(h[M+k]=b-E<<24|4194304),v.bits=w,0}})),P=o((e=>{var t=D(),n=k(),r=A(),i=re(),a=N(),o=0,s=1,c=2,l=4,u=5,d=6,f=0,p=1,m=2,h=-2,g=-3,_=-4,v=-5,y=8,b=1,x=2,S=3,C=4,w=5,T=6,E=7,O=8,j=9,ee=10,te=11,M=12,ne=13,P=14,F=15,I=16,ie=17,ae=18,oe=19,L=20,R=21,z=22,se=23,B=24,ce=25,le=26,ue=27,de=28,fe=29,V=30,pe=31,me=32,H=852,U=592,W=15;function he(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function G(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function K(e){var n;return!e||!e.state?h:(n=e.state,e.total_in=e.total_out=n.total=0,e.msg=``,n.wrap&&(e.adler=n.wrap&1),n.mode=b,n.last=0,n.havedict=0,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new t.Buf32(H),n.distcode=n.distdyn=new t.Buf32(U),n.sane=1,n.back=-1,f)}function ge(e){var t;return!e||!e.state?h:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,K(e))}function q(e,t){var n,r;return!e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?h:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ge(e))}function J(e,t){var n,r;return e?(r=new G,e.state=r,r.window=null,n=q(e,t),n!==f&&(e.state=null),n):h}function _e(e){return J(e,W)}var ve=!0,Y,X;function ye(e){if(ve){var n;for(Y=new t.Buf32(512),X=new t.Buf32(32),n=0;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(a(s,e.lens,0,288,Y,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;a(c,e.lens,0,32,X,0,e.work,{bits:5}),ve=!1}e.lencode=Y,e.lenbits=9,e.distcode=X,e.distbits=5}function be(e,n,r,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new t.Buf8(o.wsize)),i>=o.wsize?(t.arraySet(o.window,n,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),t.arraySet(o.window,n,r-i,a,o.wnext),i-=a,i?(t.arraySet(o.window,n,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}function Z(e,D){var k,A,re,N,H,U,W,G,K,ge,q,J,_e,ve,Y=0,X,Z,xe,Se,Ce,we,Q,Te,$=new t.Buf8(4),Ee,De,Oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return h;k=e.state,k.mode===M&&(k.mode=ne),H=e.next_out,re=e.output,W=e.avail_out,N=e.next_in,A=e.input,U=e.avail_in,G=k.hold,K=k.bits,ge=U,q=W,Te=f;inf_leave:for(;;)switch(k.mode){case b:if(k.wrap===0){k.mode=ne;break}for(;K<16;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(k.wrap&2&&G===35615){k.check=0,$[0]=G&255,$[1]=G>>>8&255,k.check=r(k.check,$,2,0),G=0,K=0,k.mode=x;break}if(k.flags=0,k.head&&(k.head.done=!1),!(k.wrap&1)||(((G&255)<<8)+(G>>8))%31){e.msg=`incorrect header check`,k.mode=V;break}if((G&15)!==y){e.msg=`unknown compression method`,k.mode=V;break}if(G>>>=4,K-=4,Q=(G&15)+8,k.wbits===0)k.wbits=Q;else if(Q>k.wbits){e.msg=`invalid window size`,k.mode=V;break}k.dmax=1<<Q,e.adler=k.check=1,k.mode=G&512?ee:M,G=0,K=0;break;case x:for(;K<16;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(k.flags=G,(k.flags&255)!==y){e.msg=`unknown compression method`,k.mode=V;break}if(k.flags&57344){e.msg=`unknown header flags set`,k.mode=V;break}k.head&&(k.head.text=G>>8&1),k.flags&512&&($[0]=G&255,$[1]=G>>>8&255,k.check=r(k.check,$,2,0)),G=0,K=0,k.mode=S;case S:for(;K<32;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}k.head&&(k.head.time=G),k.flags&512&&($[0]=G&255,$[1]=G>>>8&255,$[2]=G>>>16&255,$[3]=G>>>24&255,k.check=r(k.check,$,4,0)),G=0,K=0,k.mode=C;case C:for(;K<16;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}k.head&&(k.head.xflags=G&255,k.head.os=G>>8),k.flags&512&&($[0]=G&255,$[1]=G>>>8&255,k.check=r(k.check,$,2,0)),G=0,K=0,k.mode=w;case w:if(k.flags&1024){for(;K<16;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}k.length=G,k.head&&(k.head.extra_len=G),k.flags&512&&($[0]=G&255,$[1]=G>>>8&255,k.check=r(k.check,$,2,0)),G=0,K=0}else k.head&&(k.head.extra=null);k.mode=T;case T:if(k.flags&1024&&(J=k.length,J>U&&(J=U),J&&(k.head&&(Q=k.head.extra_len-k.length,k.head.extra||(k.head.extra=Array(k.head.extra_len)),t.arraySet(k.head.extra,A,N,J,Q)),k.flags&512&&(k.check=r(k.check,A,J,N)),U-=J,N+=J,k.length-=J),k.length))break inf_leave;k.length=0,k.mode=E;case E:if(k.flags&2048){if(U===0)break inf_leave;J=0;do Q=A[N+ J++],k.head&&Q&&k.length<65536&&(k.head.name+=String.fromCharCode(Q));while(Q&&J<U);if(k.flags&512&&(k.check=r(k.check,A,J,N)),U-=J,N+=J,Q)break inf_leave}else k.head&&(k.head.name=null);k.length=0,k.mode=O;case O:if(k.flags&4096){if(U===0)break inf_leave;J=0;do Q=A[N+ J++],k.head&&Q&&k.length<65536&&(k.head.comment+=String.fromCharCode(Q));while(Q&&J<U);if(k.flags&512&&(k.check=r(k.check,A,J,N)),U-=J,N+=J,Q)break inf_leave}else k.head&&(k.head.comment=null);k.mode=j;case j:if(k.flags&512){for(;K<16;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(G!==(k.check&65535)){e.msg=`header crc mismatch`,k.mode=V;break}G=0,K=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),e.adler=k.check=0,k.mode=M;break;case ee:for(;K<32;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}e.adler=k.check=he(G),G=0,K=0,k.mode=te;case te:if(k.havedict===0)return e.next_out=H,e.avail_out=W,e.next_in=N,e.avail_in=U,k.hold=G,k.bits=K,m;e.adler=k.check=1,k.mode=M;case M:if(D===u||D===d)break inf_leave;case ne:if(k.last){G>>>=K&7,K-=K&7,k.mode=ue;break}for(;K<3;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}switch(k.last=G&1,G>>>=1,--K,G&3){case 0:k.mode=P;break;case 1:if(ye(k),k.mode=L,D===d){G>>>=2,K-=2;break inf_leave}break;case 2:k.mode=ie;break;case 3:e.msg=`invalid block type`,k.mode=V}G>>>=2,K-=2;break;case P:for(G>>>=K&7,K-=K&7;K<32;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if((G&65535)!=(G>>>16^65535)){e.msg=`invalid stored block lengths`,k.mode=V;break}if(k.length=G&65535,G=0,K=0,k.mode=F,D===d)break inf_leave;case F:k.mode=I;case I:if(J=k.length,J){if(J>U&&(J=U),J>W&&(J=W),J===0)break inf_leave;t.arraySet(re,A,N,J,H),U-=J,N+=J,W-=J,H+=J,k.length-=J;break}k.mode=M;break;case ie:for(;K<14;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(k.nlen=(G&31)+257,G>>>=5,K-=5,k.ndist=(G&31)+1,G>>>=5,K-=5,k.ncode=(G&15)+4,G>>>=4,K-=4,k.nlen>286||k.ndist>30){e.msg=`too many length or distance symbols`,k.mode=V;break}k.have=0,k.mode=ae;case ae:for(;k.have<k.ncode;){for(;K<3;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}k.lens[Oe[k.have++]]=G&7,G>>>=3,K-=3}for(;k.have<19;)k.lens[Oe[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,Ee={bits:k.lenbits},Te=a(o,k.lens,0,19,k.lencode,0,k.work,Ee),k.lenbits=Ee.bits,Te){e.msg=`invalid code lengths set`,k.mode=V;break}k.have=0,k.mode=oe;case oe:for(;k.have<k.nlen+k.ndist;){for(;Y=k.lencode[G&(1<<k.lenbits)-1],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(X<=K);){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(xe<16)G>>>=X,K-=X,k.lens[k.have++]=xe;else{if(xe===16){for(De=X+2;K<De;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(G>>>=X,K-=X,k.have===0){e.msg=`invalid bit length repeat`,k.mode=V;break}Q=k.lens[k.have-1],J=3+(G&3),G>>>=2,K-=2}else if(xe===17){for(De=X+3;K<De;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}G>>>=X,K-=X,Q=0,J=3+(G&7),G>>>=3,K-=3}else{for(De=X+7;K<De;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}G>>>=X,K-=X,Q=0,J=11+(G&127),G>>>=7,K-=7}if(k.have+J>k.nlen+k.ndist){e.msg=`invalid bit length repeat`,k.mode=V;break}for(;J--;)k.lens[k.have++]=Q}}if(k.mode===V)break;if(k.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,k.mode=V;break}if(k.lenbits=9,Ee={bits:k.lenbits},Te=a(s,k.lens,0,k.nlen,k.lencode,0,k.work,Ee),k.lenbits=Ee.bits,Te){e.msg=`invalid literal/lengths set`,k.mode=V;break}if(k.distbits=6,k.distcode=k.distdyn,Ee={bits:k.distbits},Te=a(c,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,Ee),k.distbits=Ee.bits,Te){e.msg=`invalid distances set`,k.mode=V;break}if(k.mode=L,D===d)break inf_leave;case L:k.mode=R;case R:if(U>=6&&W>=258){e.next_out=H,e.avail_out=W,e.next_in=N,e.avail_in=U,k.hold=G,k.bits=K,i(e,q),H=e.next_out,re=e.output,W=e.avail_out,N=e.next_in,A=e.input,U=e.avail_in,G=k.hold,K=k.bits,k.mode===M&&(k.back=-1);break}for(k.back=0;Y=k.lencode[G&(1<<k.lenbits)-1],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(X<=K);){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(Z&&!(Z&240)){for(Se=X,Ce=Z,we=xe;Y=k.lencode[we+((G&(1<<Se+Ce)-1)>>Se)],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(Se+X<=K);){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}G>>>=Se,K-=Se,k.back+=Se}if(G>>>=X,K-=X,k.back+=X,k.length=xe,Z===0){k.mode=le;break}if(Z&32){k.back=-1,k.mode=M;break}if(Z&64){e.msg=`invalid literal/length code`,k.mode=V;break}k.extra=Z&15,k.mode=z;case z:if(k.extra){for(De=k.extra;K<De;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}k.length+=G&(1<<k.extra)-1,G>>>=k.extra,K-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=se;case se:for(;Y=k.distcode[G&(1<<k.distbits)-1],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(X<=K);){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(!(Z&240)){for(Se=X,Ce=Z,we=xe;Y=k.distcode[we+((G&(1<<Se+Ce)-1)>>Se)],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(Se+X<=K);){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}G>>>=Se,K-=Se,k.back+=Se}if(G>>>=X,K-=X,k.back+=X,Z&64){e.msg=`invalid distance code`,k.mode=V;break}k.offset=xe,k.extra=Z&15,k.mode=B;case B:if(k.extra){for(De=k.extra;K<De;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}k.offset+=G&(1<<k.extra)-1,G>>>=k.extra,K-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){e.msg=`invalid distance too far back`,k.mode=V;break}k.mode=ce;case ce:if(W===0)break inf_leave;if(J=q-W,k.offset>J){if(J=k.offset-J,J>k.whave&&k.sane){e.msg=`invalid distance too far back`,k.mode=V;break}J>k.wnext?(J-=k.wnext,_e=k.wsize-J):_e=k.wnext-J,J>k.length&&(J=k.length),ve=k.window}else ve=re,_e=H-k.offset,J=k.length;J>W&&(J=W),W-=J,k.length-=J;do re[H++]=ve[_e++];while(--J);k.length===0&&(k.mode=R);break;case le:if(W===0)break inf_leave;re[H++]=k.length,W--,k.mode=R;break;case ue:if(k.wrap){for(;K<32;){if(U===0)break inf_leave;U--,G|=A[N++]<<K,K+=8}if(q-=W,e.total_out+=q,k.total+=q,q&&(e.adler=k.check=k.flags?r(k.check,re,q,H-q):n(k.check,re,q,H-q)),q=W,(k.flags?G:he(G))!==k.check){e.msg=`incorrect data check`,k.mode=V;break}G=0,K=0}k.mode=de;case de:if(k.wrap&&k.flags){for(;K<32;){if(U===0)break inf_leave;U--,G+=A[N++]<<K,K+=8}if(G!==(k.total&4294967295)){e.msg=`incorrect length check`,k.mode=V;break}G=0,K=0}k.mode=fe;case fe:Te=p;break inf_leave;case V:Te=g;break inf_leave;case pe:return _;case me:default:return h}return e.next_out=H,e.avail_out=W,e.next_in=N,e.avail_in=U,k.hold=G,k.bits=K,(k.wsize||q!==e.avail_out&&k.mode<V&&(k.mode<ue||D!==l))&&be(e,e.output,e.next_out,q-e.avail_out)?(k.mode=pe,_):(ge-=e.avail_in,q-=e.avail_out,e.total_in+=ge,e.total_out+=q,k.total+=q,k.wrap&&q&&(e.adler=k.check=k.flags?r(k.check,re,q,e.next_out-q):n(k.check,re,q,e.next_out-q)),e.data_type=k.bits+(k.last?64:0)+(k.mode===M?128:0)+(k.mode===L||k.mode===F?256:0),(ge===0&&q===0||D===l)&&Te===f&&(Te=v),Te)}function xe(e){if(!e||!e.state)return h;var t=e.state;return t.window&&=null,e.state=null,f}function Se(e,t){var n;return!e||!e.state||(n=e.state,!(n.wrap&2))?h:(n.head=t,t.done=!1,f)}function Ce(e,t){var r=t.length,i,a,o;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==te)?h:i.mode===te&&(a=1,a=n(a,t,r,0),a!==i.check)?g:(o=be(e,t,r,r),o?(i.mode=pe,_):(i.havedict=1,f))}e.inflateReset=ge,e.inflateReset2=q,e.inflateResetKeep=K,e.inflateInit=_e,e.inflateInit2=J,e.inflate=Z,e.inflateEnd=xe,e.inflateGetHeader=Se,e.inflateSetDictionary=Ce,e.inflateInfo=`pako inflate (from Nodeca project)`})),F=o(((e,t)=>{t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}})),I=o(((e,t)=>{function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}t.exports=n})),ie=o((e=>{var t=P(),n=D(),r=te(),i=F(),a=j(),o=M(),s=I(),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:``},e||{});var u=this.options;u.raw&&u.windowBits>=0&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),u.windowBits>=0&&u.windowBits<16&&!(e&&e.windowBits)&&(u.windowBits+=32),u.windowBits>15&&u.windowBits<48&&(u.windowBits&15||(u.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var d=t.inflateInit2(this.strm,u.windowBits);if(d!==i.Z_OK||(this.header=new s,t.inflateGetHeader(this.strm,this.header),u.dictionary&&(typeof u.dictionary==`string`?u.dictionary=r.string2buf(u.dictionary):c.call(u.dictionary)===`[object ArrayBuffer]`&&(u.dictionary=new Uint8Array(u.dictionary)),u.raw&&(d=t.inflateSetDictionary(this.strm,u.dictionary),d!==i.Z_OK))))throw Error(a[d])}l.prototype.push=function(e,a){var o=this.strm,s=this.options.chunkSize,l=this.options.dictionary,u,d,f,p,m,h=!1;if(this.ended)return!1;d=a===~~a?a:a===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof e==`string`?o.input=r.binstring2buf(e):c.call(e)===`[object ArrayBuffer]`?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(o.avail_out===0&&(o.output=new n.Buf8(s),o.next_out=0,o.avail_out=s),u=t.inflate(o,i.Z_NO_FLUSH),u===i.Z_NEED_DICT&&l&&(u=t.inflateSetDictionary(this.strm,l)),u===i.Z_BUF_ERROR&&h===!0&&(u=i.Z_OK,h=!1),u!==i.Z_STREAM_END&&u!==i.Z_OK)return this.onEnd(u),this.ended=!0,!1;o.next_out&&(o.avail_out===0||u===i.Z_STREAM_END||o.avail_in===0&&(d===i.Z_FINISH||d===i.Z_SYNC_FLUSH))&&(this.options.to===`string`?(f=r.utf8border(o.output,o.next_out),p=o.next_out-f,m=r.buf2string(o.output,f),o.next_out=p,o.avail_out=s-p,p&&n.arraySet(o.output,o.output,f,p,0),this.onData(m)):this.onData(n.shrinkBuf(o.output,o.next_out))),o.avail_in===0&&o.avail_out===0&&(h=!0)}while((o.avail_in>0||o.avail_out===0)&&u!==i.Z_STREAM_END);return u===i.Z_STREAM_END&&(d=i.Z_FINISH),d===i.Z_FINISH?(u=t.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===i.Z_OK):d===i.Z_SYNC_FLUSH?(this.onEnd(i.Z_OK),o.avail_out=0,!0):!0},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){e===i.Z_OK&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}function d(e,t){return t||={},t.raw=!0,u(e,t)}e.Inflate=l,e.inflate=u,e.inflateRaw=d,e.ungzip=u})),ae=o(((e,t)=>{var n=D().assign,r=ne(),i=ie(),a=F(),o={};n(o,r,i,a),t.exports=o})),oe=w(),L=T(),R=E(),z=c(ae(),1);function se(e){let t=[],n={},r=[],i=(e,t)=>{if(e in n){let r=n[e];Array.isArray(r)?r.push(String(t)):n[e]=[String(r),String(t)]}else n[e]=t},a=2;for(;a<e.length;){let n=e[a];if(n===`--`){r.push(...e.slice(a+1));break}if(n.startsWith(`--`)){let t=n.slice(2),r=t.indexOf(`=`);if(r!==-1){i(t.slice(0,r),t.slice(r+1)),a++;continue}let o=e[a+1];if(o!==void 0&&!o.startsWith(`-`)){i(t,o),a+=2;continue}i(t,!0),a++;continue}if(n.startsWith(`-`)&&n.length>1){for(let e of n.slice(1))i(e,!0);a++;continue}t.push(n),a++}return{positional:t,flags:n,subcommand:t.length>0&&/^[a-z][\w-]*$/i.test(t[0])?t[0]:null,passthrough:r}}function B(e){let t=[...e];return Object.defineProperty(t,"parseFlags",{value:()=>se(t),enumerable:!1,writable:!1,configurable:!1}),t}function ce(e){let t=e=>{if(typeof e==`string`)return e;if(e instanceof Error)return e.message;if(e==null)return String(e);try{return JSON.stringify(e)}catch{return String(e)}},n=(e,t,n)=>t===void 0?`${e(`Error:`)} ${n}\n`:t===``?`${e(n)}\n`:`${e(`${t}:`)} ${n}\n`,r=(t,n)=>t===void 0?`${e.color.yellow(`Warning:`)} ${n}\n`:t===``?`${e.color.yellow(n)}\n`:`${e.color.yellow(`${t}:`)} ${n}\n`;return{die(r,i){let a=typeof i==`number`?i:i?.exitCode??1,o=typeof i==`object`&&i&&`prefix`in i?i.prefix:void 0,s=t(r);throw e.writeStderr(n(e.color.red,o,s)),e.exit(a),Error(`unreachable`)},out(t){if(typeof t==`string`){e.writeStdout(t.endsWith(`
|
|
39
|
+
`)?t:`${t}\n`);return}try{e.writeStdout(`${JSON.stringify(t,null,2)}\n`)}catch{e.writeStdout(`${String(t)}\n`)}},warn(n,i){let a=typeof i==`object`&&i&&`prefix`in i?i.prefix:void 0;e.writeStderr(r(a,t(n)))},help(t){throw e.writeStdout(t.endsWith(`
|
|
40
|
+
`)?t:`${t}\n`),e.exit(0),Error(`unreachable`)}}}const le={reset:`\x1B[0m`,green:`\x1B[32m`,red:`\x1B[31m`,yellow:`\x1B[33m`,gray:`\x1B[90m`,bold:`\x1B[1m`,cyan:`\x1B[36m`,dim:`\x1B[2m`};function ue(e){let t=e.isTTY&&!e.noColor,n=e=>n=>t?`${e}${n}${le.reset}`:String(n);return{enabled:t,green:n(le.green),red:n(le.red),yellow:n(le.yellow),gray:n(le.gray),bold:n(le.bold),cyan:n(le.cyan),dim:n(le.dim)}}const de={ms:1,s:1e3,m:6e4,h:36e5,d:864e5,w:6048e5,M:26298e5,y:315576e5};function fe(e){if(typeof e==`number`&&Number.isFinite(e))return Math.trunc(e);if(typeof e!=`string`)throw TypeError(`time.parseDuration: spec must be string or number`);let t=e.trim(),n=/^([0-9]+(?:\.[0-9]+)?)\s*(ms|s|m|h|d|w|M|y)?$/.exec(t);if(!n)throw RangeError(`time.parseDuration: unrecognized spec "${e}"`);let r=Number(n[1]),i=n[2]??`ms`;return Math.trunc(r*de[i])}function V(e){return e<10?`0${e}`:String(e)}const pe={parseDuration:fe,ago(e,t=new Date){return new Date(t.getTime()-fe(e))},range(e,t=new Date){let n=new Date(t.getTime());return{start:new Date(n.getTime()-fe(e)),end:n}},future(e,t=new Date){let n=new Date(t.getTime());return{start:n,end:new Date(n.getTime()+fe(e))}},gmailDate(e,t=new Date){let n=new Date(t.getTime()-fe(e));return`${n.getFullYear()}/${V(n.getMonth()+1)}/${V(n.getDate())}`}},me=/\u001b\[[0-9;]*m/g;function H(e){return e.replace(me,``)}function U(e){return H(e).length}function W(e,t){let n=String(e??``);return t<=0?``:U(n)<=t?n:t<=1?n.slice(0,t):`${H(n).slice(0,t-1)}…`}function he(e,t){let n=String(e??``),r=U(n);return r===t?n:r>t?W(n,t):n+` `.repeat(t-r)}function G(e,t){if(!e.length)return``;let n=Math.max(...e.map(e=>e.length)),r=[];for(let i=0;i<n;i++)if(t&&t[i]!==void 0)r[i]=t[i];else{let t=0;for(let n of e){let e=i<n.length?String(n[i]??``):``;t=Math.max(t,U(e))}r[i]=t}return e.map(e=>r.map((t,n)=>he(n<e.length?String(e[n]??``):``,t)).join(` `).replace(/\s+$/,``)).join(`
|
|
41
|
+
`)}function K(e){return e instanceof Date?e:new Date(e)}function ge(e,t=`short`){let n=K(e);if(Number.isNaN(n.getTime()))return String(e);if(t===`iso`)return n.toISOString();if(t===`locale`)return new Intl.DateTimeFormat(void 0,{dateStyle:`medium`}).format(n);if(t===`human`){let e=Date.now()-n.getTime(),t=Math.abs(e);if(t<6e4)return e>=0?`just now`:`in a moment`;let r=(t,n)=>e>=0?`${t} ${n}${t===1?``:`s`} ago`:`in ${t} ${n}${t===1?``:`s`}`;return t<36e5?r(Math.round(t/6e4),`minute`):t<864e5?r(Math.round(t/36e5),`hour`):t<26298e5?r(Math.round(t/864e5),`day`):t<315576e5?r(Math.round(t/26298e5),`month`):r(Math.round(t/315576e5),`year`)}return`${n.getFullYear()}-${V(n.getMonth()+1)}-${V(n.getDate())}`}const q={trunc:W,col:he,table:G,date:ge},J=async(e,t,n)=>{let r=Math.max(1,Math.trunc(e)||1),i=Array(t.length),a=0,o=[],s=async()=>{for(;;){let e=a++;if(e>=t.length)return;i[e]=await n(t[e],e)}};for(let e=0;e<Math.min(r,t.length);e++)o.push(s());return await Promise.all(o),i};function _e(e,t){let n=[];for(let r of e)r===``||r===`.`||(r===`..`?n.length>0&&n[n.length-1]!==`..`?n.pop():t&&n.push(`..`):n.push(r));return n}function ve(e){if(e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47,r=_e(e.split(`/`),!t).join(`/`);return r.length===0&&!t&&(r=`.`),r.length>0&&n&&(r+=`/`),(t?`/`:``)+r}function Y(...e){let t=e.filter(e=>typeof e==`string`&&e.length>0).join(`/`);return t.length===0?`.`:ve(t)}function X(e){if(e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=-1,r=!0;for(let t=e.length-1;t>=1;t--)if(e.charCodeAt(t)===47){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)}function ye(e,t){let n=0,r=-1,i=!0;for(let t=e.length-1;t>=0;t--)if(e.charCodeAt(t)===47){if(!i){n=t+1;break}}else r===-1&&(i=!1,r=t+1);let a=r===-1?``:e.slice(n,r);return t&&a.endsWith(t)&&a!==t?a.slice(0,a.length-t.length):a}function be(e){let t=ye(e),n=t.lastIndexOf(`.`);return n<=0?``:t.slice(n)}function Z(...e){let t=``,n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];typeof i!=`string`||i.length===0||(t=t.length>0?`${i}/${t}`:i,n=i.charCodeAt(0)===47)}n||(t=t.length>0?`/${t}`:`/`);let r=_e(t.split(`/`),!1).join(`/`);return r.length>0?`/${r}`:`/`}function xe(e,t){let n=Z(e),r=Z(t);if(n===r)return``;let i=n.split(`/`).filter(Boolean),a=r.split(`/`).filter(Boolean),o=0;for(;o<i.length&&o<a.length&&i[o]===a[o];)o++;return[...i.slice(o).map(()=>`..`),...a.slice(o)].join(`/`)}function Se(e){let t=e.charCodeAt(0)===47?`/`:``,n=ye(e),r=be(e),i=r?n.slice(0,n.length-r.length):n,a=X(e);return a===`.`&&t===``&&(a=``),{root:t,dir:a,base:n,ext:r,name:i}}function Ce(e){let t=e.dir||e.root||``,n=e.base||`${e.name||``}${e.ext||``}`;return t?t===e.root?`${t}${n}`:`${t}/${n}`:n}const we={sep:`/`,delimiter:`:`,basename:ye,dirname:X,extname:be,isAbsolute:e=>e.length>0&&e.charCodeAt(0)===47,join:Y,normalize:ve,resolve:Z,relative:xe,parse:Se,format:Ce},Q=65536,Te={md5:oe.md5,sha1:L.sha1,sha256:R.sha256};function $(e,t){let n=globalThis.Buffer;if(!n)throw Error(`crypto.createHash: Buffer is unavailable in this environment`);return t?n.from(e,t):n.from(e)}function Ee(e,t){return typeof e==`string`?t===`hex`||t===`base64`||t===`base64url`||t===`latin1`||t===`binary`?new Uint8Array($(e,t===`binary`?`latin1`:t)):e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function De(e){let t=Te[String(e).toLowerCase().replace(`-`,``)];if(!t)throw Error(`Digest method not supported: ${e}`);let n=t.create(),r=!1,i={update(e,t){if(r)throw Error(`Digest already called`);return n.update(Ee(e,t)),i},digest(e){r=!0;let t=$(n.array());return e?t.toString(e):t}};return i}function Oe(){let e=globalThis.crypto;if(!e||typeof e.getRandomValues!=`function`)throw Error(`crypto: globalThis.crypto is unavailable in this environment`);return e}function ke(e){return Oe().getRandomValues(e)}function Ae(e){for(let t=0;t<e.length;t+=Q){let n=Math.min(t+Q,e.length);ke(e.subarray(t,n))}}function je(e){return e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}const Me=Array.from({length:256},(e,t)=>(t+256).toString(16).slice(1));function Ne(){let e=Oe();if(typeof e.randomUUID==`function`)return e.randomUUID();let t=ke(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,`${Me[t[0]]}${Me[t[1]]}${Me[t[2]]}${Me[t[3]]}-${Me[t[4]]}${Me[t[5]]}-${Me[t[6]]}${Me[t[7]]}-${Me[t[8]]}${Me[t[9]]}-${Me[t[10]]}${Me[t[11]]}${Me[t[12]]}${Me[t[13]]}${Me[t[14]]}${Me[t[15]]}`}const Pe={randomFillSync(e,t=0,n){let r=je(e),i=t,a=n===void 0?r.length:i+n;return Ae(r.subarray(i,a)),e},randomBytes(e){let t=globalThis.Buffer,n=t&&typeof t.allocUnsafe==`function`?t.allocUnsafe(e):new Uint8Array(e);return Ae(je(n)),n},randomUUID:Ne,getRandomValues(e){return ke(e)},createHash:De,get webcrypto(){return Oe()},get subtle(){return Oe().subtle}};var Fe=class extends Error{actual;expected;operator;generatedMessage;code;constructor(e={}){let t=!e.message;super(e.message||`${Ie(e.actual)} ${e.operator||`!=`} ${Ie(e.expected)}`),this.name=`AssertionError`,this.actual=e.actual,this.expected=e.expected,this.operator=e.operator||``,this.generatedMessage=t,this.code=`ERR_ASSERTION`}};function Ie(e){if(typeof e==`string`)return JSON.stringify(e);if(e==null)return String(e);if(typeof e==`object`)try{return JSON.stringify(e)}catch{return String(e)}return String(e)}function Le(e,t){return e instanceof Error?e:typeof e==`string`?new Fe({message:e}):t()}function Re(e,t,n,r){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!Be(e[i],t[i],n,r))return!1;return!0}function ze(e,t,n,r){let i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(let a of i){if(!Object.prototype.hasOwnProperty.call(t,a))return!1;let i=e[a],o=t[a];if(!Be(i,o,n,r))return!1}return!0}function Be(e,t,n,r){if((n?Object.is(e,t):e===t)||!n&&e==t)return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;let i=e,a=t;return n&&Object.getPrototypeOf(i)!==Object.getPrototypeOf(a)?!1:r.get(i)===a?!0:(r.set(i,a),Array.isArray(e)===Array.isArray(t)?Array.isArray(e)&&Array.isArray(t)?Re(e,t,n,r):ze(i,a,n,r):!1)}function Ve(e,t){try{if(e instanceof t)return!0}catch{}try{return!!t(e)}catch{return!1}}function He(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];if(r instanceof RegExp){if(typeof t!=`string`||!r.test(t))return!1}else if(t!==r)return!1}return!0}function Ue(e,t){if(t===void 0)return!0;if(t instanceof RegExp){let n=e instanceof Error?e.message:String(e);return t.test(n)}return typeof t==`function`?Ve(e,t):t&&typeof t==`object`?!e||typeof e!=`object`?!1:He(e,t):!1}function We(e){let t=(e,t)=>{if(!e)throw Le(t,()=>new Fe({message:`The expression evaluated to a falsy value`,actual:e,expected:!0,operator:`==`}))},n=((e,n)=>t(e,n)),r=(e,t,n)=>{if(!Object.is(e,t))throw Le(n,()=>new Fe({actual:e,expected:t,operator:`strictEqual`}))},i=(t,n,i)=>{if(e){r(t,n,i);return}if(t!=n)throw Le(i,()=>new Fe({actual:t,expected:n,operator:`==`}))},a=(e,t,n)=>{if(Object.is(e,t))throw Le(n,()=>new Fe({actual:e,expected:t,operator:`notStrictEqual`}))},o=(t,n,r)=>{if(e){a(t,n,r);return}if(t==n)throw Le(r,()=>new Fe({actual:t,expected:n,operator:`!=`}))},s=(e,t,n)=>{if(!Be(e,t,!0,new WeakMap))throw Le(n,()=>new Fe({actual:e,expected:t,operator:`deepStrictEqual`}))},c=(t,n,r)=>{if(e){s(t,n,r);return}if(!Be(t,n,!1,new WeakMap))throw Le(r,()=>new Fe({actual:t,expected:n,operator:`deepEqual`}))},l=(e,t,n)=>{if(Be(e,t,!0,new WeakMap))throw Le(n,()=>new Fe({actual:e,expected:t,operator:`notDeepStrictEqual`}))};return n.ok=t,n.equal=i,n.notEqual=o,n.strictEqual=r,n.notStrictEqual=a,n.deepEqual=c,n.deepStrictEqual=s,n.notDeepEqual=(t,n,r)=>{if(e){l(t,n,r);return}if(Be(t,n,!1,new WeakMap))throw Le(r,()=>new Fe({actual:t,expected:n,operator:`notDeepEqual`}))},n.notDeepStrictEqual=l,n.throws=(e,t,n)=>{let r,i=!1;try{e()}catch(e){r=e,i=!0}if(!i)throw Le(typeof t==`string`?t:n,()=>new Fe({message:`Missing expected exception`,operator:`throws`}));if(!(typeof t==`string`||t instanceof Error)&&!Ue(r,t))throw Le(n,()=>new Fe({message:`Got unwanted exception`,actual:r,operator:`throws`}))},n.doesNotThrow=(e,t)=>{try{e()}catch(e){throw Le(t,()=>new Fe({message:`Got unwanted exception`,actual:e,operator:`doesNotThrow`}))}},n.fail=e=>{throw Le(e,()=>new Fe({message:`Failed`,operator:`fail`}))},n.AssertionError=Fe,n}const Ge=We(!0);Ge.strict=Ge;const Ke=We(!1);Ke.strict=Ge;const qe=Symbol.for(`nodejs.util.inspect.custom`),Je=Symbol.for(`nodejs.util.promisify.custom`);function Ye(e){return`'${e.replace(/\\/g,`\\\\`).replace(/'/g,`\\'`).replace(/\n/g,`\\n`)}'`}function Xe(e){if(e===null)return`null`;let t=typeof e;if(t===`string`)return Ye(e);if(t===`number`)return Object.is(e,-0)?`-0`:String(e);if(t===`bigint`)return`${String(e)}n`;if(t===`boolean`||t===`undefined`)return String(e);if(t===`symbol`)return e.toString();if(t===`function`){let t=e.name;return t?`[Function: ${t}]`:`[Function (anonymous)]`}return null}function Ze(e){return e instanceof RegExp?e.toString():e instanceof Date?Number.isNaN(e.getTime())?`Invalid Date`:e.toISOString():e instanceof Error?e.stack||`${e.name}: ${e.message}`:null}function Qe(e,t,n){if(Array.isArray(e))return e.length===0?`[]`:`[ ${e.map(e=>$e(e,t+1,n)).join(`, `)} ]`;if(e instanceof Map){let r=[...e].map(([e,r])=>`${$e(e,t+1,n)} => ${$e(r,t+1,n)}`);return`Map(${e.size}) {${r.length?` ${r.join(`, `)} `:``}}`}if(e instanceof Set){let r=[...e].map(e=>$e(e,t+1,n));return`Set(${e.size}) {${r.length?` ${r.join(`, `)} `:``}}`}let r=Object.keys(e),i=e.constructor?e.constructor.name:``,a=i&&i!==`Object`?`${i} `:``;return r.length===0?`${a}{}`:`${a}{ ${r.map(r=>`${/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(r)?r:Ye(r)}: ${$e(e[r],t+1,n)}`).join(`, `)} }`}function $e(e,t,n){let r=Xe(e);if(r!==null)return r;let i=e,a=Ze(i);if(a!==null)return a;let o=i[qe];if(typeof o==`function`)try{return String(o.call(i,n.maxDepth,n.opts))}catch{}if(n.seen.has(e))return`[Circular *1]`;if(n.maxDepth!==null&&t>n.maxDepth)return Array.isArray(e)?`[Array]`:`[Object]`;n.seen.add(e);try{return Qe(i,t,n)}finally{n.seen.delete(e)}}function et(e,t={}){let n=t.depth===void 0?2:t.depth;return $e(e,0,{seen:new Set,maxDepth:n,opts:t})}function tt(e,t,n,r){if(e===`%%`)return`%`;if(n.i>=t.length)return e;let i=t[n.i];switch(e){case`%s`:return n.i++,typeof i==`string`?i:typeof i==`bigint`?`${String(i)}n`:i==null||typeof i==`number`||typeof i==`boolean`?String(i):et(i,{depth:r.depth===void 0?2:r.depth});case`%d`:return n.i++,typeof i==`bigint`?`${String(i)}n`:Number.isNaN(Number(i))?`NaN`:String(Number(i));case`%i`:return n.i++,typeof i==`bigint`?`${String(i)}n`:String(Number.parseInt(i,10));case`%f`:return n.i++,String(typeof i==`bigint`?i:Number.parseFloat(i));case`%j`:n.i++;try{return JSON.stringify(i)??`undefined`}catch{return`[Circular]`}case`%o`:return n.i++,et(i,{depth:4});case`%O`:return n.i++,et(i,{depth:null});case`%c`:return n.i++,``;default:return e}}function nt(e,...t){let n=t[0];if(typeof n!=`string`)return t.map(e=>typeof e==`string`?e:et(e)).join(` `);let r={i:1},i=n.replace(/%[sdifjoOc%]/g,n=>tt(n,t,r,e));for(;r.i<t.length;r.i++){let e=t[r.i];i+=` ${typeof e==`string`?e:et(e)}`}return i}function rt(...e){return nt({},...e)}function it(e,t){if(e==null)throw TypeError(`The constructor to "inherits" must not be null or undefined`);if(t==null)throw TypeError(`The super constructor to "inherits" must not be null or undefined`);if(t.prototype===void 0)throw TypeError(`The super constructor to "inherits" must have a prototype`);e.super_=t,Object.setPrototypeOf(e.prototype,t.prototype)}function at(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type function`);let t=e[Je];if(t){if(typeof t!=`function`)throw TypeError(`The [util.promisify.custom] property must be of type function`);return t}function n(...t){return new Promise((n,r)=>{e.call(this,...t,(e,...t)=>{if(e){r(e);return}n(t.length>1?t:t[0])})})}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)),n}const ot=et;ot.custom=qe;const st=at;st.custom=Je;const ct={format:rt,formatWithOptions:nt,inspect:ot,inherits:it,promisify:st};function lt(e){return typeof e==`string`?new Uint8Array($(e,`utf8`)):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function ut(e){let t={};return e&&(typeof e.level==`number`&&(t.level=e.level),typeof e.windowBits==`number`&&(t.windowBits=e.windowBits),typeof e.memLevel==`number`&&(t.memLevel=e.memLevel),typeof e.strategy==`number`&&(t.strategy=e.strategy)),t}function dt(e,t,n){return $(e(lt(t),ut(n)))}function ft(e,t,n,r){let i=typeof n==`function`?n:r,a=typeof n==`function`?void 0:n;if(typeof i!=`function`)throw TypeError(`zlib: callback is required`);let o;try{o=dt(e,t,a)}catch(e){queueMicrotask(()=>i(e instanceof Error?e:Error(String(e))));return}queueMicrotask(()=>i(null,o))}const pt={gzipSync:(e,t)=>dt(z.gzip,e,t),gunzipSync:(e,t)=>dt(z.ungzip,e,t),deflateSync:(e,t)=>dt(z.deflate,e,t),inflateSync:(e,t)=>dt(z.inflate,e,t),deflateRawSync:(e,t)=>dt(z.deflateRaw,e,t),inflateRawSync:(e,t)=>dt(z.inflateRaw,e,t),gzip:(e,t,n)=>ft(z.gzip,e,t,n),gunzip:(e,t,n)=>ft(z.ungzip,e,t,n),deflate:(e,t,n)=>ft(z.deflate,e,t,n),inflate:(e,t,n)=>ft(z.inflate,e,t,n),deflateRaw:(e,t,n)=>ft(z.deflateRaw,e,t,n),inflateRaw:(e,t,n)=>ft(z.inflateRaw,e,t,n),constants:{Z_NO_FLUSH:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1}},mt=new Set([`fs`,`path`,`crypto`,`process`,`buffer`,`assert`,`assert/strict`,`util`]),ht=new Set(`assert.assert/strict.async_hooks.buffer.child_process.cluster.console.constants.crypto.dgram.diagnostics_channel.dns.dns/promises.domain.events.fs.fs/promises.http.http2.https.inspector.inspector/promises.module.net.os.path.path/posix.path/win32.perf_hooks.process.punycode.querystring.readline.readline/promises.repl.stream.stream/consumers.stream/promises.stream/web.string_decoder.sys.timers.timers/promises.tls.trace_events.tty.url.util.util/types.v8.vm.wasi.worker_threads.zlib`.split(`.`)),gt=new Set([...ht].filter(e=>!mt.has(e)));var _t=class{port;nextId=1;pending=new Map;eventSubscribers=new Map;handler;disposed=!1;constructor(e){this.port=e,this.handler=e=>{let t=e.data;if(t?.type===`realm-rpc-res`){let t=e.data,n=this.pending.get(t.id);if(!n)return;this.pending.delete(t.id),typeof t.error==`string`?n.reject(Error(t.error)):n.resolve(t.result);return}if(t?.type===`realm-event`){let t=e.data,n=this.eventSubscribers.get(t.channel);if(!n)return;for(let e of[...n])try{e(t.payload)}catch{}}},e.addEventListener(`message`,this.handler),e.start?.()}get pendingCount(){return this.pending.size}call(e,t,n=[]){if(this.disposed)return Promise.reject(Error(`realm-rpc: client disposed`));let r=this.nextId++,i={type:`realm-rpc-req`,id:r,channel:e,op:t,args:n};return new Promise((e,t)=>{this.pending.set(r,{resolve:e,reject:t}),this.port.postMessage(i)})}onEvent(e,t){if(this.disposed)return()=>{};let n=this.eventSubscribers.get(e);return n||(n=new Set,this.eventSubscribers.set(e,n)),n.add(t),()=>{let n=this.eventSubscribers.get(e);n&&(n.delete(t),n.size===0&&this.eventSubscribers.delete(e))}}dispose(){if(this.disposed)return;this.disposed=!0,this.port.removeEventListener(`message`,this.handler);let e=Error(`realm-rpc: client disposed`);for(let t of this.pending.values())t.reject(e);this.pending.clear(),this.eventSubscribers.clear()}};const vt=new Set([`bcrypt`,`better-sqlite3`,`canvas`,`cpu-features`,`fsevents`,`leveldown`,`libxmljs`,`libxmljs2`,`node-gyp-build`,`node-sass`,`puppeteer`,`robotjs`,`sass-embedded`,`sharp`,`snappy`,`sqlite3`,`tree-sitter`,`usb`]),yt={sharp:` Use the built-in 'convert' shell command for image work.`,canvas:` Use the built-in 'convert' / OffscreenCanvas for image work.`,"better-sqlite3":` Use the built-in 'sqlite3' shell command (sql.js WASM).`,sqlite3:` Use the built-in 'sqlite3' shell command (sql.js WASM).`,bcrypt:` Use crypto.subtle.digest() with PBKDF2 / Argon2 in pure JS.`,puppeteer:` Use the built-in browser-automation shell commands.`};function bt(e,t){let n=yt[t]??``;return Error(`require('${e}'): '${t}' is a Node native module (C++ bindings) — it cannot run in the browser sandbox.${n}`)}function xt(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t<0?``:t===0?`/`:e.substring(0,t)}function St(e){return/^[A-Za-z0-9_\-./:@]+$/.test(e)?e:`'`+e.replace(/'/g,`'\\''`)+`'`}function Ct(e,t){return e===``?t:e===`/`?`/${t}`:`${e}/${t}`}function wt(e){let t=xt(e.argv[1]??``),n=Ct(t,`references`),r=Ct(t,`assets`),i=Ct(t,`.config`);async function a(){let t;try{t=await e.fs.exists(i)}catch{return null}if(!t)return null;let n;try{n=await e.fs.readFile(i)}catch{return null}let r=typeof n==`string`?n:String(n);if(!r.trim())return null;let a;try{a=JSON.parse(r)}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`skill.config(): failed to parse ${i}: ${t}`)}if(a&&typeof a==`object`&&!Array.isArray(a))return a;throw Error(`skill.config(): ${i} must contain a JSON object`)}async function o(t){let n=await a();if(t===void 0)return n;if(typeof t!=`object`||!t||Array.isArray(t))throw TypeError(`skill.config(updates): updates must be a plain object`);let r={...n??{},...t};return await e.fs.writeFile(i,JSON.stringify(r,null,2)+`
|
|
42
|
+
`),r}async function s(t){if(typeof t!=`string`||!t.trim())throw TypeError(`skill.token(providerId): providerId must be a non-empty string`);let n=`oauth-token ${St(t)}`,{stdout:r,stderr:i,exitCode:a}=await e.exec(n);if(a!==0){let e=i.trim()||`oauth-token exited with code ${a}`;throw Error(`skill.token('${t}'): ${e}`)}return r.replace(/\r?\n+$/,``)}return Object.freeze({dir:t,refs:n,assets:r,config:o,token:s})}function Tt(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t<0?``:t===0?`/`:e.substring(0,t)}var Et=class extends Error{code;constructor(e){super(`Process exited with code ${e}`),this.code=e,this.name=`NodeExitError`}};function Dt(e){if(typeof e==`string`)return e;if(e==null)return String(e);try{return JSON.stringify(e)}catch{return String(e)}}async function Ot(e,t){let n=[],r=[],i=e=>{n.push(typeof e==`string`?e:String(e))},a=e=>{r.push(typeof e==`string`?e:String(e))},o=At(i,a),{processShim:s,getDidCallProcessExit:c}=jt(e,i,a),l=!!e.env?.NO_COLOR,u=ue({isTTY:!l,noColor:l}),d=ce({writeStdout:i,writeStderr:a,exit:e=>{throw new Et(e)},color:u}),f=new _t(t),p=Ft(f,x),m=Mt(f),h=wt({argv:e.argv,fs:p,exec:m}),g=Jt(f),_=on(f),v=cn(f),y=un(f),b=S({fetch:x});async function x(e,t){let n=e instanceof Request?e.url:e instanceof URL?e.toString():String(e),r=await f.call(`fetch`,`request`,[n,qt(t,e)]),i=r.body.byteLength===0?null:r.body.buffer.slice(r.body.byteOffset,r.body.byteOffset+r.body.byteLength),a=new Response(i,{status:r.status,statusText:r.statusText,headers:r.headers});return Object.defineProperty(a,"url",{value:r.url||n}),a}let C=Nt({exec:m,skill:h,http:b,browser:g,usb:_,serial:v,hid:y,cli:d,color:u}),w=e.filename,T=Tt(w),E=await Rt(f,e.code,e.cwd,w),D=Bt({graph:E,fsBridge:p,processShim:s,nodeConsole:o,sliccyModules:C}).require,O={exports:{},filename:e.filename},k=E.entrySource!==void 0,A=E.entrySource??e.code,j=globalThis;j.__slicc_compileWasm=e=>f.call(`wasm`,`compile`,[e]);let ee=await Kt(A,{process:s,console:o,require:D,module:O,exports:O.exports,fetch:x,__dirname:T,__filename:w},a,k);c()||await kt(f),delete j.__slicc_compileWasm,f.dispose();let te={type:`realm-done`,stdout:n.join(``),stderr:r.join(``),exitCode:ee};t.postMessage(te)}async function kt(e){let t=Date.now()+1e3,n=0;do await new Promise(e=>setTimeout(e,0)),n++;while(e.pendingCount>0&&n<50&&Date.now()<t)}function At(e,t){return{log:(...t)=>e(`${t.map(Dt).join(` `)}
|
|
43
|
+
`),info:(...t)=>e(`${t.map(Dt).join(` `)}
|
|
44
|
+
`),warn:(...e)=>t(`${e.map(Dt).join(` `)}
|
|
45
|
+
`),error:(...e)=>t(`${e.map(Dt).join(` `)}
|
|
46
|
+
`)}}function jt(e,t,n){let r=!!e.env?.NO_COLOR,i=Pt(e.stdin??``),a=B(e.argv),o=!1;return{processShim:{argv:a,env:e.env,cwd:()=>e.cwd,exit:e=>{throw o=!0,new Et(Number.isFinite(e)?Number(e):0)},stdin:i,stdout:{write:t,isTTY:!r},stderr:{write:n,isTTY:!r}},getDidCallProcessExit:()=>o}}function Mt(e){let t=Object.assign(t=>e.call(`exec`,`run`,[t]),{spawn:t=>e.call(`exec`,`spawn`,[t])});return t.exec=t,t}function Nt(e){return{...e,time:pe,fmt:q,pool:J}}function Pt(e){let t=!1;return{isTTY:!1,read(){return t?null:(t=!0,e)},toString(){return e},[Symbol.asyncIterator](){return{async next(){return t?{value:void 0,done:!0}:(t=!0,{value:e,done:!1})}}}}}function Ft(e,t){return{readFile:t=>e.call(`vfs`,`readFile`,[t]),readFileBinary:t=>e.call(`vfs`,`readFileBinary`,[t]),writeFile:(t,n)=>e.call(`vfs`,`writeFile`,[t,n]),writeFileBinary:(t,n)=>e.call(`vfs`,`writeFileBinary`,[t,n]),readDir:t=>e.call(`vfs`,`readDir`,[t]),exists:t=>e.call(`vfs`,`exists`,[t]),stat:t=>e.call(`vfs`,`stat`,[t]),mkdir:t=>e.call(`vfs`,`mkdir`,[t]),rm:t=>e.call(`vfs`,`rm`,[t]),fetchToFile:async(n,r)=>{let i=await t(n);if(!i.ok)throw Error(`fetch ${i.status} ${i.statusText}`);let a=new Uint8Array(await i.arrayBuffer());return await e.call(`vfs`,`writeFileBinary`,[r,a]),a.byteLength}}}function It(e,t){return e?.startsWith(`/`)?Tt(e):t}function Lt(e){return e.includes(`require`)||e.includes(`import`)}async function Rt(e,t,n,r){return Lt(t)?e.call(`module`,`buildGraph`,[t,It(r,n),r]):{files:[],entryMap:{},edges:{},errors:{}}}function zt(e){if(typeof e!=`object`||!e)return;let t=e;if(t.__esModule&&!Object.prototype.hasOwnProperty.call(t,`default`)&&Object.isExtensible(t))try{Object.defineProperty(t,"default",{value:t,enumerable:!1,configurable:!0})}catch{}}function Bt(e){let{graph:t,fsBridge:n,processShim:r,nodeConsole:i,sliccyModules:a}=e,o=new Map(t.files.map(e=>[e.path,e.cjsSource])),s=new Map(t.files.map(e=>[e.path,e.kind])),c=new Map,l=e=>{if(typeof e==`string`&&e.startsWith(`sliccy:`))return{hit:!0,value:Ut(e,a)};let t=e.startsWith(`node:`)?e.slice(5):e,i=Vt(t,n,r);if(i.hit)return i;if(vt.has(t))throw bt(e,t);if(gt.has(t))throw Gt(e,t);return{hit:!1}},u=(e,n)=>{let r=l(n);if(r.hit)return r.value;let i=e?.[n];if(i)return d(i);throw n in t.errors?Error(t.errors[n]):Ht(n)};function d(e){let n=c.get(e);if(n)return n.exports;let a=o.get(e);if(a===void 0)throw Error(`Cannot find module '${e}'`);let l={exports:{}};c.set(e,l);let d=n=>u(t.edges[e],n),f=Tt(e);return Function(`module`,`exports`,`require`,`__dirname`,`__filename`,`process`,`console`,`Buffer`,`global`,a)(l,l.exports,d,f,e,r,i,globalThis.Buffer,globalThis),s.get(e)===`cjs`&&zt(l.exports),l.exports}return{require:e=>u(t.entryMap,e)}}function Vt(e,t,n){return e===`fs`?{hit:!0,value:t}:e===`path`?{hit:!0,value:we}:e===`crypto`?{hit:!0,value:Pe}:e===`process`?{hit:!0,value:n}:e===`buffer`?{hit:!0,value:{Buffer:globalThis.Buffer}}:e===`assert`?{hit:!0,value:Ke}:e===`assert/strict`?{hit:!0,value:Ge}:e===`util`?{hit:!0,value:ct}:e===`zlib`?{hit:!0,value:pt}:{hit:!1}}function Ht(e){if(e.startsWith(`.`)||e.startsWith(`/`)||e.startsWith(`node:`))return Error(`Cannot find module '${e}'`);let t=e.startsWith(`@`)?e.split(`/`).slice(0,2).join(`/`):e.split(`/`)[0];return Error(`Cannot find module '${e}' (run: ipk install ${t})`)}function Ut(e,t){let n=e.slice(7);if(n===``)throw Error(`require('sliccy:'): empty sliccy: module name`);if(!Object.prototype.hasOwnProperty.call(t,n))throw Error(`require('${e}'): unknown sliccy: module '${n}'. Known names: ${Object.keys(t).sort().join(`, `)}`);return t[n]}const Wt={http:` Use fetch() instead.`,https:` Use fetch() instead.`,child_process:` Use exec() which is available as a shell bridge.`,crypto:` Use globalThis.crypto (Web Crypto API) instead.`};function Gt(e,t){return Error(`require('${e}'): Node built-in '${t}' is not available in the browser environment.${Wt[t]||``}`)}async function Kt(e,t,n,r){let i=Object.keys(t),a=i.map(e=>t[e]),o=Object.getPrototypeOf(async function(){}).constructor,s=new o(...i,`${r?`"use strict";
|
|
47
|
+
`:``}${e}`);try{return await s(...a),0}catch(e){return e instanceof Et?e.code:(n(`${e instanceof Error?e.stack??e.message:String(e)}\n`),1)}}function qt(e,t){if(!e&&!(t instanceof Request))return;let n=t instanceof Request?t:null,r=(e?.method??n?.method??`GET`).toUpperCase(),i={};if(e?.headers)if(e.headers instanceof Headers)e.headers.forEach((e,t)=>{i[t]=e});else if(Array.isArray(e.headers))for(let[t,n]of e.headers)i[t]=n;else Object.assign(i,e.headers);else n&&n.headers.forEach((e,t)=>{i[t]=e});let a;return e?.body!==void 0&&e?.body!==null&&e?.body!==``&&(a=typeof e.body==`string`?e.body:String(e.body)),{method:r,headers:i,body:a}}function Jt(e){return{findTab:t=>e.call(`browser`,`findTab`,[Qt(t)]),ensureTab:(t,n={})=>e.call(`browser`,`ensureTab`,[t,$t(n)]),eval:(t,n)=>e.call(`browser`,`eval`,[Yt(t),Xt(n,!1)]),evalAsync:(t,n)=>e.call(`browser`,`evalAsync`,[Yt(t),Xt(n,!0)]),cookie:(t,n)=>e.call(`browser`,`cookie`,[Yt(t),n]),localStorage:(t,n)=>e.call(`browser`,`localStorage`,[Yt(t),n]),fetch:(t,n,r={})=>e.call(`browser`,`evalAsync`,[Yt(t),Zt(n,r)]),websocket:en(e)}}function Yt(e){if(typeof e==`string`)return e;if(e&&typeof e==`object`&&typeof e.targetId==`string`)return e.targetId;throw TypeError(`browser: expected a tab handle or targetId string`)}function Xt(e,t){if(typeof e==`function`)return`(${e.toString()})()`;if(typeof e==`string`)return e;throw TypeError(`browser.eval/evalAsync: source must be a function or string`)}function Zt(e,t={}){let n={},r=t.headers??{};for(let[e,t]of Object.entries(r))typeof t==`string`&&(n[e]=t);let i=typeof t.method==`string`?t.method:`GET`,a=t.credentials===`same-origin`||t.credentials===`omit`?t.credentials:`include`,o;t.body!==void 0&&t.body!==null&&(typeof t.body==`string`?o=t.body:(o=JSON.stringify(t.body),Object.keys(n).some(e=>e.toLowerCase()===`content-type`)||(n[`Content-Type`]=`application/json`)));let s={method:i,credentials:a,headers:n};o!==void 0&&(s.body=o);for(let e of[`mode`,`cache`,`redirect`,`referrer`,`referrerPolicy`,`integrity`,`keepalive`]){let n=t[e];n!==void 0&&(s[e]=n)}return`(async () => {const r = await fetch(`+JSON.stringify(e)+`, `+JSON.stringify(s)+`);const h = {};r.headers.forEach((v, k) => { h[k] = v; });const ct = r.headers.get('content-type') || '';let b;if (ct.indexOf('application/json') !== -1) {try { b = await r.json(); } catch (e) { b = await r.text(); }} else { b = await r.text(); }return { ok: r.ok, status: r.status, headers: h, body: b };})()`}function Qt(e){let t={};return e.domain!==void 0&&(t.domain=e.domain),e.urlMatch!==void 0&&(t.urlMatch=e.urlMatch instanceof RegExp?e.urlMatch.source:e.urlMatch),t}function $t(e){return e.matchUrl===void 0?{}:{matchUrl:e.matchUrl instanceof RegExp?e.matchUrl.source:e.matchUrl}}function en(e){function t(t){return{...t,async update(n){let r={};return n.urlMatch!==void 0&&(r.urlMatch=n.urlMatch===null?null:n.urlMatch instanceof RegExp?n.urlMatch.source:n.urlMatch),n.filter!==void 0&&(r.filter=n.filter),e.call(`browser`,`wsUpdate`,[t.id,r])},async close(){return e.call(`browser`,`wsClose`,[t.id])}}}return{on(n,r={}){let i=Yt(n),a=r.urlMatch===void 0?void 0:r.urlMatch instanceof RegExp?r.urlMatch.source:r.urlMatch,o,s={filter(e){if(typeof e==`function`||typeof e==`string`)throw TypeError(`browser.websocket: filter must be a declarative JSON object, not a function or string`);return o=e,s},async forward(n){return t(await e.call(`browser`,`wsObserve`,[{targetId:i,urlMatch:a,filter:o,forward:n}]))}};return s},async list(){return e.call(`browser`,`wsList`,[])}}}function tn(e){if(e instanceof Uint8Array)return e;if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new Uint8Array(e);throw TypeError(`expected an ArrayBuffer or typed array`)}function nn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function rn(e){return e==null?[]:Array.isArray(e)?e:[e]}function an(e,t){let n=t.handle,r=e=>({status:e.status,data:nn(e.bytes)});return{...t,open:()=>e.call(`usb`,`open`,[n]),close:()=>e.call(`usb`,`close`,[n]),reset:()=>e.call(`usb`,`reset`,[n]),selectConfiguration:t=>e.call(`usb`,`selectConfig`,[n,t]),claimInterface:t=>e.call(`usb`,`claim`,[n,t]),releaseInterface:t=>e.call(`usb`,`release`,[n,t]),controlTransferIn:async(t,i)=>r(await e.call(`usb`,`controlIn`,[n,t,i])),controlTransferOut:(t,r)=>e.call(`usb`,`controlOut`,[n,t,tn(r)]),transferIn:async(t,i)=>r(await e.call(`usb`,`transferIn`,[n,t,i])),transferOut:(t,r)=>e.call(`usb`,`transferOut`,[n,t,tn(r)])}}function on(e){return{list:async()=>(await e.call(`usb`,`list`,[])).map(t=>an(e,t)),request:async t=>an(e,await e.call(`usb`,`request`,[rn(t)]))}}function sn(e,t){let n=t.handle;return{...t,open:t=>e.call(`serial`,`open`,[n,t]),close:()=>e.call(`serial`,`close`,[n]),read:(t={})=>e.call(`serial`,`read`,[n,{maxBytes:t.maxBytes??t.bytes,until:t.until?tn(t.until):void 0,timeoutMs:t.timeoutMs}]),write:t=>e.call(`serial`,`write`,[n,tn(t)]),getSignals:()=>e.call(`serial`,`getSignals`,[n]),setSignals:t=>e.call(`serial`,`setSignals`,[n,t])}}function cn(e){return{list:async()=>(await e.call(`serial`,`list`,[])).map(t=>sn(e,t)),request:async t=>sn(e,await e.call(`serial`,`request`,[rn(t)]))}}function ln(e,t){let n=t.handle,r=new Set,i=new Set,a=!1,o=null,s=e=>{let t=e;if(!t||t.handle!==n)return;let i={reportId:t.reportId,data:nn(t.bytes)};for(let e of[...r])try{e(i)}catch{}},c=()=>{a||(a=!0,o=e.onEvent?e.onEvent(`hid-input-report`,s):null,e.call(`hid`,`subscribeInputReports`,[n]).catch(()=>{a=!1,o?.(),o=null}))},l=()=>{!a||r.size>0||(a=!1,o?.(),o=null,e.call(`hid`,`unsubscribeInputReports`,[n]).catch(()=>{}))};return{...t,open:()=>e.call(`hid`,`open`,[n]),close:()=>e.call(`hid`,`close`,[n]),sendReport:(t,r)=>e.call(`hid`,`sendReport`,[n,t,tn(r)]),sendFeatureReport:(t,r)=>e.call(`hid`,`sendFeatureReport`,[n,t,tn(r)]),receiveFeatureReport:async t=>nn((await e.call(`hid`,`receiveFeatureReport`,[n,t])).bytes),addEventListener(e,t){if(e===`inputreport`)r.add(t),c();else if(e===`disconnect`)i.add(t);else throw TypeError(`hid device: unknown event type '${String(e)}'`)},removeEventListener(e,t){e===`inputreport`?(r.delete(t),l()):e===`disconnect`&&i.delete(t)},onInputReport(e){r.add(e),c()}}}function un(e){return{list:async()=>(await e.call(`hid`,`list`,[])).map(t=>ln(e,t)),request:async t=>{let n=(await e.call(`hid`,`request`,[rn(t)]))[0];if(!n)throw Error(`No device selected.`);return ln(e,n)}}}const dn={postMessage:(e,t)=>t?self.postMessage(e,t):self.postMessage(e),addEventListener:(e,t)=>self.addEventListener(e,t),removeEventListener:(e,t)=>self.removeEventListener(e,t)};self.addEventListener(`message`,e=>{if(e.data?.type!==`realm-init`)return;let t=e.data;t.kind===`js`&&Ot(t,dn).catch(e=>{let t={type:`realm-error`,message:e instanceof Error?e.message:String(e)};self.postMessage(t)})});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as e}from"./chunk-
|
|
1
|
+
import{t as e}from"./chunk-aKtaBQYM.js";var t=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Allow=e.ALL=e.COLLECTION=e.ATOM=e.SPECIAL=e.INF=e._INFINITY=e.INFINITY=e.NAN=e.BOOL=e.NULL=e.OBJ=e.ARR=e.NUM=e.STR=void 0,e.STR=1,e.NUM=2,e.ARR=4,e.OBJ=8,e.NULL=16,e.BOOL=32,e.NAN=64,e.INFINITY=128,e._INFINITY=256,e.INF=e.INFINITY|e._INFINITY,e.SPECIAL=e.NULL|e.BOOL|e.INF|e.NAN,e.ATOM=e.STR|e.NUM|e.SPECIAL,e.COLLECTION=e.ARR|e.OBJ,e.ALL=e.ATOM|e.COLLECTION,e.Allow={STR:e.STR,NUM:e.NUM,ARR:e.ARR,OBJ:e.OBJ,NULL:e.NULL,BOOL:e.BOOL,NAN:e.NAN,INFINITY:e.INFINITY,_INFINITY:e._INFINITY,INF:e.INF,SPECIAL:e.SPECIAL,ATOM:e.ATOM,COLLECTION:e.COLLECTION,ALL:e.ALL},e.default=e.Allow})),n=e((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.Allow=e.MalformedJSON=e.PartialJSON=e.parseJSON=e.parse=void 0;let i=t();Object.defineProperty(e,"Allow",{enumerable:!0,get:function(){return i.Allow}}),r(t(),e);var a=class extends Error{};e.PartialJSON=a;var o=class extends Error{};e.MalformedJSON=o;function s(e,t=i.Allow.ALL){if(typeof e!=`string`)throw TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw Error(`${e} is empty`);return c(e.trim(),t)}e.parseJSON=s;let c=(e,t)=>{let n=e.length,r=0,s=e=>{throw new a(`${e} at position ${r}`)},c=e=>{throw new o(`${e} at position ${r}`)},l=()=>(m(),r>=n&&s(`Unexpected end of input`),e[r]===`"`?u():e[r]===`{`?d():e[r]===`[`?f():e.substring(r,r+4)===`null`||i.Allow.NULL&t&&n-r<4&&`null`.startsWith(e.substring(r))?(r+=4,null):e.substring(r,r+4)===`true`||i.Allow.BOOL&t&&n-r<4&&`true`.startsWith(e.substring(r))?(r+=4,!0):e.substring(r,r+5)===`false`||i.Allow.BOOL&t&&n-r<5&&`false`.startsWith(e.substring(r))?(r+=5,!1):e.substring(r,r+8)===`Infinity`||i.Allow.INFINITY&t&&n-r<8&&`Infinity`.startsWith(e.substring(r))?(r+=8,1/0):e.substring(r,r+9)===`-Infinity`||i.Allow._INFINITY&t&&1<n-r&&n-r<9&&`-Infinity`.startsWith(e.substring(r))?(r+=9,-1/0):e.substring(r,r+3)===`NaN`||i.Allow.NAN&t&&n-r<3&&`NaN`.startsWith(e.substring(r))?(r+=3,NaN):p()),u=()=>{let a=r,o=!1;for(r++;r<n&&(e[r]!==`"`||o&&e[r-1]===`\\`);)o=e[r]===`\\`?!o:!1,r++;if(e.charAt(r)==`"`)try{return JSON.parse(e.substring(a,++r-Number(o)))}catch(e){c(String(e))}else if(i.Allow.STR&t)try{return JSON.parse(e.substring(a,r-Number(o))+`"`)}catch{return JSON.parse(e.substring(a,e.lastIndexOf(`\\`))+`"`)}s(`Unterminated string literal`)},d=()=>{r++,m();let a={};try{for(;e[r]!==`}`;){if(m(),r>=n&&i.Allow.OBJ&t)return a;let o=u();m(),r++;try{a[o]=l()}catch(e){if(i.Allow.OBJ&t)return a;throw e}m(),e[r]===`,`&&r++}}catch{if(i.Allow.OBJ&t)return a;s(`Expected '}' at end of object`)}return r++,a},f=()=>{r++;let n=[];try{for(;e[r]!==`]`;)n.push(l()),m(),e[r]===`,`&&r++}catch{if(i.Allow.ARR&t)return n;s(`Expected ']' at end of array`)}return r++,n},p=()=>{if(r===0){e===`-`&&c(`Not sure what '-' is`);try{return JSON.parse(e)}catch(n){if(i.Allow.NUM&t)try{return JSON.parse(e.substring(0,e.lastIndexOf(`e`)))}catch{}c(String(n))}}let a=r;for(e[r]===`-`&&r++;e[r]&&`,]}`.indexOf(e[r])===-1;)r++;r==n&&!(i.Allow.NUM&t)&&s(`Unterminated number literal`);try{return JSON.parse(e.substring(a,r))}catch{e.substring(a,r)===`-`&&s(`Not sure what '-' is`);try{return JSON.parse(e.substring(a,e.lastIndexOf(`e`)))}catch(e){c(String(e))}}},m=()=>{for(;r<n&&`
|
|
2
2
|
\r `.includes(e[r]);)r++};return l()};e.parse=s}))();const r=new Set([`"`,`\\`,`/`,`b`,`f`,`n`,`r`,`t`,`u`]);function i(e){let t=e.codePointAt(0);return t!==void 0&&t>=0&&t<=31}function a(e){switch(e){case`\b`:return`\\b`;case`\f`:return`\\f`;case`
|
|
3
3
|
`:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;default:return`\\u${e.codePointAt(0)?.toString(16).padStart(4,`0`)??`0000`}`}}function o(e){let t=``,n=!1;for(let o=0;o<e.length;o++){let s=e[o];if(!n){t+=s,s===`"`&&(n=!0);continue}if(s===`"`){t+=s,n=!1;continue}if(s===`\\`){let n=e[o+1];if(n===void 0){t+=`\\\\`;continue}if(n===`u`){let n=e.slice(o+2,o+6);if(/^[0-9a-fA-F]{4}$/.test(n)){t+=`\\u${n}`,o+=5;continue}}if(r.has(n)){t+=`\\${n}`,o+=1;continue}t+=`\\\\`;continue}t+=i(s)?a(s):s}return t}function s(e){try{return JSON.parse(e)}catch(t){let n=o(e);if(n!==e)return JSON.parse(n);throw t}}function c(e){if(!e||e.trim()===``)return{};try{return s(e)}catch{try{return(0,n.parse)(e)??{}}catch{try{return(0,n.parse)(o(e))??{}}catch{return{}}}}}export{c as n,s as t};
|