@abtnode/blocklet-services 1.17.7 → 1.17.8-beta-20260106-113136-b3c09e14
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/routes/blocklet.js +26 -2
- package/api/util/blocklet-utils.js +15 -0
- package/dist/assets/{AdapterDayjs-CIz_EOtQ.js → AdapterDayjs-DafRMFLg.js} +1 -1
- package/dist/assets/Community-3AO97CCq.js +1 -0
- package/dist/assets/{Google-UUKF9aLU.js → Google-DRu937I3.js} +1 -1
- package/dist/assets/Holiday-CqSw2e8m.js +1 -0
- package/dist/assets/Meeting-DKbNRI16.js +1 -0
- package/dist/assets/OffSick-BvEREz3_.js +1 -0
- package/dist/assets/WorkingRemotely-DNtYHcSB.js +1 -0
- package/dist/assets/{access-control-BvVaKG93.js → access-control-cgo5Z15_.js} +1 -1
- package/dist/assets/{add-component-core-DuwLtUBl.js → add-component-core-BfzNEcS5.js} +7 -7
- package/dist/assets/{add-resource-DSF4-AYI.js → add-resource-CYRgZ1ps.js} +1 -1
- package/dist/assets/addon-qN24wAb4.js +14 -0
- package/dist/assets/advanced-1Vu6rcXU.js +14 -0
- package/dist/assets/{aigne-B-7qxD7r.js → aigne-D6MrXXCU.js} +1 -1
- package/dist/assets/api-DwxIBXZs.js +1 -0
- package/dist/assets/{appearance-DpKwY0o1.js → appearance-DOQHBg9p.js} +1 -1
- package/dist/assets/arrow-down.svg-7ME6T1BL.js +1 -0
- package/dist/assets/{audit-logs-BW1TvN0z.js → audit-logs-ISyoqJFp.js} +2 -2
- package/dist/assets/{authorize-BwNdnPft.js → authorize-B9RLEFal.js} +1 -1
- package/dist/assets/{base-chart-ChBZtUEG.js → base-chart-DhxjAyBU.js} +1 -1
- package/dist/assets/base32-_D4eWUeh.js +1 -0
- package/dist/assets/bind-account-CLIjYy96.js +1 -0
- package/dist/assets/{branding-40UKivXV.js → branding-C81Kt22j.js} +1 -1
- package/dist/assets/{branding-CUwzFTtf.js → branding-iwUveEf5.js} +2 -2
- package/dist/assets/branding-myiZl37D.js +1 -0
- package/dist/assets/{bundle-avatar-DJ_-4AO_.js → bundle-avatar-Cc_6nw01.js} +1 -1
- package/dist/assets/button-D-lyR9BW.js +1 -0
- package/dist/assets/{click-to-copy-CBd8B_uk.js → click-to-copy-CMo42VnK.js} +1 -1
- package/dist/assets/cloneDeep-BY8zW7hH.js +1 -0
- package/dist/assets/{complete-DCZaPQL5.js → complete-CJ_buCAS.js} +4 -4
- package/dist/assets/{component-CIlZ9gz_.js → component-Dip3v1Iq.js} +3 -3
- package/dist/assets/config-44sI5I0w.js +53 -0
- package/dist/assets/{config-DCwReZ_J.js → config-D5KnWqfn.js} +1 -1
- package/dist/assets/{config-BFSglxmm.js → config-D8XZj8JI.js} +2 -2
- package/dist/assets/{config-navigation-D47x55_t.js → config-navigation-Ni0iczgA.js} +8 -8
- package/dist/assets/config-space-B6_f52sE.js +1 -0
- package/dist/assets/{confirm-DQlu79Sm.js → confirm-Lb1MrAdS.js} +1 -1
- package/dist/assets/connect-0OZVqJvc.js +1 -0
- package/dist/assets/connect-B9GQZEi7.js +5 -0
- package/dist/assets/connect-BV6BUhDJ.css +1 -0
- package/dist/assets/connect-JAX_oP3o.js +5 -0
- package/dist/assets/{connect-to-B_iWUbwW.js → connect-to-Djgj6TLg.js} +1 -1
- package/dist/assets/{create-passport-svg-BwkPTICE.js → create-passport-svg-5AYzBKFb.js} +1 -1
- package/dist/assets/createClass-DXYd7BIe.js +1 -0
- package/dist/assets/{dashboard-Bu3a5Px4.js → dashboard-C0l2IWWH.js} +7 -7
- package/dist/assets/{delete-confirm-BIuv3oO4.js → delete-confirm-tbfLqDBI.js} +1 -1
- package/dist/assets/did-address-CsOJBoiY.js +1 -0
- package/dist/assets/{domain--lKnmb8L.js → domain-CnhOsdmM.js} +1 -1
- package/dist/assets/{domain-action-card-B5bWcTCx.js → domain-action-card-BsdHbhEi.js} +2 -2
- package/dist/assets/domains-DRP2VSvO.js +1 -0
- package/dist/assets/edit.svg-CTE5eATX.js +1 -0
- package/dist/assets/email-Dt_DGuhf.js +17 -0
- package/dist/assets/engine-BXGX_w-S.js +1 -0
- package/dist/assets/exchange-passport-DztKvBat.js +1 -0
- package/dist/assets/{form-DcGl-E0U.js → form-DoC8uBcB.js} +3 -3
- package/dist/assets/{form-text-input-DNXpKwew.js → form-text-input-XjloVwBd.js} +2 -2
- package/dist/assets/{fuel-tsazXQKp.js → fuel-IaJHNPPW.js} +1 -1
- package/dist/assets/gen-access-key-BJlDqEhI.js +1 -0
- package/dist/assets/gen-simple-access-key-lyiUw0C-.js +1 -0
- package/dist/assets/get-safe-url-BiNPujaX.js +1 -0
- package/dist/assets/google-icon-vNOJy67F.js +1 -0
- package/dist/assets/{home-BN59HeAP.js → home-Bs_5YPbK.js} +1 -1
- package/dist/assets/{iframe-CC7bnIjL.js → iframe-Dqu4MSyW.js} +1 -1
- package/dist/assets/{index-ByMKy0IO.js → index-1HKgA-fz.js} +1 -1
- package/dist/assets/{index-keEY0SLH.js → index-B10SG1vs.js} +1 -1
- package/dist/assets/{index-CbjFdIdE.js → index-B4KKUWng.js} +2 -2
- package/dist/assets/{index-Bg5uZrWj.js → index-B4YCnemd.js} +1 -1
- package/dist/assets/index-B6DWjLJS.js +281 -0
- package/dist/assets/{index-H8MAN7us.js → index-B7_VUEoc.js} +1 -1
- package/dist/assets/index-B9LF8Bep.js +1 -0
- package/dist/assets/index-BDH_LtJL.js +1 -0
- package/dist/assets/{index-5n0QAOjO.js → index-BGhqVqit.js} +1 -1
- package/dist/assets/{index-D4cbtlCM.js → index-BNhv-9xy.js} +3 -3
- package/dist/assets/{index-BmeJ3mXz.js → index-BSZtxRM0.js} +2 -2
- package/dist/assets/{index-CLao_b9r.js → index-BWDWEkUF.js} +1 -1
- package/dist/assets/{index-CH-EXqMX.js → index-BWL6HE0j.js} +1 -1
- package/dist/assets/{index-D3AsXyHs.js → index-B_SjLIbT.js} +7 -7
- package/dist/assets/{index-mL2PjDd3.js → index-BhhZ8IDZ.js} +13 -13
- package/dist/assets/{index-JhIOETr8.js → index-BkePHcyK.js} +9 -9
- package/dist/assets/{index-DlTghgU6.js → index-BmXPp3DU.js} +1 -1
- package/dist/assets/{index-D1SIrheh.js → index-BsohFwTm.js} +1 -1
- package/dist/assets/index-CI_uwh_J.js +81 -0
- package/dist/assets/index-CQgzjKgB.js +1039 -0
- package/dist/assets/{index-Bc7P9fwl.js → index-CRZM3CKo.js} +2 -2
- package/dist/assets/index-CbiyJRV7.js +1 -0
- package/dist/assets/{index-BJ6le4Td.js → index-Cp0b8q3A.js} +1 -1
- package/dist/assets/{index-DJEbIkF6.js → index-Cq6z7yeF.js} +4 -4
- package/dist/assets/index-DT5AXPVB.js +200 -0
- package/dist/assets/{index-CNUfol2K.js → index-DctZHPFL.js} +1 -1
- package/dist/assets/{index-D0cfNfgL.js → index-Dfx19arA.js} +6 -6
- package/dist/assets/index-DhHvANH8.js +93 -0
- package/dist/assets/index-DrCTi6nm.css +1 -0
- package/dist/assets/{index-ETdrsXsn.js → index-G6Vk78zE.js} +3 -3
- package/dist/assets/{index-DMjWlw40.js → index-TYwJnR0n.js} +23 -23
- package/dist/assets/{index-CoWxyxJt.js → index-dbYkWwF4.js} +1 -1
- package/dist/assets/index-vP1T6V7V.js +120 -0
- package/dist/assets/info-outline-rounded-BIwvgXCK.js +1 -0
- package/dist/assets/invitation-CYFN9u5t.js +177 -0
- package/dist/assets/invitations-jY13RXbI.js +3 -0
- package/dist/assets/invite-D72FvaiG.js +1 -0
- package/dist/assets/{isURL-D4WfF4w_.js → isURL-CJRImg0N.js} +2 -2
- package/dist/assets/issue-passport-BfqkJF3W.js +1 -0
- package/dist/assets/{item-CwiqvF0e.js → item-5ZWPft2s.js} +1 -1
- package/dist/assets/landing-page-DRtId3hN.js +1 -0
- package/dist/assets/{layout-CdGgFfY4.js → layout-Be1KH57_.js} +1 -1
- package/dist/assets/{list-CVN6FKdL.js → list-CHI1rCEg.js} +3 -3
- package/dist/assets/list-CQtiNSih.js +2 -0
- package/dist/assets/localization-CKE-bHgd.js +1 -0
- package/dist/assets/lock.svg-CiT4rEpi.js +1 -0
- package/dist/assets/{log-Cox3P5_L.js → log-BfCFT05M.js} +1 -1
- package/dist/assets/logger-DU7baop2.js +1 -0
- package/dist/assets/login-BtsH3IvI.js +1 -0
- package/dist/assets/{login-oauth-callback-zq4hRJXC.js → login-oauth-callback-Ds4uYiRr.js} +1 -1
- package/dist/assets/{logo-uploader-6T6d75Q6.js → logo-uploader-lepUW_D7.js} +3 -3
- package/dist/assets/{lost-passport-DviehTF2.js → lost-passport-BtN3h1ya.js} +2 -2
- package/dist/assets/omit-CCIQ0Qdi.js +1 -0
- package/dist/assets/{open-window-_3kVydQ2.js → open-window-CNt8gsrN.js} +1 -1
- package/dist/assets/{over-due-invoice-payment-rAHkUVgY.js → over-due-invoice-payment-7TbnqqKX.js} +1 -1
- package/dist/assets/{overview-DSB1dlE4.js → overview-Be3tncsL.js} +3 -3
- package/dist/assets/passport-CkJ4B4CG.js +1 -0
- package/dist/assets/passport-item-Bhbm8_m6.js +1 -0
- package/dist/assets/{permission-CcdJMHov.js → permission-BHvrn0M5.js} +1 -1
- package/dist/assets/preferences-TFWtUYLy.js +1 -0
- package/dist/assets/profile-embed-B9f9hlSS.js +1 -0
- package/dist/assets/provider-icon-DQY2_LaP.js +1 -0
- package/dist/assets/publish-resource-CyvkVMG_.js +1 -0
- package/dist/assets/question-mark-circle.svg-GhTaklFN.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-DDZ1XDH7.js → react-beautiful-dnd.esm-D0JKrMDl.js} +4 -4
- package/dist/assets/revoke.svg-DUoaRyPZ.js +1 -0
- package/dist/assets/runtime-npJC4gp_.js +1 -0
- package/dist/assets/{sanitize-yVk8VEIO.js → sanitize-C-shWbtD.js} +1 -1
- package/dist/assets/sdk-CoWDgSLO.js +1 -0
- package/dist/assets/security-nSKpCl8B.js +22 -0
- package/dist/assets/server-logo-notext.svg-BLAdvsmP.js +1 -0
- package/dist/assets/{session-D-wwXXFW.js → session-C2ZBRIpv.js} +1 -1
- package/dist/assets/{setup-CgcKBlmf.js → setup-krkSJpAg.js} +1 -1
- package/dist/assets/simple-select-i16Vwzvl.js +1 -0
- package/dist/assets/{spaces-DGJd1uEt.js → spaces-BdZ_Rv3s.js} +1 -1
- package/dist/assets/start-y3zrboBQ.js +187 -0
- package/dist/assets/{starting-progress-DpUpXo1N.js → starting-progress-DI-J-VlX.js} +1 -1
- package/dist/assets/status-B8pB_mTB.js +1 -0
- package/dist/assets/{step-actions-BKMeYA5x.js → step-actions-B1ufIDaK.js} +1 -1
- package/dist/assets/{studio-BzkFXY4W.js → studio-1jwq0HOw.js} +1 -1
- package/dist/assets/{switch-CWBW7iKo.js → switch-CetbUrYR.js} +1 -1
- package/dist/assets/{switch-control-D9D8FbX3.js → switch-control-_85hc9FG.js} +1 -1
- package/dist/assets/{table-tips-B9_goTLn.js → table-tips-CMt22HEy.js} +1 -1
- package/dist/assets/team-DDjNXwXE.js +146 -0
- package/dist/assets/{traffic-DsUQQR3F.js → traffic-mcbpWOFq.js} +1 -1
- package/dist/assets/transfer-C66c3bWd.js +16 -0
- package/dist/assets/unsubscribe-Cvz0OKhq.js +1 -0
- package/dist/assets/{use-app-logo-BKJ912HX.js → use-app-logo-BuyF983S.js} +1 -1
- package/dist/assets/use-server-logo-Pbr_UuiI.js +1 -0
- package/dist/assets/{use-window-close-BVOSCf9h.js → use-window-close-B16QghYq.js} +1 -1
- package/dist/assets/{useAsync-DVl73fmG.js → useAsync-BVTh1KYj.js} +1 -1
- package/dist/assets/{useAsync-Dotoxibi.js → useAsync-ZGLJQow7.js} +1 -1
- package/dist/assets/{useAsyncRetry-r8dEPb-x.js → useAsyncRetry-BMmRgSGm.js} +1 -1
- package/dist/assets/{useLocalStorage-BmGa-RG8.js → useLocalStorage-De-EuH_M.js} +1 -1
- package/dist/assets/user-center-DQSoqc_z.js +125 -0
- package/dist/assets/user-follower-TTyja_sV.js +32 -0
- package/dist/assets/{util-DQmPydCJ.js → util-DuMKfKo8.js} +1 -1
- package/dist/assets/{util-CznlXimv.js → util-Ff3hwYmy.js} +1 -1
- package/dist/assets/{vendor-arcblock-DyliHtVF.js → vendor-arcblock-Cnwtqa7s.js} +19 -19
- package/dist/assets/{vendor-hooks-qxhUUbW5.js → vendor-hooks-BQWlJm53.js} +2 -2
- package/dist/assets/{vendor-utils-CxWN1dT3.js → vendor-utils-DCMKu06e.js} +3 -3
- package/dist/assets/{vendor-ux-IiqHAjMq.js → vendor-ux-B0gV9NvH.js} +92 -95
- package/dist/assets/{wait-connect-Co7Po2HJ.js → wait-connect-CRZmfXOA.js} +1 -1
- package/dist/assets/{wizard-tGxr6THv.js → wizard-B41kI39b.js} +1 -1
- package/dist/assets/{wizard-components-qCiwxNk8.js → wizard-components-Bn72hVOe.js} +2 -2
- package/dist/assets/wrap-locale-CF46rj6q.js +1 -0
- package/dist/assets/{zh-DL3Su93_.js → zh-BmX_fuoi.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +49 -49
- package/dist/assets/Community-CELsDteM.js +0 -1
- package/dist/assets/Holiday-DOCjSYjH.js +0 -1
- package/dist/assets/Meeting-BAXt_LiK.js +0 -1
- package/dist/assets/OffSick-BGEr8Nkc.js +0 -1
- package/dist/assets/WorkingRemotely-BcneAIXG.js +0 -1
- package/dist/assets/addon-CAO5ZUVe.js +0 -14
- package/dist/assets/advanced-D-_qy4C4.js +0 -14
- package/dist/assets/api-FQQlzPOP.js +0 -1
- package/dist/assets/arrow-down.svg-C4FUKwt4.js +0 -1
- package/dist/assets/base32-CmNHdxL7.js +0 -1
- package/dist/assets/bind-account-DOG2XJ6s.js +0 -1
- package/dist/assets/branding-lvlhWE2R.js +0 -1
- package/dist/assets/button-82FUWQ2H.js +0 -1
- package/dist/assets/cloneDeep-C2rlAYcK.js +0 -1
- package/dist/assets/config-Dzr61Ovu.js +0 -53
- package/dist/assets/config-space-D2mAEqFL.js +0 -1
- package/dist/assets/connect-Dd7NRVCL.js +0 -1
- package/dist/assets/connect-II0vWvpi.js +0 -5
- package/dist/assets/createClass-DVDZaC6q.js +0 -1
- package/dist/assets/did-address-h4uLp20A.js +0 -1
- package/dist/assets/domains-DTnBb4pb.js +0 -1
- package/dist/assets/edit.svg-RRSklUg-.js +0 -1
- package/dist/assets/email-bOQg3Ln3.js +0 -17
- package/dist/assets/engine-_hdQizRi.js +0 -1
- package/dist/assets/exchange-passport-B8J1z6zW.js +0 -1
- package/dist/assets/gen-access-key-DrfFQLFL.js +0 -1
- package/dist/assets/gen-simple-access-key-CnP2yUd7.js +0 -1
- package/dist/assets/get-safe-url-DaqBo3hv.js +0 -1
- package/dist/assets/index-55ZI5Xlz.js +0 -200
- package/dist/assets/index-BDmLm9RE.js +0 -93
- package/dist/assets/index-BORuOqqa.js +0 -1
- package/dist/assets/index-ByEZTgqv.js +0 -120
- package/dist/assets/index-CXyo5mo3.js +0 -1
- package/dist/assets/index-DG0EDext.js +0 -1039
- package/dist/assets/index-DPByvHrj.js +0 -281
- package/dist/assets/index-DZyT0N9R.js +0 -81
- package/dist/assets/index-DrVXX4fX.css +0 -1
- package/dist/assets/invitation-0lU4EchQ.js +0 -177
- package/dist/assets/invitations-CSnyD-Wp.js +0 -3
- package/dist/assets/invite-8i_Oru_O.js +0 -1
- package/dist/assets/issue-passport-Br15qs7n.js +0 -1
- package/dist/assets/landing-page-q4NMkyjD.js +0 -1
- package/dist/assets/list-NP-91JKf.js +0 -2
- package/dist/assets/localization-DAE0Xt60.js +0 -1
- package/dist/assets/lock.svg-BgybwZNe.js +0 -1
- package/dist/assets/logger-BKK0qIc9.js +0 -1
- package/dist/assets/login-2zmJhcBe.js +0 -1
- package/dist/assets/omit-spWLSLbo.js +0 -1
- package/dist/assets/passport-DzlmGAGE.js +0 -1
- package/dist/assets/passport-item-DdvT-U5C.js +0 -1
- package/dist/assets/preferences-B3FTkTJx.js +0 -1
- package/dist/assets/profile-embed-Ds6zLGgv.js +0 -1
- package/dist/assets/publish-resource-CAbbkAX0.js +0 -1
- package/dist/assets/question-mark-circle.svg-CByEVDhb.js +0 -1
- package/dist/assets/revoke.svg-CNl4LAbv.js +0 -1
- package/dist/assets/runtime-BKJMYAui.js +0 -1
- package/dist/assets/sdk-DkjNLRKY.js +0 -1
- package/dist/assets/security-3Y4MabOo.js +0 -22
- package/dist/assets/server-logo-notext.svg-xZ-i1SpD.js +0 -1
- package/dist/assets/simple-select-qqtCC0US.js +0 -1
- package/dist/assets/start-Cu_Xr7Yd.js +0 -187
- package/dist/assets/status-qiMZo73y.js +0 -1
- package/dist/assets/team-DvyWlb8W.js +0 -146
- package/dist/assets/transfer-BU2gLE9m.js +0 -16
- package/dist/assets/unsubscribe-DpfMHut2.js +0 -1
- package/dist/assets/use-server-logo-Cv1kAPgB.js +0 -1
- package/dist/assets/user-center-8NTN-2CY.js +0 -125
- package/dist/assets/user-follower-C-xe6Fqb.js +0 -32
- package/dist/assets/wrap-locale-BdDblHwV.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W as p,at as M,ar as j,an as M1,am as j1,T as B,a6 as F,ac as Z1,ad as S1,aW as V1,s as Z}from"./vendor-mui-core-DnR6WYuU.js";import{l as S,
|
|
1
|
+
import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W as p,at as M,ar as j,an as M1,am as j1,T as B,a6 as F,ac as Z1,ad as S1,aW as V1,s as Z}from"./vendor-mui-core-DnR6WYuU.js";import{l as S,t as E1,H as D1,g as H1,a as U1,M as B1,m as F1}from"./vendor-ux-B0gV9NvH.js";import{l as z1}from"./vendor-utils-DCMKu06e.js";import{r as b,g as K}from"./vendor-react-CTtPmzVP.js";import{g as O1,a as N1}from"./vendor-hooks-BQWlJm53.js";function T1({children:e=null,relative:t="screen"}){let i={};return t==="parent"&&(i={width:"100%",height:"100%"}),a.jsx(A1,{style:i,children:e})}const A1=S("div")`
|
|
2
2
|
flex: 1;
|
|
3
3
|
width: 100vw;
|
|
4
4
|
height: 100vh;
|
|
@@ -6,7 +6,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
6
6
|
display: flex;
|
|
7
7
|
justify-content: center;
|
|
8
8
|
align-items: center;
|
|
9
|
-
`;
|
|
9
|
+
`;function G1({height:e,...t}){return a.jsx(I1,{height:e,...t})}const I1=S(k)`
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
&:before {
|
|
12
12
|
content: '';
|
|
@@ -19,7 +19,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
19
19
|
float: left;
|
|
20
20
|
white-space: nowrap;
|
|
21
21
|
}
|
|
22
|
-
`;function Q({children:e,...t}){return a.jsx(k,{sx:{display:"flex",alignItems:"center",gap:1.5,"> *":{m:"0px!important"},".MuiIconButton-root":{width:32,height:32,p:0,border:1,borderColor:"divider"},".MuiIconButton-root svg, .MuiButton-root svg":{fontSize:18,width:"1em!important",height:"1em!important"},".arc-session-user-logged-in > *, .arc-session-user-logged-in svg":{width:"100%!important",height:"100%!important"},".arc-session-user-unlogin svg":{transform:"scale(1)!important"}},...t,children:e})}function Y({logo:e=null,brand:t=null,brandAddon:i=null,description:l=null,children:n=null,addons:o=null,prepend:r=null,align:h="left",maxWidth:d=!1,homeLink:f="/",...g}){const L=b.useRef(null),[c,u]=b.useState("0px"),x={minWidth:c};return b.useEffect(()=>{const{searchParams:y}=new URL(window.location.href);y.get("inviter")&&window.localStorage.setItem("inviter",y.get("inviter")),L.current&&u(`${L.current.offsetWidth}px`)},[]),a.jsx(
|
|
22
|
+
`;function Q({children:e,...t}){return a.jsx(k,{sx:{display:"flex",alignItems:"center",gap:1.5,"> *":{m:"0px!important"},".MuiIconButton-root":{width:32,height:32,p:0,border:1,borderColor:"divider"},".MuiIconButton-root svg, .MuiButton-root svg":{fontSize:18,width:"1em!important",height:"1em!important"},".arc-session-user-logged-in > *, .arc-session-user-logged-in svg":{width:"100%!important",height:"100%!important"},".arc-session-user-unlogin svg":{transform:"scale(1)!important"}},...t,children:e})}function Y({logo:e=null,brand:t=null,brandAddon:i=null,description:l=null,children:n=null,addons:o=null,prepend:r=null,align:h="left",maxWidth:d=!1,homeLink:f="/",...g}){const L=b.useRef(null),[c,u]=b.useState("0px"),x={minWidth:c};return b.useEffect(()=>{const{searchParams:y}=new URL(window.location.href);y.get("inviter")&&window.localStorage.setItem("inviter",y.get("inviter")),L.current&&u(`${L.current.offsetWidth}px`)},[]),a.jsx(_1,{...g,children:a.jsxs(q,{maxWidth:d,className:"header-container",children:[r,a.jsx("div",{className:"header-brand-wrapper",style:x,children:(()=>{const y=a.jsxs(a.Fragment,{children:[e&&a.jsx("div",{className:"header-logo",ref:L,children:e}),t&&a.jsx(G1,{height:44,sx:{flexShrink:{xs:1}},children:a.jsxs("div",{className:"header-brand",children:[a.jsx("div",{className:"header-brand-title",children:a.jsx("h2",{children:t})}),a.jsx("div",{className:"header-brand-desc",children:l})]})})]});return typeof f=="function"?f(y):a.jsx("a",{href:f,children:y})})()}),a.jsx("div",{className:"header-brand-addon",children:i}),h==="right"&&a.jsx(k,{sx:{display:"inline-block",flexGrow:1}}),n,h==="left"&&a.jsx(k,{sx:{display:"inline-block",flexGrow:1}}),a.jsx(Q,{className:"header-addons",children:o})]})})}const _1=S(k)`
|
|
23
23
|
position: relative;
|
|
24
24
|
font-size: 14px;
|
|
25
25
|
z-index: ${({theme:e})=>e.zIndex.appBar};
|
|
@@ -115,7 +115,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
`;function
|
|
118
|
+
`;function Se({prepend:e,children:t=null,...i}){const l=J(),n=N(l.breakpoints.down("md")),[o,r]=b.useState(!1),h=typeof t=="function"?t({isMobile:n,closeMenu:()=>r(!1)}):t,d=O1({changed:!1,value:"",priority:""});return N1(()=>{if(document.documentElement?.style){const f=()=>{d.changed&&(d.value?document.documentElement.style.setProperty("overflow",d.value,d.priority):document.documentElement.style.removeProperty("overflow"),d.value="",d.priority="",d.changed=!1)};return o?(d.changed=!0,d.value=document.documentElement.style.getPropertyValue("overflow"),d.priority=document.documentElement.style.getPropertyPriority("overflow"),document.documentElement.style.setProperty("overflow","revert","important")):f(),f}return()=>{}},[o]),t?a.jsxs(P1,{prepend:e||a.jsx(U,{sx:{color:l.palette.grey[500]},className:"header-menu","aria-label":"header menu button",onClick:()=>r(!o),children:o?a.jsx(k1,{}):a.jsx($1,{})}),...i,children:[!n&&h,n&&a.jsx(C1,{open:o,onClose:()=>r(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:void 0},anchor:"top",sx:{top:64,zIndex:l.zIndex.appBar-1},slotProps:{paper:{sx:{top:64,bottom:0,boxShadow:"none",backgroundImage:"none",backgroundColor:l.palette.background.paper,"& .navmenu.navmenu--inline":{margin:0,padding:0}}}},children:a.jsx(R1,{children:h})})]}):a.jsx(Y,{prepend:e,...i})}const P1=S(Y)`
|
|
119
119
|
.header-menu {
|
|
120
120
|
display: none;
|
|
121
121
|
}
|
|
@@ -129,7 +129,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
129
129
|
margin-right: 8px;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
132
|
+
`,R1=S(q)`
|
|
133
133
|
padding-top: 8px;
|
|
134
134
|
padding-bottom: 16px;
|
|
135
135
|
.navmenu {
|
|
@@ -139,7 +139,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
139
139
|
border: 0;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
`,E={"did-space":{start:"#7D3AC5",end:"#9761D1"},"app-space":{start:"#6CC68D",end:"#47B871"},"app-purchase":{start:"#DE7021",end:"#E48D4E"},"app-passport":{start:"#3882C7",end:"#7AB2F6"},"app-kyc":{start:"#3882C7",end:"#7AB2F6"}},z=["#E94E4E","#E41115","#E96B4E","#E5502E","#E98F4E","#E57A2E","#E98F4E","#E5A82E","#DACD5D","#DAC825","#BDD13D","#C8E31C","#AEE94E","#7FD558","#52CC19","#4FC469","#59DE9C","#19CC73","#5ED9D1","#19CCC0","#4ED7E9","#19B7CC","#45ACE8","#1C97DE","#4E68E9","#2E4DE5","#7F4EE9","#682EE5","#BE65E7","#AF40E2","#DF58C2","#E94E8F"];function X(e){const t=e.replace("#",""),i=parseInt(t.slice(0,2),16)/255,l=parseInt(t.slice(2,4),16)/255,n=parseInt(t.slice(4,6),16)/255,o=Math.max(i,l,n),r=Math.min(i,l,n);let h,d;const f=(o+r)/2;if(o===r)h=0,d=0;else{const g=o-r;switch(d=f>.5?g/(2-o-r):g/(o+r),o){case i:h=(l-n)/g+(l<n?6:0);break;case l:h=(n-i)/g+2;break;case n:h=(i-l)/g+4;break}h/=6}return[h,d,f]}function O(e,t,i){let l,n,o;if(t===0)l=i,n=i,o=i;else{const r=(f,g,L)=>{let c=L;return c<0&&(c+=1),c>1&&(c-=1),c<.16666666666666666?f+(g-f)*6*c:c<.5?g:c<.6666666666666666?f+(g-f)*(.6666666666666666-c)*6:f},h=i<.5?i*(1+t):i+t-i*t,d=2*i-h;l=r(d,h,e+1/3),n=r(d,h,e),o=r(d,h,e-1/3)}return`#${[Math.round(l*255),Math.round(n*255),Math.round(o*255)].map(r=>r.toString(16).padStart(2,"0")).join("")}`}function e1(e){if(e){const t=X(e),i=[t[0]];t[1]>.7?i.push(.7):i.push(t[1]),t[2]>.6?i.push(.6):t[2]<.3?i.push(.3):i.push(t[2]);const l=[i[0],i[1],i[2]-.1],n=O(...i);return{start:O(...l),end:n}}return E["app-passport"]}function t1(e){return`#${
|
|
142
|
+
`,E={"did-space":{start:"#7D3AC5",end:"#9761D1"},"app-space":{start:"#6CC68D",end:"#47B871"},"app-purchase":{start:"#DE7021",end:"#E48D4E"},"app-passport":{start:"#3882C7",end:"#7AB2F6"},"app-kyc":{start:"#3882C7",end:"#7AB2F6"}},z=["#E94E4E","#E41115","#E96B4E","#E5502E","#E98F4E","#E57A2E","#E98F4E","#E5A82E","#DACD5D","#DAC825","#BDD13D","#C8E31C","#AEE94E","#7FD558","#52CC19","#4FC469","#59DE9C","#19CC73","#5ED9D1","#19CCC0","#4ED7E9","#19B7CC","#45ACE8","#1C97DE","#4E68E9","#2E4DE5","#7F4EE9","#682EE5","#BE65E7","#AF40E2","#DF58C2","#E94E8F"];function X(e){const t=e.replace("#",""),i=parseInt(t.slice(0,2),16)/255,l=parseInt(t.slice(2,4),16)/255,n=parseInt(t.slice(4,6),16)/255,o=Math.max(i,l,n),r=Math.min(i,l,n);let h,d;const f=(o+r)/2;if(o===r)h=0,d=0;else{const g=o-r;switch(d=f>.5?g/(2-o-r):g/(o+r),o){case i:h=(l-n)/g+(l<n?6:0);break;case l:h=(n-i)/g+2;break;case n:h=(i-l)/g+4;break}h/=6}return[h,d,f]}function O(e,t,i){let l,n,o;if(t===0)l=i,n=i,o=i;else{const r=(f,g,L)=>{let c=L;return c<0&&(c+=1),c>1&&(c-=1),c<.16666666666666666?f+(g-f)*6*c:c<.5?g:c<.6666666666666666?f+(g-f)*(.6666666666666666-c)*6:f},h=i<.5?i*(1+t):i+t-i*t,d=2*i-h;l=r(d,h,e+1/3),n=r(d,h,e),o=r(d,h,e-1/3)}return`#${[Math.round(l*255),Math.round(n*255),Math.round(o*255)].map(r=>r.toString(16).padStart(2,"0")).join("")}`}function e1(e){if(e){const t=X(e),i=[t[0]];t[1]>.7?i.push(.7):i.push(t[1]),t[2]>.6?i.push(.6):t[2]<.3?i.push(.3):i.push(t[2]);const l=[i[0],i[1],i[2]-.1],n=O(...i);return{start:O(...l),end:n}}return E["app-passport"]}function t1(e){return`#${E1(D1.SHA3.hash224(e)).slice(-6)}`}function W1(e){return e1(t1(e))}const s=(e,t)=>[e,t].join("-"),q1=228,J1=258,K1=e=>/^(0x)?[0-9a-f]{40}$/i.test(e),Q1=e=>{const t=Uint8Array.from(e.slice(2).match(/.{1,2}/g).map(i=>parseInt(i,16))).slice(0,8).reduce((i,l)=>i+l,0)%z.length;return z[t]},i1=(e,t=5)=>e.length>2*t?`${e.slice(0,t)}..${e.slice(-t)}`:e,l1=(e,t,i)=>e==="did-space"?(l,n,o)=>`<svg
|
|
143
143
|
width="${n}"
|
|
144
144
|
height="${o}"
|
|
145
145
|
viewBox="0 0 228 258"
|
|
@@ -647,7 +647,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
647
647
|
${e.value}
|
|
648
648
|
</tspan>
|
|
649
649
|
</text>
|
|
650
|
-
</g>`},r1=(e,t,i=10)=>{const l=e.replace("did:abt:",""),n=
|
|
650
|
+
</g>`},r1=(e,t,i=10)=>{const l=e.replace("did:abt:",""),n=K1(l),o=n?Q1(l):H1(l).color,r=`<g id="${s(t,"did-prefix")}" transform="translate(24, 210)" height="14">
|
|
651
651
|
<text
|
|
652
652
|
x="0"
|
|
653
653
|
y="8"
|
|
@@ -903,7 +903,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
903
903
|
<feDisplacementMap in="SourceGraphic" in2="noise" scale="10" xChannelSelector="R" yChannelSelector="R" />
|
|
904
904
|
</filter>
|
|
905
905
|
</defs>
|
|
906
|
-
</g>`}return""},h1=(e=8)=>[...Array(e)].map(()=>Math.random().toString(36)[2]).join(""),
|
|
906
|
+
</g>`}return""},h1=(e=8)=>[...Array(e)].map(()=>Math.random().toString(36)[2]).join(""),Y1=e=>{const t=e.id||h1(8),i=e.width||q1,l=e.height||J1,n=e.color||E[e.variant]||E["app-passport"],o=l1(e.variant,t,n),r=a1(e.variant,t,e.header),h=n1(e.issuer,t,e.variant),d=s1(e.extra,t,e.variant),f=c1(e.verifiable,e.chain,t),g=e.variant!=="app-kyc"?r1(e.did,t):"",L=p1(e.tag,e.tagVariant,t);return o([r,h,d,f,g,L].filter(Boolean).join(""),i,l)},Ve=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_COLORS:E,MOTIF_COLORS:z,formatDid:i1,getBadgesSvg:c1,getChainBadge:d1,getDidSvg:r1,getExtraSvg:s1,getHeaderSvg:a1,getIssuerSvg:n1,getLayoutSvg:l1,getNftBGColor:e1,getNftBGColorFromDid:W1,getPassportColorFromDid:t1,getSvg:Y1,getTagSvg:p1,getVerifiableBadge:o1,hslToRgb:O,nanoid:h1,rgbToHsl:X},Symbol.toStringTag,{value:"Module"})),f1=b.createContext(),{Provider:X1}=f1,I=(e,t,i=window.location.pathname.replace(/\/$/,"/"))=>e?t?e===i:new RegExp(e).test(i):!1;function ee({children:e,steps:t,mode:i="history"}){const[l,n]=b.useState("");!l&&t.length&&n(t[0].key);const o=t.map(c=>c.children?[{key:c.key,hasChild:!0},c.children.map(u=>({parentKey:c.key,key:u.key}))]:{key:c.key}).flat(1/0),r=o.filter(c=>!c.hasChild),h=c=>{let u;const x=o.findIndex(m=>m.key===l?(u=m.parentKey,!0):!1);if(u===c)return"current";const y=o.findIndex(m=>m.key===c);if(y!==-1){if(y===x)return"current";if(y<x)return"before"}return"after"};function d(c){n(c)}function f(c){if(typeof c=="function"){const u=c(r.findIndex(x=>x.key===l));n(r[u].key)}else n(r[c].key)}const g=r.findIndex(c=>c.key===l);b.useEffect(()=>{if(i==="history"){let c="";t.some(u=>u.children&&u.children.length?u.children.some(x=>I(x.path,x.exact)?(c=x.key,!0):!1):I(u.path,u.exact)?(c=u.key,!0):!1),c&&n(c)}return()=>{}},[t,i]);const L={steps:t,totalStepsCount:r.length,getStepStatus:h,setActiveStepByKey:d,setActiveStepByIndex:f,activeStep:g,canBackToStep:c=>i==="memory"&&g!==0&&c<g};return a.jsx(X1,{value:L,children:e})}function g1(){return b.use(f1)}ee.propTypes={children:p.any.isRequired,steps:p.array.isRequired,mode:p.string};var D,_;function te(){if(_)return D;_=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function i(l){if(l==null)return!0;if(typeof l=="boolean")return!1;if(typeof l=="number")return l===0;if(typeof l=="string"||typeof l=="function"||Array.isArray(l))return l.length===0;if(l instanceof Error)return l.message==="";if(l.toString==t)switch(l.toString()){case"[object File]":case"[object Map]":case"[object Set]":return l.size===0;case"[object Object]":{for(var n in l)if(e.call(l,n))return!1;return!0}}return!1}return D=i,D}var ie=te();const le=K(ie);var V={exports:{}},ae=V.exports,P;function ne(){return P||(P=1,function(e){(function(t,i,l){e.exports?e.exports=l():i[t]=l()})("urljoin",ae,function(){function t(i){var l=[];if(i.length===0)return"";if(typeof i[0]!="string")throw new TypeError("Url must be a string. Received "+i[0]);if(i[0].match(/^[^/:]+:\/*$/)&&i.length>1){var n=i.shift();i[0]=n+i[0]}i[0].match(/^file:\/\/\//)?i[0]=i[0].replace(/^([^/:]+):\/*/,"$1:///"):i[0]=i[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o<i.length;o++){var r=i[o];if(typeof r!="string")throw new TypeError("Url must be a string. Received "+r);r!==""&&(o>0&&(r=r.replace(/^[\/]+/,"")),o<i.length-1?r=r.replace(/[\/]+$/,""):r=r.replace(/[\/]+$/,"/"),l.push(r))}var h=l.join("/");h=h.replace(/\/(\?|&|#[^!])/g,"$1");var d=h.split("?");return h=d.shift()+(d.length>0?"?":"")+d.join("&"),h}return function(){var i;return typeof arguments[0]=="object"?i=arguments[0]:i=[].slice.call(arguments),t(i)}})}(V)),V.exports}var se=ne();const re=K(se),oe=""+window.__toCdnUrl("assets/blocklet-default-logo-Bspnu_ws.png"),H={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},de=e=>H[e]?H[e]:H.en,ce=e=>e==="zh"?"启动":"Launching",R=e=>e?.title||e?.name||"";function T({blockletMeta:e={},subTitle:t="",logoUrl:i="",locale:l="",navLogo:n="",loading:o=!1}){const r=N(L=>L.breakpoints.down("md")),h=r?18:48,d=b.useRef(null),[f,g]=b.useState("");return b.useEffect(()=>{d.current&&d.current.offsetHeight>34&&(f===""?g("middle"):f==="middle"&&g("small"))},[f]),a.jsxs(ge,{className:f==="small"?"center-mode":"",children:[r?a.jsx("div",{className:"app-icon",children:n}):a.jsxs("div",{className:"app-icon",children:[o&&a.jsx(pe,{blockletSize:h,isMobile:r}),!o&&a.jsx(m1,{blockletSize:h,logoUrl:i})]}),a.jsxs("div",{className:"header-title",children:[r&&t&&a.jsx("div",{className:"header-title-sub",children:t}),a.jsxs("div",{className:"app-name-content",children:[!r&&a.jsx("div",{className:"launching-context",children:t||ce(l)}),a.jsx("div",{className:`header-title-name ${f==="middle"||f==="small"?"middle-size":""}`,ref:d,children:a.jsx(x1,{logoUrl:i,isMobile:r,blockletMeta:e,blockletSize:h,loading:o})})]})]})]})}T.propTypes={blockletMeta:p.object,subTitle:p.any,logoUrl:p.string,locale:p.string,navLogo:p.any,loading:p.bool};function pe({blockletSize:e,isMobile:t}){return t?a.jsx(j,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):a.jsx(j,{variant:"rectangular",width:e,height:e})}function m1({logoUrl:e,blockletSize:t}){return a.jsx(B1,{width:t,height:t,src:e,alt:"blocklet icon",fallback:oe,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${e}`)}function x1({isMobile:e,logoUrl:t,blockletMeta:i={},blockletSize:l,loading:n}){const o=R(i);return n?a.jsx(j,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):le(i)?a.jsx(j,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):e?a.jsxs(he,{children:[a.jsx(m1,{blockletSize:l,logoUrl:t}),a.jsx("span",{className:"ellipsis-title",children:R(i)})]}):a.jsx(fe,{className:"app-link",target:"_blank",href:re(i?.registryUrl||"",`/blocklets/${i?.did}`),title:o,children:o})}const he=M.div`
|
|
907
907
|
.ellipsis-title {
|
|
908
908
|
flex: 1;
|
|
909
909
|
position: absolute;
|
|
@@ -920,7 +920,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
920
920
|
width: calc(100% - 26px);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
|
-
`;x1.propTypes={blockletMeta:p.object};const
|
|
923
|
+
`;x1.propTypes={blockletMeta:p.object};const fe=M.a`
|
|
924
924
|
color: ${e=>e.theme.palette.text.primary};
|
|
925
925
|
text-decoration: none;
|
|
926
926
|
overflow: hidden;
|
|
@@ -952,7 +952,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
952
952
|
overflow: hidden;
|
|
953
953
|
text-overflow: ellipsis;
|
|
954
954
|
}
|
|
955
|
-
`,
|
|
955
|
+
`,ge=M.div`
|
|
956
956
|
display: flex;
|
|
957
957
|
justify-content: flex-start;
|
|
958
958
|
align-items: flex-start;
|
|
@@ -1061,7 +1061,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
|
-
`;function u1({blockletMeta:e,logoUrl:t="",locale:i="",useOfSkeleton:l=!1,subTitle:n="",loading:o=!1,extraNav:r=null,sx:h={}}){const{steps:d,activeStep:f,setActiveStepByKey:g,setActiveStepByIndex:L,getStepStatus:c,canBackToStep:u}=g1(),x=l?o:!1,y=(m,C)=>{const w=["step-block"],v=c(m.key);switch(v){case"current":w.push("step-active");break;case"before":w.push("step-checked");break}switch(m.showChild){case"activated":v==="after"&&w.push("hide-step-child");break;case"activating":(v==="after"||v==="before")&&w.push("hide-step-child");break;case"always":w.push("always-step-child");break}return m.optional===!0&&f<C&&w.push("step-optional"),w.join(" ")};return a.jsxs(
|
|
1064
|
+
`;function u1({blockletMeta:e,logoUrl:t="",locale:i="",useOfSkeleton:l=!1,subTitle:n="",loading:o=!1,extraNav:r=null,sx:h={}}){const{steps:d,activeStep:f,setActiveStepByKey:g,setActiveStepByIndex:L,getStepStatus:c,canBackToStep:u}=g1(),x=l?o:!1,y=(m,C)=>{const w=["step-block"],v=c(m.key);switch(v){case"current":w.push("step-active");break;case"before":w.push("step-checked");break}switch(m.showChild){case"activated":v==="after"&&w.push("hide-step-child");break;case"activating":(v==="after"||v==="before")&&w.push("hide-step-child");break;case"always":w.push("always-step-child");break}return m.optional===!0&&f<C&&w.push("step-optional"),w.join(" ")};return a.jsxs(me,{sx:h,children:[a.jsx(T,{blockletMeta:e,loading:o,logoUrl:t,locale:i,subTitle:n}),a.jsx(xe,{className:`${x?"hide-child-step-desc":""}`,children:d.map((m,C)=>{const w=!x&&u(C);return a.jsxs("div",{className:y(m,C),children:[a.jsx("div",{className:"step-icon",children:a.jsx(M1,{style:{fontSize:16}})}),a.jsx("div",{className:"step-line"}),a.jsxs("div",{className:"step-content",title:m.name,children:[a.jsx("span",{className:`step-content-name ${w?" step-clickable":""}`,onClick:()=>{if(w){if(m.key){g(m.key);return}L(C)}},children:x?a.jsx(j,{variant:"text",width:100}):m.name}),m.description&&a.jsx("div",{className:"step-desc",children:m.description}),m.children&&m.children.length&&a.jsx("div",{className:"step-children",children:m.children.map(v=>{let $="";switch(c(v.key)){case"before":$="step-child-block-checked";break;case"current":$="step-child-block-active";break}return a.jsx("div",{className:`step-child-block ${$}`,children:v.name},v.key)})})]})]},m.key)})}),r&&a.jsxs("div",{className:"extra-nav",children:[r.tooltipText?a.jsx(j1,{title:r.tooltipText,children:a.jsx(U,{variant:r.buttonProps?.variant||"text",onClick:()=>{r.link&&window.open(r.link,"_blank")},startIcon:r.icon,className:"extra-nav-button",size:"small",...r.buttonProps,children:r.text})}):a.jsx(U,{variant:r.buttonProps?.variant||"text",onClick:()=>{r.link&&window.open(r.link,"_blank")},startIcon:r.icon,size:"small",className:"extra-nav-button",...r.buttonProps,children:r.text}),r.description&&a.jsx(B,{variant:"caption",sx:{color:"text.secondary",mt:.5},component:"p",className:"extra-nav-description",children:r.description})]})]})}const me=M(k)`
|
|
1065
1065
|
overflow-y: auto;
|
|
1066
1066
|
display: flex;
|
|
1067
1067
|
flex-direction: column;
|
|
@@ -1109,7 +1109,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1109
1109
|
.extra-nav-button {
|
|
1110
1110
|
cursor: pointer;
|
|
1111
1111
|
}
|
|
1112
|
-
`,
|
|
1112
|
+
`,xe=M(k)`
|
|
1113
1113
|
display: flex;
|
|
1114
1114
|
flex-direction: column;
|
|
1115
1115
|
margin-top: 60px;
|
|
@@ -1312,7 +1312,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1312
1312
|
height: 24px;
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
`;u1.propTypes={blockletMeta:p.object.isRequired,logoUrl:p.string,locale:p.string,useOfSkeleton:p.bool,subTitle:p.string,loading:p.bool,extraNav:p.object,sx:p.any};function L1({value:e,size:t=10,style:i={},...l}){return a.jsxs(
|
|
1315
|
+
`;u1.propTypes={blockletMeta:p.object.isRequired,logoUrl:p.string,locale:p.string,useOfSkeleton:p.bool,subTitle:p.string,loading:p.bool,extraNav:p.object,sx:p.any};function L1({value:e,size:t=10,style:i={},...l}){return a.jsxs(ue,{style:{width:t,height:t,...i},...l,children:[a.jsx(F,{variant:"determinate",role:"progressbar",value:100,size:t,"aria-label":"decorative progress bar",thickness:10,sx:{color:"grey.300"}}),a.jsx(F,{variant:"determinate",value:e,role:"progressbar",size:t,thickness:10,"aria-label":"main progress bar"})]})}L1.propTypes={value:p.number.isRequired,size:p.number,style:p.object};const ue=M.span`
|
|
1316
1316
|
display: inline-block;
|
|
1317
1317
|
position: relative;
|
|
1318
1318
|
> * {
|
|
@@ -1322,14 +1322,14 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1322
1322
|
width: 100%;
|
|
1323
1323
|
height: 100%;
|
|
1324
1324
|
}
|
|
1325
|
-
`,A="72px",
|
|
1325
|
+
`,A="72px",Le=Z("div")`
|
|
1326
1326
|
box-sizing: border-box;
|
|
1327
1327
|
display: flex;
|
|
1328
1328
|
overflow: hidden;
|
|
1329
1329
|
width: 100%;
|
|
1330
1330
|
height: 100%;
|
|
1331
1331
|
padding-top: ${A};
|
|
1332
|
-
`,
|
|
1332
|
+
`,ye=Z("div")`
|
|
1333
1333
|
display: flex;
|
|
1334
1334
|
min-width: 900px;
|
|
1335
1335
|
max-width: ${e=>e.contentMaxWidth};
|
|
@@ -1344,7 +1344,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1344
1344
|
height: 100%;
|
|
1345
1345
|
max-height: 100%;
|
|
1346
1346
|
}
|
|
1347
|
-
`;function
|
|
1347
|
+
`;function we({blockletMeta:e={},loading:t=!1,children:i,logoUrl:l="",locale:n="en",header:o=null,headerEndAddons:r=null,pcWidth:h="80%",navLogo:d="",useOfSkeleton:f=!0,navSubTitle:g="",contentMaxWidth:L="1245px",theme:c=null,themeOverrides:u=null,extraNav:x=null,...y}){const m=J(),C=N(v1=>v1.breakpoints.down("md")),{activeStep:w,totalStepsCount:v}=g1(),$=e||{},w1=C?Le:ye,b1=de(n);d&&!b.isValidElement(d)&&z1(d)&&(C?d=d.mobile:d=a.jsx(Ce,{children:d.desktop}));const G=F1(m,c||{});return a.jsx(Z1,{injectFirst:!0,children:a.jsx(S1,{theme:G,children:a.jsx(V1,{theme:G,children:a.jsxs(ve,{...y,children:[a.jsxs(be,{maxWidth:L,width:h,className:"ll-header",children:[o&&o,!o&&a.jsxs(a.Fragment,{children:[C&&a.jsx("div",{className:"left",children:a.jsx(T,{blockletMeta:$,navLogo:d,subTitle:a.jsxs("span",{children:[`${g||b1.defaultNavSubTitle} ${w+1}/${v}`,a.jsx(L1,{value:(w+1)/v*100,style:{marginLeft:3}}),x&&a.jsx(B,{variant:"caption",className:"extra-nav-text",onClick:()=>{x.link&&window.open(x.link,"_blank")},sx:{ml:1,color:"primary.main",cursor:"pointer","&:hover":{opacity:.8}},children:x.appText||x.text})]}),logoUrl:l,locale:n,loading:t})}),d&&!C&&a.jsx("div",{className:"left",children:d}),r&&a.jsx(Q,{className:"right",children:r})]})]}),a.jsxs(w1,{contentMaxWidth:L,className:"ll-container",children:[a.jsx(u1,{sx:{display:{xs:"none",md:"block"}},locale:n,blockletMeta:$,logoUrl:l,useOfSkeleton:f,subTitle:g,loading:t,extraNav:x}),a.jsx(B,{component:"div",className:"layout-content",children:a.jsx(b.Suspense,{fallback:a.jsx(T1,{relative:"parent",children:a.jsx(F,{style:{marginTop:36}})}),children:i})})]})]})})})})}we.propTypes={loading:p.bool,blockletMeta:p.object,children:p.object.isRequired,logoUrl:p.string,locale:p.oneOf(["en","zh"]),header:p.any,headerEndAddons:p.any,pcWidth:p.any,pcHeight:p.any,contentMaxWidth:p.string,navLogo:p.oneOfType([p.node,p.object]),useOfSkeleton:p.bool,stepTip:p.string,navSubTitle:p.string,theme:p.object,themeOverrides:p.object,extraNav:p.object};const W=navigator.userAgent.toLocaleLowerCase();let y1="";W.includes("iphone os")&&W.includes("crios")&&(y1="height: calc(100vh - 60px);");const be=Z("header")`
|
|
1348
1348
|
width: ${e=>e.width||"80%"};
|
|
1349
1349
|
min-width: 900px;
|
|
1350
1350
|
box-sizing: border-box;
|
|
@@ -1373,7 +1373,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1373
1373
|
display: flex;
|
|
1374
1374
|
align-items: center;
|
|
1375
1375
|
}
|
|
1376
|
-
`,
|
|
1376
|
+
`,ve=Z("div")`
|
|
1377
1377
|
display: flex;
|
|
1378
1378
|
flex-direction: column;
|
|
1379
1379
|
justify-content: center;
|
|
@@ -1417,7 +1417,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1417
1417
|
padding: 16px;
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
`,
|
|
1420
|
+
`,Ce=Z("div")`
|
|
1421
1421
|
display: block;
|
|
1422
1422
|
margin-top: 4px;
|
|
1423
|
-
`;export{t1 as A,e1 as F,
|
|
1423
|
+
`;export{t1 as A,e1 as F,we as L,ee as P,g1 as T,Y1 as U,E as d,Ve as e,W1 as g,re as j,T1 as o,Q as s,Se as z};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{g as se,r as y,e as At}from"./vendor-react-CTtPmzVP.js";import{r as Dt,d as Ue,t as ke,g as B,i as Pt}from"./vendor-utils-
|
|
1
|
+
import{g as se,r as y,e as At}from"./vendor-react-CTtPmzVP.js";import{r as Dt,d as Ue,t as ke,g as B,i as Pt}from"./vendor-utils-DCMKu06e.js";var he={exports:{}};/*!
|
|
2
2
|
* JavaScript Cookie v2.2.1
|
|
3
3
|
* https://github.com/js-cookie/js-cookie
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
6
6
|
* Released under the MIT license
|
|
7
|
-
*/var Ae;function jt(){return Ae||(Ae=1,function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var s in u)a[s]=u[s]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,h,d){if(!(typeof document>"u")){d=r({path:"/"},a.defaults,d),typeof d.expires=="number"&&(d.expires=new Date(new Date*1+d.expires*864e5)),d.expires=d.expires?d.expires.toUTCString():"";try{var m=JSON.stringify(h);/^[\{\[]/.test(m)&&(h=m)}catch{}h=o.write?o.write(h,c):encodeURIComponent(String(h)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var p="";for(var g in d)d[g]&&(p+="; "+g,d[g]!==!0&&(p+="="+d[g].split(";")[0]));return document.cookie=c+"="+h+p}}function s(c,h){if(!(typeof document>"u")){for(var d={},m=document.cookie?document.cookie.split("; "):[],p=0;p<m.length;p++){var g=m[p].split("="),b=g.slice(1).join("=");!h&&b.charAt(0)==='"'&&(b=b.slice(1,-1));try{var E=n(g[0]);if(b=(o.read||o)(b,E)||n(b),h)try{b=JSON.parse(b)}catch{}if(d[E]=b,c===E)break}catch{}}return c?d[c]:d}}return a.set=u,a.get=function(c){return s(c,!1)},a.getJSON=function(c){return s(c,!0)},a.remove=function(c,h){u(c,"",r(h,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})}(he)),he.exports}var It=jt();const nn=se(It);var Lt=Dt();const Ft=se(Lt);var Bt=function(e){return function(t,r){var n=y.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},we=function(e,t){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},we(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");we(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var M=function(){return M=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},M.apply(this,arguments)};function Q(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Ge(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function Ke(e,t){return function(r,n){t(r,n,e)}}function $e(e,t,r,n,i,o){function a(C){if(C!==void 0&&typeof C!="function")throw new TypeError("Function expected");return C}for(var u=n.kind,s=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),d,m=!1,p=r.length-1;p>=0;p--){var g={};for(var b in n)g[b]=b==="access"?{}:n[b];for(var b in n.access)g.access[b]=n.access[b];g.addInitializer=function(C){if(m)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(C||null))};var E=(0,r[p])(u==="accessor"?{get:h.get,set:h.set}:h[s],g);if(u==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(d=a(E.get))&&(h.get=d),(d=a(E.set))&&(h.set=d),(d=a(E.init))&&i.unshift(d)}else(d=a(E))&&(u==="field"?i.unshift(d):h[s]=d)}c&&Object.defineProperty(c,n.name,h),m=!0}function Je(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Ye(e){return typeof e=="symbol"?e:"".concat(e)}function Xe(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Ze(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ee(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(h){try{c(n.next(h))}catch(d){a(d)}}function s(h){try{c(n.throw(h))}catch(d){a(d)}}function c(h){h.done?o(h.value):i(h.value).then(u,s)}c((n=n.apply(e,t||[])).next())})}function te(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(h){return s([c,h])}}function s(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(h){c=[6,h],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ce=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function Qe(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ce(t,e,r)}function N(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function et(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O(arguments[t]));return e}function oe(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function x(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function tt(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(p){return function(g){return Promise.resolve(g).then(p,d)}}function u(p,g){n[p]&&(i[p]=function(b){return new Promise(function(E,C){o.push([p,b,E,C])>1||s(p,b)})},g&&(i[p]=g(i[p])))}function s(p,g){try{c(n[p](g))}catch(b){m(o[0][3],b)}}function c(p){p.value instanceof G?Promise.resolve(p.value.v).then(h,d):m(o[0][2],p)}function h(p){s("next",p)}function d(p){s("throw",p)}function m(p,g){p(g),o.shift(),o.length&&s(o[0][0],o[0][1])}}function rt(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function nt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof N=="function"?N(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,s){a=e[o](a),i(u,s,a.done,a.value)})}}function i(o,a,u,s){Promise.resolve(s).then(function(c){o({value:c,done:u})},a)}}function it(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var zt=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},_e=function(e){return _e=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},_e(e)};function ot(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=_e(e),n=0;n<r.length;n++)r[n]!=="default"&&ce(t,e,r[n]);return zt(t,e),t}function at(e){return e&&e.__esModule?e:{default:e}}function ut(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function st(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function ct(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function ft(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Ht=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function lt(e){function t(o){e.error=e.hasError?new Ht(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function dt(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Nt={__extends:Ve,__assign:M,__rest:Q,__decorate:Ge,__param:Ke,__esDecorate:$e,__runInitializers:Je,__propKey:Ye,__setFunctionName:Xe,__metadata:Ze,__awaiter:ee,__generator:te,__createBinding:ce,__exportStar:Qe,__values:N,__read:O,__spread:et,__spreadArrays:oe,__spreadArray:x,__await:G,__asyncGenerator:tt,__asyncDelegator:rt,__asyncValues:nt,__makeTemplateObject:it,__importStar:ot,__importDefault:at,__classPrivateFieldGet:ut,__classPrivateFieldSet:st,__classPrivateFieldIn:ct,__addDisposableResource:ft,__disposeResources:lt,__rewriteRelativeImportExtension:dt},Wt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:ft,get __assign(){return M},__asyncDelegator:rt,__asyncGenerator:tt,__asyncValues:nt,__await:G,__awaiter:ee,__classPrivateFieldGet:ut,__classPrivateFieldIn:ct,__classPrivateFieldSet:st,__createBinding:ce,__decorate:Ge,__disposeResources:lt,__esDecorate:$e,__exportStar:Qe,__extends:Ve,__generator:te,__importDefault:at,__importStar:ot,__makeTemplateObject:it,__metadata:Ze,__param:Ke,__propKey:Ye,__read:O,__rest:Q,__rewriteRelativeImportExtension:dt,__runInitializers:Je,__setFunctionName:Xe,__spread:et,__spreadArray:x,__spreadArrays:oe,__values:N,default:Nt},Symbol.toStringTag,{value:"Module"}));var U=function(e){return typeof e=="function"},qt=function(e){return typeof e=="string"},fe=function(e){return typeof e=="number"},Ut=function(e){return typeof e>"u"};function L(e){var t=y.useRef(e);t.current=y.useMemo(function(){return e},[e]);var r=y.useRef(void 0);return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const Z=Bt(y.useEffect);var vt=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,s=u===void 0?[]:u,c=t.refreshDepsAction,h=y.useRef(!1);return h.current=!1,Z(function(){!r&&i&&(h.current=!0,e.run.apply(e,x([],O(a),!1)))},[i]),Z(function(){h.current||r||(h.current=!0,c?c():e.refresh())},x([],O(s),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};vt.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function Ee(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var Te=function(e,t){var r=y.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Ee(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function z(e){var t=y.useRef(e);return t.current=e,t}var k=function(e){var t=z(e);y.useEffect(function(){return function(){t.current()}},[])},ne=new Map,kt=function(e,t,r){var n=ne.get(e);n?.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){ne.delete(e)},t)),ne.set(e,M(M({},r),{timer:i}))},Vt=function(e){return ne.get(e)},ie=new Map,Gt=function(e){return ie.get(e)},Kt=function(e,t){ie.set(e,t),t.then(function(r){return ie.delete(e),r}).catch(function(){ie.delete(e)})},q={},$t=function(e,t){q[e]&&q[e].forEach(function(r){return r(t)})},pe=function(e,t){return q[e]||(q[e]=[]),q[e].push(t),function(){var n=q[e].indexOf(t);q[e].splice(n,1)}},Jt=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,s=t.getCache,c=y.useRef(void 0),h=y.useRef(void 0),d=function(p,g){u?u(g):kt(p,i,g),$t(p,g.data)},m=function(p,g){return g===void 0&&(g=[]),s?s(g):Vt(p)};return Te(function(){if(r){var p=m(r);p&&Object.hasOwnProperty.call(p,"data")&&(e.state.data=p.data,e.state.params=p.params,(a===-1||Date.now()-p.time<=a)&&(e.state.loading=!1)),c.current=pe(r,function(g){e.setState({data:g})})}},[]),k(function(){var p;(p=c.current)===null||p===void 0||p.call(c)}),r?{onBefore:function(p){var g=m(r,p);return!g||!Object.hasOwnProperty.call(g,"data")?{}:a===-1||Date.now()-g.time<=a?{loading:!1,data:g?.data,error:void 0,returnNow:!0}:{data:g?.data,error:void 0}},onRequest:function(p,g){var b=Gt(r);return b&&b!==h.current?{servicePromise:b}:(b=p.apply(void 0,x([],O(g),!1)),h.current=b,Kt(r,b),{servicePromise:b})},onSuccess:function(p,g){var b;r&&((b=c.current)===null||b===void 0||b.call(c),d(r,{data:p,params:g,time:Date.now()}),c.current=pe(r,function(E){e.setState({data:E})}))},onMutate:function(p){var g;r&&((g=c.current)===null||g===void 0||g.call(c),d(r,{data:p,params:e.state.params,time:Date.now()}),c.current=pe(r,function(b){e.setState({data:b})}))}}:{}},Yt=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=y.useRef(void 0),u=y.useMemo(function(){var s={};return n!==void 0&&(s.leading=n),i!==void 0&&(s.trailing=i),o!==void 0&&(s.maxWait=o),s},[n,i,o]);return y.useEffect(function(){if(r){var s=e.runAsync.bind(e);return a.current=Ue(function(c){c()},r,u),e.runAsync=function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return new Promise(function(d,m){var p;(p=a.current)===null||p===void 0||p.call(a,function(){s.apply(void 0,x([],O(c),!1)).then(d).catch(m)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=s}}},[r,u]),r?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel()}}:{}},Xt=function(e,t){var r=t.loadingDelay,n=t.ready,i=y.useRef(void 0);if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},W=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ce(){return W?document.visibilityState!=="hidden":!0}var Y=[];function Zt(e){return Y.push(e),function(){var r=Y.indexOf(e);Y.splice(r,1)}}if(W){var Qt=function(){if(Ce())for(var e=0;e<Y.length;e++){var t=Y[e];t()}};window.addEventListener("visibilitychange",Qt,!1)}var er=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=y.useRef(void 0),s=y.useRef(void 0),c=y.useRef(0),h=function(){var d;u.current&&clearTimeout(u.current),(d=s.current)===null||d===void 0||d.call(s)};return Z(function(){r||h()},[r]),r?{onBefore:function(){h()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!Ce()?s.current=Zt(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){h()}}:{}};function tr(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,x([],O(n),!1)),setTimeout(function(){r=!1},t))}}var rr=function(){return W&&typeof navigator.onLine<"u"?navigator.onLine:!0},X=[];function nr(e){return X.push(e),function(){var r=X.indexOf(e);r>-1&&X.splice(r,1)}}if(W){var De=function(){if(!(!Ce()||!rr()))for(var e=0;e<X.length;e++){var t=X[e];t()}};window.addEventListener("visibilitychange",De,!1),window.addEventListener("focus",De,!1)}var ir=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=y.useRef(void 0),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return y.useEffect(function(){if(r){var u=tr(e.refresh.bind(e),i);o.current=nr(function(){u()})}return function(){a()}},[r,i]),k(function(){a()}),{}},or=function(e,t){var r=t.retryInterval,n=t.retryCount,i=y.useRef(void 0),o=y.useRef(0),a=y.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},ar=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=y.useRef(void 0),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),y.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=ke(function(s){s()},r,a),e.runAsync=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new Promise(function(h,d){var m;(m=o.current)===null||m===void 0||m.call(o,function(){u.apply(void 0,x([],O(s),!1)).then(h).catch(d)})})},function(){var s;e.runAsync=u,(s=o.current)===null||s===void 0||s.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},ur=function(e){y.useEffect(function(){e?.()},[])},ht=function(){var e=O(y.useState({}),2),t=e[1];return y.useCallback(function(){return t({})},[])},sr=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=M(M(M({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=M(M({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,x([o],O(r),!1))}).filter(Boolean);return Object.assign.apply(Object,x([{}],O(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ee(this,void 0,void 0,function(){var n,i,o,a,u,s,c,h,d,m,p,g,b,E,C,R,f,l,v,w,_;return te(this,function(S){switch(S.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,s=u===void 0?!1:u,c=Q(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(M({loading:!0,params:t},c)),s)return[2,Promise.resolve(c.data)];(b=(g=this.options).onBefore)===null||b===void 0||b.call(g,t),S.label=1;case 1:return S.trys.push([1,3,,4]),h=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,h||(h=(p=this.serviceRef).current.apply(p,x([],O(t),!1))),[4,h];case 2:return d=S.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(C=(E=this.options).onSuccess)===null||C===void 0||C.call(E,d,t),this.runPluginHandler("onSuccess",d,t),(f=(R=this.options).onFinally)===null||f===void 0||f.call(R,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(m=S.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:m,loading:!1}),(v=(l=this.options).onError)===null||v===void 0||v.call(l,m,t),this.runPluginHandler("onError",m,t),(_=(w=this.options).onFinally)===null||_===void 0||_.call(w,t,void 0,m),n===this.count&&this.runPluginHandler("onFinally",t,void 0,m),m;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,x([],O(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,x([],O(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,x([],O(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=U(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function cr(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=Q(t,["manual","ready"]),s=M({manual:i,ready:a},u),c=z(e),h=ht(),d=Te(function(){var m=r.map(function(p){var g;return(g=p?.onInit)===null||g===void 0?void 0:g.call(p,s)}).filter(Boolean);return new sr(c,s,h,Object.assign.apply(Object,x([{}],O(m),!1)))},[]);return d.options=s,d.pluginImpls=r.map(function(m){return m(d,s)}),ur(function(){if(!i&&a){var m=d.state.params||t.defaultParams||[];d.run.apply(d,x([],O(m),!1))}}),k(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:L(d.cancel.bind(d)),refresh:L(d.refresh.bind(d)),refreshAsync:L(d.refreshAsync.bind(d)),run:L(d.run.bind(d)),runAsync:L(d.runAsync.bind(d)),mutate:L(d.mutate.bind(d))}}function fr(e,t,r){return cr(e,t,x(x([],O([]),!1),[Yt,Xt,er,ir,ar,vt,Jt,or],!1))}function lr(e){return U(e[Symbol.asyncIterator])}function on(e,t){y.useEffect(function(){var r=e(),n=!1;function i(){return ee(this,void 0,void 0,function(){var o;return te(this,function(a){switch(a.label){case 0:if(!lr(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function dr(e,t){var r=O(y.useState(e),2),n=r[0],i=r[1],o=y.useMemo(function(){var a=!e,u=function(){return i(function(d){return d===e?a:e})},s=function(d){return i(d)},c=function(){return i(e)},h=function(){return i(a)};return{toggle:u,set:s,setLeft:c,setRight:h}},[]);return[n,o]}function an(e){var t=O(dr(!1),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=y.useMemo(function(){var u=function(){return o(!0)},s=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:s}},[]);return[r,a]}function H(e,t){if(W){if(!e)return t;var r;return U(e)?r=e():"current"in e?r=e.current:r=e,r}}var pt=function(e){var t=function(r,n,i){var o=y.useRef(!1),a=y.useRef([]),u=y.useRef([]),s=y.useRef(void 0);e(function(){var c,h=Array.isArray(i)?i:[i],d=h.map(function(m){return H(m)});if(!o.current){o.current=!0,a.current=d,u.current=n,s.current=r();return}(d.length!==a.current.length||!Ee(a.current,d)||!Ee(u.current,n))&&((c=s.current)===null||c===void 0||c.call(s),a.current=d,u.current=n,s.current=r())}),k(function(){var c;(c=s.current)===null||c===void 0||c.call(s),o.current=!1})};return t},le=pt(y.useEffect),me=function(e){if(!e)return 0;var t=Ft(e).valueOf()-Date.now();return t<0?0:t},vr=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},un=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=y.useMemo(function(){return fe(r)&&r>0?Date.now()+r:void 0},[r]),s="leftTime"in e?u:n,c=O(y.useState(function(){return me(s)}),2),h=c[0],d=c[1],m=z(a);y.useEffect(function(){if(!s){d(0);return}d(me(s));var g=setInterval(function(){var b,E=me(s);d(E),E===0&&(clearInterval(g),(b=m.current)===null||b===void 0||b.call(m))},o);return function(){return clearInterval(g)}},[s,o]);var p=y.useMemo(function(){return vr(h)},[h]);return[h,p]};function hr(){var e=(typeof B>"u"?"undefined":typeof B)=="object"&&B&&B.Object===Object&&B,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}hr()||(B.Date=Date);function pr(e,t){var r,n=z(e),i=(r=t?.wait)!==null&&r!==void 0?r:1e3,o=y.useMemo(function(){return Ue(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,x([],O(a),!1))},i,t)},[]);return k(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function sn(e,t){var r=O(y.useState(e),2),n=r[0],i=r[1],o=pr(function(){i(e)},t).run;return y.useEffect(function(){o()},[e]),n}var ge,Pe;function mr(){if(Pe)return ge;Pe=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var u,s,c;if(Array.isArray(o)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(!i(o[s],a[s]))return!1;return!0}var h;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(h=o.entries();!(s=h.next()).done;)if(!a.has(s.value[0]))return!1;for(h=o.entries();!(s=h.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(h=o.entries();!(s=h.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(o[s]!==a[s])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(c=Object.keys(o),u=c.length,u!==Object.keys(a).length)return!1;for(s=u;s--!==0;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(e&&o instanceof Element)return!1;for(s=u;s--!==0;)if(!((c[s]==="_owner"||c[s]==="__v"||c[s]==="__o")&&o.$$typeof)&&!i(o[c[s]],a[c[s]]))return!1;return!0}return o!==o&&a!==a}return ge=function(a,u){try{return i(a,u)}catch(s){if((s.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw s}},ge}var gr=mr();const yr=se(gr);var mt=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),yr(e,t)},gt=function(e){return function(t,r){var n=y.useRef(void 0),i=y.useRef(0);(r===void 0||!mt(r,n.current))&&(i.current+=1),n.current=r,e(t,[i.current])}};const cn=gt(y.useEffect),fn=gt(y.useLayoutEffect);function Re(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=z(t);le(function(){if(i){var a=H(r.target,window);if(a?.addEventListener){var u=function(c){return o.current(c)},s=Array.isArray(e)?e:[e];return s.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){s.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function ln(e){var t=O(y.useState(e),2),r=t[0],n=t[1],i=z(r),o=y.useCallback(function(){return i.current},[]);return[r,n,o]}var br=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},je=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},wr=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},dn=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,s=t.reloadDeps,c=s===void 0?[]:s,h=t.manual,d=t.onBefore,m=t.onSuccess,p=t.onError,g=t.onFinally,b=O(y.useState(),2),E=b[0],C=b[1],R=O(y.useState(!1),2),f=R[0],l=R[1],v=u==="top",w=y.useRef(void 0),_=y.useRef(0),S=y.useMemo(function(){return n?n(E):!1},[E]),T=fr(function(j){return ee(void 0,void 0,void 0,function(){var D,I,V,J;return te(this,function(Me){switch(Me.label){case 0:return[4,e(j)];case 1:return D=Me.sent(),C(j?M(M({},D),{list:v?x(x([],O(D.list),!1),O((V=j.list)!==null&&V!==void 0?V:[]),!1):x(x([],O((J=j.list)!==null&&J!==void 0?J:[]),!1),O(D.list),!1)}):M(M({},D),{list:x([],O((I=D.list)!==null&&I!==void 0?I:[]),!1)})),[2,D]}})})},{manual:h,onFinally:function(j,D,I){l(!1),g?.(D,I)},onBefore:function(){return d?.()},onSuccess:function(j){setTimeout(function(){if(v){var D=H(r);if(D=D===document?document.documentElement:D,D){var I=je(D);D.scrollTo(0,I-_.current)}}else xe()}),m?.(j)},onError:function(j){return p?.(j)}}),A=T.loading,P=T.error,F=T.run,$=T.runAsync,re=T.cancel,ve=L(function(){S||(l(!0),F(E))}),Ct=L(function(){return S?Promise.reject():(l(!0),$(E))}),xt=function(){return l(!1),F()},Mt=function(){return l(!1),$()},xe=function(){var j=H(r);if(j){var D=j===document?document.documentElement:j,I=br(D),V=je(D),J=wr(D);v?(w.current!==void 0&&w.current>I&&I<=o&&ve(),w.current=I,_.current=V-I):V-I<=J+o&&ve()}};return Re("scroll",function(){A||f||xe()},{target:r}),Z(function(){F()},x([],O(c),!1)),{data:E,loading:!f&&A,error:P,loadingMore:f,noMore:S,loadMore:ve,loadMoreAsync:Ct,reload:L(xt),reloadAsync:L(Mt),mutate:C,cancel:re}},vn=function(e,t,r){r===void 0&&(r={});var n=L(e),i=y.useRef(null),o=y.useCallback(function(){i.current&&clearInterval(i.current)},[]);return y.useEffect(function(){if(!(!fe(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},Ie={},Le;function _r(){return Le||(Le=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch{return null}}var t=function(f){for(var l=f,v=e(l);v;)l=v.ownerDocument,v=e(l);return l}(window.document),r=[],n=null,i=null;function o(f){this.time=f.time,this.target=f.target,this.rootBounds=g(f.rootBounds),this.boundingClientRect=g(f.boundingClientRect),this.intersectionRect=g(f.intersectionRect||p()),this.isIntersecting=!!f.intersectionRect;var l=this.boundingClientRect,v=l.width*l.height,w=this.intersectionRect,_=w.width*w.height;v?this.intersectionRatio=Number((_/v).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(f,l){var v=l||{};if(typeof f!="function")throw new Error("callback must be a function");if(v.root&&v.root.nodeType!=1&&v.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=s(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(v.rootMargin),this.thresholds=this._initThresholds(v.threshold),this.root=v.root||null,this.rootMargin=this._rootMarginValues.map(function(w){return w.value+w.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(f,l){!f||!l?i=p():i=b(f,l),r.forEach(function(v){v._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,i=null},a.prototype.observe=function(f){var l=this._observationTargets.some(function(v){return v.element==f});if(!l){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(l){return l.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},a.prototype._initThresholds=function(f){var l=f||[0];return Array.isArray(l)||(l=[l]),l.sort().filter(function(v,w,_){if(typeof v!="number"||isNaN(v)||v<0||v>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return v!==_[w-1]})},a.prototype._parseRootMargin=function(f){var l=f||"0px",v=l.split(/\s+/).map(function(w){var _=/^(-?\d*\.?\d+)(px|%)$/.exec(w);if(!_)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(_[1]),unit:_[2]}});return v[1]=v[1]||v[0],v[2]=v[2]||v[0],v[3]=v[3]||v[1],v},a.prototype._monitorIntersections=function(f){var l=f.defaultView;if(l&&this._monitoringDocuments.indexOf(f)==-1){var v=this._checkForIntersections,w=null,_=null;this.POLL_INTERVAL?w=l.setInterval(v,this.POLL_INTERVAL):(c(l,"resize",v,!0),c(f,"scroll",v,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in l&&(_=new l.MutationObserver(v),_.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var A=f.defaultView;A&&(w&&A.clearInterval(w),h(A,"resize",v,!0)),h(f,"scroll",v,!0),_&&_.disconnect()});var S=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=S){var T=e(f);T&&this._monitorIntersections(T.ownerDocument)}}},a.prototype._unmonitorIntersections=function(f){var l=this._monitoringDocuments.indexOf(f);if(l!=-1){var v=this.root&&(this.root.ownerDocument||this.root)||t,w=this._observationTargets.some(function(T){var A=T.element.ownerDocument;if(A==f)return!0;for(;A&&A!=v;){var P=e(A);if(A=P&&P.ownerDocument,A==f)return!0}return!1});if(!w){var _=this._monitoringUnsubscribes[l];if(this._monitoringDocuments.splice(l,1),this._monitoringUnsubscribes.splice(l,1),_(),f!=v){var S=e(f);S&&this._unmonitorIntersections(S.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var l=0;l<f.length;l++)f[l]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!i)){var f=this._rootIsInDom(),l=f?this._getRootRect():p();this._observationTargets.forEach(function(v){var w=v.element,_=m(w),S=this._rootContainsTarget(w),T=v.entry,A=f&&S&&this._computeTargetAndRootIntersection(w,_,l),P=null;this._rootContainsTarget(w)?(!n||this.root)&&(P=l):P=p();var F=v.entry=new o({time:u(),target:w,boundingClientRect:_,rootBounds:P,intersectionRect:A});T?f&&S?this._hasCrossedThreshold(T,F)&&this._queuedEntries.push(F):T&&T.isIntersecting&&this._queuedEntries.push(F):this._queuedEntries.push(F)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(f,l,v){if(window.getComputedStyle(f).display!="none"){for(var w=l,_=C(f),S=!1;!S&&_;){var T=null,A=_.nodeType==1?window.getComputedStyle(_):{};if(A.display=="none")return null;if(_==this.root||_.nodeType==9)if(S=!0,_==this.root||_==t)n&&!this.root?!i||i.width==0&&i.height==0?(_=null,T=null,w=null):T=i:T=v;else{var P=C(_),F=P&&m(P),$=P&&this._computeTargetAndRootIntersection(P,F,v);F&&$?(_=P,T=b(F,$)):(_=null,w=null)}else{var re=_.ownerDocument;_!=re.body&&_!=re.documentElement&&A.overflow!="visible"&&(T=m(_))}if(T&&(w=d(T,w)),!w)break;_=_&&C(_)}return w}},a.prototype._getRootRect=function(){var f;if(this.root&&!R(this.root))f=m(this.root);else{var l=R(this.root)?this.root:t,v=l.documentElement,w=l.body;f={top:0,left:0,right:v.clientWidth||w.clientWidth,width:v.clientWidth||w.clientWidth,bottom:v.clientHeight||w.clientHeight,height:v.clientHeight||w.clientHeight}}return this._expandRectByRootMargin(f)},a.prototype._expandRectByRootMargin=function(f){var l=this._rootMarginValues.map(function(w,_){return w.unit=="px"?w.value:w.value*(_%2?f.width:f.height)/100}),v={top:f.top-l[0],right:f.right+l[1],bottom:f.bottom+l[2],left:f.left-l[3]};return v.width=v.right-v.left,v.height=v.bottom-v.top,v},a.prototype._hasCrossedThreshold=function(f,l){var v=f&&f.isIntersecting?f.intersectionRatio||0:-1,w=l.isIntersecting?l.intersectionRatio||0:-1;if(v!==w)for(var _=0;_<this.thresholds.length;_++){var S=this.thresholds[_];if(S==v||S==w||S<v!=S<w)return!0}},a.prototype._rootIsInDom=function(){return!this.root||E(t,this.root)},a.prototype._rootContainsTarget=function(f){var l=this.root&&(this.root.ownerDocument||this.root)||t;return E(l,f)&&(!this.root||l==f.ownerDocument)},a.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},a.prototype._unregisterInstance=function(){var f=r.indexOf(this);f!=-1&&r.splice(f,1)};function u(){return window.performance&&performance.now&&performance.now()}function s(f,l){var v=null;return function(){v||(v=setTimeout(function(){f(),v=null},l))}}function c(f,l,v,w){typeof f.addEventListener=="function"?f.addEventListener(l,v,w):typeof f.attachEvent=="function"&&f.attachEvent("on"+l,v)}function h(f,l,v,w){typeof f.removeEventListener=="function"?f.removeEventListener(l,v,w):typeof f.detachEvent=="function"&&f.detachEvent("on"+l,v)}function d(f,l){var v=Math.max(f.top,l.top),w=Math.min(f.bottom,l.bottom),_=Math.max(f.left,l.left),S=Math.min(f.right,l.right),T=S-_,A=w-v;return T>=0&&A>=0&&{top:v,bottom:w,left:_,right:S,width:T,height:A}||null}function m(f){var l;try{l=f.getBoundingClientRect()}catch{}return l?(l.width&&l.height||(l={top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:l.right-l.left,height:l.bottom-l.top}),l):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function g(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function b(f,l){var v=l.top-f.top,w=l.left-f.left;return{top:v,left:w,height:l.height,width:l.width,bottom:v+l.height,right:w+l.width}}function E(f,l){for(var v=l;v;){if(v==f)return!0;v=C(v)}return!1}function C(f){var l=f.parentNode;return f.nodeType==9&&f!=t?e(f):(l&&l.assignedSlot&&(l=l.assignedSlot.parentNode),l&&l.nodeType==11&&l.host?l.host:l)}function R(f){return f&&f.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=o}()),Ie}_r();function hn(e,t){var r={},n=r.callback,i=Q(r,["callback"]),o=O(y.useState(),2),a=o[0],u=o[1],s=O(y.useState(),2),c=s[0],h=s[1];return le(function(){var d=Array.isArray(e)?e:[e],m=d.map(function(g){return H(g)}).filter(Boolean);if(m.length){var p=new IntersectionObserver(function(g){var b,E;try{for(var C=N(g),R=C.next();!R.done;R=C.next()){var f=R.value;h(f.intersectionRatio),u(f.isIntersecting),n?.(f)}}catch(l){b={error:l}}finally{try{R&&!R.done&&(E=C.return)&&E.call(C)}finally{if(b)throw b.error}}},M(M({},i),{root:H(void 0)}));return m.forEach(function(g){return p.observe(g)}),function(){p.disconnect()}}},[void 0,void 0,n],e),[a,c]}var Er=function(e,t,r){var n=y.useRef(void 0),i=y.useRef(0);mt(t,n.current)||(i.current+=1),n.current=t,le(e,[i.current],r)},Rr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator?.platform:""),yt={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:Rr?[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},Oe={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?yt.meta.includes(e.keyCode):e.metaKey}};function bt(e){return qt(e)||fe(e)}function Or(e){var t=Object.keys(Oe).reduce(function(r,n){return Oe[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Fe(e,t,r){var n,i;if(!e.key)return!1;if(fe(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=N(o),s=u.next();!s.done;s=u.next()){var c=s.value,h=Oe[c],d=yt[c.toLowerCase()];(h&&h(e)||d&&d===e.keyCode)&&a++}}catch(m){n={error:m}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&Or(e)===o.length?t:!1:a===o.length?t:!1}function Sr(e,t){return U(e)?e:bt(e)?function(r){return Fe(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Fe(r,n,t)})}:function(){return!!e}}var Tr=["keydown"];function pn(e,t,r){var n=r||{},i=n.events,o=i===void 0?Tr:i,a=n.target,u=n.exactMatch,s=u===void 0?!1:u,c=n.useCapture,h=c===void 0?!1:c,d=z(t),m=z(e);Er(function(){var p,g,b,E=H(a,window);if(E){var C=function(v){var w,_=Sr(m.current,s),S=_(v),T=bt(S)?S:v.key;if(S)return(w=d.current)===null||w===void 0?void 0:w.call(d,v,T)};try{for(var R=N(o),f=R.next();!f.done;f=R.next()){var l=f.value;(b=E?.addEventListener)===null||b===void 0||b.call(E,l,C,h)}}catch(v){p={error:v}}finally{try{f&&!f.done&&(g=R.return)&&g.call(R)}finally{if(p)throw p.error}}return function(){var v,w,_;try{for(var S=N(o),T=S.next();!T.done;T=S.next()){var A=T.value;(_=E?.removeEventListener)===null||_===void 0||_.call(E,A,C,h)}}catch(P){v={error:P}}finally{try{T&&!T.done&&(w=S.return)&&w.call(S)}finally{if(v)throw v.error}}}}},[o],a)}var Be="AHOOKS_SYNC_STORAGE_EVENT_NAME";function wt(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,s=u===void 0?function(R){console.error(R)}:u;try{i=e()}catch(R){s(R)}var c=function(R){return n.serializer?n.serializer(R):JSON.stringify(R)},h=function(R){return n.deserializer?n.deserializer(R):JSON.parse(R)};function d(){try{var R=i?.getItem(r);if(R)return h(R)}catch(f){s(f)}return U(n.defaultValue)?n.defaultValue():n.defaultValue}var m=O(y.useState(d),2),p=m[0],g=m[1];Z(function(){g(d())},[r]);var b=function(R){var f=U(R)?R(p):R;a||g(f);try{var l=void 0,v=i?.getItem(r);Ut(f)?(l=null,i?.removeItem(r)):(l=c(f),i?.setItem(r,l)),dispatchEvent(new CustomEvent(Be,{detail:{key:r,newValue:l,oldValue:v,storageArea:i}}))}catch(w){s(w)}},E=function(R){R.key!==r||R.storageArea!==i||g(d())},C=function(R){E(R.detail)};return Re("storage",E,{enable:a}),Re(Be,C,{enable:a}),[p,L(b)]}return t}var mn=wt(function(){return W?localStorage:void 0});function Cr(e){var t=y.useRef(0),r=O(y.useState(e),2),n=r[0],i=r[1],o=y.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return k(function(){cancelAnimationFrame(t.current)}),[n,o]}var xr=function(e,t){return!Object.is(e,t)};function gn(e,t){t===void 0&&(t=xr);var r=y.useRef(void 0),n=y.useRef(void 0);return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var ze=new WeakMap,He=new WeakMap;function _t(e,t){var r=ze.get(e);if(r)return r;if(He.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),s=Reflect.getOwnPropertyDescriptor(i,o);return!s?.configurable&&!s?.writable?u:Pt(u)||Array.isArray(u)?_t(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return ze.set(e,n),He.set(n,e),n}function yn(e){var t=ht(),r=y.useRef(e),n=Te(function(){return _t(r.current,function(){t()})},[]);return n}var bn=wt(function(){return W?sessionStorage:void 0}),wn=function(e){var t=O(y.useState(e),2),r=t[0],n=t[1],i=L(function(o){n(function(a){var u=U(o)?o(a):o;return u?M(M({},a),u):a})});return[r,i]},Et=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),Se=typeof window<"u"&&typeof document<"u"&&window.document===document,ae=function(){return typeof B<"u"&&B.Math===Math?B:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Mr=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ae):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ar=2;function Dr(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){Mr(o)}function u(){var s=Date.now();if(r){if(s-i<Ar)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=s}return u}var Pr=20,jr=["top","right","bottom","left","width","height","size","weight"],Ir=typeof MutationObserver<"u",Lr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Dr(this.refresh.bind(this),Pr)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Se||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ir?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Se||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=jr.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Rt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},K=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ae},Ot=de(0,0,0,0);function ue(e){return parseFloat(e)||0}function Ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+ue(o)},0)}function Fr(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=ue(a)}return r}function Br(e){var t=e.getBBox();return de(0,0,t.width,t.height)}function zr(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Ot;var n=K(e).getComputedStyle(e),i=Fr(n),o=i.left+i.right,a=i.top+i.bottom,u=ue(n.width),s=ue(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=Ne(n,"left","right")+o),Math.round(s+a)!==r&&(s-=Ne(n,"top","bottom")+a)),!Nr(e)){var c=Math.round(u+o)-t,h=Math.round(s+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(h)!==1&&(s-=h)}return de(i.left,i.top,u,s)}var Hr=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof K(e).SVGGraphicsElement}:function(e){return e instanceof K(e).SVGElement&&typeof e.getBBox=="function"}}();function Nr(e){return e===K(e).document.documentElement}function Wr(e){return Se?Hr(e)?Br(e):zr(e):Ot}function qr(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Rt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function de(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Ur=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=de(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Wr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),kr=function(){function e(t,r){var n=qr(r);Rt(this,{target:t,contentRect:n})}return e}(),Vr=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Et,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof K(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Ur(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof K(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new kr(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),St=typeof WeakMap<"u"?new WeakMap:new Et,Tt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Lr.getInstance(),n=new Vr(t,r,this);St.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Tt.prototype[e]=function(){var t;return(t=St.get(this))[e].apply(t,arguments)}});var Gr=function(){return typeof ae.ResizeObserver<"u"?ae.ResizeObserver:Tt}(),Kr=pt(y.useLayoutEffect),$r=W?Kr:le;function _n(e){var t=O(Cr(function(){var i=H(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return $r(function(){var i=H(e);if(i){var o=new Gr(function(a){a.forEach(function(u){var s=u.target,c=s.clientWidth,h=s.clientHeight;n({width:c,height:h})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function En(e,t){var r,n=z(e),i=(r=t?.wait)!==null&&r!==void 0?r:1e3,o=y.useMemo(function(){return ke(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,x([],O(a),!1))},i,t)},[]);return k(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var ye,We;function Jr(){return We||(We=1,ye=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),ye}var be,qe;function Yr(){if(qe)return be;qe=1;var e=Jr(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function i(o,a){var u,s,c,h,d,m,p=!1;a||(a={}),u=a.debug||!1;try{c=e(),h=document.createRange(),d=document.getSelection(),m=document.createElement("span"),m.textContent=o,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(b){if(b.stopPropagation(),a.format)if(b.preventDefault(),typeof b.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var E=t[a.format]||t.default;window.clipboardData.setData(E,o)}else b.clipboardData.clearData(),b.clipboardData.setData(a.format,o);a.onCopy&&(b.preventDefault(),a.onCopy(b.clipboardData))}),document.body.appendChild(m),h.selectNodeContents(m),d.addRange(h);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(b){u&&console.error("unable to copy using execCommand: ",b),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),p=!0}catch(E){u&&console.error("unable to copy using clipboardData: ",E),u&&console.error("falling back to prompt"),s=n("message"in a?a.message:r),window.prompt(s,o)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(h):d.removeAllRanges()),m&&document.body.removeChild(m),c()}return p}return be=i,be}var Xr=Yr();const Rn=se(Xr),On=At(Wt);function Zr(){var e=y.useRef(!1),t=y.useCallback(function(){return e.current},[]);return y.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Qr(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=y.useRef(0),i=Zr(),o=y.useState(r),a=o[0],u=o[1],s=y.useCallback(function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];var d=++n.current;return a.loading||u(function(m){return M(M({},m),{loading:!0})}),e.apply(void 0,c).then(function(m){return i()&&d===n.current&&u({value:m,loading:!1}),m},function(m){return i()&&d===n.current&&u({error:m,loading:!1}),m})},t);return[a,s]}function en(e,t){t===void 0&&(t=[]);var r=Qr(e,t,{loading:!0}),n=r[0],i=r[1];return y.useEffect(function(){i()},[i]),n}var Sn=function(e,t){t===void 0&&(t=[]);var r=y.useState(0),n=r[0],i=r[1],o=en(e,oe(t,[n])),a=o.loading,u=y.useCallback(function(){a||i(function(s){return s+1})},oe(t,[a]));return M(M({},o),{retry:u})};export{On as A,hn as B,nn as C,Sn as D,en as E,Ve as F,ee as G,te as H,M as I,fn as J,pn as K,ln as L,Ge as _,Te as a,L as b,Rn as c,Ft as d,_n as e,z as f,yn as g,ur as h,cn as i,yr as j,En as k,on as l,vn as m,sn as n,mn as o,ht as p,fr as q,gn as r,Z as s,k as t,pr as u,dn as v,bn as w,wn as x,an as y,un as z};
|
|
7
|
+
*/var Ae;function jt(){return Ae||(Ae=1,function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var s in u)a[s]=u[s]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,h,d){if(!(typeof document>"u")){d=r({path:"/"},a.defaults,d),typeof d.expires=="number"&&(d.expires=new Date(new Date*1+d.expires*864e5)),d.expires=d.expires?d.expires.toUTCString():"";try{var m=JSON.stringify(h);/^[\{\[]/.test(m)&&(h=m)}catch{}h=o.write?o.write(h,c):encodeURIComponent(String(h)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var p="";for(var g in d)d[g]&&(p+="; "+g,d[g]!==!0&&(p+="="+d[g].split(";")[0]));return document.cookie=c+"="+h+p}}function s(c,h){if(!(typeof document>"u")){for(var d={},m=document.cookie?document.cookie.split("; "):[],p=0;p<m.length;p++){var g=m[p].split("="),b=g.slice(1).join("=");!h&&b.charAt(0)==='"'&&(b=b.slice(1,-1));try{var E=n(g[0]);if(b=(o.read||o)(b,E)||n(b),h)try{b=JSON.parse(b)}catch{}if(d[E]=b,c===E)break}catch{}}return c?d[c]:d}}return a.set=u,a.get=function(c){return s(c,!1)},a.getJSON=function(c){return s(c,!0)},a.remove=function(c,h){u(c,"",r(h,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})}(he)),he.exports}var It=jt();const nn=se(It);var Lt=Dt();const Ft=se(Lt);var Bt=function(e){return function(t,r){var n=y.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},we=function(e,t){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},we(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");we(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var M=function(){return M=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},M.apply(this,arguments)};function Q(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Ge(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function $e(e,t){return function(r,n){t(r,n,e)}}function Ke(e,t,r,n,i,o){function a(C){if(C!==void 0&&typeof C!="function")throw new TypeError("Function expected");return C}for(var u=n.kind,s=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),d,m=!1,p=r.length-1;p>=0;p--){var g={};for(var b in n)g[b]=b==="access"?{}:n[b];for(var b in n.access)g.access[b]=n.access[b];g.addInitializer=function(C){if(m)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(C||null))};var E=(0,r[p])(u==="accessor"?{get:h.get,set:h.set}:h[s],g);if(u==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(d=a(E.get))&&(h.get=d),(d=a(E.set))&&(h.set=d),(d=a(E.init))&&i.unshift(d)}else(d=a(E))&&(u==="field"?i.unshift(d):h[s]=d)}c&&Object.defineProperty(c,n.name,h),m=!0}function Je(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Ye(e){return typeof e=="symbol"?e:"".concat(e)}function Xe(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Ze(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ee(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(h){try{c(n.next(h))}catch(d){a(d)}}function s(h){try{c(n.throw(h))}catch(d){a(d)}}function c(h){h.done?o(h.value):i(h.value).then(u,s)}c((n=n.apply(e,t||[])).next())})}function te(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(h){return s([c,h])}}function s(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(h){c=[6,h],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ce=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function Qe(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ce(t,e,r)}function N(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function et(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O(arguments[t]));return e}function oe(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function x(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function tt(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(p){return function(g){return Promise.resolve(g).then(p,d)}}function u(p,g){n[p]&&(i[p]=function(b){return new Promise(function(E,C){o.push([p,b,E,C])>1||s(p,b)})},g&&(i[p]=g(i[p])))}function s(p,g){try{c(n[p](g))}catch(b){m(o[0][3],b)}}function c(p){p.value instanceof G?Promise.resolve(p.value.v).then(h,d):m(o[0][2],p)}function h(p){s("next",p)}function d(p){s("throw",p)}function m(p,g){p(g),o.shift(),o.length&&s(o[0][0],o[0][1])}}function rt(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function nt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof N=="function"?N(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,s){a=e[o](a),i(u,s,a.done,a.value)})}}function i(o,a,u,s){Promise.resolve(s).then(function(c){o({value:c,done:u})},a)}}function it(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var zt=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},_e=function(e){return _e=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},_e(e)};function ot(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=_e(e),n=0;n<r.length;n++)r[n]!=="default"&&ce(t,e,r[n]);return zt(t,e),t}function at(e){return e&&e.__esModule?e:{default:e}}function ut(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function st(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function ct(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function ft(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Ht=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function lt(e){function t(o){e.error=e.hasError?new Ht(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function dt(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Nt={__extends:Ve,__assign:M,__rest:Q,__decorate:Ge,__param:$e,__esDecorate:Ke,__runInitializers:Je,__propKey:Ye,__setFunctionName:Xe,__metadata:Ze,__awaiter:ee,__generator:te,__createBinding:ce,__exportStar:Qe,__values:N,__read:O,__spread:et,__spreadArrays:oe,__spreadArray:x,__await:G,__asyncGenerator:tt,__asyncDelegator:rt,__asyncValues:nt,__makeTemplateObject:it,__importStar:ot,__importDefault:at,__classPrivateFieldGet:ut,__classPrivateFieldSet:st,__classPrivateFieldIn:ct,__addDisposableResource:ft,__disposeResources:lt,__rewriteRelativeImportExtension:dt},Wt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:ft,get __assign(){return M},__asyncDelegator:rt,__asyncGenerator:tt,__asyncValues:nt,__await:G,__awaiter:ee,__classPrivateFieldGet:ut,__classPrivateFieldIn:ct,__classPrivateFieldSet:st,__createBinding:ce,__decorate:Ge,__disposeResources:lt,__esDecorate:Ke,__exportStar:Qe,__extends:Ve,__generator:te,__importDefault:at,__importStar:ot,__makeTemplateObject:it,__metadata:Ze,__param:$e,__propKey:Ye,__read:O,__rest:Q,__rewriteRelativeImportExtension:dt,__runInitializers:Je,__setFunctionName:Xe,__spread:et,__spreadArray:x,__spreadArrays:oe,__values:N,default:Nt},Symbol.toStringTag,{value:"Module"}));var U=function(e){return typeof e=="function"},qt=function(e){return typeof e=="string"},fe=function(e){return typeof e=="number"},Ut=function(e){return typeof e>"u"};function L(e){var t=y.useRef(e);t.current=y.useMemo(function(){return e},[e]);var r=y.useRef(void 0);return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const Z=Bt(y.useEffect);var vt=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,s=u===void 0?[]:u,c=t.refreshDepsAction,h=y.useRef(!1);return h.current=!1,Z(function(){!r&&i&&(h.current=!0,e.run.apply(e,x([],O(a),!1)))},[i]),Z(function(){h.current||r||(h.current=!0,c?c():e.refresh())},x([],O(s),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};vt.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function Ee(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var Te=function(e,t){var r=y.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Ee(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function z(e){var t=y.useRef(e);return t.current=e,t}var k=function(e){var t=z(e);y.useEffect(function(){return function(){t.current()}},[])},ne=new Map,kt=function(e,t,r){var n=ne.get(e);n?.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){ne.delete(e)},t)),ne.set(e,M(M({},r),{timer:i}))},Vt=function(e){return ne.get(e)},ie=new Map,Gt=function(e){return ie.get(e)},$t=function(e,t){ie.set(e,t),t.then(function(r){return ie.delete(e),r}).catch(function(){ie.delete(e)})},q={},Kt=function(e,t){q[e]&&q[e].forEach(function(r){return r(t)})},pe=function(e,t){return q[e]||(q[e]=[]),q[e].push(t),function(){var n=q[e].indexOf(t);q[e].splice(n,1)}},Jt=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,s=t.getCache,c=y.useRef(void 0),h=y.useRef(void 0),d=function(p,g){u?u(g):kt(p,i,g),Kt(p,g.data)},m=function(p,g){return g===void 0&&(g=[]),s?s(g):Vt(p)};return Te(function(){if(r){var p=m(r);p&&Object.hasOwnProperty.call(p,"data")&&(e.state.data=p.data,e.state.params=p.params,(a===-1||Date.now()-p.time<=a)&&(e.state.loading=!1)),c.current=pe(r,function(g){e.setState({data:g})})}},[]),k(function(){var p;(p=c.current)===null||p===void 0||p.call(c)}),r?{onBefore:function(p){var g=m(r,p);return!g||!Object.hasOwnProperty.call(g,"data")?{}:a===-1||Date.now()-g.time<=a?{loading:!1,data:g?.data,error:void 0,returnNow:!0}:{data:g?.data,error:void 0}},onRequest:function(p,g){var b=Gt(r);return b&&b!==h.current?{servicePromise:b}:(b=p.apply(void 0,x([],O(g),!1)),h.current=b,$t(r,b),{servicePromise:b})},onSuccess:function(p,g){var b;r&&((b=c.current)===null||b===void 0||b.call(c),d(r,{data:p,params:g,time:Date.now()}),c.current=pe(r,function(E){e.setState({data:E})}))},onMutate:function(p){var g;r&&((g=c.current)===null||g===void 0||g.call(c),d(r,{data:p,params:e.state.params,time:Date.now()}),c.current=pe(r,function(b){e.setState({data:b})}))}}:{}},Yt=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=y.useRef(void 0),u=y.useMemo(function(){var s={};return n!==void 0&&(s.leading=n),i!==void 0&&(s.trailing=i),o!==void 0&&(s.maxWait=o),s},[n,i,o]);return y.useEffect(function(){if(r){var s=e.runAsync.bind(e);return a.current=Ue(function(c){c()},r,u),e.runAsync=function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return new Promise(function(d,m){var p;(p=a.current)===null||p===void 0||p.call(a,function(){s.apply(void 0,x([],O(c),!1)).then(d).catch(m)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=s}}},[r,u]),r?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel()}}:{}},Xt=function(e,t){var r=t.loadingDelay,n=t.ready,i=y.useRef(void 0);if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},W=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ce(){return W?document.visibilityState!=="hidden":!0}var Y=[];function Zt(e){return Y.push(e),function(){var r=Y.indexOf(e);Y.splice(r,1)}}if(W){var Qt=function(){if(Ce())for(var e=0;e<Y.length;e++){var t=Y[e];t()}};window.addEventListener("visibilitychange",Qt,!1)}var er=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=y.useRef(void 0),s=y.useRef(void 0),c=y.useRef(0),h=function(){var d;u.current&&clearTimeout(u.current),(d=s.current)===null||d===void 0||d.call(s)};return Z(function(){r||h()},[r]),r?{onBefore:function(){h()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!Ce()?s.current=Zt(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){h()}}:{}};function tr(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,x([],O(n),!1)),setTimeout(function(){r=!1},t))}}var rr=function(){return W&&typeof navigator.onLine<"u"?navigator.onLine:!0},X=[];function nr(e){return X.push(e),function(){var r=X.indexOf(e);r>-1&&X.splice(r,1)}}if(W){var De=function(){if(!(!Ce()||!rr()))for(var e=0;e<X.length;e++){var t=X[e];t()}};window.addEventListener("visibilitychange",De,!1),window.addEventListener("focus",De,!1)}var ir=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=y.useRef(void 0),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return y.useEffect(function(){if(r){var u=tr(e.refresh.bind(e),i);o.current=nr(function(){u()})}return function(){a()}},[r,i]),k(function(){a()}),{}},or=function(e,t){var r=t.retryInterval,n=t.retryCount,i=y.useRef(void 0),o=y.useRef(0),a=y.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},ar=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=y.useRef(void 0),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),y.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=ke(function(s){s()},r,a),e.runAsync=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new Promise(function(h,d){var m;(m=o.current)===null||m===void 0||m.call(o,function(){u.apply(void 0,x([],O(s),!1)).then(h).catch(d)})})},function(){var s;e.runAsync=u,(s=o.current)===null||s===void 0||s.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},ur=function(e){y.useEffect(function(){e?.()},[])},ht=function(){var e=O(y.useState({}),2),t=e[1];return y.useCallback(function(){return t({})},[])},sr=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=M(M(M({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=M(M({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,x([o],O(r),!1))}).filter(Boolean);return Object.assign.apply(Object,x([{}],O(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ee(this,void 0,void 0,function(){var n,i,o,a,u,s,c,h,d,m,p,g,b,E,C,R,f,l,v,w,_;return te(this,function(S){switch(S.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,s=u===void 0?!1:u,c=Q(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(M({loading:!0,params:t},c)),s)return[2,Promise.resolve(c.data)];(b=(g=this.options).onBefore)===null||b===void 0||b.call(g,t),S.label=1;case 1:return S.trys.push([1,3,,4]),h=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,h||(h=(p=this.serviceRef).current.apply(p,x([],O(t),!1))),[4,h];case 2:return d=S.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(C=(E=this.options).onSuccess)===null||C===void 0||C.call(E,d,t),this.runPluginHandler("onSuccess",d,t),(f=(R=this.options).onFinally)===null||f===void 0||f.call(R,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(m=S.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:m,loading:!1}),(v=(l=this.options).onError)===null||v===void 0||v.call(l,m,t),this.runPluginHandler("onError",m,t),(_=(w=this.options).onFinally)===null||_===void 0||_.call(w,t,void 0,m),n===this.count&&this.runPluginHandler("onFinally",t,void 0,m),m;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,x([],O(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,x([],O(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,x([],O(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=U(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function cr(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=Q(t,["manual","ready"]),s=M({manual:i,ready:a},u),c=z(e),h=ht(),d=Te(function(){var m=r.map(function(p){var g;return(g=p?.onInit)===null||g===void 0?void 0:g.call(p,s)}).filter(Boolean);return new sr(c,s,h,Object.assign.apply(Object,x([{}],O(m),!1)))},[]);return d.options=s,d.pluginImpls=r.map(function(m){return m(d,s)}),ur(function(){if(!i&&a){var m=d.state.params||t.defaultParams||[];d.run.apply(d,x([],O(m),!1))}}),k(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:L(d.cancel.bind(d)),refresh:L(d.refresh.bind(d)),refreshAsync:L(d.refreshAsync.bind(d)),run:L(d.run.bind(d)),runAsync:L(d.runAsync.bind(d)),mutate:L(d.mutate.bind(d))}}function fr(e,t,r){return cr(e,t,x(x([],O([]),!1),[Yt,Xt,er,ir,ar,vt,Jt,or],!1))}function lr(e){return U(e[Symbol.asyncIterator])}function on(e,t){y.useEffect(function(){var r=e(),n=!1;function i(){return ee(this,void 0,void 0,function(){var o;return te(this,function(a){switch(a.label){case 0:if(!lr(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function dr(e,t){var r=O(y.useState(e),2),n=r[0],i=r[1],o=y.useMemo(function(){var a=!e,u=function(){return i(function(d){return d===e?a:e})},s=function(d){return i(d)},c=function(){return i(e)},h=function(){return i(a)};return{toggle:u,set:s,setLeft:c,setRight:h}},[]);return[n,o]}function an(e){var t=O(dr(!1),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=y.useMemo(function(){var u=function(){return o(!0)},s=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:s}},[]);return[r,a]}function H(e,t){if(W){if(!e)return t;var r;return U(e)?r=e():"current"in e?r=e.current:r=e,r}}var pt=function(e){var t=function(r,n,i){var o=y.useRef(!1),a=y.useRef([]),u=y.useRef([]),s=y.useRef(void 0);e(function(){var c,h=Array.isArray(i)?i:[i],d=h.map(function(m){return H(m)});if(!o.current){o.current=!0,a.current=d,u.current=n,s.current=r();return}(d.length!==a.current.length||!Ee(a.current,d)||!Ee(u.current,n))&&((c=s.current)===null||c===void 0||c.call(s),a.current=d,u.current=n,s.current=r())}),k(function(){var c;(c=s.current)===null||c===void 0||c.call(s),o.current=!1})};return t},le=pt(y.useEffect),me=function(e){if(!e)return 0;var t=Ft(e).valueOf()-Date.now();return t<0?0:t},vr=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},un=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=y.useMemo(function(){return fe(r)&&r>0?Date.now()+r:void 0},[r]),s="leftTime"in e?u:n,c=O(y.useState(function(){return me(s)}),2),h=c[0],d=c[1],m=z(a);y.useEffect(function(){if(!s){d(0);return}d(me(s));var g=setInterval(function(){var b,E=me(s);d(E),E===0&&(clearInterval(g),(b=m.current)===null||b===void 0||b.call(m))},o);return function(){return clearInterval(g)}},[s,o]);var p=y.useMemo(function(){return vr(h)},[h]);return[h,p]};function hr(){var e=(typeof B>"u"?"undefined":typeof B)=="object"&&B&&B.Object===Object&&B,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}hr()||(B.Date=Date);function pr(e,t){var r,n=z(e),i=(r=t?.wait)!==null&&r!==void 0?r:1e3,o=y.useMemo(function(){return Ue(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,x([],O(a),!1))},i,t)},[]);return k(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function sn(e,t){var r=O(y.useState(e),2),n=r[0],i=r[1],o=pr(function(){i(e)},t).run;return y.useEffect(function(){o()},[e]),n}var ge,Pe;function mr(){if(Pe)return ge;Pe=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var u,s,c;if(Array.isArray(o)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(!i(o[s],a[s]))return!1;return!0}var h;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(h=o.entries();!(s=h.next()).done;)if(!a.has(s.value[0]))return!1;for(h=o.entries();!(s=h.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(h=o.entries();!(s=h.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(o[s]!==a[s])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(c=Object.keys(o),u=c.length,u!==Object.keys(a).length)return!1;for(s=u;s--!==0;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(e&&o instanceof Element)return!1;for(s=u;s--!==0;)if(!((c[s]==="_owner"||c[s]==="__v"||c[s]==="__o")&&o.$$typeof)&&!i(o[c[s]],a[c[s]]))return!1;return!0}return o!==o&&a!==a}return ge=function(a,u){try{return i(a,u)}catch(s){if((s.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw s}},ge}var gr=mr();const yr=se(gr);var mt=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),yr(e,t)},gt=function(e){return function(t,r){var n=y.useRef(void 0),i=y.useRef(0);(r===void 0||!mt(r,n.current))&&(i.current+=1),n.current=r,e(t,[i.current])}};const cn=gt(y.useEffect),fn=gt(y.useLayoutEffect);function Re(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=z(t);le(function(){if(i){var a=H(r.target,window);if(a?.addEventListener){var u=function(c){return o.current(c)},s=Array.isArray(e)?e:[e];return s.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){s.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function ln(e){var t=O(y.useState(e),2),r=t[0],n=t[1],i=z(r),o=y.useCallback(function(){return i.current},[]);return[r,n,o]}var br=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},je=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},wr=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},dn=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,s=t.reloadDeps,c=s===void 0?[]:s,h=t.manual,d=t.onBefore,m=t.onSuccess,p=t.onError,g=t.onFinally,b=O(y.useState(),2),E=b[0],C=b[1],R=O(y.useState(!1),2),f=R[0],l=R[1],v=u==="top",w=y.useRef(void 0),_=y.useRef(0),S=y.useMemo(function(){return n?n(E):!1},[E]),T=fr(function(j){return ee(void 0,void 0,void 0,function(){var D,I,V,J;return te(this,function(Me){switch(Me.label){case 0:return[4,e(j)];case 1:return D=Me.sent(),C(j?M(M({},D),{list:v?x(x([],O(D.list),!1),O((V=j.list)!==null&&V!==void 0?V:[]),!1):x(x([],O((J=j.list)!==null&&J!==void 0?J:[]),!1),O(D.list),!1)}):M(M({},D),{list:x([],O((I=D.list)!==null&&I!==void 0?I:[]),!1)})),[2,D]}})})},{manual:h,onFinally:function(j,D,I){l(!1),g?.(D,I)},onBefore:function(){return d?.()},onSuccess:function(j){setTimeout(function(){if(v){var D=H(r);if(D=D===document?document.documentElement:D,D){var I=je(D);D.scrollTo(0,I-_.current)}}else xe()}),m?.(j)},onError:function(j){return p?.(j)}}),A=T.loading,P=T.error,F=T.run,K=T.runAsync,re=T.cancel,ve=L(function(){S||(l(!0),F(E))}),Ct=L(function(){return S?Promise.reject():(l(!0),K(E))}),xt=function(){return l(!1),F()},Mt=function(){return l(!1),K()},xe=function(){var j=H(r);if(j){var D=j===document?document.documentElement:j,I=br(D),V=je(D),J=wr(D);v?(w.current!==void 0&&w.current>I&&I<=o&&ve(),w.current=I,_.current=V-I):V-I<=J+o&&ve()}};return Re("scroll",function(){A||f||xe()},{target:r}),Z(function(){F()},x([],O(c),!1)),{data:E,loading:!f&&A,error:P,loadingMore:f,noMore:S,loadMore:ve,loadMoreAsync:Ct,reload:L(xt),reloadAsync:L(Mt),mutate:C,cancel:re}},vn=function(e,t,r){r===void 0&&(r={});var n=L(e),i=y.useRef(null),o=y.useCallback(function(){i.current&&clearInterval(i.current)},[]);return y.useEffect(function(){if(!(!fe(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},Ie={},Le;function _r(){return Le||(Le=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch{return null}}var t=function(f){for(var l=f,v=e(l);v;)l=v.ownerDocument,v=e(l);return l}(window.document),r=[],n=null,i=null;function o(f){this.time=f.time,this.target=f.target,this.rootBounds=g(f.rootBounds),this.boundingClientRect=g(f.boundingClientRect),this.intersectionRect=g(f.intersectionRect||p()),this.isIntersecting=!!f.intersectionRect;var l=this.boundingClientRect,v=l.width*l.height,w=this.intersectionRect,_=w.width*w.height;v?this.intersectionRatio=Number((_/v).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(f,l){var v=l||{};if(typeof f!="function")throw new Error("callback must be a function");if(v.root&&v.root.nodeType!=1&&v.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=s(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(v.rootMargin),this.thresholds=this._initThresholds(v.threshold),this.root=v.root||null,this.rootMargin=this._rootMarginValues.map(function(w){return w.value+w.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(f,l){!f||!l?i=p():i=b(f,l),r.forEach(function(v){v._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,i=null},a.prototype.observe=function(f){var l=this._observationTargets.some(function(v){return v.element==f});if(!l){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(l){return l.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},a.prototype._initThresholds=function(f){var l=f||[0];return Array.isArray(l)||(l=[l]),l.sort().filter(function(v,w,_){if(typeof v!="number"||isNaN(v)||v<0||v>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return v!==_[w-1]})},a.prototype._parseRootMargin=function(f){var l=f||"0px",v=l.split(/\s+/).map(function(w){var _=/^(-?\d*\.?\d+)(px|%)$/.exec(w);if(!_)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(_[1]),unit:_[2]}});return v[1]=v[1]||v[0],v[2]=v[2]||v[0],v[3]=v[3]||v[1],v},a.prototype._monitorIntersections=function(f){var l=f.defaultView;if(l&&this._monitoringDocuments.indexOf(f)==-1){var v=this._checkForIntersections,w=null,_=null;this.POLL_INTERVAL?w=l.setInterval(v,this.POLL_INTERVAL):(c(l,"resize",v,!0),c(f,"scroll",v,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in l&&(_=new l.MutationObserver(v),_.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var A=f.defaultView;A&&(w&&A.clearInterval(w),h(A,"resize",v,!0)),h(f,"scroll",v,!0),_&&_.disconnect()});var S=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=S){var T=e(f);T&&this._monitorIntersections(T.ownerDocument)}}},a.prototype._unmonitorIntersections=function(f){var l=this._monitoringDocuments.indexOf(f);if(l!=-1){var v=this.root&&(this.root.ownerDocument||this.root)||t,w=this._observationTargets.some(function(T){var A=T.element.ownerDocument;if(A==f)return!0;for(;A&&A!=v;){var P=e(A);if(A=P&&P.ownerDocument,A==f)return!0}return!1});if(!w){var _=this._monitoringUnsubscribes[l];if(this._monitoringDocuments.splice(l,1),this._monitoringUnsubscribes.splice(l,1),_(),f!=v){var S=e(f);S&&this._unmonitorIntersections(S.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var l=0;l<f.length;l++)f[l]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!i)){var f=this._rootIsInDom(),l=f?this._getRootRect():p();this._observationTargets.forEach(function(v){var w=v.element,_=m(w),S=this._rootContainsTarget(w),T=v.entry,A=f&&S&&this._computeTargetAndRootIntersection(w,_,l),P=null;this._rootContainsTarget(w)?(!n||this.root)&&(P=l):P=p();var F=v.entry=new o({time:u(),target:w,boundingClientRect:_,rootBounds:P,intersectionRect:A});T?f&&S?this._hasCrossedThreshold(T,F)&&this._queuedEntries.push(F):T&&T.isIntersecting&&this._queuedEntries.push(F):this._queuedEntries.push(F)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(f,l,v){if(window.getComputedStyle(f).display!="none"){for(var w=l,_=C(f),S=!1;!S&&_;){var T=null,A=_.nodeType==1?window.getComputedStyle(_):{};if(A.display=="none")return null;if(_==this.root||_.nodeType==9)if(S=!0,_==this.root||_==t)n&&!this.root?!i||i.width==0&&i.height==0?(_=null,T=null,w=null):T=i:T=v;else{var P=C(_),F=P&&m(P),K=P&&this._computeTargetAndRootIntersection(P,F,v);F&&K?(_=P,T=b(F,K)):(_=null,w=null)}else{var re=_.ownerDocument;_!=re.body&&_!=re.documentElement&&A.overflow!="visible"&&(T=m(_))}if(T&&(w=d(T,w)),!w)break;_=_&&C(_)}return w}},a.prototype._getRootRect=function(){var f;if(this.root&&!R(this.root))f=m(this.root);else{var l=R(this.root)?this.root:t,v=l.documentElement,w=l.body;f={top:0,left:0,right:v.clientWidth||w.clientWidth,width:v.clientWidth||w.clientWidth,bottom:v.clientHeight||w.clientHeight,height:v.clientHeight||w.clientHeight}}return this._expandRectByRootMargin(f)},a.prototype._expandRectByRootMargin=function(f){var l=this._rootMarginValues.map(function(w,_){return w.unit=="px"?w.value:w.value*(_%2?f.width:f.height)/100}),v={top:f.top-l[0],right:f.right+l[1],bottom:f.bottom+l[2],left:f.left-l[3]};return v.width=v.right-v.left,v.height=v.bottom-v.top,v},a.prototype._hasCrossedThreshold=function(f,l){var v=f&&f.isIntersecting?f.intersectionRatio||0:-1,w=l.isIntersecting?l.intersectionRatio||0:-1;if(v!==w)for(var _=0;_<this.thresholds.length;_++){var S=this.thresholds[_];if(S==v||S==w||S<v!=S<w)return!0}},a.prototype._rootIsInDom=function(){return!this.root||E(t,this.root)},a.prototype._rootContainsTarget=function(f){var l=this.root&&(this.root.ownerDocument||this.root)||t;return E(l,f)&&(!this.root||l==f.ownerDocument)},a.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},a.prototype._unregisterInstance=function(){var f=r.indexOf(this);f!=-1&&r.splice(f,1)};function u(){return window.performance&&performance.now&&performance.now()}function s(f,l){var v=null;return function(){v||(v=setTimeout(function(){f(),v=null},l))}}function c(f,l,v,w){typeof f.addEventListener=="function"?f.addEventListener(l,v,w):typeof f.attachEvent=="function"&&f.attachEvent("on"+l,v)}function h(f,l,v,w){typeof f.removeEventListener=="function"?f.removeEventListener(l,v,w):typeof f.detachEvent=="function"&&f.detachEvent("on"+l,v)}function d(f,l){var v=Math.max(f.top,l.top),w=Math.min(f.bottom,l.bottom),_=Math.max(f.left,l.left),S=Math.min(f.right,l.right),T=S-_,A=w-v;return T>=0&&A>=0&&{top:v,bottom:w,left:_,right:S,width:T,height:A}||null}function m(f){var l;try{l=f.getBoundingClientRect()}catch{}return l?(l.width&&l.height||(l={top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:l.right-l.left,height:l.bottom-l.top}),l):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function g(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function b(f,l){var v=l.top-f.top,w=l.left-f.left;return{top:v,left:w,height:l.height,width:l.width,bottom:v+l.height,right:w+l.width}}function E(f,l){for(var v=l;v;){if(v==f)return!0;v=C(v)}return!1}function C(f){var l=f.parentNode;return f.nodeType==9&&f!=t?e(f):(l&&l.assignedSlot&&(l=l.assignedSlot.parentNode),l&&l.nodeType==11&&l.host?l.host:l)}function R(f){return f&&f.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=o}()),Ie}_r();function hn(e,t){var r={},n=r.callback,i=Q(r,["callback"]),o=O(y.useState(),2),a=o[0],u=o[1],s=O(y.useState(),2),c=s[0],h=s[1];return le(function(){var d=Array.isArray(e)?e:[e],m=d.map(function(g){return H(g)}).filter(Boolean);if(m.length){var p=new IntersectionObserver(function(g){var b,E;try{for(var C=N(g),R=C.next();!R.done;R=C.next()){var f=R.value;h(f.intersectionRatio),u(f.isIntersecting),n?.(f)}}catch(l){b={error:l}}finally{try{R&&!R.done&&(E=C.return)&&E.call(C)}finally{if(b)throw b.error}}},M(M({},i),{root:H(void 0)}));return m.forEach(function(g){return p.observe(g)}),function(){p.disconnect()}}},[void 0,void 0,n],e),[a,c]}var Er=function(e,t,r){var n=y.useRef(void 0),i=y.useRef(0);mt(t,n.current)||(i.current+=1),n.current=t,le(e,[i.current],r)},Rr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator?.platform:""),yt={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:Rr?[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},Oe={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?yt.meta.includes(e.keyCode):e.metaKey}};function bt(e){return qt(e)||fe(e)}function Or(e){var t=Object.keys(Oe).reduce(function(r,n){return Oe[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Fe(e,t,r){var n,i;if(!e.key)return!1;if(fe(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=N(o),s=u.next();!s.done;s=u.next()){var c=s.value,h=Oe[c],d=yt[c.toLowerCase()];(h&&h(e)||d&&d===e.keyCode)&&a++}}catch(m){n={error:m}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&Or(e)===o.length?t:!1:a===o.length?t:!1}function Sr(e,t){return U(e)?e:bt(e)?function(r){return Fe(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Fe(r,n,t)})}:function(){return!!e}}var Tr=["keydown"];function pn(e,t,r){var n=r||{},i=n.events,o=i===void 0?Tr:i,a=n.target,u=n.exactMatch,s=u===void 0?!1:u,c=n.useCapture,h=c===void 0?!1:c,d=z(t),m=z(e);Er(function(){var p,g,b,E=H(a,window);if(E){var C=function(v){var w,_=Sr(m.current,s),S=_(v),T=bt(S)?S:v.key;if(S)return(w=d.current)===null||w===void 0?void 0:w.call(d,v,T)};try{for(var R=N(o),f=R.next();!f.done;f=R.next()){var l=f.value;(b=E?.addEventListener)===null||b===void 0||b.call(E,l,C,h)}}catch(v){p={error:v}}finally{try{f&&!f.done&&(g=R.return)&&g.call(R)}finally{if(p)throw p.error}}return function(){var v,w,_;try{for(var S=N(o),T=S.next();!T.done;T=S.next()){var A=T.value;(_=E?.removeEventListener)===null||_===void 0||_.call(E,A,C,h)}}catch(P){v={error:P}}finally{try{T&&!T.done&&(w=S.return)&&w.call(S)}finally{if(v)throw v.error}}}}},[o],a)}var Be="AHOOKS_SYNC_STORAGE_EVENT_NAME";function wt(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,s=u===void 0?function(R){console.error(R)}:u;try{i=e()}catch(R){s(R)}var c=function(R){return n.serializer?n.serializer(R):JSON.stringify(R)},h=function(R){return n.deserializer?n.deserializer(R):JSON.parse(R)};function d(){try{var R=i?.getItem(r);if(R)return h(R)}catch(f){s(f)}return U(n.defaultValue)?n.defaultValue():n.defaultValue}var m=O(y.useState(d),2),p=m[0],g=m[1];Z(function(){g(d())},[r]);var b=function(R){var f=U(R)?R(p):R;a||g(f);try{var l=void 0,v=i?.getItem(r);Ut(f)?(l=null,i?.removeItem(r)):(l=c(f),i?.setItem(r,l)),dispatchEvent(new CustomEvent(Be,{detail:{key:r,newValue:l,oldValue:v,storageArea:i}}))}catch(w){s(w)}},E=function(R){R.key!==r||R.storageArea!==i||g(d())},C=function(R){E(R.detail)};return Re("storage",E,{enable:a}),Re(Be,C,{enable:a}),[p,L(b)]}return t}var mn=wt(function(){return W?localStorage:void 0});function Cr(e){var t=y.useRef(0),r=O(y.useState(e),2),n=r[0],i=r[1],o=y.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return k(function(){cancelAnimationFrame(t.current)}),[n,o]}var xr=function(e,t){return!Object.is(e,t)};function gn(e,t){t===void 0&&(t=xr);var r=y.useRef(void 0),n=y.useRef(void 0);return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var ze=new WeakMap,He=new WeakMap;function _t(e,t){var r=ze.get(e);if(r)return r;if(He.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),s=Reflect.getOwnPropertyDescriptor(i,o);return!s?.configurable&&!s?.writable?u:Pt(u)||Array.isArray(u)?_t(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return ze.set(e,n),He.set(n,e),n}function yn(e){var t=ht(),r=y.useRef(e),n=Te(function(){return _t(r.current,function(){t()})},[]);return n}var bn=wt(function(){return W?sessionStorage:void 0}),wn=function(e){var t=O(y.useState(e),2),r=t[0],n=t[1],i=L(function(o){n(function(a){var u=U(o)?o(a):o;return u?M(M({},a),u):a})});return[r,i]},Et=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),Se=typeof window<"u"&&typeof document<"u"&&window.document===document,ae=function(){return typeof B<"u"&&B.Math===Math?B:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Mr=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ae):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ar=2;function Dr(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){Mr(o)}function u(){var s=Date.now();if(r){if(s-i<Ar)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=s}return u}var Pr=20,jr=["top","right","bottom","left","width","height","size","weight"],Ir=typeof MutationObserver<"u",Lr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Dr(this.refresh.bind(this),Pr)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Se||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ir?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Se||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=jr.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Rt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},$=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ae},Ot=de(0,0,0,0);function ue(e){return parseFloat(e)||0}function Ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+ue(o)},0)}function Fr(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=ue(a)}return r}function Br(e){var t=e.getBBox();return de(0,0,t.width,t.height)}function zr(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Ot;var n=$(e).getComputedStyle(e),i=Fr(n),o=i.left+i.right,a=i.top+i.bottom,u=ue(n.width),s=ue(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=Ne(n,"left","right")+o),Math.round(s+a)!==r&&(s-=Ne(n,"top","bottom")+a)),!Nr(e)){var c=Math.round(u+o)-t,h=Math.round(s+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(h)!==1&&(s-=h)}return de(i.left,i.top,u,s)}var Hr=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof $(e).SVGGraphicsElement}:function(e){return e instanceof $(e).SVGElement&&typeof e.getBBox=="function"}}();function Nr(e){return e===$(e).document.documentElement}function Wr(e){return Se?Hr(e)?Br(e):zr(e):Ot}function qr(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Rt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function de(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Ur=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=de(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Wr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),kr=function(){function e(t,r){var n=qr(r);Rt(this,{target:t,contentRect:n})}return e}(),Vr=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Et,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof $(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Ur(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof $(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new kr(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),St=typeof WeakMap<"u"?new WeakMap:new Et,Tt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Lr.getInstance(),n=new Vr(t,r,this);St.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Tt.prototype[e]=function(){var t;return(t=St.get(this))[e].apply(t,arguments)}});var Gr=function(){return typeof ae.ResizeObserver<"u"?ae.ResizeObserver:Tt}(),$r=pt(y.useLayoutEffect),Kr=W?$r:le;function _n(e){var t=O(Cr(function(){var i=H(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return Kr(function(){var i=H(e);if(i){var o=new Gr(function(a){a.forEach(function(u){var s=u.target,c=s.clientWidth,h=s.clientHeight;n({width:c,height:h})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function En(e,t){var r,n=z(e),i=(r=t?.wait)!==null&&r!==void 0?r:1e3,o=y.useMemo(function(){return ke(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,x([],O(a),!1))},i,t)},[]);return k(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var ye,We;function Jr(){return We||(We=1,ye=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),ye}var be,qe;function Yr(){if(qe)return be;qe=1;var e=Jr(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function i(o,a){var u,s,c,h,d,m,p=!1;a||(a={}),u=a.debug||!1;try{c=e(),h=document.createRange(),d=document.getSelection(),m=document.createElement("span"),m.textContent=o,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(b){if(b.stopPropagation(),a.format)if(b.preventDefault(),typeof b.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var E=t[a.format]||t.default;window.clipboardData.setData(E,o)}else b.clipboardData.clearData(),b.clipboardData.setData(a.format,o);a.onCopy&&(b.preventDefault(),a.onCopy(b.clipboardData))}),document.body.appendChild(m),h.selectNodeContents(m),d.addRange(h);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(b){u&&console.error("unable to copy using execCommand: ",b),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),p=!0}catch(E){u&&console.error("unable to copy using clipboardData: ",E),u&&console.error("falling back to prompt"),s=n("message"in a?a.message:r),window.prompt(s,o)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(h):d.removeAllRanges()),m&&document.body.removeChild(m),c()}return p}return be=i,be}var Xr=Yr();const Rn=se(Xr),On=At(Wt);function Zr(){var e=y.useRef(!1),t=y.useCallback(function(){return e.current},[]);return y.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Qr(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=y.useRef(0),i=Zr(),o=y.useState(r),a=o[0],u=o[1],s=y.useCallback(function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];var d=++n.current;return a.loading||u(function(m){return M(M({},m),{loading:!0})}),e.apply(void 0,c).then(function(m){return i()&&d===n.current&&u({value:m,loading:!1}),m},function(m){return i()&&d===n.current&&u({error:m,loading:!1}),m})},t);return[a,s]}function en(e,t){t===void 0&&(t=[]);var r=Qr(e,t,{loading:!0}),n=r[0],i=r[1];return y.useEffect(function(){i()},[i]),n}var Sn=function(e,t){t===void 0&&(t=[]);var r=y.useState(0),n=r[0],i=r[1],o=en(e,oe(t,[n])),a=o.loading,u=y.useCallback(function(){a||i(function(s){return s+1})},oe(t,[a]));return M(M({},o),{retry:u})};export{Z as $,Sn as A,ht as B,nn as C,en as D,Ve as E,ee as F,te as G,M as H,fn as I,pn as J,ln as K,Ge as _,Te as a,L as b,Rn as c,Ft as d,_n as e,z as f,yn as g,ur as h,cn as i,yr as j,En as k,on as l,vn as m,sn as n,mn as o,fr as p,gn as q,k as r,dn as s,bn as t,pr as u,wn as v,an as w,un as x,On as y,hn as z};
|