@abtnode/blocklet-services 1.16.33-beta-20241031-130110-767ce94a → 1.16.33-beta-20241101-112845-28d6ce4b
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/api/libs/auth/utils.js +2 -0
- package/api/routes/user.js +9 -1
- package/api/services/auth/connect/invite.js +65 -62
- package/dist/assets/{Add-w8WVX4Xk.js → Add-bOFtqv1E.js} +1 -1
- package/dist/assets/{Alert-DBECv8Dk.js → Alert-DsAFGE4O.js} +1 -1
- package/dist/assets/{ArrowDropDown-D8HoHnV2.js → ArrowDropDown-CshuI94_.js} +1 -1
- package/dist/assets/{Autocomplete-CopPr5fu.js → Autocomplete-r8azpItz.js} +1 -1
- package/dist/assets/{Avatar-DxxyX-k_.js → Avatar-cHoH5Gcs.js} +1 -1
- package/dist/assets/{ButtonGroup-C6tThDqG.js → ButtonGroup-Ba2QsN1i.js} +1 -1
- package/dist/assets/{CSSTransition-15IKQ8tC.js → CSSTransition-Cw_xP1Vb.js} +1 -1
- package/dist/assets/{CheckCircle-Dnb1dYCF.js → CheckCircle-D6BKIS_s.js} +1 -1
- package/dist/assets/{ChevronLeft-CfHfbxYR.js → ChevronLeft-Cuf9mn8C.js} +1 -1
- package/dist/assets/{ChevronRight-DfXjrDyG.js → ChevronRight-DKM1mfYU.js} +1 -1
- package/dist/assets/{Close-CEHuSxMp.js → Close-BOZcPfPU.js} +1 -1
- package/dist/assets/{CloseOutlined-DsS_G_PJ.js → CloseOutlined-g2NMRZze.js} +1 -1
- package/dist/assets/{Delete-ZSqIrcgk.js → Delete-3sftcVmc.js} +1 -1
- package/dist/assets/{DeleteOutline-Csn3uTIE.js → DeleteOutline-D2b8wb9u.js} +1 -1
- package/dist/assets/{DialogContentText-vfNBMZmk.js → DialogContentText-DKna-pLa.js} +1 -1
- package/dist/assets/{Done-CemlqiD_.js → Done-BAj811nu.js} +1 -1
- package/dist/assets/{Download-BsmoTH3s.js → Download-EZLNqT6R.js} +1 -1
- package/dist/assets/{EditIcon-CT0EaMpT.js → EditIcon-CMiQSmX5.js} +1 -1
- package/dist/assets/{Error-B7k9iYaE.js → Error-Dyl_GK7X.js} +1 -1
- package/dist/assets/{ExpandMore-D9r_eS88.js → ExpandMore-Cri5eWhB.js} +1 -1
- package/dist/assets/{FormControl-BjU2NH3y.js → FormControl-Bzepy6Yn.js} +1 -1
- package/dist/assets/{FormControlLabel-C2gffv1J.js → FormControlLabel-DUqUcjqg.js} +1 -1
- package/dist/assets/{FormGroup-Bd3iPgM5.js → FormGroup-Dfsxsxnm.js} +1 -1
- package/dist/assets/{Google-CQo1jg-a.js → Google-n9BhRIMV.js} +3 -3
- package/dist/assets/{Grid-G51OChUI.js → Grid-d_5vEATf.js} +1 -1
- package/dist/assets/{HelpOutline-Bn776zsn.js → HelpOutline-CN-JBZ3p.js} +1 -1
- package/dist/assets/{Hidden-LUQhZs-w.js → Hidden-B_94bAwy.js} +1 -1
- package/dist/assets/{InfoOutlined-CDz5Mhp6.js → InfoOutlined-B6Dnu1aU.js} +1 -1
- package/dist/assets/{InputAdornment-CRVgwkQ9.js → InputAdornment-C_v1Y6Di.js} +1 -1
- package/dist/assets/{LastPage-B8G6wH6k.js → LastPage-lb4qZ_g6.js} +1 -1
- package/dist/assets/{Launch-mty9jus0.js → Launch-BTyi4wvd.js} +1 -1
- package/dist/assets/{LaunchOutlined-DVo-QKmK.js → LaunchOutlined-CNgk8eWz.js} +1 -1
- package/dist/assets/{Link-BMMtX5fH.js → Link-B263Ikvu.js} +1 -1
- package/dist/assets/{ListItemButton-DdNCGCpQ.js → ListItemButton-DapPFhnE.js} +1 -1
- package/dist/assets/{ListSubheader-BhMsFVX-.js → ListSubheader-Bdp-HRQo.js} +1 -1
- package/dist/assets/{LoadingButton-tO921QzP.js → LoadingButton-DdsFlMi1.js} +1 -1
- package/dist/assets/{LockIcon-DTU4giTY.js → LockIcon-D2gLIi44.js} +1 -1
- package/dist/assets/{Loop-Bj3bQOI5.js → Loop-9mUuOWB-.js} +1 -1
- package/dist/assets/{MarkEmailRead-CZVFeLGG.js → MarkEmailRead-BkXDErhY.js} +1 -1
- package/dist/assets/{Menu-CXWnBcF2.js → Menu-BG_qisJ7.js} +1 -1
- package/dist/assets/{MoreHoriz-BwoEUpk-.js → MoreHoriz-DcPej2CD.js} +1 -1
- package/dist/assets/{MoreVert-BnSgpwk3.js → MoreVert-BwL-ULCe.js} +1 -1
- package/dist/assets/{OpenInNew-I9vejj1P.js → OpenInNew-Ci1H_656.js} +1 -1
- package/dist/assets/Pagination-KX1cGsLx.js +2 -0
- package/dist/assets/{PlayArrow-7GIEwKnh.js → PlayArrow-D2XJZjjn.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-CnAmHSAB.js → QuestionMarkCircle-DzQgFhhx.js} +1 -1
- package/dist/assets/{RadioGroup-BT3WvzXu.js → RadioGroup-CKVkcR5j.js} +1 -1
- package/dist/assets/{Search-DRpl0xea.js → Search-DcB6584F.js} +1 -1
- package/dist/assets/{Select-TRN3ZncP.js → Select-FHyYu0mn.js} +2 -2
- package/dist/assets/{ServerLogo-BrH_z3Pg.js → ServerLogo-COVdbFHe.js} +1 -1
- package/dist/assets/{Skeleton-DSmjDa3c.js → Skeleton-Bbfoem6Q.js} +3 -3
- package/dist/assets/{Slider-GISyEXox.js → Slider-DlL3lEzg.js} +1 -1
- package/dist/assets/{Stack-4MJdxh6I.js → Stack-_YfLIpxv.js} +1 -1
- package/dist/assets/{Stepper-Dvn_4zS7.js → Stepper-C1z1Nu0H.js} +1 -1
- package/dist/assets/{TextField-CQhkYpMM.js → TextField-C6DNb6K3.js} +1 -1
- package/dist/assets/{Toolbar-kIo5eXBU.js → Toolbar-mIzrJcpi.js} +1 -1
- package/dist/assets/{ViewColumn-CsFjsWag.js → ViewColumn-BfOj5Hqi.js} +1 -1
- package/dist/assets/{ViewList-Dw3g1bEO.js → ViewList-CHUygrET.js} +1 -1
- package/dist/assets/{access-control-BK21Lw2V.js → access-control-BzGDM72k.js} +1 -1
- package/dist/assets/{actions-CFxZdzF3.js → actions-BI7yMXK2.js} +1 -1
- package/dist/assets/add-component-core-D9i8J5Hl.js +804 -0
- package/dist/assets/add-resource-BfHXR_Y_.js +1 -0
- package/dist/assets/{addon-DdejitH8.js → addon-BwD2KOqI.js} +1 -1
- package/dist/assets/{analytics-DnqUPS95.js → analytics-CNjMo4PR.js} +1 -1
- package/dist/assets/api-Cg7ahL5P.js +1 -0
- package/dist/assets/{audit-logs-C8otdipr.js → audit-logs-Dkin1KDM.js} +1 -1
- package/dist/assets/{base32-BBZELAoX.js → base32-b0e6z4ei.js} +1 -1
- package/dist/assets/branding-Cl9GX76R.js +37 -0
- package/dist/assets/{bundle-avatar-CbTVaQ_M.js → bundle-avatar-CFbWkja3.js} +1 -1
- package/dist/assets/{button-n_9jfCIf.js → button-BZSmvuzl.js} +1 -1
- package/dist/assets/{click-to-copy-DptGmuUO.js → click-to-copy-CYT808Bk.js} +1 -1
- package/dist/assets/{complete-BNbCNTJu.js → complete-DeQ0rwlU.js} +3 -3
- package/dist/assets/{component-DSUpigYV.js → component-D2BxwkDd.js} +1 -1
- package/dist/assets/{config-9il9cF0d.js → config-Gbmmjnod.js} +1 -1
- package/dist/assets/{config-navigation-DcNUxLGX.js → config-navigation-B7PM-EGI.js} +5 -5
- package/dist/assets/{config-77U-le3X.js → config-rCxorgFD.js} +2 -2
- package/dist/assets/{confirm-C1rEM5YR.js → confirm-D0pWA67W.js} +1 -1
- package/dist/assets/{connect-3dKIAigZ.js → connect-Cdtb7SHw.js} +1 -1
- package/dist/assets/{connect-tHFesj8q.js → connect-Tlrdq51n.js} +1 -1
- package/dist/assets/{connect-to-4aaJxXqE.js → connect-to-BI3qeY9E.js} +1 -1
- package/dist/assets/{content-layout-BM5SJrue.js → content-layout-Dg654vli.js} +1 -1
- package/dist/assets/{dashboard-CzRyzKlc.js → dashboard-DN-9-3gU.js} +3 -3
- package/dist/assets/{deprecate-zsgH7k5s.js → deprecate-YD6Y6FfX.js} +1 -1
- package/dist/assets/{did-address-DwWl4S12.js → did-address-D5PpLM1R.js} +1 -1
- package/dist/assets/domain-2MsVV8_b.js +9 -0
- package/dist/assets/domain-list-D4PDGQMX.js +15 -0
- package/dist/assets/{email-BHuQsqD5.js → email-DqijDSOa.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-CFmFGVO5.js +1 -0
- package/dist/assets/{exchange-passport-BJnSn4h1.js → exchange-passport-PFJEY5oF.js} +1 -1
- package/dist/assets/{fallback-BpkT3yJa.js → fallback-D3XbER7P.js} +1 -1
- package/dist/assets/{form-text-input-Dq-mYb-y.js → form-text-input-Dfn1Wn_5.js} +2 -2
- package/dist/assets/{format-error-Cm24Mb6K.js → format-error-CbWObE-m.js} +1 -1
- package/dist/assets/{fuel-C5E6gyYw.js → fuel-BRC6ySM4.js} +1 -1
- package/dist/assets/{fullpage-Dv48OHgB.js → fullpage-CGQnavVT.js} +1 -1
- package/dist/assets/{home-Be9EmoGZ.js → home-DEHpnOzD.js} +1 -1
- package/dist/assets/{iframe-Bn0BO1ke.js → iframe-CjWb2_M6.js} +1 -1
- package/dist/assets/{index-BE6Ke5gn.js → index-1CEybnrZ.js} +1 -1
- package/dist/assets/{index-S4zyOh_f.js → index-1pd_yDXe.js} +2 -2
- package/dist/assets/{index-Lpzdluz-.js → index-5iry99Ky.js} +3 -3
- package/dist/assets/{index-DvpaD3gO.js → index-B54dXjy1.js} +13 -13
- package/dist/assets/{index-BZiRGnQv.js → index-BDZlmkSE.js} +1 -1
- package/dist/assets/{index-tbzY0Oht.js → index-BELX75G9.js} +1 -1
- package/dist/assets/{index-D3Zi9XXS.js → index-BEt0dM-9.js} +3 -3
- package/dist/assets/{index-K2rlHa7x.js → index-BV12QEMX.js} +1 -1
- package/dist/assets/{index-64TPCNae.js → index-B_B2L5WL.js} +1 -1
- package/dist/assets/{index-DCK3Y1u2.js → index-BbL9bes4.js} +1 -1
- package/dist/assets/{index-DKCt9nfb.js → index-BeoZ-VU7.js} +1 -1
- package/dist/assets/{index-CmJqc_pr.js → index-BkQ4EI2P.js} +42 -42
- package/dist/assets/{index-Bi9C59qj.js → index-Bkm0bPy1.js} +10 -10
- package/dist/assets/{index-CcoKjcPZ.js → index-Bpc59LEO.js} +1 -1
- package/dist/assets/{index-e_suJSDw.js → index-ByIVK1rt.js} +1 -1
- package/dist/assets/index-CHOjWhIO.js +4 -0
- package/dist/assets/{index-CspPySnp.js → index-CbtulDW6.js} +1 -1
- package/dist/assets/index-Cert8PMw.js +1 -0
- package/dist/assets/{index-CE6XlUwJ.js → index-CmjfXrfq.js} +1 -1
- package/dist/assets/{index-CrwNbpvE.js → index-CrRQb6MU.js} +1 -1
- package/dist/assets/{index-BXfEXarc.js → index-Ctfa52p5.js} +194 -220
- package/dist/assets/index-D9qREAp1.js +134 -0
- package/dist/assets/{index-D6JzGLsD.js → index-DBu7jcSD.js} +1 -1
- package/dist/assets/{index-BxmbivV2.js → index-DOE-ad6o.js} +1 -1
- package/dist/assets/{index-DgopjaBb.js → index-DSOswIXL.js} +5 -5
- package/dist/assets/{index-DV0GJZ_u.js → index-DURun-fE.js} +1 -1
- package/dist/assets/{index-BiEAq9_T.js → index-DVziVD2f.js} +1 -1
- package/dist/assets/index-KqotQeYl.js +192 -0
- package/dist/assets/{index-D47v1fSP.js → index-Pws_HXCQ.js} +1 -1
- package/dist/assets/{index-CqcHIeW4.js → index-T8nTnmh1.js} +1 -1
- package/dist/assets/{index-C5OdroAa.js → index-gyya76M7.js} +1 -1
- package/dist/assets/{index-pFa-OI2-.js → index-kR3Uq-Mb.js} +18 -18
- package/dist/assets/{index-sZdRdnSY.js → index-ni93At8S.js} +1 -1
- package/dist/assets/{index-E4hQM_9u.js → index-uGwRXs0w.js} +1 -1
- package/dist/assets/{index-CEl72yMR.js → index-wnWr-8e_.js} +1 -1
- package/dist/assets/{invitation-_z1Xj-DN.js → invitation-PGwdnHE4.js} +1 -1
- package/dist/assets/{invite-BICcMHub.js → invite-B3LCoC_0.js} +1 -1
- package/dist/assets/{isEmail-DVQRhME2.js → isEmail-B5EAjxnP.js} +1 -1
- package/dist/assets/{issue-passport-F092lKT7.js → issue-passport-Bw_MHd9T.js} +1 -1
- package/dist/assets/{item-58VHQKdW.js → item-eNPWM9nS.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-DD0RfxgD.js → jss-plugin-props-sort.esm-D5cAYULH.js} +6 -6
- package/dist/assets/{launch-result-message-DovJkIwn.js → launch-result-message-D3mtj3IR.js} +1 -1
- package/dist/assets/{layout-CX--ufXj.js → layout-CZVKqaZH.js} +1 -1
- package/dist/assets/{list-header-CK7gsYNw.js → list-header-BlJseGfe.js} +1 -1
- package/dist/assets/localization-C4vP52vp.js +1 -0
- package/dist/assets/lodash-CmCPMfEh.js +27 -0
- package/dist/assets/{log-DVdMrPJd.js → log-CJD7Smn5.js} +1 -1
- package/dist/assets/{login-DQc63E-c.js → login-DR3kcJtW.js} +1 -1
- package/dist/assets/{login-oauth-callback-DD7JbhiI.js → login-oauth-callback-0EjAb9S0.js} +1 -1
- package/dist/assets/logo-uploader-CtnbwpWA.js +133 -0
- package/dist/assets/{lost-passport-DKxLM9Ug.js → lost-passport-CynXuP5y.js} +3 -3
- package/dist/assets/lottie-react.esm-BBW-VAw8.js +269 -0
- package/dist/assets/{notifications-Bn5ZHzBu.js → notifications-BTr0jDCz.js} +1 -1
- package/dist/assets/{open-window-5NGDF8DC.js → open-window-BKaZeE7I.js} +1 -1
- package/dist/assets/overview-Cgav-29-.js +12 -0
- package/dist/assets/{page-header-COehVty5.js → page-header-B2iI665X.js} +1 -1
- package/dist/assets/{permission-Cqge6JOf.js → permission-C4_wbUHQ.js} +1 -1
- package/dist/assets/{preferences-DA8lJH35.js → preferences-a3_XT82h.js} +1 -1
- package/dist/assets/publish-resource-BwfmZpal.js +1 -0
- package/dist/assets/{raf-schd.esm-BfaLZ_aP.js → raf-schd.esm-BDHFBmJm.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-1g48s8ci.js → react-beautiful-dnd.esm-rfy7xaJI.js} +1 -1
- package/dist/assets/refType-C9dfEo74.js +1 -0
- package/dist/assets/{resource-dialog-BHy7M0SS.js → resource-dialog-C_YfBcxl.js} +1 -1
- package/dist/assets/sdk--rGP8Wie.js +1 -0
- package/dist/assets/{selector-B78wSPTM.js → selector-BQdiIKcX.js} +1 -1
- package/dist/assets/session-BhA7xYeK.js +1 -0
- package/dist/assets/setup-DdL2aJKn.js +19 -0
- package/dist/assets/{shorten-label-DJCp0Yiv.js → shorten-label-leEX0OpC.js} +1 -1
- package/dist/assets/{simple-select-b5ivFPVt.js → simple-select-DInqAkp_.js} +1 -1
- package/dist/assets/{slicedToArray-BApf6A7a.js → slicedToArray-CMlWE9Kb.js} +2 -2
- package/dist/assets/spaces-DqylVolU.js +1 -0
- package/dist/assets/{start-CnjLydkf.js → start-xeWBZiEu.js} +1 -1
- package/dist/assets/{step-actions-8KY-8Bex.js → step-actions-BnvHdZWg.js} +1 -1
- package/dist/assets/{studio-X7Nwx0dT.js → studio-CfUa1OMb.js} +1 -1
- package/dist/assets/{switch-control-GexWf5e4.js → switch-control-DwJl6NzU.js} +1 -1
- package/dist/assets/{toUpper-DTfkR7-6.js → toUpper-BN2pcj3y.js} +1 -1
- package/dist/assets/{transfer-Bhn-x9WX.js → transfer-DnYlCSpz.js} +1 -1
- package/dist/assets/trim-B9XGsPSj.js +1 -0
- package/dist/assets/{uniqBy-BcDiFdXx.js → uniqBy-DL1zbncl.js} +1 -1
- package/dist/assets/{unsubscribe-D5MNNVO_.js → unsubscribe-Bx_0kT2c.js} +1 -1
- package/dist/assets/{url-join-D63J6Csv.js → url-join-DIhZFaTI.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DeEGMQDm.js → use-blocklet-info-for-connect-did-spaces-Bhk5PbPV.js} +1 -1
- package/dist/assets/{use-mobile-C2Zyl0Iw.js → use-mobile-C8a-WvbB.js} +1 -1
- package/dist/assets/{useAsync-WIvo8QcA.js → useAsync-clvYxRH3.js} +1 -1
- package/dist/assets/{useFormControl-c0TPHUQp.js → useFormControl-cUTo7137.js} +1 -1
- package/dist/assets/{useLocalStorage-BhDOt9DJ.js → useLocalStorage-vovxXSOl.js} +1 -1
- package/dist/assets/{useSetState-DRBw6Ay4.js → useSetState-Bcpwt_WC.js} +1 -1
- package/dist/assets/{useSlot-BtZjkxjI.js → useSlot-Bgf6_F9a.js} +1 -1
- package/dist/assets/{useSlotProps-D77uQwOK.js → useSlotProps-BKfmEJpm.js} +1 -1
- package/dist/assets/useThemeProps-vkOLleXs.js +1 -0
- package/dist/assets/{user-center-DQH4PW1L.js → user-center-B0SlHHaj.js} +1 -1
- package/dist/assets/{user-sessions-BjEKb9RA.js → user-sessions-hVZB4oee.js} +1 -1
- package/dist/assets/{util-BwLN-7fK.js → util-vL8zU5OD.js} +1 -1
- package/dist/assets/{wrap-locale-fQx_G_1w.js → wrap-locale-DfIs9PFE.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +26 -26
- package/dist/assets/Pagination-DlLEi_8o.js +0 -2
- package/dist/assets/add-component-core-Bba0B_4h.js +0 -796
- package/dist/assets/add-resource-DbOd4xW5.js +0 -1
- package/dist/assets/api-Bl2-YSti.js +0 -1
- package/dist/assets/branding-DU46ds73.js +0 -37
- package/dist/assets/domain-BZTMEPUG.js +0 -9
- package/dist/assets/domain-list-DASDR2zI.js +0 -15
- package/dist/assets/emotion-cache.browser.esm-DnONerVw.js +0 -1
- package/dist/assets/index-BoDR4F7z.js +0 -126
- package/dist/assets/index-C8MAHjVt.js +0 -192
- package/dist/assets/index-D41Nns21.js +0 -4
- package/dist/assets/index-DOuJwOay.js +0 -1
- package/dist/assets/index.es-DUZKvvbB.js +0 -3
- package/dist/assets/localization-B6LrUnQq.js +0 -1
- package/dist/assets/logo-uploader-BDLcfxYH.js +0 -133
- package/dist/assets/lottie-AeAuO2MQ.js +0 -9
- package/dist/assets/overview-DTsJPc6k.js +0 -12
- package/dist/assets/publish-resource-kamh1Zx5.js +0 -1
- package/dist/assets/refType-Dpwlu3pw.js +0 -1
- package/dist/assets/sdk-De7qEvqq.js +0 -1
- package/dist/assets/session-C7vFWF9o.js +0 -1
- package/dist/assets/setup-GIymuFZc.js +0 -19
- package/dist/assets/spaces-9zBZHE2B.js +0 -1
- package/dist/assets/trim-BZY-1hvK.js +0 -1
- package/dist/assets/useThemeProps-BoD_v9_f.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b7 as j,co as O}from"./index-
|
|
1
|
+
import{b7 as j,co as O}from"./index-Ctfa52p5.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=j(h),k=J({__proto__:null,default:N},[h]);export{k as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as ee,r as $e,aK as Se,
|
|
1
|
+
import{j as ee,r as $e,aK as Se,dF as pi,c$ as Yb,aJ as Ar,dq as Co,dG as Fl,dH as Jb,dI as Xb,dJ as Qb,dK as Ss,dL as Ot,dM as Rt,dN as Qi,dO as Zi,dP as ti,dQ as Zb,dR as Xv,dS as Qv,dT as ew,dU as Zv,dV as eh,cH as tw,cI as rw,cP as aw,dW as nw,ah as th,dX as ow,dY as iw,dZ as sw,d_ as lw,d$ as uw,aG as _r,e0 as cw,e1 as dw,e2 as fw,e3 as pw,cM as vw,e4 as hw,e5 as gw,e6 as mw,e7 as yw,e8 as bw,cN as ww,cO as Sw,aj as rh,ai as $w,e9 as xw,ea as _w,aC as Ja,eb as Tw,ec as Cw,T as Pw,ed as Ow,ee as Rw,ef as Iw,bf as Ew,eg as Aw,eh as jw,b as Dw,ei as kw,ej as Mw,d4 as Lw,d3 as Fw,ek as Bw,el as Nw,bi as ah,em as Hw,en as Uw,eo as Ww,ep as zw,aT as $s,eq as Gw,er as Kw,a as xs,es as Vw,et as qw,aF as Ln,aE as Fn,aI as Bn,aM as Er,aN as Nn,aH as Dn,cg as Yw,cm as _s,cf as Jw,cT as Xw,d9 as jd,cY as Qw,at as Zw,cQ as eS,co as tt,cw as lt,eu as tS,ev as rS,X as vi,Y as hi,cq as aS,b7 as Rc,cp as nS,ew as oS,ex as nh,ey as iS,ez as sS,eA as lS,eB as uS,P as Qe,bt as jo,bD as cS,aR as dS,b_ as fS,$ as pS,cG as Dd,c1 as vS,cs as hS,n as gS}from"./index-Ctfa52p5.js";import{u as mS}from"./useThemeProps-vkOLleXs.js";import{t as yS}from"./toPropertyKey-PLuKRk1e.js";import{a as bS,r as oh}from"./emotion-cache.browser.esm-CFmFGVO5.js";import{e as wS,r as SS,l as $S}from"./index-BeoZ-VU7.js";import{c as xS,C as _S,a as TS,d as CS}from"./MoreVert-BwL-ULCe.js";import{R as PS,C as OS,V as RS,d as IS,a as ES}from"./ViewColumn-BfOj5Hqi.js";import{F as AS,f as jS,g as DS}from"./FormControl-Bzepy6Yn.js";import{u as kS}from"./useFormControl-cUTo7137.js";import{F as MS,f as LS,g as FS}from"./FormControlLabel-DUqUcjqg.js";import{F as BS,f as NS,g as HS}from"./FormGroup-Dfsxsxnm.js";import{G as US,g as WS,a as zS}from"./Grid-d_5vEATf.js";import{I as ih,g as GS,i as KS,a as VS,b as qS,c as YS,d as JS,e as XS,f as QS,S as sh,h as ZS,s as e$}from"./Select-FHyYu0mn.js";import{a as ac,D as t$,L as kd}from"./Delete-3sftcVmc.js";import{T as nc,g as r$,t as a$}from"./TextField-C6DNb6K3.js";import{K as n$,a as o$}from"./index-BELX75G9.js";import{F as i$,L as s$}from"./LastPage-lb4qZ_g6.js";import{T as lh,g as l$,t as u$}from"./Toolbar-mIzrJcpi.js";import{S as c$,d as Md}from"./Search-DcB6584F.js";import{E as Ld}from"./index-1CEybnrZ.js";const Ic="mode",Ec="color-scheme",uh="data-color-scheme";function d$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:n=Ic,colorSchemeStorageKey:i=Ec,attribute:c=uh,colorSchemeNode:v="document.documentElement",nonce:p}=e||{};return ee.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
2
2
|
try {
|
|
3
3
|
var mode = localStorage.getItem('${n}') || '${t}';
|
|
4
4
|
var colorScheme = '';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{r as h,a0 as g,aY as y,j as t,C as P,n as v,B as c,a1 as d,P as m,Z as w}from"./index-Ctfa52p5.js";import{P as T}from"./page-header-B2iI665X.js";import{u as B}from"./index-BEt0dM-9.js";import{C as E,D,a as N}from"./connect-to-BI3qeY9E.js";import{S as u}from"./step-actions-BnvHdZWg.js";import{S as b}from"./layout-CZVKqaZH.js";import"./lodash-CmCPMfEh.js";import"./spaces-DqylVolU.js";import"./index-ni93At8S.js";import"./api-Cg7ahL5P.js";import"./url-join-DIhZFaTI.js";import"./Skeleton-Bbfoem6Q.js";import"./Hidden-B_94bAwy.js";import"./CloseOutlined-g2NMRZze.js";import"./did-address-D5PpLM1R.js";import"./Link-B263Ikvu.js";import"./DeleteOutline-D2b8wb9u.js";import"./format-error-CbWObE-m.js";import"./use-blocklet-info-for-connect-did-spaces-Bhk5PbPV.js";import"./index-Pws_HXCQ.js";import"./ExpandMore-Cri5eWhB.js";import"./ButtonGroup-Ba2QsN1i.js";import"./DialogContentText-DKna-pLa.js";import"./TextField-C6DNb6K3.js";import"./FormControl-Bzepy6Yn.js";import"./useFormControl-cUTo7137.js";import"./Select-FHyYu0mn.js";import"./Alert-DsAFGE4O.js";import"./useSlot-Bgf6_F9a.js";import"./content-layout-Dg654vli.js";function l({onNext:r,onPrevious:x}){var s,n,p;const{t:e}=h.useContext(g),{blocklet:i}=y(),{spaceGateway:C,settingStorageEndpoint:j,updateSpaceGateway:f,hasStorageEndpoint:S,loading:o,storageEndpoint:a}=B();return o?t.jsx(P,{relative:"parent",children:t.jsx(v,{})}):t.jsxs(G,{children:[t.jsx("div",{className:"header",children:t.jsx(T,{title:e("setup.didSpace.title"),subTitle:e("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{sx:{width:"100%",maxWidth:"720px"},children:S?t.jsx(E,{spaceGateway:C,settingStorageEndpoint:j}):t.jsx(D,{})}),((s=i==null?void 0:i.capabilities)==null?void 0:s.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(N,{onConnect:f,storageEndpoint:a})}),((n=i==null?void 0:i.capabilities)==null?void 0:n.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(d,{loading:o,variant:"contained",disabled:o||!a,onClick:()=>r(),children:e("setup.continue")})}),((p=i==null?void 0:i.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:i,onStartNow:()=>r("complete"),children:t.jsx(d,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>r(),children:e(a?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:m.func,onPrevious:m.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const G=w(b)`
|
|
2
|
+
height: 100%;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
`;export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ii as V,r as L,ij as W,V as R,eQ as z,ik as x,il as N,U as j,by as P}from"./index-Ctfa52p5.js";var Q=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),V(r,a)},S=function(r,a,n){var e=L.useRef(),u=L.useRef(0);Q(a,e.current)||(u.current+=1),e.current=a,W(r,[u.current],n)},U=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:U?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},E={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?B.meta.includes(r.keyCode):r.metaKey}};function G(r){return N(r)||j(r)}function I(r){var a=Object.keys(E).reduce(function(n,e){return E[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function T(r,a,n){var e,u;if(!r.key)return!1;if(j(a))return r.keyCode===a?a:!1;var o=a.split("."),s=0;try{for(var l=x(o),c=l.next();!c.done;c=l.next()){var p=c.value,y=E[p],m=B[p.toLowerCase()];(y&&y(r)||m&&m===r.keyCode)&&s++}}catch(b){e={error:b}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(e)throw e.error}}return n?s===o.length&&I(r)===o.length?a:!1:s===o.length?a:!1}function J(r,a){return P(r)?r:G(r)?function(n){return T(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return T(n,e,a)})}:function(){return!!r}}var X=["keydown"];function Z(r,a,n){var e=n||{},u=e.events,o=u===void 0?X:u,s=e.target,l=e.exactMatch,c=l===void 0?!1:l,p=e.useCapture,y=p===void 0?!1:p,m=R(a),b=R(r);S(function(){var k,C,K,t=z(s,window);if(t){var q=function(i){var v,g=J(b.current,c),f=g(i),d=G(f)?f:i.key;if(f)return(v=m.current)===null||v===void 0?void 0:v.call(m,i,d)};try{for(var w=x(o),h=w.next();!h.done;h=w.next()){var H=h.value;(K=t==null?void 0:t.addEventListener)===null||K===void 0||K.call(t,H,q,y)}}catch(i){k={error:i}}finally{try{h&&!h.done&&(C=w.return)&&C.call(w)}finally{if(k)throw k.error}}return function(){var i,v,g;try{for(var f=x(o),d=f.next();!d.done;d=f.next()){var M=d.value;(g=t==null?void 0:t.removeEventListener)===null||g===void 0||g.call(t,M,q,y)}}catch(O){i={error:O}}finally{try{d&&!d.done&&(v=f.return)&&v.call(f)}finally{if(i)throw i.error}}}}},[o],s)}export{Z as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ie as Ne,c as b,w as Pe,cG as Je,r as g,j as e,T as C,au as ze,a1 as Q,n as L,e$ as Ze,aY as N,aP as P,bX as je,t as k,aa as H,u as U,P as f,f2 as Qe,c4 as ae,fw as He,K as ne,Z as Ke,a0 as Ve,io as Ge,B as D,X as re,Y as ie,aT as Y,fv as Xe,b as Ye,aR as We,G as O,bg as X,a as qe,ip as _e,C as $e,bH as et}from"./index-Ctfa52p5.js";import{l as J}from"./lodash-CmCPMfEh.js";import{S as xe}from"./index-Pws_HXCQ.js";import{a as Ae,e as ye,u as tt,g as st,b as se,S as ot}from"./index-uGwRXs0w.js";import{i as at}from"./index-ni93At8S.js";import{D as nt}from"./DialogContentText-DKna-pLa.js";import{T as rt}from"./TextField-C6DNb6K3.js";import"./api-Cg7ahL5P.js";import{a as Ce,u as it}from"./use-blocklet-info-for-connect-did-spaces-Bhk5PbPV.js";import{b as ct,h as lt,d as _,e as dt,i as pt,j as ut,k as mt,l as ht}from"./spaces-DqylVolU.js";import{f as $}from"./format-error-CbWObE-m.js";import{I as ft}from"./index-DURun-fE.js";import{d as gt}from"./MoreHoriz-DcPej2CD.js";import{d as xt}from"./DeleteOutline-D2b8wb9u.js";import{L as W,a as q}from"./Delete-3sftcVmc.js";import{T as oe}from"./index-DBu7jcSD.js";import{D as St}from"./index-ByIVK1rt.js";import{d as jt}from"./HelpOutline-CN-JBZ3p.js";import{L as At}from"./Link-B263Ikvu.js";import{S as yt}from"./switch-control-DwJl6NzU.js";import{S as Ct}from"./Stack-_YfLIpxv.js";import{G as Se}from"./Grid-d_5vEATf.js";import"./ExpandMore-Cri5eWhB.js";import"./ButtonGroup-Ba2QsN1i.js";import"./CloseOutlined-g2NMRZze.js";import"./FormControl-Bzepy6Yn.js";import"./useFormControl-cUTo7137.js";import"./Select-FHyYu0mn.js";import"./useThemeProps-vkOLleXs.js";import"./toPropertyKey-PLuKRk1e.js";import"./emotion-cache.browser.esm-CFmFGVO5.js";import"./index-BeoZ-VU7.js";import"./redux-CluOqhW1.js";import"./MoreVert-BwL-ULCe.js";import"./FormControlLabel-DUqUcjqg.js";import"./ViewColumn-BfOj5Hqi.js";import"./FormGroup-Dfsxsxnm.js";import"./index-BELX75G9.js";import"./LastPage-lb4qZ_g6.js";import"./Toolbar-mIzrJcpi.js";import"./Search-DcB6584F.js";import"./index-1CEybnrZ.js";import"./index-BV12QEMX.js";async function Bt(t,o={timeout:3e4,withSearchParams:!0}){var d;if(!Ne(t))throw new Error(`url(${t}) must be a string`);const n=t.startsWith("http")?t:`https://${t}`,s=new URL(n),{data:i}=await Ae.get(b(s.origin,"/__blocklet__.js?type=json"),{timeout:o.timeout}),a=(d=i.componentMountPoints.findLast(u=>u.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf"))==null?void 0:d.mountPoint;if(!a)throw new Error(`MountPoint(${a}) not found`);const r=b(s.origin,a);return o.withSearchParams&&s.searchParams.get("spaceDid")?Pe(r,{spaceDid:s.searchParams.get("spaceDid")}):r}async function kt(t){try{if(!at(t))return!1;const o=ye(t),n=b(o,"space/api/did/one-click-authorization/token"),{status:s,data:i}=await Ae.get(n,{timeout:5e3});return s===200&&Je(i)}catch(o){return console.error(o),!1}}function vt({style:t,onWalletConnect:o,onGatewayConnect:n,...s}){const{t:i}=tt(),[a,r]=g.useState(""),[c,d]=g.useState(!1),[u,x]=g.useState(!1),[p,m]=g.useState(""),v=async()=>{try{d(!0);const S=await Bt(a),T=ye(S),l=st(a);if(!Ze.isValid(l)||!await kt(T))throw new Error(i("storage.spaces.gateway.add.invalidUrl"));n==null||n({spaceDid:l,spaceGatewayUrl:T}),x(!1)}catch(S){console.error(S),m(S.message)}finally{d(!1)}},j=()=>{m(""),r(""),x(!0)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{menu:[e.jsx(xe.Item,{sx:{textTransform:"none"},onClick:j,size:"small",...s,children:i("storage.spaces.connect.useSpaceGateway")},"1")],onClick:o,color:"primary",style:{textTransform:"none !important",fontSize:"1rem",...t},size:"small",...s,children:e.jsx(C,{sx:{fontWeight:"bold",textTransform:"none"},children:i("storage.spaces.connect.useWallet")})}),e.jsx(ze,{title:i("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:u,onClose:()=>x(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(Q,{variant:"outlined",onClick:S=>{S.stopPropagation(),x(!1)},color:"inherit",children:i("common.cancel")}),e.jsxs(Q,{onClick:v,color:"primary",disabled:c||!a,variant:"contained",autoFocus:!0,children:[c&&e.jsx(L,{size:16}),i("common.confirm")]})]}),children:e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(nt,{component:"div",children:e.jsx(C,{component:"div",children:e.jsx(rt,{label:i("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:a,onChange:S=>{m(""),r(S.target.value)},disabled:c,error:!!p,helperText:p,onKeyDown:async S=>{S.key==="Enter"&&await v()},autoFocus:!0})})})})})]})}async function It({blockletDid:t,nodeApi:o,spaceGateways:n}){let s=!1;const i=await Promise.all(n.map(async a=>{let{name:r}=a;const c=await ct(a.endpoint);return!J.isEmpty(c)&&c!==r&&(r=c,s=!0),{...a,name:r}}));return s&&await Promise.all(i.filter(a=>a.did).map(a=>o.updateBlockletSpaceGateway({input:{did:t,where:{did:a.did},spaceGateway:{...a}}}))),i}function Et({setLoading:t,refresh:o}={}){var c;const{blocklet:n}=N(),s=(c=n==null?void 0:n.meta)==null?void 0:c.did,[i,a]=g.useState([]),{api:r}=P();return je(async()=>{try{if(!s){a([]);return}t==null||t(!0);const{spaceGateways:d}=await r.getBlockletSpaceGateways({input:{did:s}}),u=await It({blockletDid:s,nodeApi:r,spaceGateways:d});a(u??[])}catch(d){console.error(d),k.error($(d))}finally{t==null||t(!1)}},[s,o]),{spaceGateways:i}}function Be({deps:t,setLoading:o}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=N(),[s,i]=g.useState([]),{api:a}=P(),r=J.debounce(async()=>{try{if(o(!0),!n){i([]);return}const{backups:d}=await a.getBlockletBackups({input:{did:n.meta.did}});i(d??[])}catch(d){console.error(d),k.error($(d))}finally{o(!1)}},2e3);return je(async()=>{r()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(t)),{backups:s}}function Dt({appDid:t}){const{backups:o}=Be(),[n,s]=g.useState({message:"",progress:0,completed:!1}),i=P(),{ws:{useSubscription:a}}=i;return a(H.BlockletEvents.backupProgress,r=>{t===(r==null?void 0:r.appDid)&&s(()=>({...r}))},[t]),g.useEffect(()=>{var r;if(o!=null&&o.length&&J.isNull((r=o[0])==null?void 0:r.status)){const[c]=o;s(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[o]),n}const ke=g.createContext({}),{Provider:Tt,Consumer:Rs}=ke;function ce({children:t}){var V;const{t:o}=U(),{api:n}=P(),{blocklet:s}=N(),[i,a]=g.useState(!1),[r,c]=g.useState(!1),{spaceGateways:d}=Et({refresh:r,setLoading:a}),u=Dt({appDid:s==null?void 0:s.appDid}),[x,p]=g.useState(!1),m=g.useMemo(()=>lt(s==null?void 0:s.environments),[s,r,x]),[v,j]=g.useState(!1),{backups:S}=Be({deps:[u],setLoading:j}),[T,l]=g.useState(d==null?void 0:d.find(h=>h.endpoint===m)),B=(V=s==null?void 0:s.settings)==null?void 0:V.autoBackup,A=()=>{c(h=>!h)},R=()=>{p(h=>!h)},w=async h=>{await n.updateAutoBackup({input:{did:s.meta.did,autoBackup:h}})},E=async(h,Z)=>{d.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:s.meta.did,spaceGateway:h}}),m!==Z&&await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Z}]}}),A(),l(h)},I=async h=>{h&&(h.endpoint===m&&(await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),B!=null&&B.enabled&&await w({enabled:!1})),await n.deleteBlockletSpaceGateway({input:{did:s.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),A(),l(h))},F=async h=>{await n.updateBlockletSpaceGateway({input:{did:s.meta.did,where:{did:h.did},spaceGateway:h}}),m!==h.endpoint&&await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),k.success(o("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),A()},ee=h=>(h==null?void 0:h.endpoint)===m;return e.jsx(Tt,{value:{spaceGateways:d,selectedSpaceGateway:T,addSpaceGateway:E,deleteSpaceGateway:I,updateSpaceGateway:F,refreshSpaceGateways:A,spaceGatewaysLoading:i,spaceGatewayIsSelected:ee,updateAutoBackup:w,backupEndpoint:m,backupProgress:u,backups:S,backupsLoading:v,refreshBackupEndpoint:R,autoBackup:B},children:t})}ce.propTypes={children:f.any.isRequired};ce.defaultProps={};function z(){return g.useContext(ke)}function K({...t}){const{blocklet:o}=N(),{info:n}=P(),{t:s,locale:i}=U(),a=Ce({blocklet:o}),r=Qe(n),{spaceGateways:c,addSpaceGateway:d}=z(),[u,x]=g.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:ae.create({baseURL:b(window.location.origin,He())}).get,messages:{title:s("storage.spaces.provideNFT.title",{appName:a.appName},i),scan:s("storage.spaces.provideNFT.scan",{appName:a.appName},i),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:s("storage.spaces.provideNFT.success")})},onClose:()=>{x(l=>({...l,open:!1}))}}),[p,m]=g.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:s("storage.spaces.authorize.title",{appName:a.appName},i),scan:s("storage.spaces.authorize.scan",{appName:a.appName},i),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:s("storage.spaces.authorize.success")})},onClose:()=>{m(l=>({...l,open:!1}))}}),v=()=>{x(l=>({...l,open:!0,extraParams:{appPid:o.appPid,appName:a.appName,appDescription:a.appDescription,scopes:a.scopes,appUrl:a.appUrl,referrer:a.referrer,nodeDid:n.did}}))},j=({spaceDid:l,spaceGatewayUrl:B})=>{m(A=>({...A,open:!0,prefix:b(B,"space/api/did"),baseUrl:new URL(B).origin,checkFn:ae.create({baseURL:b(B,"space")}).get,extraParams:{appDid:a.appDid,appName:a.appName,appDescription:a.appDescription,scopes:a.scopes,appUrl:a.appUrl,referrer:a.referrer,nodeDid:n.did,spaceDid:l}}))},S=async({endpoint:l,name:B,did:A})=>{const R=await dt(l);if(!await pt(R)){k.error(s("storage.spaces.gateway.add.invalidUrl"));return}if(c.some(I=>I.endpoint===l)){k.error(s("storage.spaces.gateway.add.duplicate",{name:B}));return}const E={name:B,did:A,url:R,endpoint:l};await d(E,l),k.success(s("storage.spaces.connectedWithName",{name:(E==null?void 0:E.name)??"DID Spaces"}))},T=async(l,B)=>{try{if(!J.isEmpty(l.spaceGateway))await S(B(l.spaceGateway));else{const A=B(l.endpoint),R=l.space?B(l.space):{};await S({endpoint:A,did:_(A),name:"DID Space",...R})}m(A=>({...A,open:!1})),x(A=>({...A,open:!1}))}catch(A){console.error(A),k.error($(A))}};return e.jsxs(e.Fragment,{children:[e.jsx(vt,{onWalletConnect:v,onGatewayConnect:j,...t}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:u.prefix,open:u.open,popup:!0,action:u.action,webWalletUrl:r,baseUrl:u.baseUrl,checkFn:u.checkFn,onSuccess:T,onClose:u.onClose,checkTimeout:u.checkTimeout,extraParams:u.extraParams,messages:u.messages,locale:i}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:p.prefix,open:p.open,popup:!0,action:p.action,baseUrl:p.baseUrl,checkFn:p.checkFn,onSuccess:T,onClose:p.onClose,checkTimeout:p.checkTimeout,extraParams:p.extraParams,messages:p.messages,locale:i})]})}K.propTypes={};K.defaultProps={};function ve({...t}){const{t:o}=g.useContext(Ve),{blocklet:n,loadingDiskInfo:s,actions:i}=N();if(g.useEffect(()=>{i.refreshBlocklet({showError:!1,attachDiskInfo:!0})},[]),n.diskInfo){const a=(d,u,x)=>e.jsxs(C,{children:[d," ",e.jsx("strong",{children:u?Ge(u):"empty"})]}),r=n.environments.reduce((d,u)=>(d[u.key]=u.value,d),{}),c=[{key:"appDir",name:o("blocklet.diskInfo.appDir"),value:a(r.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:o("blocklet.diskInfo.dataDir"),value:a(r.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:o("blocklet.diskInfo.logDir"),value:a(r.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:o("blocklet.diskInfo.cacheDir"),value:a(r.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return e.jsx(Ut,{component:"div",...t,children:c.map(d=>e.jsx(ft,{valueComponent:"div",nameWidth:120,name:d.name,children:d.value},d.key))})}return s?e.jsx(L,{}):e.jsx(C,{children:o("blocklet.diskInfo.empty")})}const Ut=Ke(C)``;var Ie=function(o){return e.jsxs("svg",{...o,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,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"})]})]})};Ie.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ee(){const{t}=U();return e.jsxs(D,{children:[e.jsxs(D,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(Ie,{style:{width:250,height:250}}),e.jsx(C,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(K,{})]}),e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ve,{})]})}Ee.propTypes={};var le={},Rt=ie;Object.defineProperty(le,"__esModule",{value:!0});var De=le.default=void 0,wt=Rt(re()),bt=e;De=le.default=(0,wt.default)((0,bt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var de={},Ot=ie;Object.defineProperty(de,"__esModule",{value:!0});var Te=de.default=void 0,Lt=Ot(re()),Ft=e;Te=de.default=(0,Lt.default)((0,Ft.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var pe={},Mt=ie;Object.defineProperty(pe,"__esModule",{value:!0});var Ue=pe.default=void 0,Nt=Mt(re()),Pt=e;Ue=pe.default=(0,Nt.default)((0,Pt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function ue({spaceGateway:t,onConfirm:o,onCancel:n}){const{t:s}=U(),[i,a]=g.useState(!1),[r,c]=g.useState(!1),d=(p,m)=>{p==null||p.preventDefault(),p==null||p.stopPropagation(),a(m)},u=async p=>{try{p==null||p.stopPropagation(),c(!0),await(o==null?void 0:o(t)),a(!1)}catch(m){console.error(m),k.error(`${s("storage.space.gateway.delete.failed")}: ${$(m)}`)}finally{a(!1),c(!1)}},x=p=>{d(p,!1),n==null||n(p)};return e.jsxs(e.Fragment,{children:[e.jsxs(Y,{color:"red",onClick:p=>d(p,!0),children:[e.jsx(W,{style:{minWidth:24,color:"red"},children:e.jsx(xt,{fontSize:"small"})}),e.jsx(q,{style:{color:"red"},children:s("common.delete")})]}),e.jsx(Xe,{title:s("storage.spaces.gateway.delete.title"),open:i,confirmButton:{text:s("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:r}},cancelButton:{text:s("common.cancel"),props:{size:"small",variant:"outlined",loading:r}},onConfirm:u,onCancel:x,children:e.jsx(C,{sx:{wordBreak:"break-all"},children:s("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})})})]})}ue.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired,onConfirm:f.func,onCancel:f.func};ue.defaultProps={onConfirm:()=>{},onCancel:()=>{}};function me({spaceGateway:t,selected:o,onDelete:n,onConnect:s,enableSwitchToSpace:i,backupInProgress:a,...r}){const[c,d]=g.useState(null),{t:u}=U(),[x,p]=g.useState(!1),m=(j,S)=>{j.stopPropagation(),j.preventDefault(),d(S&&j.currentTarget)},v=async j=>{try{p(!0),m(j,!1),await s(t)}catch(S){console.error(S),k.error(S.message)}finally{p(!1)}};return e.jsxs(e.Fragment,{children:[x||t!=null&&t.loading?e.jsx(L,{size:"24px"}):e.jsx(Ye,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",variant:"outlined",size:"small",onClick:j=>m(j,!0),...r,children:e.jsx(gt,{})}),e.jsxs(We,{id:"simple-menu",anchorEl:c,keepMounted:!0,open:!!c,onClose:j=>m(j,!1),children:[e.jsxs(Y,{onClick:j=>{m(j,!1),window.open(t.endpoint?ut(t.endpoint):t.url)},children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(De,{fontSize:"small"})}),e.jsx(q,{children:u("common.open")})]}),e.jsxs(Y,{onClick:j=>{m(j,!1),window.open(mt(t.endpoint))},children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(Ue,{fontSize:"small"})}),e.jsx(q,{children:u("storage.spaces.strategy.viewBackupFiles")})]}),!o&&i&&e.jsxs(Y,{onClick:v,children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(Te,{fontSize:"small"})}),e.jsx(q,{children:u("storage.spaces.connect.switchToSpace")})]}),!a&&e.jsx(ue,{spaceGateway:t,onConfirm:async()=>{d(null),await(n==null?void 0:n(t))},onCancel:()=>d(null)})]})]})}me.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,selected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};me.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};function he({spaceGateway:t,spaceStatus:o,selected:n,onConnected:s,onDeleted:i,onBackedUp:a}){const{t:r,locale:c}=U(),{blocklet:d}=N(),{api:u,info:{did:x}}=P(),{appDid:p,appName:m,appDescription:v,scopes:j,appUrl:S,referrer:T}=Ce({blocklet:d}),{backupProgress:l,updateSpaceGateway:B,deleteSpaceGateway:A,refreshBackupEndpoint:R}=z(),[w,E]=g.useState(!1),[I,F]=g.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:r("storage.spaces.authorize.title",{appName:m},c),scan:r("storage.spaces.authorize.scan",{appName:m},c),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:r("storage.spaces.authorize.success")})},onClose:()=>{F(y=>({...y,open:!1}))}}),ee=n&&!w&&o===se.DISCONNECTED,V=n&&!w&&!t.loading&&o===se.CONNECTED,h=n&&w&&o===se.CONNECTED,Z=async()=>{try{if(await ht(t==null?void 0:t.endpoint)){await u.configBlocklet({input:{did:[d.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),R(),k.success(r("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""})),s==null||s(null,t);return}}catch(y){console.error(y),s==null||s(y,t);return}F(y=>({...y,open:!0,prefix:b(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ae.create({baseURL:b(t.url,"space")}).get,extraParams:{appDid:p,appName:m,appDescription:v,scopes:j,appUrl:S,referrer:T,nodeDid:x,spaceDid:t.did}}))},be=async(y,fe)=>{const te=fe(y.endpoint),Fe=_(te),M=y.space?fe(y.space):{};if(t.did&&Fe!==t.did){F(Me=>({...Me,open:!1}));const G=r("storage.spaces.gateway.switch.failedForMismatchSpace",{name:M!=null&&M.name?M.name:""});k.error(G),s==null||s(new Error(G),t);return}const ge={...t,name:M.name??"DID Space",did:M.did??_(te),endpoint:te};await B(ge),F(G=>({...G,open:!1})),s==null||s(null,ge)},Oe=async()=>{try{if(w)return;E(!0),await u.backupBlocklet({input:{appDid:d.appDid,to:"spaces"}})}catch(y){console.error(y),k.error(y.message),a==null||a(y,t)}finally{E(!0)}},Le=async()=>{try{await A(t),k.success(r("storage.spaces.gateway.delete.succeeded",{name:`(${t.name})`})),i==null||i(null,t)}catch(y){console.error(y),i==null||i(y,t)}};return g.useEffect(()=>{l!=null&&l.completed?(n&&((l==null?void 0:l.progress)===100?(k.success(r("storage.spaces.backupSuccessfully")),a==null||a(null,t)):l.message&&(a==null||a(new Error(l==null?void 0:l.message),t)),l.progress=0,l.message=""),E(!1)):l.progress&&E(!0)},[l]),e.jsxs(e.Fragment,{children:[e.jsxs(D,{sx:{".action-btn":{borderRadius:1,marginLeft:1}},display:"flex",alignItems:"center",children:[V&&e.jsx(Q,{className:"action-btn",variant:"outlined",size:"small",onClick:Oe,children:r("storage.spaces.strategy.backupNow")}),ee&&e.jsx(Q,{className:"action-btn",color:"error",variant:"outlined",size:"small",onClick:Z,children:r("storage.spaces.disconnected.reconnectNow")}),h&&e.jsxs(Q,{className:"action-btn",variant:"outlined",size:"small",sx:{minWidth:70},children:[e.jsx(L,{variant:"determinate",value:l==null?void 0:l.progress,size:14,sx:{mr:1}}),l==null?void 0:l.progress,"%"]}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:be,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:c},"get-endpoint")]}),e.jsx(me,{sx:{minWidth:32,padding:"2px 4px",ml:1},spaceGateway:t,selected:n,onDelete:Le,onConnect:Z,enableSwitchToSpace:(l==null?void 0:l.completed)||J.isEmpty(l==null?void 0:l.message),backupInProgress:h})]})}he.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,spaceStatus:f.string.isRequired,selected:f.bool.isRequired,onConnected:f.func,onDeleted:f.func,onBackedUp:f.func};he.defaultProps={onConnected:()=>{},onDeleted:()=>{},onBackedUp:()=>{}};function Re({...t}){const{t:o,locale:n}=U(),{spaceGateways:s,backups:i}=z(),a=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:r=>{var j;const{targetUrl:c,targetName:d,status:u,createdAt:x}=i[r],p=u===O.BACKUPS.STATUS.PROGRESS&&X().diff(x,"hours")>=O.BACKUPS.TIMEOUT_HOURS,m=u===O.BACKUPS.STATUS.SUCCEEDED&&!p,v=d||((j=s.find(S=>c==null?void 0:c.includes(_(S==null?void 0:S.endpoint))))==null?void 0:j.name)||"Unknown DID Space";return m?e.jsx(At,{fontSize:"16px",href:c,target:"_blank",children:v}):e.jsx(C,{variant:"body1",fontSize:"16px",children:v})}}},{label:o("common.strategy"),name:"strategy",options:{customBodyRender:r=>{const c=o(r===0?"common.auto":"common.manual");return e.jsx(oe,{children:c})}}},{label:o("common.startTime"),name:"createdAt",options:{customBodyRender:r=>X(r).format("YYYY-MM-DD HH:mm:ss")}},{label:o("common.endTime"),name:"updatedAt",options:{customBodyRender:r=>J.isEmpty(r)?"":X(r).format("YYYY-MM-DD HH:mm:ss")}},{label:o("common.status"),name:"status",options:{customBodyRenderLite:r=>{const{status:c,message:d,createdAt:u}=(i==null?void 0:i[r])??{},x=c===O.BACKUPS.STATUS.PROGRESS&&X().diff(u,"hours")>=O.BACKUPS.TIMEOUT_HOURS,p=x&&o("common.timeoutError"),m=c===O.BACKUPS.STATUS.PROGRESS&&!x,v=c===O.BACKUPS.STATUS.SUCCEEDED&&!x;return m?e.jsxs(C,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),o("common.progress")]}):v?e.jsx(oe,{type:"success",children:o("common.succeeded")}):e.jsxs(D,{display:"inline-flex",alignItems:"center",children:[e.jsx(oe,{type:"error",children:o("common.failed")})," ",e.jsx(qe,{style:{display:"flex",alignItems:"center",flexShrink:0},title:d||p,children:e.jsx(_e,{children:e.jsx(jt,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return e.jsx(D,{...t,children:i!=null&&i.length?e.jsx(St,{title:e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",children:o("storage.spaces.backup.records")}),data:i,columns:a,emptyNode:o("storage.spaces.record.emptyData",n),options:{download:!1,filter:!1,print:!1}}):e.jsxs(e.Fragment,{children:[e.jsx(D,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",children:o("storage.spaces.backup.records")})}),e.jsx(D,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:o("storage.spaces.record.emptyData")})]})})}Re.propTypes={};function we({...t}){const{t:o}=U(),{autoBackup:n,updateAutoBackup:s}=z(),i=async()=>{try{const a=!(n!=null&&n.enabled);await s({enabled:a}),k.success(o(a?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(a){k.error(a.message)}};return e.jsx(yt,{checked:!!(n!=null&&n.enabled),onChange:i,name:"enableWelcomePage",labelProps:{label:e.jsx(C,{marginRight:"8px",children:e.jsx("span",{children:o("storage.spaces.autoBackup.title")})})},style:{...t.style}})}we.propTypes={};function Jt(){const{t}=U(),o=it(),{spaceGateways:n,spaceGatewaysLoading:s,spaceGatewayIsSelected:i}=z(),a=s&&!(n!=null&&n.length),r=({spaceGateway:c,spaceStatus:d,selected:u,refresh:x})=>e.jsx(he,{spaceGateway:c,spaceStatus:d,selected:u,onConnected:()=>x(),onBackedUp:p=>p&&x()});return e.jsxs(D,{display:"flex",flexDirection:"column",children:[e.jsxs(Ct,{spacing:o?1:4,direction:o?"column":"row",alignItems:o?"space-between":"center",justifyContent:o?"center":"space-between",marginBottom:"12px",children:[e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:t("storage.spaces.connected.title")}),e.jsx(we,{}),o?e.jsx(K,{sx:{width:"100%","& button:first-of-type":{width:"100%"}}}):e.jsx(K,{})]}),e.jsx(D,{children:a?e.jsx(D,{display:"flex",justifyContent:"center",children:e.jsx(L,{})}):e.jsx(Se,{container:!0,spacing:1,children:e.jsx(e.Fragment,{children:n.map(c=>e.jsx(Se,{item:!0,xs:12,md:6,children:e.jsx(ot,{sx:{marginTop:"12px","&.selected":{borderColor:"primary.main"}},endpoint:c.endpoint,selected:i(c),action:r},c.endpoint)}))})})}),e.jsx(Re,{sx:{marginTop:"24px"}}),e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ve,{})]})}function zt(){const{spaceGatewaysLoading:t,spaceGateways:o}=z();return t?e.jsx($e,{relative:"parent",children:e.jsx(L,{})}):et(o)?e.jsx(Ee,{}):e.jsx(Jt,{})}function ws(){return e.jsx(ce,{children:e.jsx(zt,{})})}export{ws as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,a0 as e,j as t,R as n,Z as o}from"./index-
|
|
1
|
+
import{r as a,a0 as e,j as t,R as n,Z as o}from"./index-Ctfa52p5.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b7 as Wi,P as C,bt as Ae,j as E,r as Ee,co as nn,cp as Ji,cq as Qi,B as Dn,c4 as Di,cr as er,cs as tr,ct as ei,bD as nr,cu as ir,aM as rr}from"./index-BXfEXarc.js";import{r as ar,a as sr}from"./emotion-cache.browser.esm-DnONerVw.js";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const or=4,rn=0,an=1,lr=2;function Se(e){let n=e.length;for(;--n>=0;)e[n]=0}const fr=0,ti=1,cr=2,dr=3,ur=258,Ut=29,qe=256,je=qe+1+Ut,Ne=30,jt=19,ni=2*je+1,ce=15,ht=16,hr=7,Bt=256,ii=16,ri=17,ai=18,St=new Uint8Array([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]),rt=new Uint8Array([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]),_r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),si=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pr=512,Q=new Array((je+2)*2);Se(Q);const Ze=new Array(Ne*2);Se(Ze);const Be=new Array(pr);Se(Be);const He=new Array(ur-dr+1);Se(He);const Ht=new Array(Ut);Se(Ht);const at=new Array(Ne);Se(at);function _t(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let oi,li,fi;function pt(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const ci=e=>e<256?Be[e]:Be[256+(e>>>7)],Ve=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},U=(e,n,t)=>{e.bi_valid>ht-t?(e.bi_buf|=n<<e.bi_valid&65535,Ve(e,e.bi_buf),e.bi_buf=n>>ht-e.bi_valid,e.bi_valid+=t-ht):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},Y=(e,n,t)=>{U(e,t[n*2],t[n*2+1])},di=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},gr=e=>{e.bi_valid===16?(Ve(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)},br=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,f=n.stat_desc.max_length;let o,c,_,u,d,b,v=0;for(u=0;u<=ce;u++)e.bl_count[u]=0;for(t[e.heap[e.heap_max]*2+1]=0,o=e.heap_max+1;o<ni;o++)c=e.heap[o],u=t[t[c*2+1]*2+1]+1,u>f&&(u=f,v++),t[c*2+1]=u,!(c>i)&&(e.bl_count[u]++,d=0,c>=s&&(d=l[c-s]),b=t[c*2],e.opt_len+=b*(u+d),a&&(e.static_len+=b*(r[c*2+1]+d)));if(v!==0){do{for(u=f-1;e.bl_count[u]===0;)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[f]--,v-=2}while(v>0);for(u=f;u!==0;u--)for(c=e.bl_count[u];c!==0;)_=e.heap[--o],!(_>i)&&(t[_*2+1]!==u&&(e.opt_len+=(u-t[_*2+1])*t[_*2],t[_*2+1]=u),c--)}},ui=(e,n,t)=>{const i=new Array(ce+1);let r=0,a,l;for(a=1;a<=ce;a++)r=r+t[a-1]<<1,i[a]=r;for(l=0;l<=n;l++){let s=e[l*2+1];s!==0&&(e[l*2]=di(i[s]++,s))}},wr=()=>{let e,n,t,i,r;const a=new Array(ce+1);for(t=0,i=0;i<Ut-1;i++)for(Ht[i]=t,e=0;e<1<<St[i];e++)He[t++]=i;for(He[t-1]=i,r=0,i=0;i<16;i++)for(at[i]=r,e=0;e<1<<rt[i];e++)Be[r++]=i;for(r>>=7;i<Ne;i++)for(at[i]=r<<7,e=0;e<1<<rt[i]-7;e++)Be[256+r++]=i;for(n=0;n<=ce;n++)a[n]=0;for(e=0;e<=143;)Q[e*2+1]=8,e++,a[8]++;for(;e<=255;)Q[e*2+1]=9,e++,a[9]++;for(;e<=279;)Q[e*2+1]=7,e++,a[7]++;for(;e<=287;)Q[e*2+1]=8,e++,a[8]++;for(ui(Q,je+1,a),e=0;e<Ne;e++)Ze[e*2+1]=5,Ze[e*2]=di(e,5);oi=new _t(Q,St,qe+1,je,ce),li=new _t(Ze,rt,0,Ne,ce),fi=new _t(new Array(0),_r,0,jt,hr)},hi=e=>{let n;for(n=0;n<je;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ne;n++)e.dyn_dtree[n*2]=0;for(n=0;n<jt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Bt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},_i=e=>{e.bi_valid>8?Ve(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},sn=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},gt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&sn(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!sn(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},on=(e,n,t)=>{let i,r,a=0,l,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?Y(e,r,n):(l=He[r],Y(e,l+qe+1,n),s=St[l],s!==0&&(r-=Ht[l],U(e,r,s)),i--,l=ci(i),Y(e,l,t),s=rt[l],s!==0&&(i-=at[l],U(e,i,s)));while(a<e.sym_next);Y(e,Bt,n)},Ot=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let l,s,f=-1,o;for(e.heap_len=0,e.heap_max=ni,l=0;l<a;l++)t[l*2]!==0?(e.heap[++e.heap_len]=f=l,e.depth[l]=0):t[l*2+1]=0;for(;e.heap_len<2;)o=e.heap[++e.heap_len]=f<2?++f:0,t[o*2]=1,e.depth[o]=0,e.opt_len--,r&&(e.static_len-=i[o*2+1]);for(n.max_code=f,l=e.heap_len>>1;l>=1;l--)gt(e,t,l);o=a;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],gt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=s,t[o*2]=t[l*2]+t[s*2],e.depth[o]=(e.depth[l]>=e.depth[s]?e.depth[l]:e.depth[s])+1,t[l*2+1]=t[s*2+1]=o,e.heap[1]=o++,gt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],br(e,n),ui(t,f,e.bl_count)},ln=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)&&(s<o?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[ii*2]++):s<=10?e.bl_tree[ri*2]++:e.bl_tree[ai*2]++,s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4))},fn=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),i=0;i<=t;i++)if(a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)){if(s<o)do Y(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(Y(e,a,e.bl_tree),s--),Y(e,ii,e.bl_tree),U(e,s-3,2)):s<=10?(Y(e,ri,e.bl_tree),U(e,s-3,3)):(Y(e,ai,e.bl_tree),U(e,s-11,7));s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4)}},xr=e=>{let n;for(ln(e,e.dyn_ltree,e.l_desc.max_code),ln(e,e.dyn_dtree,e.d_desc.max_code),Ot(e,e.bl_desc),n=jt-1;n>=3&&e.bl_tree[si[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},vr=(e,n,t,i)=>{let r;for(U(e,n-257,5),U(e,t-1,5),U(e,i-4,4),r=0;r<i;r++)U(e,e.bl_tree[si[r]*2+1],3);fn(e,e.dyn_ltree,n-1),fn(e,e.dyn_dtree,t-1)},yr=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return rn;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return an;for(t=32;t<qe;t++)if(e.dyn_ltree[t*2]!==0)return an;return rn};let cn=!1;const mr=e=>{cn||(wr(),cn=!0),e.l_desc=new pt(e.dyn_ltree,oi),e.d_desc=new pt(e.dyn_dtree,li),e.bl_desc=new pt(e.bl_tree,fi),e.bi_buf=0,e.bi_valid=0,hi(e)},pi=(e,n,t,i)=>{U(e,(fr<<1)+(i?1:0),3),_i(e),Ve(e,t),Ve(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Er=e=>{U(e,ti<<1,3),Y(e,Bt,Q),gr(e)},Nr=(e,n,t,i)=>{let r,a,l=0;e.level>0?(e.strm.data_type===lr&&(e.strm.data_type=yr(e)),Ot(e,e.l_desc),Ot(e,e.d_desc),l=xr(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?pi(e,n,t,i):e.strategy===or||a===r?(U(e,(ti<<1)+(i?1:0),3),on(e,Q,Ze)):(U(e,(cr<<1)+(i?1:0),3),vr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),on(e,e.dyn_ltree,e.dyn_dtree)),hi(e),i&&_i(e)},kr=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(He[t]+qe+1)*2]++,e.dyn_dtree[ci(n)*2]++),e.sym_next===e.sym_end);var Tr=mr,Ar=pi,Sr=Nr,Or=kr,Ir=Er,zr={_tr_init:Tr,_tr_stored_block:Ar,_tr_flush_block:Sr,_tr_tally:Or,_tr_align:Ir};const Rr=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do r=r+n[i++]|0,a=a+r|0;while(--l);r%=65521,a%=65521}return r|a<<16|0};var Xe=Rr;const Cr=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},Pr=new Uint32Array(Cr()),$r=(e,n,t,i)=>{const r=Pr,a=i+t;e^=-1;for(let l=i;l<a;l++)e=e>>>8^r[(e^n[l])&255];return e^-1};var $=$r,_e={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"},be={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_MEM_ERROR:-4,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};const{_tr_init:Lr,_tr_stored_block:It,_tr_flush_block:Fr,_tr_tally:re,_tr_align:Zr}=zr,{Z_NO_FLUSH:ae,Z_PARTIAL_FLUSH:Mr,Z_FULL_FLUSH:Ur,Z_FINISH:V,Z_BLOCK:dn,Z_OK:L,Z_STREAM_END:un,Z_STREAM_ERROR:q,Z_DATA_ERROR:jr,Z_BUF_ERROR:bt,Z_DEFAULT_COMPRESSION:Br,Z_FILTERED:Hr,Z_HUFFMAN_ONLY:De,Z_RLE:Vr,Z_FIXED:Xr,Z_DEFAULT_STRATEGY:Kr,Z_UNKNOWN:Gr,Z_DEFLATED:lt}=be,Yr=9,qr=15,Wr=8,Jr=29,Qr=256,zt=Qr+1+Jr,Dr=30,ea=19,ta=2*zt+1,na=15,S=3,ie=258,W=ie+S+1,ia=32,ke=42,Vt=57,Rt=69,Ct=73,Pt=91,$t=103,de=113,Le=666,Z=1,Oe=2,pe=3,Ie=4,ra=3,ue=(e,n)=>(e.msg=_e[n],n),hn=e=>e*2-(e>4?9:0),ne=e=>{let n=e.length;for(;--n>=0;)e[n]=0},aa=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let sa=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,se=sa;const B=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},H=(e,n)=>{Fr(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,B(e.strm)},I=(e,n)=>{e.pending_buf[e.pending++]=n},Re=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Lt=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Xe(e.adler,n,r,t):e.state.wrap===2&&(e.adler=$(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},gi=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,l=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-W?e.strstart-(e.w_size-W):0,o=e.window,c=e.w_mask,_=e.prev,u=e.strstart+ie;let d=o[i+l-1],b=o[i+l];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(o[r+l]!==b||o[r+l-1]!==d||o[r]!==o[i]||o[++r]!==o[i+1])){i+=2,r++;do;while(o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&i<u);if(a=ie-(u-i),i=u-ie,a>l){if(e.match_start=n,l=a,a>=s)break;d=o[i+l-1],b=o[i+l]}}while((n=_[n&c])>f&&--t!==0);return l<=e.lookahead?l:e.lookahead},Te=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-W)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),aa(e),i+=n),e.strm.avail_in===0)break;if(t=Lt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=S)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=se(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=se(e,e.ins_h,e.window[r+S-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<W&&e.strm.avail_in!==0)},bi=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,l=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==V||n===ae||i!==r+e.strm.avail_in)))break;l=n===V&&i===r+e.strm.avail_in?1:0,It(e,0,0,l),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,B(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&(Lt(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(l===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),l?Ie:n!==ae&&n!==V&&e.strm.avail_in===0&&e.strstart===e.block_start?Oe:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Lt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===V)&&n!==ae&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,l=n===V&&e.strm.avail_in===0&&i===r?1:0,It(e,e.block_start,i,l),e.block_start+=i,B(e.strm)),l?pe:Z)},wt=(e,n)=>{let t,i;for(;;){if(e.lookahead<W){if(Te(e),e.lookahead<W&&n===ae)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-W&&(e.match_length=gi(e,t)),e.match_length>=S)if(i=re(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do e.strstart++,e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=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=se(e,e.ins_h,e.window[e.strstart+1]);else i=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=e.strstart<S-1?e.strstart:S-1,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},ye=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<W){if(Te(e),e.lookahead<W&&n===ae)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=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=S-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-W&&(e.match_length=gi(e,t),e.match_length<=5&&(e.strategy===Hr||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=re(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=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=S-1,e.strstart++,i&&(H(e,!1),e.strm.avail_out===0))return Z}else if(e.match_available){if(i=re(e,0,e.window[e.strstart-1]),i&&H(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Z}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=re(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},oa=(e,n)=>{let t,i,r,a;const l=e.window;for(;;){if(e.lookahead<=ie){if(Te(e),e.lookahead<=ie&&n===ae)return Z;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){a=e.strstart+ie;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<a);e.match_length=ie-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(t=re(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},la=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Te(e),e.lookahead===0)){if(n===ae)return Z;break}if(e.match_length=0,t=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe};function G(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const Fe=[new G(0,0,0,0,bi),new G(4,4,8,4,wt),new G(4,5,16,8,wt),new G(4,6,32,32,wt),new G(4,4,16,16,ye),new G(8,16,32,32,ye),new G(8,16,128,128,ye),new G(8,32,128,256,ye),new G(32,128,258,1024,ye),new G(32,258,258,4096,ye)],fa=e=>{e.window_size=2*e.w_size,ne(e.head),e.max_lazy_match=Fe[e.level].max_lazy,e.good_match=Fe[e.level].good_length,e.nice_match=Fe[e.level].nice_length,e.max_chain_length=Fe[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0};function ca(){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=lt,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 Uint16Array(ta*2),this.dyn_dtree=new Uint16Array((2*Dr+1)*2),this.bl_tree=new Uint16Array((2*ea+1)*2),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(na+1),this.heap=new Uint16Array(2*zt+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*zt+1),ne(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const We=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==ke&&n.status!==Vt&&n.status!==Rt&&n.status!==Ct&&n.status!==Pt&&n.status!==$t&&n.status!==de&&n.status!==Le?1:0},wi=e=>{if(We(e))return ue(e,q);e.total_in=e.total_out=0,e.data_type=Gr;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Vt:n.wrap?ke:de,e.adler=n.wrap===2?0:1,n.last_flush=-2,Lr(n),L},xi=e=>{const n=wi(e);return n===L&&fa(e.state),n},da=(e,n)=>We(e)||e.state.wrap!==2?q:(e.state.gzhead=n,L),vi=(e,n,t,i,r,a)=>{if(!e)return q;let l=1;if(n===Br&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>Yr||t!==lt||i<8||i>15||n<0||n>9||a<0||a>Xr||i===8&&l!==1)return ue(e,q);i===8&&(i=9);const s=new ca;return e.state=s,s.strm=e,s.status=ke,s.wrap=l,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+S-1)/S),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,xi(e)},ua=(e,n)=>vi(e,n,lt,qr,Wr,Kr),ha=(e,n)=>{if(We(e)||n>dn||n<0)return e?ue(e,q):q;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Le&&n!==V)return ue(e,e.avail_out===0?bt:q);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(B(e),e.avail_out===0)return t.last_flush=-1,L}else if(e.avail_in===0&&hn(n)<=hn(i)&&n!==V)return ue(e,bt);if(t.status===Le&&e.avail_in!==0)return ue(e,bt);if(t.status===ke&&t.wrap===0&&(t.status=de),t.status===ke){let r=lt+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=De||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=ia),r+=31-r%31,Re(t,r),t.strstart!==0&&(Re(t,e.adler>>>16),Re(t,e.adler&65535)),e.adler=1,t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(t.status===Vt){if(e.adler=0,I(t,31),I(t,139),I(t,8),t.gzhead)I(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),I(t,t.gzhead.time&255),I(t,t.gzhead.time>>8&255),I(t,t.gzhead.time>>16&255),I(t,t.gzhead.time>>24&255),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(I(t,t.gzhead.extra.length&255),I(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=$(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Rt;else if(I(t,0),I(t,0),I(t,0),I(t,0),I(t,0),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,ra),t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(t.status===Rt){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,B(e),t.pending!==0)return t.last_flush=-1,L;r=0,a-=s}let l=new Uint8Array(t.gzhead.extra);t.pending_buf.set(l.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Ct}if(t.status===Ct){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),B(e),t.pending!==0)return t.last_flush=-1,L;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Pt}if(t.status===Pt){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),B(e),t.pending!==0)return t.last_flush=-1,L;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r))}t.status=$t}if(t.status===$t){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(B(e),t.pending!==0))return t.last_flush=-1,L;I(t,e.adler&255),I(t,e.adler>>8&255),e.adler=0}if(t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(e.avail_in!==0||t.lookahead!==0||n!==ae&&t.status!==Le){let r=t.level===0?bi(t,n):t.strategy===De?la(t,n):t.strategy===Vr?oa(t,n):Fe[t.level].func(t,n);if((r===pe||r===Ie)&&(t.status=Le),r===Z||r===pe)return e.avail_out===0&&(t.last_flush=-1),L;if(r===Oe&&(n===Mr?Zr(t):n!==dn&&(It(t,0,0,!1),n===Ur&&(ne(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),B(e),e.avail_out===0))return t.last_flush=-1,L}return n!==V?L:t.wrap<=0?un:(t.wrap===2?(I(t,e.adler&255),I(t,e.adler>>8&255),I(t,e.adler>>16&255),I(t,e.adler>>24&255),I(t,e.total_in&255),I(t,e.total_in>>8&255),I(t,e.total_in>>16&255),I(t,e.total_in>>24&255)):(Re(t,e.adler>>>16),Re(t,e.adler&65535)),B(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?L:un)},_a=e=>{if(We(e))return q;const n=e.state.status;return e.state=null,n===de?ue(e,jr):L},pa=(e,n)=>{let t=n.length;if(We(e))return q;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==ke||i.lookahead)return q;if(r===1&&(e.adler=Xe(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(ne(i.head),i.strstart=0,i.block_start=0,i.insert=0);let f=new Uint8Array(i.w_size);f.set(n.subarray(t-i.w_size,t),0),n=f,t=i.w_size}const a=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Te(i);i.lookahead>=S;){let f=i.strstart,o=i.lookahead-(S-1);do i.ins_h=se(i,i.ins_h,i.window[f+S-1]),i.prev[f&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=f,f++;while(--o);i.strstart=f,i.lookahead=S-1,Te(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=S-1,i.match_available=0,e.next_in=l,e.input=s,e.avail_in=a,i.wrap=r,L};var ga=ua,ba=vi,wa=xi,xa=wi,va=da,ya=ha,ma=_a,Ea=pa,Na="pako deflate (from Nodeca project)",Me={deflateInit:ga,deflateInit2:ba,deflateReset:wa,deflateResetKeep:xa,deflateSetHeader:va,deflate:ya,deflateEnd:ma,deflateSetDictionary:Ea,deflateInfo:Na};const ka=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Ta=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)ka(t,i)&&(e[i]=t[i])}}return e},Aa=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let l=e[i];t.set(l,r),r+=l.length}return t},ft={assign:Ta,flattenChunks:Aa};let yi=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yi=!1}const Ke=new Uint8Array(256);for(let e=0;e<256;e++)Ke[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ke[254]=Ke[254]=1;var Sa=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,l=e.length,s=0;for(r=0;r<l;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Oa=(e,n)=>{if(n<65534&&e.subarray&&yi)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var Ia=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let l=e[i++];if(l<128){a[r++]=l;continue}let s=Ke[l];if(s>4){a[r++]=65533,i+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&i<t;)l=l<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}l<65536?a[r++]=l:(l-=65536,a[r++]=55296|l>>10&1023,a[r++]=56320|l&1023)}return Oa(a,r)},za=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Ke[e[t]]>n?t:n},Ge={string2buf:Sa,buf2string:Ia,utf8border:za};function Ra(){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}var mi=Ra;const Ei=Object.prototype.toString,{Z_NO_FLUSH:Ca,Z_SYNC_FLUSH:Pa,Z_FULL_FLUSH:$a,Z_FINISH:La,Z_OK:st,Z_STREAM_END:Fa,Z_DEFAULT_COMPRESSION:Za,Z_DEFAULT_STRATEGY:Ma,Z_DEFLATED:Ua}=be;function Je(e){this.options=ft.assign({level:Za,method:Ua,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ma},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new mi,this.strm.avail_out=0;let t=Me.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==st)throw new Error(_e[t]);if(n.header&&Me.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ge.string2buf(n.dictionary):Ei.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=Me.deflateSetDictionary(this.strm,i),t!==st)throw new Error(_e[t]);this._dict_set=!0}}Je.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?La:Ca,typeof e=="string"?t.input=Ge.string2buf(e):Ei.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===Pa||a===$a)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=Me.deflate(t,a),r===Fa)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=Me.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===st;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Je.prototype.onData=function(e){this.chunks.push(e)};Je.prototype.onEnd=function(e){e===st&&(this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xt(e,n){const t=new Je(n);if(t.push(e,!0),t.err)throw t.msg||_e[t.err];return t.result}function ja(e,n){return n=n||{},n.raw=!0,Xt(e,n)}function Ba(e,n){return n=n||{},n.gzip=!0,Xt(e,n)}var Ha=Je,Va=Xt,Xa=ja,Ka=Ba,Ga=be,Ya={Deflate:Ha,deflate:Va,deflateRaw:Xa,gzip:Ka,constants:Ga};const et=16209,qa=16191;var Wa=function(n,t){let i,r,a,l,s,f,o,c,_,u,d,b,v,h,g,y,x,p,k,N,w,O,A,m;const T=n.state;i=n.next_in,A=n.input,r=i+(n.avail_in-5),a=n.next_out,m=n.output,l=a-(t-n.avail_out),s=a+(n.avail_out-257),f=T.dmax,o=T.wsize,c=T.whave,_=T.wnext,u=T.window,d=T.hold,b=T.bits,v=T.lencode,h=T.distcode,g=(1<<T.lenbits)-1,y=(1<<T.distbits)-1;e:do{b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),x=v[d&g];t:for(;;){if(p=x>>>24,d>>>=p,b-=p,p=x>>>16&255,p===0)m[a++]=x&65535;else if(p&16){k=x&65535,p&=15,p&&(b<p&&(d+=A[i++]<<b,b+=8),k+=d&(1<<p)-1,d>>>=p,b-=p),b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),x=h[d&y];n:for(;;){if(p=x>>>24,d>>>=p,b-=p,p=x>>>16&255,p&16){if(N=x&65535,p&=15,b<p&&(d+=A[i++]<<b,b+=8,b<p&&(d+=A[i++]<<b,b+=8)),N+=d&(1<<p)-1,N>f){n.msg="invalid distance too far back",T.mode=et;break e}if(d>>>=p,b-=p,p=a-l,N>p){if(p=N-p,p>c&&T.sane){n.msg="invalid distance too far back",T.mode=et;break e}if(w=0,O=u,_===0){if(w+=o-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}else if(_<p){if(w+=o+_-p,p-=_,p<k){k-=p;do m[a++]=u[w++];while(--p);if(w=0,_<k){p=_,k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}}else if(w+=_-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}for(;k>2;)m[a++]=O[w++],m[a++]=O[w++],m[a++]=O[w++],k-=3;k&&(m[a++]=O[w++],k>1&&(m[a++]=O[w++]))}else{w=a-N;do m[a++]=m[w++],m[a++]=m[w++],m[a++]=m[w++],k-=3;while(k>2);k&&(m[a++]=m[w++],k>1&&(m[a++]=m[w++]))}}else if(p&64){n.msg="invalid distance code",T.mode=et;break e}else{x=h[(x&65535)+(d&(1<<p)-1)];continue n}break}}else if(p&64)if(p&32){T.mode=qa;break e}else{n.msg="invalid literal/length code",T.mode=et;break e}else{x=v[(x&65535)+(d&(1<<p)-1)];continue t}break}}while(i<r&&a<s);k=b>>3,i-=k,b-=k<<3,d&=(1<<b)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),T.hold=d,T.bits=b};const me=15,_n=852,pn=592,gn=0,xt=1,bn=2,Ja=new Uint16Array([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]),Qa=new Uint8Array([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]),Da=new Uint16Array([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]),es=new Uint8Array([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]),ts=(e,n,t,i,r,a,l,s)=>{const f=s.bits;let o=0,c=0,_=0,u=0,d=0,b=0,v=0,h=0,g=0,y=0,x,p,k,N,w,O=null,A;const m=new Uint16Array(me+1),T=new Uint16Array(me+1);let K=null,ze,le,xe;for(o=0;o<=me;o++)m[o]=0;for(c=0;c<i;c++)m[n[t+c]]++;for(d=f,u=me;u>=1&&m[u]===0;u--);if(d>u&&(d=u),u===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(_=1;_<u&&m[_]===0;_++);for(d<_&&(d=_),h=1,o=1;o<=me;o++)if(h<<=1,h-=m[o],h<0)return-1;if(h>0&&(e===gn||u!==1))return-1;for(T[1]=0,o=1;o<me;o++)T[o+1]=T[o]+m[o];for(c=0;c<i;c++)n[t+c]!==0&&(l[T[n[t+c]]++]=c);if(e===gn?(O=K=l,A=20):e===xt?(O=Ja,K=Qa,A=257):(O=Da,K=es,A=0),y=0,c=0,o=_,w=a,b=d,v=0,k=-1,g=1<<d,N=g-1,e===xt&&g>_n||e===bn&&g>pn)return 1;for(;;){ze=o-v,l[c]+1<A?(le=0,xe=l[c]):l[c]>=A?(le=K[l[c]-A],xe=O[l[c]-A]):(le=96,xe=0),x=1<<o-v,p=1<<b,_=p;do p-=x,r[w+(y>>v)+p]=ze<<24|le<<16|xe|0;while(p!==0);for(x=1<<o-1;y&x;)x>>=1;if(x!==0?(y&=x-1,y+=x):y=0,c++,--m[o]===0){if(o===u)break;o=n[t+l[c]]}if(o>d&&(y&N)!==k){for(v===0&&(v=d),w+=_,b=o-v,h=1<<b;b+v<u&&(h-=m[b+v],!(h<=0));)b++,h<<=1;if(g+=1<<b,e===xt&&g>_n||e===bn&&g>pn)return 1;k=y&N,r[k]=d<<24|b<<16|w-a|0}}return y!==0&&(r[w+y]=o-v<<24|64<<16|0),s.bits=d,0};var Ue=ts;const ns=0,Ni=1,ki=2,{Z_FINISH:wn,Z_BLOCK:is,Z_TREES:tt,Z_OK:ge,Z_STREAM_END:rs,Z_NEED_DICT:as,Z_STREAM_ERROR:X,Z_DATA_ERROR:Ti,Z_MEM_ERROR:Ai,Z_BUF_ERROR:ss,Z_DEFLATED:xn}=be,ct=16180,vn=16181,yn=16182,mn=16183,En=16184,Nn=16185,kn=16186,Tn=16187,An=16188,Sn=16189,ot=16190,J=16191,vt=16192,On=16193,yt=16194,In=16195,zn=16196,Rn=16197,Cn=16198,nt=16199,it=16200,Pn=16201,$n=16202,Ln=16203,Fn=16204,Zn=16205,mt=16206,Mn=16207,Un=16208,z=16209,Si=16210,Oi=16211,os=852,ls=592,fs=15,cs=fs,jn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ds(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const we=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<ct||n.mode>Oi?1:0},Ii=e=>{if(we(e))return X;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=ct,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(os),n.distcode=n.distdyn=new Int32Array(ls),n.sane=1,n.back=-1,ge},zi=e=>{if(we(e))return X;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Ii(e)},Ri=(e,n)=>{let t;if(we(e))return X;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?X:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,zi(e))},Ci=(e,n)=>{if(!e)return X;const t=new ds;e.state=t,t.strm=e,t.window=null,t.mode=ct;const i=Ri(e,n);return i!==ge&&(e.state=null),i},us=e=>Ci(e,cs);let Bn=!0,Et,Nt;const hs=e=>{if(Bn){Et=new Int32Array(512),Nt=new Int32Array(32);let n=0;for(;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(Ue(Ni,e.lens,0,288,Et,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Ue(ki,e.lens,0,32,Nt,0,e.work,{bits:5}),Bn=!1}e.lencode=Et,e.lenbits=9,e.distcode=Nt,e.distbits=5},Pi=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},_s=(e,n)=>{let t,i,r,a,l,s,f,o,c,_,u,d,b,v,h=0,g,y,x,p,k,N,w,O;const A=new Uint8Array(4);let m,T;const K=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(we(e)||!e.output||!e.input&&e.avail_in!==0)return X;t=e.state,t.mode===J&&(t.mode=vt),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,_=s,u=f,O=ge;e:for(;;)switch(t.mode){case ct:if(t.wrap===0){t.mode=vt;break}for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&2&&o===35615){t.wbits===0&&(t.wbits=15),t.check=0,A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0),o=0,c=0,t.mode=vn;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((o&255)<<8)+(o>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((o&15)!==xn){e.msg="unknown compression method",t.mode=z;break}if(o>>>=4,c-=4,w=(o&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=o&512?Sn:J,o=0,c=0;break;case vn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.flags=o,(t.flags&255)!==xn){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=o>>8&1),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0,t.mode=yn;case yn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.time=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,A[2]=o>>>16&255,A[3]=o>>>24&255,t.check=$(t.check,A,4,0)),o=0,c=0,t.mode=mn;case mn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.xflags=o&255,t.head.os=o>>8),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0,t.mode=En;case En:if(t.flags&1024){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length=o,t.head&&(t.head.extra_len=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0}else t.head&&(t.head.extra=null);t.mode=Nn;case Nn:if(t.flags&1024&&(d=t.length,d>s&&(d=s),d&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+d),w)),t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,t.length-=d),t.length))break e;t.length=0,t.mode=kn;case kn:if(t.flags&2048){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=Tn;case Tn:if(t.flags&4096){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.comment=null);t.mode=An;case An:if(t.flags&512){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}o=0,c=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=J;break;case Sn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}e.adler=t.check=jn(o),o=0,c=0,t.mode=ot;case ot:if(t.havedict===0)return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,as;e.adler=t.check=1,t.mode=J;case J:if(n===is||n===tt)break e;case vt:if(t.last){o>>>=c&7,c-=c&7,t.mode=mt;break}for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}switch(t.last=o&1,o>>>=1,c-=1,o&3){case 0:t.mode=On;break;case 1:if(hs(t),t.mode=nt,n===tt){o>>>=2,c-=2;break e}break;case 2:t.mode=zn;break;case 3:e.msg="invalid block type",t.mode=z}o>>>=2,c-=2;break;case On:for(o>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if((o&65535)!==(o>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=o&65535,o=0,c=0,t.mode=yt,n===tt)break e;case yt:t.mode=In;case In:if(d=t.length,d){if(d>s&&(d=s),d>f&&(d=f),d===0)break e;r.set(i.subarray(a,a+d),l),s-=d,a+=d,f-=d,l+=d,t.length-=d;break}t.mode=J;break;case zn:for(;c<14;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.nlen=(o&31)+257,o>>>=5,c-=5,t.ndist=(o&31)+1,o>>>=5,c-=5,t.ncode=(o&15)+4,o>>>=4,c-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=Rn;case Rn:for(;t.have<t.ncode;){for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.lens[K[t.have++]]=o&7,o>>>=3,c-=3}for(;t.have<19;)t.lens[K[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,m={bits:t.lenbits},O=Ue(ns,t.lens,0,19,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=Cn;case Cn:for(;t.have<t.nlen+t.ndist;){for(;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(x<16)o>>>=g,c-=g,t.lens[t.have++]=x;else{if(x===16){for(T=g+2;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(o>>>=g,c-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}w=t.lens[t.have-1],d=3+(o&3),o>>>=2,c-=2}else if(x===17){for(T=g+3;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=3+(o&7),o>>>=3,c-=3}else{for(T=g+7;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=11+(o&127),o>>>=7,c-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;d--;)t.lens[t.have++]=w}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,m={bits:t.lenbits},O=Ue(Ni,t.lens,0,t.nlen,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,m={bits:t.distbits},O=Ue(ki,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,m),t.distbits=m.bits,O){e.msg="invalid distances set",t.mode=z;break}if(t.mode=nt,n===tt)break e;case nt:t.mode=it;case it:if(s>=6&&f>=258){e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,Wa(e,u),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,t.mode===J&&(t.back=-1);break}for(t.back=0;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(y&&!(y&240)){for(p=g,k=y,N=x;h=t.lencode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,y=h>>>16&255,x=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,t.length=x,y===0){t.mode=Zn;break}if(y&32){t.back=-1,t.mode=J;break}if(y&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=y&15,t.mode=Pn;case Pn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=$n;case $n:for(;h=t.distcode[o&(1<<t.distbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(!(y&240)){for(p=g,k=y,N=x;h=t.distcode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,y=h>>>16&255,x=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,y&64){e.msg="invalid distance code",t.mode=z;break}t.offset=x,t.extra=y&15,t.mode=Ln;case Ln:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.offset+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=Fn;case Fn:if(f===0)break e;if(d=u-f,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}d>t.wnext?(d-=t.wnext,b=t.wsize-d):b=t.wnext-d,d>t.length&&(d=t.length),v=t.window}else v=r,b=l-t.offset,d=t.length;d>f&&(d=f),f-=d,t.length-=d;do r[l++]=v[b++];while(--d);t.length===0&&(t.mode=it);break;case Zn:if(f===0)break e;r[l++]=t.length,f--,t.mode=it;break;case mt:if(t.wrap){for(;c<32;){if(s===0)break e;s--,o|=i[a++]<<c,c+=8}if(u-=f,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?$(t.check,r,u,l-u):Xe(t.check,r,u,l-u)),u=f,t.wrap&4&&(t.flags?o:jn(o))!==t.check){e.msg="incorrect data check",t.mode=z;break}o=0,c=0}t.mode=Mn;case Mn:if(t.wrap&&t.flags){for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}o=0,c=0}t.mode=Un;case Un:O=rs;break e;case z:O=Ti;break e;case Si:return Ai;case Oi:default:return X}return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,(t.wsize||u!==e.avail_out&&t.mode<z&&(t.mode<mt||n!==wn))&&Pi(e,e.output,e.next_out,u-e.avail_out),_-=e.avail_in,u-=e.avail_out,e.total_in+=_,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?$(t.check,r,u,e.next_out-u):Xe(t.check,r,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(t.mode===J?128:0)+(t.mode===nt||t.mode===yt?256:0),(_===0&&u===0||n===wn)&&O===ge&&(O=ss),O},ps=e=>{if(we(e))return X;let n=e.state;return n.window&&(n.window=null),e.state=null,ge},gs=(e,n)=>{if(we(e))return X;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,ge):X},bs=(e,n)=>{const t=n.length;let i,r,a;return we(e)||(i=e.state,i.wrap!==0&&i.mode!==ot)?X:i.mode===ot&&(r=1,r=Xe(r,n,t,0),r!==i.check)?Ti:(a=Pi(e,n,t,t),a?(i.mode=Si,Ai):(i.havedict=1,ge))};var ws=zi,xs=Ri,vs=Ii,ys=us,ms=Ci,Es=_s,Ns=ps,ks=gs,Ts=bs,As="pako inflate (from Nodeca project)",D={inflateReset:ws,inflateReset2:xs,inflateResetKeep:vs,inflateInit:ys,inflateInit2:ms,inflate:Es,inflateEnd:Ns,inflateGetHeader:ks,inflateSetDictionary:Ts,inflateInfo:As};function Ss(){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}var Os=Ss;const $i=Object.prototype.toString,{Z_NO_FLUSH:Is,Z_FINISH:zs,Z_OK:Ye,Z_STREAM_END:kt,Z_NEED_DICT:Tt,Z_STREAM_ERROR:Rs,Z_DATA_ERROR:Hn,Z_MEM_ERROR:Cs}=be;function Qe(e){this.options=ft.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new mi,this.strm.avail_out=0;let t=D.inflateInit2(this.strm,n.windowBits);if(t!==Ye)throw new Error(_e[t]);if(this.header=new Os,D.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ge.string2buf(n.dictionary):$i.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=D.inflateSetDictionary(this.strm,n.dictionary),t!==Ye)))throw new Error(_e[t])}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?zs:Is,$i.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=D.inflate(t,l),a===Tt&&r&&(a=D.inflateSetDictionary(t,r),a===Ye?a=D.inflate(t,l):a===Hn&&(a=Tt));t.avail_in>0&&a===kt&&t.state.wrap>0&&e[t.next_in]!==0;)D.inflateReset(t),a=D.inflate(t,l);switch(a){case Rs:case Hn:case Tt:case Cs:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===kt))if(this.options.to==="string"){let f=Ge.utf8border(t.output,t.next_out),o=t.next_out-f,c=Ge.buf2string(t.output,f);t.next_out=o,t.avail_out=i-o,o&&t.output.set(t.output.subarray(f,f+o),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ye&&s===0)){if(a===kt)return a=D.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ye&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kt(e,n){const t=new Qe(n);if(t.push(e),t.err)throw t.msg||_e[t.err];return t.result}function Ps(e,n){return n=n||{},n.raw=!0,Kt(e,n)}var $s=Qe,Ls=Kt,Fs=Ps,Zs=Kt,Ms=be,Us={Inflate:$s,inflate:Ls,inflateRaw:Fs,ungzip:Zs,constants:Ms};const{Deflate:js,deflate:Bs,deflateRaw:Hs,gzip:Vs}=Ya,{Inflate:Xs,inflate:Ks,inflateRaw:Gs,ungzip:Ys}=Us;var qs=js,Ws=Bs,Js=Hs,Qs=Vs,Ds=Xs,eo=Ks,to=Gs,no=Ys,io=be,ro={Deflate:qs,deflate:Ws,deflateRaw:Js,gzip:Qs,Inflate:Ds,inflate:eo,inflateRaw:to,ungzip:no,constants:io},Gt={exports:{}},Yt={},dt={};(function(e){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",t=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+n+"]["+t+"]*",r=new RegExp("^"+i+"$"),a=function(s,f){const o=[];let c=f.exec(s);for(;c;){const _=[];_.startIndex=f.lastIndex-c[0].length;const u=c.length;for(let d=0;d<u;d++)_.push(c[d]);o.push(_),c=f.exec(s)}return o},l=function(s){const f=r.exec(s);return!(f===null||typeof f>"u")};e.isExist=function(s){return typeof s<"u"},e.isEmptyObject=function(s){return Object.keys(s).length===0},e.merge=function(s,f,o){if(f){const c=Object.keys(f),_=c.length;for(let u=0;u<_;u++)o==="strict"?s[c[u]]=[f[c[u]]]:s[c[u]]=f[c[u]]}},e.getValue=function(s){return e.isExist(s)?s:""},e.isName=l,e.getAllMatches=a,e.nameRegexp=i})(dt);const qt=dt,ao={allowBooleanAttributes:!1,unpairedTags:[]};Yt.validate=function(e,n){n=Object.assign({},ao,n);const t=[];let i=!1,r=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]==="<"&&e[a+1]==="?"){if(a+=2,a=Xn(e,a),a.err)return a}else if(e[a]==="<"){let l=a;if(a++,e[a]==="!"){a=Kn(e,a);continue}else{let s=!1;e[a]==="/"&&(s=!0,a++);let f="";for(;a<e.length&&e[a]!==">"&&e[a]!==" "&&e[a]!==" "&&e[a]!==`
|
|
1
|
+
import{b7 as Wi,P as C,bt as Ae,j as E,r as Ee,co as nn,cp as Ji,cq as Qi,B as Dn,c4 as Di,cr as er,cs as tr,ct as ei,bD as nr,cu as ir,aM as rr}from"./index-Ctfa52p5.js";import{r as ar,a as sr}from"./emotion-cache.browser.esm-CFmFGVO5.js";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const or=4,rn=0,an=1,lr=2;function Se(e){let n=e.length;for(;--n>=0;)e[n]=0}const fr=0,ti=1,cr=2,dr=3,ur=258,Ut=29,qe=256,je=qe+1+Ut,Ne=30,jt=19,ni=2*je+1,ce=15,ht=16,hr=7,Bt=256,ii=16,ri=17,ai=18,St=new Uint8Array([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]),rt=new Uint8Array([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]),_r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),si=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pr=512,Q=new Array((je+2)*2);Se(Q);const Ze=new Array(Ne*2);Se(Ze);const Be=new Array(pr);Se(Be);const He=new Array(ur-dr+1);Se(He);const Ht=new Array(Ut);Se(Ht);const at=new Array(Ne);Se(at);function _t(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let oi,li,fi;function pt(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const ci=e=>e<256?Be[e]:Be[256+(e>>>7)],Ve=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},U=(e,n,t)=>{e.bi_valid>ht-t?(e.bi_buf|=n<<e.bi_valid&65535,Ve(e,e.bi_buf),e.bi_buf=n>>ht-e.bi_valid,e.bi_valid+=t-ht):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},Y=(e,n,t)=>{U(e,t[n*2],t[n*2+1])},di=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},gr=e=>{e.bi_valid===16?(Ve(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)},br=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,f=n.stat_desc.max_length;let o,c,_,u,d,b,v=0;for(u=0;u<=ce;u++)e.bl_count[u]=0;for(t[e.heap[e.heap_max]*2+1]=0,o=e.heap_max+1;o<ni;o++)c=e.heap[o],u=t[t[c*2+1]*2+1]+1,u>f&&(u=f,v++),t[c*2+1]=u,!(c>i)&&(e.bl_count[u]++,d=0,c>=s&&(d=l[c-s]),b=t[c*2],e.opt_len+=b*(u+d),a&&(e.static_len+=b*(r[c*2+1]+d)));if(v!==0){do{for(u=f-1;e.bl_count[u]===0;)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[f]--,v-=2}while(v>0);for(u=f;u!==0;u--)for(c=e.bl_count[u];c!==0;)_=e.heap[--o],!(_>i)&&(t[_*2+1]!==u&&(e.opt_len+=(u-t[_*2+1])*t[_*2],t[_*2+1]=u),c--)}},ui=(e,n,t)=>{const i=new Array(ce+1);let r=0,a,l;for(a=1;a<=ce;a++)r=r+t[a-1]<<1,i[a]=r;for(l=0;l<=n;l++){let s=e[l*2+1];s!==0&&(e[l*2]=di(i[s]++,s))}},wr=()=>{let e,n,t,i,r;const a=new Array(ce+1);for(t=0,i=0;i<Ut-1;i++)for(Ht[i]=t,e=0;e<1<<St[i];e++)He[t++]=i;for(He[t-1]=i,r=0,i=0;i<16;i++)for(at[i]=r,e=0;e<1<<rt[i];e++)Be[r++]=i;for(r>>=7;i<Ne;i++)for(at[i]=r<<7,e=0;e<1<<rt[i]-7;e++)Be[256+r++]=i;for(n=0;n<=ce;n++)a[n]=0;for(e=0;e<=143;)Q[e*2+1]=8,e++,a[8]++;for(;e<=255;)Q[e*2+1]=9,e++,a[9]++;for(;e<=279;)Q[e*2+1]=7,e++,a[7]++;for(;e<=287;)Q[e*2+1]=8,e++,a[8]++;for(ui(Q,je+1,a),e=0;e<Ne;e++)Ze[e*2+1]=5,Ze[e*2]=di(e,5);oi=new _t(Q,St,qe+1,je,ce),li=new _t(Ze,rt,0,Ne,ce),fi=new _t(new Array(0),_r,0,jt,hr)},hi=e=>{let n;for(n=0;n<je;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ne;n++)e.dyn_dtree[n*2]=0;for(n=0;n<jt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Bt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},_i=e=>{e.bi_valid>8?Ve(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},sn=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},gt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&sn(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!sn(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},on=(e,n,t)=>{let i,r,a=0,l,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?Y(e,r,n):(l=He[r],Y(e,l+qe+1,n),s=St[l],s!==0&&(r-=Ht[l],U(e,r,s)),i--,l=ci(i),Y(e,l,t),s=rt[l],s!==0&&(i-=at[l],U(e,i,s)));while(a<e.sym_next);Y(e,Bt,n)},Ot=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let l,s,f=-1,o;for(e.heap_len=0,e.heap_max=ni,l=0;l<a;l++)t[l*2]!==0?(e.heap[++e.heap_len]=f=l,e.depth[l]=0):t[l*2+1]=0;for(;e.heap_len<2;)o=e.heap[++e.heap_len]=f<2?++f:0,t[o*2]=1,e.depth[o]=0,e.opt_len--,r&&(e.static_len-=i[o*2+1]);for(n.max_code=f,l=e.heap_len>>1;l>=1;l--)gt(e,t,l);o=a;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],gt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=s,t[o*2]=t[l*2]+t[s*2],e.depth[o]=(e.depth[l]>=e.depth[s]?e.depth[l]:e.depth[s])+1,t[l*2+1]=t[s*2+1]=o,e.heap[1]=o++,gt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],br(e,n),ui(t,f,e.bl_count)},ln=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)&&(s<o?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[ii*2]++):s<=10?e.bl_tree[ri*2]++:e.bl_tree[ai*2]++,s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4))},fn=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),i=0;i<=t;i++)if(a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)){if(s<o)do Y(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(Y(e,a,e.bl_tree),s--),Y(e,ii,e.bl_tree),U(e,s-3,2)):s<=10?(Y(e,ri,e.bl_tree),U(e,s-3,3)):(Y(e,ai,e.bl_tree),U(e,s-11,7));s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4)}},xr=e=>{let n;for(ln(e,e.dyn_ltree,e.l_desc.max_code),ln(e,e.dyn_dtree,e.d_desc.max_code),Ot(e,e.bl_desc),n=jt-1;n>=3&&e.bl_tree[si[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},vr=(e,n,t,i)=>{let r;for(U(e,n-257,5),U(e,t-1,5),U(e,i-4,4),r=0;r<i;r++)U(e,e.bl_tree[si[r]*2+1],3);fn(e,e.dyn_ltree,n-1),fn(e,e.dyn_dtree,t-1)},yr=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return rn;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return an;for(t=32;t<qe;t++)if(e.dyn_ltree[t*2]!==0)return an;return rn};let cn=!1;const mr=e=>{cn||(wr(),cn=!0),e.l_desc=new pt(e.dyn_ltree,oi),e.d_desc=new pt(e.dyn_dtree,li),e.bl_desc=new pt(e.bl_tree,fi),e.bi_buf=0,e.bi_valid=0,hi(e)},pi=(e,n,t,i)=>{U(e,(fr<<1)+(i?1:0),3),_i(e),Ve(e,t),Ve(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Er=e=>{U(e,ti<<1,3),Y(e,Bt,Q),gr(e)},Nr=(e,n,t,i)=>{let r,a,l=0;e.level>0?(e.strm.data_type===lr&&(e.strm.data_type=yr(e)),Ot(e,e.l_desc),Ot(e,e.d_desc),l=xr(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?pi(e,n,t,i):e.strategy===or||a===r?(U(e,(ti<<1)+(i?1:0),3),on(e,Q,Ze)):(U(e,(cr<<1)+(i?1:0),3),vr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),on(e,e.dyn_ltree,e.dyn_dtree)),hi(e),i&&_i(e)},kr=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(He[t]+qe+1)*2]++,e.dyn_dtree[ci(n)*2]++),e.sym_next===e.sym_end);var Tr=mr,Ar=pi,Sr=Nr,Or=kr,Ir=Er,zr={_tr_init:Tr,_tr_stored_block:Ar,_tr_flush_block:Sr,_tr_tally:Or,_tr_align:Ir};const Rr=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do r=r+n[i++]|0,a=a+r|0;while(--l);r%=65521,a%=65521}return r|a<<16|0};var Xe=Rr;const Cr=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},Pr=new Uint32Array(Cr()),$r=(e,n,t,i)=>{const r=Pr,a=i+t;e^=-1;for(let l=i;l<a;l++)e=e>>>8^r[(e^n[l])&255];return e^-1};var $=$r,_e={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"},be={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_MEM_ERROR:-4,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};const{_tr_init:Lr,_tr_stored_block:It,_tr_flush_block:Fr,_tr_tally:re,_tr_align:Zr}=zr,{Z_NO_FLUSH:ae,Z_PARTIAL_FLUSH:Mr,Z_FULL_FLUSH:Ur,Z_FINISH:V,Z_BLOCK:dn,Z_OK:L,Z_STREAM_END:un,Z_STREAM_ERROR:q,Z_DATA_ERROR:jr,Z_BUF_ERROR:bt,Z_DEFAULT_COMPRESSION:Br,Z_FILTERED:Hr,Z_HUFFMAN_ONLY:De,Z_RLE:Vr,Z_FIXED:Xr,Z_DEFAULT_STRATEGY:Kr,Z_UNKNOWN:Gr,Z_DEFLATED:lt}=be,Yr=9,qr=15,Wr=8,Jr=29,Qr=256,zt=Qr+1+Jr,Dr=30,ea=19,ta=2*zt+1,na=15,S=3,ie=258,W=ie+S+1,ia=32,ke=42,Vt=57,Rt=69,Ct=73,Pt=91,$t=103,de=113,Le=666,Z=1,Oe=2,pe=3,Ie=4,ra=3,ue=(e,n)=>(e.msg=_e[n],n),hn=e=>e*2-(e>4?9:0),ne=e=>{let n=e.length;for(;--n>=0;)e[n]=0},aa=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let sa=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,se=sa;const B=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},H=(e,n)=>{Fr(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,B(e.strm)},I=(e,n)=>{e.pending_buf[e.pending++]=n},Re=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Lt=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Xe(e.adler,n,r,t):e.state.wrap===2&&(e.adler=$(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},gi=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,l=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-W?e.strstart-(e.w_size-W):0,o=e.window,c=e.w_mask,_=e.prev,u=e.strstart+ie;let d=o[i+l-1],b=o[i+l];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(o[r+l]!==b||o[r+l-1]!==d||o[r]!==o[i]||o[++r]!==o[i+1])){i+=2,r++;do;while(o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&i<u);if(a=ie-(u-i),i=u-ie,a>l){if(e.match_start=n,l=a,a>=s)break;d=o[i+l-1],b=o[i+l]}}while((n=_[n&c])>f&&--t!==0);return l<=e.lookahead?l:e.lookahead},Te=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-W)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),aa(e),i+=n),e.strm.avail_in===0)break;if(t=Lt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=S)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=se(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=se(e,e.ins_h,e.window[r+S-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<W&&e.strm.avail_in!==0)},bi=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,l=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==V||n===ae||i!==r+e.strm.avail_in)))break;l=n===V&&i===r+e.strm.avail_in?1:0,It(e,0,0,l),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,B(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&(Lt(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(l===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),l?Ie:n!==ae&&n!==V&&e.strm.avail_in===0&&e.strstart===e.block_start?Oe:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Lt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===V)&&n!==ae&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,l=n===V&&e.strm.avail_in===0&&i===r?1:0,It(e,e.block_start,i,l),e.block_start+=i,B(e.strm)),l?pe:Z)},wt=(e,n)=>{let t,i;for(;;){if(e.lookahead<W){if(Te(e),e.lookahead<W&&n===ae)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-W&&(e.match_length=gi(e,t)),e.match_length>=S)if(i=re(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do e.strstart++,e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=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=se(e,e.ins_h,e.window[e.strstart+1]);else i=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=e.strstart<S-1?e.strstart:S-1,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},ye=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<W){if(Te(e),e.lookahead<W&&n===ae)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=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=S-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-W&&(e.match_length=gi(e,t),e.match_length<=5&&(e.strategy===Hr||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=re(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=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=S-1,e.strstart++,i&&(H(e,!1),e.strm.avail_out===0))return Z}else if(e.match_available){if(i=re(e,0,e.window[e.strstart-1]),i&&H(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Z}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=re(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},oa=(e,n)=>{let t,i,r,a;const l=e.window;for(;;){if(e.lookahead<=ie){if(Te(e),e.lookahead<=ie&&n===ae)return Z;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){a=e.strstart+ie;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<a);e.match_length=ie-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(t=re(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},la=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Te(e),e.lookahead===0)){if(n===ae)return Z;break}if(e.match_length=0,t=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe};function G(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const Fe=[new G(0,0,0,0,bi),new G(4,4,8,4,wt),new G(4,5,16,8,wt),new G(4,6,32,32,wt),new G(4,4,16,16,ye),new G(8,16,32,32,ye),new G(8,16,128,128,ye),new G(8,32,128,256,ye),new G(32,128,258,1024,ye),new G(32,258,258,4096,ye)],fa=e=>{e.window_size=2*e.w_size,ne(e.head),e.max_lazy_match=Fe[e.level].max_lazy,e.good_match=Fe[e.level].good_length,e.nice_match=Fe[e.level].nice_length,e.max_chain_length=Fe[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0};function ca(){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=lt,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 Uint16Array(ta*2),this.dyn_dtree=new Uint16Array((2*Dr+1)*2),this.bl_tree=new Uint16Array((2*ea+1)*2),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(na+1),this.heap=new Uint16Array(2*zt+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*zt+1),ne(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const We=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==ke&&n.status!==Vt&&n.status!==Rt&&n.status!==Ct&&n.status!==Pt&&n.status!==$t&&n.status!==de&&n.status!==Le?1:0},wi=e=>{if(We(e))return ue(e,q);e.total_in=e.total_out=0,e.data_type=Gr;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Vt:n.wrap?ke:de,e.adler=n.wrap===2?0:1,n.last_flush=-2,Lr(n),L},xi=e=>{const n=wi(e);return n===L&&fa(e.state),n},da=(e,n)=>We(e)||e.state.wrap!==2?q:(e.state.gzhead=n,L),vi=(e,n,t,i,r,a)=>{if(!e)return q;let l=1;if(n===Br&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>Yr||t!==lt||i<8||i>15||n<0||n>9||a<0||a>Xr||i===8&&l!==1)return ue(e,q);i===8&&(i=9);const s=new ca;return e.state=s,s.strm=e,s.status=ke,s.wrap=l,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+S-1)/S),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,xi(e)},ua=(e,n)=>vi(e,n,lt,qr,Wr,Kr),ha=(e,n)=>{if(We(e)||n>dn||n<0)return e?ue(e,q):q;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Le&&n!==V)return ue(e,e.avail_out===0?bt:q);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(B(e),e.avail_out===0)return t.last_flush=-1,L}else if(e.avail_in===0&&hn(n)<=hn(i)&&n!==V)return ue(e,bt);if(t.status===Le&&e.avail_in!==0)return ue(e,bt);if(t.status===ke&&t.wrap===0&&(t.status=de),t.status===ke){let r=lt+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=De||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=ia),r+=31-r%31,Re(t,r),t.strstart!==0&&(Re(t,e.adler>>>16),Re(t,e.adler&65535)),e.adler=1,t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(t.status===Vt){if(e.adler=0,I(t,31),I(t,139),I(t,8),t.gzhead)I(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),I(t,t.gzhead.time&255),I(t,t.gzhead.time>>8&255),I(t,t.gzhead.time>>16&255),I(t,t.gzhead.time>>24&255),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(I(t,t.gzhead.extra.length&255),I(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=$(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Rt;else if(I(t,0),I(t,0),I(t,0),I(t,0),I(t,0),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,ra),t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(t.status===Rt){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,B(e),t.pending!==0)return t.last_flush=-1,L;r=0,a-=s}let l=new Uint8Array(t.gzhead.extra);t.pending_buf.set(l.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Ct}if(t.status===Ct){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),B(e),t.pending!==0)return t.last_flush=-1,L;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Pt}if(t.status===Pt){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),B(e),t.pending!==0)return t.last_flush=-1,L;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r))}t.status=$t}if(t.status===$t){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(B(e),t.pending!==0))return t.last_flush=-1,L;I(t,e.adler&255),I(t,e.adler>>8&255),e.adler=0}if(t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(e.avail_in!==0||t.lookahead!==0||n!==ae&&t.status!==Le){let r=t.level===0?bi(t,n):t.strategy===De?la(t,n):t.strategy===Vr?oa(t,n):Fe[t.level].func(t,n);if((r===pe||r===Ie)&&(t.status=Le),r===Z||r===pe)return e.avail_out===0&&(t.last_flush=-1),L;if(r===Oe&&(n===Mr?Zr(t):n!==dn&&(It(t,0,0,!1),n===Ur&&(ne(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),B(e),e.avail_out===0))return t.last_flush=-1,L}return n!==V?L:t.wrap<=0?un:(t.wrap===2?(I(t,e.adler&255),I(t,e.adler>>8&255),I(t,e.adler>>16&255),I(t,e.adler>>24&255),I(t,e.total_in&255),I(t,e.total_in>>8&255),I(t,e.total_in>>16&255),I(t,e.total_in>>24&255)):(Re(t,e.adler>>>16),Re(t,e.adler&65535)),B(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?L:un)},_a=e=>{if(We(e))return q;const n=e.state.status;return e.state=null,n===de?ue(e,jr):L},pa=(e,n)=>{let t=n.length;if(We(e))return q;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==ke||i.lookahead)return q;if(r===1&&(e.adler=Xe(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(ne(i.head),i.strstart=0,i.block_start=0,i.insert=0);let f=new Uint8Array(i.w_size);f.set(n.subarray(t-i.w_size,t),0),n=f,t=i.w_size}const a=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Te(i);i.lookahead>=S;){let f=i.strstart,o=i.lookahead-(S-1);do i.ins_h=se(i,i.ins_h,i.window[f+S-1]),i.prev[f&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=f,f++;while(--o);i.strstart=f,i.lookahead=S-1,Te(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=S-1,i.match_available=0,e.next_in=l,e.input=s,e.avail_in=a,i.wrap=r,L};var ga=ua,ba=vi,wa=xi,xa=wi,va=da,ya=ha,ma=_a,Ea=pa,Na="pako deflate (from Nodeca project)",Me={deflateInit:ga,deflateInit2:ba,deflateReset:wa,deflateResetKeep:xa,deflateSetHeader:va,deflate:ya,deflateEnd:ma,deflateSetDictionary:Ea,deflateInfo:Na};const ka=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Ta=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)ka(t,i)&&(e[i]=t[i])}}return e},Aa=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let l=e[i];t.set(l,r),r+=l.length}return t},ft={assign:Ta,flattenChunks:Aa};let yi=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yi=!1}const Ke=new Uint8Array(256);for(let e=0;e<256;e++)Ke[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ke[254]=Ke[254]=1;var Sa=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,l=e.length,s=0;for(r=0;r<l;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Oa=(e,n)=>{if(n<65534&&e.subarray&&yi)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var Ia=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let l=e[i++];if(l<128){a[r++]=l;continue}let s=Ke[l];if(s>4){a[r++]=65533,i+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&i<t;)l=l<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}l<65536?a[r++]=l:(l-=65536,a[r++]=55296|l>>10&1023,a[r++]=56320|l&1023)}return Oa(a,r)},za=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Ke[e[t]]>n?t:n},Ge={string2buf:Sa,buf2string:Ia,utf8border:za};function Ra(){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}var mi=Ra;const Ei=Object.prototype.toString,{Z_NO_FLUSH:Ca,Z_SYNC_FLUSH:Pa,Z_FULL_FLUSH:$a,Z_FINISH:La,Z_OK:st,Z_STREAM_END:Fa,Z_DEFAULT_COMPRESSION:Za,Z_DEFAULT_STRATEGY:Ma,Z_DEFLATED:Ua}=be;function Je(e){this.options=ft.assign({level:Za,method:Ua,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ma},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new mi,this.strm.avail_out=0;let t=Me.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==st)throw new Error(_e[t]);if(n.header&&Me.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ge.string2buf(n.dictionary):Ei.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=Me.deflateSetDictionary(this.strm,i),t!==st)throw new Error(_e[t]);this._dict_set=!0}}Je.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?La:Ca,typeof e=="string"?t.input=Ge.string2buf(e):Ei.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===Pa||a===$a)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=Me.deflate(t,a),r===Fa)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=Me.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===st;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Je.prototype.onData=function(e){this.chunks.push(e)};Je.prototype.onEnd=function(e){e===st&&(this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xt(e,n){const t=new Je(n);if(t.push(e,!0),t.err)throw t.msg||_e[t.err];return t.result}function ja(e,n){return n=n||{},n.raw=!0,Xt(e,n)}function Ba(e,n){return n=n||{},n.gzip=!0,Xt(e,n)}var Ha=Je,Va=Xt,Xa=ja,Ka=Ba,Ga=be,Ya={Deflate:Ha,deflate:Va,deflateRaw:Xa,gzip:Ka,constants:Ga};const et=16209,qa=16191;var Wa=function(n,t){let i,r,a,l,s,f,o,c,_,u,d,b,v,h,g,y,x,p,k,N,w,O,A,m;const T=n.state;i=n.next_in,A=n.input,r=i+(n.avail_in-5),a=n.next_out,m=n.output,l=a-(t-n.avail_out),s=a+(n.avail_out-257),f=T.dmax,o=T.wsize,c=T.whave,_=T.wnext,u=T.window,d=T.hold,b=T.bits,v=T.lencode,h=T.distcode,g=(1<<T.lenbits)-1,y=(1<<T.distbits)-1;e:do{b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),x=v[d&g];t:for(;;){if(p=x>>>24,d>>>=p,b-=p,p=x>>>16&255,p===0)m[a++]=x&65535;else if(p&16){k=x&65535,p&=15,p&&(b<p&&(d+=A[i++]<<b,b+=8),k+=d&(1<<p)-1,d>>>=p,b-=p),b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),x=h[d&y];n:for(;;){if(p=x>>>24,d>>>=p,b-=p,p=x>>>16&255,p&16){if(N=x&65535,p&=15,b<p&&(d+=A[i++]<<b,b+=8,b<p&&(d+=A[i++]<<b,b+=8)),N+=d&(1<<p)-1,N>f){n.msg="invalid distance too far back",T.mode=et;break e}if(d>>>=p,b-=p,p=a-l,N>p){if(p=N-p,p>c&&T.sane){n.msg="invalid distance too far back",T.mode=et;break e}if(w=0,O=u,_===0){if(w+=o-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}else if(_<p){if(w+=o+_-p,p-=_,p<k){k-=p;do m[a++]=u[w++];while(--p);if(w=0,_<k){p=_,k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}}else if(w+=_-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}for(;k>2;)m[a++]=O[w++],m[a++]=O[w++],m[a++]=O[w++],k-=3;k&&(m[a++]=O[w++],k>1&&(m[a++]=O[w++]))}else{w=a-N;do m[a++]=m[w++],m[a++]=m[w++],m[a++]=m[w++],k-=3;while(k>2);k&&(m[a++]=m[w++],k>1&&(m[a++]=m[w++]))}}else if(p&64){n.msg="invalid distance code",T.mode=et;break e}else{x=h[(x&65535)+(d&(1<<p)-1)];continue n}break}}else if(p&64)if(p&32){T.mode=qa;break e}else{n.msg="invalid literal/length code",T.mode=et;break e}else{x=v[(x&65535)+(d&(1<<p)-1)];continue t}break}}while(i<r&&a<s);k=b>>3,i-=k,b-=k<<3,d&=(1<<b)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),T.hold=d,T.bits=b};const me=15,_n=852,pn=592,gn=0,xt=1,bn=2,Ja=new Uint16Array([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]),Qa=new Uint8Array([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]),Da=new Uint16Array([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]),es=new Uint8Array([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]),ts=(e,n,t,i,r,a,l,s)=>{const f=s.bits;let o=0,c=0,_=0,u=0,d=0,b=0,v=0,h=0,g=0,y=0,x,p,k,N,w,O=null,A;const m=new Uint16Array(me+1),T=new Uint16Array(me+1);let K=null,ze,le,xe;for(o=0;o<=me;o++)m[o]=0;for(c=0;c<i;c++)m[n[t+c]]++;for(d=f,u=me;u>=1&&m[u]===0;u--);if(d>u&&(d=u),u===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(_=1;_<u&&m[_]===0;_++);for(d<_&&(d=_),h=1,o=1;o<=me;o++)if(h<<=1,h-=m[o],h<0)return-1;if(h>0&&(e===gn||u!==1))return-1;for(T[1]=0,o=1;o<me;o++)T[o+1]=T[o]+m[o];for(c=0;c<i;c++)n[t+c]!==0&&(l[T[n[t+c]]++]=c);if(e===gn?(O=K=l,A=20):e===xt?(O=Ja,K=Qa,A=257):(O=Da,K=es,A=0),y=0,c=0,o=_,w=a,b=d,v=0,k=-1,g=1<<d,N=g-1,e===xt&&g>_n||e===bn&&g>pn)return 1;for(;;){ze=o-v,l[c]+1<A?(le=0,xe=l[c]):l[c]>=A?(le=K[l[c]-A],xe=O[l[c]-A]):(le=96,xe=0),x=1<<o-v,p=1<<b,_=p;do p-=x,r[w+(y>>v)+p]=ze<<24|le<<16|xe|0;while(p!==0);for(x=1<<o-1;y&x;)x>>=1;if(x!==0?(y&=x-1,y+=x):y=0,c++,--m[o]===0){if(o===u)break;o=n[t+l[c]]}if(o>d&&(y&N)!==k){for(v===0&&(v=d),w+=_,b=o-v,h=1<<b;b+v<u&&(h-=m[b+v],!(h<=0));)b++,h<<=1;if(g+=1<<b,e===xt&&g>_n||e===bn&&g>pn)return 1;k=y&N,r[k]=d<<24|b<<16|w-a|0}}return y!==0&&(r[w+y]=o-v<<24|64<<16|0),s.bits=d,0};var Ue=ts;const ns=0,Ni=1,ki=2,{Z_FINISH:wn,Z_BLOCK:is,Z_TREES:tt,Z_OK:ge,Z_STREAM_END:rs,Z_NEED_DICT:as,Z_STREAM_ERROR:X,Z_DATA_ERROR:Ti,Z_MEM_ERROR:Ai,Z_BUF_ERROR:ss,Z_DEFLATED:xn}=be,ct=16180,vn=16181,yn=16182,mn=16183,En=16184,Nn=16185,kn=16186,Tn=16187,An=16188,Sn=16189,ot=16190,J=16191,vt=16192,On=16193,yt=16194,In=16195,zn=16196,Rn=16197,Cn=16198,nt=16199,it=16200,Pn=16201,$n=16202,Ln=16203,Fn=16204,Zn=16205,mt=16206,Mn=16207,Un=16208,z=16209,Si=16210,Oi=16211,os=852,ls=592,fs=15,cs=fs,jn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ds(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const we=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<ct||n.mode>Oi?1:0},Ii=e=>{if(we(e))return X;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=ct,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(os),n.distcode=n.distdyn=new Int32Array(ls),n.sane=1,n.back=-1,ge},zi=e=>{if(we(e))return X;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Ii(e)},Ri=(e,n)=>{let t;if(we(e))return X;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?X:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,zi(e))},Ci=(e,n)=>{if(!e)return X;const t=new ds;e.state=t,t.strm=e,t.window=null,t.mode=ct;const i=Ri(e,n);return i!==ge&&(e.state=null),i},us=e=>Ci(e,cs);let Bn=!0,Et,Nt;const hs=e=>{if(Bn){Et=new Int32Array(512),Nt=new Int32Array(32);let n=0;for(;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(Ue(Ni,e.lens,0,288,Et,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Ue(ki,e.lens,0,32,Nt,0,e.work,{bits:5}),Bn=!1}e.lencode=Et,e.lenbits=9,e.distcode=Nt,e.distbits=5},Pi=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},_s=(e,n)=>{let t,i,r,a,l,s,f,o,c,_,u,d,b,v,h=0,g,y,x,p,k,N,w,O;const A=new Uint8Array(4);let m,T;const K=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(we(e)||!e.output||!e.input&&e.avail_in!==0)return X;t=e.state,t.mode===J&&(t.mode=vt),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,_=s,u=f,O=ge;e:for(;;)switch(t.mode){case ct:if(t.wrap===0){t.mode=vt;break}for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&2&&o===35615){t.wbits===0&&(t.wbits=15),t.check=0,A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0),o=0,c=0,t.mode=vn;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((o&255)<<8)+(o>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((o&15)!==xn){e.msg="unknown compression method",t.mode=z;break}if(o>>>=4,c-=4,w=(o&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=o&512?Sn:J,o=0,c=0;break;case vn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.flags=o,(t.flags&255)!==xn){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=o>>8&1),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0,t.mode=yn;case yn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.time=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,A[2]=o>>>16&255,A[3]=o>>>24&255,t.check=$(t.check,A,4,0)),o=0,c=0,t.mode=mn;case mn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.xflags=o&255,t.head.os=o>>8),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0,t.mode=En;case En:if(t.flags&1024){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length=o,t.head&&(t.head.extra_len=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0}else t.head&&(t.head.extra=null);t.mode=Nn;case Nn:if(t.flags&1024&&(d=t.length,d>s&&(d=s),d&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+d),w)),t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,t.length-=d),t.length))break e;t.length=0,t.mode=kn;case kn:if(t.flags&2048){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=Tn;case Tn:if(t.flags&4096){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.comment=null);t.mode=An;case An:if(t.flags&512){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}o=0,c=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=J;break;case Sn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}e.adler=t.check=jn(o),o=0,c=0,t.mode=ot;case ot:if(t.havedict===0)return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,as;e.adler=t.check=1,t.mode=J;case J:if(n===is||n===tt)break e;case vt:if(t.last){o>>>=c&7,c-=c&7,t.mode=mt;break}for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}switch(t.last=o&1,o>>>=1,c-=1,o&3){case 0:t.mode=On;break;case 1:if(hs(t),t.mode=nt,n===tt){o>>>=2,c-=2;break e}break;case 2:t.mode=zn;break;case 3:e.msg="invalid block type",t.mode=z}o>>>=2,c-=2;break;case On:for(o>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if((o&65535)!==(o>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=o&65535,o=0,c=0,t.mode=yt,n===tt)break e;case yt:t.mode=In;case In:if(d=t.length,d){if(d>s&&(d=s),d>f&&(d=f),d===0)break e;r.set(i.subarray(a,a+d),l),s-=d,a+=d,f-=d,l+=d,t.length-=d;break}t.mode=J;break;case zn:for(;c<14;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.nlen=(o&31)+257,o>>>=5,c-=5,t.ndist=(o&31)+1,o>>>=5,c-=5,t.ncode=(o&15)+4,o>>>=4,c-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=Rn;case Rn:for(;t.have<t.ncode;){for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.lens[K[t.have++]]=o&7,o>>>=3,c-=3}for(;t.have<19;)t.lens[K[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,m={bits:t.lenbits},O=Ue(ns,t.lens,0,19,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=Cn;case Cn:for(;t.have<t.nlen+t.ndist;){for(;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(x<16)o>>>=g,c-=g,t.lens[t.have++]=x;else{if(x===16){for(T=g+2;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(o>>>=g,c-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}w=t.lens[t.have-1],d=3+(o&3),o>>>=2,c-=2}else if(x===17){for(T=g+3;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=3+(o&7),o>>>=3,c-=3}else{for(T=g+7;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=11+(o&127),o>>>=7,c-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;d--;)t.lens[t.have++]=w}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,m={bits:t.lenbits},O=Ue(Ni,t.lens,0,t.nlen,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,m={bits:t.distbits},O=Ue(ki,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,m),t.distbits=m.bits,O){e.msg="invalid distances set",t.mode=z;break}if(t.mode=nt,n===tt)break e;case nt:t.mode=it;case it:if(s>=6&&f>=258){e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,Wa(e,u),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,t.mode===J&&(t.back=-1);break}for(t.back=0;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(y&&!(y&240)){for(p=g,k=y,N=x;h=t.lencode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,y=h>>>16&255,x=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,t.length=x,y===0){t.mode=Zn;break}if(y&32){t.back=-1,t.mode=J;break}if(y&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=y&15,t.mode=Pn;case Pn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=$n;case $n:for(;h=t.distcode[o&(1<<t.distbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(!(y&240)){for(p=g,k=y,N=x;h=t.distcode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,y=h>>>16&255,x=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,y&64){e.msg="invalid distance code",t.mode=z;break}t.offset=x,t.extra=y&15,t.mode=Ln;case Ln:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.offset+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=Fn;case Fn:if(f===0)break e;if(d=u-f,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}d>t.wnext?(d-=t.wnext,b=t.wsize-d):b=t.wnext-d,d>t.length&&(d=t.length),v=t.window}else v=r,b=l-t.offset,d=t.length;d>f&&(d=f),f-=d,t.length-=d;do r[l++]=v[b++];while(--d);t.length===0&&(t.mode=it);break;case Zn:if(f===0)break e;r[l++]=t.length,f--,t.mode=it;break;case mt:if(t.wrap){for(;c<32;){if(s===0)break e;s--,o|=i[a++]<<c,c+=8}if(u-=f,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?$(t.check,r,u,l-u):Xe(t.check,r,u,l-u)),u=f,t.wrap&4&&(t.flags?o:jn(o))!==t.check){e.msg="incorrect data check",t.mode=z;break}o=0,c=0}t.mode=Mn;case Mn:if(t.wrap&&t.flags){for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}o=0,c=0}t.mode=Un;case Un:O=rs;break e;case z:O=Ti;break e;case Si:return Ai;case Oi:default:return X}return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,(t.wsize||u!==e.avail_out&&t.mode<z&&(t.mode<mt||n!==wn))&&Pi(e,e.output,e.next_out,u-e.avail_out),_-=e.avail_in,u-=e.avail_out,e.total_in+=_,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?$(t.check,r,u,e.next_out-u):Xe(t.check,r,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(t.mode===J?128:0)+(t.mode===nt||t.mode===yt?256:0),(_===0&&u===0||n===wn)&&O===ge&&(O=ss),O},ps=e=>{if(we(e))return X;let n=e.state;return n.window&&(n.window=null),e.state=null,ge},gs=(e,n)=>{if(we(e))return X;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,ge):X},bs=(e,n)=>{const t=n.length;let i,r,a;return we(e)||(i=e.state,i.wrap!==0&&i.mode!==ot)?X:i.mode===ot&&(r=1,r=Xe(r,n,t,0),r!==i.check)?Ti:(a=Pi(e,n,t,t),a?(i.mode=Si,Ai):(i.havedict=1,ge))};var ws=zi,xs=Ri,vs=Ii,ys=us,ms=Ci,Es=_s,Ns=ps,ks=gs,Ts=bs,As="pako inflate (from Nodeca project)",D={inflateReset:ws,inflateReset2:xs,inflateResetKeep:vs,inflateInit:ys,inflateInit2:ms,inflate:Es,inflateEnd:Ns,inflateGetHeader:ks,inflateSetDictionary:Ts,inflateInfo:As};function Ss(){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}var Os=Ss;const $i=Object.prototype.toString,{Z_NO_FLUSH:Is,Z_FINISH:zs,Z_OK:Ye,Z_STREAM_END:kt,Z_NEED_DICT:Tt,Z_STREAM_ERROR:Rs,Z_DATA_ERROR:Hn,Z_MEM_ERROR:Cs}=be;function Qe(e){this.options=ft.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new mi,this.strm.avail_out=0;let t=D.inflateInit2(this.strm,n.windowBits);if(t!==Ye)throw new Error(_e[t]);if(this.header=new Os,D.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ge.string2buf(n.dictionary):$i.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=D.inflateSetDictionary(this.strm,n.dictionary),t!==Ye)))throw new Error(_e[t])}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?zs:Is,$i.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=D.inflate(t,l),a===Tt&&r&&(a=D.inflateSetDictionary(t,r),a===Ye?a=D.inflate(t,l):a===Hn&&(a=Tt));t.avail_in>0&&a===kt&&t.state.wrap>0&&e[t.next_in]!==0;)D.inflateReset(t),a=D.inflate(t,l);switch(a){case Rs:case Hn:case Tt:case Cs:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===kt))if(this.options.to==="string"){let f=Ge.utf8border(t.output,t.next_out),o=t.next_out-f,c=Ge.buf2string(t.output,f);t.next_out=o,t.avail_out=i-o,o&&t.output.set(t.output.subarray(f,f+o),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ye&&s===0)){if(a===kt)return a=D.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ye&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kt(e,n){const t=new Qe(n);if(t.push(e),t.err)throw t.msg||_e[t.err];return t.result}function Ps(e,n){return n=n||{},n.raw=!0,Kt(e,n)}var $s=Qe,Ls=Kt,Fs=Ps,Zs=Kt,Ms=be,Us={Inflate:$s,inflate:Ls,inflateRaw:Fs,ungzip:Zs,constants:Ms};const{Deflate:js,deflate:Bs,deflateRaw:Hs,gzip:Vs}=Ya,{Inflate:Xs,inflate:Ks,inflateRaw:Gs,ungzip:Ys}=Us;var qs=js,Ws=Bs,Js=Hs,Qs=Vs,Ds=Xs,eo=Ks,to=Gs,no=Ys,io=be,ro={Deflate:qs,deflate:Ws,deflateRaw:Js,gzip:Qs,Inflate:Ds,inflate:eo,inflateRaw:to,ungzip:no,constants:io},Gt={exports:{}},Yt={},dt={};(function(e){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",t=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+n+"]["+t+"]*",r=new RegExp("^"+i+"$"),a=function(s,f){const o=[];let c=f.exec(s);for(;c;){const _=[];_.startIndex=f.lastIndex-c[0].length;const u=c.length;for(let d=0;d<u;d++)_.push(c[d]);o.push(_),c=f.exec(s)}return o},l=function(s){const f=r.exec(s);return!(f===null||typeof f>"u")};e.isExist=function(s){return typeof s<"u"},e.isEmptyObject=function(s){return Object.keys(s).length===0},e.merge=function(s,f,o){if(f){const c=Object.keys(f),_=c.length;for(let u=0;u<_;u++)o==="strict"?s[c[u]]=[f[c[u]]]:s[c[u]]=f[c[u]]}},e.getValue=function(s){return e.isExist(s)?s:""},e.isName=l,e.getAllMatches=a,e.nameRegexp=i})(dt);const qt=dt,ao={allowBooleanAttributes:!1,unpairedTags:[]};Yt.validate=function(e,n){n=Object.assign({},ao,n);const t=[];let i=!1,r=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]==="<"&&e[a+1]==="?"){if(a+=2,a=Xn(e,a),a.err)return a}else if(e[a]==="<"){let l=a;if(a++,e[a]==="!"){a=Kn(e,a);continue}else{let s=!1;e[a]==="/"&&(s=!0,a++);let f="";for(;a<e.length&&e[a]!==">"&&e[a]!==" "&&e[a]!==" "&&e[a]!==`
|
|
2
2
|
`&&e[a]!=="\r";a++)f+=e[a];if(f=f.trim(),f[f.length-1]==="/"&&(f=f.substring(0,f.length-1),a--),!_o(f)){let _;return f.trim().length===0?_="Invalid space after '<'.":_="Tag '"+f+"' is an invalid name.",P("InvalidTag",_,F(e,a))}const o=lo(e,a);if(o===!1)return P("InvalidAttr","Attributes for '"+f+"' have open quote.",F(e,a));let c=o.value;if(a=o.index,c[c.length-1]==="/"){const _=a-c.length;c=c.substring(0,c.length-1);const u=Gn(c,n);if(u===!0)i=!0;else return P(u.err.code,u.err.msg,F(e,_+u.err.line))}else if(s)if(o.tagClosed){if(c.trim().length>0)return P("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",F(e,l));if(t.length===0)return P("InvalidTag","Closing tag '"+f+"' has not been opened.",F(e,l));{const _=t.pop();if(f!==_.tagName){let u=F(e,_.tagStartPos);return P("InvalidTag","Expected closing tag '"+_.tagName+"' (opened in line "+u.line+", col "+u.col+") instead of closing tag '"+f+"'.",F(e,l))}t.length==0&&(r=!0)}}else return P("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",F(e,a));else{const _=Gn(c,n);if(_!==!0)return P(_.err.code,_.err.msg,F(e,a-c.length+_.err.line));if(r===!0)return P("InvalidXml","Multiple possible root nodes found.",F(e,a));n.unpairedTags.indexOf(f)!==-1||t.push({tagName:f,tagStartPos:l}),i=!0}for(a++;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="!"){a++,a=Kn(e,a);continue}else if(e[a+1]==="?"){if(a=Xn(e,++a),a.err)return a}else break;else if(e[a]==="&"){const _=uo(e,a);if(_==-1)return P("InvalidChar","char '&' is not expected.",F(e,a));a=_}else if(r===!0&&!Vn(e[a]))return P("InvalidXml","Extra text at the end",F(e,a));e[a]==="<"&&a--}}else{if(Vn(e[a]))continue;return P("InvalidChar","char '"+e[a]+"' is not expected.",F(e,a))}if(i){if(t.length==1)return P("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",F(e,t[0].tagStartPos));if(t.length>0)return P("InvalidXml","Invalid '"+JSON.stringify(t.map(a=>a.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return P("InvalidXml","Start tag expected.",1);return!0};function Vn(e){return e===" "||e===" "||e===`
|
|
3
3
|
`||e==="\r"}function Xn(e,n){const t=n;for(;n<e.length;n++)if(e[n]=="?"||e[n]==" "){const i=e.substr(t,n-t);if(n>5&&i==="xml")return P("InvalidXml","XML declaration allowed only at the start of the document.",F(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function Kn(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n<e.length;n++)if(e[n]==="-"&&e[n+1]==="-"&&e[n+2]===">"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n<e.length;n++)if(e[n]==="<")t++;else if(e[n]===">"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n<e.length;n++)if(e[n]==="]"&&e[n+1]==="]"&&e[n+2]===">"){n+=2;break}}return n}const so='"',oo="'";function lo(e,n){let t="",i="",r=!1;for(;n<e.length;n++){if(e[n]===so||e[n]===oo)i===""?i=e[n]:i!==e[n]||(i="");else if(e[n]===">"&&i===""){r=!0;break}t+=e[n]}return i!==""?!1:{value:t,index:n,tagClosed:r}}const fo=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Gn(e,n){const t=qt.getAllMatches(e,fo),i={};for(let r=0;r<t.length;r++){if(t[r][1].length===0)return P("InvalidAttr","Attribute '"+t[r][2]+"' has no space in starting.",Ce(t[r]));if(t[r][3]!==void 0&&t[r][4]===void 0)return P("InvalidAttr","Attribute '"+t[r][2]+"' is without value.",Ce(t[r]));if(t[r][3]===void 0&&!n.allowBooleanAttributes)return P("InvalidAttr","boolean attribute '"+t[r][2]+"' is not allowed.",Ce(t[r]));const a=t[r][2];if(!ho(a))return P("InvalidAttr","Attribute '"+a+"' is an invalid name.",Ce(t[r]));if(!i.hasOwnProperty(a))i[a]=1;else return P("InvalidAttr","Attribute '"+a+"' is repeated.",Ce(t[r]))}return!0}function co(e,n){let t=/\d/;for(e[n]==="x"&&(n++,t=/[\da-fA-F]/);n<e.length;n++){if(e[n]===";")return n;if(!e[n].match(t))break}return-1}function uo(e,n){if(n++,e[n]===";")return-1;if(e[n]==="#")return n++,co(e,n);let t=0;for(;n<e.length;n++,t++)if(!(e[n].match(/\w/)&&t<20)){if(e[n]===";")break;return-1}return n}function P(e,n,t){return{err:{code:e,msg:n,line:t.line||t,col:t.col}}}function ho(e){return qt.isName(e)}function _o(e){return qt.isName(e)}function F(e,n){const t=e.substring(0,n).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}}function Ce(e){return e.startIndex+e[1].length}var Wt={};const Li={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},po=function(e){return Object.assign({},Li,e)};Wt.buildOptions=po;Wt.defaultOptions=Li;class go{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}var bo=go;const wo=dt;function xo(e,n){const t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let i=1,r=!1,a=!1,l="";for(;n<e.length;n++)if(e[n]==="<"&&!a){if(r&&mo(e,n))n+=7,[entityName,val,n]=vo(e,n+1),val.indexOf("&")===-1&&(t[To(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(r&&Eo(e,n))n+=8;else if(r&&No(e,n))n+=8;else if(r&&ko(e,n))n+=9;else if(yo)a=!0;else throw new Error("Invalid DOCTYPE");i++,l=""}else if(e[n]===">"){if(a?e[n-1]==="-"&&e[n-2]==="-"&&(a=!1,i--):i--,i===0)break}else e[n]==="["?r=!0:l+=e[n];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function vo(e,n){let t="";for(;n<e.length&&e[n]!=="'"&&e[n]!=='"';n++)t+=e[n];if(t=t.trim(),t.indexOf(" ")!==-1)throw new Error("External entites are not supported");const i=e[n++];let r="";for(;n<e.length&&e[n]!==i;n++)r+=e[n];return[t,r,n]}function yo(e,n){return e[n+1]==="!"&&e[n+2]==="-"&&e[n+3]==="-"}function mo(e,n){return e[n+1]==="!"&&e[n+2]==="E"&&e[n+3]==="N"&&e[n+4]==="T"&&e[n+5]==="I"&&e[n+6]==="T"&&e[n+7]==="Y"}function Eo(e,n){return e[n+1]==="!"&&e[n+2]==="E"&&e[n+3]==="L"&&e[n+4]==="E"&&e[n+5]==="M"&&e[n+6]==="E"&&e[n+7]==="N"&&e[n+8]==="T"}function No(e,n){return e[n+1]==="!"&&e[n+2]==="A"&&e[n+3]==="T"&&e[n+4]==="T"&&e[n+5]==="L"&&e[n+6]==="I"&&e[n+7]==="S"&&e[n+8]==="T"}function ko(e,n){return e[n+1]==="!"&&e[n+2]==="N"&&e[n+3]==="O"&&e[n+4]==="T"&&e[n+5]==="A"&&e[n+6]==="T"&&e[n+7]==="I"&&e[n+8]==="O"&&e[n+9]==="N"}function To(e){if(wo.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}var Ao=xo;const So=/^[-+]?0x[a-fA-F0-9]+$/,Oo=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const Io={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function zo(e,n={}){if(n=Object.assign({},Io,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&So.test(t))return Number.parseInt(t,16);{const i=Oo.exec(t);if(i){const r=i[1],a=i[2];let l=Ro(i[3]);const s=i[4]||i[6];if(!n.leadingZeros&&a.length>0&&r&&t[2]!==".")return e;if(!n.leadingZeros&&a.length>0&&!r&&t[1]!==".")return e;{const f=Number(t),o=""+f;return o.search(/[eE]/)!==-1||s?n.eNotation?f:e:t.indexOf(".")!==-1?o==="0"&&l===""||o===l||r&&o==="-"+l?f:e:a?l===o||r+l===o?f:e:t===o||t===r+o?f:e}}else return e}}function Ro(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}var Co=zo;function Po(e){return typeof e=="function"?e:Array.isArray(e)?n=>{for(const t of e)if(typeof t=="string"&&n===t||t instanceof RegExp&&t.test(n))return!0}:()=>!1}var Fi=Po;const Zi=dt,Pe=bo,$o=Ao,Lo=Co,Fo=Fi;let Zo=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,i)=>String.fromCharCode(Number.parseInt(i,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,i)=>String.fromCharCode(Number.parseInt(i,16))}},this.addExternalEntities=Mo,this.parseXml=Vo,this.parseTextData=Uo,this.resolveNameSpace=jo,this.buildAttributesMap=Ho,this.isItStopNode=Yo,this.replaceEntitiesValue=Ko,this.readStopNodeData=Wo,this.saveTextToParentTag=Go,this.addChild=Xo,this.ignoreAttributesFn=Fo(this.options.ignoreAttributes)}};function Mo(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:e[i]}}}function Uo(e,n,t,i,r,a,l){if(e!==void 0&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){l||(e=this.replaceEntitiesValue(e));const s=this.options.tagValueProcessor(n,e,t,r,a);return s==null?e:typeof s!=typeof e||s!==e?s:this.options.trimValues?Zt(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Zt(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function jo(e){if(this.options.removeNSPrefix){const n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}const Bo=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Ho(e,n,t){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const i=Zi.getAllMatches(e,Bo),r=i.length,a={};for(let l=0;l<r;l++){const s=this.resolveNameSpace(i[l][1]);if(this.ignoreAttributesFn(s,n))continue;let f=i[l][4],o=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),o==="__proto__"&&(o="#__proto__"),f!==void 0){this.options.trimValues&&(f=f.trim()),f=this.replaceEntitiesValue(f);const c=this.options.attributeValueProcessor(s,f,n);c==null?a[o]=f:typeof c!=typeof f||c!==f?a[o]=c:a[o]=Zt(f,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[o]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const l={};return l[this.options.attributesGroupName]=a,l}return a}}const Vo=function(e){e=e.replace(/\r\n?/g,`
|
|
4
4
|
`);const n=new Pe("!xml");let t=n,i="",r="";for(let a=0;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="/"){const s=he(e,">",a,"Closing Tag is not closed.");let f=e.substring(a+2,s).trim();if(this.options.removeNSPrefix){const _=f.indexOf(":");_!==-1&&(f=f.substr(_+1))}this.options.transformTagName&&(f=this.options.transformTagName(f)),t&&(i=this.saveTextToParentTag(i,t,r));const o=r.substring(r.lastIndexOf(".")+1);if(f&&this.options.unpairedTags.indexOf(f)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);let c=0;o&&this.options.unpairedTags.indexOf(o)!==-1?(c=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=r.lastIndexOf("."),r=r.substring(0,c),t=this.tagsNodeStack.pop(),i="",a=s}else if(e[a+1]==="?"){let s=Ft(e,a,!1,"?>");if(!s)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,t,r),!(this.options.ignoreDeclaration&&s.tagName==="?xml"||this.options.ignorePiTags)){const f=new Pe(s.tagName);f.add(this.options.textNodeName,""),s.tagName!==s.tagExp&&s.attrExpPresent&&(f[":@"]=this.buildAttributesMap(s.tagExp,r,s.tagName)),this.addChild(t,f,r)}a=s.closeIndex+1}else if(e.substr(a+1,3)==="!--"){const s=he(e,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){const f=e.substring(a+4,s-2);i=this.saveTextToParentTag(i,t,r),t.add(this.options.commentPropName,[{[this.options.textNodeName]:f}])}a=s}else if(e.substr(a+1,2)==="!D"){const s=$o(e,a);this.docTypeEntities=s.entities,a=s.i}else if(e.substr(a+1,2)==="!["){const s=he(e,"]]>",a,"CDATA is not closed.")-2,f=e.substring(a+9,s);i=this.saveTextToParentTag(i,t,r);let o=this.parseTextData(f,t.tagname,r,!0,!1,!0,!0);o==null&&(o=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[{[this.options.textNodeName]:f}]):t.add(this.options.textNodeName,o),a=s+2}else{let s=Ft(e,a,this.options.removeNSPrefix),f=s.tagName;const o=s.rawTagName;let c=s.tagExp,_=s.attrExpPresent,u=s.closeIndex;this.options.transformTagName&&(f=this.options.transformTagName(f)),t&&i&&t.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,t,r,!1));const d=t;if(d&&this.options.unpairedTags.indexOf(d.tagname)!==-1&&(t=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),f!==n.tagname&&(r+=r?"."+f:f),this.isItStopNode(this.options.stopNodes,r,f)){let b="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)f[f.length-1]==="/"?(f=f.substr(0,f.length-1),r=r.substr(0,r.length-1),c=f):c=c.substr(0,c.length-1),a=s.closeIndex;else if(this.options.unpairedTags.indexOf(f)!==-1)a=s.closeIndex;else{const h=this.readStopNodeData(e,o,u+1);if(!h)throw new Error(`Unexpected end of ${o}`);a=h.i,b=h.tagContent}const v=new Pe(f);f!==c&&_&&(v[":@"]=this.buildAttributesMap(c,r,f)),b&&(b=this.parseTextData(b,f,r,!0,_,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),v.add(this.options.textNodeName,b),this.addChild(t,v,r)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){f[f.length-1]==="/"?(f=f.substr(0,f.length-1),r=r.substr(0,r.length-1),c=f):c=c.substr(0,c.length-1),this.options.transformTagName&&(f=this.options.transformTagName(f));const b=new Pe(f);f!==c&&_&&(b[":@"]=this.buildAttributesMap(c,r,f)),this.addChild(t,b,r),r=r.substr(0,r.lastIndexOf("."))}else{const b=new Pe(f);this.tagsNodeStack.push(t),f!==c&&_&&(b[":@"]=this.buildAttributesMap(c,r,f)),this.addChild(t,b,r),t=b}i="",a=u}}else i+=e[a];return n.child};function Xo(e,n,t){const i=this.options.updateTag(n.tagname,t,n[":@"]);i===!1||(typeof i=="string"&&(n.tagname=i),e.addChild(n))}const Ko=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){const t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){const t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){const t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function Go(e,n,t,i){return e&&(i===void 0&&(i=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,i),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function Yo(e,n,t){const i="*."+t;for(const r in e){const a=e[r];if(i===a||n===a)return!0}return!1}function qo(e,n,t=">"){let i,r="";for(let a=n;a<e.length;a++){let l=e[a];if(i)l===i&&(i="");else if(l==='"'||l==="'")i=l;else if(l===t[0])if(t[1]){if(e[a+1]===t[1])return{data:r,index:a}}else return{data:r,index:a};else l===" "&&(l=" ");r+=l}}function he(e,n,t,i){const r=e.indexOf(n,t);if(r===-1)throw new Error(i);return r+n.length-1}function Ft(e,n,t,i=">"){const r=qo(e,n+1,i);if(!r)return;let a=r.data;const l=r.index,s=a.search(/\s/);let f=a,o=!0;s!==-1&&(f=a.substring(0,s),a=a.substring(s+1).trimStart());const c=f;if(t){const _=f.indexOf(":");_!==-1&&(f=f.substr(_+1),o=f!==r.data.substr(_+1))}return{tagName:f,tagExp:a,closeIndex:l,attrExpPresent:o,rawTagName:c}}function Wo(e,n,t){const i=t;let r=1;for(;t<e.length;t++)if(e[t]==="<")if(e[t+1]==="/"){const a=he(e,">",t,`${n} is not closed`);if(e.substring(t+2,a).trim()===n&&(r--,r===0))return{tagContent:e.substring(i,t),i:a};t=a}else if(e[t+1]==="?")t=he(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=he(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=he(e,"]]>",t,"StopNode is not closed.")-2;else{const a=Ft(e,t,">");a&&((a&&a.tagName)===n&&a.tagExp[a.tagExp.length-1]!=="/"&&r++,t=a.closeIndex)}}function Zt(e,n,t){if(n&&typeof e=="string"){const i=e.trim();return i==="true"?!0:i==="false"?!1:Lo(e,t)}else return Zi.isExist(e)?e:""}var Jo=Zo,Mi={};function Qo(e,n){return Ui(e,n)}function Ui(e,n,t){let i;const r={};for(let a=0;a<e.length;a++){const l=e[a],s=Do(l);let f="";if(t===void 0?f=s:f=t+"."+s,s===n.textNodeName)i===void 0?i=l[s]:i+=""+l[s];else{if(s===void 0)continue;if(l[s]){let o=Ui(l[s],n,f);const c=tl(o,n);l[":@"]?el(o,l[":@"],f,n):Object.keys(o).length===1&&o[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?o=o[n.textNodeName]:Object.keys(o).length===0&&(n.alwaysCreateTextNode?o[n.textNodeName]="":o=""),r[s]!==void 0&&r.hasOwnProperty(s)?(Array.isArray(r[s])||(r[s]=[r[s]]),r[s].push(o)):n.isArray(s,f,c)?r[s]=[o]:r[s]=o}}}return typeof i=="string"?i.length>0&&(r[n.textNodeName]=i):i!==void 0&&(r[n.textNodeName]=i),r}function Do(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];if(i!==":@")return i}}function el(e,n,t,i){if(n){const r=Object.keys(n),a=r.length;for(let l=0;l<a;l++){const s=r[l];i.isArray(s,t+"."+s,!0,!0)?e[s]=[n[s]]:e[s]=n[s]}}}function tl(e,n){const{textNodeName:t}=n,i=Object.keys(e).length;return!!(i===0||i===1&&(e[t]||typeof e[t]=="boolean"||e[t]===0))}Mi.prettify=Qo;const{buildOptions:nl}=Wt,il=Jo,{prettify:rl}=Mi,al=Yt;let sl=class{constructor(n){this.externalEntities={},this.options=nl(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});const a=al.validate(n,t);if(a!==!0)throw Error(`${a.err.msg}:${a.err.line}:${a.err.col}`)}const i=new il(this.options);i.addExternalEntities(this.externalEntities);const r=i.parseXml(n);return this.options.preserveOrder||r===void 0?r:rl(r,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};var ol=sl;const ll=`
|