@abtnode/blocklet-services 1.16.23-beta-2229bcee → 1.16.23-beta-47ca27f8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Add-WGVQ3GRr.js → Add-HAkh2sOx.js} +1 -1
- package/dist/assets/{Avatar-YMtJdnI_.js → Avatar-5PX3dF0M.js} +1 -1
- package/dist/assets/Box-2_oXuYOC.js +1 -0
- package/dist/assets/Box-yQhvFXZ4.js +1 -0
- package/dist/assets/{Button-Oyoqwxg3.js → Button-Taj4wxsV.js} +1 -1
- package/dist/assets/{ButtonBase-5Z1AWt5e.js → ButtonBase-TsfR2Ejp.js} +1 -1
- package/dist/assets/{ButtonBase-xjweeUOl.js → ButtonBase-ds-9hfKF.js} +1 -1
- package/dist/assets/{CardContent-yeDfX9ln.js → CardContent-Vn0H-ykk.js} +1 -1
- package/dist/assets/{CheckCircle-8IV-X6By.js → CheckCircle-wp8Rpkat.js} +1 -1
- package/dist/assets/{Checkbox-1cXdLmYE.js → Checkbox-WEkSGgqM.js} +1 -1
- package/dist/assets/{ChevronLeft-S0fikUJz.js → ChevronLeft-MTYzdGu1.js} +1 -1
- package/dist/assets/{ChevronRight-zPOQgoXz.js → ChevronRight-23KxaoBu.js} +1 -1
- package/dist/assets/{Chip-YPzB9l-v.js → Chip-oMHQfGpn.js} +1 -1
- package/dist/assets/{CircularProgress-vLV_mYDK.js → CircularProgress-UhRyzU-L.js} +1 -1
- package/dist/assets/{Close-LIjcg2Ps.js → Close-7tjuDTIQ.js} +1 -1
- package/dist/assets/{Collapse-MqqvdojT.js → Collapse-Rktw-r6T.js} +1 -1
- package/dist/assets/{DeleteOutline-7B3nYSpV.js → DeleteOutline-dHCLXJOk.js} +1 -1
- package/dist/assets/{Done-zcM7xD3g.js → Done-0AHeZpV_.js} +1 -1
- package/dist/assets/{Download-RZ4Xe2KO.js → Download-RrzGwcpL.js} +1 -1
- package/dist/assets/{Edit-wDeuP8y3.js → Edit-9FHLgqnc.js} +1 -1
- package/dist/assets/{EditIcon-OMijC2ii.js → EditIcon-JNYyqVkw.js} +1 -1
- package/dist/assets/{ExpandMore-vPh5i2pY.js → ExpandMore-AZp5Wv95.js} +1 -1
- package/dist/assets/{ExpandMore-IoFpVjxd.js → ExpandMore-HS9ZdUC5.js} +1 -1
- package/dist/assets/{FilterList-1CdZTXpd.js → FilterList-tSSRG144.js} +1 -1
- package/dist/assets/{Google-0LXkMlJf.js → Google-XP8iq_9h.js} +1 -1
- package/dist/assets/{Grid-69U8MTSa.js → Grid-LxqZ048V.js} +1 -1
- package/dist/assets/{Grid-NvOzc65v.js → Grid-uIDC1Dk-.js} +1 -1
- package/dist/assets/{Hidden-tYBefado.js → Hidden-jOHh-nOO.js} +1 -1
- package/dist/assets/{IconButton-4mdVVQZ8.js → IconButton-N0c6O5nz.js} +1 -1
- package/dist/assets/{IconButton-Stp3xBL-.js → IconButton-UwR3-0NL.js} +1 -1
- package/dist/assets/{InfoOutlined-DPvsHq9m.js → InfoOutlined-mkAnLuml.js} +1 -1
- package/dist/assets/{InputAdornment-Mjrquz9X.js → InputAdornment-_p1uwE3h.js} +1 -1
- package/dist/assets/{InputAdornment-Qv284Vfe.js → InputAdornment-eiYABgDx.js} +1 -1
- package/dist/assets/{InputLabel-uyVS695v.js → InputLabel-Z2BfnoGi.js} +1 -1
- package/dist/assets/{Launch-w3Wye567.js → Launch-t50iGquN.js} +1 -1
- package/dist/assets/{Link-Hw9Ca0hp.js → Link-S6gXb_sR.js} +1 -1
- package/dist/assets/{Link-UFDa3yGB.js → Link-Ztw8lZh_.js} +1 -1
- package/dist/assets/{ListItem-xXgvl-_v.js → ListItem-CsQT7_Y0.js} +1 -1
- package/dist/assets/{ListItemText-HBcpjb-y.js → ListItemText-Z_BlB5GU.js} +1 -1
- package/dist/assets/{LockIcon-aS_vBnoW.js → LockIcon-N64w0tOF.js} +1 -1
- package/dist/assets/{Loop-rUutauWI.js → Loop-cXU2nixm.js} +1 -1
- package/dist/assets/{OpenInNew-JP2h5vEP.js → OpenInNew-e-1hEprE.js} +1 -1
- package/dist/assets/{Pagination-ELeIARUc.js → Pagination-hF6gAwBG.js} +1 -1
- package/dist/assets/{Paper-CT8-Tf75.js → Paper-dhztGun2.js} +1 -1
- package/dist/assets/{RevokeIcon-ZQFK5fXr.js → RevokeIcon-6b0zoRoM.js} +1 -1
- package/dist/assets/{Search-7VfT-NID.js → Search-K8k_olp5.js} +1 -1
- package/dist/assets/{Search-YNaL_Cal.js → Search-hARQKO4c.js} +1 -1
- package/dist/assets/{Select-tZktthO0.js → Select-VVRpAz6G.js} +1 -1
- package/dist/assets/{ServerLogo-DsjZVfJP.js → ServerLogo-Z-AxAPF-.js} +1 -1
- package/dist/assets/{Skeleton-xucwHuGs.js → Skeleton-DOJpxB_p.js} +1 -1
- package/dist/assets/{StepLabel-5BqddTtn.js → StepLabel-qH6Jspwz.js} +1 -1
- package/dist/assets/{TextField-MscCjrFR.js → TextField-7oqc3A5T.js} +1 -1
- package/dist/assets/{TextField-MHpA2nij.js → TextField-Xzz8twmn.js} +2 -2
- package/dist/assets/{Toolbar-blleP0fp.js → Toolbar-erlbYT0o.js} +1 -1
- package/dist/assets/{Tooltip-TJebbf08.js → Tooltip-N8uXItlt.js} +1 -1
- package/dist/assets/{Typography-VrdbhbRS.js → Typography-UDbZ1S4P.js} +1 -1
- package/dist/assets/{Typography-gzW9rNGq.js → Typography-gcm4VbT4.js} +1 -1
- package/dist/assets/{access-control-QO19LJxv.js → access-control-1-AB8Zz4.js} +1 -1
- package/dist/assets/{actions-wnWrwpfr.js → actions-pPHDcJiy.js} +1 -1
- package/dist/assets/{add-component-core-UJUpRIi2.js → add-component-core-JltpkqM1.js} +19 -19
- package/dist/assets/add-resource-3pZIROMS.js +1 -0
- package/dist/assets/{addon-64KY17R3.js → addon-0ytccgFe.js} +1 -1
- package/dist/assets/{analytics-jAN7GSCb.js → analytics-QLTA0Klt.js} +1 -1
- package/dist/assets/api-plw61fT1.js +1 -0
- package/dist/assets/{audit-logs-VNHThEQI.js → audit-logs-QNzACvgL.js} +1 -1
- package/dist/assets/{button-rmyqwOhO.js → button-LQo--zEq.js} +1 -1
- package/dist/assets/{click-to-copy-yc98TA-Y.js → click-to-copy-YCRgRpgV.js} +1 -1
- package/dist/assets/{complete-Rx2E-AIR.js → complete-kSWTrUDB.js} +1 -1
- package/dist/assets/{component-lOj5KJ2H.js → component-R4OOvs3Y.js} +26 -26
- package/dist/assets/{config-edsFrKDH.js → config-EMixIt7x.js} +1 -1
- package/dist/assets/{config-Qydx8uJj.js → config-M72R5lj3.js} +1 -1
- package/dist/assets/{config-navigation-VjGxKtAq.js → config-navigation-TqAA_VTM.js} +13 -13
- package/dist/assets/{config-space-1IVZiyVu.js → config-space-hqP646ET.js} +1 -1
- package/dist/assets/{confirm-X32y0OJ8.js → confirm-qiO2KLCl.js} +1 -1
- package/dist/assets/{connect-__18smU1.js → connect-qstsRWWM.js} +1 -1
- package/dist/assets/{connect-to-lZyqUXok.js → connect-to-tAiM-2C-.js} +1 -1
- package/dist/assets/{connect-khzazIhm.js → connect-w4waItwI.js} +1 -1
- package/dist/assets/{content-layout-7Xs3RZeR.js → content-layout-5a5YwWiV.js} +1 -1
- package/dist/assets/{createStack-Q1bse37y.js → createStack-otVt5u3V.js} +1 -1
- package/dist/assets/{createSvgIcon-As8N9OsD.js → createSvgIcon-dMfYf-BF.js} +1 -1
- package/dist/assets/{createSvgIcon-QnMMaQef.js → createSvgIcon-vJHFh5-e.js} +1 -1
- package/dist/assets/{dashboard-hjUAT53t.js → dashboard-tk2Zj0Iy.js} +3 -3
- package/dist/assets/{did-address-nnmMTsE0.js → did-address-EcQj8KKn.js} +1 -1
- package/dist/assets/{domain-ZhlFXZvh.js → domain-2CdQ_Y3W.js} +1 -1
- package/dist/assets/{domain-list-xjV9jYyD.js → domain-list-RmHrzAld.js} +1 -1
- package/dist/assets/{exchange-passport-KGyEbK3I.js → exchange-passport-fwa9EQLX.js} +1 -1
- package/dist/assets/{fallback-IEuA_cby.js → fallback-rmh2tyHR.js} +1 -1
- package/dist/assets/{formControlState-RTdrWynp.js → formControlState-ITAwsVlF.js} +1 -1
- package/dist/assets/{fuel-FgAgOiF7.js → fuel-OeFTUAqM.js} +1 -1
- package/dist/assets/{fullpage-TV1AEuff.js → fullpage-ulgaGMfr.js} +1 -1
- package/dist/assets/home-Kau_sqYV.js +1 -0
- package/dist/assets/{iframe-DRT4l2HB.js → iframe-RYGZInxO.js} +1 -1
- package/dist/assets/{index-G3IOBshf.js → index--wiF8mdU.js} +3 -3
- package/dist/assets/{index-b7P8dXaW.js → index-1LoAlz_D.js} +109 -109
- package/dist/assets/{index-OTxP0mo5.js → index-3Gt1qwaG.js} +1 -1
- package/dist/assets/{index-FvQORRgH.js → index-3L-shBOI.js} +1 -1
- package/dist/assets/{index-hURffp3u.js → index-7CTOHAM7.js} +1 -1
- package/dist/assets/{index-oAG2POvk.js → index-7dpcVR4r.js} +1 -1
- package/dist/assets/{index-1kJhAn58.js → index-A70j6-FT.js} +1 -1
- package/dist/assets/{index-2lTWjgGl.js → index-IfzllcnH.js} +1 -1
- package/dist/assets/{index-a20c3idj.js → index-M2Q-LUVW.js} +1 -1
- package/dist/assets/{index-JEZqkZBH.js → index-MICfQdxp.js} +1 -1
- package/dist/assets/{index-0L6EFjA-.js → index-S3AXT8xr.js} +1 -1
- package/dist/assets/{index-wbQ-ZxVz.js → index-VFVjYT5M.js} +1 -1
- package/dist/assets/{index-y7MSz_DX.js → index-W2uUvH1R.js} +1 -1
- package/dist/assets/{index-ClDKkclJ.js → index-XhgQcf4c.js} +1 -1
- package/dist/assets/{index-UmYTEmfc.js → index-bzO1lgrh.js} +1 -1
- package/dist/assets/{index-s9QIt3ko.js → index-dSx-_bkh.js} +1 -1
- package/dist/assets/{index-t6K4UMWm.js → index-eHJVJ0oa.js} +3 -3
- package/dist/assets/{index-A0XP7jOV.js → index-f2e8-jph.js} +1 -1
- package/dist/assets/{index-fp_GCKZG.js → index-fy3VHxQ-.js} +1 -1
- package/dist/assets/{index-7YCI1diH.js → index-ifZh0v2H.js} +1 -1
- package/dist/assets/{index-8yqf8NtP.js → index-lH7kst-l.js} +1 -1
- package/dist/assets/{index-mR4p-IgT.js → index-p49pWz3A.js} +1 -1
- package/dist/assets/{index-dHXZG-ng.js → index-vK8pD1J5.js} +1 -1
- package/dist/assets/{index-CUQzUKjp.js → index-wqiaLCSa.js} +1 -1
- package/dist/assets/{index-5z2yj7B6.js → index-wzDvlRWd.js} +1 -1
- package/dist/assets/{index-LjaUA433.js → index-x-hWO8c2.js} +1 -1
- package/dist/assets/index-yavkBA9P.js +1 -0
- package/dist/assets/{index-H-EdJCOS.js → index-z68tym-5.js} +1 -1
- package/dist/assets/{index-DKbVweR7.js → index-zANLoUbz.js} +3 -3
- package/dist/assets/{index.es-l5uagbAO.js → index.es-g7x0RbBb.js} +1 -1
- package/dist/assets/{index.esm-vxs0Vp_r.js → index.esm-EKRhXnXW.js} +1 -1
- package/dist/assets/{invite-GtClRUaU.js → invite-zRKtERWD.js} +1 -1
- package/dist/assets/{issue-passport-KoPvY9Kk.js → issue-passport-9JCUpg-H.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-_8ajCc8G.js → jss-plugin-props-sort.esm-WZ6qfOAb.js} +1 -1
- package/dist/assets/{launch-result-message-fUnGqO_Z.js → launch-result-message-OfebXpdW.js} +1 -1
- package/dist/assets/{layout-_JN8FvY3.js → layout-T_0qJLQ2.js} +1 -1
- package/dist/assets/{list-header-TzeTzN0P.js → list-header-utM5dBjc.js} +1 -1
- package/dist/assets/{listItemButtonClasses-dVmEAM-y.js → listItemButtonClasses-hkZeStXq.js} +1 -1
- package/dist/assets/localization-91hg4t7I.js +1 -0
- package/dist/assets/{log-ncZ4SWpA.js → log-I1GzaD_w.js} +1 -1
- package/dist/assets/{login-NuAi2Syo.js → login-04v880Iz.js} +1 -1
- package/dist/assets/{logo-uploader-Oo_gyW5D.js → logo-uploader-GWc0UE5a.js} +3 -3
- package/dist/assets/{lost-passport-c0AB43lK.js → lost-passport-F5idDReU.js} +3 -3
- package/dist/assets/{lottie-RDmkFf84.js → lottie-HUeyVXHO.js} +1 -1
- package/dist/assets/{notifications-N7Zish1m.js → notifications-l1yCHIQ4.js} +1 -1
- package/dist/assets/{overview-IaJ_cbdi.js → overview-nK3M7e6f.js} +1 -1
- package/dist/assets/{page-header-xhgLZB05.js → page-header-UMumPn76.js} +1 -1
- package/dist/assets/{permission-Cm7HAliG.js → permission-4bghYHvM.js} +1 -1
- package/dist/assets/{preferences-uIse65rz.js → preferences-8RXBVFut.js} +1 -1
- package/dist/assets/publish-resource-hzXbza9w.js +1 -0
- package/dist/assets/{react-o04d-cyu.js → react-Pl9wLqVE.js} +6 -6
- package/dist/assets/{selector-w-1YjotN.js → selector-8S0Ovg2V.js} +1 -1
- package/dist/assets/session-qd-ncyNw.js +1 -0
- package/dist/assets/{setup-Uv9GFsZo.js → setup-Azfq43r5.js} +3 -3
- package/dist/assets/slicedToArray-sAkvvam0.js +2 -0
- package/dist/assets/{spaces-WiAi-IsC.js → spaces-pyZ1WB8d.js} +1 -1
- package/dist/assets/{start-mwHJkaqh.js → start-1Un44vsd.js} +1 -1
- package/dist/assets/{step-actions-tzewrsBu.js → step-actions-mQONdxTQ.js} +1 -1
- package/dist/assets/{studio-p1SDntTP.js → studio-DELVgW-e.js} +1 -1
- package/dist/assets/{styled-PB3HdPJn.js → styled-vyyGyo-B.js} +1 -1
- package/dist/assets/{switch-control-dwDYbRCs.js → switch-control-U_pIrchw.js} +1 -1
- package/dist/assets/{toUpper-vVgUYjsF.js → toUpper-2qNPrjIY.js} +1 -1
- package/dist/assets/{transfer-hEPB6naM.js → transfer-wFwEqrOx.js} +1 -1
- package/dist/assets/{uniqBy-MyT7qhfv.js → uniqBy-pUE78X3A.js} +1 -1
- package/dist/assets/{unsubscribe-I1lmv_D0.js → unsubscribe-xRe3X65Z.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-dreUs9Sq.js → use-blocklet-info-for-connect-did-spaces-CtHsgbj0.js} +1 -1
- package/dist/assets/{useAsync-rY0Vnqtc.js → useAsync-pxr77aA7.js} +1 -1
- package/dist/assets/{useMediaQuery-_-fVP1yd.js → useMediaQuery--siIU3rp.js} +1 -1
- package/dist/assets/{useSetState-XoAUn8MB.js → useSetState-W0uZizyA.js} +1 -1
- package/dist/assets/{useSlotProps-tC6PRPgK.js → useSlotProps-JXekjaoI.js} +1 -1
- package/dist/assets/useTheme-umtft1k4.js +1 -0
- package/dist/assets/{user-center-HgiCB6xs.js → user-center-at2edvXt.js} +1 -1
- package/dist/assets/{util-MPIIDw4m.js → util-QwXbQR6E.js} +1 -1
- package/dist/assets/{wrap-locale-D0W5J_eH.js → wrap-locale-BPajZpMF.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/Box-19RxwaCl.js +0 -1
- package/dist/assets/Box-5JP3oQ3C.js +0 -1
- package/dist/assets/add-resource-7aFOKZXw.js +0 -1
- package/dist/assets/api-Ju9OpSYb.js +0 -1
- package/dist/assets/home-6oLbXW1Q.js +0 -1
- package/dist/assets/index-iz89eKW_.js +0 -1
- package/dist/assets/localization-0_Q3Njmy.js +0 -1
- package/dist/assets/publish-resource-zdjnf6_1.js +0 -1
- package/dist/assets/session-m6Wr3myh.js +0 -1
- package/dist/assets/slicedToArray-GzH9QIuR.js +0 -2
- package/dist/assets/useTheme-qZqW0dW7.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bK as Ce,aM as Ga,ce as je,r as D,fb as Br,bJ as Ba}from"./index-b7P8dXaW.js";import{c as za}from"./redux-XOuz_cVf.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",C="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",Dn="[object Float32Array]",Sn="[object Float64Array]",On="[object Int8Array]",Tn="[object Int16Array]",wn="[object Int32Array]",In="[object Uint8Array]",Cn="[object Uint8ClampedArray]",_n="[object Uint16Array]",En="[object Uint32Array]",Pn=/[\\^$.*+?()[\]{}|]/g,An=/^\[object .+?Constructor\]$/,kn=/^(?:0|[1-9]\d*)$/,w={};w[Dn]=w[Sn]=w[On]=w[Tn]=w[wn]=w[In]=w[Cn]=w[_n]=w[En]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[C]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,Rn=typeof self=="object"&&self&&self.Object===Object&&self,W=Tt||Rn||Function("return this")(),wt=t&&!t.nodeType&&t,It=wt&&!0&&e&&!e.nodeType&&e,Ct=It&&It.exports===wt,Ke=Ct&&Tt.process,_t=function(){try{return Ke&&Ke.binding&&Ke.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function Mn(i,u){for(var l=-1,g=i==null?0:i.length,I=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[I++]=E)}return y}function $n(i,u){for(var l=-1,g=u.length,I=i.length;++l<g;)i[I+l]=u[l];return i}function xn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Nn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function jn(i){return function(u){return i(u)}}function Ln(i,u){return i.has(u)}function Hn(i,u){return i==null?void 0:i[u]}function Un(i){var u=-1,l=Array(i.size);return i.forEach(function(g,I){l[++u]=[I,g]}),l}function Fn(i,u){return function(l){return i(u(l))}}function qn(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var Gn=Array.prototype,Bn=Function.prototype,me=Object.prototype,Xe=W["__core-js_shared__"],Pt=Bn.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,zn=RegExp("^"+Pt.call(B).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ct?W.Buffer:void 0,be=W.Symbol,Mt=W.Uint8Array,$t=me.propertyIsEnumerable,Wn=Gn.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,Kn=Rt?Rt.isBuffer:void 0,Xn=Fn(Object.keys,Object),Ye=ie(W,"DataView"),ce=ie(W,"Map"),Ve=ie(W,"Promise"),Qe=ie(W,"Set"),Je=ie(W,"WeakMap"),fe=ie(Object,"create"),Yn=re(Ye),Vn=re(ce),Qn=re(Ve),Jn=re(Qe),Zn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ea(){this.__data__=fe?fe(null):{},this.size=0}function ta(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function ra(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function na(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function aa(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=ea,ee.prototype.delete=ta,ee.prototype.get=ra,ee.prototype.has=na,ee.prototype.set=aa;function K(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ia(){this.__data__=[],this.size=0}function oa(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():Wn.call(u,l,1),--this.size,!0}function ua(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function sa(i){return Se(this.__data__,i)>-1}function ca(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}K.prototype.clear=ia,K.prototype.delete=oa,K.prototype.get=ua,K.prototype.has=sa,K.prototype.set=ca;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function fa(){this.size=0,this.__data__={hash:new ee,map:new(ce||K),string:new ee}}function la(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function da(i){return Oe(this,i).get(i)}function ga(i){return Oe(this,i).has(i)}function ha(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=fa,te.prototype.delete=la,te.prototype.get=da,te.prototype.has=ga,te.prototype.set=ha;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function pa(i){return this.__data__.set(i,n),this}function va(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=pa,De.prototype.has=va;function V(i){var u=this.__data__=new K(i);this.size=u.size}function ya(){this.__data__=new K,this.size=0}function ma(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function ba(i){return this.__data__.get(i)}function Da(i){return this.__data__.has(i)}function Sa(i,u){var l=this.__data__;if(l instanceof K){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ya,V.prototype.delete=ma,V.prototype.get=ba,V.prototype.has=Da,V.prototype.set=Sa;function Oa(i,u){var l=Te(i),g=!l&&ja(i),I=!l&&!g&&et(i),y=!l&&!g&&!I&&zt(i),E=l||g||I||y,R=E?Nn(i.length,String):[],M=R.length;for(var _ in i)(u||B.call(i,_))&&!(E&&(_=="length"||I&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ra(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function Ta(i,u,l){var g=u(i);return Te(i)?g:$n(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?Aa(i):Na(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,I){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:wa(i,u,l,g,Lt,I)}function wa(i,u,l,g,I,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||zt(i)?Ht(i,u,l,g,I,y):Ea(i,u,M,l,g,I,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,X=H?u.value():u;return y||(y=new V),I(J,X,l,g,y)}}return x?(y||(y=new V),Pa(i,u,l,g,I,y)):!1}function Ia(i){if(!Bt(i)||$a(i))return!1;var u=qt(i)?zn:An;return u.test(re(i))}function Ca(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function _a(i){if(!xa(i))return Xn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,I,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!xn(u,function(X,ne){if(!Ln(x,ne)&&(L===X||I(L,X,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||I(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function Ea(i,u,l,g,I,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case C:var R=Un;case $:var M=g&a;if(R||(R=qn),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,I,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function Pa(i,u,l,g,I,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var X=i[x],ne=u[x];if(g)var Wt=E?g(ne,X,x,u,i,y):g(X,ne,x,i,u,y);if(!(Wt===void 0?X===ne||I(X,ne,l,g,y):Wt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ie=u.constructor;we!=Ie&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return Ta(i,Ua,ka)}function Oe(i,u){var l=i.__data__;return Ma(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Hn(i,u);return Ia(l)?l:void 0}function Aa(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var I=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),I}var ka=xt?function(i){return i==null?[]:(i=Object(i),Mn(xt(i),function(u){return $t.call(i,u)}))}:Fa,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=C||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Yn:return ye;case Vn:return C;case Qn:return T;case Jn:return $;case Zn:return se}return u});function Ra(i,u){return u=u??s,!!u&&(typeof i=="number"||kn.test(i))&&i>-1&&i%1==0&&i<u}function Ma(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function $a(i){return!!At&&At in i}function xa(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Na(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var ja=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function La(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=Kn||qa;function Ha(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var zt=Et?jn(Et):Ca;function Ua(i){return La(i)?Oa(i):_a(i)}function Fa(){return[]}function qa(){return!1}e.exports=Ha})(Le,Le.exports);var Wa=Le.exports;const As=Ga(Wa);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",ze="dnd-core/END_DRAG";function Kt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function Ka(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Xa(e,t){return e.filter(function(r){return r!==t})}function zr(e){return Pe(e)==="object"}function Ya(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function Va(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var Qa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Ja(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Kt(s)),Za(r,f,d);var v=ri(r,f);if(v===null){e.dispatch(Qa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");ei(c),b=c(v)}e.dispatch(Kt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);ti(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function Za(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function ei(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ti(e){h(zr(e),"Item must be an object.")}function ri(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ni(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function ai(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;ii(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();oi(o,s,c);var f=s.getItemType();return ui(o,c,f),si(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function ii(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function oi(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function ui(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function si(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xt(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();li(n);var o=hi(n);o.forEach(function(s,c){var f=di(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function li(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function di(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return gi(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function gi(e){h(typeof e>"u"||zr(e),"Drop result must either be an object or undefined.")}function hi(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function pi(e){return function(){var r=e.getMonitor(),n=e.getRegistry();vi(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:ze}}}function vi(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function yi(e){return{beginDrag:Ja(e),publishDragSource:ni(e),hover:ai(e),drop:fi(e),endDrag:pi(e)}}var mi=function(t,r){return t===r};function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return bi(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case ze:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",We="dnd-core/REMOVE_TARGET";function Ti(e){return{type:pt,payload:{sourceId:e}}}function wi(e){return{type:vt,payload:{targetId:e}}}function Ii(e){return{type:yt,payload:{sourceId:e}}}function Ci(e){return{type:We,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case We:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Xa(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ze:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case We:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function ki(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=Va(t,e);return r.length>0}function Ri(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case We:case yt:return He;case qe:case ht:case ze:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ya(n,o),c=s.length>0||!Di(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){$i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ri(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:Ka(e,"dragOperation.targetIds",[])})}),dragOffset:Oi(e.dragOffset,t),refCount:Ai(e.refCount,t),dragOperation:Pi(e.dragOperation,t),stateId:Mi(e.stateId)}}function Ni(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Wr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:Wr(Ni(t,n),r)}function Li(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:Wr(t,r)}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&rr(e.prototype,t),r&&rr(e,r),e}var Fi=function(){function e(t,r){Hi(this,e),this.store=t,this.registry=r}return Ui(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!ki(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return ji(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Li(this.store.getState().dragOffset)}}]),e}(),qi=0;function Gi(){return qi++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Bi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function zi(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const nr=typeof je<"u"?je:self,Kr=nr.MutationObserver||nr.WebKitMutationObserver;function Xr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function Wi(e){let t=1;const r=new Kr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Ki=typeof Kr=="function"?Wi:Xr;class Xi{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Ki(this.flush),this.requestErrorThrow=Xr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yi{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Vi{create(t){const r=this.freeTasks,n=r.length?r.pop():new Yi(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Yr=new Xi,Qi=new Vi(Yr.registerPendingError);function Ji(e){Yr.enqueueTask(Qi.create(e))}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eo(e,t,r){return t&&ar(e.prototype,t),r&&ar(e,r),e}function to(e,t){return io(e)||ao(e,t)||no(e,t)||ro()}function ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
import{bK as Ce,aM as Ga,ce as je,r as D,fb as Br,bJ as Ba}from"./index-1LoAlz_D.js";import{c as za}from"./redux-XOuz_cVf.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",C="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",Dn="[object Float32Array]",Sn="[object Float64Array]",On="[object Int8Array]",Tn="[object Int16Array]",wn="[object Int32Array]",In="[object Uint8Array]",Cn="[object Uint8ClampedArray]",_n="[object Uint16Array]",En="[object Uint32Array]",Pn=/[\\^$.*+?()[\]{}|]/g,An=/^\[object .+?Constructor\]$/,kn=/^(?:0|[1-9]\d*)$/,w={};w[Dn]=w[Sn]=w[On]=w[Tn]=w[wn]=w[In]=w[Cn]=w[_n]=w[En]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[C]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,Rn=typeof self=="object"&&self&&self.Object===Object&&self,W=Tt||Rn||Function("return this")(),wt=t&&!t.nodeType&&t,It=wt&&!0&&e&&!e.nodeType&&e,Ct=It&&It.exports===wt,Ke=Ct&&Tt.process,_t=function(){try{return Ke&&Ke.binding&&Ke.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function Mn(i,u){for(var l=-1,g=i==null?0:i.length,I=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[I++]=E)}return y}function $n(i,u){for(var l=-1,g=u.length,I=i.length;++l<g;)i[I+l]=u[l];return i}function xn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Nn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function jn(i){return function(u){return i(u)}}function Ln(i,u){return i.has(u)}function Hn(i,u){return i==null?void 0:i[u]}function Un(i){var u=-1,l=Array(i.size);return i.forEach(function(g,I){l[++u]=[I,g]}),l}function Fn(i,u){return function(l){return i(u(l))}}function qn(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var Gn=Array.prototype,Bn=Function.prototype,me=Object.prototype,Xe=W["__core-js_shared__"],Pt=Bn.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,zn=RegExp("^"+Pt.call(B).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ct?W.Buffer:void 0,be=W.Symbol,Mt=W.Uint8Array,$t=me.propertyIsEnumerable,Wn=Gn.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,Kn=Rt?Rt.isBuffer:void 0,Xn=Fn(Object.keys,Object),Ye=ie(W,"DataView"),ce=ie(W,"Map"),Ve=ie(W,"Promise"),Qe=ie(W,"Set"),Je=ie(W,"WeakMap"),fe=ie(Object,"create"),Yn=re(Ye),Vn=re(ce),Qn=re(Ve),Jn=re(Qe),Zn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ea(){this.__data__=fe?fe(null):{},this.size=0}function ta(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function ra(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function na(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function aa(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=ea,ee.prototype.delete=ta,ee.prototype.get=ra,ee.prototype.has=na,ee.prototype.set=aa;function K(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ia(){this.__data__=[],this.size=0}function oa(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():Wn.call(u,l,1),--this.size,!0}function ua(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function sa(i){return Se(this.__data__,i)>-1}function ca(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}K.prototype.clear=ia,K.prototype.delete=oa,K.prototype.get=ua,K.prototype.has=sa,K.prototype.set=ca;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function fa(){this.size=0,this.__data__={hash:new ee,map:new(ce||K),string:new ee}}function la(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function da(i){return Oe(this,i).get(i)}function ga(i){return Oe(this,i).has(i)}function ha(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=fa,te.prototype.delete=la,te.prototype.get=da,te.prototype.has=ga,te.prototype.set=ha;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function pa(i){return this.__data__.set(i,n),this}function va(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=pa,De.prototype.has=va;function V(i){var u=this.__data__=new K(i);this.size=u.size}function ya(){this.__data__=new K,this.size=0}function ma(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function ba(i){return this.__data__.get(i)}function Da(i){return this.__data__.has(i)}function Sa(i,u){var l=this.__data__;if(l instanceof K){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ya,V.prototype.delete=ma,V.prototype.get=ba,V.prototype.has=Da,V.prototype.set=Sa;function Oa(i,u){var l=Te(i),g=!l&&ja(i),I=!l&&!g&&et(i),y=!l&&!g&&!I&&zt(i),E=l||g||I||y,R=E?Nn(i.length,String):[],M=R.length;for(var _ in i)(u||B.call(i,_))&&!(E&&(_=="length"||I&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ra(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function Ta(i,u,l){var g=u(i);return Te(i)?g:$n(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?Aa(i):Na(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,I){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:wa(i,u,l,g,Lt,I)}function wa(i,u,l,g,I,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||zt(i)?Ht(i,u,l,g,I,y):Ea(i,u,M,l,g,I,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,X=H?u.value():u;return y||(y=new V),I(J,X,l,g,y)}}return x?(y||(y=new V),Pa(i,u,l,g,I,y)):!1}function Ia(i){if(!Bt(i)||$a(i))return!1;var u=qt(i)?zn:An;return u.test(re(i))}function Ca(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function _a(i){if(!xa(i))return Xn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,I,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!xn(u,function(X,ne){if(!Ln(x,ne)&&(L===X||I(L,X,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||I(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function Ea(i,u,l,g,I,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case C:var R=Un;case $:var M=g&a;if(R||(R=qn),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,I,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function Pa(i,u,l,g,I,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var X=i[x],ne=u[x];if(g)var Wt=E?g(ne,X,x,u,i,y):g(X,ne,x,i,u,y);if(!(Wt===void 0?X===ne||I(X,ne,l,g,y):Wt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ie=u.constructor;we!=Ie&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return Ta(i,Ua,ka)}function Oe(i,u){var l=i.__data__;return Ma(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Hn(i,u);return Ia(l)?l:void 0}function Aa(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var I=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),I}var ka=xt?function(i){return i==null?[]:(i=Object(i),Mn(xt(i),function(u){return $t.call(i,u)}))}:Fa,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=C||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Yn:return ye;case Vn:return C;case Qn:return T;case Jn:return $;case Zn:return se}return u});function Ra(i,u){return u=u??s,!!u&&(typeof i=="number"||kn.test(i))&&i>-1&&i%1==0&&i<u}function Ma(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function $a(i){return!!At&&At in i}function xa(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Na(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var ja=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function La(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=Kn||qa;function Ha(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var zt=Et?jn(Et):Ca;function Ua(i){return La(i)?Oa(i):_a(i)}function Fa(){return[]}function qa(){return!1}e.exports=Ha})(Le,Le.exports);var Wa=Le.exports;const As=Ga(Wa);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",ze="dnd-core/END_DRAG";function Kt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function Ka(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Xa(e,t){return e.filter(function(r){return r!==t})}function zr(e){return Pe(e)==="object"}function Ya(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function Va(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var Qa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Ja(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Kt(s)),Za(r,f,d);var v=ri(r,f);if(v===null){e.dispatch(Qa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");ei(c),b=c(v)}e.dispatch(Kt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);ti(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function Za(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function ei(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ti(e){h(zr(e),"Item must be an object.")}function ri(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ni(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function ai(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;ii(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();oi(o,s,c);var f=s.getItemType();return ui(o,c,f),si(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function ii(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function oi(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function ui(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function si(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xt(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();li(n);var o=hi(n);o.forEach(function(s,c){var f=di(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function li(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function di(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return gi(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function gi(e){h(typeof e>"u"||zr(e),"Drop result must either be an object or undefined.")}function hi(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function pi(e){return function(){var r=e.getMonitor(),n=e.getRegistry();vi(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:ze}}}function vi(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function yi(e){return{beginDrag:Ja(e),publishDragSource:ni(e),hover:ai(e),drop:fi(e),endDrag:pi(e)}}var mi=function(t,r){return t===r};function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return bi(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case ze:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",We="dnd-core/REMOVE_TARGET";function Ti(e){return{type:pt,payload:{sourceId:e}}}function wi(e){return{type:vt,payload:{targetId:e}}}function Ii(e){return{type:yt,payload:{sourceId:e}}}function Ci(e){return{type:We,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case We:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Xa(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ze:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case We:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function ki(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=Va(t,e);return r.length>0}function Ri(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case We:case yt:return He;case qe:case ht:case ze:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ya(n,o),c=s.length>0||!Di(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){$i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ri(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:Ka(e,"dragOperation.targetIds",[])})}),dragOffset:Oi(e.dragOffset,t),refCount:Ai(e.refCount,t),dragOperation:Pi(e.dragOperation,t),stateId:Mi(e.stateId)}}function Ni(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Wr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:Wr(Ni(t,n),r)}function Li(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:Wr(t,r)}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&rr(e.prototype,t),r&&rr(e,r),e}var Fi=function(){function e(t,r){Hi(this,e),this.store=t,this.registry=r}return Ui(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!ki(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return ji(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Li(this.store.getState().dragOffset)}}]),e}(),qi=0;function Gi(){return qi++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Bi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function zi(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const nr=typeof je<"u"?je:self,Kr=nr.MutationObserver||nr.WebKitMutationObserver;function Xr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function Wi(e){let t=1;const r=new Kr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Ki=typeof Kr=="function"?Wi:Xr;class Xi{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Ki(this.flush),this.requestErrorThrow=Xr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yi{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Vi{create(t){const r=this.freeTasks,n=r.length?r.pop():new Yi(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Yr=new Xi,Qi=new Vi(Yr.registerPendingError);function Ji(e){Yr.enqueueTask(Qi.create(e))}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eo(e,t,r){return t&&ar(e.prototype,t),r&&ar(e,r),e}function to(e,t){return io(e)||ao(e,t)||no(e,t)||ro()}function ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function no(e,t){if(e){if(typeof e=="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}}function ir(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ao(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function io(e){if(Array.isArray(e))return e}function oo(e){var t=Gi().toString();switch(e){case F.SOURCE:return"S".concat(t);case F.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function or(e){switch(e[0]){case"S":return F.SOURCE;case"T":return F.TARGET;default:h(!1,"Cannot parse handler ID: ".concat(e))}}function ur(e,t){var r=e.entries(),n=!1;do{var a=r.next(),o=a.done,s=to(a.value,2),c=s[1];if(c===t)return!0;n=!!o}while(!n);return!1}var uo=function(){function e(t){Zi(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}return eo(e,[{key:"addSource",value:function(r,n){ut(r),Bi(n);var a=this.addHandler(F.SOURCE,r,n);return this.store.dispatch(Ti(a)),a}},{key:"addTarget",value:function(r,n){ut(r,!0),zi(n);var a=this.addHandler(F.TARGET,r,n);return this.store.dispatch(wi(a)),a}},{key:"containsHandler",value:function(r){return ur(this.dragSources,r)||ur(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h(this.isSourceId(r),"Expected a valid source ID.");var a=n&&r===this.pinnedSourceId,o=a?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return h(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=or(r);return n===F.SOURCE}},{key:"isTargetId",value:function(r){var n=or(r);return n===F.TARGET}},{key:"removeSource",value:function(r){var n=this;h(this.getSource(r),"Expected an existing source."),this.store.dispatch(Ii(r)),Ji(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){h(this.getTarget(r),"Expected an existing target."),this.store.dispatch(Ci(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);h(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){h(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,a){var o=oo(r);return this.types.set(o,n),r===F.SOURCE?this.dragSources.set(o,a):r===F.TARGET&&this.dropTargets.set(o,a),o}}]),e}();function so(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function co(e,t,r){return t&&sr(e.prototype,t),r&&sr(e,r),e}function fo(e){var t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return za(xi,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var lo=function(){function e(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;so(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var a=t.store.getState().refCount>0;t.backend&&(a&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!a&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=fo(r);this.store=n,this.monitor=new Fi(n,new uo(n)),n.subscribe(this.handleRefCountChange)}return co(e,[{key:"receiveBackend",value:function(r){this.backend=r}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var r=this,n=this.store.dispatch;function a(s){return function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var v=s.apply(r,f);typeof v<"u"&&n(v)}}var o=yi(this);return Object.keys(o).reduce(function(s,c){var f=o[c];return s[c]=a(f),s},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),e}();function go(e,t,r,n){var a=new lo(n),o=e(a,t,r);return a.receiveBackend(o),a}var ve=D.createContext({dragDropManager:void 0});function Vr(e,t,r,n){return{dragDropManager:go(e,t,r,n)}}function ho(e,t){return mo(e)||yo(e,t)||vo(e,t)||po()}function po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vo(e,t){if(e){if(typeof e=="string")return cr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cr(e,t)}}function cr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yo(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function mo(e){if(Array.isArray(e))return e}function bo(e,t){if(e==null)return{};var r=Do(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Do(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var tt=0,Qr=D.memo(function(e){var t=e.children,r=bo(e,["children"]),n=So(r),a=ho(n,2),o=a[0],s=a[1];return D.useEffect(function(){return s&&tt++,function(){if(s&&(tt--,tt===0)){var c=Jr();c[ke]=null}}},[]),D.createElement(ve.Provider,{value:o},t)});Qr.displayName="DndProvider";function So(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,!1]}var r=Oo(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[r,n]}var ke=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function Oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=t;return a[ke]||(a[ke]=Vr(e,t,r,n)),a[ke]}function Jr(){return typeof je<"u"?je:window}var Zr=D.memo(function(e){var t=e.connect,r=e.src;return D.useEffect(function(){if(!(typeof Image>"u")){var n=!1,a=new Image;return a.src=r,a.onload=function(){t(a),n=!0},function(){n&&t(null)}}}),null});Zr.displayName="DragPreviewImage";var ae=typeof window<"u"?D.useLayoutEffect:D.useEffect;function z(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),f=0;f<o.length;f++){var d=o[f];if(!c(d))return!1;var v=e[d],b=t[d];if(a=r?r.call(n,v,b,d):void 0,a===!1||a===void 0&&v!==b)return!1}return!0}function To(e,t){return _o(e)||Co(e,t)||Io(e,t)||wo()}function wo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e,t){if(e){if(typeof e=="string")return fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fr(e,t)}}function fr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Co(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function _o(e){if(Array.isArray(e))return e}function en(e,t,r){var n=D.useState(function(){return t(e)}),a=To(n,2),o=a[0],s=a[1],c=D.useCallback(function(){var f=t(e);z(o,f)||(s(f),r&&r())},[o,e,r]);return ae(c,[]),[o,c]}function Eo(e,t){return Ro(e)||ko(e,t)||Ao(e,t)||Po()}function Po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{fN as j,r as P,dk as J,dj as x,dl as V,gb as S,gc as $,gd as B,ge as N,em as Q}from"./index-1LoAlz_D.js";var U=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),j(i,e)},X=function(i,e,r){var n=P.useRef(),t=P.useRef(0);U(e,n.current)||(n.current=e,t.current+=1),J(i,[t.current],r)},Y=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),D={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:Y?[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},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?D.meta.includes(i.keyCode):i.metaKey}};function G(i){return $(i)||B(i)}function Z(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function q(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=D[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&Z(i)===l.length?e:!1:a===l.length?e:!1}function p(i,e){return N(i)?i:G(i)?function(r){return q(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return q(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=x(e),b=x(i);X(function(){var k,m,L,v=V(a,window);if(v){var T=function(g){var C,E=p(b.current,o),h=E(g),y=G(h)?h:g.key;if(h)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,y)};try{for(var K=S(l),A=K.next();!A.done;A=K.next()){var H=A.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,H,T,s)}}catch(g){k={error:g}}finally{try{A&&!A.done&&(m=K.return)&&m.call(K)}finally{if(k)throw k.error}}return function(){var g,C,E;try{for(var h=S(l),y=h.next();!y.done;y=h.next()){var M=y.value;(E=v==null?void 0:v.removeEventListener)===null||E===void 0||E.call(v,M,T,s)}}catch(W){g={error:W}}finally{try{y&&!y.done&&(C=h.return)&&C.call(h)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function z(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=Q.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=z(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=z(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),k=r.charCodeAt(a+u);if(b!==k)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as _e,a as Ae,r as b,c as ie,_ as M,d as oe,f as xe,e as rt,j as e,h as Oe,i as Me,aM as We,aW as L,l as H,as as q,O as k,P as S,Q as U,bi as Y,bW as J,fH as Ee,T as z,aX as ot,bC as nt,dV as at,a9 as it,ab as lt,k as ct,I as Ge,bD as ve,b1 as se,fI as dt,fJ as ut,N as pt}from"./index-b7P8dXaW.js";import{d as je}from"./Add-WGVQ3GRr.js";import{S as ne}from"./index-s9QIt3ko.js";import{d as le}from"./EditIcon-OMijC2ii.js";import{d as ft}from"./LockIcon-aS_vBnoW.js";import{L as Ce,S as be,d as mt}from"./list-header-TzeTzN0P.js";import{u as ee}from"./dashboard-hjUAT53t.js";import{w as E,T as he,P as Re}from"./permission-Cm7HAliG.js";import{C as Te,M as He}from"./confirm-X32y0OJ8.js";import{b as ht,A as gt,f as te,u as xt}from"./index-7YCI1diH.js";import{T as K}from"./Typography-gzW9rNGq.js";import{M as _,F as yt}from"./TextField-MscCjrFR.js";import{S as W}from"./CircularProgress-vLV_mYDK.js";import{F as vt,C as jt}from"./Checkbox-1cXdLmYE.js";import{B as Ct,I as O}from"./IconButton-Stp3xBL-.js";import{C as bt}from"./Google-0LXkMlJf.js";import{B as T}from"./Box-5JP3oQ3C.js";import{W as qe}from"./did-address-nnmMTsE0.js";import{r as Tt}from"./createSvgIcon-As8N9OsD.js";import{T as Bt}from"./index-8yqf8NtP.js";import{_ as St}from"./useSetState-XoAUn8MB.js";import{M as wt}from"./InputAdornment-Qv284Vfe.js";import{I as Pt}from"./InputLabel-uyVS695v.js";import{s as Ue,u as Ve}from"./styled-PB3HdPJn.js";import{g as Ft}from"./Chip-YPzB9l-v.js";import{O as It}from"./Select-tZktthO0.js";import"./ExpandMore-IoFpVjxd.js";import"./Search-7VfT-NID.js";import"./index-2lTWjgGl.js";import"./formControlState-RTdrWynp.js";import"./ListItemText-HBcpjb-y.js";import"./Avatar-YMtJdnI_.js";import"./session-m6Wr3myh.js";import"./spaces-WiAi-IsC.js";import"./index-A0XP7jOV.js";import"./index-cnER8eGh.js";import"./api-Ju9OpSYb.js";import"./createSvgIcon-QnMMaQef.js";import"./Link-UFDa3yGB.js";import"./fallback-IEuA_cby.js";import"./index-DKbVweR7.js";import"./index-UmYTEmfc.js";import"./Toolbar-blleP0fp.js";import"./Hidden-tYBefado.js";import"./selector-w-1YjotN.js";import"./listItemButtonClasses-dVmEAM-y.js";import"./useMediaQuery-_-fVP1yd.js";import"./Box-19RxwaCl.js";import"./IconButton-4mdVVQZ8.js";import"./ButtonBase-5Z1AWt5e.js";import"./useSlotProps-tC6PRPgK.js";import"./Typography-VrdbhbRS.js";import"./useAsync-rY0Vnqtc.js";import"./createStack-Q1bse37y.js";function $t(t){return Ae("MuiToggleButton",t)}const Rt=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=Rt,Dt=b.createContext({}),Ke=Dt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Me(s,$t,r)},At=Ue(Ct,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=rt(M({},u,{selected:zt(r.value,f)}),r),p=Ve({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),P=_t(B),$=R=>{m&&(m(R,C),R.defaultPrevented)||x&&x(R,C)},F=h||"";return e.jsx(At,M({className:Oe(u.className,P.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:$,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Me(u,Mt,r)},Ht=Ue("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${w.grouped}`]:r.grouped},{[`& .${w.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${w.firstButton}`]:r.firstButton},{[`& .${w.lastButton}`]:r.lastButton},{[`& .${w.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${w.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${w.firstButton},& .${w.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${w.firstButton},& .${w.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),qt=b.forwardRef(function(r,l){const d=Ve({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback(($,F)=>{if(!a)return;const R=c&&c.indexOf(F);let A;c&&R>=0?(A=c.slice(),A.splice(R,1)):A=c?c.concat(F):[F],a($,A)},[a,c]),g=b.useCallback(($,F)=>{a&&a($,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,P=$=>{const F=$===0,R=$===B-1;return F&&R?"":F?m.firstButton:R?m.lastButton:m.middleButton};return e.jsx(Ht,M({role:"group",className:Oe(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map(($,F)=>e.jsx(Ye.Provider,{value:P(F),children:$},F))})}))}),Ut=qt;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var De=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Jt(t,"string");return typeof r=="symbol"?r:String(r)}function Jt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,De.jsx)("svg",ze(ze({},r),{},{children:(0,De.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Je={exports:{}},Qe={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Qe.exports=r})();var Qt=Qe.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
|
|
1
|
+
import{g as _e,a as Ae,r as b,c as ie,_ as M,d as oe,f as xe,e as rt,j as e,h as Oe,i as Me,aM as We,aW as L,l as H,as as q,O as k,P as S,Q as U,bi as Y,bW as J,fH as Ee,T as z,aX as ot,bC as nt,dV as at,a9 as it,ab as lt,k as ct,I as Ge,bD as ve,b1 as se,fI as dt,fJ as ut,N as pt}from"./index-1LoAlz_D.js";import{d as je}from"./Add-HAkh2sOx.js";import{S as ne}from"./index-dSx-_bkh.js";import{d as le}from"./EditIcon-JNYyqVkw.js";import{d as ft}from"./LockIcon-N64w0tOF.js";import{L as Ce,S as be,d as mt}from"./list-header-utM5dBjc.js";import{u as ee}from"./dashboard-tk2Zj0Iy.js";import{w as E,T as he,P as Re}from"./permission-4bghYHvM.js";import{C as Te,M as He}from"./confirm-qiO2KLCl.js";import{b as ht,A as gt,f as te,u as xt}from"./index-ifZh0v2H.js";import{T as K}from"./Typography-gcm4VbT4.js";import{M as _,F as yt}from"./TextField-7oqc3A5T.js";import{S as W}from"./CircularProgress-UhRyzU-L.js";import{F as vt,C as jt}from"./Checkbox-WEkSGgqM.js";import{B as Ct,I as O}from"./IconButton-UwR3-0NL.js";import{C as bt}from"./Google-XP8iq_9h.js";import{B as T}from"./Box-2_oXuYOC.js";import{W as qe}from"./did-address-EcQj8KKn.js";import{r as Tt}from"./createSvgIcon-dMfYf-BF.js";import{T as Bt}from"./index-lH7kst-l.js";import{_ as St}from"./useSetState-W0uZizyA.js";import{M as wt}from"./InputAdornment-eiYABgDx.js";import{I as Pt}from"./InputLabel-Z2BfnoGi.js";import{s as Ue,u as Ve}from"./styled-vyyGyo-B.js";import{g as Ft}from"./Chip-oMHQfGpn.js";import{O as It}from"./Select-VVRpAz6G.js";import"./ExpandMore-HS9ZdUC5.js";import"./Search-K8k_olp5.js";import"./index-IfzllcnH.js";import"./formControlState-ITAwsVlF.js";import"./ListItemText-Z_BlB5GU.js";import"./Avatar-5PX3dF0M.js";import"./session-qd-ncyNw.js";import"./spaces-pyZ1WB8d.js";import"./index-f2e8-jph.js";import"./index-cnER8eGh.js";import"./api-plw61fT1.js";import"./createSvgIcon-vJHFh5-e.js";import"./Link-Ztw8lZh_.js";import"./fallback-rmh2tyHR.js";import"./index-zANLoUbz.js";import"./index-bzO1lgrh.js";import"./Toolbar-erlbYT0o.js";import"./Hidden-jOHh-nOO.js";import"./selector-8S0Ovg2V.js";import"./listItemButtonClasses-hkZeStXq.js";import"./useMediaQuery--siIU3rp.js";import"./Box-yQhvFXZ4.js";import"./IconButton-N0c6O5nz.js";import"./ButtonBase-TsfR2Ejp.js";import"./useSlotProps-JXekjaoI.js";import"./Typography-UDbZ1S4P.js";import"./useAsync-pxr77aA7.js";import"./createStack-otVt5u3V.js";function $t(t){return Ae("MuiToggleButton",t)}const Rt=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=Rt,Dt=b.createContext({}),Ke=Dt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Me(s,$t,r)},At=Ue(Ct,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=rt(M({},u,{selected:zt(r.value,f)}),r),p=Ve({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),P=_t(B),$=R=>{m&&(m(R,C),R.defaultPrevented)||x&&x(R,C)},F=h||"";return e.jsx(At,M({className:Oe(u.className,P.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:$,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Me(u,Mt,r)},Ht=Ue("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${w.grouped}`]:r.grouped},{[`& .${w.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${w.firstButton}`]:r.firstButton},{[`& .${w.lastButton}`]:r.lastButton},{[`& .${w.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${w.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${w.firstButton},& .${w.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${w.firstButton},& .${w.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),qt=b.forwardRef(function(r,l){const d=Ve({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback(($,F)=>{if(!a)return;const R=c&&c.indexOf(F);let A;c&&R>=0?(A=c.slice(),A.splice(R,1)):A=c?c.concat(F):[F],a($,A)},[a,c]),g=b.useCallback(($,F)=>{a&&a($,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,P=$=>{const F=$===0,R=$===B-1;return F&&R?"":F?m.firstButton:R?m.lastButton:m.middleButton};return e.jsx(Ht,M({role:"group",className:Oe(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map(($,F)=>e.jsx(Ye.Provider,{value:P(F),children:$},F))})}))}),Ut=qt;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var De=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Jt(t,"string");return typeof r=="symbol"?r:String(r)}function Jt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,De.jsx)("svg",ze(ze({},r),{},{children:(0,De.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Je={exports:{}},Qe={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Qe.exports=r})();var Qt=Qe.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
|
|
2
2
|
* Determine if an object is a Buffer
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Be=Object.defineProperty;var ze=(t,e,n)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var tt=(t,e,n)=>(ze(t,typeof e!="symbol"?e+"":e,n),n);import{g as Pt,a as Tt,U as lt,bX as ae,bY as He,_ as P,d as O,r as I,W as Lt,f as st,bZ as B,bc as le,Y as ue,j as h,h as z,i as jt,b_ as Ve,b$ as zt,P as d,a2 as De,q as Ue,bt as Ge,bu as Ht,c0 as Qe,c1 as We,c2 as Ze,bq as Je,a0 as k,c3 as Ye,$ as Xe,c4 as Ke,V as tn,c5 as en,O as nn,c6 as on,bE as de,l as fe,aC as sn,a3 as rn,a4 as cn}from"./index-
|
|
1
|
+
var Be=Object.defineProperty;var ze=(t,e,n)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var tt=(t,e,n)=>(ze(t,typeof e!="symbol"?e+"":e,n),n);import{g as Pt,a as Tt,U as lt,bX as ae,bY as He,_ as P,d as O,r as I,W as Lt,f as st,bZ as B,bc as le,Y as ue,j as h,h as z,i as jt,b_ as Ve,b$ as zt,P as d,a2 as De,q as Ue,bt as Ge,bu as Ht,c0 as Qe,c1 as We,c2 as Ze,bq as Je,a0 as k,c3 as Ye,$ as Xe,c4 as Ke,V as tn,c5 as en,O as nn,c6 as on,bE as de,l as fe,aC as sn,a3 as rn,a4 as cn}from"./index-1LoAlz_D.js";import{D as an}from"./index-bzO1lgrh.js";import{L as ln}from"./selector-8S0Ovg2V.js";function un(t){return Tt("MuiListItem",t)}const dn=Pt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),q=dn;function fn(t){return Tt("MuiListItemButton",t)}const pn=Pt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),F=pn,hn=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],gn=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters]},mn=t=>{const{alignItems:e,classes:n,dense:s,disabled:o,disableGutters:r,divider:i,selected:a}=t,l=jt({root:["root",s&&"dense",!r&&"gutters",i&&"divider",o&&"disabled",e==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},fn,n);return P({},n,l)},bn=lt(ae,{shouldForwardProp:t=>He(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:gn})(({theme:t,ownerState:e})=>P({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${F.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:O(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${F.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:O(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${F.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:O(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:O(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${F.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${F.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.alignItems==="flex-start"&&{alignItems:"flex-start"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.dense&&{paddingTop:4,paddingBottom:4})),yn=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:r=!1,component:i="div",children:a,dense:c=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:f,selected:p=!1,className:m}=s,b=st(s,hn),x=I.useContext(B),C=I.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:l}),[o,x.dense,c,l]),T=I.useRef(null);le(()=>{r&&T.current&&T.current.focus()},[r]);const v=P({},s,{alignItems:o,dense:C.dense,disableGutters:l,divider:u,selected:p}),y=mn(v),R=ue(T,n);return h.jsx(B.Provider,{value:C,children:h.jsx(bn,P({ref:R,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:z(y.focusVisible,f),ownerState:v,className:z(y.root,m)},b,{classes:y,children:a}))})}),xn=yn;function vn(t){return Tt("MuiListItemSecondaryAction",t)}Pt("MuiListItemSecondaryAction",["root","disableGutters"]);const In=["className"],Cn=t=>{const{disableGutters:e,classes:n}=t;return jt({root:["root",e&&"disableGutters"]},vn,n)},wn=lt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})(({ownerState:t})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})),pe=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=s,r=st(s,In),i=I.useContext(B),a=P({},s,{disableGutters:i.disableGutters}),c=Cn(a);return h.jsx(wn,P({className:z(c.root,o),ownerState:a,ref:n},r))});pe.muiName="ListItemSecondaryAction";const Sn=pe,An=["className"],Pn=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Tn=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.button&&e.button,n.hasSecondaryAction&&e.secondaryAction]},Ln=t=>{const{alignItems:e,button:n,classes:s,dense:o,disabled:r,disableGutters:i,disablePadding:a,divider:c,hasSecondaryAction:l,selected:u}=t;return jt({root:["root",o&&"dense",!i&&"gutters",!a&&"padding",c&&"divider",r&&"disabled",n&&"button",e==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction",u&&"selected"],container:["container"]},un,s)},jn=lt("div",{name:"MuiListItem",slot:"Root",overridesResolver:Tn})(({theme:t,ownerState:e})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&P({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{[`& > .${F.root}`]:{paddingRight:48}},{[`&.${q.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${q.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:O(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${q.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:O(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${q.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.alignItems==="flex-start"&&{alignItems:"flex-start"},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${q.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:O(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:O(t.palette.primary.main,t.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48})),kn=lt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),Rn=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItem"}),{alignItems:o="center",autoFocus:r=!1,button:i=!1,children:a,className:c,component:l,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:T=!1,divider:v=!1,focusVisibleClassName:y,secondaryAction:R,selected:w=!1,slotProps:g={},slots:S={}}=s,L=st(s.ContainerProps,An),A=st(s,Pn),j=I.useContext(B),ft=I.useMemo(()=>({dense:b||j.dense||!1,alignItems:o,disableGutters:C}),[o,j.dense,b,C]),pt=I.useRef(null);le(()=>{r&&pt.current&&pt.current.focus()},[r]);const E=I.Children.toArray(a),qt=E.length&&Ve(E[E.length-1],["ListItemSecondaryAction"]),X=P({},s,{alignItems:o,autoFocus:r,button:i,dense:ft.dense,disabled:x,disableGutters:C,disablePadding:T,divider:v,hasSecondaryAction:qt,selected:w}),Ft=Ln(X),Bt=ue(pt,n),K=S.root||u.Root||jn,H=g.root||f.root||{},N=P({className:z(Ft.root,H.className,c),disabled:x},A);let _=l||"li";return i&&(N.component=l||"div",N.focusVisibleClassName=z(q.focusVisible,y),_=ae),qt?(_=!N.component&&!l?"div":_,p==="li"&&(_==="li"?_="div":N.component==="li"&&(N.component="div")),h.jsx(B.Provider,{value:ft,children:h.jsxs(kn,P({as:p,className:z(Ft.container,m),ref:Bt,ownerState:X},L,{children:[h.jsx(K,P({},H,!zt(K)&&{as:_,ownerState:P({},X,H.ownerState)},N,{children:E})),E.pop()]}))})):h.jsx(B.Provider,{value:ft,children:h.jsxs(K,P({},H,{as:_,ref:Bt},!zt(K)&&{ownerState:P({},X,H.ownerState)},N,{children:[E,R&&h.jsx(Sn,{children:R})]}))})}),On=Rn;/**
|
|
2
2
|
* (c) Iconify
|
|
3
3
|
*
|
|
4
4
|
* For the full copyright and license information, please view the license.txt
|
|
@@ -8,10 +8,10 @@ var Be=Object.defineProperty;var ze=(t,e,n)=>e in t?Be(t,e,{enumerable:!0,config
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
* @version 1.0.8
|
|
11
|
-
*/const he=Object.freeze({left:0,top:0,width:16,height:16}),rt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z=Object.freeze({...he,...rt}),yt=Object.freeze({...Z,body:"",hidden:!1}),Mn=Object.freeze({width:null,height:null}),ge=Object.freeze({...Mn,...rt});function Nn(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:s(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return e}const _n=/[\s,]+/;function $n(t,e){e.split(_n).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const me={...ge,preserveAspectRatio:""};function Vt(t){const e={...me},n=(s,o)=>t.getAttribute(s)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=Nn(n("rotate","")),$n(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function En(t,e){for(const n in me)if(t[n]!==e[n])return!0;return!1}const D=/^[a-z0-9]+(-[a-z0-9]+)*$/,J=(t,e,n,s="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:s,prefix:c,name:a};return e&&!nt(l)?null:l}const r=o[0],i=r.split("-");if(i.length>1){const a={provider:s,prefix:i.shift(),name:i.join("-")};return e&&!nt(a)?null:a}if(n&&s===""){const a={provider:s,prefix:"",name:r};return e&&!nt(a,n)?null:a}return null},nt=(t,e)=>t?!!((t.provider===""||t.provider.match(D))&&(e&&t.prefix===""||t.prefix.match(D))&&t.name.match(D)):!1;function qn(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function Dt(t,e){const n=qn(t,e);for(const s in yt)s in rt?s in t&&!(s in n)&&(n[s]=rt[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function Fn(t,e){const n=t.icons,s=t.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=s[i]&&s[i].parent,c=a&&r(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function Bn(t,e,n){const s=t.icons,o=t.aliases||Object.create(null);let r={};function i(a){r=Dt(s[a]||o[a],r)}return i(e),n.forEach(i),Dt(t,r)}function be(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const s=Fn(t);for(const o in s){const r=s[o];r&&(e(o,Bn(t,o,r)),n.push(o))}return n}const zn={provider:"",aliases:{},not_found:{},...he};function ht(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function ye(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ht(t,zn))return null;const n=e.icons;for(const o in n){const r=n[o];if(!o.match(D)||typeof r.body!="string"||!ht(r,yt))return null}const s=e.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o.match(D)||typeof i!="string"||!n[i]&&!s[i]||!ht(r,yt))return null}return e}const it=Object.create(null);function Hn(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function M(t,e){const n=it[t]||(it[t]=Object.create(null));return n[e]||(n[e]=Hn(t,e))}function kt(t,e){return ye(e)?be(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function Vn(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function Dn(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys(it)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(it[o]||{})).forEach(i=>{const a=M(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let G=!1;function xe(t){return typeof t=="boolean"&&(G=t),G}function Q(t){const e=typeof t=="string"?J(t,!0,G):t;if(e){const n=M(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function ve(t,e){const n=J(t,!0,G);if(!n)return!1;const s=M(n.provider,n.prefix);return Vn(s,n.name,e)}function Ut(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),G&&!e&&!t.prefix){let o=!1;return ye(t)&&(t.prefix="",be(t,(r,i)=>{i&&ve(r,i)&&(o=!0)})),o}const n=t.prefix;if(!nt({provider:e,prefix:n,name:"a"}))return!1;const s=M(e,n);return!!kt(s,t)}function Un(t){return!!Q(t)}function Gn(t){const e=Q(t);return e?{...Z,...e}:null}function Qn(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return t.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,a=o.name,c=n[r]||(n[r]=Object.create(null)),l=c[i]||(c[i]=M(r,i));let u;a in l.icons?u=e.loaded:i===""||l.missing.has(a)?u=e.missing:u=e.pending;const f={provider:r,prefix:i,name:a};u.push(f)}),e}function Ie(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==e))})}function Wn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,o=t.prefix;e.forEach(r=>{const i=r.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(t.icons[l])i.loaded.push({provider:s,prefix:o,name:l});else if(t.missing.has(l))i.missing.push({provider:s,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Ie([t],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Zn=0;function Jn(t,e,n){const s=Zn++,o=Ie.bind(null,n,s);if(!e.pending.length)return o;const r={id:s,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}const xt=Object.create(null);function Gt(t,e){xt[t]=e}function vt(t){return xt[t]||xt[""]}function Yn(t,e=!0,n=!1){const s=[];return t.forEach(o=>{const r=typeof o=="string"?J(o,e,n):o;r&&s.push(r)}),s}var Xn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Kn(t,e,n,s){const o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let g=t.resources.slice(0);for(i=[];g.length>1;){const S=Math.floor(Math.random()*g.length);i.push(g[S]),g=g.slice(0,S).concat(g.slice(S+1))}i=i.concat(g)}else i=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let c="pending",l=0,u,f=null,p=[],m=[];typeof s=="function"&&m.push(s);function b(){f&&(clearTimeout(f),f=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),p=[]}function C(g,S){S&&(m=[]),typeof g=="function"&&m.push(g)}function T(){return{startTime:a,payload:e,status:c,queriesSent:l,queriesPending:p.length,subscribe:C,abort:x}}function v(){c="failed",m.forEach(g=>{g(void 0,u)})}function y(){p.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),p=[]}function R(g,S,L){const A=S!=="success";switch(p=p.filter(j=>j!==g),c){case"pending":break;case"failed":if(A||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=L,v();return}if(A){u=L,p.length||(i.length?w():v());return}if(b(),y(),!t.random){const j=t.resources.indexOf(g.resource);j!==-1&&j!==t.index&&(t.index=j)}c="completed",m.forEach(j=>{j(L)})}function w(){if(c!=="pending")return;b();const g=i.shift();if(g===void 0){if(p.length){f=setTimeout(()=>{b(),c==="pending"&&(y(),v())},t.timeout);return}v();return}const S={status:"pending",resource:g,callback:(L,A)=>{R(S,L,A)}};p.push(S),l++,f=setTimeout(w,t.rotate),n(g,e,S.callback)}return setTimeout(w),T}function Ce(t){const e={...Xn,...t};let n=[];function s(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=Kn(e,a,c,(f,p)=>{s(),l&&l(f,p)});return n.push(u),u}function r(a){return n.find(c=>a(c))||null}return{query:o,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Rt(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const ut=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],ot=[];for(;V.length>0;)V.length===1||Math.random()>.5?ot.push(V.shift()):ot.push(V.pop());ut[""]=Rt({resources:["https://api.iconify.design"].concat(ot)});function Qt(t,e){const n=Rt(e);return n===null?!1:(ut[t]=n,!0)}function dt(t){return ut[t]}function to(){return Object.keys(ut)}function Wt(){}const gt=Object.create(null);function eo(t){if(!gt[t]){const e=dt(t);if(!e)return;const n=Ce(e),s={config:e,redundancy:n};gt[t]=s}return gt[t]}function we(t,e,n){let s,o;if(typeof t=="string"){const r=vt(t);if(!r)return n(void 0,424),Wt;o=r.send;const i=eo(t);i&&(s=i.redundancy)}else{const r=Rt(t);if(r){s=Ce(r);const i=t.resources?t.resources[0]:"",a=vt(i);a&&(o=a.send)}}return!s||!o?(n(void 0,424),Wt):s.query(e,o,n)().abort}const Zt="iconify2",W="iconify",Se=W+"-count",Jt=W+"-version",Ae=36e5,no=168;function It(t,e){try{return t.getItem(e)}catch{}}function Ot(t,e,n){try{return t.setItem(e,n),!0}catch{}}function Yt(t,e){try{t.removeItem(e)}catch{}}function Ct(t,e){return Ot(t,Se,e.toString())}function wt(t){return parseInt(It(t,Se))||0}const $={local:!0,session:!0},Pe={local:new Set,session:new Set};let Mt=!1;function oo(t){Mt=t}let et=typeof window>"u"?{}:window;function Te(t){const e=t+"Storage";try{if(et&&et[e]&&typeof et[e].length=="number")return et[e]}catch{}$[t]=!1}function Le(t,e){const n=Te(t);if(!n)return;const s=It(n,Jt);if(s!==Zt){if(s){const a=wt(n);for(let c=0;c<a;c++)Yt(n,W+c.toString())}Ot(n,Jt,Zt),Ct(n,0);return}const o=Math.floor(Date.now()/Ae)-no,r=a=>{const c=W+a.toString(),l=It(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}Yt(n,c)}};let i=wt(n);for(let a=i-1;a>=0;a--)r(a)||(a===i-1?(i--,Ct(n,i)):Pe[t].add(a))}function je(){if(!Mt){oo(!0);for(const t in $)Le(t,e=>{const n=e.data,s=e.provider,o=n.prefix,r=M(s,o);if(!kt(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function so(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in $)Le(s,o=>{const r=o.data;return o.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===e});return!0}function ro(t,e){Mt||je();function n(s){let o;if(!$[s]||!(o=Te(s)))return;const r=Pe[s];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=wt(o),!Ct(o,i+1))return;const a={cached:Math.floor(Date.now()/Ae),provider:t.provider,data:e};return Ot(o,W+i.toString(),JSON.stringify(a))}e.lastModified&&!so(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function Xt(){}function io(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Wn(t)}))}function co(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,o=t.iconsToLoad;delete t.iconsToLoad;let r;if(!o||!(r=vt(n)))return;r.prepare(n,s,o).forEach(a=>{we(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=kt(t,c);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),ro(t,c)}catch(l){console.error(l)}io(t)})})}))}const Nt=(t,e)=>{const n=Yn(t,!0,xe()),s=Qn(n);if(!s.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(s.loaded,s.missing,s.pending,Xt)}),()=>{c=!1}}const o=Object.create(null),r=[];let i,a;return s.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,r.push(M(l,u));const f=o[l]||(o[l]=Object.create(null));f[u]||(f[u]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:u,name:f}=c,p=M(l,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(f)||(m.add(f),o[l][u].push(f))}),r.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&co(c,o[l][u])}),e?Jn(e,s,r):Xt},ao=t=>new Promise((e,n)=>{const s=typeof t=="string"?J(t,!0):t;if(!s){n(t);return}Nt([s||t],o=>{if(o.length&&s){const r=Q(s);if(r){e({...Z,...r});return}}n(t)})});function lo(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function uo(t,e){const n=typeof t=="string"?J(t,!0,!0):null;if(!n){const r=lo(t);return{value:t,data:r}}const s=Q(n);if(s!==void 0||!n.prefix)return{value:t,name:n,data:s};const o=Nt([n],()=>e(t,n,Q(n)));return{value:t,name:n,loading:o}}function mt(t){return t.hasAttribute("inline")}let ke=!1;try{ke=navigator.vendor.indexOf("Apple")===0}catch{}function fo(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(ke||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const po=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ho=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function St(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(po);if(s===null||!s.length)return t;const o=[];let r=s.shift(),i=ho.test(r);for(;;){if(i){const a=parseFloat(r);isNaN(a)?o.push(r):o.push(Math.ceil(a*e*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}const go=t=>t==="unset"||t==="undefined"||t==="none";function Re(t,e){const n={...Z,...t},s={...ge,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(b=>{const x=[],C=b.hFlip,T=b.vFlip;let v=b.rotate;C?T?v+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}v%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=s.width,a=s.height,c=o.width,l=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?l:a,u=St(f,c/l)):(u=i==="auto"?c:i,f=a===null?St(u,l/c):a==="auto"?l:a);const p={},m=(b,x)=>{go(x)||(p[b]=x.toString())};return m("width",u),m("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:r}}const mo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let ct=mo();function bo(t){ct=t}function yo(){return ct}function xo(t,e){const n=dt(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=e+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function vo(t){return t===404}const Io=(t,e,n)=>{const s=[],o=xo(t,e),r="icons";let i={type:r,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(s.push(i),i={type:r,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),s.push(i),s};function Co(t){if(typeof t=="string"){const e=dt(t);if(e)return e.path}return"/"}const wo=(t,e,n)=>{if(!ct){n("abort",424);return}let s=Co(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=e.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;ct(t+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(vo(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},So={prepare:Io,send:wo};function Kt(t,e){switch(t){case"local":case"session":$[t]=e;break;case"all":for(const n in $)$[n]=e;break}}const bt="data-style";let Oe="";function Ao(t){Oe=t}function te(t,e){let n=Array.from(t.childNodes).find(s=>s.hasAttribute&&s.hasAttribute(bt));n||(n=document.createElement("style"),n.setAttribute(bt,bt),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Oe}function Me(){Gt("",So),xe(!0);let t;try{t=window}catch{}if(t){if(je(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ut(o))&&console.error(s)}catch{console.error(s)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const s in n){const o="IconifyProviders["+s+"] is invalid.";try{const r=n[s];if(typeof r!="object"||!r||r.resources===void 0)continue;Qt(s,r)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Kt(n,!0),disableCache:n=>Kt(n,!1),iconExists:Un,getIcon:Gn,listIcons:Dn,addIcon:ve,addCollection:Ut,calculateSize:St,buildIcon:Re,loadIcons:Nt,loadIcon:ao,addAPIProvider:Qt,appendCustomStyle:Ao,_api:{getAPIConfig:dt,setAPIModule:Gt,sendAPIQuery:we,setFetch:bo,getFetch:yo,listAPIProviders:to}}}function Ne(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Po(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function To(t){return"data:image/svg+xml,"+Po(t)}function Lo(t){return'url("'+To(t)+'")'}const At={"background-color":"currentColor"},_e={"background-color":"transparent"},ee={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ne={"-webkit-mask":At,mask:At,background:_e};for(const t in ne){const e=ne[t];for(const n in ee)e[t+"-"+n]=ee[n]}function oe(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function jo(t,e,n){const s=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const r=t.attributes,i=Ne(o,{...r,width:e.width+"",height:e.height+""}),a=Lo(i),c=s.style,l={"--svg":a,width:oe(r.width),height:oe(r.height),...n?At:_e};for(const u in l)c.setProperty(u,l[u]);return s}let U;function ko(){try{U=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{U=null}}function Ro(t){return U===void 0&&ko(),U?U.createHTML(t):t}function Oo(t){const e=document.createElement("span"),n=t.attributes;let s="";n.width||(s="width: inherit;"),n.height||(s+="height: inherit;"),s&&(n.style=s);const o=Ne(t.body,n);return e.innerHTML=Ro(o),e.firstChild}function se(t,e){const n=e.icon.data,s=e.customisations,o=Re(n,s);s.preserveAspectRatio&&(o.attributes.preserveAspectRatio=s.preserveAspectRatio);const r=e.renderedMode;let i;switch(r){case"svg":i=Oo(o);break;default:i=jo(o,{...Z,...n},r==="mask")}const a=Array.from(t.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function re(t,e,n){const s=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:s}}function Mo(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const s=e.get(t);if(s)return s;const o=["icon","mode","inline","width","height","rotate","flip"],r=class extends n{constructor(){super();tt(this,"_shadowRoot");tt(this,"_state");tt(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=mt(this);te(c,l),this._state=re({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=mt(this),u=this._state;l!==u.inline&&(u.inline=l,te(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return mt(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}se(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),f=Vt(this);(c.attrMode!==u||En(c.customisations,f))&&this._renderIcon(c.icon,f,u)}_iconChanged(c){const l=uo(c,(u,f,p)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:f,data:p};b.data?this._gotIconData(b):m.icon=b});l.data?this._gotIconData(l):this._state=re(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Vt(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const f=fo(c.data.body,u),p=this._state.inline;se(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:f})}};o.forEach(a=>{a in r.prototype||Object.defineProperty(r.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Me();for(const a in i)r[a]=r.prototype[a]=i[a];return e.define(t,r),r}Mo()||Me();const No=d.shape({appLogo:d.node,appName:d.string,theme:d.shape({background:d.string}),enableConnect:d.bool,enableLocale:d.bool,navigation:d.arrayOf(d.shape({title:d.oneOfType([d.string,d.object]),link:d.oneOfType([d.string,d.object]),icon:d.string,items:d.arrayOf(d.shape({title:d.oneOfType([d.string,d.object]),link:d.oneOfType([d.string,d.object])}))}))}),$e=d.shape({showText:d.bool,showRole:d.bool,switchDid:d.bool,switchProfile:d.bool,switchPassport:d.bool,disableLogout:d.bool,onLogin:d.func,onLogout:d.func,onSwitchDid:d.func,onSwitchProfile:d.func,onSwitchPassport:d.func,menu:d.array,menuRender:d.func,dark:d.bool,size:d.number}),Y=(t,e,n="children")=>t.map(s=>Array.isArray(s[n])?e({...s,[n]:Y(s[n],e,n)}):e(s)),_o=(t,e="children")=>{const n=[];return Y(t,s=>n.push(s),e),n},_t=(t,e,n="children")=>t.map(s=>({...s})).filter(s=>{const o=s[n];if(Array.isArray(o)){const i=_t(o,e,n);s[n]=i!=null&&i.length?i:void 0}const r={filteredChildren:s[n],isLeaf:!(o!=null&&o.length)};return e(s,r)}),$o=t=>/^https?:\/\//.test(t),Yo=t=>/^[\w-]+:[\w-]+$/.test(t),Eo=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),s=e(new URL(t,window.location.origin).pathname);return n.startsWith(s)},qo=(t=[])=>{const e=t.map((s,o)=>({path:s,index:o})).filter(s=>Eo(s.path));return e!=null&&e.length?e.slice(1).reduce((s,o)=>s.path.length>=o.path.length?s:o,e[0]).index:-1};var ie,ce;const at=((ie=window==null?void 0:window.blocklet)==null?void 0:ie.groupPrefix)||((ce=window==null?void 0:window.blocklet)==null?void 0:ce.prefix)||"/",Fo=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},Ee=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,r)=>typeof o=="string"?o:typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,s=(o,r)=>{if(typeof o=="string"){if($o(o)){const a=new URL(o);return a.searchParams.set("locale",r),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",r),i.pathname+i.search}return typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return Y(t,o=>{var r;return{...o,title:n(o.title,e),link:(r=o.items)!=null&&r.length?o.link:s(o.link,e),_rawLink:o.link}},"items")},Bo=t=>Y(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),zo=t=>{if(!(t!=null&&t.length))return null;const e=Bo(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return e.forEach(s=>{var o;s.section?Array.isArray(s.section)?s.section.forEach(r=>{var i;(i=n[r])==null||i.push(s)}):typeof s.section=="string"&&((o=n[s.section])==null||o.push(s)):n.header.push(s)}),n},Ho=t=>{if(!t)return null;const e={...t};return e.theme=Fo(e.theme),e.navigation=zo(Vo(e.navigation)),e},Vo=(t=[])=>_t(t,(e,n)=>{var s;return!!e.link||((s=n.filteredChildren)==null?void 0:s.length)},"items"),qe=(t,e)=>_t(t,(n,s)=>{var r;const o=!n.role||e&&n.role.includes(e);return s.isLeaf?o:o&&((r=s.filteredChildren)==null?void 0:r.length)},"items"),Do={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Uo={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function $t({session:t,locale:e,size:n}){const s=(window==null?void 0:window.blocklet)||{},o=(s.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=t==null?void 0:t.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((s==null?void 0:s.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),r=I.useRef(null),i=De({open:!1}),a=Ue((c=!i.open)=>{i.open=c});return o.length===0||!(t!=null&&t.user)?null:h.jsxs(h.Fragment,{children:[h.jsx(Ge,{size:"medium",ref:r,onClick:()=>a(),children:h.jsx(Ht,{icon:Do,fontSize:n,style:{transform:"scale(1.08)"}})}),h.jsx(Qe,{open:i.open,onClose:()=>a(!1),anchorEl:r.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>h.jsx(We,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:h.jsx(Ze,{...c,timeout:350,children:h.jsxs(Je,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:k.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${k.gray6}, 0px 0px 0px 1px ${k.gray6}`},children:[h.jsx(Ye,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u,f;return h.jsx(On,{disablePadding:!0,children:h.jsxs(xn,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:k.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?h.jsx(Xe,{component:"img",src:`${Ke}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):h.jsx(Ht,{fontSize:50,icon:l.icon||Uo,color:k.textSubtitle}),h.jsx(tn,{sx:{fontSize:"12px",color:k.textBase,textAlign:"center",lineHeight:"normal"},children:((f=l.title)==null?void 0:f.zh)||l.title})]})},l.id)})}),h.jsx(en,{session:t,children:h.jsx(nn,{variant:"outlined",fullWidth:!0,href:on,sx:{mt:1,borderRadius:2,color:k.textBase,borderColor:k.lineBorderStrong,"&:hover":{color:k.primaryBase,borderColor:k.primaryBase}},children:e==="zh"?"管理":"Manage"})})]})})})})]})}$t.propTypes={session:d.object.isRequired,locale:d.string,size:d.number};$t.defaultProps={locale:"en",size:24};function Et({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var p,m,b,x;const s=I.useContext(de),{locale:o}=fe()||{},{enableConnect:r=!0,enableLocale:i=!0}=t,a=!!((p=s==null?void 0:s.session)!=null&&p.user);let c=Ee((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=qe(c,(x=(b=s==null?void 0:s.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let C=[];if(i&&o&&C.push(h.jsx(ln,{showText:!1},"locale-selector")),r&&s){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?h.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),C.push(h.jsx($t,{session:s.session,locale:o},"session-blocklet")),C.push(h.jsx(sn,{session:s.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof e=="function"&&(C=e(C)||[]),C})();return I.createElement(h.Fragment,null,...Array.isArray(u)?u:[u])}Et.propTypes={formattedBlocklet:d.object.isRequired,addons:d.oneOfType([d.func,d.node]),sessionManagerProps:$e};Et.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Go=()=>{const t=rn();I.useEffect(()=>{t.wallet&&cn(()=>import("./index-FvQORRgH.js").then(e=>e.i),__vite__mapDeps([0,1,2])).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};function Fe({meta:t,fallbackUrl:e,invalidPathFallback:n,headerAddons:s,sessionManagerProps:o,links:r,...i}){var R;Go();const a=I.useContext(de),c=(R=a==null?void 0:a.session)==null?void 0:R.user,l=c==null?void 0:c.role,{locale:u}=fe()||{},f=I.useMemo(()=>{const w=Object.assign({},window.blocklet,t);try{return Ho(w)}catch(g){return console.error("Failed to format blocklet info",g,w),w}},[t]),{localizedNav:p,flattened:m,matchedIndex:b}=I.useMemo(()=>{var L;let w=Ee((L=f==null?void 0:f.navigation)==null?void 0:L.dashboard,u)||[];w=qe(w,l),w=Y(w,A=>({title:A.title,url:A.link,icon:A.icon?h.jsx("iconify-icon",{height:"100%",width:"100%",icon:A.icon}):null,external:!0,children:A.items}),"items");const g=_o(w).filter(A=>!!A.url),S=qo(g.map(A=>A.url));return S!==-1&&(g[S].active=!0),{localizedNav:w,flattened:g,matchedIndex:S}},[f,u,l]),x=typeof r=="function"?r(p):[...p,...r];if(I.useLayoutEffect(()=>{c&&!(m!=null&&m.length)&&e&&(window.location.href=e)},[e]),I.useLayoutEffect(()=>{var w;c&&(m!=null&&m.length)&&b===-1&&(n?n():window.location.href=((w=m[0])==null?void 0:w.url)||at)},[n,m,b]),!f.appName)return null;const{appLogo:C,appLogoRect:T,appName:v}=f,y=h.jsx(Et,{formattedBlocklet:f,addons:s,sessionManagerProps:o});return h.jsx(an,{title:v,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:at,logo:h.jsx("img",{src:T||C,alt:"logo"}),addons:y,...i.headerProps}})}Fe.propTypes={meta:No,fallbackUrl:d.string,invalidPathFallback:d.func,headerAddons:d.oneOfType([d.func,d.node]),sessionManagerProps:$e,links:d.oneOfType([d.array,d.func])};Fe.defaultProps={meta:{},fallbackUrl:at,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=at}},links:[]};export{Fe as D,Et as H,Yo as a,No as b,_o as c,qo as d,Ho as f,Ee as g,$o as i,Y as m,at as p,$e as s,Go as u};
|
|
11
|
+
*/const he=Object.freeze({left:0,top:0,width:16,height:16}),rt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z=Object.freeze({...he,...rt}),yt=Object.freeze({...Z,body:"",hidden:!1}),Mn=Object.freeze({width:null,height:null}),ge=Object.freeze({...Mn,...rt});function Nn(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:s(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return e}const _n=/[\s,]+/;function $n(t,e){e.split(_n).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const me={...ge,preserveAspectRatio:""};function Vt(t){const e={...me},n=(s,o)=>t.getAttribute(s)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=Nn(n("rotate","")),$n(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function En(t,e){for(const n in me)if(t[n]!==e[n])return!0;return!1}const D=/^[a-z0-9]+(-[a-z0-9]+)*$/,J=(t,e,n,s="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:s,prefix:c,name:a};return e&&!nt(l)?null:l}const r=o[0],i=r.split("-");if(i.length>1){const a={provider:s,prefix:i.shift(),name:i.join("-")};return e&&!nt(a)?null:a}if(n&&s===""){const a={provider:s,prefix:"",name:r};return e&&!nt(a,n)?null:a}return null},nt=(t,e)=>t?!!((t.provider===""||t.provider.match(D))&&(e&&t.prefix===""||t.prefix.match(D))&&t.name.match(D)):!1;function qn(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function Dt(t,e){const n=qn(t,e);for(const s in yt)s in rt?s in t&&!(s in n)&&(n[s]=rt[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function Fn(t,e){const n=t.icons,s=t.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=s[i]&&s[i].parent,c=a&&r(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function Bn(t,e,n){const s=t.icons,o=t.aliases||Object.create(null);let r={};function i(a){r=Dt(s[a]||o[a],r)}return i(e),n.forEach(i),Dt(t,r)}function be(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const s=Fn(t);for(const o in s){const r=s[o];r&&(e(o,Bn(t,o,r)),n.push(o))}return n}const zn={provider:"",aliases:{},not_found:{},...he};function ht(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function ye(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ht(t,zn))return null;const n=e.icons;for(const o in n){const r=n[o];if(!o.match(D)||typeof r.body!="string"||!ht(r,yt))return null}const s=e.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o.match(D)||typeof i!="string"||!n[i]&&!s[i]||!ht(r,yt))return null}return e}const it=Object.create(null);function Hn(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function M(t,e){const n=it[t]||(it[t]=Object.create(null));return n[e]||(n[e]=Hn(t,e))}function kt(t,e){return ye(e)?be(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function Vn(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function Dn(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys(it)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(it[o]||{})).forEach(i=>{const a=M(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let G=!1;function xe(t){return typeof t=="boolean"&&(G=t),G}function Q(t){const e=typeof t=="string"?J(t,!0,G):t;if(e){const n=M(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function ve(t,e){const n=J(t,!0,G);if(!n)return!1;const s=M(n.provider,n.prefix);return Vn(s,n.name,e)}function Ut(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),G&&!e&&!t.prefix){let o=!1;return ye(t)&&(t.prefix="",be(t,(r,i)=>{i&&ve(r,i)&&(o=!0)})),o}const n=t.prefix;if(!nt({provider:e,prefix:n,name:"a"}))return!1;const s=M(e,n);return!!kt(s,t)}function Un(t){return!!Q(t)}function Gn(t){const e=Q(t);return e?{...Z,...e}:null}function Qn(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return t.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,a=o.name,c=n[r]||(n[r]=Object.create(null)),l=c[i]||(c[i]=M(r,i));let u;a in l.icons?u=e.loaded:i===""||l.missing.has(a)?u=e.missing:u=e.pending;const f={provider:r,prefix:i,name:a};u.push(f)}),e}function Ie(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==e))})}function Wn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,o=t.prefix;e.forEach(r=>{const i=r.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(t.icons[l])i.loaded.push({provider:s,prefix:o,name:l});else if(t.missing.has(l))i.missing.push({provider:s,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Ie([t],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Zn=0;function Jn(t,e,n){const s=Zn++,o=Ie.bind(null,n,s);if(!e.pending.length)return o;const r={id:s,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}const xt=Object.create(null);function Gt(t,e){xt[t]=e}function vt(t){return xt[t]||xt[""]}function Yn(t,e=!0,n=!1){const s=[];return t.forEach(o=>{const r=typeof o=="string"?J(o,e,n):o;r&&s.push(r)}),s}var Xn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Kn(t,e,n,s){const o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let g=t.resources.slice(0);for(i=[];g.length>1;){const S=Math.floor(Math.random()*g.length);i.push(g[S]),g=g.slice(0,S).concat(g.slice(S+1))}i=i.concat(g)}else i=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let c="pending",l=0,u,f=null,p=[],m=[];typeof s=="function"&&m.push(s);function b(){f&&(clearTimeout(f),f=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),p=[]}function C(g,S){S&&(m=[]),typeof g=="function"&&m.push(g)}function T(){return{startTime:a,payload:e,status:c,queriesSent:l,queriesPending:p.length,subscribe:C,abort:x}}function v(){c="failed",m.forEach(g=>{g(void 0,u)})}function y(){p.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),p=[]}function R(g,S,L){const A=S!=="success";switch(p=p.filter(j=>j!==g),c){case"pending":break;case"failed":if(A||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=L,v();return}if(A){u=L,p.length||(i.length?w():v());return}if(b(),y(),!t.random){const j=t.resources.indexOf(g.resource);j!==-1&&j!==t.index&&(t.index=j)}c="completed",m.forEach(j=>{j(L)})}function w(){if(c!=="pending")return;b();const g=i.shift();if(g===void 0){if(p.length){f=setTimeout(()=>{b(),c==="pending"&&(y(),v())},t.timeout);return}v();return}const S={status:"pending",resource:g,callback:(L,A)=>{R(S,L,A)}};p.push(S),l++,f=setTimeout(w,t.rotate),n(g,e,S.callback)}return setTimeout(w),T}function Ce(t){const e={...Xn,...t};let n=[];function s(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=Kn(e,a,c,(f,p)=>{s(),l&&l(f,p)});return n.push(u),u}function r(a){return n.find(c=>a(c))||null}return{query:o,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Rt(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const ut=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],ot=[];for(;V.length>0;)V.length===1||Math.random()>.5?ot.push(V.shift()):ot.push(V.pop());ut[""]=Rt({resources:["https://api.iconify.design"].concat(ot)});function Qt(t,e){const n=Rt(e);return n===null?!1:(ut[t]=n,!0)}function dt(t){return ut[t]}function to(){return Object.keys(ut)}function Wt(){}const gt=Object.create(null);function eo(t){if(!gt[t]){const e=dt(t);if(!e)return;const n=Ce(e),s={config:e,redundancy:n};gt[t]=s}return gt[t]}function we(t,e,n){let s,o;if(typeof t=="string"){const r=vt(t);if(!r)return n(void 0,424),Wt;o=r.send;const i=eo(t);i&&(s=i.redundancy)}else{const r=Rt(t);if(r){s=Ce(r);const i=t.resources?t.resources[0]:"",a=vt(i);a&&(o=a.send)}}return!s||!o?(n(void 0,424),Wt):s.query(e,o,n)().abort}const Zt="iconify2",W="iconify",Se=W+"-count",Jt=W+"-version",Ae=36e5,no=168;function It(t,e){try{return t.getItem(e)}catch{}}function Ot(t,e,n){try{return t.setItem(e,n),!0}catch{}}function Yt(t,e){try{t.removeItem(e)}catch{}}function Ct(t,e){return Ot(t,Se,e.toString())}function wt(t){return parseInt(It(t,Se))||0}const $={local:!0,session:!0},Pe={local:new Set,session:new Set};let Mt=!1;function oo(t){Mt=t}let et=typeof window>"u"?{}:window;function Te(t){const e=t+"Storage";try{if(et&&et[e]&&typeof et[e].length=="number")return et[e]}catch{}$[t]=!1}function Le(t,e){const n=Te(t);if(!n)return;const s=It(n,Jt);if(s!==Zt){if(s){const a=wt(n);for(let c=0;c<a;c++)Yt(n,W+c.toString())}Ot(n,Jt,Zt),Ct(n,0);return}const o=Math.floor(Date.now()/Ae)-no,r=a=>{const c=W+a.toString(),l=It(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}Yt(n,c)}};let i=wt(n);for(let a=i-1;a>=0;a--)r(a)||(a===i-1?(i--,Ct(n,i)):Pe[t].add(a))}function je(){if(!Mt){oo(!0);for(const t in $)Le(t,e=>{const n=e.data,s=e.provider,o=n.prefix,r=M(s,o);if(!kt(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function so(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in $)Le(s,o=>{const r=o.data;return o.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===e});return!0}function ro(t,e){Mt||je();function n(s){let o;if(!$[s]||!(o=Te(s)))return;const r=Pe[s];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=wt(o),!Ct(o,i+1))return;const a={cached:Math.floor(Date.now()/Ae),provider:t.provider,data:e};return Ot(o,W+i.toString(),JSON.stringify(a))}e.lastModified&&!so(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function Xt(){}function io(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Wn(t)}))}function co(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,o=t.iconsToLoad;delete t.iconsToLoad;let r;if(!o||!(r=vt(n)))return;r.prepare(n,s,o).forEach(a=>{we(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=kt(t,c);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),ro(t,c)}catch(l){console.error(l)}io(t)})})}))}const Nt=(t,e)=>{const n=Yn(t,!0,xe()),s=Qn(n);if(!s.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(s.loaded,s.missing,s.pending,Xt)}),()=>{c=!1}}const o=Object.create(null),r=[];let i,a;return s.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,r.push(M(l,u));const f=o[l]||(o[l]=Object.create(null));f[u]||(f[u]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:u,name:f}=c,p=M(l,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(f)||(m.add(f),o[l][u].push(f))}),r.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&co(c,o[l][u])}),e?Jn(e,s,r):Xt},ao=t=>new Promise((e,n)=>{const s=typeof t=="string"?J(t,!0):t;if(!s){n(t);return}Nt([s||t],o=>{if(o.length&&s){const r=Q(s);if(r){e({...Z,...r});return}}n(t)})});function lo(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function uo(t,e){const n=typeof t=="string"?J(t,!0,!0):null;if(!n){const r=lo(t);return{value:t,data:r}}const s=Q(n);if(s!==void 0||!n.prefix)return{value:t,name:n,data:s};const o=Nt([n],()=>e(t,n,Q(n)));return{value:t,name:n,loading:o}}function mt(t){return t.hasAttribute("inline")}let ke=!1;try{ke=navigator.vendor.indexOf("Apple")===0}catch{}function fo(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(ke||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const po=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ho=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function St(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(po);if(s===null||!s.length)return t;const o=[];let r=s.shift(),i=ho.test(r);for(;;){if(i){const a=parseFloat(r);isNaN(a)?o.push(r):o.push(Math.ceil(a*e*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}const go=t=>t==="unset"||t==="undefined"||t==="none";function Re(t,e){const n={...Z,...t},s={...ge,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(b=>{const x=[],C=b.hFlip,T=b.vFlip;let v=b.rotate;C?T?v+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}v%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=s.width,a=s.height,c=o.width,l=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?l:a,u=St(f,c/l)):(u=i==="auto"?c:i,f=a===null?St(u,l/c):a==="auto"?l:a);const p={},m=(b,x)=>{go(x)||(p[b]=x.toString())};return m("width",u),m("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:r}}const mo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let ct=mo();function bo(t){ct=t}function yo(){return ct}function xo(t,e){const n=dt(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=e+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function vo(t){return t===404}const Io=(t,e,n)=>{const s=[],o=xo(t,e),r="icons";let i={type:r,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(s.push(i),i={type:r,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),s.push(i),s};function Co(t){if(typeof t=="string"){const e=dt(t);if(e)return e.path}return"/"}const wo=(t,e,n)=>{if(!ct){n("abort",424);return}let s=Co(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=e.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;ct(t+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(vo(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},So={prepare:Io,send:wo};function Kt(t,e){switch(t){case"local":case"session":$[t]=e;break;case"all":for(const n in $)$[n]=e;break}}const bt="data-style";let Oe="";function Ao(t){Oe=t}function te(t,e){let n=Array.from(t.childNodes).find(s=>s.hasAttribute&&s.hasAttribute(bt));n||(n=document.createElement("style"),n.setAttribute(bt,bt),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Oe}function Me(){Gt("",So),xe(!0);let t;try{t=window}catch{}if(t){if(je(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ut(o))&&console.error(s)}catch{console.error(s)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const s in n){const o="IconifyProviders["+s+"] is invalid.";try{const r=n[s];if(typeof r!="object"||!r||r.resources===void 0)continue;Qt(s,r)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Kt(n,!0),disableCache:n=>Kt(n,!1),iconExists:Un,getIcon:Gn,listIcons:Dn,addIcon:ve,addCollection:Ut,calculateSize:St,buildIcon:Re,loadIcons:Nt,loadIcon:ao,addAPIProvider:Qt,appendCustomStyle:Ao,_api:{getAPIConfig:dt,setAPIModule:Gt,sendAPIQuery:we,setFetch:bo,getFetch:yo,listAPIProviders:to}}}function Ne(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Po(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function To(t){return"data:image/svg+xml,"+Po(t)}function Lo(t){return'url("'+To(t)+'")'}const At={"background-color":"currentColor"},_e={"background-color":"transparent"},ee={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ne={"-webkit-mask":At,mask:At,background:_e};for(const t in ne){const e=ne[t];for(const n in ee)e[t+"-"+n]=ee[n]}function oe(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function jo(t,e,n){const s=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const r=t.attributes,i=Ne(o,{...r,width:e.width+"",height:e.height+""}),a=Lo(i),c=s.style,l={"--svg":a,width:oe(r.width),height:oe(r.height),...n?At:_e};for(const u in l)c.setProperty(u,l[u]);return s}let U;function ko(){try{U=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{U=null}}function Ro(t){return U===void 0&&ko(),U?U.createHTML(t):t}function Oo(t){const e=document.createElement("span"),n=t.attributes;let s="";n.width||(s="width: inherit;"),n.height||(s+="height: inherit;"),s&&(n.style=s);const o=Ne(t.body,n);return e.innerHTML=Ro(o),e.firstChild}function se(t,e){const n=e.icon.data,s=e.customisations,o=Re(n,s);s.preserveAspectRatio&&(o.attributes.preserveAspectRatio=s.preserveAspectRatio);const r=e.renderedMode;let i;switch(r){case"svg":i=Oo(o);break;default:i=jo(o,{...Z,...n},r==="mask")}const a=Array.from(t.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function re(t,e,n){const s=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:s}}function Mo(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const s=e.get(t);if(s)return s;const o=["icon","mode","inline","width","height","rotate","flip"],r=class extends n{constructor(){super();tt(this,"_shadowRoot");tt(this,"_state");tt(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=mt(this);te(c,l),this._state=re({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=mt(this),u=this._state;l!==u.inline&&(u.inline=l,te(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return mt(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}se(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),f=Vt(this);(c.attrMode!==u||En(c.customisations,f))&&this._renderIcon(c.icon,f,u)}_iconChanged(c){const l=uo(c,(u,f,p)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:f,data:p};b.data?this._gotIconData(b):m.icon=b});l.data?this._gotIconData(l):this._state=re(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Vt(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const f=fo(c.data.body,u),p=this._state.inline;se(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:f})}};o.forEach(a=>{a in r.prototype||Object.defineProperty(r.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Me();for(const a in i)r[a]=r.prototype[a]=i[a];return e.define(t,r),r}Mo()||Me();const No=d.shape({appLogo:d.node,appName:d.string,theme:d.shape({background:d.string}),enableConnect:d.bool,enableLocale:d.bool,navigation:d.arrayOf(d.shape({title:d.oneOfType([d.string,d.object]),link:d.oneOfType([d.string,d.object]),icon:d.string,items:d.arrayOf(d.shape({title:d.oneOfType([d.string,d.object]),link:d.oneOfType([d.string,d.object])}))}))}),$e=d.shape({showText:d.bool,showRole:d.bool,switchDid:d.bool,switchProfile:d.bool,switchPassport:d.bool,disableLogout:d.bool,onLogin:d.func,onLogout:d.func,onSwitchDid:d.func,onSwitchProfile:d.func,onSwitchPassport:d.func,menu:d.array,menuRender:d.func,dark:d.bool,size:d.number}),Y=(t,e,n="children")=>t.map(s=>Array.isArray(s[n])?e({...s,[n]:Y(s[n],e,n)}):e(s)),_o=(t,e="children")=>{const n=[];return Y(t,s=>n.push(s),e),n},_t=(t,e,n="children")=>t.map(s=>({...s})).filter(s=>{const o=s[n];if(Array.isArray(o)){const i=_t(o,e,n);s[n]=i!=null&&i.length?i:void 0}const r={filteredChildren:s[n],isLeaf:!(o!=null&&o.length)};return e(s,r)}),$o=t=>/^https?:\/\//.test(t),Yo=t=>/^[\w-]+:[\w-]+$/.test(t),Eo=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),s=e(new URL(t,window.location.origin).pathname);return n.startsWith(s)},qo=(t=[])=>{const e=t.map((s,o)=>({path:s,index:o})).filter(s=>Eo(s.path));return e!=null&&e.length?e.slice(1).reduce((s,o)=>s.path.length>=o.path.length?s:o,e[0]).index:-1};var ie,ce;const at=((ie=window==null?void 0:window.blocklet)==null?void 0:ie.groupPrefix)||((ce=window==null?void 0:window.blocklet)==null?void 0:ce.prefix)||"/",Fo=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},Ee=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,r)=>typeof o=="string"?o:typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,s=(o,r)=>{if(typeof o=="string"){if($o(o)){const a=new URL(o);return a.searchParams.set("locale",r),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",r),i.pathname+i.search}return typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return Y(t,o=>{var r;return{...o,title:n(o.title,e),link:(r=o.items)!=null&&r.length?o.link:s(o.link,e),_rawLink:o.link}},"items")},Bo=t=>Y(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),zo=t=>{if(!(t!=null&&t.length))return null;const e=Bo(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return e.forEach(s=>{var o;s.section?Array.isArray(s.section)?s.section.forEach(r=>{var i;(i=n[r])==null||i.push(s)}):typeof s.section=="string"&&((o=n[s.section])==null||o.push(s)):n.header.push(s)}),n},Ho=t=>{if(!t)return null;const e={...t};return e.theme=Fo(e.theme),e.navigation=zo(Vo(e.navigation)),e},Vo=(t=[])=>_t(t,(e,n)=>{var s;return!!e.link||((s=n.filteredChildren)==null?void 0:s.length)},"items"),qe=(t,e)=>_t(t,(n,s)=>{var r;const o=!n.role||e&&n.role.includes(e);return s.isLeaf?o:o&&((r=s.filteredChildren)==null?void 0:r.length)},"items"),Do={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Uo={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function $t({session:t,locale:e,size:n}){const s=(window==null?void 0:window.blocklet)||{},o=(s.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=t==null?void 0:t.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((s==null?void 0:s.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),r=I.useRef(null),i=De({open:!1}),a=Ue((c=!i.open)=>{i.open=c});return o.length===0||!(t!=null&&t.user)?null:h.jsxs(h.Fragment,{children:[h.jsx(Ge,{size:"medium",ref:r,onClick:()=>a(),children:h.jsx(Ht,{icon:Do,fontSize:n,style:{transform:"scale(1.08)"}})}),h.jsx(Qe,{open:i.open,onClose:()=>a(!1),anchorEl:r.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>h.jsx(We,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:h.jsx(Ze,{...c,timeout:350,children:h.jsxs(Je,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:k.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${k.gray6}, 0px 0px 0px 1px ${k.gray6}`},children:[h.jsx(Ye,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u,f;return h.jsx(On,{disablePadding:!0,children:h.jsxs(xn,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:k.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?h.jsx(Xe,{component:"img",src:`${Ke}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):h.jsx(Ht,{fontSize:50,icon:l.icon||Uo,color:k.textSubtitle}),h.jsx(tn,{sx:{fontSize:"12px",color:k.textBase,textAlign:"center",lineHeight:"normal"},children:((f=l.title)==null?void 0:f.zh)||l.title})]})},l.id)})}),h.jsx(en,{session:t,children:h.jsx(nn,{variant:"outlined",fullWidth:!0,href:on,sx:{mt:1,borderRadius:2,color:k.textBase,borderColor:k.lineBorderStrong,"&:hover":{color:k.primaryBase,borderColor:k.primaryBase}},children:e==="zh"?"管理":"Manage"})})]})})})})]})}$t.propTypes={session:d.object.isRequired,locale:d.string,size:d.number};$t.defaultProps={locale:"en",size:24};function Et({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var p,m,b,x;const s=I.useContext(de),{locale:o}=fe()||{},{enableConnect:r=!0,enableLocale:i=!0}=t,a=!!((p=s==null?void 0:s.session)!=null&&p.user);let c=Ee((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=qe(c,(x=(b=s==null?void 0:s.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let C=[];if(i&&o&&C.push(h.jsx(ln,{showText:!1},"locale-selector")),r&&s){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?h.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),C.push(h.jsx($t,{session:s.session,locale:o},"session-blocklet")),C.push(h.jsx(sn,{session:s.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof e=="function"&&(C=e(C)||[]),C})();return I.createElement(h.Fragment,null,...Array.isArray(u)?u:[u])}Et.propTypes={formattedBlocklet:d.object.isRequired,addons:d.oneOfType([d.func,d.node]),sessionManagerProps:$e};Et.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Go=()=>{const t=rn();I.useEffect(()=>{t.wallet&&cn(()=>import("./index-3L-shBOI.js").then(e=>e.i),__vite__mapDeps([0,1,2])).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};function Fe({meta:t,fallbackUrl:e,invalidPathFallback:n,headerAddons:s,sessionManagerProps:o,links:r,...i}){var R;Go();const a=I.useContext(de),c=(R=a==null?void 0:a.session)==null?void 0:R.user,l=c==null?void 0:c.role,{locale:u}=fe()||{},f=I.useMemo(()=>{const w=Object.assign({},window.blocklet,t);try{return Ho(w)}catch(g){return console.error("Failed to format blocklet info",g,w),w}},[t]),{localizedNav:p,flattened:m,matchedIndex:b}=I.useMemo(()=>{var L;let w=Ee((L=f==null?void 0:f.navigation)==null?void 0:L.dashboard,u)||[];w=qe(w,l),w=Y(w,A=>({title:A.title,url:A.link,icon:A.icon?h.jsx("iconify-icon",{height:"100%",width:"100%",icon:A.icon}):null,external:!0,children:A.items}),"items");const g=_o(w).filter(A=>!!A.url),S=qo(g.map(A=>A.url));return S!==-1&&(g[S].active=!0),{localizedNav:w,flattened:g,matchedIndex:S}},[f,u,l]),x=typeof r=="function"?r(p):[...p,...r];if(I.useLayoutEffect(()=>{c&&!(m!=null&&m.length)&&e&&(window.location.href=e)},[e]),I.useLayoutEffect(()=>{var w;c&&(m!=null&&m.length)&&b===-1&&(n?n():window.location.href=((w=m[0])==null?void 0:w.url)||at)},[n,m,b]),!f.appName)return null;const{appLogo:C,appLogoRect:T,appName:v}=f,y=h.jsx(Et,{formattedBlocklet:f,addons:s,sessionManagerProps:o});return h.jsx(an,{title:v,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:at,logo:h.jsx("img",{src:T||C,alt:"logo"}),addons:y,...i.headerProps}})}Fe.propTypes={meta:No,fallbackUrl:d.string,invalidPathFallback:d.func,headerAddons:d.oneOfType([d.func,d.node]),sessionManagerProps:$e,links:d.oneOfType([d.array,d.func])};Fe.defaultProps={meta:{},fallbackUrl:at,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=at}},links:[]};export{Fe as D,Et as H,Yo as a,No as b,_o as c,qo as d,Ho as f,Ee as g,$o as i,Y as m,at as p,$e as s,Go as u};
|
|
12
12
|
function __vite__mapDeps(indexes) {
|
|
13
13
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
14
|
-
__vite__mapDeps.viteFileDeps = ["assets/index-
|
|
14
|
+
__vite__mapDeps.viteFileDeps = ["assets/index-3L-shBOI.js","assets/index-1LoAlz_D.js","assets/index-TCTrVMXW.css"]
|
|
15
15
|
}
|
|
16
16
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
17
17
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{l as q}from"./lottie-
|
|
1
|
+
import{l as q}from"./lottie-HUeyVXHO.js";import{r as D,cf as z}from"./index-1LoAlz_D.js";function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,u,c,o,b=[],s=!0,A=!1;try{if(c=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(b.push(n.value),b.length!==e);s=!0);}catch(g){A=!0,u=g}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(A)throw u}}return b}}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(n){J(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J(t,e,r){return e=ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t,e){if(t==null)return{};var r={},n=Object.keys(t),u,c;for(c=0;c<n.length;c++)u=n[c],!(e.indexOf(u)>=0)&&(r[u]=t[u]);return r}function x(t,e){if(t==null)return{};var r=Q(t,e),n,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)n=c[u],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){return ee(t)||G(t,e)||te(t,e)||ne()}function ee(t){if(Array.isArray(t))return t}function te(t,e){if(t){if(typeof t=="string")return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ae(t){var e=re(t,"string");return typeof e=="symbol"?e:String(e)}var ie=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],oe=function(e,r){var n=e.animationData,u=e.loop,c=e.autoplay,o=e.initialSegment,b=e.onComplete,s=e.onLoopComplete,A=e.onEnterFrame,g=e.onSegmentStart,O=e.onConfigReady,w=e.onDataReady,h=e.onDataFailed,l=e.onLoadedImages,L=e.onDOMLoaded,S=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var p=x(e,ie),P=D.useState(!1),d=Z(P,2),C=d[0],I=d[1],i=D.useRef(),v=D.useRef(null),H=function(){var a;(a=i.current)===null||a===void 0||a.play()},M=function(){var a;(a=i.current)===null||a===void 0||a.stop()},F=function(){var a;(a=i.current)===null||a===void 0||a.pause()},V=function(a){var f;(f=i.current)===null||f===void 0||f.setSpeed(a)},N=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndPlay(a,f)},B=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndStop(a,f)},$=function(a){var f;(f=i.current)===null||f===void 0||f.setDirection(a)},k=function(a,f){var m;(m=i.current)===null||m===void 0||m.playSegments(a,f)},W=function(a){var f;(f=i.current)===null||f===void 0||f.setSubframe(a)},K=function(a){var f;return(f=i.current)===null||f===void 0?void 0:f.getDuration(a)},U=function(){var a;(a=i.current)===null||a===void 0||a.destroy(),i.current=void 0},X=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f;if(v.current){(f=i.current)===null||f===void 0||f.destroy();var m=T(T(T({},e),a),{},{container:v.current});return i.current=q.loadAnimation(m),I(!!i.current),function(){var R;(R=i.current)===null||R===void 0||R.destroy(),i.current=void 0}}};D.useEffect(function(){var y=X();return function(){return y==null?void 0:y()}},[n,u]),D.useEffect(function(){i.current&&(i.current.autoplay=!!c)},[c]),D.useEffect(function(){if(i.current){if(!o){i.current.resetSegments(!0);return}!Array.isArray(o)||!o.length||((i.current.currentRawFrame<o[0]||i.current.currentRawFrame>o[1])&&(i.current.currentRawFrame=o[0]),i.current.setSegment(o[0],o[1]))}},[o]),D.useEffect(function(){var y=[{name:"complete",handler:b},{name:"loopComplete",handler:s},{name:"enterFrame",handler:A},{name:"segmentStart",handler:g},{name:"config_ready",handler:O},{name:"data_ready",handler:w},{name:"data_failed",handler:h},{name:"loaded_images",handler:l},{name:"DOMLoaded",handler:L},{name:"destroy",handler:S}],a=y.filter(function(m){return m.handler!=null});if(a.length){var f=a.map(function(m){var R;return(R=i.current)===null||R===void 0||R.addEventListener(m.name,m.handler),function(){var _;(_=i.current)===null||_===void 0||_.removeEventListener(m.name,m.handler)}});return function(){f.forEach(function(m){return m()})}}},[b,s,A,g,O,w,h,l,L,S]);var Y=z.createElement("div",T({style:r,ref:v},p));return{View:Y,play:H,stop:M,pause:F,setSpeed:V,goToAndStop:B,goToAndPlay:N,setDirection:$,playSegments:k,setSubframe:W,getDuration:K,destroy:U,animationContainerRef:v,animationLoaded:C,animationItem:i.current}};function ue(t){var e=t.getBoundingClientRect(),r=e.top,n=e.height,u=window.innerHeight-r,c=window.innerHeight+n;return u/c}function le(t,e,r){var n=t.getBoundingClientRect(),u=n.top,c=n.left,o=n.width,b=n.height,s=(e-c)/o,A=(r-u)/b;return{x:s,y:A}}var se=function(e){var r=e.wrapperRef,n=e.animationItem,u=e.mode,c=e.actions;D.useEffect(function(){var o=r.current;if(!(!o||!n||!c.length)){n.stop();var b=function(){var g=null,O=function(){var h=ue(o),l=c.find(function(S){var p=S.visibility;return p&&h>=p[0]&&h<=p[1]});if(l){if(l.type==="seek"&&l.visibility&&l.frames.length===2){var L=l.frames[0]+Math.ceil((h-l.visibility[0])/(l.visibility[1]-l.visibility[0])*l.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
3
3
|
n.goToAndStop(L-n.firstFrame-1,!0)}l.type==="loop"&&(g===null||g!==l.frames||n.isPaused)&&(n.playSegments(l.frames,!0),g=l.frames),l.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),l.type==="stop"&&n.goToAndStop(l.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",O),function(){document.removeEventListener("scroll",O)}},s=function(){var g=function(l,L){var S=l,p=L;if(S!==-1&&p!==-1){var P=le(o,S,p);S=P.x,p=P.y}var d=c.find(function(i){var v=i.position;return v&&Array.isArray(v.x)&&Array.isArray(v.y)?S>=v.x[0]&&S<=v.x[1]&&p>=v.y[0]&&p<=v.y[1]:v&&!Number.isNaN(v.x)&&!Number.isNaN(v.y)?S===v.x&&p===v.y:!1});if(d){if(d.type==="seek"&&d.position&&Array.isArray(d.position.x)&&Array.isArray(d.position.y)&&d.frames.length===2){var C=(S-d.position.x[0])/(d.position.x[1]-d.position.x[0]),I=(p-d.position.y[0])/(d.position.y[1]-d.position.y[0]);n.playSegments(d.frames,!0),n.goToAndStop(Math.ceil((C+I)/2*(d.frames[1]-d.frames[0])),!0)}d.type==="loop"&&n.playSegments(d.frames,!0),d.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(d.frames)),d.type==="stop"&&n.goToAndStop(d.frames[0],!0)}},O=function(l){g(l.clientX,l.clientY)},w=function(){g(-1,-1)};return o.addEventListener("mousemove",O),o.addEventListener("mouseout",w),function(){o.removeEventListener("mousemove",O),o.removeEventListener("mouseout",w)}};switch(u){case"scroll":return b();case"cursor":return s()}}},[u,n])},de=function(e){var r=e.actions,n=e.mode,u=e.lottieObj,c=u.animationItem,o=u.View,b=u.animationContainerRef;return se({actions:r,animationItem:c,mode:n,wrapperRef:b}),o},fe=["style","interactivity"],ve=function(e){var r,n,u,c=e.style,o=e.interactivity,b=x(e,fe),s=oe(b,c),A=s.View,g=s.play,O=s.stop,w=s.pause,h=s.setSpeed,l=s.goToAndStop,L=s.goToAndPlay,S=s.setDirection,p=s.playSegments,P=s.setSubframe,d=s.getDuration,C=s.destroy,I=s.animationContainerRef,i=s.animationLoaded,v=s.animationItem;return D.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:g,stop:O,pause:w,setSpeed:h,goToAndPlay:L,goToAndStop:l,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v})},[(r=e.lottieRef)===null||r===void 0?void 0:r.current]),de({lottieObj:{View:A,play:g,stop:O,pause:w,setSpeed:h,goToAndStop:l,goToAndPlay:L,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v},actions:(n=o==null?void 0:o.actions)!==null&&n!==void 0?n:[],mode:(u=o==null?void 0:o.mode)!==null&&u!==void 0?u:"scroll"})};export{q as LottiePlayer,ve as default,oe as useLottie,de as useLottieInteractivity};
|