@abtnode/webapp 1.17.6-beta-20251217-144034-62fafb94 → 1.17.6-beta-20251218-120326-5b44dadf
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-236QfbBU.js → AdapterDayjs-DbXM02a3.js} +1 -1
- package/dist/assets/{Add-Des5za4N.js → Add-17-jFd7z.js} +1 -1
- package/dist/assets/ArrowDropDown-JQ3Rq4ea.js +1 -0
- package/dist/assets/{Autocomplete-Bgl3dGJJ.js → Autocomplete-C8NhTbRF.js} +1 -1
- package/dist/assets/{Breadcrumbs-Btf_gF-0.js → Breadcrumbs-8EmlaNJn.js} +1 -1
- package/dist/assets/{ButtonGroup-Z9547yzG.js → ButtonGroup-BI0yydFN.js} +1 -1
- package/dist/assets/{CSSTransition-B5wQ0yUS.js → CSSTransition-680AnN9b.js} +1 -1
- package/dist/assets/{CallMerge-4v2MXTdn.js → CallMerge-BWum6aKS.js} +1 -1
- package/dist/assets/{CardContent-CtTlBjH7.js → CardContent-Be8HVTG5.js} +1 -1
- package/dist/assets/{ChevronLeft-C9Y_ggAJ.js → ChevronLeft-Bqr4v0-x.js} +1 -1
- package/dist/assets/{ChevronRight-DAyMYZEW.js → ChevronRight-C92WXl3G.js} +1 -1
- package/dist/assets/{Clear-CzjQBpCS.js → Clear-BEIkQJ0G.js} +1 -1
- package/dist/assets/{Delete-BtTxVz6z.js → Delete-etfqa5ht.js} +1 -1
- package/dist/assets/{DeleteOutline-DDdlNULq.js → DeleteOutline-Cbw_xWxX.js} +1 -1
- package/dist/assets/{Done-DmttcwQI.js → Done-BmIqndwD.js} +1 -1
- package/dist/assets/{Edit-CsYUR2zq.js → Edit-C2AKW3eS.js} +1 -1
- package/dist/assets/{ErrorOutline-C83OSg_z.js → ErrorOutline-ClnZlnrx.js} +1 -1
- package/dist/assets/{FilterList-DNfECclT.js → FilterList-CZU1TLat.js} +1 -1
- package/dist/assets/{Google-CU3piwDe.js → Google-P_iv8JkV.js} +1 -1
- package/dist/assets/{HelpOutline-Gx_yLuDF.js → HelpOutline-OXFYzlS-.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-CS63clJ4.js → KeyboardArrowDown-CPhWpi6G.js} +1 -1
- package/dist/assets/{Launch-9bwdZPzQ.js → Launch-Cqfwr2jr.js} +1 -1
- package/dist/assets/{Link-DQZf-Cnd.js → Link-3-c9oFLq.js} +1 -1
- package/dist/assets/{ListItemButton-Tot-RyK-.js → ListItemButton-B_8LnCjp.js} +1 -1
- package/dist/assets/{ListSubheader-BIN8GsVb.js → ListSubheader-4ZgX-yqr.js} +1 -1
- package/dist/assets/{LoadingButton-Cy89o260.js → LoadingButton-DlIR2Kfo.js} +1 -1
- package/dist/assets/{MoreVert-DOn_691b.js → MoreVert-C4JPmAZs.js} +1 -1
- package/dist/assets/{OpenInNew-D2ujTWne.js → OpenInNew-BIfjUAPQ.js} +1 -1
- package/dist/assets/{Refresh-D0ZhzC4E.js → Refresh-Dpf0qLZl.js} +1 -1
- package/dist/assets/{Replay-sIyuLlhq.js → Replay-B86FlV2V.js} +1 -1
- package/dist/assets/{Search-DXzn9Lp-.js → Search-D5OHIH5t.js} +1 -1
- package/dist/assets/{Stepper-Zgoofdon.js → Stepper-k2fg0C07.js} +1 -1
- package/dist/assets/{TableSearch-BSa4dOKp.js → TableSearch-DKi7Ktdg.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DKenn_kW.js → ToggleButtonGroup-DjxoDLGP.js} +1 -1
- package/dist/assets/{UnfoldMore-C-42QCTj.js → UnfoldMore-BlVk7See.js} +1 -1
- package/dist/assets/{Verified-CPXkSMxG.js → Verified-6JELqJq_.js} +1 -1
- package/dist/assets/{VerifiedUser-B8sBVwQC.js → VerifiedUser-Bglv4i1U.js} +1 -1
- package/dist/assets/{ViewList-C8mEloA5.js → ViewList-YgHYVpVp.js} +1 -1
- package/dist/assets/{_createAggregator-CT9vDd72.js → _createAggregator-B12F8TpH.js} +1 -1
- package/dist/assets/{actions-CsKJtA25.js → actions-BUAriJOB.js} +1 -1
- package/dist/assets/{actions-D1Lm1JEd.js → actions-DS_Ri_37.js} +1 -1
- package/dist/assets/{agreement-BeaWnXWa.js → agreement-r1s2sh3Y.js} +1 -1
- package/dist/assets/api-D8P27G7r.js +1 -0
- package/dist/assets/{appearance-CaUuLp12.js → appearance-aM7wH57p.js} +1 -1
- package/dist/assets/{audit-logs-BVvz-gNB.js → audit-logs-zQaiGV7b.js} +1 -1
- package/dist/assets/{base-chart-azE0aacM.js → base-chart-ADeRHccn.js} +1 -1
- package/dist/assets/{blocklet-B_b8vapJ.js → blocklet-BmfFK15q.js} +1 -1
- package/dist/assets/{chain-DQuRoRbo.js → chain-B7t_6AFd.js} +1 -1
- package/dist/assets/{click-to-copy-BuexyggU.js → click-to-copy-B1Ez8jE-.js} +1 -1
- package/dist/assets/cloneDeep-CH6T7y2B.js +1 -0
- package/dist/assets/config-navigation-B481mXc2.js +457 -0
- package/dist/assets/{connect-to-uRhilqPM.js → connect-to-CIL-wYnq.js} +3 -3
- package/dist/assets/{cssMode-xzKgveff.js → cssMode-Rm-CifKW.js} +1 -1
- package/dist/assets/{delete-confirm-ImHpqh9B.js → delete-confirm-CuK1fe0a.js} +1 -1
- package/dist/assets/{depsEqual-DIlm5Prx.js → depsEqual-Cn18gXKK.js} +1 -1
- package/dist/assets/{detail-CsB1ATb9.js → detail-IsCuaNgz.js} +3 -3
- package/dist/assets/{domains-CnrJ8TbP.js → domains-C6NvGCZC.js} +1 -1
- package/dist/assets/{download-Chk5ZS7w.js → download-Bi8Vdh5L.js} +1 -1
- package/dist/assets/{edit.svg-J7XY7Hsh.js → edit.svg-17FJ505g.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-Cvn7wadW.js +1 -0
- package/dist/assets/engine-Df3lbfPA.js +1 -0
- package/dist/assets/{freemarker2-D7zjhCq4.js → freemarker2-d8rE1704.js} +1 -1
- package/dist/assets/{get-safe-url-M4uziR0J.js → get-safe-url-CDPasMZR.js} +1 -1
- package/dist/assets/getValidReactChildren-BjYEIaVV.js +1 -0
- package/dist/assets/{graphqlMode-C0GhJVjj.js → graphqlMode-DBqrr_Ti.js} +2 -2
- package/dist/assets/{handlebars-tOVv9ziY.js → handlebars-cbZ5wMAy.js} +1 -1
- package/dist/assets/{html-BW7PD4So.js → html-BQvWPc3p.js} +1 -1
- package/dist/assets/{html-title-BVs9_wlq.js → html-title-DCtKzGAT.js} +1 -1
- package/dist/assets/{htmlMode-xMKOb_Lf.js → htmlMode-Cmym7gaz.js} +1 -1
- package/dist/assets/{iframe-BRekcQQF.js → iframe-Db5U2ou8.js} +1 -1
- package/dist/assets/{index-m0QvVu6g.js → index-2wL8aZ8Y.js} +1 -1
- package/dist/assets/{index-eCz9tbys.js → index-688fVCdg.js} +1 -1
- package/dist/assets/{index-qB7t2ll3.js → index-Ad8X02VO.js} +1 -1
- package/dist/assets/{index-DX-QhcNe.js → index-B-CzffZS.js} +1 -1
- package/dist/assets/{index-D3TFHWgY.js → index-B1nZmgB5.js} +3 -3
- package/dist/assets/{index-DliHjDiB.js → index-B4wihLhl.js} +1 -1
- package/dist/assets/{index-D2AxRjl4.js → index-B8HlSswG.js} +1 -1
- package/dist/assets/{index-CXjNOxDY.js → index-B9EmgVee.js} +1 -1
- package/dist/assets/{index-DQPdwz2Y.js → index-BBX_ii_N.js} +2 -2
- package/dist/assets/{index-aZ0P5xMq.js → index-BT4EuDNg.js} +1 -1
- package/dist/assets/{index-GeaUvbQe.js → index-BiJP3v8L.js} +1 -1
- package/dist/assets/{index-BkX5LVL8.js → index-BjARkkNc.js} +4 -4
- package/dist/assets/{index-ZGTYJOlF.js → index-Bm0XXN_O.js} +1 -1
- package/dist/assets/index-BvSt3OAt.js +1 -0
- package/dist/assets/{index-DqTo3Zfc.js → index-BzuzQ5ox.js} +1 -1
- package/dist/assets/{index-CtpH5d08.js → index-Bzx8w-Mu.js} +1 -1
- package/dist/assets/{index-CrtPsFlg.js → index-C1ATBIiS.js} +1 -1
- package/dist/assets/{index-DGwBkyQM.js → index-C2xdmced.js} +1 -1
- package/dist/assets/{index-gYQgg1uX.js → index-C7eGFDSn.js} +1 -1
- package/dist/assets/{index-T7DaPPrZ.js → index-CB511uzw.js} +1 -1
- package/dist/assets/{index-DN2WOMzG.js → index-CG4ppk8J.js} +11 -11
- package/dist/assets/{index-aVnqs5SE.js → index-CNDdV4IL.js} +1 -1
- package/dist/assets/{index-CWm3LFCr.js → index-COMjcH0c.js} +1 -1
- package/dist/assets/{index-DcWgVTc7.js → index-CPCvlb_T.js} +1 -1
- package/dist/assets/{index-Cd7zjVGT.js → index-CWj_8JE3.js} +1 -1
- package/dist/assets/{index-UdYQdYeZ.js → index-CYbhWvbu.js} +3 -3
- package/dist/assets/{index-DK_hcqBI.js → index-CZSoNWI1.js} +1 -1
- package/dist/assets/{index-BAvBoYZf.js → index-Cbdkr0wH.js} +1 -1
- package/dist/assets/{index-B0pL7l-o.js → index-CiIX-HNp.js} +2 -2
- package/dist/assets/{index-BMXhbckP.js → index-CndCNiXH.js} +36 -36
- package/dist/assets/{index-CqRJU2Wz.js → index-CpDPXgfj.js} +1 -1
- package/dist/assets/{index-DfDp2UkB.js → index-CpRoN1v3.js} +9 -9
- package/dist/assets/{index-HNO5BP09.js → index-CpezWuja.js} +1 -1
- package/dist/assets/{index-DDo-FAUp.js → index-D4-1sQAl.js} +1 -1
- package/dist/assets/{index-BGiju4eo.js → index-DExySHId.js} +1 -1
- package/dist/assets/{index-8axptow7.js → index-DGikbjUL.js} +1 -1
- package/dist/assets/{index-DVwyJ4JG.js → index-DT3F-KxU.js} +1 -1
- package/dist/assets/{index-95rGb30b.js → index-DWu1iSJu.js} +1 -1
- package/dist/assets/{index-B9etyM0e.js → index-DhYO7LNp.js} +1 -1
- package/dist/assets/{index-NFZNhczl.js → index-DijM3Brt.js} +16 -16
- package/dist/assets/{index-CdFR6v70.js → index-YVUABogE.js} +1 -1
- package/dist/assets/{index-CoOfoUvl.js → index-nv0vusfQ.js} +1 -1
- package/dist/assets/{index-CUMH9ev3.js → index-owbIHPzo.js} +1 -1
- package/dist/assets/{index-Dzca3Eph.js → index-uT6ey1Ij.js} +1 -1
- package/dist/assets/{index-D3M-eD99.js → index-uYv-1R7S.js} +1 -1
- package/dist/assets/{index.esm-BDwjJuws.js → index.esm--uzTB2FV.js} +1 -1
- package/dist/assets/{install-from-url-BHD7ooeJ.js → install-from-url-C0_MJ6GL.js} +1 -1
- package/dist/assets/{invitation-BdW0X7yz.js → invitation-DSBhIqPu.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-CqqICkbj.js → is-path-prefix-equal-nx3bAefD.js} +1 -1
- package/dist/assets/{item-DVPBqmze.js → item-ZFwK1W_m.js} +1 -1
- package/dist/assets/{javascript-R4JASNoM.js → javascript-QDfkina6.js} +1 -1
- package/dist/assets/{jsonMode-Dnd3iDrj.js → jsonMode-CByhSCCJ.js} +1 -1
- package/dist/assets/{liquid-DS_tFa90.js → liquid-BLsruGsx.js} +1 -1
- package/dist/assets/{list-header-DIo8-J88.js → list-header-C17aMDSV.js} +1 -1
- package/dist/assets/{lock.svg-CYcx9CJE.js → lock.svg-Ce14O-HS.js} +1 -1
- package/dist/assets/{log-DxBmpu0q.js → log-BYBaL_HU.js} +1 -1
- package/dist/assets/{lottie-react.esm-B1QMlD6I.js → lottie-react.esm-BT7Tc0ny.js} +1 -1
- package/dist/assets/{mdx-BmkQn3Gr.js → mdx-DGszQu-n.js} +1 -1
- package/dist/assets/{memory-NNIOAp-5.js → memory-DEYeLtlR.js} +1 -1
- package/dist/assets/{metric-B3PRczUq.js → metric-CcZM7hMw.js} +1 -1
- package/dist/assets/omit-0SEPYCGW.js +1 -0
- package/dist/assets/{overview-UGi51Hmm.js → overview-DNJ7u_wX.js} +1 -1
- package/dist/assets/{permission-DDKds_VS.js → permission-B57fakhN.js} +1 -1
- package/dist/assets/{preference-C6jdAtaj.js → preference-BdUFP7FH.js} +3 -3
- package/dist/assets/{python-CAc1dG-m.js → python-DwNaTwnF.js} +1 -1
- package/dist/assets/{raf-schd.esm-DtLayBIf.js → raf-schd.esm-CnTVXaU3.js} +1 -1
- package/dist/assets/{razor-ac-meNWY.js → razor-CYG0tniA.js} +1 -1
- package/dist/assets/{rotate-session-key-DXCF4wZ3.js → rotate-session-key-rywGtiKG.js} +1 -1
- package/dist/assets/{runtime-4wraYeNg.js → runtime-Br1BXdVa.js} +1 -1
- package/dist/assets/schema-BKOGdXcY.js +1 -0
- package/dist/assets/sdk-Ml4VOZ8I.js +1 -0
- package/dist/assets/{service-BmS-Hfnk.js → service-JGRCidBc.js} +1 -1
- package/dist/assets/{shorten-label-DYIwy50H.js → shorten-label-DNQydA43.js} +1 -1
- package/dist/assets/{simple-select-Dl66gaGg.js → simple-select-DTSEgkTK.js} +1 -1
- package/dist/assets/{spaces-CIbaLYiX.js → spaces-BCtuyMgR.js} +1 -1
- package/dist/assets/{status-BLdIB43U.js → status-CfOHQcWj.js} +1 -1
- package/dist/assets/{status-FhheVLzV.js → status-ClxmfwnA.js} +1 -1
- package/dist/assets/{switch-control-DMPIVGLz.js → switch-control-_mPRn1TT.js} +1 -1
- package/dist/assets/{table-icons-CKVRCGfs.js → table-icons-BCjGfZ_O.js} +1 -1
- package/dist/assets/{team-BH09WBcn.js → team-DJ1sxIWJ.js} +1 -1
- package/dist/assets/{toLower-D2IQg44t.js → toLower-BSV3IbDQ.js} +1 -1
- package/dist/assets/toUpper-P9za5QoT.js +1 -0
- package/dist/assets/{traffic-Rb_HJzxE.js → traffic-CKmj2zi9.js} +1 -1
- package/dist/assets/{tsMode-C6_gO0t8.js → tsMode-DT1APwIi.js} +1 -1
- package/dist/assets/{typescript-C8KE2NUj.js → typescript-esvOVxsa.js} +1 -1
- package/dist/assets/{url-evaluation-BSVN9Sr-.js → url-evaluation-DNJ48_wb.js} +1 -1
- package/dist/assets/{url-join-7gtYpqME.js → url-join-CDhrsaDR.js} +1 -1
- package/dist/assets/{use-mobile-CHNtQz3M.js → use-mobile-BlNK1r7t.js} +1 -1
- package/dist/assets/{use-mobile-Cvb4FhMO.js → use-mobile-Do94upEI.js} +1 -1
- package/dist/assets/{useAsync-BJp2j1-A.js → useAsync-BJIXRppj.js} +1 -1
- package/dist/assets/{useAsyncRetry-Zp4PKIr6.js → useAsyncRetry-D8_fwb_i.js} +1 -1
- package/dist/assets/{useLocalStorage-DQlL9Uk_.js → useLocalStorage-BT1idF5p.js} +1 -1
- package/dist/assets/{useThemeProps-CR5EdUim.js → useThemeProps-Cjy804xx.js} +1 -1
- package/dist/assets/{util-TQDWHiT7.js → util-BuBDzST7.js} +1 -1
- package/dist/assets/{wait-container-DI1fYqjh.js → wait-container-C3xVNo3H.js} +1 -1
- package/dist/assets/{without-wallet-CYR1YjcE.js → without-wallet-CSLsp-R3.js} +1 -1
- package/dist/assets/wrap-locale-BnQ35YJ5.js +1 -0
- package/dist/assets/{xml-CarJoMuA.js → xml-XqwsWxhl.js} +1 -1
- package/dist/assets/{yaml-cKOyFvAs.js → yaml-CCl6p8Pa.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-DUiaaUDs.js +0 -1
- package/dist/assets/api-QrlC06mC.js +0 -1
- package/dist/assets/cloneDeep-B-GM3ClR.js +0 -1
- package/dist/assets/config-navigation-zi1EpHXk.js +0 -457
- package/dist/assets/emotion-cache.browser.esm-BtAWOyO4.js +0 -1
- package/dist/assets/engine-DNd4CfoF.js +0 -1
- package/dist/assets/getValidReactChildren-Duobzte7.js +0 -1
- package/dist/assets/index-Dj8a3cuS.js +0 -1
- package/dist/assets/omit-ewJIh-hW.js +0 -1
- package/dist/assets/schema-C2x1Agyu.js +0 -1
- package/dist/assets/sdk-DjOw_oab.js +0 -1
- package/dist/assets/toUpper-DhyOAo1_.js +0 -1
- package/dist/assets/wrap-locale-CtR1iX6O.js +0 -1
|
@@ -1,457 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D3TFHWgY.js","./index-NFZNhczl.js","./index-DGkT7afN.css","./url-join-7gtYpqME.js","./index-95rGb30b.js","./_createAggregator-CT9vDd72.js","./depsEqual-DIlm5Prx.js","./index-gYQgg1uX.js","./index-DRYJ0xIl.js","./toUpper-DhyOAo1_.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c1 as Kf,c0 as Yf,r as I,c2 as Jf,eT as Xf,j as g,b9 as ct,c4 as st,c5 as Qf,hz as Zf,hA as ep,gx as tp,du as rp,hB as np,dv as ip,bR as lc,bS as op,bP as ap,bQ as sp,bU as cc,dy as Wn,hC as lp,eD as cp,dG as up,hn as dp,gR as fp,dF as pp,gO as uc,hD as hp,gB as gp,fp as vp,eE as mp,ha as bp,V as Le,a3 as tt,y as Re,aP as Ft,c8 as Mt,i as yp,fa as xp,aH as ye,b as Ge,eO as Sp,ht as wp,dx as Dr,ez as br,di as dc,dC as Cp,hE as Ip,dB as fc,be as Hn,dO as or,hF as F,e_ as K,eH as Rp,hG as Xr,bf as Q,o as x,dM as Un,aQ as _o,hH as Po,cB as rr,aD as xe,K as oe,ag as Tp,aT as ae,ba as ko,dD as Xt,T as me,a4 as ze,b2 as qi,bB as wt,hI as Dp,bo as pc,E as qn,hJ as _p,hK as Pp,t as lt,fn as Dn,O as kp,bs as Xe,fd as hc,C as gc,bK as Op,hL as Oa,M as Oo,f9 as Ep,f6 as vc,H as Nt,P as mc,$ as bc,v as _n,hM as yc,f as Bt,dL as Np,bz as Mp,gF as xc,dJ as Nr,a7 as Ap,a8 as Lp,hN as Ea,hO as Sc,hP as zp,hQ as jp,hR as Vn,fe as Fp,g8 as Bp,g9 as Gp,ge as Kn,bE as je,hS as $p,h6 as Wp,hT as Hp,hU as Up,gK as qp,hV as Pn,hW as wc,L as Cc,z as Yn,hX as Na,hY as Ic,hZ as Vi,h_ as Vp,h$ as Kp,s as dr,i0 as Yp,f5 as Jp,cA as Rc,i1 as Xp,bH as Qp,i2 as Zp,dI as Ze,D as eh,X as th,cw as rh,i3 as nh,b0 as ih,bh as Ma,R as kn,a9 as Aa,i4 as oh,i5 as ah,i6 as sh,i7 as lh,i8 as Tc,i9 as ch,aB as Dc,f0 as _c,ia as Eo,ib as uh,hj as Pc,ic as dh,b6 as fh,cF as Qt,id as ph,cU as hh,ie as gh,d3 as vh,G as La,dq as di,eI as za,dN as mh,ig as bh,a5 as kc,Y as ja,ih as Fa,Q as yh,S as Ba}from"./index-NFZNhczl.js";import{r as xh}from"./omit-ewJIh-hW.js";import{r as Sh}from"./cloneDeep-B-GM3ClR.js";import{r as wh}from"./index-95rGb30b.js";import{c as Ch,u as Ih}from"./_createAggregator-CT9vDd72.js";import{u as Gt}from"./blocklet-B_b8vapJ.js";import{H as Rh,G as Th,M as Dh,N as _h,O as Ga,K as Ph,L as kh}from"./index-BAvBoYZf.js";import{_ as we,a as Ie,b as Ue,c as qe,d as Ve,e as Oh,f as Oc,u as de,g as ie,r as Gr,w as On,h as Ec,i as $t,j as Nc,k as Eh,l as Nh,o as Ki}from"./raf-schd.esm-DtLayBIf.js";import{_ as A,b as $a,c as Mh,a as Ah,d as Lh}from"./redux-DfszZyTl.js";import{_ as zh}from"./typeof-QjJsDpFa.js";import{u as Mc,b as jh}from"./team-BH09WBcn.js";import{b as Fh}from"./actions-CsKJtA25.js";import{u as Bh,a as Gh,C as ft}from"./index.esm-BDwjJuws.js";import{S as Yi}from"./simple-select-Dl66gaGg.js";import{b as $h,a as Wa}from"./html-title-BVs9_wlq.js";import{C as Ac}from"./Clear-CzjQBpCS.js";import{A as Wh}from"./ArrowDropDown-DUiaaUDs.js";import{a as Hh}from"./api-QrlC06mC.js";import{A as Uh}from"./Autocomplete-Bgl3dGJJ.js";import{L as qh}from"./ListItemButton-Tot-RyK-.js";import{u as Lc}from"./use-mobile-CHNtQz3M.js";import{u as Vh}from"./index-eCz9tbys.js";import{d as Kh}from"./KeyboardArrowDown-CS63clJ4.js";import{S as Yh}from"./Search-DXzn9Lp-.js";import{A as Jh}from"./Add-Des5za4N.js";import{O as Xh}from"./OpenInNew-D2ujTWne.js";import{t as Qh}from"./index-DK_hcqBI.js";import{I as Zh}from"./iframe-BRekcQQF.js";import{B as fi}from"./ButtonGroup-Z9547yzG.js";import{L as Ha}from"./LoadingButton-Cy89o260.js";import"./depsEqual-DIlm5Prx.js";import"./url-evaluation-BSVN9Sr-.js";import"./useLocalStorage-DQlL9Uk_.js";import"./MoreVert-DOn_691b.js";import"./DeleteOutline-DDdlNULq.js";import"./get-safe-url-M4uziR0J.js";import"./permission-DDKds_VS.js";import"./ListSubheader-BIN8GsVb.js";import"./getValidReactChildren-Duobzte7.js";function eg(e){return Kf("MuiListItemAvatar",e)}Yf("MuiListItemAvatar",["root","alignItemsFlexStart"]);const tg=e=>{const{alignItems:r,classes:n}=e;return Qf({root:["root",r==="flex-start"&&"alignItemsFlexStart"]},eg,n)},rg=ct("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,n.alignItems==="flex-start"&&r.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),Ua=I.forwardRef(function(r,n){const t=Jf({props:r,name:"MuiListItemAvatar"}),{className:i,...o}=t,a=I.useContext(Xf),s={...t,alignItems:a.alignItems},l=tg(s);return g.jsx(rg,{className:st(l.root,i),ownerState:s,ref:n,...o})});var ng=Zf(function(){return ep?sessionStorage:void 0});function ig(e,r){return tp(r,function(n){return e[n]})}function og(e){return e==null?[]:ig(e,rp(e))}var ag=np.isFinite;function qa(e){return typeof e=="number"&&ag(e)}function sg(e){return typeof e=="number"&&e==ip(e)}var lg=Ch(function(e,r,n){e[n?0:1].push(r)},function(){return[[],[]]});const cg=Object.freeze(Object.defineProperty({__proto__:null,default:lg},Symbol.toStringTag,{value:"Module"}));var ug=lc(function(e){var r=op(e);return r=typeof r=="function"?r:void 0,ap(sp(e,1,cc,!0),void 0,r)});const dg=Object.freeze(Object.defineProperty({__proto__:null,default:ug},Symbol.toStringTag,{value:"Module"}));var zc=lc(function(e,r){return cc(e)?Fh(e,r):[]}),yr={};const fg=Wn(dg),pg=Wn(lp),hg=Wn(cg);var Va;function gg(){return Va||(Va=1,function(e){var r=yr&&yr.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(e,"__esModule",{value:!0}),e.sortRootNavigation=e.cleanOldNavigationHistory=e.checkLink=void 0,e.parseNavigation=ue,e.deepWalk=_,e.isMatchSection=S,e.nestNavigationList=X,e.filterNavigation=Z,e.cleanOrphanNavigation=q,e.joinLink=M,e.flattenNavigation=H,e.splitNavigationBySection=ee;const n=cp(),t=up(),i=r(fg),o=r(dp),a=r(fp),s=r(pg),l=r(pp),c=r(xh),u=r(Sh),f=bp(),d=r(wh()),p=r(uc()),h=r(hp),v=r(gp),m=r(hg),y=vp(),b=mp();Object.defineProperty(e,"checkLink",{enumerable:!0,get:function(){return b.checkLink}});const C="header",D="/",P="/",w="/";function _($,W=()=>{},{key:k="children",order:N="first"}={}){function j(V,{index:te=0,parent:se=null,level:fe=0}={}){Array.isArray(V)?V.forEach((ve,Ce)=>{j(ve,{index:Ce,parent:se,level:fe+1})}):V&&(N==="first"&&W(V,se,{index:te,level:fe}),j(V[k],{parent:V,level:fe}),N==="last"&&W(V,se,{index:te,level:fe}))}j($)}function S($,W){return W===C&&(0,s.default)($)?!0:Array.isArray($)?$.includes(W):$===W}function R($){try{return JSON.parse($)}catch{return $}}function T($){return $.map(W=>{const k={...W};return k.role&&(k.role=R(k.role)),k.section&&(k.section=R(k.section)),k.title&&(k.title=R(k.title)),k.description&&(k.description=R(k.description)),k.link&&(k.link=R(k.link)),k})}function O($="/",W=""){if((0,p.default)(W||""))return W;const k=d.default.join($,W||P);return k.length>1&&k.endsWith("/")?k.slice(0,k.length-1):k}function L($,W,{strict:k=!0}={}){let N=$,j=W;return k||(N=N||"/",j=j||"/"),(0,h.default)(N)&&(0,v.default)(j)&&(0,b.checkLink)(j)?Object.keys(N).reduce((V,te)=>(V[te]=O(N[te],j),V),{}):(0,v.default)(N)&&(0,b.checkLink)(N)&&(0,h.default)(j)?Object.keys(j).reduce((V,te)=>(V[te]=O(N,j[te]),V),{}):(0,v.default)(N)&&(0,v.default)(j)?(0,b.checkLink)(N)||(0,b.checkLink)(j)?O(N,j):j:(0,h.default)(N)&&(0,h.default)(j)?[...new Set([...Object.keys(N),...Object.keys(j)])].reduce((te,se)=>(te[se]=O(N[se],j[se]),te),{}):j}function M($,W){const k=(0,u.default)($);return _(k,(N,j)=>{const V=N.component||N.child;if(V){const te=W.find(se=>se.name===V);te&&(N.link=L(te.link,N.link,{strict:!1}))}else j&&(N.link=L(j.link,N.link))},{key:"items"}),k}function H($=[],{depth:W=1,transform:k=N=>N}={}){const N=(0,u.default)($),j=[];return _(N,(V,te,{level:se})=>{if(se>=W){const{items:fe=[]}=V;if(fe&&Array.isArray(fe)&&fe.length>0){delete V.items;const ve=fe.map(Ce=>k(Ce,V));if(te)te.items.push(...ve);else{const Ce=k((0,c.default)(V,["items"]),te);j.push(Ce,...ve)}}else if(se===1){const ve=k((0,c.default)(V,["items"]),te);j.push(ve)}}else se===1&&j.push(V)},{key:"items",order:"last"}),j}function E($){if($.section!=="bottomNavigation")return $;const W={...$};return n.NAVIGATION_I18N_FIELDS.forEach(k=>{const N=W[k];typeof N=="string"&&(W[k]={en:N})}),W}function B($={}){const W=[];function k(j,V={}){const te=[],{children:se=[],meta:fe={}}=j,ve=(0,u.default)(fe?.navigation||[]);(0,y.hasStartEngine)(fe)&&j.meta?.capabilities?.navigation!==!1&&te.push(...ve);const Ce=V.name||"",Se=V.mountPoint||D,_e=j===$?"":fe.name||"",Fe=j===$?"":j.mountPoint||D;for(const Pe of se){if(!(0,y.hasStartEngine)(Pe.meta))continue;const pe=Pe.meta.name,be=Pe.mountPoint,ut=[Ce,_e,pe].filter(Boolean).join("."),mr=Pe.meta.navigation||[],ui=(0,f.joinURL)(Se,Fe,be);Pe.meta?.capabilities?.navigation!==!1&&W.push({did:Pe.meta.did,name:ut,link:ui,title:Pe.meta.title||"",navigation:mr.map(Ke=>({section:C,...Ke}))});const dt=ve.find(Ke=>Ke.component?Ke.component===pe:!1);if(dt){if(!dt.link)if(Pe.meta.navigation&&Pe.meta.navigation.length>0){const Ke=k(Pe,{mountPoint:Fe,name:_e});Ke.length>0&&(dt.items=dt.items??[],dt.items.push(...Ke))}else dt.link=P}else if(Pe.meta?.capabilities?.navigation!==!1){const Ke=k(Pe,{mountPoint:Fe,name:_e}),ln={title:Pe.meta.title,component:pe,id:Pe.meta.did};Ke.length>0?(ln.items=Ke,ln.link=void 0):ln.link=P,te.push(ln)}}return te}return{navigationList:k($),components:W}}function G($){const W=(0,u.default)($).filter(k=>k.id);return _(W,(k,N)=>{if(k.items&&k.items.length){for(let j=k.items.length-1;j>=0;j--)k.items[j].id||k.items.splice(j,1);k.items.length===0&&k.component&&(k.link=k.link||P)}N&&(k.parent=N.id,k.id=[N.id,k.id].join(w)),k.from=k.from||"yaml",k.visible=k.visible??!0},{key:"items"}),W}function U($,W=2){const k=(0,u.default)($),N=H(k,{depth:W,transform:(j,V)=>(V&&(j._parent||(j._parent=V.id,V.component||(j.link=L(V.link,j.link))),j.section=j.section||V.section||[C],j.visible=j.visible??V.visible,V.role&&(j.role=j.role||V.role)),j.component=[V.component,j.component].filter(Boolean).join("."),j)});return _(N,j=>{j.items&&j.items.length>0&&j.items.reduceRight((V,te)=>{if(te._parent){const se=j.items.findIndex(fe=>fe.id===te._parent);se>=0&&j.items.splice(se,1),delete te._parent}return null},null)},{key:"items"}),N}function J($,W){return W&&Array.isArray($.items)?$.items.filter(k=>(0,s.default)(k.section)?S($.section,W):!!S(k.section,W)).map(k=>({...k,section:W})):[]}function ee($){const W=(0,u.default)($),k=[];for(const N of W){let te=function(se,fe){const ve=J(se,fe);V.push({...j,section:fe,items:ve})};const j=(0,u.default)((0,c.default)(N,["items"])),V=[];if(Array.isArray(N.section))for(const se of N.section)te(N,se);else if(N.section){const{section:se}=N;te(N,se)}else if(N.items&&N.items.length>0){const se=N.items.reduce((ve,Ce)=>{const{section:Se=[C]}=Ce||{};return ve.push(...Se),ve},[]),fe=[...new Set(se)];for(const ve of fe)te(N,ve)}else V.push({...N,section:C});k.push(...V)}return k}function X($=[]){const W=(0,u.default)($);return W.reduceRight((k,N,j)=>{if(N.parent){const V=W.find(te=>N.section&&te.section?te.section===N.section&&te.id===N.parent:te.id===N.parent);V&&(V.items||(V.items=[]),V.items=[N,...V.items]),W.splice(j,1)}return null},null),W}function Z($,W=[]){const k=X($);return _(k,j=>{if(j?.component&&(W.some(V=>V.name===j.component)||(j.visible=!1)),j.items&&j.items.length)for(let V=j.items.length-1;V>=0;V--)j.items[V].visible===!1&&j.items.splice(V,1)},{key:"items"}),k.filter(j=>!(j.visible===!1||j.items&&Array.isArray(j.items)&&j.items.length>0&&j.items?.every(V=>V.visible===!1)))}function q($){return $.map(W=>W.items&&Array.isArray(W.items)&&W.items.length===1&&["header","footer","",void 0,null].includes(W.section)?W.items[0]:W)}const re=$=>{const[W,k]=(0,m.default)($,V=>V.id===t.NAV_GROUP_SYSTEM),[N,j]=(0,m.default)(k,V=>V.id===t.NAV_GROUP_SERVICES);return[...W,...N,...j]};e.sortRootNavigation=re;const ne=$=>{const[,W]=(0,m.default)($,k=>{const N=typeof k.title=="string"?k.title:k.title?.en;return k.id===t.NAV_GROUP_TEAM||k.id==="/dashboard"&&N==="Blocklet"});return W};e.cleanOldNavigationHistory=ne;function ue($={},W={}){const{beforeProcess:k=pe=>pe}=W,{navigationList:N,components:j}=B($),V=new Map;N.forEach(pe=>{pe.items?.forEach(be=>{V.set((0,f.joinURL)(pe.id,be.id),be)})});const te=(0,l.default)($,"settings.org.enabled",!1),se=[t.NAV_GROUP_TEAM,t.NAV_GROUP_SYSTEM,t.NAV_GROUP_SERVICES];$?.settings?.navigations&&(Array.isArray($.settings.navigations)?$.settings.navigations=[...$.settings.navigations].filter(pe=>!(pe.from==="team-tmpl"&&se.includes(pe?.parent))).map(pe=>{if(pe.section==="userCenter"&&!Object.prototype.hasOwnProperty.call(pe,"private")){const be=V.get(pe.id);be&&Object.prototype.hasOwnProperty.call(be,"private")&&(pe.private=be.private)}return!te&&pe.section==="userCenter"&&pe.id==="/userCenter/orgs"?null:pe}).filter(Boolean):$.settings.navigations=[]);const fe=T(ne($?.settings?.navigations||[])).map(E),ve=U(k(N)),Ce=G(ve),_e=ee(Ce).reduce((pe,be)=>["bottom","social","sessionManager","userCenter"].includes(be.section)&&be.items&&be.items.length>0?(pe.push(...be.items.map(mr=>{const{section:ui}=be,dt=L(be.link,mr.link),Ke=[be.component,mr.component].filter(Boolean).join(".");return{...mr,section:ui,link:dt,component:Ke,parent:""}})),pe):(pe.push(be),pe),[]),Fe=H(_e,{transform(pe,be){let{component:ut}=pe;return be?.component&&(ut=[be.component,pe.component].filter(Boolean).join(".")),E({...pe,component:ut})}});return{navigationList:(0,i.default)(fe,Fe,(pe,be)=>{const ut=["id","section"];return(0,o.default)((0,a.default)(pe,ut),(0,a.default)(be,ut))}),components:j,builtinList:Fe}}}(yr)),yr}var Ne=gg();const jc=I.createContext(null),Ka="/",vg="header",Ya={userCenter:[{id:"/userCenter/notification",title:{en:"Notifications",zh:"通知"},icon:"ant-design:bell-outlined",link:Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/notifications"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/orgs",title:{en:"Organizations",zh:"组织"},icon:"ant-design:team-outlined",link:Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/orgs"),from:"team-tmpl",section:["userCenter"],shouldDisplay:e=>e.settings?.org?.enabled},{id:"/userCenter/nfts",title:{en:"NFTs",zh:"NFTs"},icon:"ant-design:gold-outlined",link:Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/nfts"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/settings",title:{en:"Settings",zh:"设置"},icon:"ant-design:setting-outlined",link:Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/settings"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/did-spaces",title:{en:"DID Spaces",zh:"DID Spaces"},icon:"ant-design:cloud-outlined",link:Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/did-spaces"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/user-followers",title:{en:"Follow",zh:"关注"},icon:"ant-design:user-outlined",link:Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/user-followers"),from:"team-tmpl",section:["userCenter"]}]};function pi(e,r){return e.section&&r.section?e.section===r.section&&e.id===r.id:e.id===r.id}const it=(e,r,n,t,i=!0)=>({id:e,from:"team-tmpl",title:r,icon:n,link:Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,t),visible:i}),Ja=(e,r,n)=>({id:e,from:"team-tmpl",title:r,role:["owner","admin","member"],section:["dashboard"],link:"",items:n}),mg=(e,r)=>{const n=Ne.cleanOldNavigationHistory(r),t=n.findIndex(a=>a.id===Ge.NAV_GROUP_TEAM);return t>=0&&n.splice(t,1),n.findIndex(a=>a.id===Ge.NAV_GROUP_SERVICES)===-1&&n.unshift(Ja(Ge.NAV_GROUP_SERVICES,e("navigation.services"),[it("did-connect",e("navigation.didConnect"),"tabler:users","/admin/did-connect"),it("website",e("navigation.website"),"icon-park-twotone:upload-web","/admin/website"),it("notification",e("navigation.notification"),"ant-design:bell-outlined","/admin/notification"),it("aigne",e("navigation.aigne"),"hugeicons:artificial-intelligence-04","/admin/aigne"),it("did-spaces",e("navigation.didSpaces"),"icon-park-outline:cloud-storage","/admin/did-spaces"),it("studio",e("navigation.studio"),"eos-icons:subscriptions-created-outlined","/admin/publish/publish")])),n.findIndex(a=>a.id===Ge.NAV_GROUP_SYSTEM)===-1&&n.unshift(Ja(Ge.NAV_GROUP_SYSTEM,e("navigation.system"),[it("dashboard",e("navigation.dashboard"),"ant-design:dashboard-outlined","/admin"),it("operation",e("navigation.operations"),"grommet-icons:configure","/admin/operations"),it("integration",e("navigation.integration"),"hugeicons:webhook","/admin/integrations")])),n};function Xa({name:e}){return g.jsx(Sp,{label:`Uninstalled: ${e}`,color:"error",size:"small",variant:"outlined",sx:{fontSize:10,height:20}})}function bg({children:e}){const{blocklet:r,actions:n}=Gt(),{t}=Le(),{navigationList:i,components:o,builtinList:a}=Ne.parseNavigation(r,{beforeProcess(w){const _=tt(w);return["dashboard","userCenter"].forEach(S=>{Object.prototype.hasOwnProperty.call(Ya,S)&&Ya[S].forEach(R=>{(R.shouldDisplay&&typeof R.shouldDisplay=="function"?R.shouldDisplay:()=>!0)(r)&&!_.some(O=>O.id===R.id)&&_.push(R)})}),mg(t,_)}}),s=Ft({rawNavigation:tt(i),activeSection:vg,components:o}),l=I.useMemo(()=>Ne.sortRootNavigation(Ne.nestNavigationList(tt(s.rawNavigation))),[s.rawNavigation]),c=I.useMemo(()=>{const w=Ne.filterNavigation(tt(s.rawNavigation),o);return Ne.joinLink(w,o)},[o,s.rawNavigation]),u=I.useCallback(w=>{if(!w.id)return"";const _=Ne.flattenNavigation(Ne.joinLink(l,o)),S=_.find(R=>R.id===w.id);if(S?.component){if(!o.some(R=>R.name===S.component))return g.jsx(Xa,{name:S.component})}else if(S.parent){const R=_.find(T=>T.id===S.parent);if(R?.component&&!o.some(T=>T.name===R.component))return g.jsx(Xa,{name:R.component})}return S?.link},[l,o]),f=I.useCallback(w=>{s.activeSection=w},[s]),d=I.useCallback(w=>{const _=[];Ne.deepWalk(w,(R,T)=>{const O={...Mt(R,["children","expand"]),parent:T?.id};_.push(O)});const S=tt(s.rawNavigation).filter(R=>{if(!s.activeSection)return!1;const T=_.find(O=>pi(O,R));return T?!Ne.isMatchSection(T.section,s.activeSection):!0});s.rawNavigation=[...S,..._]},[s]),p=I.useCallback((w=[])=>{const _=tt(s.rawNavigation).map(S=>{const R=w.find(T=>pi({...T,section:s.activeSection},S));return R?{...S,...R}:S});s.rawNavigation=_},[s]),h=I.useCallback((w,_=Ka)=>w.map(R=>{const O=o.find(H=>H.name===R.component)?.link||_,L=R.items||[],{link:M}=R;return{title:R.title,description:R.description,subtitle:u(R),link:M,icon:R.icon,children:h(L,M||Ka),section:R.section,visible:R.visible,parent:R.parent,component:R.component,id:R.id,role:R.role,from:R.from,__base:O}}),[o,u]),v=I.useCallback(w=>{p([w])},[p]),m=I.useCallback(w=>{const _=s.rawNavigation.filter(S=>S.id===w||S.parent===w).map(S=>S.id);s.rawNavigation=tt(s.rawNavigation).filter(S=>!_.includes(S.id))},[s]),y=I.useCallback((w={},_=-1)=>{const S={...w,id:yp.nanoid(),section:s.activeSection,visible:!0},R=[...s.rawNavigation],T=R.filter(O=>O.section===s.activeSection);if(_<0||_>T.length-1)R.push(S);else{const O=T[_],L=R.findIndex(M=>pi(M,O));R.splice(L,0,S)}return s.rawNavigation=R,S},[s]),b=I.useCallback(w=>{const S=tt(l).filter(R=>Ne.isMatchSection(R.section,w));return h(S)},[l,h]),C=I.useCallback(async w=>{const S=w.map(R=>xp(R,wp)).map(R=>{const T={...R};return T.role&&Array.isArray(T.role)&&(T.role=JSON.stringify(T.role)),T.section&&Array.isArray(T.section)&&(T.section=JSON.stringify(T.section)),T.title&&T.title instanceof Object&&(T.title=JSON.stringify(T.title)),T.description&&T.description instanceof Object&&(T.description=JSON.stringify(T.description)),T.link&&T.link instanceof Object&&(T.link=JSON.stringify(T.link)),T});await n.configNavigations(S)},[n]),D=I.useCallback(async w=>{if(w){const _=a.filter(R=>Ne.isMatchSection(R.section,w)),S=s.rawNavigation.filter(R=>!Ne.isMatchSection(R.section,w));await C(S),s.rawNavigation=[...S,..._]}else await C([]),s.rawNavigation=tt(a)},[C,s,a]),P=I.useMemo(()=>({state:s,navigation:c,components:o,getNavigationFullLink:u,updateActiveSection:f,updateNavigationItem:v,delNavigationItem:m,addNavigationItem:y,updateNavigationTree:d,getNavigation:b,saveNavigationList:C,resetNavigation:D}),[s,c,o,u,f,v,m,y,d,b,C,D]);return g.jsx(jc.Provider,{value:P,children:e})}function Fc(){const e=I.useContext(jc);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}var Qe={},hi,Qa;function yg(){if(Qa)return hi;Qa=1;var e="Expected a function",r=NaN,n="[object Symbol]",t=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l=typeof Dr=="object"&&Dr&&Dr.Object===Object&&Dr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),f=Object.prototype,d=f.toString,p=Math.max,h=Math.min,v=function(){return u.Date.now()};function m(w,_,S){var R,T,O,L,M,H,E=0,B=!1,G=!1,U=!0;if(typeof w!="function")throw new TypeError(e);_=P(_)||0,b(S)&&(B=!!S.leading,G="maxWait"in S,O=G?p(P(S.maxWait)||0,_):O,U="trailing"in S?!!S.trailing:U);function J(W){var k=R,N=T;return R=T=void 0,E=W,L=w.apply(N,k),L}function ee(W){return E=W,M=setTimeout(q,_),B?J(W):L}function X(W){var k=W-H,N=W-E,j=_-k;return G?h(j,O-N):j}function Z(W){var k=W-H,N=W-E;return H===void 0||k>=_||k<0||G&&N>=O}function q(){var W=v();if(Z(W))return re(W);M=setTimeout(q,X(W))}function re(W){return M=void 0,U&&R?J(W):(R=T=void 0,L)}function ne(){M!==void 0&&clearTimeout(M),E=0,R=H=T=M=void 0}function ue(){return M===void 0?L:re(v())}function $(){var W=v(),k=Z(W);if(R=arguments,T=this,H=W,k){if(M===void 0)return ee(H);if(G)return M=setTimeout(q,_),J(H)}return M===void 0&&(M=setTimeout(q,_)),L}return $.cancel=ne,$.flush=ue,$}function y(w,_,S){var R=!0,T=!0;if(typeof w!="function")throw new TypeError(e);return b(S)&&(R="leading"in S?!!S.leading:R,T="trailing"in S?!!S.trailing:T),m(w,_,{leading:R,maxWait:_,trailing:T})}function b(w){var _=typeof w;return!!w&&(_=="object"||_=="function")}function C(w){return!!w&&typeof w=="object"}function D(w){return typeof w=="symbol"||C(w)&&d.call(w)==n}function P(w){if(typeof w=="number")return w;if(D(w))return r;if(b(w)){var _=typeof w.valueOf=="function"?w.valueOf():w;w=b(_)?_+"":_}if(typeof w!="string")return w===0?w:+w;w=w.replace(t,"");var S=o.test(w);return S||a.test(w)?s(w.slice(2),S?2:8):i.test(w)?r:+w}return hi=y,hi}var xr={exports:{}},Pt={exports:{}},xg=Pt.exports,Za;function Sg(){return Za||(Za=1,(function(){var e,r,n,t,i,o;typeof performance<"u"&&performance!==null&&performance.now?Pt.exports=function(){return performance.now()}:typeof br<"u"&&br!==null&&br.hrtime?(Pt.exports=function(){return(e()-i)/1e6},r=br.hrtime,e=function(){var a;return a=r(),a[0]*1e9+a[1]},t=e(),o=br.uptime()*1e9,i=t-o):Date.now?(Pt.exports=function(){return Date.now()-n},n=Date.now()):(Pt.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(xg)),Pt.exports}var es;function wg(){if(es)return xr.exports;es=1;for(var e=Sg(),r=typeof window>"u"?Dr:window,n=["moz","webkit"],t="AnimationFrame",i=r["request"+t],o=r["cancel"+t]||r["cancelRequest"+t],a=0;!i&&a<n.length;a++)i=r[n[a]+"Request"+t],o=r[n[a]+"Cancel"+t]||r[n[a]+"CancelRequest"+t];if(!i||!o){var s=0,l=0,c=[],u=1e3/60;i=function(f){if(c.length===0){var d=e(),p=Math.max(0,u-(d-s));s=p+d,setTimeout(function(){var h=c.slice(0);c.length=0;for(var v=0;v<h.length;v++)if(!h[v].cancelled)try{h[v].callback(s)}catch(m){setTimeout(function(){throw m},0)}},Math.round(p))}return c.push({handle:++l,callback:f,cancelled:!1}),l},o=function(f){for(var d=0;d<c.length;d++)c[d].handle===f&&(c[d].cancelled=!0)}}return xr.exports=function(f){return i.call(r,f)},xr.exports.cancel=function(){o.apply(r,arguments)},xr.exports.polyfill=function(f){f||(f=r),f.requestAnimationFrame=i,f.cancelAnimationFrame=o},xr.exports}var cn={},ts;function Cg(){if(ts)return cn;ts=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=e;function e(r){return r.displayName||r.name||(typeof r=="string"&&r.length>0?r:"Unknown")}return cn}var Ht={},rs;function Ig(){if(rs)return Ht;rs=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.noop=e,Ht.intBetween=r,Ht.getCoords=n;function e(){}function r(t,i,o){return Math.floor(Math.min(i,Math.max(t,o)))}function n(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}return Ht}var ns;function Rg(){if(ns)return Qe;ns=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.createHorizontalStrength=R,Qe.createVerticalStrength=T,Qe.createScrollingComponent=M,Qe.default=H,Qe.defaultVerticalStrength=Qe.defaultHorizontalStrength=void 0;var e=u(dc()),r=c(fc()),n=Cp(),t=c(yg()),i=c(wg()),o=c(Cg()),a=Rh,s=c(Ip()),l=Ig();function c(E){return E&&E.__esModule?E:{default:E}}function u(E){if(E&&E.__esModule)return E;var B={};if(E!=null){for(var G in E)if(Object.prototype.hasOwnProperty.call(E,G)){var U=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(E,G):{};U.get||U.set?Object.defineProperty(B,G,U):B[G]=E[G]}}return B.default=E,B}function f(E){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(G){return typeof G}:f=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},f(E)}function d(){return d=Object.assign||function(E){for(var B=1;B<arguments.length;B++){var G=arguments[B];for(var U in G)Object.prototype.hasOwnProperty.call(G,U)&&(E[U]=G[U])}return E},d.apply(this,arguments)}function p(E,B){if(E==null)return{};var G=h(E,B),U,J;if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(E);for(J=0;J<ee.length;J++)U=ee[J],!(B.indexOf(U)>=0)&&Object.prototype.propertyIsEnumerable.call(E,U)&&(G[U]=E[U])}return G}function h(E,B){if(E==null)return{};var G={},U=Object.keys(E),J,ee;for(ee=0;ee<U.length;ee++)J=U[ee],!(B.indexOf(J)>=0)&&(G[J]=E[J]);return G}function v(E,B){if(!(E instanceof B))throw new TypeError("Cannot call a class as a function")}function m(E,B){for(var G=0;G<B.length;G++){var U=B[G];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(E,U.key,U)}}function y(E,B,G){return B&&m(E.prototype,B),E}function b(E,B){return B&&(f(B)==="object"||typeof B=="function")?B:w(E)}function C(E){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},C(E)}function D(E,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(B&&B.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),B&&P(E,B)}function P(E,B){return P=Object.setPrototypeOf||function(U,J){return U.__proto__=J,U},P(E,B)}function w(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function _(E,B,G){return B in E?Object.defineProperty(E,B,{value:G,enumerable:!0,configurable:!0,writable:!0}):E[B]=G,E}var S=150;function R(E){return function(G,U){var J=G.x,ee=G.w,X=G.y,Z=G.h,q=Math.min(ee/2,E),re=U.x>=J&&U.x<=J+ee,ne=re&&U.y>=X&&U.y<=X+Z;if(ne){if(U.x<J+q)return(U.x-J-q)/q;if(U.x>J+ee-q)return-(J+ee-U.x-q)/q}return 0}}function T(E){return function(G,U){var J=G.y,ee=G.h,X=G.x,Z=G.w,q=Math.min(ee/2,E),re=U.y>=J&&U.y<=J+ee,ne=re&&U.x>=X&&U.x<=X+Z;if(ne){if(U.y<J+q)return(U.y-J-q)/q;if(U.y>J+ee-q)return-(J+ee-U.y-q)/q}return 0}}var O=R(S);Qe.defaultHorizontalStrength=O;var L=T(S);Qe.defaultVerticalStrength=L;function M(E){var B=function(G){D(U,G);function U(J,ee){var X;return v(this,U),X=b(this,C(U).call(this,J,ee)),_(w(w(X)),"updateScrolling",(0,t.default)(function(Z){var q=X.container.getBoundingClientRect(),re=q.left,ne=q.top,ue=q.width,$=q.height,W={x:re,y:ne,w:ue,h:$},k=(0,l.getCoords)(Z),N=X.props,j=N.horizontalStrength,V=N.verticalStrength;X.scaleX=j(W,k),X.scaleY=V(W,k),!X.frame&&(X.scaleX||X.scaleY)&&X.startScrolling()},100,{trailing:!1})),_(w(w(X)),"handleEvent",function(Z){X.dragging&&!X.attached&&(X.attach(),X.updateScrolling(Z))}),X.wrappedInstance=e.default.createRef(),X.scaleX=0,X.scaleY=0,X.frame=null,X.attached=!1,X.dragging=!1,X}return y(U,[{key:"componentDidMount",value:function(){var ee=this;this.container=(0,n.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var X=this.props.dragDropManager;this.clearMonitorSubscription=X.getMonitor().subscribeToStateChange(function(){return ee.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var ee=this.props.dragDropManager,X=ee.getMonitor().isDragging();!this.dragging&&X?this.dragging=!0:this.dragging&&!X&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var ee=this,X=0,Z=function q(){var re=ee.scaleX,ne=ee.scaleY,ue=ee.container,$=ee.props,W=$.strengthMultiplier,k=$.onScrollChange;if(W===0||re+ne===0){ee.stopScrolling();return}if(X+=1,X%2){var N=ue.scrollLeft,j=ue.scrollTop,V=ue.scrollWidth,te=ue.scrollHeight,se=ue.clientWidth,fe=ue.clientHeight,ve=re?ue.scrollLeft=(0,l.intBetween)(0,V-se,N+re*W):N,Ce=ne?ue.scrollTop=(0,l.intBetween)(0,te-fe,j+ne*W):j;k(ve,Ce)}ee.frame=(0,i.default)(q)};Z()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(i.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var ee=this.props;ee.strengthMultiplier,ee.verticalStrength,ee.horizontalStrength,ee.onScrollChange;var X=p(ee,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return e.default.createElement(E,d({ref:this.wrappedInstance},X))}}]),U}(e.Component);return _(B,"displayName","Scrolling(".concat((0,o.default)(E),")")),_(B,"propTypes",{dragDropManager:r.default.object.isRequired,onScrollChange:r.default.func,verticalStrength:r.default.func,horizontalStrength:r.default.func,strengthMultiplier:r.default.number}),_(B,"defaultProps",{onScrollChange:l.noop,verticalStrength:L,horizontalStrength:O,strengthMultiplier:30}),(0,s.default)(B,E)}function H(E){var B=M(E);return function(G){return e.default.createElement(a.DragDropContextConsumer,null,function(U){var J=U.dragDropManager;return J===void 0?null:e.default.createElement(B,d({},G,{dragDropManager:J}))})}}return Qe}var xn=Rg();const Tg=Hn(xn);var Dg=Th();const is=Hn(Dg);function Bc(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Gc(e){function r(n){var t=this.constructor.getDerivedStateFromProps(e,n);return t??null}this.setState(r.bind(this))}function $c(e,r){try{var n=this.props,t=this.state;this.props=e,this.state=r,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,t)}finally{this.props=n,this.state=t}}Bc.__suppressDeprecationWarning=!0;Gc.__suppressDeprecationWarning=!0;$c.__suppressDeprecationWarning=!0;function Qr(e){var r=e.prototype;if(!r||!r.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function")return e;var n=null,t=null,i=null;if(typeof r.componentWillMount=="function"?n="componentWillMount":typeof r.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps=="function"?t="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps=="function"&&(t="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate=="function"?i="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||t!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
3
|
-
|
|
4
|
-
`+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
|
|
5
|
-
`+n:"")+(t!==null?`
|
|
6
|
-
`+t:"")+(i!==null?`
|
|
7
|
-
`+i:"")+`
|
|
8
|
-
|
|
9
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
10
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(r.componentWillMount=Bc,r.componentWillReceiveProps=Gc),typeof r.getSnapshotBeforeUpdate=="function"){if(typeof r.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");r.componentWillUpdate=$c;var s=r.componentDidUpdate;r.componentDidUpdate=function(c,u,f){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,c,u,d)}}return e}function Wc(e){var r,n,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=Wc(e[r]))&&(t&&(t+=" "),t+=n);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function et(){for(var e,r,n=0,t="";n<arguments.length;)(e=arguments[n++])&&(r=Wc(e))&&(t&&(t+=" "),t+=r);return t}function os(e){var r=e.cellCount,n=e.cellSize,t=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,o=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;(r!==o||(typeof n=="number"||typeof a=="number")&&n!==a)&&(t(i),l>=0&&l===s&&c())}function Zt(e,r){if(e==null)return{};var n,t,i=or(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)n=o[t],r.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var _g=function(){function e(r){var n=r.cellCount,t=r.cellSizeGetter,i=r.estimatedCellSize;Ie(this,e),A(this,"_cellSizeAndPositionData",{}),A(this,"_lastMeasuredIndex",-1),A(this,"_lastBatchedIndex",-1),A(this,"_cellCount",void 0),A(this,"_cellSizeGetter",void 0),A(this,"_estimatedCellSize",void 0),this._cellSizeGetter=t,this._cellCount=n,this._estimatedCellSize=i}return we(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(n){var t=n.cellCount,i=n.estimatedCellSize,o=n.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=i,this._cellSizeGetter=o}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(n){if(n<0||n>=this._cellCount)throw Error("Requested index ".concat(n," is outside of range 0..").concat(this._cellCount));if(n>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),i=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=n;o++){var a=this._cellSizeGetter({index:o});if(a===void 0||isNaN(a))throw Error("Invalid size returned for cell ".concat(o," of value ").concat(a));a===null?(this._cellSizeAndPositionData[o]={offset:i,size:0},this._lastBatchedIndex=n):(this._cellSizeAndPositionData[o]={offset:i,size:a},i+=a,this._lastMeasuredIndex=n)}return this._cellSizeAndPositionData[n]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var n=this.getSizeAndPositionOfLastMeasuredCell(),t=n.offset+n.size,i=this._cellCount-this._lastMeasuredIndex-1,o=i*this._estimatedCellSize;return t+o}},{key:"getUpdatedOffsetForIndex",value:function(n){var t=n.align,i=t===void 0?"auto":t,o=n.containerSize,a=n.currentOffset,s=n.targetIndex;if(o<=0)return 0;var l=this.getSizeAndPositionOfCell(s),c=l.offset,u=c-o+l.size,f;switch(i){case"start":f=c;break;case"end":f=u;break;case"center":f=c-(o-l.size)/2;break;default:f=Math.max(u,Math.min(c,a));break}var d=this.getTotalSize();return Math.max(0,Math.min(d-o,f))}},{key:"getVisibleCellRange",value:function(n){var t=n.containerSize,i=n.offset,o=this.getTotalSize();if(o===0)return{};var a=i+t,s=this._findNearestCell(i),l=this.getSizeAndPositionOfCell(s);i=l.offset+l.size;for(var c=s;i<a&&c<this._cellCount-1;)c++,i+=this.getSizeAndPositionOfCell(c).size;return{start:s,stop:c}}},{key:"resetCell",value:function(n){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,n-1)}},{key:"_binarySearch",value:function(n,t,i){for(;t<=n;){var o=t+Math.floor((n-t)/2),a=this.getSizeAndPositionOfCell(o).offset;if(a===i)return o;a<i?t=o+1:a>i&&(n=o-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(n,t){for(var i=1;n<this._cellCount&&this.getSizeAndPositionOfCell(n).offset<t;)n+=i,i*=2;return this._binarySearch(Math.min(n,this._cellCount-1),Math.floor(n/2),t)}},{key:"_findNearestCell",value:function(n){if(isNaN(n))throw Error("Invalid offset ".concat(n," specified"));n=Math.max(0,n);var t=this.getSizeAndPositionOfLastMeasuredCell(),i=Math.max(0,this._lastMeasuredIndex);return t.offset>=n?this._binarySearch(i,0,n):this._exponentialSearch(i,n)}}]),e}(),Pg=15e5,kg=16777100,Og=function(){return typeof window<"u"},Eg=function(){return!!window.chrome},Ng=function(){return Og()&&Eg()?kg:Pg},as=function(){function e(r){var n=r.maxScrollSize,t=n===void 0?Ng():n,i=Zt(r,["maxScrollSize"]);Ie(this,e),A(this,"_cellSizeAndPositionManager",void 0),A(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new _g(i),this._maxScrollSize=t}return we(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(n){this._cellSizeAndPositionManager.configure(n)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(n){var t=n.containerSize,i=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),s=this._getOffsetPercentage({containerSize:t,offset:i,totalSize:a});return Math.round(s*(a-o))}},{key:"getSizeAndPositionOfCell",value:function(n){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(n)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(n){var t=n.align,i=t===void 0?"auto":t,o=n.containerSize,a=n.currentOffset,s=n.targetIndex;a=this._safeOffsetToOffset({containerSize:o,offset:a});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o,currentOffset:a,targetIndex:s});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(n){var t=n.containerSize,i=n.offset;return i=this._safeOffsetToOffset({containerSize:t,offset:i}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:i})}},{key:"resetCell",value:function(n){this._cellSizeAndPositionManager.resetCell(n)}},{key:"_getOffsetPercentage",value:function(n){var t=n.containerSize,i=n.offset,o=n.totalSize;return o<=t?0:i/(o-t)}},{key:"_offsetToSafeOffset",value:function(n){var t=n.containerSize,i=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(o===a)return i;var s=this._getOffsetPercentage({containerSize:t,offset:i,totalSize:o});return Math.round(s*(a-t))}},{key:"_safeOffsetToOffset",value:function(n){var t=n.containerSize,i=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(o===a)return i;var s=this._getOffsetPercentage({containerSize:t,offset:i,totalSize:a});return Math.round(s*(o-t))}}]),e}();function ar(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r={};return function(n){var t=n.callback,i=n.indices,o=Object.keys(i),a=!e||o.every(function(l){var c=i[l];return Array.isArray(c)?c.length>0:c>=0}),s=o.length!==Object.keys(r).length||o.some(function(l){var c=r[l],u=i[l];return Array.isArray(u)?c.join(",")!==u.join(","):c!==u});r=i,a&&s&&t(i)}}var un=-1,ot=1;function Mg(e){var r=e.cellCount,n=e.overscanCellsCount,t=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return t===ot?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(r-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(r-1,o)}}function ss(e){var r=e.cellSize,n=e.cellSizeAndPositionManager,t=e.previousCellsCount,i=e.previousCellSize,o=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,f=e.size,d=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),v=u>=0&&u<h,m=f!==s||d||!i||typeof r=="number"&&r!==i;v&&(m||c!==o||u!==a)?p(u):!v&&h>0&&(f<s||h<t)&&l>n.getTotalSize()-f&&p(h-1)}function Ag(e){for(var r=e.cellCache,n=e.cellRenderer,t=e.columnSizeAndPositionManager,i=e.columnStartIndex,o=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,f=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,v=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,y=e.visibleRowIndices,b=[],C=t.areOffsetsAdjusted()||f.areOffsetsAdjusted(),D=!l&&!C,P=d;P<=p;P++)for(var w=f.getSizeAndPositionOfCell(P),_=i;_<=o;_++){var S=t.getSizeAndPositionOfCell(_),R=_>=m.start&&_<=m.stop&&P>=y.start&&P<=y.stop,T="".concat(P,"-").concat(_),O=void 0;D&&h[T]?O=h[T]:a&&!a.has(P,_)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:w.size,left:S.offset+s,position:"absolute",top:w.offset+v,width:S.size},h[T]=O);var L={columnIndex:_,isScrolling:l,isVisible:R,key:T,parent:u,rowIndex:P,style:O},M=void 0;(c||l)&&!s&&!v?(r[T]||(r[T]=n(L)),M=r[T]):M=n(L),!(M==null||M===!1)&&b.push(M)}return b}const Lg=!!(typeof window<"u"&&window.document&&window.document.createElement);var dn;function Ji(e){if((!dn&&dn!==0||e)&&Lg){var r=document.createElement("div");r.style.position="absolute",r.style.top="-9999px",r.style.width="50px",r.style.height="50px",r.style.overflow="scroll",document.body.appendChild(r),dn=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return dn}var Ae;typeof window<"u"?Ae=window:typeof self<"u"?Ae=self:Ae={};var zg=Ae.requestAnimationFrame||Ae.webkitRequestAnimationFrame||Ae.mozRequestAnimationFrame||Ae.oRequestAnimationFrame||Ae.msRequestAnimationFrame||function(e){return Ae.setTimeout(e,1e3/60)},jg=Ae.cancelAnimationFrame||Ae.webkitCancelAnimationFrame||Ae.mozCancelAnimationFrame||Ae.oCancelAnimationFrame||Ae.msCancelAnimationFrame||function(e){Ae.clearTimeout(e)},ls=zg,Fg=jg,sr=function(r){return Fg(r.id)},No=function(r,n){var t;Promise.resolve().then(function(){t=Date.now()});var i=function a(){Date.now()-t>=n?r.call():o.id=ls(a)},o={id:ls(i)};return o},cs,us;function ds(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function Dt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ds(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bg=150,gi={OBSERVED:"observed",REQUESTED:"requested"},Gg=function(){return null},ht=(us=cs=function(e){Ue(r,e);function r(n){var t;Ie(this,r),t=qe(this,Ve(r).call(this,n)),A(F(t),"_onGridRenderedMemoizer",ar()),A(F(t),"_onScrollMemoizer",ar(!1)),A(F(t),"_deferredInvalidateColumnIndex",null),A(F(t),"_deferredInvalidateRowIndex",null),A(F(t),"_recomputeScrollLeftFlag",!1),A(F(t),"_recomputeScrollTopFlag",!1),A(F(t),"_horizontalScrollBarSize",0),A(F(t),"_verticalScrollBarSize",0),A(F(t),"_scrollbarPresenceChanged",!1),A(F(t),"_scrollingContainer",void 0),A(F(t),"_childrenToDisplay",void 0),A(F(t),"_columnStartIndex",void 0),A(F(t),"_columnStopIndex",void 0),A(F(t),"_rowStartIndex",void 0),A(F(t),"_rowStopIndex",void 0),A(F(t),"_renderedColumnStartIndex",0),A(F(t),"_renderedColumnStopIndex",0),A(F(t),"_renderedRowStartIndex",0),A(F(t),"_renderedRowStopIndex",0),A(F(t),"_initialScrollTop",void 0),A(F(t),"_initialScrollLeft",void 0),A(F(t),"_disablePointerEventsTimeoutId",void 0),A(F(t),"_styleCache",{}),A(F(t),"_cellCache",{}),A(F(t),"_debounceScrollEndedCallback",function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})}),A(F(t),"_invokeOnGridRenderedHelper",function(){var a=t.props.onSectionRendered;t._onGridRenderedMemoizer({callback:a,indices:{columnOverscanStartIndex:t._columnStartIndex,columnOverscanStopIndex:t._columnStopIndex,columnStartIndex:t._renderedColumnStartIndex,columnStopIndex:t._renderedColumnStopIndex,rowOverscanStartIndex:t._rowStartIndex,rowOverscanStopIndex:t._rowStopIndex,rowStartIndex:t._renderedRowStartIndex,rowStopIndex:t._renderedRowStopIndex}})}),A(F(t),"_setScrollingContainerRef",function(a){t._scrollingContainer=a}),A(F(t),"_onScroll",function(a){a.target===t._scrollingContainer&&t.handleScrollEvent(a.target)});var i=new as({cellCount:n.columnCount,cellSizeGetter:function(s){return r._wrapSizeGetter(n.columnWidth)(s)},estimatedCellSize:r._getEstimatedColumnSize(n)}),o=new as({cellCount:n.rowCount,cellSizeGetter:function(s){return r._wrapSizeGetter(n.rowHeight)(s)},estimatedCellSize:r._getEstimatedRowSize(n)});return t.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:o,prevColumnWidth:n.columnWidth,prevRowHeight:n.rowHeight,prevColumnCount:n.columnCount,prevRowCount:n.rowCount,prevIsScrolling:n.isScrolling===!0,prevScrollToColumn:n.scrollToColumn,prevScrollToRow:n.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:ot,scrollDirectionVertical:ot,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},n.scrollToRow>0&&(t._initialScrollTop=t._getCalculatedScrollTop(n,t.state)),n.scrollToColumn>0&&(t._initialScrollLeft=t._getCalculatedScrollLeft(n,t.state)),t}return we(r,[{key:"getOffsetForCell",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.alignment,o=i===void 0?this.props.scrollToAlignment:i,a=t.columnIndex,s=a===void 0?this.props.scrollToColumn:a,l=t.rowIndex,c=l===void 0?this.props.scrollToRow:l,u=Dt({},this.props,{scrollToAlignment:o,scrollToColumn:s,scrollToRow:c});return{scrollLeft:this._getCalculatedScrollLeft(u),scrollTop:this._getCalculatedScrollTop(u)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(t){var i=t.scrollLeft,o=i===void 0?0:i,a=t.scrollTop,s=a===void 0?0:a;if(!(s<0)){this._debounceScrollEnded();var l=this.props,c=l.autoHeight,u=l.autoWidth,f=l.height,d=l.width,p=this.state.instanceProps,h=p.scrollbarSize,v=p.rowSizeAndPositionManager.getTotalSize(),m=p.columnSizeAndPositionManager.getTotalSize(),y=Math.min(Math.max(0,m-d+h),o),b=Math.min(Math.max(0,v-f+h),s);if(this.state.scrollLeft!==y||this.state.scrollTop!==b){var C=y!==this.state.scrollLeft?y>this.state.scrollLeft?ot:un:this.state.scrollDirectionHorizontal,D=b!==this.state.scrollTop?b>this.state.scrollTop?ot:un:this.state.scrollDirectionVertical,P={isScrolling:!0,scrollDirectionHorizontal:C,scrollDirectionVertical:D,scrollPositionChangeReason:gi.OBSERVED};c||(P.scrollTop=b),u||(P.scrollLeft=y),P.needToResetStyleCache=!1,this.setState(P)}this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:b,totalColumnsWidth:m,totalRowsHeight:v})}}},{key:"invalidateCellSizeAfterRender",value:function(t){var i=t.columnIndex,o=t.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,i):i,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var t=this.props,i=t.columnCount,o=t.rowCount,a=this.state.instanceProps;a.columnSizeAndPositionManager.getSizeAndPositionOfCell(i-1),a.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.columnIndex,o=i===void 0?0:i,a=t.rowIndex,s=a===void 0?0:a,l=this.props,c=l.scrollToColumn,u=l.scrollToRow,f=this.state.instanceProps;f.columnSizeAndPositionManager.resetCell(o),f.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===ot?o<=c:o>=c),this._recomputeScrollTopFlag=u>=0&&(this.state.scrollDirectionVertical===ot?s<=u:s>=u),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(t){var i=t.columnIndex,o=t.rowIndex,a=this.props.columnCount,s=this.props;a>1&&i!==void 0&&this._updateScrollLeftForScrollToColumn(Dt({},s,{scrollToColumn:i})),o!==void 0&&this._updateScrollTopForScrollToRow(Dt({},s,{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var t=this.props,i=t.getScrollbarSize,o=t.height,a=t.scrollLeft,s=t.scrollToColumn,l=t.scrollTop,c=t.scrollToRow,u=t.width,f=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),f.scrollbarSizeMeasured||this.setState(function(h){var v=Dt({},h,{needToResetStyleCache:!1});return v.instanceProps.scrollbarSize=i(),v.instanceProps.scrollbarSizeMeasured=!0,v}),typeof a=="number"&&a>=0||typeof l=="number"&&l>=0){var d=r._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:l});d&&(d.needToResetStyleCache=!1,this.setState(d))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var p=o>0&&u>0;s>=0&&p&&this._updateScrollLeftForScrollToColumn(),c>=0&&p&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:l||0,totalColumnsWidth:f.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:f.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(t,i){var o=this,a=this.props,s=a.autoHeight,l=a.autoWidth,c=a.columnCount,u=a.height,f=a.rowCount,d=a.scrollToAlignment,p=a.scrollToColumn,h=a.scrollToRow,v=a.width,m=this.state,y=m.scrollLeft,b=m.scrollPositionChangeReason,C=m.scrollTop,D=m.instanceProps;this._handleInvalidatedGridSize();var P=c>0&&t.columnCount===0||f>0&&t.rowCount===0;b===gi.REQUESTED&&(!l&&y>=0&&(y!==this._scrollingContainer.scrollLeft||P)&&(this._scrollingContainer.scrollLeft=y),!s&&C>=0&&(C!==this._scrollingContainer.scrollTop||P)&&(this._scrollingContainer.scrollTop=C));var w=(t.width===0||t.height===0)&&u>0&&v>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):ss({cellSizeAndPositionManager:D.columnSizeAndPositionManager,previousCellsCount:t.columnCount,previousCellSize:t.columnWidth,previousScrollToAlignment:t.scrollToAlignment,previousScrollToIndex:t.scrollToColumn,previousSize:t.width,scrollOffset:y,scrollToAlignment:d,scrollToIndex:p,size:v,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):ss({cellSizeAndPositionManager:D.rowSizeAndPositionManager,previousCellsCount:t.rowCount,previousCellSize:t.rowHeight,previousScrollToAlignment:t.scrollToAlignment,previousScrollToIndex:t.scrollToRow,previousSize:t.height,scrollOffset:C,scrollToAlignment:d,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),y!==i.scrollLeft||C!==i.scrollTop){var _=D.rowSizeAndPositionManager.getTotalSize(),S=D.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:C,totalColumnsWidth:S,totalRowsHeight:_})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&sr(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var t=this.props,i=t.autoContainerWidth,o=t.autoHeight,a=t.autoWidth,s=t.className,l=t.containerProps,c=t.containerRole,u=t.containerStyle,f=t.height,d=t.id,p=t.noContentRenderer,h=t.role,v=t.style,m=t.tabIndex,y=t.width,b=this.state,C=b.instanceProps,D=b.needToResetStyleCache,P=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:o?"auto":f,position:"relative",width:a?"auto":y,WebkitOverflowScrolling:"touch",willChange:"transform"};D&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var _=C.columnSizeAndPositionManager.getTotalSize(),S=C.rowSizeAndPositionManager.getTotalSize(),R=S>f?C.scrollbarSize:0,T=_>y?C.scrollbarSize:0;(T!==this._horizontalScrollBarSize||R!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),w.overflowX=_+R<=y?"hidden":"auto",w.overflowY=S+T<=f?"hidden":"auto";var O=this._childrenToDisplay,L=O.length===0&&f>0&&y>0;return I.createElement("div",K({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:et("ReactVirtualized__Grid",s),id:d,onScroll:this._onScroll,role:h,style:Dt({},w,{},v),tabIndex:m}),O.length>0&&I.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:Dt({width:i?"auto":_,height:S,maxWidth:_,maxHeight:S,overflow:"hidden",pointerEvents:P?"none":"",position:"relative"},u)},O),L&&p())}},{key:"_calculateChildrenToRender",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=t.cellRenderer,a=t.cellRangeRenderer,s=t.columnCount,l=t.deferredMeasurementCache,c=t.height,u=t.overscanColumnCount,f=t.overscanIndicesGetter,d=t.overscanRowCount,p=t.rowCount,h=t.width,v=t.isScrollingOptOut,m=i.scrollDirectionHorizontal,y=i.scrollDirectionVertical,b=i.instanceProps,C=this._initialScrollTop>0?this._initialScrollTop:i.scrollTop,D=this._initialScrollLeft>0?this._initialScrollLeft:i.scrollLeft,P=this._isScrolling(t,i);if(this._childrenToDisplay=[],c>0&&h>0){var w=b.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:D}),_=b.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:C}),S=b.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:D}),R=b.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:C});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var T=f({direction:"horizontal",cellCount:s,overscanCellsCount:u,scrollDirection:m,startIndex:typeof w.start=="number"?w.start:0,stopIndex:typeof w.stop=="number"?w.stop:-1}),O=f({direction:"vertical",cellCount:p,overscanCellsCount:d,scrollDirection:y,startIndex:typeof _.start=="number"?_.start:0,stopIndex:typeof _.stop=="number"?_.stop:-1}),L=T.overscanStartIndex,M=T.overscanStopIndex,H=O.overscanStartIndex,E=O.overscanStopIndex;if(l){if(!l.hasFixedHeight()){for(var B=H;B<=E;B++)if(!l.has(B,0)){L=0,M=s-1;break}}if(!l.hasFixedWidth()){for(var G=L;G<=M;G++)if(!l.has(0,G)){H=0,E=p-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:L,columnStopIndex:M,deferredMeasurementCache:l,horizontalOffsetAdjustment:S,isScrolling:P,isScrollingOptOut:v,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:H,rowStopIndex:E,scrollLeft:D,scrollTop:C,styleCache:this._styleCache,verticalOffsetAdjustment:R,visibleColumnIndices:w,visibleRowIndices:_}),this._columnStartIndex=L,this._columnStopIndex=M,this._rowStartIndex=H,this._rowStopIndex=E}}},{key:"_debounceScrollEnded",value:function(){var t=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&sr(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=No(this._debounceScrollEndedCallback,t)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var t=this._deferredInvalidateColumnIndex,i=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:t,rowIndex:i})}}},{key:"_invokeOnScrollMemoizer",value:function(t){var i=this,o=t.scrollLeft,a=t.scrollTop,s=t.totalColumnsWidth,l=t.totalRowsHeight;this._onScrollMemoizer({callback:function(u){var f=u.scrollLeft,d=u.scrollTop,p=i.props,h=p.height,v=p.onScroll,m=p.width;v({clientHeight:h,clientWidth:m,scrollHeight:l,scrollLeft:f,scrollTop:d,scrollWidth:s})},indices:{scrollLeft:o,scrollTop:a}})}},{key:"_isScrolling",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(t,"isScrolling")?!!t.isScrolling:!!i.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var t=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,t({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(t){var i=t.scrollLeft,o=t.scrollTop,a=r._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:o});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return r._getCalculatedScrollLeft(t,i)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=r._getScrollLeftForScrollToColumnStateUpdate(t,i);o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollTop",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return r._getCalculatedScrollTop(t,i)}},{key:"_resetStyleCache",value:function(){var t=this._styleCache,i=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var a=this._rowStartIndex;a<=this._rowStopIndex;a++)for(var s=this._columnStartIndex;s<=this._columnStopIndex;s++){var l="".concat(a,"-").concat(s);this._styleCache[l]=t[l],o&&(this._cellCache[l]=i[l])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=r._getScrollTopForScrollToRowStateUpdate(t,i);o&&(o.needToResetStyleCache=!1,this.setState(o))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var o={};t.columnCount===0&&i.scrollLeft!==0||t.rowCount===0&&i.scrollTop!==0?(o.scrollLeft=0,o.scrollTop=0):(t.scrollLeft!==i.scrollLeft&&t.scrollToColumn<0||t.scrollTop!==i.scrollTop&&t.scrollToRow<0)&&Object.assign(o,r._getScrollToPositionStateUpdate({prevState:i,scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}));var a=i.instanceProps;o.needToResetStyleCache=!1,(t.columnWidth!==a.prevColumnWidth||t.rowHeight!==a.prevRowHeight)&&(o.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:t.columnCount,estimatedCellSize:r._getEstimatedColumnSize(t),cellSizeGetter:r._wrapSizeGetter(t.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:t.rowCount,estimatedCellSize:r._getEstimatedRowSize(t),cellSizeGetter:r._wrapSizeGetter(t.rowHeight)}),(a.prevColumnCount===0||a.prevRowCount===0)&&(a.prevColumnCount=0,a.prevRowCount=0),t.autoHeight&&t.isScrolling===!1&&a.prevIsScrolling===!0&&Object.assign(o,{isScrolling:!1});var s,l;return os({cellCount:a.prevColumnCount,cellSize:typeof a.prevColumnWidth=="number"?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:t,nextCellsCount:t.columnCount,nextCellSize:typeof t.columnWidth=="number"?t.columnWidth:null,nextScrollToIndex:t.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){s=r._getScrollLeftForScrollToColumnStateUpdate(t,i)}}),os({cellCount:a.prevRowCount,cellSize:typeof a.prevRowHeight=="number"?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:t,nextCellsCount:t.rowCount,nextCellSize:typeof t.rowHeight=="number"?t.rowHeight:null,nextScrollToIndex:t.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){l=r._getScrollTopForScrollToRowStateUpdate(t,i)}}),a.prevColumnCount=t.columnCount,a.prevColumnWidth=t.columnWidth,a.prevIsScrolling=t.isScrolling===!0,a.prevRowCount=t.rowCount,a.prevRowHeight=t.rowHeight,a.prevScrollToColumn=t.scrollToColumn,a.prevScrollToRow=t.scrollToRow,a.scrollbarSize=t.getScrollbarSize(),a.scrollbarSize===void 0?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,o.instanceProps=a,Dt({},o,{},s,{},l)}},{key:"_getEstimatedColumnSize",value:function(t){return typeof t.columnWidth=="number"?t.columnWidth:t.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(t){return typeof t.rowHeight=="number"?t.rowHeight:t.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(t){var i=t.prevState,o=t.scrollLeft,a=t.scrollTop,s={scrollPositionChangeReason:gi.REQUESTED};return typeof o=="number"&&o>=0&&(s.scrollDirectionHorizontal=o>i.scrollLeft?ot:un,s.scrollLeft=o),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>i.scrollTop?ot:un,s.scrollTop=a),typeof o=="number"&&o>=0&&o!==i.scrollLeft||typeof a=="number"&&a>=0&&a!==i.scrollTop?s:{}}},{key:"_wrapSizeGetter",value:function(t){return typeof t=="function"?t:function(){return t}}},{key:"_getCalculatedScrollLeft",value:function(t,i){var o=t.columnCount,a=t.height,s=t.scrollToAlignment,l=t.scrollToColumn,c=t.width,u=i.scrollLeft,f=i.instanceProps;if(o>0){var d=o-1,p=l<0?d:Math.min(d,l),h=f.rowSizeAndPositionManager.getTotalSize(),v=f.scrollbarSizeMeasured&&h>a?f.scrollbarSize:0;return f.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-v,currentOffset:u,targetIndex:p})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(t,i){var o=i.scrollLeft,a=r._getCalculatedScrollLeft(t,i);return typeof a=="number"&&a>=0&&o!==a?r._getScrollToPositionStateUpdate({prevState:i,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(t,i){var o=t.height,a=t.rowCount,s=t.scrollToAlignment,l=t.scrollToRow,c=t.width,u=i.scrollTop,f=i.instanceProps;if(a>0){var d=a-1,p=l<0?d:Math.min(d,l),h=f.columnSizeAndPositionManager.getTotalSize(),v=f.scrollbarSizeMeasured&&h>c?f.scrollbarSize:0;return f.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:o-v,currentOffset:u,targetIndex:p})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(t,i){var o=i.scrollTop,a=r._getCalculatedScrollTop(t,i);return typeof a=="number"&&a>=0&&o!==a?r._getScrollToPositionStateUpdate({prevState:i,scrollLeft:-1,scrollTop:a}):{}}}]),r}(I.PureComponent),A(cs,"propTypes",null),us);A(ht,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:Ag,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Ji,noContentRenderer:Gg,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:Mg,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:Bg,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Qr(ht);var $g=1;function Hc(e){var r=e.cellCount,n=e.overscanCellsCount,t=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n=Math.max(1,n),t===$g?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(r-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(r-1,o+1)}}var fs,ps;function hs(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function Wg(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?hs(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Uc=(ps=fs=function(e){Ue(r,e);function r(){var n,t;Ie(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=qe(this,(n=Ve(r)).call.apply(n,[this].concat(o))),A(F(t),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),A(F(t),"_columnStartIndex",0),A(F(t),"_columnStopIndex",0),A(F(t),"_rowStartIndex",0),A(F(t),"_rowStopIndex",0),A(F(t),"_onKeyDown",function(s){var l=t.props,c=l.columnCount,u=l.disabled,f=l.mode,d=l.rowCount;if(!u){var p=t._getScrollState(),h=p.scrollToColumn,v=p.scrollToRow,m=t._getScrollState(),y=m.scrollToColumn,b=m.scrollToRow;switch(s.key){case"ArrowDown":b=Math.min(f==="cells"?b+1:t._rowStopIndex+1,d-1);break;case"ArrowLeft":y=Math.max(f==="cells"?y-1:t._columnStartIndex-1,0);break;case"ArrowRight":y=Math.min(f==="cells"?y+1:t._columnStopIndex+1,c-1);break;case"ArrowUp":b=Math.max(f==="cells"?b-1:t._rowStartIndex-1,0);break}(y!==h||b!==v)&&(s.preventDefault(),t._updateScrollState({scrollToColumn:y,scrollToRow:b}))}}),A(F(t),"_onSectionRendered",function(s){var l=s.columnStartIndex,c=s.columnStopIndex,u=s.rowStartIndex,f=s.rowStopIndex;t._columnStartIndex=l,t._columnStopIndex=c,t._rowStartIndex=u,t._rowStopIndex=f}),t}return we(r,[{key:"setScrollIndexes",value:function(t){var i=t.scrollToColumn,o=t.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:i})}},{key:"render",value:function(){var t=this.props,i=t.className,o=t.children,a=this._getScrollState(),s=a.scrollToColumn,l=a.scrollToRow;return I.createElement("div",{className:i,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:s,scrollToRow:l}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(t){var i=t.scrollToColumn,o=t.scrollToRow,a=this.props,s=a.isControlled,l=a.onScrollToChange;typeof l=="function"&&l({scrollToColumn:i,scrollToRow:o}),s||this.setState({scrollToColumn:i,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(t,i){return t.isControlled?{}:t.scrollToColumn!==i.instanceProps.prevScrollToColumn||t.scrollToRow!==i.instanceProps.prevScrollToRow?Wg({},i,{scrollToColumn:t.scrollToColumn,scrollToRow:t.scrollToRow,instanceProps:{prevScrollToColumn:t.scrollToColumn,prevScrollToRow:t.scrollToRow}}):{}}}]),r}(I.PureComponent),A(fs,"propTypes",null),ps);A(Uc,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0});Qr(Uc);function qc(e,r){var n;typeof r<"u"?n=r:typeof window<"u"?n=window:typeof self<"u"?n=self:n=Rp;var t=typeof n.document<"u"&&n.document.attachEvent;if(!t){var i=function(){var _=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(S){return n.setTimeout(S,20)};return function(S){return _(S)}}(),o=function(){var _=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(S){return _(S)}}(),a=function(S){var R=S.__resizeTriggers__,T=R.firstElementChild,O=R.lastElementChild,L=T.firstElementChild;O.scrollLeft=O.scrollWidth,O.scrollTop=O.scrollHeight,L.style.width=T.offsetWidth+1+"px",L.style.height=T.offsetHeight+1+"px",T.scrollLeft=T.scrollWidth,T.scrollTop=T.scrollHeight},s=function(S){return S.offsetWidth!=S.__resizeLast__.width||S.offsetHeight!=S.__resizeLast__.height},l=function(S){if(!(S.target.className&&typeof S.target.className.indexOf=="function"&&S.target.className.indexOf("contract-trigger")<0&&S.target.className.indexOf("expand-trigger")<0)){var R=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i(function(){s(R)&&(R.__resizeLast__.width=R.offsetWidth,R.__resizeLast__.height=R.offsetHeight,R.__resizeListeners__.forEach(function(T){T.call(R,S)}))})}},c=!1,u="",f="animationstart",d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{var v=n.document.createElement("fakeelement");if(v.style.animationName!==void 0&&(c=!0),c===!1){for(var m=0;m<d.length;m++)if(v.style[d[m]+"AnimationName"]!==void 0){h=d[m],u="-"+h.toLowerCase()+"-",f=p[m],c=!0;break}}}var y="resizeanim",b="@"+u+"keyframes "+y+" { from { opacity: 0; } to { opacity: 0; } } ",C=u+"animation: 1ms "+y+"; "}var D=function(S){if(!S.getElementById("detectElementResize")){var R=(b||"")+".resize-triggers { "+(C||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',T=S.head||S.getElementsByTagName("head")[0],O=S.createElement("style");O.id="detectElementResize",O.type="text/css",e!=null&&O.setAttribute("nonce",e),O.styleSheet?O.styleSheet.cssText=R:O.appendChild(S.createTextNode(R)),T.appendChild(O)}},P=function(S,R){if(t)S.attachEvent("onresize",R);else{if(!S.__resizeTriggers__){var T=S.ownerDocument,O=n.getComputedStyle(S);O&&O.position=="static"&&(S.style.position="relative"),D(T),S.__resizeLast__={},S.__resizeListeners__=[],(S.__resizeTriggers__=T.createElement("div")).className="resize-triggers";var L='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var M=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return L}});S.__resizeTriggers__.innerHTML=M.createHTML("")}else S.__resizeTriggers__.innerHTML=L;S.appendChild(S.__resizeTriggers__),a(S),S.addEventListener("scroll",l,!0),f&&(S.__resizeTriggers__.__animationListener__=function(E){E.animationName==y&&a(S)},S.__resizeTriggers__.addEventListener(f,S.__resizeTriggers__.__animationListener__))}S.__resizeListeners__.push(R)}},w=function(S,R){if(t)S.detachEvent("onresize",R);else if(S.__resizeListeners__.splice(S.__resizeListeners__.indexOf(R),1),!S.__resizeListeners__.length){S.removeEventListener("scroll",l,!0),S.__resizeTriggers__.__animationListener__&&(S.__resizeTriggers__.removeEventListener(f,S.__resizeTriggers__.__animationListener__),S.__resizeTriggers__.__animationListener__=null);try{S.__resizeTriggers__=!S.removeChild(S.__resizeTriggers__)}catch{}}};return{addResizeListener:P,removeResizeListener:w}}var gs,vs;function ms(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function Hg(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ms(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vc=(vs=gs=function(e){Ue(r,e);function r(){var n,t;Ie(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=qe(this,(n=Ve(r)).call.apply(n,[this].concat(o))),A(F(t),"state",{height:t.props.defaultHeight||0,width:t.props.defaultWidth||0}),A(F(t),"_parentNode",void 0),A(F(t),"_autoSizer",void 0),A(F(t),"_window",void 0),A(F(t),"_detectElementResize",void 0),A(F(t),"_onResize",function(){var s=t.props,l=s.disableHeight,c=s.disableWidth,u=s.onResize;if(t._parentNode){var f=t._parentNode.offsetHeight||0,d=t._parentNode.offsetWidth||0,p=t._window||window,h=p.getComputedStyle(t._parentNode)||{},v=parseInt(h.paddingLeft,10)||0,m=parseInt(h.paddingRight,10)||0,y=parseInt(h.paddingTop,10)||0,b=parseInt(h.paddingBottom,10)||0,C=f-y-b,D=d-v-m;(!l&&t.state.height!==C||!c&&t.state.width!==D)&&(t.setState({height:f-y-b,width:d-v-m}),u({height:f,width:d}))}}),A(F(t),"_setRef",function(s){t._autoSizer=s}),t}return we(r,[{key:"componentDidMount",value:function(){var t=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=qc(t,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var t=this.props,i=t.children,o=t.className,a=t.disableHeight,s=t.disableWidth,l=t.style,c=this.state,u=c.height,f=c.width,d={overflow:"visible"},p={};return a||(d.height=0,p.height=u),s||(d.width=0,p.width=f),I.createElement("div",{className:o,ref:this._setRef,style:Hg({},d,{},l)},i(p))}}]),r}(I.Component),A(gs,"propTypes",null),vs);A(Vc,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var bs,ys,Ug=(ys=bs=function(e){Ue(r,e);function r(){var n,t;Ie(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=qe(this,(n=Ve(r)).call.apply(n,[this].concat(o))),A(F(t),"_child",void 0),A(F(t),"_measure",function(){var s=t.props,l=s.cache,c=s.columnIndex,u=c===void 0?0:c,f=s.parent,d=s.rowIndex,p=d===void 0?t.props.index||0:d,h=t._getCellMeasurements(),v=h.height,m=h.width;(v!==l.getHeight(p,u)||m!==l.getWidth(p,u))&&(l.set(p,u,m,v),f&&typeof f.recomputeGridSize=="function"&&f.recomputeGridSize({columnIndex:u,rowIndex:p}))}),A(F(t),"_registerChild",function(s){s&&!(s instanceof Element)&&console.warn("CellMeasurer registerChild expects to be passed Element or null"),t._child=s,s&&t._maybeMeasureCell()}),t}return we(r,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var t=this.props.children;return typeof t=="function"?t({measure:this._measure,registerChild:this._registerChild}):t}},{key:"_getCellMeasurements",value:function(){var t=this.props.cache,i=this._child||Xr.findDOMNode(this);if(i&&i.ownerDocument&&i.ownerDocument.defaultView&&i instanceof i.ownerDocument.defaultView.HTMLElement){var o=i.style.width,a=i.style.height;t.hasFixedWidth()||(i.style.width="auto"),t.hasFixedHeight()||(i.style.height="auto");var s=Math.ceil(i.offsetHeight),l=Math.ceil(i.offsetWidth);return o&&(i.style.width=o),a&&(i.style.height=a),{height:s,width:l}}else return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var t=this.props,i=t.cache,o=t.columnIndex,a=o===void 0?0:o,s=t.parent,l=t.rowIndex,c=l===void 0?this.props.index||0:l;if(!i.has(c,a)){var u=this._getCellMeasurements(),f=u.height,d=u.width;i.set(c,a,d,f),s&&typeof s.invalidateCellSizeAfterRender=="function"&&s.invalidateCellSizeAfterRender({columnIndex:a,rowIndex:c})}}}]),r}(I.PureComponent),A(bs,"propTypes",null),ys);A(Ug,"__internalCellMeasurerFlag",!1);function xs(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function qg(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?xs(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vg=150,Ut={OBSERVED:"observed",REQUESTED:"requested"},Jn=function(e){Ue(r,e);function r(){var n,t;Ie(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=qe(this,(n=Ve(r)).call.apply(n,[this].concat(o))),A(F(t),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),A(F(t),"_calculateSizeAndPositionDataOnNextUpdate",!1),A(F(t),"_onSectionRenderedMemoizer",ar()),A(F(t),"_onScrollMemoizer",ar(!1)),A(F(t),"_invokeOnSectionRenderedHelper",function(){var s=t.props,l=s.cellLayoutManager,c=s.onSectionRendered;t._onSectionRenderedMemoizer({callback:c,indices:{indices:l.getLastRenderedIndices()}})}),A(F(t),"_setScrollingContainerRef",function(s){t._scrollingContainer=s}),A(F(t),"_updateScrollPositionForScrollToCell",function(){var s=t.props,l=s.cellLayoutManager,c=s.height,u=s.scrollToAlignment,f=s.scrollToCell,d=s.width,p=t.state,h=p.scrollLeft,v=p.scrollTop;if(f>=0){var m=l.getScrollPositionForCell({align:u,cellIndex:f,height:c,scrollLeft:h,scrollTop:v,width:d});(m.scrollLeft!==h||m.scrollTop!==v)&&t._setScrollPosition(m)}}),A(F(t),"_onScroll",function(s){if(s.target===t._scrollingContainer){t._enablePointerEventsAfterDelay();var l=t.props,c=l.cellLayoutManager,u=l.height,f=l.isScrollingChange,d=l.width,p=t._scrollbarSize,h=c.getTotalSize(),v=h.height,m=h.width,y=Math.max(0,Math.min(m-d+p,s.target.scrollLeft)),b=Math.max(0,Math.min(v-u+p,s.target.scrollTop));if(t.state.scrollLeft!==y||t.state.scrollTop!==b){var C=s.cancelable?Ut.OBSERVED:Ut.REQUESTED;t.state.isScrolling||f(!0),t.setState({isScrolling:!0,scrollLeft:y,scrollPositionChangeReason:C,scrollTop:b})}t._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:b,totalWidth:m,totalHeight:v})}}),t._scrollbarSize=Ji(),t._scrollbarSize===void 0?(t._scrollbarSizeMeasured=!1,t._scrollbarSize=0):t._scrollbarSizeMeasured=!0,t}return we(r,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var t=this.props,i=t.cellLayoutManager,o=t.scrollLeft,a=t.scrollToCell,s=t.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Ji(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(o>=0||s>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:s}),this._invokeOnSectionRenderedHelper();var l=i.getTotalSize(),c=l.height,u=l.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:s||0,totalHeight:c,totalWidth:u})}},{key:"componentDidUpdate",value:function(t,i){var o=this.props,a=o.height,s=o.scrollToAlignment,l=o.scrollToCell,c=o.width,u=this.state,f=u.scrollLeft,d=u.scrollPositionChangeReason,p=u.scrollTop;d===Ut.REQUESTED&&(f>=0&&f!==i.scrollLeft&&f!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=f),p>=0&&p!==i.scrollTop&&p!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=p)),(a!==t.height||s!==t.scrollToAlignment||l!==t.scrollToCell||c!==t.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var t=this.props,i=t.autoHeight,o=t.cellCount,a=t.cellLayoutManager,s=t.className,l=t.height,c=t.horizontalOverscanSize,u=t.id,f=t.noContentRenderer,d=t.style,p=t.verticalOverscanSize,h=t.width,v=this.state,m=v.isScrolling,y=v.scrollLeft,b=v.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var C=a.getTotalSize(),D=C.height,P=C.width,w=Math.max(0,y-c),_=Math.max(0,b-p),S=Math.min(P,y+h+c),R=Math.min(D,b+l+p),T=l>0&&h>0?a.cellRenderers({height:R-_,isScrolling:m,width:S-w,x:w,y:_}):[],O={boxSizing:"border-box",direction:"ltr",height:i?"auto":l,position:"relative",WebkitOverflowScrolling:"touch",width:h,willChange:"transform"},L=D>l?this._scrollbarSize:0,M=P>h?this._scrollbarSize:0;return O.overflowX=P+L<=h?"hidden":"auto",O.overflowY=D+M<=l?"hidden":"auto",I.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:et("ReactVirtualized__Collection",s),id:u,onScroll:this._onScroll,role:"grid",style:qg({},O,{},d),tabIndex:0},o>0&&I.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:D,maxHeight:D,maxWidth:P,overflow:"hidden",pointerEvents:m?"none":"",width:P}},T),o===0&&f())}},{key:"_enablePointerEventsAfterDelay",value:function(){var t=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var i=t.props.isScrollingChange;i(!1),t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1})},Vg)}},{key:"_invokeOnScrollMemoizer",value:function(t){var i=this,o=t.scrollLeft,a=t.scrollTop,s=t.totalHeight,l=t.totalWidth;this._onScrollMemoizer({callback:function(u){var f=u.scrollLeft,d=u.scrollTop,p=i.props,h=p.height,v=p.onScroll,m=p.width;v({clientHeight:h,clientWidth:m,scrollHeight:s,scrollLeft:f,scrollTop:d,scrollWidth:l})},indices:{scrollLeft:o,scrollTop:a}})}},{key:"_setScrollPosition",value:function(t){var i=t.scrollLeft,o=t.scrollTop,a={scrollPositionChangeReason:Ut.REQUESTED};i>=0&&(a.scrollLeft=i),o>=0&&(a.scrollTop=o),(i>=0&&i!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(a)}}],[{key:"getDerivedStateFromProps",value:function(t,i){return t.cellCount===0&&(i.scrollLeft!==0||i.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Ut.REQUESTED}:t.scrollLeft!==i.scrollLeft||t.scrollTop!==i.scrollTop?{scrollLeft:t.scrollLeft!=null?t.scrollLeft:i.scrollLeft,scrollTop:t.scrollTop!=null?t.scrollTop:i.scrollTop,scrollPositionChangeReason:Ut.REQUESTED}:null}}]),r}(I.PureComponent);A(Jn,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0});Jn.propTypes={};Qr(Jn);var Kg=function(){function e(r){var n=r.height,t=r.width,i=r.x,o=r.y;Ie(this,e),this.height=n,this.width=t,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return we(e,[{key:"addCellIndex",value:function(n){var t=n.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),Yg=100,Jg=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yg;Ie(this,e),this._sectionSize=r,this._cellMetadata=[],this._sections={}}return we(e,[{key:"getCellIndices",value:function(n){var t=n.height,i=n.width,o=n.x,a=n.y,s={};return this.getSections({height:t,width:i,x:o,y:a}).forEach(function(l){return l.getCellIndices().forEach(function(c){s[c]=c})}),Object.keys(s).map(function(l){return s[l]})}},{key:"getCellMetadata",value:function(n){var t=n.index;return this._cellMetadata[t]}},{key:"getSections",value:function(n){for(var t=n.height,i=n.width,o=n.x,a=n.y,s=Math.floor(o/this._sectionSize),l=Math.floor((o+i-1)/this._sectionSize),c=Math.floor(a/this._sectionSize),u=Math.floor((a+t-1)/this._sectionSize),f=[],d=s;d<=l;d++)for(var p=c;p<=u;p++){var h="".concat(d,".").concat(p);this._sections[h]||(this._sections[h]=new Kg({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),f.push(this._sections[h])}return f}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var n=this;return Object.keys(this._sections).map(function(t){return n._sections[t].toString()})}},{key:"registerCell",value:function(n){var t=n.cellMetadatum,i=n.index;this._cellMetadata[i]=t,this.getSections(t).forEach(function(o){return o.addCellIndex({index:i})})}}]),e}();function Xg(e){for(var r=e.cellCount,n=e.cellSizeAndPositionGetter,t=e.sectionSize,i=[],o=new Jg(t),a=0,s=0,l=0;l<r;l++){var c=n({index:l});if(c.height==null||isNaN(c.height)||c.width==null||isNaN(c.width)||c.x==null||isNaN(c.x)||c.y==null||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(l,`:
|
|
11
|
-
x:`).concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));a=Math.max(a,c.y+c.height),s=Math.max(s,c.x+c.width),i[l]=c,o.registerCell({cellMetadatum:c,index:l})}return{cellMetadata:i,height:a,sectionManager:o,width:s}}function Ss(e){var r=e.align,n=r===void 0?"auto":r,t=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,s=t,l=s-o+i;switch(n){case"start":return s;case"end":return l;case"center":return s-(o-i)/2;default:return Math.max(l,Math.min(s,a))}}var Kc=function(e){Ue(r,e);function r(n,t){var i;return Ie(this,r),i=qe(this,Ve(r).call(this,n,t)),i._cellMetadata=[],i._lastRenderedCellIndices=[],i._cellCache=[],i._isScrollingChange=i._isScrollingChange.bind(F(i)),i._setCollectionViewRef=i._setCollectionViewRef.bind(F(i)),i}return we(r,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var t=K({},this.props);return I.createElement(Jn,K({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},t))}},{key:"calculateSizeAndPositionData",value:function(){var t=this.props,i=t.cellCount,o=t.cellSizeAndPositionGetter,a=t.sectionSize,s=Xg({cellCount:i,cellSizeAndPositionGetter:o,sectionSize:a});this._cellMetadata=s.cellMetadata,this._sectionManager=s.sectionManager,this._height=s.height,this._width=s.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(t){var i=t.align,o=t.cellIndex,a=t.height,s=t.scrollLeft,l=t.scrollTop,c=t.width,u=this.props.cellCount;if(o>=0&&o<u){var f=this._cellMetadata[o];s=Ss({align:i,cellOffset:f.x,cellSize:f.width,containerSize:c,currentOffset:s}),l=Ss({align:i,cellOffset:f.y,cellSize:f.height,containerSize:a,currentOffset:l})}return{scrollLeft:s,scrollTop:l}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(t){var i=this,o=t.height,a=t.isScrolling,s=t.width,l=t.x,c=t.y,u=this.props,f=u.cellGroupRenderer,d=u.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:s,x:l,y:c}),f({cellCache:this._cellCache,cellRenderer:d,cellSizeAndPositionGetter:function(h){var v=h.index;return i._sectionManager.getCellMetadata({index:v})},indices:this._lastRenderedCellIndices,isScrolling:a})}},{key:"_isScrollingChange",value:function(t){t||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(t){this._collectionView=t}}]),r}(I.PureComponent);A(Kc,"defaultProps",{"aria-label":"grid",cellGroupRenderer:Qg});Kc.propTypes={};function Qg(e){var r=e.cellCache,n=e.cellRenderer,t=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map(function(a){var s=t({index:a}),l={index:a,isScrolling:o,key:a,style:{height:s.height,left:s.x,position:"absolute",top:s.y,width:s.width}};return o?(a in r||(r[a]=n(l)),r[a]):n(l)}).filter(function(a){return!!a})}function Zg(e){if(Array.isArray(e))return Oh(e)}function ev(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yc(e){return Zg(e)||ev(e)||Oc(e)||tv()}var Jc=function(e){Ue(r,e);function r(n,t){var i;return Ie(this,r),i=qe(this,Ve(r).call(this,n,t)),i._loadMoreRowsMemoizer=ar(),i._onRowsRendered=i._onRowsRendered.bind(F(i)),i._registerChild=i._registerChild.bind(F(i)),i}return we(r,[{key:"resetLoadMoreRowsCache",value:function(t){this._loadMoreRowsMemoizer=ar(),t&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){var t=this.props.children;return t({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(t){var i=this,o=this.props.loadMoreRows;t.forEach(function(a){var s=o(a);s&&s.then(function(){rv({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:a.startIndex,stopIndex:a.stopIndex})&&i._registeredChild&&iv(i._registeredChild,i._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(t){var i=t.startIndex,o=t.stopIndex;this._lastRenderedStartIndex=i,this._lastRenderedStopIndex=o,this._doStuff(i,o)}},{key:"_doStuff",value:function(t,i){var o,a=this,s=this.props,l=s.isRowLoaded,c=s.minimumBatchSize,u=s.rowCount,f=s.threshold,d=nv({isRowLoaded:l,minimumBatchSize:c,rowCount:u,startIndex:Math.max(0,t-f),stopIndex:Math.min(u-1,i+f)}),p=(o=[]).concat.apply(o,Yc(d.map(function(h){var v=h.startIndex,m=h.stopIndex;return[v,m]})));this._loadMoreRowsMemoizer({callback:function(){a._loadUnloadedRanges(d)},indices:{squashedUnloadedRanges:p}})}},{key:"_registerChild",value:function(t){this._registeredChild=t}}]),r}(I.PureComponent);A(Jc,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15});Jc.propTypes={};function rv(e){var r=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,t=e.startIndex,i=e.stopIndex;return!(t>n||i<r)}function nv(e){for(var r=e.isRowLoaded,n=e.minimumBatchSize,t=e.rowCount,i=e.startIndex,o=e.stopIndex,a=[],s=null,l=null,c=i;c<=o;c++){var u=r({index:c});u?l!==null&&(a.push({startIndex:s,stopIndex:l}),s=l=null):(l=c,s===null&&(s=c))}if(l!==null){for(var f=Math.min(Math.max(l,s+n-1),t-1),d=l+1;d<=f&&!r({index:d});d++)l=d;a.push({startIndex:s,stopIndex:l})}if(a.length)for(var p=a[0];p.stopIndex-p.startIndex+1<n&&p.startIndex>0;){var h=p.startIndex-1;if(!r({index:h}))p.startIndex=h;else break}return a}function iv(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=typeof e.recomputeGridSize=="function"?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,r):e.forceUpdate()}var ws,Cs,Xc=(Cs=ws=function(e){Ue(r,e);function r(){var n,t;Ie(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=qe(this,(n=Ve(r)).call.apply(n,[this].concat(o))),A(F(t),"Grid",void 0),A(F(t),"_cellRenderer",function(s){var l=s.parent,c=s.rowIndex,u=s.style,f=s.isScrolling,d=s.isVisible,p=s.key,h=t.props.rowRenderer,v=Object.getOwnPropertyDescriptor(u,"width");return v&&v.writable&&(u.width="100%"),h({index:c,style:u,isScrolling:f,isVisible:d,key:p,parent:l})}),A(F(t),"_setRef",function(s){t.Grid=s}),A(F(t),"_onScroll",function(s){var l=s.clientHeight,c=s.scrollHeight,u=s.scrollTop,f=t.props.onScroll;f({clientHeight:l,scrollHeight:c,scrollTop:u})}),A(F(t),"_onSectionRendered",function(s){var l=s.rowOverscanStartIndex,c=s.rowOverscanStopIndex,u=s.rowStartIndex,f=s.rowStopIndex,d=t.props.onRowsRendered;d({overscanStartIndex:l,overscanStopIndex:c,startIndex:u,stopIndex:f})}),t}return we(r,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(t){var i=t.alignment,o=t.index;if(this.Grid){var a=this.Grid.getOffsetForCell({alignment:i,rowIndex:o,columnIndex:0}),s=a.scrollTop;return s}return 0}},{key:"invalidateCellSizeAfterRender",value:function(t){var i=t.columnIndex,o=t.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:i})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.columnIndex,o=i===void 0?0:i,a=t.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:t,columnIndex:0})}},{key:"scrollToPosition",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:t})}},{key:"scrollToRow",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:t})}},{key:"render",value:function(){var t=this.props,i=t.className,o=t.noRowsRenderer,a=t.scrollToIndex,s=t.width,l=et("ReactVirtualized__List",i);return I.createElement(ht,K({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:s,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}]),r}(I.PureComponent),A(ws,"propTypes",null),Cs);A(Xc,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Hc,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function ov(e){if(Array.isArray(e))return e}function av(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var t,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,r!==0)for(;!(l=(t=o.call(n)).done)&&(s.push(t.value),s.length!==r);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function sv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lv(e,r){return ov(e)||av(e,r)||Oc(e,r)||sv()}function cv(e,r,n,t){for(var i=n+1;r<=n;){var o=r+n>>>1,a=e[o];a>=t?(i=o,n=o-1):r=o+1}return i}function uv(e,r,n,t,i){for(var o=n+1;r<=n;){var a=r+n>>>1,s=e[a];i(s,t)>=0?(o=a,n=a-1):r=a+1}return o}function dv(e,r,n,t,i){return typeof n=="function"?uv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):cv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function fv(e,r,n,t){for(var i=n+1;r<=n;){var o=r+n>>>1,a=e[o];a>t?(i=o,n=o-1):r=o+1}return i}function pv(e,r,n,t,i){for(var o=n+1;r<=n;){var a=r+n>>>1,s=e[a];i(s,t)>0?(o=a,n=a-1):r=a+1}return o}function hv(e,r,n,t,i){return typeof n=="function"?pv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):fv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function gv(e,r,n,t){for(var i=r-1;r<=n;){var o=r+n>>>1,a=e[o];a<t?(i=o,r=o+1):n=o-1}return i}function vv(e,r,n,t,i){for(var o=r-1;r<=n;){var a=r+n>>>1,s=e[a];i(s,t)<0?(o=a,r=a+1):n=a-1}return o}function mv(e,r,n,t,i){return typeof n=="function"?vv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):gv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function bv(e,r,n,t){for(var i=r-1;r<=n;){var o=r+n>>>1,a=e[o];a<=t?(i=o,r=o+1):n=o-1}return i}function yv(e,r,n,t,i){for(var o=r-1;r<=n;){var a=r+n>>>1,s=e[a];i(s,t)<=0?(o=a,r=a+1):n=a-1}return o}function xv(e,r,n,t,i){return typeof n=="function"?yv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):bv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function Sv(e,r,n,t){for(;r<=n;){var i=r+n>>>1,o=e[i];if(o===t)return i;o<=t?r=i+1:n=i-1}return-1}function wv(e,r,n,t,i){for(;r<=n;){var o=r+n>>>1,a=e[o],s=i(a,t);if(s===0)return o;s<=0?r=o+1:n=o-1}return-1}function Cv(e,r,n,t,i){return typeof n=="function"?wv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):Sv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}const En={ge:dv,gt:hv,lt:mv,le:xv,eq:Cv};var er=0,kt=1,Sn=2;function Mo(e,r,n,t,i){this.mid=e,this.left=r,this.right=n,this.leftPoints=t,this.rightPoints=i,this.count=(r?r.count:0)+(n?n.count:0)+t.length}var Zr=Mo.prototype;function vi(e,r){e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function Qc(e,r){var n=$r(r);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Is(e,r){var n=e.intervals([]);n.push(r),Qc(e,n)}function Rs(e,r){var n=e.intervals([]),t=n.indexOf(r);return t<0?er:(n.splice(t,1),Qc(e,n),kt)}Zr.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};Zr.insert=function(e){var r=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(r+1)?Is(this,e):this.left.insert(e):this.left=$r([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(r+1)?Is(this,e):this.right.insert(e):this.right=$r([e]);else{var n=En.ge(this.leftPoints,e,Ao),t=En.ge(this.rightPoints,e,Lo);this.leftPoints.splice(n,0,e),this.rightPoints.splice(t,0,e)}};Zr.remove=function(e){var r=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return er;var n=this.right?this.right.count:0;if(4*n>3*(r-1))return Rs(this,e);var t=this.left.remove(e);return t===Sn?(this.left=null,this.count-=1,kt):(t===kt&&(this.count-=1),t)}else if(e[0]>this.mid){if(!this.right)return er;var i=this.left?this.left.count:0;if(4*i>3*(r-1))return Rs(this,e);var t=this.right.remove(e);return t===Sn?(this.right=null,this.count-=1,kt):(t===kt&&(this.count-=1),t)}else{if(this.count===1)return this.leftPoints[0]===e?Sn:er;if(this.leftPoints.length===1&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,a=this.left;a.right;)o=a,a=a.right;if(o===this)a.right=this.right;else{var s=this.left,t=this.right;o.count-=a.count,o.right=a.left,a.left=s,a.right=t}vi(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?vi(this,this.left):vi(this,this.right);return kt}for(var s=En.ge(this.leftPoints,e,Ao);s<this.leftPoints.length&&this.leftPoints[s][0]===e[0];++s)if(this.leftPoints[s]===e){this.count-=1,this.leftPoints.splice(s,1);for(var t=En.ge(this.rightPoints,e,Lo);t<this.rightPoints.length&&this.rightPoints[t][1]===e[1];++t)if(this.rightPoints[t]===e)return this.rightPoints.splice(t,1),kt}return er}};function Zc(e,r,n){for(var t=0;t<e.length&&e[t][0]<=r;++t){var i=n(e[t]);if(i)return i}}function eu(e,r,n){for(var t=e.length-1;t>=0&&e[t][1]>=r;--t){var i=n(e[t]);if(i)return i}}function tu(e,r){for(var n=0;n<e.length;++n){var t=r(e[n]);if(t)return t}}Zr.queryPoint=function(e,r){if(e<this.mid){if(this.left){var n=this.left.queryPoint(e,r);if(n)return n}return Zc(this.leftPoints,e,r)}else if(e>this.mid){if(this.right){var n=this.right.queryPoint(e,r);if(n)return n}return eu(this.rightPoints,e,r)}else return tu(this.leftPoints,r)};Zr.queryInterval=function(e,r,n){if(e<this.mid&&this.left){var t=this.left.queryInterval(e,r,n);if(t)return t}if(r>this.mid&&this.right){var t=this.right.queryInterval(e,r,n);if(t)return t}return r<this.mid?Zc(this.leftPoints,r,n):e>this.mid?eu(this.rightPoints,e,n):tu(this.leftPoints,n)};function Iv(e,r){return e-r}function Ao(e,r){var n=e[0]-r[0];return n||e[1]-r[1]}function Lo(e,r){var n=e[1]-r[1];return n||e[0]-r[0]}function $r(e){if(e.length===0)return null;for(var r=[],n=0;n<e.length;++n)r.push(e[n][0],e[n][1]);r.sort(Iv);for(var t=r[r.length>>1],i=[],o=[],a=[],n=0;n<e.length;++n){var s=e[n];s[1]<t?i.push(s):t<s[0]?o.push(s):a.push(s)}var l=a,c=a.slice();return l.sort(Ao),c.sort(Lo),new Mo(t,$r(i),$r(o),l,c)}function ru(e){this.root=e}var fr=ru.prototype;fr.insert=function(e){this.root?this.root.insert(e):this.root=new Mo(e[0],null,null,[e],[e])};fr.remove=function(e){if(this.root){var r=this.root.remove(e);return r===Sn&&(this.root=null),r!==er}return!1};fr.queryPoint=function(e,r){if(this.root)return this.root.queryPoint(e,r)};fr.queryInterval=function(e,r,n){if(e<=r&&this.root)return this.root.queryInterval(e,r,n)};Object.defineProperty(fr,"count",{get:function(){return this.root?this.root.count:0}});Object.defineProperty(fr,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});function Rv(e){return new ru(null)}var mi=function(){function e(){Ie(this,e),A(this,"_columnSizeMap",{}),A(this,"_intervalTree",Rv()),A(this,"_leftMap",{})}return we(e,[{key:"estimateTotalHeight",value:function(n,t,i){var o=n-this.count;return this.tallestColumnSize+Math.ceil(o/t)*i}},{key:"range",value:function(n,t,i){var o=this;this._intervalTree.queryInterval(n,n+t,function(a){var s=lv(a,3),l=s[0];s[1];var c=s[2];return i(c,o._leftMap[c],l)})}},{key:"setPosition",value:function(n,t,i,o){this._intervalTree.insert([i,i+o,n]),this._leftMap[n]=t;var a=this._columnSizeMap,s=a[t];s===void 0?a[t]=i+o:a[t]=Math.max(s,i+o)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var n=this._columnSizeMap,t=0;for(var i in n){var o=n[i];t=t===0?o:Math.min(t,o)}return t}},{key:"tallestColumnSize",get:function(){var n=this._columnSizeMap,t=0;for(var i in n){var o=n[i];t=Math.max(t,o)}return t}}]),e}(),Ts,Ds;function _s(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function Tv(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?_s(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Dv={},_v=150,nu=(Ds=Ts=function(e){Ue(r,e);function r(){var n,t;Ie(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=qe(this,(n=Ve(r)).call.apply(n,[this].concat(o))),A(F(t),"state",{isScrolling:!1,scrollTop:0}),A(F(t),"_debounceResetIsScrollingId",void 0),A(F(t),"_invalidateOnUpdateStartIndex",null),A(F(t),"_invalidateOnUpdateStopIndex",null),A(F(t),"_positionCache",new mi),A(F(t),"_startIndex",null),A(F(t),"_startIndexMemoized",null),A(F(t),"_stopIndex",null),A(F(t),"_stopIndexMemoized",null),A(F(t),"_debounceResetIsScrollingCallback",function(){t.setState({isScrolling:!1})}),A(F(t),"_setScrollingContainerRef",function(s){t._scrollingContainer=s}),A(F(t),"_onScroll",function(s){var l=t.props.height,c=s.currentTarget.scrollTop,u=Math.min(Math.max(0,t._getEstimatedTotalHeight()-l),c);c===u&&(t._debounceResetIsScrolling(),t.state.scrollTop!==u&&t.setState({isScrolling:!0,scrollTop:u}))}),t}return we(r,[{key:"clearCellPositions",value:function(){this._positionCache=new mi,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(t){var i=t.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=i,this._invalidateOnUpdateStopIndex=i):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,i),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,i))}},{key:"recomputeCellPositions",value:function(){var t=this._positionCache.count-1;this._positionCache=new mi,this._populatePositionCache(0,t),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(t,i){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==t.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&sr(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var t=this,i=this.props,o=i.autoHeight,a=i.cellCount,s=i.cellMeasurerCache,l=i.cellRenderer,c=i.className,u=i.height,f=i.id,d=i.keyMapper,p=i.overscanByPixels,h=i.role,v=i.style,m=i.tabIndex,y=i.width,b=i.rowDirection,C=this.state,D=C.isScrolling,P=C.scrollTop,w=[],_=this._getEstimatedTotalHeight(),S=this._positionCache.shortestColumnSize,R=this._positionCache.count,T=0,O;if(this._positionCache.range(Math.max(0,P-p),u+p*2,function(H,E,B){var G;typeof O>"u"?(T=H,O=H):(T=Math.min(T,H),O=Math.max(O,H)),w.push(l({index:H,isScrolling:D,key:d(H),parent:t,style:(G={height:s.getHeight(H)},A(G,b==="ltr"?"left":"right",E),A(G,"position","absolute"),A(G,"top",B),A(G,"width",s.getWidth(H)),G)}))}),S<P+u+p&&R<a)for(var L=Math.min(a-R,Math.ceil((P+u+p-S)/s.defaultHeight*y/s.defaultWidth)),M=R;M<R+L;M++)O=M,w.push(l({index:M,isScrolling:D,key:d(M),parent:this,style:{width:s.getWidth(M)}}));return this._startIndex=T,this._stopIndex=O,I.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:et("ReactVirtualized__Masonry",c),id:f,onScroll:this._onScroll,role:h,style:Tv({boxSizing:"border-box",direction:"ltr",height:o?"auto":u,overflowX:"hidden",overflowY:_<u?"hidden":"auto",position:"relative",width:y,WebkitOverflowScrolling:"touch",willChange:"transform"},v),tabIndex:m},I.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:_,maxWidth:"100%",maxHeight:_,overflow:"hidden",pointerEvents:D?"none":"",position:"relative"}},w))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var t=this._invalidateOnUpdateStartIndex,i=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(t,i),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var t=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&sr(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=No(this._debounceResetIsScrollingCallback,t)}},{key:"_getEstimatedTotalHeight",value:function(){var t=this.props,i=t.cellCount,o=t.cellMeasurerCache,a=t.width,s=Math.max(1,Math.floor(a/o.defaultWidth));return this._positionCache.estimateTotalHeight(i,s,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var t=this.props,i=t.height,o=t.onScroll,a=this.state.scrollTop;this._onScrollMemoized!==a&&(o({clientHeight:i,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:a}),this._onScrollMemoized=a)}},{key:"_invokeOnCellsRenderedCallback",value:function(){if(this._startIndexMemoized!==this._startIndex||this._stopIndexMemoized!==this._stopIndex){var t=this.props.onCellsRendered;t({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex}}},{key:"_populatePositionCache",value:function(t,i){for(var o=this.props,a=o.cellMeasurerCache,s=o.cellPositioner,l=t;l<=i;l++){var c=s(l),u=c.left,f=c.top;this._positionCache.setPosition(l,u,f,a.getHeight(l))}}}],[{key:"getDerivedStateFromProps",value:function(t,i){return t.scrollTop!==void 0&&i.scrollTop!==t.scrollTop?{isScrolling:!0,scrollTop:t.scrollTop}:null}}]),r}(I.PureComponent),A(Ts,"propTypes",null),Ds);A(nu,"defaultProps",{autoHeight:!1,keyMapper:Pv,onCellsRendered:Ps,onScroll:Ps,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:_v,style:Dv,tabIndex:0,rowDirection:"ltr"});function Pv(e){return e}function Ps(){}Qr(nu);var bi=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ie(this,e),A(this,"_cellMeasurerCache",void 0),A(this,"_columnIndexOffset",void 0),A(this,"_rowIndexOffset",void 0),A(this,"columnWidth",function(l){var c=l.index;r._cellMeasurerCache.columnWidth({index:c+r._columnIndexOffset})}),A(this,"rowHeight",function(l){var c=l.index;r._cellMeasurerCache.rowHeight({index:c+r._rowIndexOffset})});var t=n.cellMeasurerCache,i=n.columnIndexOffset,o=i===void 0?0:i,a=n.rowIndexOffset,s=a===void 0?0:a;this._cellMeasurerCache=t,this._columnIndexOffset=o,this._rowIndexOffset=s}return we(e,[{key:"clear",value:function(n,t){this._cellMeasurerCache.clear(n+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(n+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(n+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(n+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(n,t,i,o){this._cellMeasurerCache.set(n+this._rowIndexOffset,t+this._columnIndexOffset,i,o)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function ks(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function Oe(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ks(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Os=20,zo=function(e){Ue(r,e);function r(n,t){var i;Ie(this,r),i=qe(this,Ve(r).call(this,n,t)),A(F(i),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),A(F(i),"_deferredInvalidateColumnIndex",null),A(F(i),"_deferredInvalidateRowIndex",null),A(F(i),"_bottomLeftGridRef",function(l){i._bottomLeftGrid=l}),A(F(i),"_bottomRightGridRef",function(l){i._bottomRightGrid=l}),A(F(i),"_cellRendererBottomLeftGrid",function(l){var c=l.rowIndex,u=Zt(l,["rowIndex"]),f=i.props,d=f.cellRenderer,p=f.fixedRowCount,h=f.rowCount;return c===h-p?I.createElement("div",{key:u.key,style:Oe({},u.style,{height:Os})}):d(Oe({},u,{parent:F(i),rowIndex:c+p}))}),A(F(i),"_cellRendererBottomRightGrid",function(l){var c=l.columnIndex,u=l.rowIndex,f=Zt(l,["columnIndex","rowIndex"]),d=i.props,p=d.cellRenderer,h=d.fixedColumnCount,v=d.fixedRowCount;return p(Oe({},f,{columnIndex:c+h,parent:F(i),rowIndex:u+v}))}),A(F(i),"_cellRendererTopRightGrid",function(l){var c=l.columnIndex,u=Zt(l,["columnIndex"]),f=i.props,d=f.cellRenderer,p=f.columnCount,h=f.fixedColumnCount;return c===p-h?I.createElement("div",{key:u.key,style:Oe({},u.style,{width:Os})}):d(Oe({},u,{columnIndex:c+h,parent:F(i)}))}),A(F(i),"_columnWidthRightGrid",function(l){var c=l.index,u=i.props,f=u.columnCount,d=u.fixedColumnCount,p=u.columnWidth,h=i.state,v=h.scrollbarSize,m=h.showHorizontalScrollbar;return m&&c===f-d?v:typeof p=="function"?p({index:c+d}):p}),A(F(i),"_onScroll",function(l){var c=l.scrollLeft,u=l.scrollTop;i.setState({scrollLeft:c,scrollTop:u});var f=i.props.onScroll;f&&f(l)}),A(F(i),"_onScrollbarPresenceChange",function(l){var c=l.horizontal,u=l.size,f=l.vertical,d=i.state,p=d.showHorizontalScrollbar,h=d.showVerticalScrollbar;if(c!==p||f!==h){i.setState({scrollbarSize:u,showHorizontalScrollbar:c,showVerticalScrollbar:f});var v=i.props.onScrollbarPresenceChange;typeof v=="function"&&v({horizontal:c,size:u,vertical:f})}}),A(F(i),"_onScrollLeft",function(l){var c=l.scrollLeft;i._onScroll({scrollLeft:c,scrollTop:i.state.scrollTop})}),A(F(i),"_onScrollTop",function(l){var c=l.scrollTop;i._onScroll({scrollTop:c,scrollLeft:i.state.scrollLeft})}),A(F(i),"_rowHeightBottomGrid",function(l){var c=l.index,u=i.props,f=u.fixedRowCount,d=u.rowCount,p=u.rowHeight,h=i.state,v=h.scrollbarSize,m=h.showVerticalScrollbar;return m&&c===d-f?v:typeof p=="function"?p({index:c+f}):p}),A(F(i),"_topLeftGridRef",function(l){i._topLeftGrid=l}),A(F(i),"_topRightGridRef",function(l){i._topRightGrid=l});var o=n.deferredMeasurementCache,a=n.fixedColumnCount,s=n.fixedRowCount;return i._maybeCalculateCachedStyles(!0),o&&(i._deferredMeasurementCacheBottomLeftGrid=s>0?new bi({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:s}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new bi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:s}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new bi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return we(r,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.columnIndex,o=i===void 0?0:i,a=t.rowIndex,s=a===void 0?0:a;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,s):s}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.columnIndex,o=i===void 0?0:i,a=t.rowIndex,s=a===void 0?0:a,l=this.props,c=l.fixedColumnCount,u=l.fixedRowCount,f=Math.max(0,o-c),d=Math.max(0,s-u);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:d}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:f,rowIndex:d}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:s}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:f,rowIndex:s}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var t=this.props,i=t.scrollLeft,o=t.scrollTop;if(i>0||o>0){var a={};i>0&&(a.scrollLeft=i),o>0&&(a.scrollTop=o),this.setState(a)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var t=this.props,i=t.onScroll,o=t.onSectionRendered;t.onScrollbarPresenceChange,t.scrollLeft;var a=t.scrollToColumn;t.scrollTop;var s=t.scrollToRow,l=Zt(t,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var c=this.state,u=c.scrollLeft,f=c.scrollTop;return I.createElement("div",{style:this._containerOuterStyle},I.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(Oe({},l,{onScroll:i,scrollLeft:u}))),I.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Oe({},l,{onScroll:i,scrollTop:f})),this._renderBottomRightGrid(Oe({},l,{onScroll:i,onSectionRendered:o,scrollLeft:u,scrollToColumn:a,scrollToRow:s,scrollTop:f}))))}},{key:"_getBottomGridHeight",value:function(t){var i=t.height,o=this._getTopGridHeight(t);return i-o}},{key:"_getLeftGridWidth",value:function(t){var i=t.fixedColumnCount,o=t.columnWidth;if(this._leftGridWidth==null)if(typeof o=="function"){for(var a=0,s=0;s<i;s++)a+=o({index:s});this._leftGridWidth=a}else this._leftGridWidth=o*i;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(t){var i=t.width,o=this._getLeftGridWidth(t);return i-o}},{key:"_getTopGridHeight",value:function(t){var i=t.fixedRowCount,o=t.rowHeight;if(this._topGridHeight==null)if(typeof o=="function"){for(var a=0,s=0;s<i;s++)a+=o({index:s});this._topGridHeight=a}else this._topGridHeight=o*i;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var t=this._deferredInvalidateColumnIndex,i=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:t,rowIndex:i}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(t){var i=this.props,o=i.columnWidth,a=i.enableFixedColumnScroll,s=i.enableFixedRowScroll,l=i.height,c=i.fixedColumnCount,u=i.fixedRowCount,f=i.rowHeight,d=i.style,p=i.styleBottomLeftGrid,h=i.styleBottomRightGrid,v=i.styleTopLeftGrid,m=i.styleTopRightGrid,y=i.width,b=t||l!==this._lastRenderedHeight||y!==this._lastRenderedWidth,C=t||o!==this._lastRenderedColumnWidth||c!==this._lastRenderedFixedColumnCount,D=t||u!==this._lastRenderedFixedRowCount||f!==this._lastRenderedRowHeight;(t||b||d!==this._lastRenderedStyle)&&(this._containerOuterStyle=Oe({height:l,overflow:"visible",width:y},d)),(t||b||D)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:y},this._containerBottomStyle={height:l-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:y}),(t||p!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Oe({left:0,overflowX:"hidden",overflowY:a?"auto":"hidden",position:"absolute"},p)),(t||C||h!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Oe({left:this._getLeftGridWidth(this.props),position:"absolute"},h)),(t||v!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Oe({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},v)),(t||C||m!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Oe({left:this._getLeftGridWidth(this.props),overflowX:s?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},m)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=c,this._lastRenderedFixedRowCount=u,this._lastRenderedHeight=l,this._lastRenderedRowHeight=f,this._lastRenderedStyle=d,this._lastRenderedStyleBottomLeftGrid=p,this._lastRenderedStyleBottomRightGrid=h,this._lastRenderedStyleTopLeftGrid=v,this._lastRenderedStyleTopRightGrid=m,this._lastRenderedWidth=y}},{key:"_prepareForRender",value:function(){(this._lastRenderedColumnWidth!==this.props.columnWidth||this._lastRenderedFixedColumnCount!==this.props.fixedColumnCount)&&(this._leftGridWidth=null),(this._lastRenderedFixedRowCount!==this.props.fixedRowCount||this._lastRenderedRowHeight!==this.props.rowHeight)&&(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(t){var i=t.enableFixedColumnScroll,o=t.fixedColumnCount,a=t.fixedRowCount,s=t.rowCount,l=t.hideBottomLeftGridScrollbar,c=this.state.showVerticalScrollbar;if(!o)return null;var u=c?1:0,f=this._getBottomGridHeight(t),d=this._getLeftGridWidth(t),p=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,h=l?d+p:d,v=I.createElement(ht,K({},t,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:f,onScroll:i?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,s-a)+u,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:h}));return l?I.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Oe({},this._bottomLeftGridStyle,{height:f,width:d,overflowY:"hidden"})},v):v}},{key:"_renderBottomRightGrid",value:function(t){var i=t.columnCount,o=t.fixedColumnCount,a=t.fixedRowCount,s=t.rowCount,l=t.scrollToColumn,c=t.scrollToRow;return I.createElement(ht,K({},t,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,i-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(t),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,s-a),rowHeight:this._rowHeightBottomGrid,scrollToColumn:l-o,scrollToRow:c-a,style:this._bottomRightGridStyle,width:this._getRightGridWidth(t)}))}},{key:"_renderTopLeftGrid",value:function(t){var i=t.fixedColumnCount,o=t.fixedRowCount;return!i||!o?null:I.createElement(ht,K({},t,{className:this.props.classNameTopLeftGrid,columnCount:i,height:this._getTopGridHeight(t),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(t)}))}},{key:"_renderTopRightGrid",value:function(t){var i=t.columnCount,o=t.enableFixedRowScroll,a=t.fixedColumnCount,s=t.fixedRowCount,l=t.scrollLeft,c=t.hideTopRightGridScrollbar,u=this.state,f=u.showHorizontalScrollbar,d=u.scrollbarSize;if(!s)return null;var p=f?1:0,h=this._getTopGridHeight(t),v=this._getRightGridWidth(t),m=f?d:0,y=h,b=this._topRightGridStyle;c&&(y=h+m,b=Oe({},this._topRightGridStyle,{left:0}));var C=I.createElement(ht,K({},t,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,i-a)+p,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:y,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:s,scrollLeft:l,style:b,tabIndex:null,width:v}));return c?I.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Oe({},this._topRightGridStyle,{height:h,width:v,overflowX:"hidden"})},C):C}}],[{key:"getDerivedStateFromProps",value:function(t,i){return t.scrollLeft!==i.scrollLeft||t.scrollTop!==i.scrollTop?{scrollLeft:t.scrollLeft!=null&&t.scrollLeft>=0?t.scrollLeft:i.scrollLeft,scrollTop:t.scrollTop!=null&&t.scrollTop>=0?t.scrollTop:i.scrollTop}:null}}]),r}(I.PureComponent);A(zo,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1});zo.propTypes={};Qr(zo);function kv(e){var r=e.dataKey,n=e.rowData;return typeof n.get=="function"?n.get(r):n[r]}function Ov(e){var r=e.cellData;return r==null?"":String(r)}function iu(e){var r=e.className,n=e.columns,t=e.style;return I.createElement("div",{className:r,role:"row",style:t},n)}iu.propTypes=null;var gt={ASC:"ASC",DESC:"DESC"};function ou(e){var r=e.sortDirection,n=et("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":r===gt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":r===gt.DESC});return I.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},r===gt.ASC?I.createElement("path",{d:"M7 14l5-5 5 5z"}):I.createElement("path",{d:"M7 10l5 5 5-5z"}),I.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}ou.propTypes={};function au(e){var r=e.dataKey,n=e.label,t=e.sortBy,i=e.sortDirection,o=t===r,a=[I.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof n=="string"?n:null},n)];return o&&a.push(I.createElement(ou,{key:"SortIndicator",sortDirection:i})),a}au.propTypes=null;function su(e){var r=e.className,n=e.columns,t=e.index,i=e.key,o=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,l=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,f=e.style,d={"aria-rowindex":t+1};return(o||a||s||l||c)&&(d["aria-label"]="row",d.tabIndex=0,o&&(d.onClick=function(p){return o({event:p,index:t,rowData:u})}),a&&(d.onDoubleClick=function(p){return a({event:p,index:t,rowData:u})}),s&&(d.onMouseOut=function(p){return s({event:p,index:t,rowData:u})}),l&&(d.onMouseOver=function(p){return l({event:p,index:t,rowData:u})}),c&&(d.onContextMenu=function(p){return c({event:p,index:t,rowData:u})})),I.createElement("div",K({},d,{className:r,key:i,role:"row",style:f}),n)}su.propTypes=null;var lu=function(e){Ue(r,e);function r(){return Ie(this,r),qe(this,Ve(r).apply(this,arguments))}return r}(I.Component);A(lu,"defaultProps",{cellDataGetter:kv,cellRenderer:Ov,defaultSortDirection:gt.ASC,flexGrow:0,flexShrink:1,headerRenderer:au,style:{}});lu.propTypes={};function Es(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function qt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Es(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cu=function(e){Ue(r,e);function r(n){var t;return Ie(this,r),t=qe(this,Ve(r).call(this,n)),t.state={scrollbarWidth:0},t._createColumn=t._createColumn.bind(F(t)),t._createRow=t._createRow.bind(F(t)),t._onScroll=t._onScroll.bind(F(t)),t._onSectionRendered=t._onSectionRendered.bind(F(t)),t._setRef=t._setRef.bind(F(t)),t}return we(r,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(t){var i=t.alignment,o=t.index;if(this.Grid){var a=this.Grid.getOffsetForCell({alignment:i,rowIndex:o}),s=a.scrollTop;return s}return 0}},{key:"invalidateCellSizeAfterRender",value:function(t){var i=t.columnIndex,o=t.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:i})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.columnIndex,o=i===void 0?0:i,a=t.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:t})}},{key:"scrollToPosition",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:t})}},{key:"scrollToRow",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:t})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var t=Xr.findDOMNode(this.Grid),i=t.clientWidth||0,o=t.offsetWidth||0;return o-i}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var t=this,i=this.props,o=i.children,a=i.className,s=i.disableHeader,l=i.gridClassName,c=i.gridStyle,u=i.headerHeight,f=i.headerRowRenderer,d=i.height,p=i.id,h=i.noRowsRenderer,v=i.rowClassName,m=i.rowStyle,y=i.scrollToIndex,b=i.style,C=i.width,D=this.state.scrollbarWidth,P=s?d:d-u,w=typeof v=="function"?v({index:-1}):v,_=typeof m=="function"?m({index:-1}):m;return this._cachedColumnStyles=[],I.Children.toArray(o).forEach(function(S,R){var T=t._getFlexStyleForColumn(S,S.props.style);t._cachedColumnStyles[R]=qt({overflow:"hidden"},T)}),I.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":I.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:et("ReactVirtualized__Table",a),id:p,role:"grid",style:b},!s&&f({className:et("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:qt({height:u,overflow:"hidden",paddingRight:D,width:C},_)}),I.createElement(ht,K({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:et("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:C,columnCount:1,height:P,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:D,scrollToRow:y,style:qt({},c,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(t){var i=t.column,o=t.columnIndex,a=t.isScrolling,s=t.parent,l=t.rowData,c=t.rowIndex,u=this.props.onColumnClick,f=i.props,d=f.cellDataGetter,p=f.cellRenderer,h=f.className,v=f.columnData,m=f.dataKey,y=f.id,b=d({columnData:v,dataKey:m,rowData:l}),C=p({cellData:b,columnData:v,columnIndex:o,dataKey:m,isScrolling:a,parent:s,rowData:l,rowIndex:c}),D=function(S){u&&u({columnData:v,dataKey:m,event:S})},P=this._cachedColumnStyles[o],w=typeof C=="string"?C:null;return I.createElement("div",{"aria-colindex":o+1,"aria-describedby":y,className:et("ReactVirtualized__Table__rowColumn",h),key:"Row"+c+"-Col"+o,onClick:D,role:"gridcell",style:P,title:w},C)}},{key:"_createHeader",value:function(t){var i=t.column,o=t.index,a=this.props,s=a.headerClassName,l=a.headerStyle,c=a.onHeaderClick,u=a.sort,f=a.sortBy,d=a.sortDirection,p=i.props,h=p.columnData,v=p.dataKey,m=p.defaultSortDirection,y=p.disableSort,b=p.headerRenderer,C=p.id,D=p.label,P=!y&&u,w=et("ReactVirtualized__Table__headerColumn",s,i.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:P}),_=this._getFlexStyleForColumn(i,qt({},l,{},i.props.headerStyle)),S=b({columnData:h,dataKey:v,disableSort:y,label:D,sortBy:f,sortDirection:d}),R,T,O,L,M;if(P||c){var H=f!==v,E=H?m:d===gt.DESC?gt.ASC:gt.DESC,B=function(J){P&&u({defaultSortDirection:m,event:J,sortBy:v,sortDirection:E}),c&&c({columnData:h,dataKey:v,event:J})},G=function(J){(J.key==="Enter"||J.key===" ")&&B(J)};M=i.props["aria-label"]||D||v,L="none",O=0,R=B,T=G}return f===v&&(L=d===gt.ASC?"ascending":"descending"),I.createElement("div",{"aria-label":M,"aria-sort":L,className:w,id:C,key:"Header-Col"+o,onClick:R,onKeyDown:T,role:"columnheader",style:_,tabIndex:O},S)}},{key:"_createRow",value:function(t){var i=this,o=t.rowIndex,a=t.isScrolling,s=t.key,l=t.parent,c=t.style,u=this.props,f=u.children,d=u.onRowClick,p=u.onRowDoubleClick,h=u.onRowRightClick,v=u.onRowMouseOver,m=u.onRowMouseOut,y=u.rowClassName,b=u.rowGetter,C=u.rowRenderer,D=u.rowStyle,P=this.state.scrollbarWidth,w=typeof y=="function"?y({index:o}):y,_=typeof D=="function"?D({index:o}):D,S=b({index:o}),R=I.Children.toArray(f).map(function(L,M){return i._createColumn({column:L,columnIndex:M,isScrolling:a,parent:l,rowData:S,rowIndex:o,scrollbarWidth:P})}),T=et("ReactVirtualized__Table__row",w),O=qt({},c,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:P},_);return C({className:T,columns:R,index:o,isScrolling:a,key:s,onRowClick:d,onRowDoubleClick:p,onRowRightClick:h,onRowMouseOver:v,onRowMouseOut:m,rowData:S,style:O})}},{key:"_getFlexStyleForColumn",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="".concat(t.props.flexGrow," ").concat(t.props.flexShrink," ").concat(t.props.width,"px"),a=qt({},i,{flex:o,msFlex:o,WebkitFlex:o});return t.props.maxWidth&&(a.maxWidth=t.props.maxWidth),t.props.minWidth&&(a.minWidth=t.props.minWidth),a}},{key:"_getHeaderColumns",value:function(){var t=this,i=this.props,o=i.children,a=i.disableHeader,s=a?[]:I.Children.toArray(o);return s.map(function(l,c){return t._createHeader({column:l,index:c})})}},{key:"_getRowHeight",value:function(t){var i=this.props.rowHeight;return typeof i=="function"?i({index:t}):i}},{key:"_onScroll",value:function(t){var i=t.clientHeight,o=t.scrollHeight,a=t.scrollTop,s=this.props.onScroll;s({clientHeight:i,scrollHeight:o,scrollTop:a})}},{key:"_onSectionRendered",value:function(t){var i=t.rowOverscanStartIndex,o=t.rowOverscanStopIndex,a=t.rowStartIndex,s=t.rowStopIndex,l=this.props.onRowsRendered;l({overscanStartIndex:i,overscanStopIndex:o,startIndex:a,stopIndex:s})}},{key:"_setRef",value:function(t){this.Grid=t}},{key:"_setScrollbarWidth",value:function(){var t=this.getScrollbarWidth();this.setState({scrollbarWidth:t})}}]),r}(I.PureComponent);A(cu,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Hc,overscanRowCount:10,rowRenderer:su,headerRowRenderer:iu,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});cu.propTypes={};var vt=[],Mr=null,At=null;function uu(){At&&(At=null,document.body&&Mr!=null&&(document.body.style.pointerEvents=Mr),Mr=null)}function Ev(){uu(),vt.forEach(function(e){return e.__resetIsScrolling()})}function Nv(){At&&sr(At);var e=0;vt.forEach(function(r){e=Math.max(e,r.props.scrollingResetTimeInterval)}),At=No(Ev,e)}function du(e){e.currentTarget===window&&Mr==null&&document.body&&(Mr=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Nv(),vt.forEach(function(r){r.props.scrollElement===e.currentTarget&&r.__handleWindowScrollEvent()})}function Ns(e,r){vt.some(function(n){return n.props.scrollElement===r})||r.addEventListener("scroll",du),vt.push(e)}function Ms(e,r){vt=vt.filter(function(n){return n!==e}),vt.length||(r.removeEventListener("scroll",du),At&&(sr(At),uu()))}var jo=function(r){return r===window},_r=function(r){return r.getBoundingClientRect()};function As(e,r){if(e)if(jo(e)){var n=window,t=n.innerHeight,i=n.innerWidth;return{height:typeof t=="number"?t:0,width:typeof i=="number"?i:0}}else return _r(e);else return{height:r.serverHeight,width:r.serverWidth}}function Mv(e,r){if(jo(r)&&document.documentElement){var n=document.documentElement,t=_r(e),i=_r(n);return{top:t.top-i.top,left:t.left-i.left}}else{var o=fu(r),a=_r(e),s=_r(r);return{top:a.top+o.top-s.top,left:a.left+o.left-s.left}}}function fu(e){return jo(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}var Ls,zs;function js(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function Av(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?js(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Lv=150,pu=function(){return typeof window<"u"?window:void 0},zv=(zs=Ls=function(e){Ue(r,e);function r(){var n,t;Ie(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=qe(this,(n=Ve(r)).call.apply(n,[this].concat(o))),A(F(t),"_window",pu()),A(F(t),"_isMounted",!1),A(F(t),"_positionFromTop",0),A(F(t),"_positionFromLeft",0),A(F(t),"_detectElementResize",void 0),A(F(t),"_child",void 0),A(F(t),"state",Av({},As(t.props.scrollElement,t.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),A(F(t),"_registerChild",function(s){s&&!(s instanceof Element)&&console.warn("WindowScroller registerChild expects to be passed Element or null"),t._child=s,t.updatePosition()}),A(F(t),"_onChildScroll",function(s){var l=s.scrollTop;if(t.state.scrollTop!==l){var c=t.props.scrollElement;c&&(typeof c.scrollTo=="function"?c.scrollTo(0,l+t._positionFromTop):c.scrollTop=l+t._positionFromTop)}}),A(F(t),"_registerResizeListener",function(s){s===window?window.addEventListener("resize",t._onResize,!1):t._detectElementResize.addResizeListener(s,t._onResize)}),A(F(t),"_unregisterResizeListener",function(s){s===window?window.removeEventListener("resize",t._onResize,!1):s&&t._detectElementResize.removeResizeListener(s,t._onResize)}),A(F(t),"_onResize",function(){t.updatePosition()}),A(F(t),"__handleWindowScrollEvent",function(){if(t._isMounted){var s=t.props.onScroll,l=t.props.scrollElement;if(l){var c=fu(l),u=Math.max(0,c.left-t._positionFromLeft),f=Math.max(0,c.top-t._positionFromTop);t.setState({isScrolling:!0,scrollLeft:u,scrollTop:f}),s({scrollLeft:u,scrollTop:f})}}}),A(F(t),"__resetIsScrolling",function(){t.setState({isScrolling:!1})}),t}return we(r,[{key:"updatePosition",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,i=this.props.onResize,o=this.state,a=o.height,s=o.width,l=this._child||Xr.findDOMNode(this);if(l instanceof Element&&t){var c=Mv(l,t);this._positionFromTop=c.top,this._positionFromLeft=c.left}var u=As(t,this.props);(a!==u.height||s!==u.width)&&(this.setState({height:u.height,width:u.width}),i({height:u.height,width:u.width}))}},{key:"componentDidMount",value:function(){var t=this.props.scrollElement;this._detectElementResize=qc(),this.updatePosition(t),t&&(Ns(this,t),this._registerResizeListener(t)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(t,i){var o=this.props.scrollElement,a=t.scrollElement;a!==o&&a!=null&&o!=null&&(this.updatePosition(o),Ms(this,a),Ns(this,o),this._unregisterResizeListener(a),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var t=this.props.scrollElement;t&&(Ms(this,t),this._unregisterResizeListener(t)),this._isMounted=!1}},{key:"render",value:function(){var t=this.props.children,i=this.state,o=i.isScrolling,a=i.scrollTop,s=i.scrollLeft,l=i.height,c=i.width;return t({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:l,isScrolling:o,scrollLeft:s,scrollTop:a,width:c})}}]),r}(I.PureComponent),A(Ls,"propTypes",null),zs);A(zv,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:Lv,scrollElement:pu(),serverHeight:0,serverWidth:0});function nr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nr=function(r){return typeof r}:nr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nr(e)}function en(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Fs(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function tn(e,r,n){return r&&Fs(e.prototype,r),n&&Fs(e,n),e}function jv(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function mt(){return mt=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},mt.apply(this,arguments)}function Bs(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,t)}return n}function ce(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Bs(Object(n),!0).forEach(function(t){jv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xn(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Xi(e,r)}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nt(e)}function Xi(e,r){return Xi=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},Xi(e,r)}function Fv(e,r){if(e==null)return{};var n={},t=Object.keys(e),i,o;for(o=0;o<t.length;o++)i=t[o],!(r.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Fo(e,r){if(e==null)return{};var n=Fv(e,r),t,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function at(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qn(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:at(e)}function ge(e){return Bv(e)||Gv(e)||$v()}function Bv(e){if(Array.isArray(e)){for(var r=0,n=new Array(e.length);r<e.length;r++)n[r]=e[r];return n}}function Gv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function $v(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function hu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function gu(e){function r(n){var t=this.constructor.getDerivedStateFromProps(e,n);return t??null}this.setState(r.bind(this))}function vu(e,r){try{var n=this.props,t=this.state;this.props=e,this.state=r,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,t)}finally{this.props=n,this.state=t}}hu.__suppressDeprecationWarning=!0;gu.__suppressDeprecationWarning=!0;vu.__suppressDeprecationWarning=!0;function Wv(e){var r=e.prototype;if(!r||!r.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function")return e;var n=null,t=null,i=null;if(typeof r.componentWillMount=="function"?n="componentWillMount":typeof r.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps=="function"?t="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps=="function"&&(t="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate=="function"?i="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||t!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
14
|
-
|
|
15
|
-
`+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
|
|
16
|
-
`+n:"")+(t!==null?`
|
|
17
|
-
`+t:"")+(i!==null?`
|
|
18
|
-
`+i:"")+`
|
|
19
|
-
|
|
20
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
21
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(r.componentWillMount=hu,r.componentWillReceiveProps=gu),typeof r.getSnapshotBeforeUpdate=="function"){if(typeof r.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");r.componentWillUpdate=vu;var s=r.componentDidUpdate;r.componentDidUpdate=function(c,u,f){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,c,u,d)}}return e}function mu(e){var r=e.targetIndex,n=e.node,t=e.currentIndex,i=e.getNodeKey,o=e.path,a=o===void 0?[]:o,s=e.lowerSiblingCounts,l=s===void 0?[]:s,c=e.ignoreCollapsed,u=c===void 0?!0:c,f=e.isPseudoRoot,d=f===void 0?!1:f,p=d?[]:[].concat(ge(a),[i({node:n,treeIndex:t})]);if(t===r)return{node:n,lowerSiblingCounts:l,path:p};if(!n.children||u&&n.expanded!==!0)return{nextIndex:t+1};for(var h=t+1,v=n.children.length,m=0;m<v;m+=1){var y=mu({ignoreCollapsed:u,getNodeKey:i,targetIndex:r,node:n.children[m],currentIndex:h,lowerSiblingCounts:[].concat(ge(l),[v-m-1]),path:p});if(y.node)return y;h=y.nextIndex}return{nextIndex:h}}function Bo(e){var r=e.node,n=e.ignoreCollapsed,t=n===void 0?!0:n;return mu({getNodeKey:function(){},ignoreCollapsed:t,node:r,currentIndex:0,targetIndex:-1}).nextIndex-1}function bu(e){var r=e.callback,n=e.getNodeKey,t=e.ignoreCollapsed,i=e.isPseudoRoot,o=i===void 0?!1:i,a=e.node,s=e.parentNode,l=s===void 0?null:s,c=e.currentIndex,u=e.path,f=u===void 0?[]:u,d=e.lowerSiblingCounts,p=d===void 0?[]:d,h=o?[]:[].concat(ge(f),[n({node:a,treeIndex:c})]),v=o?null:{node:a,parentNode:l,path:h,lowerSiblingCounts:p,treeIndex:c};if(!o){var m=r(v);if(m===!1)return!1}if(!a.children||a.expanded!==!0&&t&&!o)return c;var y=c,b=a.children.length;if(typeof a.children!="function"){for(var C=0;C<b;C+=1)if(y=bu({callback:r,getNodeKey:n,ignoreCollapsed:t,node:a.children[C],parentNode:o?null:a,currentIndex:y+1,lowerSiblingCounts:[].concat(ge(p),[b-C-1]),path:h}),y===!1)return!1}return y}function yu(e){var r=e.callback,n=e.getNodeKey,t=e.ignoreCollapsed,i=e.isPseudoRoot,o=i===void 0?!1:i,a=e.node,s=e.parentNode,l=s===void 0?null:s,c=e.currentIndex,u=e.path,f=u===void 0?[]:u,d=e.lowerSiblingCounts,p=d===void 0?[]:d,h=ce({},a),v=o?[]:[].concat(ge(f),[n({node:h,treeIndex:c})]),m={node:h,parentNode:l,path:v,lowerSiblingCounts:p,treeIndex:c};if(!h.children||h.expanded!==!0&&t&&!o)return{treeIndex:c,node:r(m)};var y=c,b=h.children.length;return typeof h.children!="function"&&(h.children=h.children.map(function(C,D){var P=yu({callback:r,getNodeKey:n,ignoreCollapsed:t,node:C,parentNode:o?null:h,currentIndex:y+1,lowerSiblingCounts:[].concat(ge(p),[b-D-1]),path:v});return y=P.treeIndex,P.node})),{node:r(m),treeIndex:y}}function xu(e){var r=e.treeData,n=e.getNodeKey,t=e.callback,i=e.ignoreCollapsed,o=i===void 0?!0:i;!r||r.length<1||bu({callback:t,getNodeKey:n,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:r},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function Hv(e){var r=e.treeData,n=e.getNodeKey,t=e.callback,i=e.ignoreCollapsed,o=i;return!r||r.length<1?[]:yu({callback:t,getNodeKey:n,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:r},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function Uv(e){var r=e.treeData,n=e.expanded,t=n===void 0?!0:n;return Hv({treeData:r,callback:function(o){var a=o.node;return ce(ce({},a),{},{expanded:t})},getNodeKey:function(o){var a=o.treeIndex;return a},ignoreCollapsed:!1})}function Pr(e){var r=e.treeData,n=e.path,t=e.newNode,i=e.getNodeKey,o=e.ignoreCollapsed,a=o===void 0?!0:o,s="RESULT_MISS",l=function u(f){var d=f.isPseudoRoot,p=d===void 0?!1:d,h=f.node,v=f.currentTreeIndex,m=f.pathIndex;if(!p&&i({node:h,treeIndex:v})!==n[m])return s;if(m>=n.length-1)return typeof t=="function"?t({node:h,treeIndex:v}):t;if(!h.children)throw new Error("Path referenced children of node with no children.");for(var y=v+1,b=0;b<h.children.length;b+=1){var C=u({node:h.children[b],currentTreeIndex:y,pathIndex:m+1});if(C!==s)return C?ce(ce({},h),{},{children:[].concat(ge(h.children.slice(0,b)),[C],ge(h.children.slice(b+1)))}):ce(ce({},h),{},{children:[].concat(ge(h.children.slice(0,b)),ge(h.children.slice(b+1)))});y+=1+Bo({node:h.children[b],ignoreCollapsed:a})}return s},c=l({node:{children:r},currentTreeIndex:-1,pathIndex:-1,isPseudoRoot:!0});if(c===s)throw new Error("No node found at the given path.");return c.children}function qv(e){var r=e.treeData,n=e.path,t=e.getNodeKey,i=e.ignoreCollapsed,o=i===void 0?!0:i,a=null,s=null,l=Pr({treeData:r,path:n,getNodeKey:t,ignoreCollapsed:o,newNode:function(u){var f=u.node,d=u.treeIndex;return a=f,s=d,null}});return{treeData:l,node:a,treeIndex:s}}function Su(e){var r=e.targetDepth,n=e.minimumTreeIndex,t=e.newNode,i=e.ignoreCollapsed,o=e.expandParent,a=e.isPseudoRoot,s=a===void 0?!1:a,l=e.isLastChild,c=e.node,u=e.currentIndex,f=e.currentDepth,d=e.getNodeKey,p=e.path,h=p===void 0?[]:p,v=function(E){return s?[]:[].concat(ge(h),[d({node:E,treeIndex:u})])};if(u>=n-1||l&&!(c.children&&c.children.length)){if(typeof c.children=="function")throw new Error("Cannot add to children defined by a function");var m=o?{expanded:!0}:{},y=ce(ce(ce({},c),m),{},{children:c.children?[t].concat(ge(c.children)):[t]});return{node:y,nextIndex:u+2,insertedTreeIndex:u+1,parentPath:v(y),parentNode:s?null:y}}if(f>=r-1){if(!c.children||typeof c.children=="function"||c.expanded!==!0&&i&&!s)return{node:c,nextIndex:u+1};for(var b=u+1,C=null,D=null,P=0;P<c.children.length;P+=1){if(b>=n){C=b,D=P;break}b+=1+Bo({node:c.children[P],ignoreCollapsed:i})}if(D===null){if(b<n&&!l)return{node:c,nextIndex:b};C=b,D=c.children.length}var w=ce(ce({},c),{},{children:[].concat(ge(c.children.slice(0,D)),[t],ge(c.children.slice(D)))});return{node:w,nextIndex:b,insertedTreeIndex:C,parentPath:v(w),parentNode:s?null:w}}if(!c.children||typeof c.children=="function"||c.expanded!==!0&&i&&!s)return{node:c,nextIndex:u+1};var _=null,S=null,R=null,T=u+1,O=c.children;typeof O!="function"&&(O=O.map(function(H,E){if(_!==null)return H;var B=Su({targetDepth:r,minimumTreeIndex:n,newNode:t,ignoreCollapsed:i,expandParent:o,isLastChild:l&&E===O.length-1,node:H,currentIndex:T,currentDepth:f+1,getNodeKey:d,path:[]});return"insertedTreeIndex"in B&&(_=B.insertedTreeIndex,R=B.parentNode,S=B.parentPath),T=B.nextIndex,B.node}));var L=ce(ce({},c),{},{children:O}),M={node:L,nextIndex:T};return _!==null&&(M.insertedTreeIndex=_,M.parentPath=[].concat(ge(v(L)),ge(S)),M.parentNode=R),M}function wu(e){var r=e.treeData,n=e.depth,t=e.minimumTreeIndex,i=e.newNode,o=e.getNodeKey,a=o===void 0?function(){}:o,s=e.ignoreCollapsed,l=s===void 0?!0:s,c=e.expandParent,u=c===void 0?!1:c;if(!r&&n===0)return{treeData:[i],treeIndex:0,path:[a({node:i,treeIndex:0})],parentNode:null};var f=Su({targetDepth:n,minimumTreeIndex:t,newNode:i,ignoreCollapsed:l,expandParent:u,getNodeKey:a,isPseudoRoot:!0,isLastChild:!0,node:{children:r},currentIndex:-1,currentDepth:-1});if(!("insertedTreeIndex"in f))throw new Error("No suitable position found to insert.");var d=f.insertedTreeIndex;return{treeData:f.node.children,treeIndex:d,path:[].concat(ge(f.parentPath),[a({node:i,treeIndex:d})]),parentNode:f.parentNode}}function Vv(e){var r=e.treeData,n=e.getNodeKey,t=e.ignoreCollapsed,i=t===void 0?!0:t;if(!r||r.length<1)return[];var o=[];return xu({treeData:r,getNodeKey:n,ignoreCollapsed:i,callback:function(s){o.push(s)}}),o}function Cu(e,r){return!!e.children&&typeof e.children!="function"&&e.children.some(function(n){return n===r||Cu(n,r)})}function Iu(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?typeof e.children=="function"?r+1:e.children.reduce(function(n,t){return Math.max(n,Iu(t,r+1))},r):r}function Kv(e){var r=e.getNodeKey,n=e.treeData,t=e.searchQuery,i=e.searchMethod,o=e.searchFocusOffset,a=e.expandAllMatchPaths,s=a===void 0?!1:a,l=e.expandFocusMatchPaths,c=l===void 0?!0:l,u=0,f=function p(h){var v=h.isPseudoRoot,m=v===void 0?!1:v,y=h.node,b=h.currentIndex,C=h.path,D=C===void 0?[]:C,P=[],w=!1,_=!1,S=m?[]:[].concat(ge(D),[r({node:y,treeIndex:b})]),R=m?null:{path:S,treeIndex:b},T=y.children&&typeof y.children!="function"&&y.children.length>0;!m&&i(ce(ce({},R),{},{node:y,searchQuery:t}))&&(u===o&&(_=!0),u+=1,w=!0);var O=b,L=ce({},y);return T&&(L.children=L.children.map(function(M){var H=p({node:M,currentIndex:O+1,path:S});return H.node.expanded?O=H.treeIndex:O+=1,(H.matches.length>0||H.hasFocusMatch)&&(P=[].concat(ge(P),ge(H.matches)),H.hasFocusMatch&&(_=!0),(s&&H.matches.length>0||(s||c)&&H.hasFocusMatch)&&(L.expanded=!0)),H.node})),!m&&!L.expanded&&(P=P.map(function(M){return ce(ce({},M),{},{treeIndex:null})})),w&&(P=[ce(ce({},R),{},{node:L})].concat(ge(P))),{node:P.length>0?L:y,matches:P,hasFocusMatch:_,treeIndex:O}},d=f({node:{children:n},isPseudoRoot:!0,currentIndex:-1});return{matches:d.matches,treeData:d.node.children}}function Be(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.filter(Boolean).join(" ")}function Yv(e){function r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var n=nt(e),t;if(r()){var i=nt(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Qn(this,t)}}var Go=function(e){Xn(n,e);var r=Yv(n);function n(){return en(this,n),r.apply(this,arguments)}return tn(n,[{key:"render",value:function(){var i=this.props,o=i.scaffoldBlockPxWidth,a=i.toggleChildrenVisibility,s=i.connectDragPreview,l=i.connectDragSource,c=i.isDragging,u=i.canDrop,f=i.canDrag,d=i.node,p=i.title,h=i.subtitle,v=i.draggedNode,m=i.path,y=i.treeIndex,b=i.isSearchMatch,C=i.isSearchFocus,D=i.buttons,P=i.className,w=i.style,_=i.didDrop;i.treeId,i.isOver,i.parentNode;var S=i.rowDirection,R=Fo(i,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]),T=p||d.title,O=h||d.subtitle,L=S==="rtl"?"rst__rtl":null,M;f&&(typeof d.children=="function"&&d.expanded?M=Q.createElement("div",{className:"rst__loadingHandle"},Q.createElement("div",{className:"rst__loadingCircle"},ge(new Array(12)).map(function(G,U){return Q.createElement("div",{key:U,className:Be("rst__loadingCirclePoint",L)})}))):M=l(Q.createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));var H=v&&Cu(v,d),E=!_&&c,B={left:-.5*o};return S==="rtl"&&(B={right:-.5*o}),Q.createElement("div",mt({style:{height:"100%"}},R),a&&d.children&&(d.children.length>0||typeof d.children=="function")&&Q.createElement("div",null,Q.createElement("button",{type:"button","aria-label":d.expanded?"Collapse":"Expand",className:Be(d.expanded?"rst__collapseButton":"rst__expandButton",L),style:B,onClick:function(){return a({node:d,path:m,treeIndex:y})}}),d.expanded&&!c&&Q.createElement("div",{style:{width:o},className:Be("rst__lineChildren",L)})),Q.createElement("div",{className:Be("rst__rowWrapper",L)},s(Q.createElement("div",{className:Be("rst__row",E&&"rst__rowLandingPad",E&&!u&&"rst__rowCancelPad",b&&"rst__rowSearchMatch",C&&"rst__rowSearchFocus",L,P),style:ce({opacity:H?.5:1},w)},M,Q.createElement("div",{className:Be("rst__rowContents",!f&&"rst__rowContentsDragDisabled",L)},Q.createElement("div",{className:Be("rst__rowLabel",L)},Q.createElement("span",{className:Be("rst__rowTitle",d.subtitle&&"rst__rowTitleWithSubtitle")},typeof T=="function"?T({node:d,path:m,treeIndex:y}):T),O&&Q.createElement("span",{className:"rst__rowSubtitle"},typeof O=="function"?O({node:d,path:m,treeIndex:y}):O)),Q.createElement("div",{className:"rst__rowToolbar"},D.map(function(G,U){return Q.createElement("div",{key:U,className:"rst__toolbarButton"},G)})))))))}}]),n}(I.Component);Go.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"};Go.propTypes={node:x.shape({}).isRequired,title:x.oneOfType([x.func,x.node]),subtitle:x.oneOfType([x.func,x.node]),path:x.arrayOf(x.oneOfType([x.string,x.number])).isRequired,treeIndex:x.number.isRequired,treeId:x.string.isRequired,isSearchMatch:x.bool,isSearchFocus:x.bool,canDrag:x.bool,scaffoldBlockPxWidth:x.number.isRequired,toggleChildrenVisibility:x.func,buttons:x.arrayOf(x.node),className:x.string,style:x.shape({}),connectDragPreview:x.func.isRequired,connectDragSource:x.func.isRequired,parentNode:x.shape({}),isDragging:x.bool.isRequired,didDrop:x.bool.isRequired,draggedNode:x.shape({}),isOver:x.bool.isRequired,canDrop:x.bool,rowDirection:x.string};var $o=function(r){var n=r.isOver,t=r.canDrop;return Q.createElement("div",{className:Be("rst__placeholder",t&&"rst__placeholderLandingPad",t&&!n&&"rst__placeholderCancelPad")})};$o.defaultProps={isOver:!1,canDrop:!1};$o.propTypes={isOver:x.bool,canDrop:x.bool};function Jv(e){function r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var n=nt(e),t;if(r()){var i=nt(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Qn(this,t)}}var Wo=function(e){Xn(n,e);var r=Jv(n);function n(){return en(this,n),r.apply(this,arguments)}return tn(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.listIndex,s=i.swapFrom,l=i.swapLength,c=i.swapDepth,u=i.scaffoldBlockPxWidth,f=i.lowerSiblingCounts,d=i.connectDropTarget,p=i.isOver,h=i.draggedNode,v=i.canDrop,m=i.treeIndex;i.treeId,i.getPrevRow,i.node,i.path;var y=i.rowDirection,b=Fo(i,["children","listIndex","swapFrom","swapLength","swapDepth","scaffoldBlockPxWidth","lowerSiblingCounts","connectDropTarget","isOver","draggedNode","canDrop","treeIndex","treeId","getPrevRow","node","path","rowDirection"]),C=y==="rtl"?"rst__rtl":null,D=f.length,P=[];f.forEach(function(_,S){var R="";if(_>0?a===0?R="rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":S===D-1?R="rst__lineHalfHorizontalRight rst__lineFullVertical":R="rst__lineFullVertical":a===0?R="rst__lineHalfHorizontalRight":S===D-1&&(R="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),P.push(Q.createElement("div",{key:"pre_".concat(1+S),style:{width:u},className:Be("rst__lineBlock",R,C)})),m!==a&&S===c){var T="";a===s+l-1?T="rst__highlightBottomLeftCorner":m===s?T="rst__highlightTopLeftCorner":T="rst__highlightLineVertical";var O;y==="rtl"?O={width:u,right:u*S}:O={width:u,left:u*S},P.push(Q.createElement("div",{key:S,style:O,className:Be("rst__absoluteLineBlock",T,C)}))}});var w;return y==="rtl"?w={right:u*D}:w={left:u*D},d(Q.createElement("div",mt({},b,{className:Be("rst__node",C)}),P,Q.createElement("div",{className:"rst__nodeContent",style:w},I.Children.map(o,function(_){return I.cloneElement(_,{isOver:p,canDrop:v,draggedNode:h})}))))}}]),n}(I.Component);Wo.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"};Wo.propTypes={treeIndex:x.number.isRequired,treeId:x.string.isRequired,swapFrom:x.number,swapDepth:x.number,swapLength:x.number,scaffoldBlockPxWidth:x.number.isRequired,lowerSiblingCounts:x.arrayOf(x.number).isRequired,listIndex:x.number.isRequired,children:x.node.isRequired,connectDropTarget:x.func.isRequired,isOver:x.bool.isRequired,canDrop:x.bool,draggedNode:x.shape({}),getPrevRow:x.func.isRequired,node:x.shape({}).isRequired,path:x.arrayOf(x.oneOfType([x.string,x.number])).isRequired,rowDirection:x.string};function Xv(e){function r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var n=nt(e),t;if(r()){var i=nt(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Qn(this,t)}}var Ho=function(e){Xn(n,e);var r=Xv(n);function n(){return en(this,n),r.apply(this,arguments)}return tn(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.connectDropTarget;i.treeId,i.drop;var s=Fo(i,["children","connectDropTarget","treeId","drop"]);return a(Q.createElement("div",null,I.Children.map(o,function(l){return I.cloneElement(l,ce({},s))})))}}]),n}(I.Component);Ho.defaultProps={canDrop:!1,draggedNode:null};Ho.propTypes={children:x.node.isRequired,connectDropTarget:x.func.isRequired,isOver:x.bool.isRequired,canDrop:x.bool,draggedNode:x.shape({}),treeId:x.string.isRequired,drop:x.func.isRequired};function Qv(e){var r=e.treeIndex;return r}function Ru(e){return typeof e=="string"?e:e===null||nr(e)!=="object"||!e.props||!e.props.children||typeof e.props.children!="string"&&nr(e.props.children)!=="object"?"":typeof e.props.children=="string"?e.props.children:e.props.children.map(function(r){return Ru(r)}).join("")}function Gs(e,r,n,t,i){return typeof n[e]=="function"?String(n[e]({node:n,path:t,treeIndex:i})).indexOf(r)>-1:nr(n[e])==="object"?Ru(n[e]).indexOf(r)>-1:n[e]&&String(n[e]).indexOf(r)>-1}function Zv(e){var r=e.node,n=e.path,t=e.treeIndex,i=e.searchQuery;return Gs("title",i,r,n,t)||Gs("subtitle",i,r,n,t)}var Uo=function(r){var n=[],t=[],i=null;return function(o){var a=Object.keys(o).sort(),s=a.map(function(l){return o[l]});return(s.length!==n.length||s.some(function(l,c){return l!==n[c]})||a.some(function(l,c){return l!==t[c]}))&&(n=s,t=a,i=r(o)),i}},Qi=Uo(wu),em=Uo(Vv),tm=Uo(Bo),rm=function(){function e(r){en(this,e),this.treeRef=r}return tn(e,[{key:"getTargetDepth",value:function(n,t,i){var o=0,a=n.getPrevRow();if(a){var s=a.path,l=!this.treeRef.canNodeHaveChildren(a.node);l&&(s=s.slice(0,s.length-1)),o=Math.min(s.length,n.path.length)}var c,u=(t.getItem().path||[]).length;if(t.getItem().treeId!==this.treeId)if(u=0,i){var f=Xr.findDOMNode(i).getBoundingClientRect(),d=t.getSourceClientOffset().x-f.left;c=Math.round(d/n.scaffoldBlockPxWidth)}else c=n.path.length;else{var p=n.rowDirection==="rtl"?-1:1;c=Math.round(p*t.getDifferenceFromInitialOffset().x/n.scaffoldBlockPxWidth)}var h=Math.min(o,Math.max(0,u+c-1));if(typeof this.maxDepth<"u"&&this.maxDepth!==null){var v=t.getItem().node,m=Iu(v);h=Math.max(0,Math.min(h,this.maxDepth-m-1))}return h}},{key:"canDrop",value:function(n,t){if(!t.isOver())return!1;var i=n.getPrevRow(),o=i?i.path:[],a=i?i.node:{},s=this.getTargetDepth(n,t,null);if(s>=o.length&&typeof a.children=="function")return!1;if(typeof this.customCanDrop=="function"){var l=t.getItem(),c=l.node,u=Qi({treeData:this.treeData,newNode:c,depth:s,getNodeKey:this.getNodeKey,minimumTreeIndex:n.listIndex,expandParent:!0});return this.customCanDrop({node:c,prevPath:t.getItem().path,prevParent:t.getItem().parentNode,prevTreeIndex:t.getItem().treeIndex,nextPath:u.path,nextParent:u.parentNode,nextTreeIndex:u.treeIndex})}return!0}},{key:"wrapSource",value:function(n){var t=this,i={beginDrag:function(s){return t.startDrag(s),{node:s.node,parentNode:s.parentNode,path:s.path,treeIndex:s.treeIndex,treeId:s.treeId}},endDrag:function(s,l){t.endDrag(l.getDropResult())},isDragging:function(s,l){var c=l.getItem().node,u=s.node;return u===c}};function o(a,s){return{connectDragSource:a.dragSource(),connectDragPreview:a.dragPreview(),isDragging:s.isDragging(),didDrop:s.didDrop()}}return _h(this.dndType,i,o)(n)}},{key:"wrapTarget",value:function(n){var t=this,i={drop:function(s,l,c){var u={node:l.getItem().node,path:l.getItem().path,treeIndex:l.getItem().treeIndex,treeId:t.treeId,minimumTreeIndex:s.treeIndex,depth:t.getTargetDepth(s,l,c)};return t.drop(u),u},hover:function(s,l,c){var u=t.getTargetDepth(s,l,c),f=l.getItem().node,d=s.node!==f||u!==s.path.length-1;d&&(cancelAnimationFrame(t.rafId),t.rafId=requestAnimationFrame(function(){t.dragHover({node:f,path:l.getItem().path,minimumTreeIndex:s.listIndex,depth:u})}))},canDrop:this.canDrop.bind(this)};function o(a,s){var l=s.getItem();return{connectDropTarget:a.dropTarget(),isOver:s.isOver(),canDrop:s.canDrop(),draggedNode:l?l.node:null}}return Ga(this.dndType,i,o)(n)}},{key:"wrapPlaceholder",value:function(n){var t=this,i={drop:function(s,l){var c=l.getItem(),u=c.node,f=c.path,d=c.treeIndex,p={node:u,path:f,treeIndex:d,treeId:t.treeId,minimumTreeIndex:0,depth:0};return t.drop(p),p}};function o(a,s){var l=s.getItem();return{connectDropTarget:a.dropTarget(),isOver:s.isOver(),canDrop:s.canDrop(),draggedNode:l?l.node:null}}return Ga(this.dndType,i,o)(n)}},{key:"startDrag",get:function(){return this.treeRef.startDrag}},{key:"dragHover",get:function(){return this.treeRef.dragHover}},{key:"endDrag",get:function(){return this.treeRef.endDrag}},{key:"drop",get:function(){return this.treeRef.drop}},{key:"treeId",get:function(){return this.treeRef.treeId}},{key:"dndType",get:function(){return this.treeRef.dndType}},{key:"treeData",get:function(){return this.treeRef.state.draggingTreeData||this.treeRef.props.treeData}},{key:"getNodeKey",get:function(){return this.treeRef.props.getNodeKey}},{key:"customCanDrop",get:function(){return this.treeRef.props.canDrop}},{key:"maxDepth",get:function(){return this.treeRef.props.maxDepth}}]),e}();function nm(e,r,n){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,i=[].concat(ge(e.slice(0,r)),ge(e.slice(r+t)));return[].concat(ge(i.slice(0,n)),ge(e.slice(r,r+t)),ge(i.slice(n)))}function im(e){function r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var n=nt(e),t;if(r()){var i=nt(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Qn(this,t)}}var $s=1,yi=function(r){var n=ce(ce({},r),{},{style:ce(ce({},r.theme.style),r.style),innerStyle:ce(ce({},r.theme.innerStyle),r.innerStyle),reactVirtualizedListProps:ce(ce({},r.theme.reactVirtualizedListProps),r.reactVirtualizedListProps)}),t={nodeContentRenderer:Go,placeholderRenderer:$o,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:Wo};return Object.keys(t).forEach(function(i){r[i]===null&&(n[i]=typeof r.theme[i]<"u"?r.theme[i]:t[i])}),n},Zn=function(e){Xn(n,e);var r=im(n);function n(t){var i;en(this,n),i=r.call(this,t);var o=yi(t),a=o.dndType,s=o.nodeContentRenderer,l=o.treeNodeRenderer,c=o.isVirtualized,u=o.slideRegionSize;return i.dndManager=new rm(at(i)),i.treeId="rst__".concat($s),$s+=1,i.dndType=a||i.treeId,i.nodeContentRenderer=i.dndManager.wrapSource(s),i.treePlaceholderRenderer=i.dndManager.wrapPlaceholder(Ho),i.treeNodeRenderer=i.dndManager.wrapTarget(l),c&&(i.scrollZoneVirtualList=(xn.createScrollingComponent||Tg)(Xc),i.vStrength=xn.createVerticalStrength(u),i.hStrength=xn.createHorizontalStrength(u)),i.state={draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,searchMatches:[],searchFocusTreeIndex:null,dragging:!1,instanceProps:{treeData:[],ignoreOneTreeUpdate:!1,searchQuery:null,searchFocusOffset:null}},i.toggleChildrenVisibility=i.toggleChildrenVisibility.bind(at(i)),i.moveNode=i.moveNode.bind(at(i)),i.startDrag=i.startDrag.bind(at(i)),i.dragHover=i.dragHover.bind(at(i)),i.endDrag=i.endDrag.bind(at(i)),i.drop=i.drop.bind(at(i)),i.handleDndMonitorChange=i.handleDndMonitorChange.bind(at(i)),i}return tn(n,[{key:"componentDidMount",value:function(){n.loadLazyChildren(this.props,this.state);var i=n.search(this.props,this.state,!0,!0,!1);this.setState(i),this.clearMonitorSubscription=this.props.dragDropManager.getMonitor().subscribeToStateChange(this.handleDndMonitorChange)}},{key:"componentDidUpdate",value:function(i,o){this.state.dragging!==o.dragging&&this.props.onDragStateChanged&&this.props.onDragStateChanged({isDragging:this.state.dragging,draggedNode:this.state.draggedNode})}},{key:"componentWillUnmount",value:function(){this.clearMonitorSubscription()}},{key:"getRows",value:function(i){return em({ignoreCollapsed:!0,getNodeKey:this.props.getNodeKey,treeData:i})}},{key:"handleDndMonitorChange",value:function(){var i=this.props.dragDropManager.getMonitor();!i.isDragging()&&this.state.draggingTreeData&&this.endDrag()}},{key:"toggleChildrenVisibility",value:function(i){var o=i.node,a=i.path,s=this.state.instanceProps,l=Pr({treeData:s.treeData,path:a,newNode:function(u){var f=u.node;return ce(ce({},f),{},{expanded:!f.expanded})},getNodeKey:this.props.getNodeKey});this.props.onChange(l),this.props.onVisibilityToggle({treeData:l,node:o,expanded:!o.expanded,path:a})}},{key:"moveNode",value:function(i){var o=i.node,a=i.path,s=i.treeIndex,l=i.depth,c=i.minimumTreeIndex,u=wu({treeData:this.state.draggingTreeData,newNode:o,depth:l,minimumTreeIndex:c,expandParent:!0,getNodeKey:this.props.getNodeKey}),f=u.treeData,d=u.treeIndex,p=u.path,h=u.parentNode;this.props.onChange(f),this.props.onMoveNode({treeData:f,node:o,treeIndex:d,path:p,nextPath:p,nextTreeIndex:d,prevPath:a,prevTreeIndex:s,nextParentNode:h})}},{key:"startDrag",value:function(i){var o=this,a=i.path;this.setState(function(s){var l=qv({treeData:s.instanceProps.treeData,path:a,getNodeKey:o.props.getNodeKey}),c=l.treeData,u=l.node,f=l.treeIndex;return{draggingTreeData:c,draggedNode:u,draggedDepth:a.length-1,draggedMinimumTreeIndex:f,dragging:!0}})}},{key:"dragHover",value:function(i){var o=this,a=i.node,s=i.depth,l=i.minimumTreeIndex;this.state.draggedDepth===s&&this.state.draggedMinimumTreeIndex===l||this.setState(function(c){var u=c.draggingTreeData,f=c.instanceProps,d=u||f.treeData,p=Qi({treeData:d,newNode:a,depth:s,minimumTreeIndex:l,expandParent:!0,getNodeKey:o.props.getNodeKey}),h=o.getRows(p.treeData),v=h[p.treeIndex].path;return{draggedNode:a,draggedDepth:s,draggedMinimumTreeIndex:l,draggingTreeData:Pr({treeData:d,path:v.slice(0,-1),newNode:function(y){var b=y.node;return ce(ce({},b),{},{expanded:!0})},getNodeKey:o.props.getNodeKey}),searchFocusTreeIndex:null,dragging:!0}})}},{key:"endDrag",value:function(i){var o=this,a=this.state.instanceProps,s=function(){return o.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1})};if(!i)s();else if(i.treeId!==this.treeId){var l=i.node,c=i.path,u=i.treeIndex,f=this.props.shouldCopyOnOutsideDrop;typeof f=="function"&&(f=f({node:l,prevTreeIndex:u,prevPath:c}));var d=this.state.draggingTreeData||a.treeData;f&&(d=Pr({treeData:a.treeData,path:c,newNode:function(h){var v=h.node;return ce({},v)},getNodeKey:this.props.getNodeKey})),this.props.onChange(d),this.props.onMoveNode({treeData:d,node:l,treeIndex:null,path:null,nextPath:null,nextTreeIndex:null,prevPath:c,prevTreeIndex:u})}}},{key:"drop",value:function(i){this.moveNode(i)}},{key:"canNodeHaveChildren",value:function(i){var o=this.props.canNodeHaveChildren;return o?o(i):!0}},{key:"renderRow",value:function(i,o){var a=o.listIndex,s=o.style,l=o.getPrevRow,c=o.matchKeys,u=o.swapFrom,f=o.swapDepth,d=o.swapLength,p=i.node,h=i.parentNode,v=i.path,m=i.lowerSiblingCounts,y=i.treeIndex,b=yi(this.props),C=b.canDrag,D=b.generateNodeProps,P=b.scaffoldBlockPxWidth,w=b.searchFocusOffset,_=b.rowDirection,S=this.treeNodeRenderer,R=this.nodeContentRenderer,T=v[v.length-1],O=T in c,L=O&&c[T]===w,M={node:p,parentNode:h,path:v,lowerSiblingCounts:m,treeIndex:y,isSearchMatch:O,isSearchFocus:L},H=D?D(M):{},E=typeof C!="function"?C:C(M),B={treeIndex:y,scaffoldBlockPxWidth:P,node:p,path:v,treeId:this.treeId,rowDirection:_};return Q.createElement(S,mt({style:s,key:T,listIndex:a,getPrevRow:l,lowerSiblingCounts:m,swapFrom:u,swapLength:d,swapDepth:f},B),Q.createElement(R,mt({parentNode:h,isSearchMatch:O,isSearchFocus:L,canDrag:E,toggleChildrenVisibility:this.toggleChildrenVisibility},B,H)))}},{key:"render",value:function(){var i=this,o=yi(this.props),a=o.dragDropManager,s=o.style,l=o.className,c=o.innerStyle,u=o.rowHeight,f=o.isVirtualized,d=o.placeholderRenderer,p=o.reactVirtualizedListProps,h=o.getNodeKey,v=o.rowDirection,m=this.state,y=m.searchMatches,b=m.searchFocusTreeIndex,C=m.draggedNode,D=m.draggedDepth,P=m.draggedMinimumTreeIndex,w=m.instanceProps,_=this.state.draggingTreeData||w.treeData,S=v==="rtl"?"rst__rtl":null,R,T=null,O=null;if(C&&P!==null){var L=Qi({treeData:_,newNode:C,depth:D,minimumTreeIndex:P,expandParent:!0,getNodeKey:h}),M=P;T=L.treeIndex,O=1+tm({node:C}),R=nm(this.getRows(L.treeData),T,M,O)}else R=this.getRows(_);var H={};y.forEach(function(X,Z){var q=X.path;H[q[q.length-1]]=Z});var E=b!==null?{scrollToIndex:b}:{},B=s,G;if(R.length<1){var U=this.treePlaceholderRenderer,J=d;G=Q.createElement(U,{treeId:this.treeId,drop:this.drop},Q.createElement(J,null))}else if(f){B=ce({height:"100%"},B);var ee=this.scrollZoneVirtualList;G=Q.createElement(Vc,null,function(X){var Z=X.height,q=X.width;return Q.createElement(ee,mt({},E,{dragDropManager:a,verticalStrength:i.vStrength,horizontalStrength:i.hStrength,speed:30,scrollToAlignment:"start",className:"rst__virtualScrollOverride",width:q,onScroll:function(ne){var ue=ne.scrollTop;i.scrollTop=ue},height:Z,style:c,rowCount:R.length,estimatedRowSize:typeof u!="function"?u:void 0,rowHeight:typeof u!="function"?u:function(re){var ne=re.index;return u({index:ne,treeIndex:ne,node:R[ne].node,path:R[ne].path})},rowRenderer:function(ne){var ue=ne.index,$=ne.style;return i.renderRow(R[ue],{listIndex:ue,style:$,getPrevRow:function(){return R[ue-1]||null},matchKeys:H,swapFrom:T,swapDepth:D,swapLength:O})}},p))})}else G=R.map(function(X,Z){return i.renderRow(X,{listIndex:Z,style:{height:typeof u!="function"?u:u({index:Z,treeIndex:Z,node:X.node,path:X.path})},getPrevRow:function(){return R[Z-1]||null},matchKeys:H,swapFrom:T,swapDepth:D,swapLength:O})});return Q.createElement("div",{className:Be("rst__tree",l,S),style:B},G)}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.instanceProps,s={},l=is(a.treeData,i.treeData);return a.treeData=i.treeData,l?is(a.searchQuery,i.searchQuery)?a.searchFocusOffset!==i.searchFocusOffset&&Object.assign(s,n.search(i,o,!0,!0,!0)):Object.assign(s,n.search(i,o,!0,!0,!1)):(a.ignoreOneTreeUpdate?a.ignoreOneTreeUpdate=!1:(s.searchFocusTreeIndex=null,n.loadLazyChildren(i,o),Object.assign(s,n.search(i,o,!1,!1,!1))),s.draggingTreeData=null,s.draggedNode=null,s.draggedMinimumTreeIndex=null,s.draggedDepth=null,s.dragging=!1),a.searchQuery=i.searchQuery,a.searchFocusOffset=i.searchFocusOffset,s.instanceProps=ce(ce({},a),s.instanceProps),s}},{key:"search",value:function(i,o,a,s,l){var c=i.onChange,u=i.getNodeKey,f=i.searchFinishCallback,d=i.searchQuery,p=i.searchMethod,h=i.searchFocusOffset,v=i.onlyExpandSearchedNodes,m=o.instanceProps;if(!d&&!p)return f&&f([]),{searchMatches:[]};var y={instanceProps:{}},b=Kv({getNodeKey:u,treeData:v?Uv({treeData:m.treeData,expanded:!1}):m.treeData,searchQuery:d,searchMethod:p||Zv,searchFocusOffset:h,expandAllMatchPaths:s&&!l,expandFocusMatchPaths:!!s}),C=b.treeData,D=b.matches;s&&(y.instanceProps.ignoreOneTreeUpdate=!0,c(C)),f&&f(D);var P=null;return a&&h!==null&&h<D.length&&(P=D[h].treeIndex),y.searchMatches=D,y.searchFocusTreeIndex=P,y}},{key:"loadLazyChildren",value:function(i,o){var a=o.instanceProps;xu({treeData:a.treeData,getNodeKey:i.getNodeKey,callback:function(l){var c=l.node,u=l.path,f=l.lowerSiblingCounts,d=l.treeIndex;c.children&&typeof c.children=="function"&&(c.expanded||i.loadCollapsedLazyChildren)&&c.children({node:c,path:u,lowerSiblingCounts:f,treeIndex:d,done:function(h){return i.onChange(Pr({treeData:a.treeData,path:u,newNode:function(m){var y=m.node;return y===c?ce(ce({},y),{},{children:h}):y},getNodeKey:i.getNodeKey}))}})}})}}]),n}(I.Component);Zn.propTypes={dragDropManager:x.shape({getMonitor:x.func}).isRequired,treeData:x.arrayOf(x.object).isRequired,style:x.shape({}),className:x.string,innerStyle:x.shape({}),rowHeight:x.oneOfType([x.number,x.func]),slideRegionSize:x.number,reactVirtualizedListProps:x.shape({}),scaffoldBlockPxWidth:x.number,maxDepth:x.number,searchMethod:x.func,searchQuery:x.any,searchFocusOffset:x.number,searchFinishCallback:x.func,generateNodeProps:x.func,isVirtualized:x.bool,treeNodeRenderer:x.func,nodeContentRenderer:x.func,placeholderRenderer:x.func,theme:x.shape({style:x.shape({}),innerStyle:x.shape({}),reactVirtualizedListProps:x.shape({}),scaffoldBlockPxWidth:x.number,slideRegionSize:x.number,rowHeight:x.oneOfType([x.number,x.func]),treeNodeRenderer:x.func,nodeContentRenderer:x.func,placeholderRenderer:x.func}),getNodeKey:x.func,onChange:x.func.isRequired,onMoveNode:x.func,canDrag:x.oneOfType([x.func,x.bool]),canDrop:x.func,canNodeHaveChildren:x.func,shouldCopyOnOutsideDrop:x.oneOfType([x.func,x.bool]),onVisibilityToggle:x.func,dndType:x.string,onDragStateChanged:x.func,onlyExpandSearchedNodes:x.bool,rowDirection:x.string};Zn.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:function(){return!0},className:"",dndType:null,generateNodeProps:null,getNodeKey:Qv,innerStyle:{},isVirtualized:!0,maxDepth:null,treeNodeRenderer:null,nodeContentRenderer:null,onMoveNode:function(){},onVisibilityToggle:function(){},placeholderRenderer:null,reactVirtualizedListProps:{},rowHeight:null,scaffoldBlockPxWidth:null,searchFinishCallback:null,searchFocusOffset:null,searchMethod:null,searchQuery:null,shouldCopyOnOutsideDrop:!1,slideRegionSize:null,style:{},theme:{},onDragStateChanged:function(){},onlyExpandSearchedNodes:!1,rowDirection:"ltr"};Wv(Zn);var om=function(r){return Q.createElement(Dh.Consumer,null,function(n){var t=n.dragDropManager;return t===void 0?null:Q.createElement(Zn,mt({},r,{dragDropManager:t}))})},wn={exports:{}},Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn=(typeof window>"u"?"undefined":Ws(window))==="object"&&(typeof document>"u"?"undefined":Ws(document))==="object"&&document.nodeType===9,am={}.constructor;function Zi(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Zi);if(e.constructor!==am)return e;var r={};for(var n in e)r[n]=Zi(e[n]);return r}function qo(e,r,n){e===void 0&&(e="unnamed");var t=n.jss,i=Zi(r),o=t.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Hs=function(r,n){for(var t="",i=0;i<r.length&&r[i]!=="!important";i++)t&&(t+=n),t+=r[i];return t},Lt=function(r){if(!Array.isArray(r))return r;var n="";if(Array.isArray(r[0]))for(var t=0;t<r.length&&r[t]!=="!important";t++)n&&(n+=", "),n+=Hs(r[t]," ");else n=Hs(r,", ");return r[r.length-1]==="!important"&&(n+=" !important"),n};function pr(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
22
|
-
`,space:" "}}function Sr(e,r){for(var n="",t=0;t<r;t++)n+=" ";return n+e}function Wr(e,r,n){n===void 0&&(n={});var t="";if(!r)return t;var i=n,o=i.indent,a=o===void 0?0:o,s=r.fallbacks;n.format===!1&&(a=-1/0);var l=pr(n),c=l.linebreak,u=l.space;if(e&&a++,s)if(Array.isArray(s))for(var f=0;f<s.length;f++){var d=s[f];for(var p in d){var h=d[p];h!=null&&(t&&(t+=c),t+=Sr(p+":"+u+Lt(h)+";",a))}}else for(var v in s){var m=s[v];m!=null&&(t&&(t+=c),t+=Sr(v+":"+u+Lt(m)+";",a))}for(var y in r){var b=r[y];b!=null&&y!=="fallbacks"&&(t&&(t+=c),t+=Sr(y+":"+u+Lt(b)+";",a))}return!t&&!n.allowEmpty||!e?t:(a--,t&&(t=""+c+t+c),Sr(""+e+u+"{"+t,a)+Sr("}",a))}var sm=/([[\].#*$><+~=|^:(),"'`\s])/g,Us=typeof CSS<"u"&&CSS.escape,Vo=function(e){return Us?Us(e):e.replace(sm,"\\$1")},Tu=function(){function e(n,t,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=t,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var r=e.prototype;return r.prop=function(t,i,o){if(i===void 0)return this.style[t];var a=o?o.force:!1;if(!a&&this.style[t]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,t,this));var l=s==null||s===!1,c=t in this.style;if(l&&!c&&!a)return this;var u=l&&c;if(u?delete this.style[t]:this.style[t]=s,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),eo=function(e){Un(r,e);function r(t,i,o){var a;a=e.call(this,t,i,o)||this;var s=o.selector,l=o.scoped,c=o.sheet,u=o.generateId;return s?a.selectorText=s:l!==!1&&(a.id=u(F(F(a)),c),a.selectorText="."+Vo(a.id)),a}var n=r.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=Lt(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?K({},i,{allowEmpty:!0}):i;return Wr(this.selectorText,this.style,s)},we(r,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),r}(Tu),lm={onCreateRule:function(r,n,t){return r[0]==="@"||t.parent&&t.parent.type==="keyframes"?null:new eo(r,n,t)}},xi={indent:1,children:!0},cm=/@([\w-]+)/,um=function(){function e(n,t,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(cm);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new ei(K({},i,{parent:this}));for(var a in t)this.rules.add(a,t[a]);this.rules.process()}var r=e.prototype;return r.getRule=function(t){return this.rules.get(t)},r.indexOf=function(t){return this.rules.indexOf(t)},r.addRule=function(t,i,o){var a=this.rules.add(t,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},r.replaceRule=function(t,i,o){var a=this.rules.replace(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.toString=function(t){t===void 0&&(t=xi);var i=pr(t),o=i.linebreak;if(t.indent==null&&(t.indent=xi.indent),t.children==null&&(t.children=xi.children),t.children===!1)return this.query+" {}";var a=this.rules.toString(t);return a?this.query+" {"+o+a+o+"}":""},e}(),dm=/@container|@media|@supports\s+/,fm={onCreateRule:function(r,n,t){return dm.test(r)?new um(r,n,t):null}},Si={indent:1,children:!0},pm=/@keyframes\s+([\w-]+)/,to=function(){function e(n,t,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(pm);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,l=i.generateId;this.id=a===!1?this.name:Vo(l(this,s)),this.rules=new ei(K({},i,{parent:this}));for(var c in t)this.rules.add(c,t[c],K({},i,{parent:this}));this.rules.process()}var r=e.prototype;return r.toString=function(t){t===void 0&&(t=Si);var i=pr(t),o=i.linebreak;if(t.indent==null&&(t.indent=Si.indent),t.children==null&&(t.children=Si.children),t.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(t);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},e}(),hm=/@keyframes\s+/,gm=/\$([\w-]+)/g,ro=function(r,n){return typeof r=="string"?r.replace(gm,function(t,i){return i in n?n[i]:t}):r},qs=function(r,n,t){var i=r[n],o=ro(i,t);o!==i&&(r[n]=o)},vm={onCreateRule:function(r,n,t){return typeof r=="string"&&hm.test(r)?new to(r,n,t):null},onProcessStyle:function(r,n,t){return n.type!=="style"||!t||("animation-name"in r&&qs(r,"animation-name",t.keyframes),"animation"in r&&qs(r,"animation",t.keyframes)),r},onChangeValue:function(r,n,t){var i=t.options.sheet;if(!i)return r;switch(n){case"animation":return ro(r,i.keyframes);case"animation-name":return ro(r,i.keyframes);default:return r}}},mm=function(e){Un(r,e);function r(){return e.apply(this,arguments)||this}var n=r.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?K({},i,{allowEmpty:!0}):i;return Wr(this.key,this.style,s)},r}(Tu),bm={onCreateRule:function(r,n,t){return t.parent&&t.parent.type==="keyframes"?new mm(r,n,t):null}},ym=function(){function e(n,t,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=t,this.options=i}var r=e.prototype;return r.toString=function(t){var i=pr(t),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=Wr(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return Wr(this.at,this.style,t)},e}(),xm=/@font-face/,Sm={onCreateRule:function(r,n,t){return xm.test(r)?new ym(r,n,t):null}},wm=function(){function e(n,t,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=t,this.options=i}var r=e.prototype;return r.toString=function(t){return Wr(this.key,this.style,t)},e}(),Cm={onCreateRule:function(r,n,t){return r==="@viewport"||r==="@-ms-viewport"?new wm(r,n,t):null}},Im=function(){function e(n,t,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=t,this.options=i}var r=e.prototype;return r.toString=function(t){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
|
|
23
|
-
`);return i}return this.key+" "+this.value+";"},e}(),Rm={"@charset":!0,"@import":!0,"@namespace":!0},Tm={onCreateRule:function(r,n,t){return r in Rm?new Im(r,n,t):null}},Vs=[lm,fm,vm,bm,Sm,Cm,Tm],Dm={process:!0},Ks={force:!0,process:!0},ei=function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var r=e.prototype;return r.add=function(t,i,o){var a=this.options,s=a.parent,l=a.sheet,c=a.jss,u=a.Renderer,f=a.generateId,d=a.scoped,p=K({classes:this.classes,parent:s,sheet:l,jss:c,Renderer:u,generateId:f,scoped:d,name:t,keyframes:this.keyframes,selector:void 0},o),h=t;t in this.raw&&(h=t+"-d"+this.counter++),this.raw[h]=i,h in this.classes&&(p.selector="."+Vo(this.classes[h]));var v=qo(h,i,p);if(!v)return null;this.register(v);var m=p.index===void 0?this.index.length:p.index;return this.index.splice(m,0,v),v},r.replace=function(t,i,o){var a=this.get(t),s=this.index.indexOf(a);a&&this.remove(a);var l=o;return s!==-1&&(l=K({},o,{index:s})),this.add(t,i,l)},r.get=function(t){return this.map[t]},r.remove=function(t){this.unregister(t),delete this.raw[t.key],this.index.splice(this.index.indexOf(t),1)},r.indexOf=function(t){return this.index.indexOf(t)},r.process=function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)},r.register=function(t){this.map[t.key]=t,t instanceof eo?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof to&&this.keyframes&&(this.keyframes[t.name]=t.id)},r.unregister=function(t){delete this.map[t.key],t instanceof eo?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof to&&delete this.keyframes[t.name]},r.update=function(){var t,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(t=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],t=null),t)this.updateOne(this.get(t),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},r.updateOne=function(t,i,o){o===void 0&&(o=Dm);var a=this.options,s=a.jss.plugins,l=a.sheet;if(t.rules instanceof e){t.rules.update(i,o);return}var c=t.style;if(s.onUpdate(i,t,l,o),o.process&&c&&c!==t.style){s.onProcessStyle(t.style,t,l);for(var u in t.style){var f=t.style[u],d=c[u];f!==d&&t.prop(u,f,Ks)}for(var p in c){var h=t.style[p],v=c[p];h==null&&h!==v&&t.prop(p,null,Ks)}}},r.toString=function(t){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=pr(t),l=s.linebreak,c=0;c<this.index.length;c++){var u=this.index[c],f=u.toString(t);!f&&!a||(i&&(i+=l),i+=f)}return i},e}(),Du=function(){function e(n,t){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=K({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ei(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var r=e.prototype;return r.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},r.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},r.addRule=function(t,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(t,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},r.replaceRule=function(t,i,o){var a=this.rules.get(t);if(!a)return this.addRule(t,i,o);var s=this.rules.replace(t,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},r.insertRule=function(t){this.renderer&&this.renderer.insertRule(t)},r.addRules=function(t,i){var o=[];for(var a in t){var s=this.addRule(a,t[a],i);s&&o.push(s)}return o},r.getRule=function(t){return this.rules.get(t)},r.deleteRule=function(t){var i=typeof t=="object"?t:this.rules.get(t);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},r.indexOf=function(t){return this.rules.indexOf(t)},r.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},r.update=function(){var t;return(t=this.rules).update.apply(t,arguments),this},r.updateOne=function(t,i,o){return this.rules.updateOne(t,i,o),this},r.toString=function(t){return this.rules.toString(t)},e}(),_m=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var r=e.prototype;return r.onCreateRule=function(t,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](t,i,o);if(s)return s}return null},r.onProcessRule=function(t){if(!t.isProcessed){for(var i=t.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](t,i);t.style&&this.onProcessStyle(t.style,t,i),t.isProcessed=!0}},r.onProcessStyle=function(t,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},r.onProcessSheet=function(t){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](t)},r.onUpdate=function(t,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](t,i,o,a)},r.onChangeValue=function(t,i,o){for(var a=t,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},r.use=function(t,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(t)===-1&&(o.push(t),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var l in s)l in a&&a[l].push(s[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Pm=function(){function e(){this.registry=[]}var r=e.prototype;return r.add=function(t){var i=this.registry,o=t.options.index;if(i.indexOf(t)===-1){if(i.length===0||o>=this.index){i.push(t);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,t);return}}},r.reset=function(){this.registry=[]},r.remove=function(t){var i=this.registry.indexOf(t);this.registry.splice(i,1)},r.toString=function(t){for(var i=t===void 0?{}:t,o=i.attached,a=or(i,["attached"]),s=pr(a),l=s.linebreak,c="",u=0;u<this.registry.length;u++){var f=this.registry[u];o!=null&&f.attached!==o||(c&&(c+=l),c+=f.toString(a))}return c},we(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),Ar=new Pm,no=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),io="2f1acc6c3a606b082e5eef5e54414ffb";no[io]==null&&(no[io]=0);var Ys=no[io]++,Js=function(r){r===void 0&&(r={});var n=0,t=function(o,a){n+=1;var s="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),r.minify?""+(l||"c")+Ys+s+n:l+o.key+"-"+Ys+(s?"-"+s:"")+"-"+n};return t},_u=function(r){var n;return function(){return n||(n=r()),n}},km=function(r,n){try{return r.attributeStyleMap?r.attributeStyleMap.get(n):r.style.getPropertyValue(n)}catch{return""}},Om=function(r,n,t){try{var i=t;if(Array.isArray(t)&&(i=Lt(t)),r.attributeStyleMap)r.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;r.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},Em=function(r,n){try{r.attributeStyleMap?r.attributeStyleMap.delete(n):r.style.removeProperty(n)}catch{}},Nm=function(r,n){return r.selectorText=n,r.selectorText===n},Pu=_u(function(){return document.querySelector("head")});function Mm(e,r){for(var n=0;n<e.length;n++){var t=e[n];if(t.attached&&t.options.index>r.index&&t.options.insertionPoint===r.insertionPoint)return t}return null}function Am(e,r){for(var n=e.length-1;n>=0;n--){var t=e[n];if(t.attached&&t.options.insertionPoint===r.insertionPoint)return t}return null}function Lm(e){for(var r=Pu(),n=0;n<r.childNodes.length;n++){var t=r.childNodes[n];if(t.nodeType===8&&t.nodeValue.trim()===e)return t}return null}function zm(e){var r=Ar.registry;if(r.length>0){var n=Mm(r,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=Am(r,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var t=e.insertionPoint;if(t&&typeof t=="string"){var i=Lm(t);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function jm(e,r){var n=r.insertionPoint,t=zm(r);if(t!==!1&&t.parent){t.parent.insertBefore(e,t.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling);return}Pu().appendChild(e)}var Fm=_u(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Xs=function(r,n,t){try{"insertRule"in r?r.insertRule(n,t):"appendRule"in r&&r.appendRule(n)}catch{return!1}return r.cssRules[t]},Qs=function(r,n){var t=r.cssRules.length;return n===void 0||n>t?t:n},Bm=function(){var r=document.createElement("style");return r.textContent=`
|
|
24
|
-
`,r},Gm=function(){function e(n){this.getPropertyValue=km,this.setProperty=Om,this.removeProperty=Em,this.setSelector=Nm,this.hasInsertedRules=!1,this.cssRules=[],n&&Ar.add(n),this.sheet=n;var t=this.sheet?this.sheet.options:{},i=t.media,o=t.meta,a=t.element;this.element=a||Bm(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=Fm();s&&this.element.setAttribute("nonce",s)}var r=e.prototype;return r.attach=function(){if(!(this.element.parentNode||!this.sheet)){jm(this.element,this.sheet.options);var t=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},r.detach=function(){if(this.sheet){var t=this.element.parentNode;t&&t.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
25
|
-
`)}},r.deploy=function(){var t=this.sheet;if(t){if(t.options.link){this.insertRules(t.rules);return}this.element.textContent=`
|
|
26
|
-
`+t.toString()+`
|
|
27
|
-
`}},r.insertRules=function(t,i){for(var o=0;o<t.index.length;o++)this.insertRule(t.index[o],o,i)},r.insertRule=function(t,i,o){if(o===void 0&&(o=this.element.sheet),t.rules){var a=t,s=o;if(t.type==="conditional"||t.type==="keyframes"){var l=Qs(o,i);if(s=Xs(o,a.toString({children:!1}),l),s===!1)return!1;this.refCssRule(t,l,s)}return this.insertRules(a.rules,s),s}var c=t.toString();if(!c)return!1;var u=Qs(o,i),f=Xs(o,c,u);return f===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(t,u,f),f)},r.refCssRule=function(t,i,o){t.renderable=o,t.options.parent instanceof Du&&this.cssRules.splice(i,0,o)},r.deleteRule=function(t){var i=this.element.sheet,o=this.indexOf(t);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},r.indexOf=function(t){return this.cssRules.indexOf(t)},r.replaceRule=function(t,i){var o=this.indexOf(t);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},r.getRules=function(){return this.element.sheet.cssRules},e}(),$m=0,Wm=function(){function e(n){this.id=$m++,this.version="10.10.0",this.plugins=new _m,this.options={id:{minify:!1},createGenerateId:Js,Renderer:rn?Gm:null,plugins:[]},this.generateId=Js({minify:!1});for(var t=0;t<Vs.length;t++)this.plugins.use(Vs[t],{queue:"internal"});this.setup(n)}var r=e.prototype;return r.setup=function(t){return t===void 0&&(t={}),t.createGenerateId&&(this.options.createGenerateId=t.createGenerateId),t.id&&(this.options.id=K({},this.options.id,t.id)),(t.createGenerateId||t.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),t.insertionPoint!=null&&(this.options.insertionPoint=t.insertionPoint),"Renderer"in t&&(this.options.Renderer=t.Renderer),t.plugins&&this.use.apply(this,t.plugins),this},r.createStyleSheet=function(t,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=Ar.index===0?0:Ar.index+1);var s=new Du(t,K({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},r.removeStyleSheet=function(t){return t.detach(),Ar.remove(t),this},r.createRule=function(t,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof t=="object")return this.createRule(void 0,t,i);var a=K({},o,{name:t,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=qo(t,i,a);return s&&this.plugins.onProcessRule(s),s},r.use=function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){t.plugins.use(s)}),this},e}(),ku=function(r){return new Wm(r)},Ko=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Ou(e){var r=null;for(var n in e){var t=e[n],i=typeof t;if(i==="function")r||(r={}),r[n]=t;else if(i==="object"&&t!==null&&!Array.isArray(t)){var o=Ou(t);o&&(r||(r={}),r[n]=o)}}return r}/**
|
|
28
|
-
* A better abstraction over CSS.
|
|
29
|
-
*
|
|
30
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
31
|
-
* @website https://github.com/cssinjs/jss
|
|
32
|
-
* @license MIT
|
|
33
|
-
*/ku();function wi(e){return e&&zh(e)==="object"&&e.constructor===Object}function Eu(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},t=n.clone?K({},e):e;return wi(e)&&wi(r)&&Object.keys(r).forEach(function(i){i!=="__proto__"&&(wi(r[i])&&i in e?t[i]=Eu(e[i],r[i],n):t[i]=r[i])}),t}function Nu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.baseClasses,n=e.newClasses;if(e.Component,!n)return r;var t=K({},r);return Object.keys(n).forEach(function(i){n[i]&&(t[i]="".concat(r[i]," ").concat(n[i]))}),t}var tr={set:function(r,n,t,i){var o=r.get(n);o||(o=new Map,r.set(n,o)),o.set(t,i)},get:function(r,n,t){var i=r.get(n);return i?i.get(t):void 0},delete:function(r,n,t){var i=r.get(n);i.delete(t)}},Hm=Q.createContext(null);function Um(){var e=Q.useContext(Hm);return e}var qm=typeof Symbol=="function"&&Symbol.for;const Vm=qm?Symbol.for("mui.nested"):"__THEME_NESTED__";var Km=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Ym(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.disableGlobal,n=r===void 0?!1:r,t=e.productionPrefix,i=t===void 0?"jss":t,o=e.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),l=0,c=function(){return l+=1,l};return function(u,f){var d=f.options.name;if(d&&d.indexOf("Mui")===0&&!f.options.link&&!n){if(Km.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var p="".concat(s).concat(d,"-").concat(u.key);return!f.options.theme[Vm]||a!==""?p:"".concat(p,"-").concat(c())}return"".concat(s).concat(i).concat(c())}}var Mu=Date.now(),Ci="fnValues"+Mu,Ii="fnStyle"+ ++Mu,Jm=function(){return{onCreateRule:function(n,t,i){if(typeof t!="function")return null;var o=qo(n,{},i);return o[Ii]=t,o},onProcessStyle:function(n,t){if(Ci in t||Ii in t)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return t[Ci]=i,n},onUpdate:function(n,t,i,o){var a=t,s=a[Ii];s&&(a.style=s(n)||{});var l=a[Ci];if(l)for(var c in l)a.prop(c,l[c](n),o)}}},bt="@global",oo="@global ",Xm=function(){function e(n,t,i){this.type="global",this.at=bt,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new ei(K({},i,{parent:this}));for(var o in t)this.rules.add(o,t[o]);this.rules.process()}var r=e.prototype;return r.getRule=function(t){return this.rules.get(t)},r.addRule=function(t,i,o){var a=this.rules.add(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.replaceRule=function(t,i,o){var a=this.rules.replace(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.indexOf=function(t){return this.rules.indexOf(t)},r.toString=function(t){return this.rules.toString(t)},e}(),Qm=function(){function e(n,t,i){this.type="global",this.at=bt,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(oo.length);this.rule=i.jss.createRule(o,t,K({},i,{parent:this}))}var r=e.prototype;return r.toString=function(t){return this.rule?this.rule.toString(t):""},e}(),Zm=/\s*,\s*/g;function Au(e,r){for(var n=e.split(Zm),t="",i=0;i<n.length;i++)t+=r+" "+n[i].trim(),n[i+1]&&(t+=", ");return t}function eb(e,r){var n=e.options,t=e.style,i=t?t[bt]:null;if(i){for(var o in i)r.addRule(o,i[o],K({},n,{selector:Au(o,e.selector)}));delete t[bt]}}function tb(e,r){var n=e.options,t=e.style;for(var i in t)if(!(i[0]!=="@"||i.substr(0,bt.length)!==bt)){var o=Au(i.substr(bt.length),e.selector);r.addRule(o,t[i],K({},n,{selector:o})),delete t[i]}}function rb(){function e(n,t,i){if(!n)return null;if(n===bt)return new Xm(n,t,i);if(n[0]==="@"&&n.substr(0,oo.length)===oo)return new Qm(n,t,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function r(n,t){n.type!=="style"||!t||(eb(n,t),tb(n,t))}return{onCreateRule:e,onProcessRule:r}}var Zs=/\s*,\s*/g,nb=/&/g,ib=/\$([\w-]+)/g;function ob(){function e(i,o){return function(a,s){var l=i.getRule(s)||o&&o.getRule(s);return l?l.selector:s}}function r(i,o){for(var a=o.split(Zs),s=i.split(Zs),l="",c=0;c<a.length;c++)for(var u=a[c],f=0;f<s.length;f++){var d=s[f];l&&(l+=", "),l+=d.indexOf("&")!==-1?d.replace(nb,u):u+" "+d}return l}function n(i,o,a){if(a)return K({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var l=K({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete l.name,l}function t(i,o,a){if(o.type!=="style")return i;var s=o,l=s.options.parent,c,u;for(var f in i){var d=f.indexOf("&")!==-1,p=f[0]==="@";if(!(!d&&!p)){if(c=n(s,l,c),d){var h=r(f,s.selector);u||(u=e(l,a)),h=h.replace(ib,u);var v=s.key+"-"+f;"replaceRule"in l?l.replaceRule(v,i[f],K({},c,{selector:h})):l.addRule(v,i[f],K({},c,{selector:h}))}else p&&l.addRule(f,{},c).addRule(s.key,i[f],{selector:s.selector});delete i[f]}}return i}return{onProcessStyle:t}}var ab=/[A-Z]/g,sb=/^ms-/,Ri={};function lb(e){return"-"+e.toLowerCase()}function Lu(e){if(Ri.hasOwnProperty(e))return Ri[e];var r=e.replace(ab,lb);return Ri[e]=sb.test(r)?"-"+r:r}function Nn(e){var r={};for(var n in e){var t=n.indexOf("--")===0?n:Lu(n);r[t]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(Nn):r.fallbacks=Nn(e.fallbacks)),r}function cb(){function e(n){if(Array.isArray(n)){for(var t=0;t<n.length;t++)n[t]=Nn(n[t]);return n}return Nn(n)}function r(n,t,i){if(t.indexOf("--")===0)return n;var o=Lu(t);return t===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:r}}var z=Ko&&CSS?CSS.px:"px",fn=Ko&&CSS?CSS.ms:"ms",Vt=Ko&&CSS?CSS.percent:"%",ub={"animation-delay":fn,"animation-duration":fn,"background-position":z,"background-position-x":z,"background-position-y":z,"background-size":z,border:z,"border-bottom":z,"border-bottom-left-radius":z,"border-bottom-right-radius":z,"border-bottom-width":z,"border-left":z,"border-left-width":z,"border-radius":z,"border-right":z,"border-right-width":z,"border-top":z,"border-top-left-radius":z,"border-top-right-radius":z,"border-top-width":z,"border-width":z,"border-block":z,"border-block-end":z,"border-block-end-width":z,"border-block-start":z,"border-block-start-width":z,"border-block-width":z,"border-inline":z,"border-inline-end":z,"border-inline-end-width":z,"border-inline-start":z,"border-inline-start-width":z,"border-inline-width":z,"border-start-start-radius":z,"border-start-end-radius":z,"border-end-start-radius":z,"border-end-end-radius":z,margin:z,"margin-bottom":z,"margin-left":z,"margin-right":z,"margin-top":z,"margin-block":z,"margin-block-end":z,"margin-block-start":z,"margin-inline":z,"margin-inline-end":z,"margin-inline-start":z,padding:z,"padding-bottom":z,"padding-left":z,"padding-right":z,"padding-top":z,"padding-block":z,"padding-block-end":z,"padding-block-start":z,"padding-inline":z,"padding-inline-end":z,"padding-inline-start":z,"mask-position-x":z,"mask-position-y":z,"mask-size":z,height:z,width:z,"min-height":z,"max-height":z,"min-width":z,"max-width":z,bottom:z,left:z,top:z,right:z,inset:z,"inset-block":z,"inset-block-end":z,"inset-block-start":z,"inset-inline":z,"inset-inline-end":z,"inset-inline-start":z,"box-shadow":z,"text-shadow":z,"column-gap":z,"column-rule":z,"column-rule-width":z,"column-width":z,"font-size":z,"font-size-delta":z,"letter-spacing":z,"text-decoration-thickness":z,"text-indent":z,"text-stroke":z,"text-stroke-width":z,"word-spacing":z,motion:z,"motion-offset":z,outline:z,"outline-offset":z,"outline-width":z,perspective:z,"perspective-origin-x":Vt,"perspective-origin-y":Vt,"transform-origin":Vt,"transform-origin-x":Vt,"transform-origin-y":Vt,"transform-origin-z":Vt,"transition-delay":fn,"transition-duration":fn,"vertical-align":z,"flex-basis":z,"shape-margin":z,size:z,gap:z,grid:z,"grid-gap":z,"row-gap":z,"grid-row-gap":z,"grid-column-gap":z,"grid-template-rows":z,"grid-template-columns":z,"grid-auto-rows":z,"grid-auto-columns":z,"box-shadow-x":z,"box-shadow-y":z,"box-shadow-blur":z,"box-shadow-spread":z,"font-line-height":z,"text-shadow-x":z,"text-shadow-y":z,"text-shadow-blur":z};function zu(e){var r=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},t={};for(var i in e)t[i]=e[i],t[i.replace(r,n)]=e[i];return t}var db=zu(ub);function Lr(e,r,n){if(r==null)return r;if(Array.isArray(r))for(var t=0;t<r.length;t++)r[t]=Lr(e,r[t],n);else if(typeof r=="object")if(e==="fallbacks")for(var i in r)r[i]=Lr(i,r[i],n);else for(var o in r)r[o]=Lr(e+"-"+o,r[o],n);else if(typeof r=="number"&&isNaN(r)===!1){var a=n[e]||db[e];return a&&!(r===0&&a===z)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function fb(e){e===void 0&&(e={});var r=zu(e);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=Lr(a,i[a],r);return i}function t(i,o){return Lr(o,i,r)}return{onProcessStyle:n,onChangeValue:t}}var kr="",ao="",ju="",Fu="",pb=rn&&"ontouchstart"in document.documentElement;if(rn){var Ti={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},hb=document.createElement("p"),Di=hb.style,gb="Transform";for(var _i in Ti)if(_i+gb in Di){kr=_i,ao=Ti[_i];break}kr==="Webkit"&&"msHyphens"in Di&&(kr="ms",ao=Ti.ms,Fu="edge"),kr==="Webkit"&&"-apple-trailing-word"in Di&&(ju="apple")}var le={js:kr,css:ao,vendor:ju,browser:Fu,isTouch:pb};function vb(e){return e[1]==="-"||le.js==="ms"?e:"@"+le.css+"keyframes"+e.substr(10)}var mb={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:le.js==="ms"?"-webkit-"+r:le.css+r}},bb={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:le.js==="Webkit"?le.css+"print-"+r:r}},yb=/[-\s]+(.)?/g;function xb(e,r){return r?r.toUpperCase():""}function Yo(e){return e.replace(yb,xb)}function Ct(e){return Yo("-"+e)}var Sb={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(le.js==="Webkit"){var t="mask-image";if(Yo(t)in n)return r;if(le.js+Ct(t)in n)return le.css+r}return r}},wb={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:le.vendor==="apple"&&!le.isTouch?le.css+r:r}},Cb={noPrefill:["transform"],supportedProperty:function(r,n,t){return r!=="transform"?!1:t.transform?r:le.css+r}},Ib={noPrefill:["transition"],supportedProperty:function(r,n,t){return r!=="transition"?!1:t.transition?r:le.css+r}},Rb={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:le.js==="Webkit"||le.js==="ms"&&le.browser!=="edge"?le.css+r:r}},Tb={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:le.js==="Moz"||le.js==="ms"||le.vendor==="apple"?le.css+r:r}},Db={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(le.js==="Webkit"){var t="WebkitColumn"+Ct(r);return t in n?le.css+"column-"+r:!1}if(le.js==="Moz"){var i="page"+Ct(r);return i in n?"page-"+r:!1}return!1}},_b={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(le.js==="Moz")return r;var t=r.replace("-inline","");return le.js+Ct(t)in n?le.css+t:!1}},Pb={supportedProperty:function(r,n){return Yo(r)in n?r:!1}},kb={supportedProperty:function(r,n){var t=Ct(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:le.js+t in n?le.css+r:le.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+r:!1}},Ob={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:le.js==="ms"?""+le.css+r:r}},Eb={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:le.js==="ms"?le.css+"scroll-chaining":r}},Nb={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Mb={supportedProperty:function(r,n){var t=Nb[r];return t&&le.js+Ct(t)in n?le.css+t:!1}},Bu={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Ab=Object.keys(Bu),Lb=function(r){return le.css+r},zb={supportedProperty:function(r,n,t){var i=t.multiple;if(Ab.indexOf(r)>-1){var o=Bu[r];if(!Array.isArray(o))return le.js+Ct(o)in n?le.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(le.js+Ct(o[0])in n))return!1;return o.map(Lb)}return!1}},Gu=[mb,bb,Sb,wb,Cb,Ib,Rb,Tb,Db,_b,Pb,kb,Ob,Eb,Mb,zb],el=Gu.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),jb=Gu.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,Yc(r.noPrefill)),e},[]),Or,Et={};if(rn){Or=document.createElement("p");var Pi=window.getComputedStyle(document.documentElement,"");for(var ki in Pi)isNaN(ki)||(Et[Pi[ki]]=Pi[ki]);jb.forEach(function(e){return delete Et[e]})}function so(e,r){if(r===void 0&&(r={}),!Or)return e;if(Et[e]!=null)return Et[e];(e==="transition"||e==="transform")&&(r[e]=e in Or.style);for(var n=0;n<el.length&&(Et[e]=el[n](e,Or.style,r),!Et[e]);n++);try{Or.style[e]=""}catch{return!1}return Et[e]}var Kt={},Fb={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Bb=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,pt;function Gb(e,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var t=r?so(r):", "+so(n);return t||r||n}rn&&(pt=document.createElement("p"));function tl(e,r){var n=r;if(!pt||e==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=e+n;if(Kt[t]!=null)return Kt[t];try{pt.style[e]=n}catch{return Kt[t]=!1,!1}if(Fb[e])n=n.replace(Bb,Gb);else if(pt.style[e]===""&&(n=le.css+n,n==="-ms-flex"&&(pt.style[e]="-ms-flexbox"),pt.style[e]=n,pt.style[e]===""))return Kt[t]=!1,!1;return pt.style[e]="",Kt[t]=n,Kt[t]}function $b(){function e(i){if(i.type==="keyframes"){var o=i;o.at=vb(o.at)}}function r(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(r);continue}var s=!1,l=so(o);l&&l!==o&&(s=!0);var c=!1,u=tl(l,Lt(a));u&&u!==a&&(c=!0),(s||c)&&(s&&delete i[o],i[l||o]=u||a)}return i}function n(i,o){return o.type!=="style"?i:r(i)}function t(i,o){return tl(o,Lt(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:t}}function Wb(){var e=function(n,t){return n.length===t.length?n>t?1:-1:n.length-t.length};return{onProcessStyle:function(n,t){if(t.type!=="style")return n;for(var i={},o=Object.keys(n).sort(e),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}function Hb(){return{plugins:[Jm(),rb(),ob(),cb(),fb(),typeof window>"u"?null:$b(),Wb()]}}var Ub=ku(Hb()),qb=Ym(),Vb=new Map,Kb={disableGeneration:!1,generateClassName:qb,jss:Ub,sheetsCache:null,sheetsManager:Vb,sheetsRegistry:null},Yb=Q.createContext(Kb),rl=-1e9;function Jb(){return rl+=1,rl}var Xb={};function Qb(e){var r=typeof e=="function";return{create:function(t,i){var o;try{o=r?e(t):e}catch(l){throw l}if(!i||!t.overrides||!t.overrides[i])return o;var a=t.overrides[i],s=K({},o);return Object.keys(a).forEach(function(l){s[l]=Eu(s[l],a[l])}),s},options:{}}}function Zb(e,r,n){var t=e.state,i=e.stylesOptions;if(i.disableGeneration)return r||{};t.cacheClasses||(t.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return t.classes!==t.cacheClasses.lastJSS&&(t.cacheClasses.lastJSS=t.classes,o=!0),r!==t.cacheClasses.lastProp&&(t.cacheClasses.lastProp=r,o=!0),o&&(t.cacheClasses.value=Nu({baseClasses:t.cacheClasses.lastJSS,newClasses:r,Component:n})),t.cacheClasses.value}function ey(e,r){var n=e.state,t=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=tr.get(i.sheetsManager,o,t);s||(s={refs:0,staticSheet:null,dynamicStyles:null},tr.set(i.sheetsManager,o,t,s));var l=K({},o.options,i,{theme:t,flip:typeof i.flip=="boolean"?i.flip:t.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=i.sheetsRegistry;if(s.refs===0){var u;i.sheetsCache&&(u=tr.get(i.sheetsCache,o,t));var f=o.create(t,a);u||(u=i.jss.createStyleSheet(f,K({link:!1},l)),u.attach(),i.sheetsCache&&tr.set(i.sheetsCache,o,t,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Ou(f)}if(s.dynamicStyles){var d=i.jss.createStyleSheet(s.dynamicStyles,K({link:!0},l));d.update(r),d.attach(),n.dynamicSheet=d,n.classes=Nu({baseClasses:s.staticSheet.classes,newClasses:d.classes}),c&&c.add(d)}else n.classes=s.staticSheet.classes;s.refs+=1}}function ty(e,r){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(r)}function ry(e){var r=e.state,n=e.theme,t=e.stylesOptions,i=e.stylesCreator;if(!t.disableGeneration){var o=tr.get(t.sheetsManager,i,n);o.refs-=1;var a=t.sheetsRegistry;o.refs===0&&(tr.delete(t.sheetsManager,i,n),t.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),r.dynamicSheet&&(t.jss.removeStyleSheet(r.dynamicSheet),a&&a.remove(r.dynamicSheet))}}function ny(e,r){var n=Q.useRef([]),t,i=Q.useMemo(function(){return{}},r);n.current!==i&&(n.current=i,t=e()),Q.useEffect(function(){return function(){t&&t()}},[i])}function iy(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.name,t=r.classNamePrefix,i=r.Component,o=r.defaultTheme,a=o===void 0?Xb:o,s=Zt(r,["name","classNamePrefix","Component","defaultTheme"]),l=Qb(e),c=n||t||"makeStyles";l.options={index:Jb(),name:n,meta:c,classNamePrefix:c};var u=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=Um()||a,h=K({},Q.useContext(Yb),s),v=Q.useRef(),m=Q.useRef();ny(function(){var b={name:n,state:{},stylesCreator:l,stylesOptions:h,theme:p};return ey(b,d),m.current=!1,v.current=b,function(){ry(b)}},[p,l]),Q.useEffect(function(){m.current&&ty(v.current,d),m.current=!0});var y=Zb(v.current,d.classes,i);return y};return u}const oy=Object.freeze(Object.defineProperty({__proto__:null,default:iy},Symbol.toStringTag,{value:"Module"})),ay=Wn(oy);var sy=wn.exports,nl;function ly(){return nl||(nl=1,function(e,r){(function(n,t){e.exports=t()})(typeof self<"u"?self:sy,function(){return function(n){function t(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return n[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};return t.m=n,t.c=i,t.d=function(o,a,s){t.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},t.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(a,"a",a),a},t.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},t.p="",t(t.s=3)}([function(n,t){n.exports=dc()},function(n,t){n.exports=fc()},function(n,t){n.exports=ay},function(n,t,i){function o(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(4),s=o(a),l=i(6),c=o(l);t.default={isVirtualized:!1,nodeContentRenderer:s.default,scaffoldBlockPxWidth:25,treeNodeRenderer:c.default}},function(n,t,i){function o(b){return b&&b.__esModule?b:{default:b}}function a(b,C){return!!b.children&&typeof b.children!="function"&&b.children.some(function(D){return D===C||a(D,C)})}function s(b){var C=b.scaffoldBlockPxWidth,D=b.connectDragPreview,P=b.connectDragSource,w=b.isDragging,_=b.canDrop,S=b.canDrag,R=b.node,T=b.title,O=b.draggedNode,L=b.path,M=b.treeIndex,H=b.isSearchMatch,E=b.isSearchFocus,B=b.icons,G=b.buttons,U=b.className,J=b.style,ee=b.didDrop,X=b.lowerSiblingCounts,Z=b.listIndex,q=b.swapFrom,re=b.swapLength,ne=b.swapDepth,ue=b.onItemClick,$=y(),W=T||R.title,k=O&&a(O,R),N=!ee&&w,j=[];X.forEach(function(te,se){if(se>0&&(j.push(u.default.createElement("div",{className:$.lineBlock,key:"pre_"+(1+se),style:{width:C}})),M!==Z&&se===ne)){var fe="";fe=Z===q+re-1?$.highlightBottomLeftCorner:M===q?$.highlightTopLeftCorner:$.highlightLineVertical,j.push(u.default.createElement("div",{className:$.absoluteLineBlock+" "+fe,key:"highlight_"+(1+se),style:{left:C*se,width:C}}))}});var V=u.default.createElement("div",{className:$.contentNode},D(u.default.createElement("div",{className:$.row+(R.active?" "+$.activeRow:"")+(N?" "+$.rowLandingPad:"")+(w?" "+$.rowLandingPadDisable:"")+(N&&!_?" "+$.rowCancelPad:"")+(H?" "+$.rowSearchMatch:"")+(E?" "+$.rowSearchFocus:"")+(S?"":" "+$.rowWrapperDragDisabled)+(U?" "+U:""),onClick:function(){return ue?ue(l({},R,{index:M})):null},style:l({opacity:k?.5:1},J)},R.type==="divider"?u.default.createElement("div",{className:$.divider}):u.default.createElement(c.Fragment,null,j,u.default.createElement("div",{className:$.rowIcon},B),u.default.createElement("div",{className:$.rowLabel},typeof W=="string"?u.default.createElement("span",{className:$.rowTitle},W):typeof W=="function"?W({node:R,path:L,treeIndex:M}):W),u.default.createElement("div",{className:$.rowToolbar},G)))));return S?P(V,{dropEffect:"copy"}):V}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(b){for(var C=1;C<arguments.length;C++){var D=arguments[C];for(var P in D)Object.prototype.hasOwnProperty.call(D,P)&&(b[P]=D[P])}return b},c=i(0),u=o(c),f=i(1),d=o(f),p=i(2),h=o(p),v=i(5),m=o(v),y=(0,h.default)(m.default,{name:"MuiNodeContent"});s.defaultProps={buttons:null,canDrag:!1,canDrop:!1,className:"",draggedNode:null,icons:null,isSearchFocus:!1,isSearchMatch:!1,parentNode:null,style:{},swapDepth:null,swapFrom:null,swapLength:null,title:null,toggleChildrenVisibility:null},s.propTypes={buttons:d.default.node,canDrag:d.default.bool,canDrop:d.default.bool,className:d.default.string,connectDragPreview:d.default.func.isRequired,connectDragSource:d.default.func.isRequired,didDrop:d.default.bool.isRequired,draggedNode:d.default.shape({}),icons:d.default.node,isDragging:d.default.bool.isRequired,isOver:d.default.bool.isRequired,isSearchFocus:d.default.bool,isSearchMatch:d.default.bool,listIndex:d.default.number.isRequired,lowerSiblingCounts:d.default.arrayOf(d.default.number).isRequired,node:d.default.shape({}).isRequired,parentNode:d.default.shape({}),path:d.default.arrayOf(d.default.oneOfType([d.default.string,d.default.number])).isRequired,rowDirection:d.default.string.isRequired,scaffoldBlockPxWidth:d.default.number.isRequired,style:d.default.shape({}),swapDepth:d.default.number,swapFrom:d.default.number,swapLength:d.default.number,title:d.default.oneOfType([d.default.func,d.default.node]),toggleChildrenVisibility:d.default.func,treeId:d.default.string.isRequired,treeIndex:d.default.number.isRequired},t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{"@keyframes arrow-pulse":{"0%":{opacity:0,transform:"translate(0, 0)"},"100%":{opacity:0,transform:"translate(0, 1000%)"},"30%":{opacity:1,transform:"translate(0, 300%)"},"70%":{opacity:1,transform:"translate(0, 700%)"}},absoluteLineBlock:{position:"absolute",top:0},activeRow:{},collapseButton:{},contentNode:{width:"100%"},divider:{backgroundColor:"#D8D8D8",height:1,width:"100%"},expandButton:{},highlightBottomLeftCorner:{zIndex:3},highlightLineVertical:{zIndex:3},highlightTopLeftCorner:{},lineBlock:{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},lineChildren:{display:"inline-block",height:"100%"},nodeContent:{"& $collapseButton, & $expandButton":{"&::after":{border:"solid transparent 10px",borderLeftWidth:7,borderRightWidth:7,borderTopColor:"gray",content:'""',position:"absolute",transform:"translate3d(-50%, -20%, 0)",transformOrigin:"7px 4px"},"&:focus":{"&::after":{filter:"drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9)"},outline:"none"},"&:hover::after":{borderTopColor:"black"},appearance:"none",background:"transparent",border:"none",cursor:"pointer",height:30,padding:0,position:"absolute",top:"45%",transform:"translate3d(-50%, -50%, 0)",width:30,zIndex:2},"& $lineBlock, & $absoluteLineBlock":{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},"& $rowContents":{alignItems:"center",borderRadius:"3px",color:"#595959",display:"flex",height:"100%",justifyContent:"space-between",padding:10,position:"relative"}},row:{"& $rowIcon, & $rowLabel,& $rowToolbar":{alignItems:"center",display:"flex"},"& $rowLabel":{flex:1,overflow:"hidden",padding:"0px 6px"},"& $rowToolbar":{cursor:"pointer"},"&$activeRow":{backgroundColor:"#F3FBFF",color:"#1890FF"},"&$rowCancelPad":{"&::before":{backgroundColor:"#ffd2d6",border:"2px dotted #e6a8ad"}},"&$rowLandingPad":{"&::before":{backgroundColor:"#dddddd",border:"2px dotted #b5b5b5"}},"&$rowLandingPad, &$rowCancelPad":{"& *":{opacity:".6 !important"},"&::before":{bottom:0,content:'""',left:0,position:"absolute",right:0,top:0,zIndex:-1},backgroundColor:"transparent",border:"none",boxShadow:"none",outline:"none"},"&$rowLandingPadDisable":{"&:hover":{backgroundColor:"white"}},backgroundColor:"white",cursor:"grab",display:"flex",flex:1,padding:6,position:"relative"},rowCancelPad:{},rowContents:{},rowIcon:{color:"#D9D9D9"},rowLabel:{},rowLandingPad:{},rowLandingPadDisable:{},rowSearchFocus:{boxShadow:"inset 0 -7px 7px -3px #fc6421"},rowSearchMatch:{boxShadow:"inset 0 -7px 7px -3px #0080ff"},rowToolbar:{},rowWrapper:{"&:active":{backgroundColor:"transparent"},"&:hover":{backgroundColor:"#F3FBFF"},boxSizing:"border-box",cursor:"grab",display:"flex",height:"100%"},rowWrapperDragDisabled:{cursor:"default"}}}},function(n,t,i){function o(m){return m&&m.__esModule?m:{default:m}}function a(m){var y=m.children,b=m.listIndex,C=m.swapFrom,D=m.swapLength,P=m.swapDepth,w=m.lowerSiblingCounts,_=m.connectDropTarget,S=m.isOver,R=m.draggedNode,T=m.canDrop,O=v();return _(l.default.createElement("div",{className:O.node},s.Children.map(y,function(L){return(0,s.cloneElement)(L,{canDrop:T,draggedNode:R,isOver:S,listIndex:b,lowerSiblingCounts:w,swapDepth:P,swapFrom:C,swapLength:D})})))}Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),l=o(s),c=i(1),u=o(c),f=i(2),d=o(f),p=i(7),h=o(p),v=(0,d.default)(h.default,{name:"MuiTreeNode"});a.defaultProps={canDrop:!1,draggedNode:null,swapDepth:null,swapFrom:null,swapLength:null},a.propTypes={canDrop:u.default.bool,children:u.default.node.isRequired,connectDropTarget:u.default.func.isRequired,draggedNode:u.default.shape({}),getPrevRow:u.default.func.isRequired,isOver:u.default.bool.isRequired,listIndex:u.default.number.isRequired,lowerSiblingCounts:u.default.arrayOf(u.default.number).isRequired,node:u.default.shape({}).isRequired,path:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.number])).isRequired,rowDirection:u.default.string.isRequired,scaffoldBlockPxWidth:u.default.number.isRequired,swapDepth:u.default.number,swapFrom:u.default.number,swapLength:u.default.number,treeId:u.default.string.isRequired,treeIndex:u.default.number.isRequired},t.default=a},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{node:{display:"flex"}}}}])})}(wn)),wn.exports}var cy=ly();const uy=Hn(cy);/**
|
|
34
|
-
* (c) Iconify
|
|
35
|
-
*
|
|
36
|
-
* For the full copyright and license information, please view the license.txt
|
|
37
|
-
* files at https://github.com/iconify/iconify
|
|
38
|
-
*
|
|
39
|
-
* Licensed under MIT.
|
|
40
|
-
*
|
|
41
|
-
* @license MIT
|
|
42
|
-
* @version 1.0.8
|
|
43
|
-
*/const $u=Object.freeze({left:0,top:0,width:16,height:16}),Mn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),nn=Object.freeze({...$u,...Mn}),lo=Object.freeze({...nn,body:"",hidden:!1}),dy=Object.freeze({width:null,height:null}),Wu=Object.freeze({...dy,...Mn});function fy(e,r=0){const n=e.replace(/^-?[0-9.]*/,"");function t(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:t(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/i,o%1===0?t(o):0)}}return r}const py=/[\s,]+/;function hy(e,r){r.split(py).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Hu={...Wu,preserveAspectRatio:""};function il(e){const r={...Hu},n=(t,i)=>e.getAttribute(t)||i;return r.width=n("width",null),r.height=n("height",null),r.rotate=fy(n("rotate","")),hy(r,n("flip","")),r.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),r}function gy(e,r){for(const n in Hu)if(e[n]!==r[n])return!0;return!1}const zr=/^[a-z0-9]+(-[a-z0-9]+)*$/,on=(e,r,n,t="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;t=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:t,prefix:l,name:s};return r&&!Cn(c)?null:c}const o=i[0],a=o.split("-");if(a.length>1){const s={provider:t,prefix:a.shift(),name:a.join("-")};return r&&!Cn(s)?null:s}if(n&&t===""){const s={provider:t,prefix:"",name:o};return r&&!Cn(s,n)?null:s}return null},Cn=(e,r)=>e?!!((e.provider===""||e.provider.match(zr))&&(r&&e.prefix===""||e.prefix.match(zr))&&e.name.match(zr)):!1;function vy(e,r){const n={};!e.hFlip!=!r.hFlip&&(n.hFlip=!0),!e.vFlip!=!r.vFlip&&(n.vFlip=!0);const t=((e.rotate||0)+(r.rotate||0))%4;return t&&(n.rotate=t),n}function ol(e,r){const n=vy(e,r);for(const t in lo)t in Mn?t in e&&!(t in n)&&(n[t]=Mn[t]):t in r?n[t]=r[t]:t in e&&(n[t]=e[t]);return n}function my(e,r){const n=e.icons,t=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(n[a])return i[a]=[];if(!(a in i)){i[a]=null;const s=t[a]&&t[a].parent,l=s&&o(s);l&&(i[a]=[s].concat(l))}return i[a]}return Object.keys(n).concat(Object.keys(t)).forEach(o),i}function by(e,r,n){const t=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=ol(t[s]||i[s],o)}return a(r),n.forEach(a),ol(e,o)}function Uu(e,r){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{r(i,null),n.push(i)});const t=my(e);for(const i in t){const o=t[i];o&&(r(i,by(e,i,o)),n.push(i))}return n}const yy={provider:"",aliases:{},not_found:{},...$u};function Oi(e,r){for(const n in r)if(n in e&&typeof e[n]!=typeof r[n])return!1;return!0}function qu(e){if(typeof e!="object"||e===null)return null;const r=e;if(typeof r.prefix!="string"||!e.icons||typeof e.icons!="object"||!Oi(e,yy))return null;const n=r.icons;for(const i in n){const o=n[i];if(!i.match(zr)||typeof o.body!="string"||!Oi(o,lo))return null}const t=r.aliases||Object.create(null);for(const i in t){const o=t[i],a=o.parent;if(!i.match(zr)||typeof a!="string"||!n[a]&&!t[a]||!Oi(o,lo))return null}return r}const An=Object.create(null);function xy(e,r){return{provider:e,prefix:r,icons:Object.create(null),missing:new Set}}function It(e,r){const n=An[e]||(An[e]=Object.create(null));return n[r]||(n[r]=xy(e,r))}function Jo(e,r){return qu(r)?Uu(r,(n,t)=>{t?e.icons[n]=t:e.missing.add(n)}):[]}function Sy(e,r,n){try{if(typeof n.body=="string")return e.icons[r]={...n},!0}catch{}return!1}function wy(e,r){let n=[];return(typeof e=="string"?[e]:Object.keys(An)).forEach(i=>{(typeof i=="string"&&typeof r=="string"?[r]:Object.keys(An[i]||{})).forEach(a=>{const s=It(i,a);n=n.concat(Object.keys(s.icons).map(l=>(i!==""?"@"+i+":":"")+a+":"+l))})}),n}let Hr=!1;function Vu(e){return typeof e=="boolean"&&(Hr=e),Hr}function Ur(e){const r=typeof e=="string"?on(e,!0,Hr):e;if(r){const n=It(r.provider,r.prefix),t=r.name;return n.icons[t]||(n.missing.has(t)?null:void 0)}}function Ku(e,r){const n=on(e,!0,Hr);if(!n)return!1;const t=It(n.provider,n.prefix);return Sy(t,n.name,r)}function al(e,r){if(typeof e!="object")return!1;if(typeof r!="string"&&(r=e.provider||""),Hr&&!r&&!e.prefix){let i=!1;return qu(e)&&(e.prefix="",Uu(e,(o,a)=>{a&&Ku(o,a)&&(i=!0)})),i}const n=e.prefix;if(!Cn({provider:r,prefix:n,name:"a"}))return!1;const t=It(r,n);return!!Jo(t,e)}function Cy(e){return!!Ur(e)}function Iy(e){const r=Ur(e);return r?{...nn,...r}:null}function Ry(e){const r={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let t={provider:"",prefix:"",name:""};return e.forEach(i=>{if(t.name===i.name&&t.prefix===i.prefix&&t.provider===i.provider)return;t=i;const o=i.provider,a=i.prefix,s=i.name,l=n[o]||(n[o]=Object.create(null)),c=l[a]||(l[a]=It(o,a));let u;s in c.icons?u=r.loaded:a===""||c.missing.has(s)?u=r.missing:u=r.pending;const f={provider:o,prefix:a,name:s};u.push(f)}),r}function Yu(e,r){e.forEach(n=>{const t=n.loaderCallbacks;t&&(n.loaderCallbacks=t.filter(i=>i.id!==r))})}function Ty(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const r=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!r.length)return;let n=!1;const t=e.provider,i=e.prefix;r.forEach(o=>{const a=o.icons,s=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(e.icons[c])a.loaded.push({provider:t,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:t,prefix:i,name:c});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||Yu([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let Dy=0;function _y(e,r,n){const t=Dy++,i=Yu.bind(null,n,t);if(!r.pending.length)return i;const o={id:t,icons:r,callback:e,abort:i};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}const co=Object.create(null);function sl(e,r){co[e]=r}function uo(e){return co[e]||co[""]}function Py(e,r=!0,n=!1){const t=[];return e.forEach(i=>{const o=typeof i=="string"?on(i,r,n):i;o&&t.push(o)}),t}var ky={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Oy(e,r,n,t){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let w=e.resources.slice(0);for(a=[];w.length>1;){const _=Math.floor(Math.random()*w.length);a.push(w[_]),w=w.slice(0,_).concat(w.slice(_+1))}a=a.concat(w)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const s=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof t=="function"&&p.push(t);function h(){f&&(clearTimeout(f),f=null)}function v(){l==="pending"&&(l="aborted"),h(),d.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),d=[]}function m(w,_){_&&(p=[]),typeof w=="function"&&p.push(w)}function y(){return{startTime:s,payload:r,status:l,queriesSent:c,queriesPending:d.length,subscribe:m,abort:v}}function b(){l="failed",p.forEach(w=>{w(void 0,u)})}function C(){d.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),d=[]}function D(w,_,S){const R=_!=="success";switch(d=d.filter(T=>T!==w),l){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(_==="abort"){u=S,b();return}if(R){u=S,d.length||(a.length?P():b());return}if(h(),C(),!e.random){const T=e.resources.indexOf(w.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",p.forEach(T=>{T(S)})}function P(){if(l!=="pending")return;h();const w=a.shift();if(w===void 0){if(d.length){f=setTimeout(()=>{h(),l==="pending"&&(C(),b())},e.timeout);return}b();return}const _={status:"pending",resource:w,callback:(S,R)=>{D(_,S,R)}};d.push(_),c++,f=setTimeout(P,e.rotate),n(w,r,_.callback)}return setTimeout(P),y}function Ju(e){const r={...ky,...e};let n=[];function t(){n=n.filter(s=>s().status==="pending")}function i(s,l,c){const u=Oy(r,s,l,(f,d)=>{t(),c&&c(f,d)});return n.push(u),u}function o(s){return n.find(l=>s(l))||null}return{query:i,find:o,setIndex:s=>{r.index=s},getIndex:()=>r.index,cleanup:t}}function Xo(e){let r;if(typeof e.resources=="string")r=[e.resources];else if(r=e.resources,!(r instanceof Array)||!r.length)return null;return{resources:r,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ti=Object.create(null),wr=["https://api.simplesvg.com","https://api.unisvg.com"],In=[];for(;wr.length>0;)wr.length===1||Math.random()>.5?In.push(wr.shift()):In.push(wr.pop());ti[""]=Xo({resources:["https://api.iconify.design"].concat(In)});function ll(e,r){const n=Xo(r);return n===null?!1:(ti[e]=n,!0)}function ri(e){return ti[e]}function Ey(){return Object.keys(ti)}function cl(){}const Ei=Object.create(null);function Ny(e){if(!Ei[e]){const r=ri(e);if(!r)return;const n=Ju(r),t={config:r,redundancy:n};Ei[e]=t}return Ei[e]}function Xu(e,r,n){let t,i;if(typeof e=="string"){const o=uo(e);if(!o)return n(void 0,424),cl;i=o.send;const a=Ny(e);a&&(t=a.redundancy)}else{const o=Xo(e);if(o){t=Ju(o);const a=e.resources?e.resources[0]:"",s=uo(a);s&&(i=s.send)}}return!t||!i?(n(void 0,424),cl):t.query(r,i,n)().abort}const ul="iconify2",qr="iconify",Qu=qr+"-count",dl=qr+"-version",Zu=36e5,My=168;function fo(e,r){try{return e.getItem(r)}catch{}}function Qo(e,r,n){try{return e.setItem(r,n),!0}catch{}}function fl(e,r){try{e.removeItem(r)}catch{}}function po(e,r){return Qo(e,Qu,r.toString())}function ho(e){return parseInt(fo(e,Qu))||0}const zt={local:!0,session:!0},ed={local:new Set,session:new Set};let Zo=!1;function Ay(e){Zo=e}let pn=typeof window>"u"?{}:window;function td(e){const r=e+"Storage";try{if(pn&&pn[r]&&typeof pn[r].length=="number")return pn[r]}catch{}zt[e]=!1}function rd(e,r){const n=td(e);if(!n)return;const t=fo(n,dl);if(t!==ul){if(t){const s=ho(n);for(let l=0;l<s;l++)fl(n,qr+l.toString())}Qo(n,dl,ul),po(n,0);return}const i=Math.floor(Date.now()/Zu)-My,o=s=>{const l=qr+s.toString(),c=fo(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&r(u,s))return!0}catch{}fl(n,l)}};let a=ho(n);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,po(n,a)):ed[e].add(s))}function nd(){if(!Zo){Ay(!0);for(const e in zt)rd(e,r=>{const n=r.data,t=r.provider,i=n.prefix,o=It(t,i);if(!Jo(o,n).length)return!1;const a=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function Ly(e,r){const n=e.lastModifiedCached;if(n&&n>=r)return n===r;if(e.lastModifiedCached=r,n)for(const t in zt)rd(t,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===r});return!0}function zy(e,r){Zo||nd();function n(t){let i;if(!zt[t]||!(i=td(t)))return;const o=ed[t];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=ho(i),!po(i,a+1))return;const s={cached:Math.floor(Date.now()/Zu),provider:e.provider,data:r};return Qo(i,qr+a.toString(),JSON.stringify(s))}r.lastModified&&!Ly(e,r.lastModified)||Object.keys(r.icons).length&&(r.not_found&&(r=Object.assign({},r),delete r.not_found),n("local")||n("session"))}function pl(){}function jy(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Ty(e)}))}function Fy(e,r){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(r).sort():e.iconsToLoad=r,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:t}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=uo(n)))return;o.prepare(n,t,i).forEach(s=>{Xu(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=Jo(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),zy(e,l)}catch(c){console.error(c)}jy(e)})})}))}const ea=(e,r)=>{const n=Py(e,!0,Vu()),t=Ry(n);if(!t.pending.length){let l=!0;return r&&setTimeout(()=>{l&&r(t.loaded,t.missing,t.pending,pl)}),()=>{l=!1}}const i=Object.create(null),o=[];let a,s;return t.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===a)return;a=c,s=u,o.push(It(c,u));const f=i[c]||(i[c]=Object.create(null));f[u]||(f[u]=[])}),t.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=It(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),i[c][u].push(f))}),o.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&Fy(l,i[c][u])}),r?_y(r,t,o):pl},By=e=>new Promise((r,n)=>{const t=typeof e=="string"?on(e,!0):e;if(!t){n(e);return}ea([t||e],i=>{if(i.length&&t){const o=Ur(t);if(o){r({...nn,...o});return}}n(e)})});function Gy(e){try{const r=typeof e=="string"?JSON.parse(e):e;if(typeof r.body=="string")return{...r}}catch{}}function $y(e,r){const n=typeof e=="string"?on(e,!0,!0):null;if(!n){const o=Gy(e);return{value:e,data:o}}const t=Ur(n);if(t!==void 0||!n.prefix)return{value:e,name:n,data:t};const i=ea([n],()=>r(e,n,Ur(n)));return{value:e,name:n,loading:i}}function Ni(e){return e.hasAttribute("inline")}let id=!1;try{id=navigator.vendor.indexOf("Apple")===0}catch{}function Wy(e,r){switch(r){case"svg":case"bg":case"mask":return r}return r!=="style"&&(id||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Hy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Uy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function go(e,r,n){if(r===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*r*n)/n;if(typeof e!="string")return e;const t=e.split(Hy);if(t===null||!t.length)return e;const i=[];let o=t.shift(),a=Uy.test(o);for(;;){if(a){const s=parseFloat(o);isNaN(s)?i.push(o):i.push(Math.ceil(s*r*n)/n)}else i.push(o);if(o=t.shift(),o===void 0)return i.join("");a=!a}}const qy=e=>e==="unset"||e==="undefined"||e==="none";function od(e,r){const n={...nn,...e},t={...Wu,...r},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,t].forEach(h=>{const v=[],m=h.hFlip,y=h.vFlip;let b=h.rotate;m?y?b+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):y&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let C;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:C=i.height/2+i.top,v.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:C=i.width/2+i.left,v.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}b%2===1&&(i.left!==i.top&&(C=i.left,i.left=i.top,i.top=C),i.width!==i.height&&(C=i.width,i.width=i.height,i.height=C)),v.length&&(o='<g transform="'+v.join(" ")+'">'+o+"</g>")});const a=t.width,s=t.height,l=i.width,c=i.height;let u,f;a===null?(f=s===null?"1em":s==="auto"?c:s,u=go(f,l/c)):(u=a==="auto"?l:a,f=s===null?go(u,c/l):s==="auto"?c:s);const d={},p=(h,v)=>{qy(v)||(d[h]=v.toString())};return p("width",u),p("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:d,body:o}}const Vy=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ln=Vy();function Ky(e){Ln=e}function Yy(){return Ln}function Jy(e,r){const n=ri(e);if(!n)return 0;let t;if(!n.maxURL)t=0;else{let i=0;n.resources.forEach(a=>{i=Math.max(i,a.length)});const o=r+".json?icons=";t=n.maxURL-i-n.path.length-o.length}return t}function Xy(e){return e===404}const Qy=(e,r,n)=>{const t=[],i=Jy(e,r),o="icons";let a={type:o,provider:e,prefix:r,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=i&&c>0&&(t.push(a),a={type:o,provider:e,prefix:r,icons:[]},s=l.length),a.icons.push(l)}),t.push(a),t};function Zy(e){if(typeof e=="string"){const r=ri(e);if(r)return r.path}return"/"}const ex=(e,r,n)=>{if(!Ln){n("abort",424);return}let t=Zy(r.provider);switch(r.type){case"icons":{const o=r.prefix,s=r.icons.join(","),l=new URLSearchParams({icons:s});t+=o+".json?"+l.toString();break}case"custom":{const o=r.uri;t+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let i=503;Ln(e+t).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{n(Xy(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",i)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",i)})},tx={prepare:Qy,send:ex};function hl(e,r){switch(e){case"local":case"session":zt[e]=r;break;case"all":for(const n in zt)zt[n]=r;break}}const Mi="data-style";let ad="";function rx(e){ad=e}function gl(e,r){let n=Array.from(e.childNodes).find(t=>t.hasAttribute&&t.hasAttribute(Mi));n||(n=document.createElement("style"),n.setAttribute(Mi,Mi),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(r?"-0.125em":"0")+"}span,svg{display:block}"+ad}function sd(){sl("",tx),Vu(!0);let e;try{e=window}catch{}if(e){if(nd(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,t="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!al(i))&&console.error(t)}catch{console.error(t)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const t in n){const i="IconifyProviders["+t+"] is invalid.";try{const o=n[t];if(typeof o!="object"||!o||o.resources===void 0)continue;ll(t,o)||console.error(i)}catch{console.error(i)}}}}return{enableCache:n=>hl(n,!0),disableCache:n=>hl(n,!1),iconExists:Cy,getIcon:Iy,listIcons:wy,addIcon:Ku,addCollection:al,calculateSize:go,buildIcon:od,loadIcons:ea,loadIcon:By,addAPIProvider:ll,appendCustomStyle:rx,_api:{getAPIConfig:ri,setAPIModule:sl,sendAPIQuery:Xu,setFetch:Ky,getFetch:Yy,listAPIProviders:Ey}}}function ld(e,r){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const t in r)n+=" "+t+'="'+r[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function nx(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ix(e){return"data:image/svg+xml,"+nx(e)}function ox(e){return'url("'+ix(e)+'")'}const vo={"background-color":"currentColor"},cd={"background-color":"transparent"},vl={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ml={"-webkit-mask":vo,mask:vo,background:cd};for(const e in ml){const r=ml[e];for(const n in vl)r[e+"-"+n]=vl[n]}function bl(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function ax(e,r,n){const t=document.createElement("span");let i=e.body;i.indexOf("<a")!==-1&&(i+="<!-- "+Date.now()+" -->");const o=e.attributes,a=ld(i,{...o,width:r.width+"",height:r.height+""}),s=ox(a),l=t.style,c={"--svg":s,width:bl(o.width),height:bl(o.height),...n?vo:cd};for(const u in c)l.setProperty(u,c[u]);return t}let jr;function sx(){try{jr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{jr=null}}function lx(e){return jr===void 0&&sx(),jr?jr.createHTML(e):e}function cx(e){const r=document.createElement("span"),n=e.attributes;let t="";n.width||(t="width: inherit;"),n.height||(t+="height: inherit;"),t&&(n.style=t);const i=ld(e.body,n);return r.innerHTML=lx(i),r.firstChild}function yl(e,r){const n=r.icon.data,t=r.customisations,i=od(n,t);t.preserveAspectRatio&&(i.attributes.preserveAspectRatio=t.preserveAspectRatio);const o=r.renderedMode;let a;switch(o){case"svg":a=cx(i);break;default:a=ax(i,{...nn,...n},o==="mask")}const s=Array.from(e.childNodes).find(l=>{const c=l.tagName&&l.tagName.toUpperCase();return c==="SPAN"||c==="SVG"});s?a.tagName==="SPAN"&&s.tagName===a.tagName?s.setAttribute("style",a.getAttribute("style")):e.replaceChild(a,s):e.appendChild(a)}function xl(e,r,n){const t=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:r,icon:e,lastRender:t}}function ux(e="iconify-icon"){let r,n;try{r=window.customElements,n=window.HTMLElement}catch{return}if(!r||!n)return;const t=r.get(e);if(t)return t;const i=["icon","mode","inline","width","height","rotate","flip"],o=class extends n{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const s=this._shadowRoot=this.attachShadow({mode:"open"}),l=Ni(this);gl(s,l),this._state=xl({value:""},l),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(s){if(s==="inline"){const l=Ni(this),c=this._state;l!==c.inline&&(c.inline=l,gl(this._shadowRoot,l))}else this._queueCheck()}get icon(){const s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return Ni(this)}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const s=this._state;if(s.rendered){const l=this._shadowRoot;if(s.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}yl(l,s)}}get status(){const s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const s=this._state,l=this.getAttribute("icon");if(l!==s.icon.value){this._iconChanged(l);return}if(!s.rendered)return;const c=this.getAttribute("mode"),u=il(this);(s.attrMode!==c||gy(s.customisations,u))&&this._renderIcon(s.icon,u,c)}_iconChanged(s){const l=$y(s,(c,u,f)=>{const d=this._state;if(d.rendered||this.getAttribute("icon")!==c)return;const p={value:c,name:u,data:f};p.data?this._gotIconData(p):d.icon=p});l.data?this._gotIconData(l):this._state=xl(l,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,il(this),this.getAttribute("mode"))}_renderIcon(s,l,c){const u=Wy(s.data.body,c),f=this._state.inline;yl(this._shadowRoot,this._state={rendered:!0,icon:s,inline:f,customisations:l,attrMode:c,renderedMode:u})}};i.forEach(s=>{s in o.prototype||Object.defineProperty(o.prototype,s,{get:function(){return this.getAttribute(s)},set:function(l){l!==null?this.setAttribute(s,l):this.removeAttribute(s)}})});const a=sd();for(const s in a)o[s]=o.prototype[s]=a[s];return r.define(e,o),o}const dx=ux()||sd(),{enableCache:RT,disableCache:TT,iconExists:DT,getIcon:_T,listIcons:PT,addIcon:kT,addCollection:OT,calculateSize:ET,buildIcon:NT,loadIcons:MT,loadIcon:AT,addAPIProvider:LT,_api:zT}=dx,Wt=(e,r,n="children")=>e.map(t=>Array.isArray(t[n])?r({...t,[n]:Wt(t[n],r,n)}):r(t)),ud=(e,r="children")=>{const n=[];return Wt(e,t=>n.push(t),r),n},ta=(e,r,n="children")=>e.map(t=>({...t})).filter(t=>{const i=t[n];if(Array.isArray(i)){const a=ta(i,r,n);t[n]=a?.length?a:void 0}const o={filteredChildren:t[n],isLeaf:!i?.length};return r(t,o)}),dd=e=>/^https?:\/\//.test(e),fd=e=>/^mailto:/i.test(e.trim()),fx=e=>{if(!e||!e?.startsWith("/"))return!1;const r=i=>i.endsWith("/")?i:`${i}/`,n=r(window.location.pathname),t=r(new URL(e,window.location.origin).pathname);return n.startsWith(t)},pd=(e=[])=>{const r=e.map((n,t)=>({path:n,index:t})).filter(n=>fx(n.path));return r?.length?r.slice(1).reduce((n,t)=>n.path.length>=t.path.length?n:t,r[0]).index:-1},px=(e,r={})=>{const{columns:n=1,breakInside:t=!1,groupHeight:i=48,itemHeight:o=24,childrenKey:a="items"}=r,s=e.reduce((h,v)=>h+i+(v[a]?.length||0)*o,0),l=Math.ceil(s/n),c=[[]];let u=0,f=0;const d=l*.2,p=h=>f>l-d&&u<n-1&&f+h>l+d;return e.forEach(h=>{const v=i+(h[a]?.length||0)*o;t&&p(i)&&(u++,f=0,c[u]=[]),!t&&f>0&&p(v)&&(u++,f=0,c[u]=[]),c[u].push({...h,group:!0}),f+=i,h[a]&&h[a].forEach(m=>{t&&p(o)&&(u++,f=0,c[u]=[]),c[u].push({...m,group:!1}),f+=o})}),c};function rt({icon:e,size:r=void 0,sx:n={},...t}){const i=[...Array.isArray(n)?n:[n]];r&&i.push({width:r,height:r});const[o,a]=I.useState(!1),[s,l]=I.useState(!0);if(_o(async()=>{l(!0);try{await Po(e),a(!0)}catch{a(!1)}l(!1)},[e]),t.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),dd(e))return g.jsx(rr,{component:"span",...t,src:e,sx:i});const c=r?.6*r+4:0;return s?g.jsx(xe,{icon:"codicon:blank",height:c||void 0}):o?g.jsx(rr,{component:"span",...t,sx:i,children:g.jsx(xe,{icon:e,height:c||void 0})}):e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...r&&{fontSize:r-2}}}),g.jsx(rr,{component:"span",...t,sx:i,children:Array.from(e)[0]})):null}function ra(e=["en","zh"]){const{blocklet:r}=Gt();return I.useMemo(()=>{const t=r.environments.find(c=>c.key==="BLOCKLET_APP_LANGUAGES"),i=t?t.value.split(","):e,o=i[0]||"en",a=i.filter(c=>Ge.SUPPORTED_LANGUAGES[c]),s=a.reduce((c,u)=>(c[u]=Ge.SUPPORTED_LANGUAGES[u].nativeName,c),{}),l=a.map(c=>({code:c,name:Ge.SUPPORTED_LANGUAGES[c].nativeName}));return{locales:i,localeMap:s,defaultLocale:o,languages:l}},[r.environments,e])}const hx=e=>e.from!=="team-tmpl";function gx({prevPath:e,nextPath:r,node:n}){if(n.from==="team-tmpl")return!1;const t=e.length,i=r.length;return!!(t===i&&Tp(e.slice(0,t-1),r.slice(0,i-1)))}function hd({treeNode:e}){const{locale:r}=Le(),{blocklet:n}=Gt(),{defaultLocale:t}=ra(),i=n.environments.find(s=>s.key===Ge.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),o=ae(s=>{if(s?.startsWith("/"))try{return new URL(s,i?.value).href}catch{console.error("Failed to parse url",{url:s,origin:i?.value})}return s});function a(){const{title:s,subtitle:l}=e;let c=s,u=l;return Xt(s)&&(c=s[r]||s[t]||s.en),!I.isValidElement(l)&&Xt(l)&&(u=l[r]||l[t]||l.en),g.jsxs(oe,{sx:{display:"flex",alignItems:"center"},children:[g.jsx(me,{variant:"subtitle1",sx:{fontSize:16},children:c}),l&&g.jsx(me,{variant:"body2",color:"gray",sx:{ml:1.5,lineHeight:1},children:u})]})}return g.jsxs(g.Fragment,{children:[e.icon&&(ko(o(e.icon))?g.jsx(rt,{size:16,style:{marginRight:4},icon:o(e.icon)}):g.jsx(xe,{size:16,style:{marginRight:4},icon:e.icon})),a()]})}hd.propTypes={treeNode:x.object.isRequired};const vx=ct(oe)(({theme:e})=>({"& .MuiNodeContent-row":{backgroundColor:e.palette.background.default}}));function gd({treeData:e,setTreeData:r=()=>{},renderActions:n=()=>{}}){const t=e.map(o=>({...o,expanded:!0})),i={};return typeof window<"u"&&(i.context=window),g.jsx(vx,{children:g.jsx(Ph,{backend:kh,...i,children:g.jsx(om,{generateNodeProps:o=>{const a=hx(o.node);return{buttons:n({data:o.node,className:"list-item-actions"}),icons:a?g.jsx(xe,{icon:"ic:round-drag-indicator"}):g.jsx(oe,{sx:{width:16,height:16}}),title:g.jsx(hd,{treeNode:o.node})}},maxDepth:2,isVirtualized:!1,treeData:t,onChange:r,canDrop:gx,theme:uy})})})}gd.propTypes={treeData:x.object.isRequired,setTreeData:x.func,renderActions:x.func};var mx=uc();const bx=Hn(mx);function vd({sx:e=null,onAdd:r=()=>{},onChange:n=()=>{},defaultLocale:t="en",locale:i="",locales:o=[],localeMap:a={},onRemoveLocale:s=()=>{}}){const{t:l}=Le(),c=I.useRef(),[u,f]=I.useState(null),d=Ft({localeList:[],inputLocale:"",localeError:""}),p=I.useMemo(()=>!!u,[u]),h=I.useMemo(()=>o.includes(i)?i:t,[o,i]),v=I.useMemo(()=>d.localeList.filter(S=>!!a[S]),[d.localeList,a]),m=I.useMemo(()=>Object.keys(Mt(a,[...d.localeList,t])).map(S=>({title:a[S],value:S})),[d.localeList]),y=I.useMemo(()=>`Default (${a[t]||Object.values(a)?.[0]})`,[a]),b=ae(S=>S?S===t||d.localeList.includes(S)?l("navigation.form.localeExists",{value:S}):!0:l("common.requiredErrorText",{name:"Locale"})),C=ae((S="")=>{const R=S?.trim(),T=b(R);return T!==!0?d.localeError=T:d.localeError="",T}),D=ae(()=>{f(null),d.inputLocale="",d.localeError=""}),P=ae(()=>{const S=d.inputLocale?.trim();C(S)===!0&&(D(),d.localeList.push(S),r(S))}),w=ae((S,R)=>{S.preventDefault(),S.stopPropagation(),d.localeList=zc(d.localeList,R),s(R)}),_=ae(S=>{const{value:R}=S.target;C(R),d.inputLocale=R});return I.useEffect(()=>{d.localeList=[...o]},[o,d]),Ih("enter",()=>{setTimeout(()=>{P()})},{target:c}),g.jsxs(g.Fragment,{children:[g.jsxs($h,{sx:e,value:h,onChange:(S,R)=>{n(R)},children:[g.jsx(Wa,{label:y,value:t}),v.map(S=>g.jsx(Wa,{sx:{position:"relative"},label:g.jsxs(g.Fragment,{children:[a[S],g.jsx(ze,{size:"small",color:"inherit",sx:{position:"absolute",top:0,right:0},onClick:R=>{w(R,S)},children:g.jsx(xe,{icon:"mdi:close",height:14})})]}),value:S},S)),g.jsx(ze,{color:"primary",disableFocusRipple:!0,sx:{width:"48px"},onClick:S=>{f(S.currentTarget)},children:g.jsx(xe,{icon:"mdi:plus"})})]}),g.jsx(qi,{open:p,anchorEl:u,onClose:D,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:g.jsxs(oe,{sx:{p:2,width:"270px"},children:[g.jsx(me,{variant:"subtitle2",children:l("navigation.form.localePlaceholder")}),g.jsx(oe,{sx:{mt:1},children:g.jsx(Yi,{required:!0,fullWidth:!0,label:"Locale",value:d.inputLocale,options:m,onChange:_,error:!!d.localeError,helperText:d.localeError||" "})}),g.jsx(oe,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(wt,{size:"small",variant:"contained",onClick:P,children:l("common.confirm")})})]})})]})}vd.propTypes={sx:x.any,onAdd:x.func,onChange:x.func,onRemoveLocale:x.func,defaultLocale:x.string,locale:x.string,localeMap:x.object,locales:x.array};const na=["https://api.iconify.design","https://api.unisvg.com","https://api.simplesvg.com"];async function md(e,r,n=5e3){for(const t of na){const i=Re(t,e);try{return await Hh.get(i,{params:r,timeout:n})}catch(o){console.warn(`Failed to fetch from ${i}:`,o)}}throw new Error(`All icon API endpoints ${e} failed`)}async function yx({keyword:e,limit:r=999,start:n=0,palette:t=!1}){let i="",o=e;e.includes(":")&&([i,o]=e.split(":"));const{data:a}=await md("/search",{query:`${o} palette=${t}`||e,start:n,limit:r,...i&&{prefix:i}});return a}const hn=new Map;async function xx(e){if(hn.has(e))return hn.get(e);const r=(async()=>{const{data:n}=await md("/collection",{prefix:e}),t=new Set;return n.uncategorized?.forEach(i=>t.add(`${e}:${i}`)),Object.values(n.categories??{}).forEach(i=>{i.forEach(o=>t.add(`${e}:${o}`))}),Array.from(t)})();hn.set(e,r);try{return await r}catch(n){throw hn.delete(e),n}}function Sx(e){return Re(na[0],`${e}.svg`)}function wx(e){try{const r=new URL(e);for(const n of na)if(r.origin===n)return Dp(r.pathname).replace(".svg","");return""}catch{return""}}function Cx(e){let r=!0,n=e;return e&&(e.startsWith("/")?(r=!1,n=""):ko(e)&&(n=wx(e))),{isIconId:r,iconId:n}}const Ix=I.lazy(()=>Op(()=>import("./index-D3TFHWgY.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.Uploader}))),Sl=Xe(rt)(({theme:e})=>({"&&":{color:e.palette.text.primary},"> img":{filter:e.palette.mode==="dark"?"invert(1)":"none"}}));function bd({icon:e,...r}){const[n,t]=I.useState(!1);return _o(async()=>{t(!1),await Po(e),t(!0)},[e]),e?n?g.jsx(xe,{icon:e,...r}):g.jsx(xe,{color:"#f06f6e",icon:"ic:baseline-error",...r}):g.jsx(xe,{icon:"material-symbols-light:select-rounded",...r})}bd.propTypes={icon:x.string.isRequired};function mo({value:e,helperText:r,label:n,placeholder:t,methods:i=["select"],iconifyShape:o="id",...a}){const{getSessionInHeader:s,prefix:l,inService:c}=pc(),{blocklet:u}=Gt(),f=qn(Z=>Z.breakpoints.down("md")),d=u.environments.find(Z=>Z.key===Ge.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),p=s(),h=I.useRef(null),v=I.useRef(null),m=I.useRef(null),{t:y,locale:b}=Le(),{isIconId:C,iconId:D}=Cx(e),[P,w]=I.useState(null),{onChange:_,onBlur:S,sx:R,...T}=a,O=i.includes("upload"),L=i.includes("select"),M=Re(l,"/api/media/upload",u.appPid),H=Ft({showPopover:!1}),E=ae(Z=>{if(Z?.startsWith("/"))try{const q=c?window.location.origin:d?.value;return new URL(Z,q).href}catch{console.error("Failed to resolve url: ",Z)}return Z},[d?.value,c]),B=ae(async Z=>await h.current.getUploader().uploadFile(Z)),G=ae(()=>{w(null)}),U=ae(()=>{L&&w(m.current)}),J=ae(async Z=>{try{if(o==="url"){const q=Sx(Z),re=await _p(q,{width:128,height:128}),ne=await Pp(re,Z);await B(ne)}else _?.(Z)}catch(q){console.error("Failed to pick icon:",q)}G()}),ee=ae(Z=>{Z.stopPropagation(),v.current.open(),G()}),X=ae(Z=>{a?.onChange?.(Z.data.url)});return g.jsxs(g.Fragment,{children:[g.jsx(lt,{helperText:r,value:e,sx:{"& .MuiInputBase-root,.MuiInputBase-input":{cursor:"pointer"},...R},onClick:L?U:void 0,...T,label:n,placeholder:t,slotProps:{input:{ref:m,readOnly:!0,startAdornment:g.jsx(Dn,{position:"start",sx:{cursor:"auto"},onMouseEnter:()=>{e&&(H.showPopover=!0)},onMouseLeave:()=>{H.showPopover=!1},children:g.jsx(Sl,{size:28,icon:E(e),alt:"Error"})}),endAdornment:g.jsxs(Dn,{position:"end",children:[g.jsx(ze,{sx:{visibility:e?"visible":"hidden"},onClick:Z=>{Z.stopPropagation(),_("")},children:g.jsx(Ac,{style:{fontSize:18}})}),O&&g.jsx(kp,{title:y("common.upload"),children:g.jsx(ze,{disableFocusRipple:!1,disableRipple:!1,onClick:ee,children:g.jsx(bd,{icon:"material-symbols:upload-file-outline-rounded",width:24,height:24})})}),L&&g.jsx(oe,{component:Wh,sx:{mr:"-6px",fontSize:24,transform:P?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms",pointerEvents:"none"}})]})}}}),L&&g.jsx(qi,{open:!!P,anchorEl:P,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{...f&&{width:"100vw",height:"100vh",boxShadow:"none"}}}},onClose:G,children:g.jsx(yd,{label:n,placeholder:t,value:C?D:"",sx:{width:m.current?.offsetWidth??"auto"},onPick:J,onClose:G})}),g.jsx(bo,{ref:h,locale:b,apiPath:M,headers:p,imageEditorProps:{},onUploadFinish:X}),g.jsx(bo,{ref:v,locale:b,apiPath:M,headers:p,onUploadFinish:X}),g.jsx(qi,{sx:{pointerEvents:"none"},open:H.showPopover,anchorEl:m.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{H.showPopover=!1},disableRestoreFocus:!0,children:g.jsx(Sl,{size:120,icon:E(e),alt:"Error"})})]})}mo.propTypes={value:x.string.isRequired,label:x.any,placeholder:x.any,helperText:x.string,methods:x.arrayOf(x.oneOf(["select","upload"])),iconifyShape:x.oneOf(["id","url"])};function yd({label:e,placeholder:r,value:n="",sx:t,onPick:i,onClose:o,...a}){const[s,l]=I.useState([]),[c,u]=I.useState(!0),[f,d]=I.useState(n),[p,h]=I.useState(!1),v=I.useRef(null),m=I.useRef([]),y=I.useRef(1),b=I.useRef(!0),{t:C}=Le(),D=96,P=ae(()=>{!b.current||c||(u(!0),setTimeout(()=>{const S=y.current+1,R=(S-1)*D,T=S*D,O=m.current.slice(R,T);l(L=>[...L,...O]),y.current=S,b.current=T<m.current.length,u(!1)},300))}),w=ae(S=>{m.current=S,y.current=1,b.current=S.length>D;const R=S.slice(0,D);l(R),h(S.length===0),b.current&&P()}),{run:_}=hc(async S=>{if(S){u(!0);try{const{icons:R}=await yx({keyword:S});w(R)}catch(R){console.error("Failed to search icons:",R),h(!0)}finally{u(!1)}}},{wait:300,trailing:!0});return I.useEffect(()=>{const S=()=>{if(!v.current)return;const{scrollTop:T,scrollHeight:O,clientHeight:L}=v.current;(T+L>=O-150||O<=L)&&P()},R=v.current;return R&&(R.addEventListener("scroll",S),S()),()=>{R&&R.removeEventListener("scroll",S)}},[P,c]),_o(async()=>{if(f)_(f);else{u(!0);try{const S=await xx("mdi-light");w(S)}catch(S){console.error("Failed to fetch default icons:",S),h(!0)}finally{u(!1)}}},[f,_,w]),g.jsxs(Rx,{ref:v,sx:t,...a,children:[g.jsxs(oe,{className:"icon-picker-input",children:[g.jsx(lt,{label:C("navigation.form.searchIcons"),placeholder:C("navigation.form.searchIconsPlaceholder"),size:"small",value:f,sx:{flexGrow:1},autoFocus:!0,onChange:S=>d(S.target.value),slotProps:{input:{endAdornment:g.jsx(ze,{sx:{visibility:f?"visible":"hidden"},onClick:()=>d(""),children:g.jsx(Ac,{style:{fontSize:18}})})}}}),g.jsx(wt,{onClick:o,children:C("common.cancel")})]}),g.jsxs(oe,{children:[s.length>0&&g.jsx(oe,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(32px, auto))",gridAutoRows:"min-content",alignItems:"center",gap:1,p:2},children:s.map(S=>g.jsx(Tx,{$active:n===S,onClick:()=>{i(S)},children:g.jsx(xe,{icon:S,width:"32",height:"32"})},S))}),p&&g.jsx(oe,{sx:{p:2,display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(oe,{sx:{textAlign:"center"},children:"No matching results"})}),c&&g.jsx(oe,{sx:{p:2,display:"flex",justifyContent:"center"},children:g.jsx(gc,{size:20})})]})]})}yd.propTypes={label:x.any,placeholder:x.any,value:x.string,sx:x.object,onPick:x.func.isRequired,onClose:x.func.isRequired};const Rx=Xe(oe)(({theme:e})=>({minWidth:"100%",height:"100%",padding:0,overflow:"auto",[e.breakpoints.up("md")]:{minWidth:"480px",maxHeight:"400px",padding:e.spacing(1),paddingTop:0,".icon-picker-input":{paddingTop:e.spacing(2),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}},".icon-picker-input":{position:"sticky",display:"flex",alignItems:"center",gap:e.spacing(1),top:0,zIndex:1,backgroundColor:e.palette.background.paper}})),Tx=Xe(ze,{shouldForwardProp:e=>e!=="$active"})(({$active:e,theme:r})=>({boxSizing:"content-box",backgroundColor:e?r.palette.action.hover:"transparent",borderRadius:4,padding:1,width:32,height:32,"&:hover":{backgroundColor:r.palette.action.hover}}));function bo({ref:e=null,locale:r,apiPath:n,headers:t,imageEditorProps:i={actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:1,initialAspectRatio:1,croppedCanvasOptions:{minWidth:120,minHeight:120}}},onUploadFinish:o}){return g.jsx(I.Suspense,{children:g.jsx(Ix,{locale:r,ref:e,popup:!0,installerProps:{disabled:!0},plugins:["ImageEditor"],onUploadFinish:a=>o?.(a),coreProps:{restrictions:{allowedFileTypes:["image/*"],maxFileSize:1024*1024*1,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:i,apiPathProps:{uploader:n,disableMediaKitPrefix:!0,disableAutoPrefix:!0,disableMediaKitStatus:!0},tusProps:{headers:t}})})}bo.propTypes={ref:x.any,locale:x.string,apiPath:x.string,headers:x.object,imageEditorProps:x.object,onUploadFinish:x.func};const wl=24,Cl=48,Il="add";x.string.isRequired;function ia({ref:e=null,section:r="",components:n=[],rawNavigations:t=[],onChange:i=()=>{},...o}){const{roles:a}=Mc(),{t:s,locale:l}=Le(),{localeMap:c,defaultLocale:u}=ra(),f=ae(()=>({title:{[u]:""},description:{[u]:""},link:{[u]:""}})),d=ae(k=>zc(Array.from(new Set(ye.NAVIGATION_I18N_FIELDS.flatMap(N=>Xt(k[N])?Object.keys(k[N]):[]))),u)),p=I.useRef(()=>{}),h=Ft({isRoot:!0,type:Il,linkDisabled:!1,locale:u,formState:f(),get localeList(){return d(h.formState)}}),{handleSubmit:v,control:m,reset:y,setValue:b,clearErrors:C,formState:{errors:D}}=Bh({mode:"onChange",defaultValues:{id:"",title:"",description:"",icon:"",link:"",component:"",parent:"",role:[]}});I.useEffect(()=>{ye.NAVIGATION_I18N_FIELDS.forEach(k=>b(k,h.formState[k][h.locale]))},[b,h.locale]);const P=Gh({control:m}),w=P.component,_=P.title,S=P.description,R=P.link,T=P.parent;I.useEffect(()=>{h.formState.title[h.locale]=_},[_]),I.useEffect(()=>{h.formState.description[h.locale]=S},[S]),I.useEffect(()=>{h.formState.link[h.locale]=R},[R]),I.useEffect(()=>{i?.(P)},[P,i]);const O=I.useMemo(()=>t.find(N=>w?n.find(V=>V.name===w).did===N.id:N.id===T),[n,t,w,T]),L=I.useMemo(()=>{if(O?.component){const k=n.find(te=>te.name===O.component),{link:N}=k||{},j=Xt(N)?N[h.locale]:N;if(w)return Oa(j);const V=Xt(O.link)?O.link[h.locale]:O.link;return Oa(Re(j,V||"/"))}return null},[n,h.locale,O,w]),M=I.useMemo(()=>{const{component:k}=O||{},N=n.find(te=>te.name===k),{navigation:j=[]}=N||{};return Ne.flattenNavigation(j,{transform(te,se){return se?.section&&(te.section=te.section||se.section),te}}).filter(te=>te.link).filter(te=>Ne.isMatchSection(te.section,r)).map(te=>({label:te.link,title:te.title[l]||te.title}))},[O,n,r,l]),H=ae(()=>{h.isRoot=!0,h.locale=u,h.type=Il,h.linkDisabled=!1,h.formState=f(),y(),C(),p.current=()=>{}}),E=ae((k={})=>(h.localeList.length>0&&ye.NAVIGATION_I18N_FIELDS.forEach(N=>{og(h.formState[N]).length>1&&(k[N]=h.formState[N])}),Oo(k.role)&&(k.role=void 0),k)),B=ae(({parent:k}={},N=()=>{})=>{h.type="add",h.isRoot=!k,b("parent",k?.id),p.current=j=>{N(j)}}),G=ae((k={},N=()=>{})=>{const{id:j,icon:V,parent:te,component:se,role:fe=[]}=k;b("id",j),b("icon",V),k.from==="team-tmpl"&&(h.linkDisabled=!0);const ve=d(k),Ce=(Se,_e)=>{vc(Se)?h.formState[_e]=ve.reduce((Fe,Pe)=>(Fe[Pe]=Se,Fe),{[u]:Se}):Xt(Se)?h.formState[_e]=tt(Se):h.formState[_e]={}};ye.NAVIGATION_I18N_FIELDS.forEach(Se=>Ce(k[Se],Se)),ye.NAVIGATION_I18N_FIELDS.forEach(Se=>b(Se,h.formState[Se][h.locale])),b("component",se),b("parent",te),b("role",fe||[]),h.type="edit",h.isRoot=!te,p.current=Se=>{const _e=Ep(Se,["id","title","description","icon","component","link","role"]);N(_e)}}),U=ae(k=>{const N=k?.trim();if(r!=="bottomNavigation"){if(!N)return s("common.requiredErrorText",{name:s("navigation.form.title")});if(N.length>wl)return s("navigation.form.titleTooLong",{len:wl})}return!0}),J=ae(k=>{const N=k?.trim();return N&&N.length>Cl?s("navigation.form.descriptionTooLong",{len:Cl}):!0}),ee=ae(k=>k?.startsWith("/")?new URL(k,window.location.origin).href:k),X=ae(async k=>{const N=k?.trim();if(N){if(ko(ee(N)))return!0;try{await Po(N)}catch{return s("navigation.form.invalidIcon")}}return!0}),Z=ae(k=>{const N=k?.trim();return N?X(N):s("common.requiredErrorText",{name:s("navigation.form.icon")})}),q=ae(k=>{const N=k?.trim();return N?Ne.checkLink(N)?!0:s("navigation.form.invalidLink"):h.isRoot?!0:s("common.requiredErrorText",{name:s("navigation.form.link")})}),re=ae(k=>{h.locale=k,ye.NAVIGATION_I18N_FIELDS.forEach(N=>{h.formState[N][k]||(h.formState[N][k]="")}),setTimeout(()=>{C()})}),ne=ae(()=>{const{title:k,link:N}=h.formState;if(r!=="bottomNavigation")for(const j of Object.keys(k)){const V=U(k[j]);if(V!==!0)return V}for(const j of Object.keys(N)){const V=q(N[j]);if(V!==!0)return V}return!0}),ue=ae(k=>{const N=ne();N===!0?p.current(E(k)):Nt.error(N)}),$=ae(k=>{h.locale=u,ye.NAVIGATION_I18N_FIELDS.forEach(N=>{h.formState[N]=Mt(h.formState[N],k)}),i?.(P)}),W=ae(k=>{h.locale=k,ye.NAVIGATION_I18N_FIELDS.forEach(N=>{h.formState[N][k]=h.formState[N][u]}),i?.(P),setTimeout(()=>{C()})});return I.useImperativeHandle(e,()=>({add:B,edit:G,resetImmediate:()=>H(),reset:()=>setTimeout(()=>H(),0),submit:v(ue)}),[B,H,G,v,ue]),g.jsxs(oe,{...o,children:[g.jsx(vd,{sx:{mb:1},onAdd:W,onChange:re,onRemoveLocale:$,defaultLocale:u,locale:h.locale,localeMap:c,locales:h.localeList}),g.jsxs("form",{noValidate:!0,autoComplete:"off",children:[r!=="bottomNavigation"&&g.jsx(ft,{name:"title",control:m,rules:{validate:U},render:({field:k})=>g.jsx(lt,{fullWidth:!0,variant:"outlined",margin:"dense",required:!0,placeholder:s("navigation.form.titlePlaceholder"),label:s("navigation.form.title"),disabled:h.isEdit,error:!!D?.title?.message,helperText:D?.title?.message||" ",...k})}),r==="bottomNavigation"?g.jsx(ft,{name:"icon",control:m,rules:{validate:Z},render:({field:k})=>g.jsx(mo,{fullWidth:!0,required:!0,variant:"outlined",margin:"dense",placeholder:s("navigation.form.iconPlaceholder"),label:s("navigation.form.icon"),error:!!D?.icon?.message,helperText:D?.icon?.message,disabled:h.locale!==u,methods:["select"],iconifyShape:"url",...k})}):g.jsx(ft,{name:"icon",control:m,rules:{validate:X},render:({field:k})=>g.jsx(mo,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:s("navigation.form.iconPlaceholder"),label:s("navigation.form.icon"),error:!!D?.icon?.message,helperText:D?.icon?.message,disabled:h.locale!==u,...k})}),h.isRoot&&g.jsx(ft,{name:"component",control:m,render:({field:k})=>g.jsx(Yi,{fullWidth:!0,margin:"dense",disabled:h.locale!==u&&k.value,label:s("navigation.form.component"),placeholer:s("navigation.form.componentPlaceholder"),options:n.map(N=>({title:N.title,value:N.name,description:N.link})),error:!!D?.component?.message,helperText:D?.component?.message||" ",...Mt(k,"ref")})}),!h.isRoot&&["header"].includes(r)&&g.jsx(ft,{name:"description",control:m,rules:{validate:J},render:({field:k})=>g.jsx(lt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:s("navigation.form.descriptionPlaceholder"),label:s("navigation.form.description"),disabled:h.isEdit,error:!!D?.description?.message,helperText:D?.description?.message||" ",...k})}),g.jsx(ft,{name:"link",control:m,rules:{validate:q},render:({field:k})=>g.jsx(mc,{fullWidth:!0,margin:"dense",children:g.jsx(Uh,{disablePortal:!0,freeSolo:!0,blurOnSelect:!0,autoSelect:!0,fullWidth:!0,disabled:h.linkDisabled,isOptionEqualToValue:N=>N.label,options:M,renderInput:N=>g.jsx(lt,{...N,placeholder:s("navigation.form.linkPlaceholder"),label:s("navigation.form.link"),error:!!D?.link?.message,helperText:D?.link?.message||"/abc/bcd or /abc or https://arcblock.io",slotProps:{input:{startAdornment:L?g.jsx(Dn,{position:"start",sx:{textDecoration:bx(R||"")?"line-through":""},children:L}):null}}}),renderOption:(N,j)=>g.jsxs(oe,{component:"li",...N,children:[j.label,g.jsx(me,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:j.title})]}),margin:"dense",...k,onChange:()=>{},onInputChange:(N,j)=>{k.onChange(j)}})})}),["dashboard","sessionManager"].includes(r)&&g.jsx(ft,{name:"role",control:m,render:({field:k})=>g.jsx(Yi,{fullWidth:!0,multiple:!0,margin:"dense",label:s("navigation.form.role"),placeholer:s("navigation.form.rolePlaceholder"),options:a.map(N=>({title:N.title,value:N.name})),error:!!D?.role?.message,helperText:D?.role?.message||" ",...Mt(k,"ref")})}),r==="bottomNavigation"&&g.jsx(ft,{name:"title",control:m,rules:{validate:U},render:({field:k})=>g.jsx(lt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:s("navigation.form.titlePlaceholder"),label:s("navigation.form.title"),disabled:h.isEdit,error:!!D?.title?.message,helperText:D?.title?.message||" ",...k})})]})]})}ia.propTypes={ref:x.any,section:x.string,components:x.array,rawNavigations:x.array,onChange:x.func};function oa({ref:e=null,section:r="",components:n=[],rawNavigations:t=[]}){const{t:i}=Le(),[o,{setTrue:a,setFalse:s}]=jh(),[l,c]=I.useState("add"),u=I.useRef(null),f=I.useMemo(()=>{const m={add:i("common.create"),edit:i("common.edit")}[l];return m?`${m} ${i("navigation.navigation")}`:"--"},[i,l]),d=I.useCallback(()=>{s(),u.current?.reset()},[s]),p=I.useCallback((v={},m=()=>{})=>{c("add"),u.current?.add(v,y=>m(d,y)),a()},[a,d]),h=I.useCallback((v={},m=()=>{})=>{c("edit"),u.current?.edit(v,y=>m(d,y)),a()},[a,d]);return I.useImperativeHandle(e,()=>({add:p,edit:h,close:d}),[p,h,d]),g.jsx(bc,{open:o,title:f,keepMounted:!0,onClose:d,sx:{".MuiDialogContent-root":{pt:0}},actions:g.jsx(_n,{color:"primary",variant:"contained",onClick:()=>u.current?.submit(),children:i("common.confirm")}),children:g.jsx(ia,{ref:u,section:r,components:n,rawNavigations:t})})}oa.propTypes={ref:x.any,section:x.string,components:x.array,rawNavigations:x.array};function xd({className:e="",add:r=()=>{},edit:n=()=>{},toggle:t=()=>{},del:i=()=>{},data:o,section:a=""}){const{t:s}=Le(),l=["yaml","team-tmpl"].includes(o.from),c=I.isValidElement(o.subtitle);function u(v){v.preventDefault(),v.stopPropagation()}const f=I.useCallback(v=>{u(v),r(o)},[r,o]),d=I.useCallback(v=>{u(v),n(o)},[n,o]),p=I.useCallback(v=>{u(v),t(o)},[t,o]),h=I.useCallback(v=>{u(v),i(o)},[i,o]);return g.jsxs("div",{className:e,children:[!o.parent&&["header","footer","dashboard"].includes(a)&&g.jsx("span",{title:s(c?"navigation.action.noAddSub":"navigation.action.addSub"),children:g.jsx(ze,{size:"small",color:"success",onClick:f,disabled:c,children:g.jsx(xe,{icon:"mdi:plus-box-outline"})})}),g.jsx("span",{title:s(c?"navigation.action.noEdit":"navigation.action.edit"),children:g.jsx(ze,{size:"small",color:"primary",onClick:d,disabled:c||o.from==="team-tmpl",children:g.jsx(xe,{icon:"mdi:pencil-outline"})})}),g.jsx("span",{title:c?s("navigation.action.noEdit"):o.visible?s("navigation.action.hide"):s("navigation.action.show"),children:g.jsx(ze,{size:"small",color:"warning",onClick:p,disabled:c,children:o.visible===!1?g.jsx(xe,{icon:"mdi:eye-off-outline"}):g.jsx(xe,{icon:"mdi:eye-outline"})})}),g.jsx("span",{title:s(l&&!c?"navigation.action.noDel":"navigation.action.del"),children:g.jsx(ze,{disabled:l&&!c,size:"small",color:"error",onClick:h,children:g.jsx(xe,{icon:"mdi:delete"})})})]})}xd.propTypes={data:x.object.isRequired,className:x.string,add:x.func,edit:x.func,toggle:x.func,del:x.func,section:x.string};const Rn=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",Dx=e=>{const r={...e},n=e?.background;return typeof n=="string"?r.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(r.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),r},_x=(e,r="en",n="en")=>{if(typeof e=="string"){if(dd(e)){const i=new URL(e);return i.searchParams.set("locale",r),i.href}if(fd(e))return e;const t=new URL(e,window.location.origin);return t.searchParams.set("locale",r),t.pathname+t.search}return typeof e=="object"?e[r]||e[n]||e.en:e},ir=({navigation:e,locale:r,defaultLocale:n,section:t="header"})=>{if(!e?.length)return e;const i=(o,a)=>o&&typeof o=="object"?o[a]||o[n]||o.en:o;return Wt(e,o=>({...o,title:i(o.title,r),description:i(o.description,r),link:yc(o.items?.length?o.link:_x(o.link,r,n),t),_rawLink:o.link}),"items")},Px=e=>Wt(e,r=>r.role?{...r,role:Array.isArray(r.role)?r.role:[r.role]}:r,"items"),kx=e=>{if(!e?.length)return null;const r=Px(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return r.forEach(t=>{t.section?Array.isArray(t.section)?t.section.forEach(i=>{n[i]?.push(t)}):typeof t.section=="string"&&n[t.section]?.push(t):n.header.push(t)}),n},aa=e=>{if(!e)return null;const r={...e};return r.theme=Dx(r.theme),r.navigation=kx(Ox(r.navigation)),r},Ox=(e=[])=>ta(e,(r,n)=>!!r.link||n.filteredChildren?.length,"items"),Sd=(e,r)=>ta(e,(n,t)=>{const i=!n.role||r&&(n.role.includes(r)||n.role.includes("guest"));return t.isLeaf?i:i&&t.filteredChildren?.length},"items"),Ex={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"/>'},Nx={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 Mx({session:e,locale:r="zh",size:n=24,popperType:t="click",sx:i,...o}){const a=window?.blocklet||{},s=(a.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const h=(a?.componentMountPoints||[]).find(v=>p.component===v.name);return{...p,component:h}}),l=Bt(),c=I.useRef(null),u=Ft({open:!1}),f=ae((p=!u.open)=>{u.open=p}),d=t==="hover"?{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1)}:{onClick:()=>f()};return s.length===0||!e?.user?null:g.jsxs(oe,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...i},...o,...d,children:[g.jsx(ze,{size:"medium",ref:c,children:g.jsx(xe,{icon:Ex,fontSize:n,style:{transform:"scale(1.08)"}})}),g.jsx(Np,{open:u.open,anchorEl:c.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>g.jsx(Mp,{onClickAway:h=>{h.preventDefault(),h.stopPropagation(),f(!1)},children:g.jsx(xc,{...p,timeout:350,children:g.jsxs(Nr,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[g.jsx(Ap,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:s.map(h=>g.jsx(Lp,{disablePadding:!0,children:g.jsxs(qh,{href:Ea(h.link,r),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[h?.component?.did?g.jsx(oe,{component:"img",src:`${Sc}/blocklet/logo-bundle/${h.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(xe,{fontSize:50,icon:h.icon||Nx,color:l.palette.text.secondary}),g.jsx(me,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Ea(h.title,r)})]})},h.id))}),g.jsx(zp,{session:e,children:g.jsx(_n,{variant:"outlined",fullWidth:!0,href:jp,sx:{mt:1},children:r==="zh"?"管理":"Manage"})})]})})})})]})}const wd=x.shape({appLogo:x.node,appName:x.string,theme:x.shape({background:x.string}),enableConnect:x.bool,enableLocale:x.bool,navigation:x.arrayOf(x.shape({title:x.oneOfType([x.string,x.object]),link:x.oneOfType([x.string,x.object]),icon:x.string,items:x.arrayOf(x.shape({title:x.oneOfType([x.string,x.object]),link:x.oneOfType([x.string,x.object])}))}))}),Cd=x.shape({showText:x.bool,showRole:x.bool,switchDid:x.bool,switchProfile:x.bool,switchPassport:x.bool,disableLogout:x.bool,onLogin:x.func,onLogout:x.func,onSwitchDid:x.func,onSwitchProfile:x.func,onSwitchPassport:x.func,menu:x.array,menuRender:x.func,dark:x.bool,size:x.number}),Ax=["admin","owner"],Lx=e=>e.endsWith(".ip.abtnet.io"),zx=e=>e.endsWith(".did.abtnet.io"),jx={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},Fx=1e3*60*60*24*30,Rl=".well-known/service/admin/domains";function Id({locale:e="en",session:r={}}){const n=r?.user,t=Lc(),[i,o]=I.useState(()=>{const d=window.localStorage.getItem("domain-warning-skip");if(!d)return!0;const p=+new Date,h=+new Date(d);return p-h>Fx}),a=ae((d,p={})=>Vn(jx,d,e,"en",p)),s=I.useMemo(()=>{try{const{hostname:d}=new URL(window.location.href);return d}catch{return""}},[]),l=I.useMemo(()=>[a("owner.benefits1"),a("owner.benefits2"),a("owner.benefits3"),a("owner.benefits4"),a("owner.benefits5")],[a]),c=I.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),o(!1)},[]),u=I.useCallback(()=>{const d=Re(window.location.origin,Rl);d.startsWith("http")&&window.open(d,"_blank"),o(!1)},[]),f=n?.role&&Ax.includes(n.role);return window.location.href.includes(Rl)||t||!Lx(s)&&!zx(s)?null:g.jsxs(Fp,{open:i,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>o(!1),children:[g.jsxs(Bp,{sx:{padding:"20px !important"},children:[g.jsx(me,{sx:{fontSize:"20px",fontWeight:"500"},children:a(f?"owner.title":"guest.title")}),g.jsx(me,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:a(f?"owner.description":"guest.description")}),f&&g.jsx(oe,{component:"ul",children:l.map(d=>g.jsx(me,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:d},d))})]}),g.jsxs(Gp,{sx:{px:"12px !important"},children:[g.jsx(wt,{onClick:c,children:a("skip")}),f&&g.jsx(wt,{variant:"contained",onClick:u,children:a("bindDomain")})]})]})}Id.propTypes={locale:x.string,session:x.object};const Ee={};function Bx(e="admin"){let r="/";!window?.blocklet&&window?.env?.apiPrefix&&(r=window.env.apiPrefix);const n=Re(r,Sc,e);return new Hp.WsClient(n,{heartbeatIntervalMs:100*1e3})}function Gx(e="admin"){return Ee[e]||(Ee[e]=Bx(e)),Ee[e]}const $x=(e="admin")=>{const r=I.use(Kn),{session:n}=r??{},t=je(()=>n.user?.did,[n.user]),i=$p(t);return Wp(()=>{Object.keys(Ee).forEach(o=>{Ee[o]?.isConnected()&&Ee[o]?.disconnect(),delete Ee[o]})}),t?(i&&i!==t&&Object.keys(Ee).forEach(o=>{Ee[o]&&(Ee[o].isConnected()&&Ee[o].disconnect(),Ee[o].connect())}),!Ee[e]&&n.user&&(Ee[e]=Gx(e),Ee[e].connect()),Ee[e]):null},Wx={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Hx={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},Ux={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function qx(){const e=Bt();return[...e.breakpoints.keys].reverse().reduce((r,n)=>{const t=qn(e.breakpoints.up(n));return!r&&t?n:r},null)||"xs"}const Er=new Up,Vx=e=>!Oo(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,Kx=e=>{if(!e)return null;const{meta:r,target:n}=e;return{metaLink:r?.id,targetLink:n?.id}},Yx=async(e,r)=>{try{return await Er.user.getProfileUrl({did:e,locale:r})}catch(n){console.error(n);return}},Jx=async(e,r)=>{const{type:n,did:t}=e;return wc.isSameAddr(n,"did")?await Yx(t,r)||Pn.getLink(e):Pn.getLink(e)},Xx=async(e,r,n=!0)=>{const t=Pn.toTextList(e);return await Promise.all(t.map(async i=>{if(i instanceof Pn.Link){if(n){const o=await Jx(i,r),{type:a,chainId:s,did:l}=i;return wc.isSameAddr(a,"dapp")?`<em class="dapp" data-type="${a}" data-chain-id="${s}" data-did="${l}">${i.text}</em>`:o?`<a target="_blank" rel="noopener noreferrer" class="link" href="${o}">${i.text}</a>`:`<em class="common" data-type="${a}" data-chain-id="${s}" data-did="${l}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))},Qx=e=>qp.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),Zx={comment:(e,r)=>r&&r>1?g.jsxs(g.Fragment,{children:["left ",r," comments on your ",e]}):g.jsxs(g.Fragment,{children:["commented on your ",e]}),like:e=>g.jsxs(g.Fragment,{children:["liked your ",e]}),follow:()=>g.jsx(g.Fragment,{children:"followed you"}),tips:e=>g.jsxs(g.Fragment,{children:["gave tips to your ",e]}),mention:e=>g.jsxs(g.Fragment,{children:["mentioned you in ",e]}),assign:()=>g.jsx(g.Fragment,{children:"assigned you a task"})};function Jt({user:e,color:r=void 0}){const{palette:n}=Bt(),t=Yn(Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),i=r||n.text.primary;return g.jsx(Cc,{href:t,color:i,target:"_blank",onClick:o=>{o.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}Jt.displayName="UserLink";function eS({activity:e,users:r,actors:n,extra:t={},mountPoint:i=""}){const{palette:o}=Bt(),{type:a,target:s}=e||{},{type:l}=s||{},{linkColor:c=o.text.primary}=t||{},u=je(()=>{if(!Array.isArray(r))return new Map;const m=new Map;return r.forEach(y=>{y?.did&&!m.has(y.did)&&m.set(y.did,y)}),m},[r]),f=je(()=>Array.isArray(n)?n.map(m=>m?u.get(m)||{did:m,fullName:"System"}:null).filter(Boolean):[],[n,u]),d=ae(()=>{if(!Array.isArray(f)||f.length===0)return null;if(f.length===1)return g.jsx(Jt,{user:f[0],color:c});const m=f.slice(0,-1),y=f[f.length-1];if(f.length===2)return g.jsxs(g.Fragment,{children:[g.jsx(Jt,{user:m[0],color:c})," and ",g.jsx(Jt,{user:y,color:c})]});const b=f.length>3,C=b?f.slice(0,2):m;return g.jsxs(g.Fragment,{children:[C.map((D,P)=>g.jsxs(Q.Fragment,{children:[g.jsx(Jt,{user:D,color:c}),P<C.length-1?", ":""]},D.did)),b?`, and ${f.length-2} others`:g.jsxs(g.Fragment,{children:[", and ",g.jsx(Jt,{user:y,color:c})]})]})}),p=ae(()=>{const m=a?Zx[a]:null;return m?m(l,r.length):null}),h=je(()=>{const m=d(),y=p();return!m||!y?null:g.jsxs(g.Fragment,{children:[m," ",y]})},[a,l,f,d,p]),v=je(()=>{if(!e)return null;const m=Kx(e);return m?.targetLink?Re(i,m.targetLink):null},[e,i]);return!a||Oo(s)?null:g.jsxs(g.Fragment,{children:[h," ",v&&g.jsx(Cc,{href:v,color:c,target:"_blank",sx:{textDecoration:"none"},onClick:m=>{m.customPreventRedirect=!0},children:s.name})]})}const tS={normal:Na,success:Wx,info:Na,warning:Hx,error:Ux},rS=dr(Jp)`
|
|
44
|
-
font-size: 20px;
|
|
45
|
-
`,nS=dr.div`
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: flex-start;
|
|
48
|
-
gap: 8px;
|
|
49
|
-
flex: 1;
|
|
50
|
-
width: 0;
|
|
51
|
-
`,iS=dr.div`
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
margin-left: auto;
|
|
55
|
-
margin-right: -8px;
|
|
56
|
-
width: 44px;
|
|
57
|
-
`,oS={xl:"400px",lg:"400px",md:"400px",sm:"300px"},aS=dr(Yp)`
|
|
58
|
-
display: flex;
|
|
59
|
-
color: #fff;
|
|
60
|
-
align-items: center;
|
|
61
|
-
padding: 12px 16px;
|
|
62
|
-
border-radius: 4px;
|
|
63
|
-
box-shadow:
|
|
64
|
-
0px 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
65
|
-
0px 6px 10px 0px rgba(0, 0, 0, 0.14),
|
|
66
|
-
0px 1px 18px 0px rgba(0, 0, 0, 0.12);
|
|
67
|
-
|
|
68
|
-
${({severity:e,breakpoint:r})=>{const n=oS[r]||"400px";return e==="success"?`
|
|
69
|
-
background-color: ${Vp[600]} !important;
|
|
70
|
-
width: ${n};
|
|
71
|
-
`:e==="error"?`
|
|
72
|
-
background-color: #d32f2f !important;
|
|
73
|
-
width: ${n};
|
|
74
|
-
`:e==="info"?`
|
|
75
|
-
background-color: #1976d2 !important;
|
|
76
|
-
width: ${n};
|
|
77
|
-
`:e==="warning"?`
|
|
78
|
-
background-color: ${Kp[700]} !important;
|
|
79
|
-
width: ${n};
|
|
80
|
-
`:`
|
|
81
|
-
background-color: #333;
|
|
82
|
-
width: ${n};
|
|
83
|
-
`}}
|
|
84
|
-
`,sS=dr.div`
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: column;
|
|
88
|
-
.title {
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
text-overflow: ellipsis;
|
|
91
|
-
display: -webkit-box;
|
|
92
|
-
-webkit-line-clamp: 1;
|
|
93
|
-
-webkit-box-orient: vertical;
|
|
94
|
-
font-weight: bold;
|
|
95
|
-
}
|
|
96
|
-
.desc {
|
|
97
|
-
overflow: hidden;
|
|
98
|
-
text-overflow: ellipsis;
|
|
99
|
-
display: -webkit-box;
|
|
100
|
-
-webkit-line-clamp: 3;
|
|
101
|
-
-webkit-box-orient: vertical;
|
|
102
|
-
word-break: break-word;
|
|
103
|
-
line-height: 1.2;
|
|
104
|
-
.link,
|
|
105
|
-
.dapp,
|
|
106
|
-
.common {
|
|
107
|
-
color: ${Vi.white};
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
`;function lS({ref:e=void 0,keyId:r,notification:n={},viewAllUrl:t,content:i=null}){const o=qx(),[a,s]=I.useState(n.description||""),l=tS[n.severity||""],{closeSnackbar:c}=Ic(),u=()=>c(r);I.useEffect(()=>{Xx(n.description||"","en").then(m=>{s(m)})},[n.description]);const f=m=>{m.stopPropagation(),c(r),m?.customPreventRedirect||window.open(t,"_blank")},d=je(()=>Vx(n),[n]),p=je(()=>n?.activity,[n]),h=je(()=>!p||p.type==="tips"?null:p?.meta,[p]),v=eS({activity:p,users:[n?.actorInfo],actors:[n?.activity?.actor],extra:{linkColor:Vi.white}});return g.jsxs(aS,{ref:e,severity:n.severity,breakpoint:o,children:[g.jsxs(nS,{children:[l?g.jsx(xe,{icon:l,fontSize:24}):null,g.jsx(sS,{onClick:f,style:{width:"calc(100% - 30px)"},children:g.jsx(oe,{children:d?g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"title",children:v}),h?g.jsx(me,{variant:"subtitle2",component:"p",sx:{fontSize:16,display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:Vi.white,lineHeight:1.2},children:h?.content}):null]}):g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"title",children:n.title}),i||g.jsx(me,{component:"span",className:"desc",dangerouslySetInnerHTML:{__html:Qx(a)}})]})})})]}),g.jsx(iS,{children:g.jsx(ze,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:g.jsx(rS,{})},"close")})]})}const yo=Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),cS=e=>Yn(yo,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function Rd({session:e={}}){const{unReadCount:r,user:n,setUnReadCount:t}=e,i=je(()=>n?.did,[n]),{enqueueSnackbar:o}=Ic(),a=Rc(),s=I.useMemo(()=>!i||n?.isPreviewUser||i===window.blocklet.did,[i,n]),l=I.useMemo(()=>a.arcSphere||a.wallet,[a]),c=je(()=>window.blocklet?.serverVersion,[]),u=$x("user"),f=je(()=>`${window.blocklet.did}/${i}/${ye.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,[i]),d=je(()=>`${window.blocklet.did}/${i}/${ye.EVENTS.NOTIFICATION_BLOCKLET_READ}`,[i]),p=I.useCallback(v=>{const{receivers:m}=v??{},{receiver:y}=m[0]??{};if(y===i){t(C=>C+1);const b=Xp(c,"1.16.42-beta-20250407");if(!l&&v.source==="component"&&b){const C=cS(v),{severity:D,description:P}=v||{},w=["error","warning"].includes(D)||v.sticky;o(P,{variant:D,autoHideDuration:w?null:5e3,content:_=>g.jsx(lS,{viewAllUrl:C,keyId:_,notification:v})})}}},[i,t,o,c,l]),h=I.useCallback(v=>{const{receiver:m,readCount:y}=v??{};m===i&&t(b=>Math.max(b-y,0))},[i,t]);return I.useEffect(()=>(u&&!s&&(u.on(f,p),u.on(d,h)),()=>{u&&!s&&(u.off(f,p),u.off(d,h))}),[u,t,p,f,h,d,s]),!e.user||!yo?null:g.jsx(ze,{size:"medium",variant:"outlined",href:Yn(yo,{read:r<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:g.jsx(Qp,{badgeContent:r,color:"error",invisible:r===0,children:g.jsx(Zp,{style:{width:"auto",height:24}})})})}Rd.propTypes={session:x.object};const Td=e=>{const{response:r}=e;return r?`Request failed: ${r.status} ${r.statusText}: ${JSON.stringify(r.data)}`:e.message};function Dd(e){const r=ae(async({search:o,page:a=1,pageSize:s=20})=>{try{return await Er.user.getOrgs({search:o,page:a,pageSize:s})}catch(l){return console.error(l),{orgs:[],paging:{page:a,pageSize:s,total:0}}}}),n=ae(async({name:o,description:a})=>{try{return(await Er.user.createOrg({name:o,description:a})).data}catch(s){return console.error(s),Nt.error(Td(s)),null}}),t=ae(async o=>{try{return await Er.user.getOrg(o)}catch(a){return e.logout(),console.error(a),null}}),i=ae(async o=>{try{const a=await Er.user.getRole(o);return a.orgId?await t(a.orgId):null}catch(a){return console.error(a),null}});return{getOrgs:r,createOrg:n,getCurrentOrg:i}}const _d={en:{search:"Search",orgs:"Organizations",loadingMore:"Loading more",myJoinedEmpty:"You have not joined any organizations yet",createNew:"Create New Organization",viewAll:"View All Organizations",nameEmpty:"Name cannot be empty",nameTooLong:"Name must be less than {length} characters",descriptionTooLong:"Description must be less than {length} characters",cancel:"Cancel",create:"Create",mutate:{title:"{mode} Organization",name:"Name",description:"Description"}},zh:{search:"搜索",orgs:"组织",loadingMore:"加载更多",myJoinedEmpty:"您还没有加入任何组织",createNew:"创建新组织",viewAll:"查看所有组织",nameEmpty:"名称不能为空",nameTooLong:"名称不能超过{length}个字符",descriptionTooLong:"描述不能超过{length}个字符",cancel:"取消",create:"创建",mutate:{title:"{mode}组织",name:"组织名称",description:"组织描述"}}};function Pd({onSuccess:e=Ze,onCancel:r=Ze,locale:n="en"}){const[t,i]=I.useState(!1),[o,a]=I.useState(""),{createOrg:s}=Dd(),l=ae((d,p={})=>Vn(_d,d,n,"en",p)),c=Ft({name:"",description:""}),u=async()=>{const d=c.name.trim();if(!d){a(l("nameEmpty"));return}if(d.length>25){a(l("nameTooLong",{length:25}));return}const p=c.description.trim();if(p.length>255){a(l("descriptionTooLong",{length:25}));return}a(""),i(!0);try{await s({name:d,description:p}),e()}catch(h){console.error(h);const v=Td(h);a(v),Nt.error(v)}finally{i(!1)}},f=g.jsxs("div",{children:[g.jsx(me,{component:"div",style:{marginTop:16},children:g.jsx(lt,{label:l("mutate.name"),autoComplete:"off",variant:"outlined",name:"name","data-cy":"mutate-org-input-name",fullWidth:!0,autoFocus:!0,value:c.name,onChange:d=>{a(""),c.name=d.target.value},disabled:t})}),g.jsx(me,{component:"div",style:{marginTop:16,marginBottom:16},children:g.jsx(lt,{label:l("mutate.description"),autoComplete:"off",variant:"outlined",name:"description","data-cy":"mutate-org-input-description",fullWidth:!0,value:c.description,onChange:d=>{a(""),c.description=d.target.value},disabled:t,multiline:!0,rows:3})})]});return g.jsxs(bc,{title:l("mutate.title",{mode:l("create")}),fullWidth:!0,open:!0,onClose:r,showCloseButton:!1,actions:g.jsxs(g.Fragment,{children:[g.jsx(_n,{onClick:r,color:"inherit",children:l("cancel")}),g.jsxs(_n,{"data-cy":"mutate-org-confirm",onClick:u,color:"primary",disabled:t,variant:"contained",autoFocus:!0,children:[t&&g.jsx(gc,{size:16}),l("create")]})]}),children:[g.jsx(eh,{component:"div",children:f}),!!o&&g.jsx(th,{severity:"error",style:{width:"100%",margin:0},children:o})]})}Pd.propTypes={onSuccess:x.func,onCancel:x.func,locale:x.string};const Tl=20;function kd({session:e,locale:r="en"}){const[n,t]=I.useState(null),[i,o]=I.useState(""),[a,s]=I.useState(!1),l=I.useRef(null),c=ae((E,B={})=>Vn(_d,E,r,"en",B)),{getOrgs:u,getCurrentOrg:f}=Dd(e),d=I.useMemo(()=>e?.user?.role||"",[e?.user?.role]),{data:p={}}=rh(()=>f(d),{ready:!!d,refreshDeps:[d],onError:E=>{console.error("Failed to get organization role",E)}}),h=I.useMemo(()=>p||{name:e?.user?.passports?.find(E=>E.name===d)?.title||d||"-"},[p,d,e?.user?.passports]),v=nh(i,{wait:500}),{data:m,loadMore:y,loadingMore:b,reload:C}=Vh(async E=>{const B={page:E?Math.ceil(E.list.length/Tl)+1:1,pageSize:Tl,search:i},G=await u(B),{orgs:U=[],paging:J}=G||{};return{list:U,total:J?.total||0}},{reloadDeps:[v],isNoMore:E=>E?.list.length?E.list.length>=E?.total:!0,onError:E=>{console.error("Failed to fetch organizations list",E)}}),{list:D=[],total:P=0}=m||{},w=D.length<P,_=ae(E=>{const B=E.target,{scrollTop:G,scrollHeight:U,clientHeight:J}=B;U-G-J<50&&!b&&w&&y()}),S=!!n;I.useEffect(()=>{S&&C()},[S,C]);const R=E=>{t(E.currentTarget)},T=()=>{t(null),s(!1),o("")},O=E=>{e.switchPassport(()=>{window.location.reload()},{orgId:E.id}),T()},L=()=>{s(!0)},M=()=>{const E=Yn(Re(ye.WELLKNOWN_SERVICE_PATH_PREFIX,"user/orgs"),{locale:r});window.location.href=E,T()},H=E=>g.jsxs(kn,{onClick:()=>O(E),selected:E.id===h.id,sx:{py:1.5,px:2,"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.hover"}}},children:[g.jsx(Ua,{sx:{minWidth:40},children:g.jsx(rr,{sx:{width:28,height:28,fontSize:14,bgcolor:E.isOwner?"primary.main":"grey.400"},children:E.name?.[0]})}),g.jsxs(oe,{sx:{display:"flex",alignItems:"center",flex:1},children:[g.jsx(Aa,{sx:{"& .MuiListItemText-primary":{mb:0},"& .MuiListItemText-secondary":{mt:"-2px"}},primary:g.jsx(me,{variant:"body2",sx:{fontWeight:500,lineHeight:1.2},children:E.name}),secondary:g.jsx(me,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.1},children:E.passports?.[0]?.title})}),E.id===h.id&&g.jsx(oe,{sx:{display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:g.jsx(me,{variant:"caption",color:"primary",sx:{fontSize:10},children:"✓"})})]})]},E.id);return g.jsxs(oe,{children:[g.jsxs(wt,{ref:l,onClick:R,endIcon:g.jsx(Kh,{}),sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:1,textTransform:"none",color:"text.primary","&:hover":{backgroundColor:"action.hover"}},"data-testid":"org-switch-button",children:[g.jsx(rr,{sx:{width:24,height:24,fontSize:12,bgcolor:"primary.main"},children:h.name?.[0]}),g.jsx(me,{variant:"body2",sx:{fontWeight:500},children:h.name})]}),g.jsxs(ih,{anchorEl:n,open:S,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{width:340,maxHeight:480,overflow:"visible",mt:.5,borderRadius:2,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.08)",border:E=>`1px solid ${E.palette.divider}`}},MenuListProps:{sx:{py:0}},children:[g.jsx(oe,{sx:{p:1.5,pb:1},children:g.jsx(lt,{fullWidth:!0,size:"small",placeholder:c("search"),value:i,onChange:E=>o(E.target.value),InputProps:{startAdornment:g.jsx(Dn,{position:"start",children:g.jsx(Yh,{fontSize:"small",color:"action"})})},onClick:E=>E.stopPropagation(),onKeyDown:E=>E.stopPropagation(),sx:{"& .MuiOutlinedInput-root":{borderRadius:1}}})}),g.jsx(oe,{sx:{px:2,pb:1},children:g.jsx(me,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:11,fontWeight:600,textTransform:"uppercase",letterSpacing:.5},children:c("orgs")})}),g.jsx(oe,{sx:{maxHeight:240,overflow:"auto"},onScroll:_,children:D.length>0?g.jsx(g.Fragment,{children:D.map((E,B)=>{const G=B===D.length-1;return g.jsxs(oe,{children:[H(E),G&&w&&g.jsx(oe,{sx:{display:"flex",justifyContent:"center",py:1,color:"text.secondary",fontSize:"0.875rem"},children:b?c("loadingMore"):""})]},E.id)})}):g.jsx(oe,{sx:{px:2,py:3,textAlign:"center"},children:g.jsx(me,{variant:"body2",color:"text.secondary",children:c("myJoinedEmpty")})})}),g.jsx(Ma,{}),g.jsxs(kn,{onClick:L,sx:{py:1.5,px:2,"&:hover":{backgroundColor:"action.hover"}},children:[g.jsx(Ua,{sx:{minWidth:40},children:g.jsx(rr,{sx:{width:28,height:28,bgcolor:"success.main",color:"success.contrastText"},children:g.jsx(Jh,{fontSize:"small"})})}),g.jsx(Aa,{primary:g.jsx(me,{variant:"body2",sx:{fontWeight:500},children:c("createNew")})})]}),g.jsx(Ma,{}),g.jsx(oe,{sx:{p:1.5},children:g.jsx(wt,{onClick:M,variant:"text",component:"a",size:"small",endIcon:g.jsx(Xh,{fontSize:"small"}),sx:{color:"primary.main",fontWeight:500,p:0,fontSize:14,minWidth:"auto","&:hover":{backgroundColor:"transparent",textDecoration:"underline"}},children:c("viewAll")})})]}),a&&g.jsx(Pd,{onSuccess:M,onCancel:()=>s(!1),locale:r})]})}kd.propTypes={session:x.object.isRequired,locale:x.string};const uS=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification"),dS=e=>{const{settings:r={}}=e??window?.blocklet??{};return r?.org?.enabled||!1},fS=()=>{const{pathname:e=""}=window.location||{};return e.startsWith(ye.WELLKNOWN_BLOCKLET_ADMIN_PATH)};function sa({formattedBlocklet:e,addons:r=null,showDomainWarningDialog:n=!0,sessionManagerProps:t={showRole:!0}}){const i=I.use(Kn),{locale:o,languages:a,defaultLocale:s}=Le()||{},{enableConnect:l=!0,enableLocale:c=!0}=e,u=!!i?.session?.user;let f=ir({navigation:e?.navigation?.sessionManager,locale:o,defaultLocale:s})||[];f=Sd(f,i?.session?.user?.role);const d=(()=>{if(r&&typeof r!="function")return Array.isArray(r)?r:[r];let v=[];if(uS()&&v.push(g.jsx(Rd,{session:i.session},"notification-addon")),c&&o&&a.length>1&&v.push(g.jsx(oh,{showText:!1},"locale-selector")),v.push(g.jsx(ah,{},"theme-mode-toggle")),l&&i){const m=[];u&&(f?f.slice(0,5):[]).forEach(y=>{m.push({label:y.title,icon:y.icon?g.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),v.push(g.jsx(Mx,{session:i.session,locale:o},"session-blocklet")),v.push(g.jsx(sh,{session:i.session,locale:o,menu:m,showRole:!0,...t},"session-user"))}return!fS()&&dS(e)&&i?.session?.user&&v.unshift(g.jsx(kd,{session:i.session,locale:o},"orgs-switch")),typeof r=="function"&&(v=r(v)||[]),v})(),p=Array.isArray(d)?d:[d],h=[n?g.jsx(Id,{session:i?.session,locale:o}):null,...p].filter(Boolean);return I.createElement(g.Fragment,null,...h)}sa.propTypes={formattedBlocklet:x.object.isRequired,addons:x.oneOfType([x.func,x.node]),sessionManagerProps:Cd,showDomainWarningDialog:x.bool};const Od=()=>{const e=Rc();I.useEffect(()=>{(e.wallet||e.arcSphere)&&lh.call("arcHideTopBar","{}")},[e])},pS="blocklet-ui-react-embed-mode";function Ed(e){const r=e.displayName||e.name||"Component";function n(t){const[i]=ng(pS,{defaultValue:0,listenStorageChange:!0});return i===1?null:g.jsx(e,{...t})}return n.displayName=`withHideWhenEmbed(${r})`,n}const hS={en:{products:"Products"},zh:{products:"产品"},"zh-TW":{products:"產品"},ja:{products:"製品"}},gS=e=>{if(!e?.length)return{navItems:[],activeId:null};let r=1;const n=Wt(e,o=>{const a=o.icon?g.jsx(rt,{icon:o.icon}):null;if(o.items)return{id:`${r++}`,label:o.title,icon:a,children:o.items};let s={};return(o.link?.startsWith("http")||o.link?.startsWith("//"))&&(s={target:"_blank",rel:"noreferrer"}),{id:`${r++}`,label:g.jsx("a",{href:yc(o.link,"header"),...s,children:o.title}),icon:a,description:o.description,link:o.link}},"items"),t=ud(n),i=pd(t.map(o=>o.link));return{navItems:n,activeId:i>=0?t[i].id:null}};function vS({meta:e={},addons:r=void 0,sessionManagerProps:n={showRole:!0},homeLink:t=Rn,theme:i={},hideNavMenu:o=!1,showDomainWarningDialog:a=!0,...s}){Od();const l=Bt(),{locale:c,defaultLocale:u}=Le()||{},f=ae((P,w={})=>Vn(hS,P,c,"en",w)),d=I.useMemo(()=>{const P=Object.assign({},window.blocklet,e);try{return aa(P)}catch(w){return console.error("Failed to format blocklet info",w,P),P}},[e]),p=I.useMemo(()=>_c(l,i),[l,i]),h=Eo({meta:e,theme:i}),{productsOrder:v,productsType:m}=I.useMemo(()=>{let{USE_ARCBLOCK_THEME:P,USE_AIGNE_THEME:w}=d;return P=parseInt(P,10),w=parseInt(w,10),qa(w)?{productsOrder:w,productsType:"AIGNE"}:qa(P)?{productsOrder:P,productsType:"ARCBLOCK"}:{productsOrder:null,productsType:null}},[d]);if(!d.appName)return null;const y=ir({navigation:d?.navigation?.header,locale:c,defaultLocale:u}),b=gS(y),{navItems:C,activeId:D}=b;return m&&Number.isInteger(v)&&C.splice(v,0,{label:f("products"),children:()=>g.jsx(uh,{type:m})}),g.jsx(Pc,{theme:p,children:g.jsx(mS,{homeLink:t,logo:g.jsx("img",{src:h,alt:"logo"}),addons:g.jsx(sa,{formattedBlocklet:d,addons:typeof r=="function"?P=>r(P,{navigation:b}):r,sessionManagerProps:n,showDomainWarningDialog:a}),...Mt(s,["bordered"]),$bordered:s?.bordered,$bgcolor:p.palette.background.default,className:st("blocklet__header",s.className),children:o||!C?.length?null:({isMobile:P})=>g.jsx(dh,{mode:P?"inline":"horizontal",activeId:D,items:C,className:"header-nav",bgColor:"transparent",textColor:p.palette.grey[500],activeTextColor:p.palette.text.primary})})})}const mS=Xe(ch)`
|
|
111
|
-
${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
|
|
112
|
-
.header-logo {
|
|
113
|
-
min-width: 44px;
|
|
114
|
-
}
|
|
115
|
-
${({$bordered:e,theme:r})=>e?`border-bottom: 1px solid ${r.palette.divider};`:""}
|
|
116
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
117
|
-
.header-logo {
|
|
118
|
-
min-width: 32px;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
`,bS=Tc(Ed(vS),{FallbackComponent:Dc});function Nd({name:e="",logo:r="",description:n="",...t}){if(!e&&!r&&!n)return null;const i=I.isValidElement(r)?r:g.jsx("img",{src:r,alt:e});return g.jsxs(yS,{...t,children:[g.jsxs("div",{children:[r&&g.jsx(oe,{component:"a",href:"/",className:"footer-brand-logo",children:i}),e&&g.jsx("div",{className:"footer-brand-name",children:e})]}),n&&g.jsx("div",{className:"footer-brand-desc",children:n})]})}Nd.propTypes={name:x.node,logo:x.node,description:x.string};const yS=Xe("div")`
|
|
122
|
-
display: flex;
|
|
123
|
-
flex-direction: column;
|
|
124
|
-
font-size: 14px;
|
|
125
|
-
a {
|
|
126
|
-
text-decoration: none;
|
|
127
|
-
color: inherit;
|
|
128
|
-
}
|
|
129
|
-
> div:first-of-type {
|
|
130
|
-
display: flex;
|
|
131
|
-
align-items: center;
|
|
132
|
-
}
|
|
133
|
-
.footer-brand-logo {
|
|
134
|
-
display: flex;
|
|
135
|
-
align-items: center;
|
|
136
|
-
margin-right: 12px;
|
|
137
|
-
line-height: 1;
|
|
138
|
-
img,
|
|
139
|
-
svg {
|
|
140
|
-
width: auto;
|
|
141
|
-
height: 40px;
|
|
142
|
-
max-height: 40px;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
.footer-brand-name {
|
|
146
|
-
font-size: 18px;
|
|
147
|
-
color: ${e=>e.theme.palette.grey[900]};
|
|
148
|
-
}
|
|
149
|
-
.footer-brand-desc {
|
|
150
|
-
white-space: pre-line;
|
|
151
|
-
margin-top: 16px;
|
|
152
|
-
color: ${e=>e.theme.palette.text.secondary};
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
${e=>e.theme.breakpoints.down("sm")} {
|
|
156
|
-
width: auto;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
160
|
-
.footer-brand-logo {
|
|
161
|
-
img,
|
|
162
|
-
svg {
|
|
163
|
-
height: 32px;
|
|
164
|
-
max-height: 32px;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
`;function xo({links:e=[],flowLayout:r=!1,columns:n,...t}){const[i,o]=I.useState(-1),a=Lc({key:"md"}),s=e.some(f=>f.items?.length),l=!a&&s&&sg(n)&&n>1,c=({label:f,link:d,icon:p,render:h,props:v})=>{let m=f;if(h)m=h({label:f,link:d,props:v});else if(d&&vc(d)){const y=d.startsWith("http")||d.startsWith("//"),b=fd(d)?{}:{target:y?"_blank":"_self",rel:y?"noreferrer noopener":void 0};m=g.jsx("a",{href:d,"aria-label":`Footer link for ${f}`,...b,...v,children:f})}return g.jsxs(g.Fragment,{children:[p&&g.jsx(rt,{icon:p,size:20,sx:{mr:.5}}),m]})},u=je(()=>e?.length?r?e.map((f,d)=>g.jsx("span",{className:"footer-links-item",children:c(f)},d)):l?px(e,{columns:n}).map((f,d)=>g.jsx("div",{className:"footer-links-column",children:f.filter(p=>p.group).map((p,h)=>{const{items:v}=p;return g.jsxs("div",{className:"footer-links-group",children:[g.jsx("span",{className:"footer-links-item",children:c(p)}),!!v?.length&&g.jsx("div",{className:"footer-links-sub",children:v.map((m,y)=>g.jsx("span",{className:st("footer-links-item",{"footer-links-item--new":m.isNew}),children:c(m)},y))})]},h)})},d)):e.map((f,d)=>{const{items:p}=f,h=d===i;return g.jsxs("div",{className:st("footer-links-group",{"footer-links-group--active":h}),onClick:()=>o(i===d?-1:d),children:[g.jsxs("span",{className:"footer-links-item",children:[c(f),!!p?.length&&g.jsx("span",{className:"footer-links-group-expand-icon",children:g.jsx(fh,{style:{transform:`rotate(${h?180:0}deg)`}})})]}),!!p?.length&&g.jsx("div",{className:"footer-links-sub",children:p.map((v,m)=>g.jsx("span",{className:st("footer-links-item",{"footer-links-item--new":v.isNew}),children:c(v)},m))})]},d)}):null,[e,r,l,i]);return e?.length?g.jsx(xS,{...t,className:st(t.className,{"footer-links--grouped":s,"footer-links--flow":r,"footer-links--columns":l}),children:g.jsx("div",{className:"footer-links-inner",children:u})}):null}xo.propTypes={links:x.arrayOf(x.shape({label:x.string,link:x.string,render:x.func,props:x.object})),flowLayout:x.bool,columns:x.number.isRequired};const xS=Xe("div")`
|
|
169
|
-
overflow: hidden;
|
|
170
|
-
color: ${({theme:e})=>e.palette.text.secondary};
|
|
171
|
-
.footer-links-inner {
|
|
172
|
-
display: flex;
|
|
173
|
-
justify-content: space-between;
|
|
174
|
-
margin: 0 -8px;
|
|
175
|
-
}
|
|
176
|
-
.footer-links-group,
|
|
177
|
-
.footer-links-sub {
|
|
178
|
-
display: flex;
|
|
179
|
-
flex-direction: column;
|
|
180
|
-
}
|
|
181
|
-
.footer-links-group-expand-icon {
|
|
182
|
-
display: none;
|
|
183
|
-
position: absolute;
|
|
184
|
-
right: 16px;
|
|
185
|
-
top: 50%;
|
|
186
|
-
transform: translate(0, -50%);
|
|
187
|
-
line-height: 1;
|
|
188
|
-
svg {
|
|
189
|
-
width: auto;
|
|
190
|
-
height: 0.75em;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
.footer-links-item {
|
|
194
|
-
display: inline-flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
position: relative;
|
|
197
|
-
padding: 6px 8px;
|
|
198
|
-
font-size: 14px;
|
|
199
|
-
white-space: nowrap;
|
|
200
|
-
&--new::after {
|
|
201
|
-
content: 'New';
|
|
202
|
-
color: ${({theme:e})=>e.palette.info.main};
|
|
203
|
-
background-color: ${({theme:e})=>e.palette.info.light};
|
|
204
|
-
padding: 1px 8px;
|
|
205
|
-
border-radius: 10px/50%;
|
|
206
|
-
margin-left: 8px;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
&.footer-links--grouped {
|
|
210
|
-
.footer-links-group {
|
|
211
|
-
> .footer-links-item {
|
|
212
|
-
font-weight: 600;
|
|
213
|
-
color: ${({theme:e})=>e.palette.text.primary};
|
|
214
|
-
}
|
|
215
|
-
.footer-links-sub {
|
|
216
|
-
margin-top: 8px;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
a {
|
|
221
|
-
display: inline-block;
|
|
222
|
-
max-width: 150px;
|
|
223
|
-
color: inherit;
|
|
224
|
-
text-decoration: none;
|
|
225
|
-
transition: color 0.2s ease-in-out;
|
|
226
|
-
&:hover {
|
|
227
|
-
color: ${({theme:e})=>e.palette.text.primary};
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
/* columns 布局 */
|
|
231
|
-
&.footer-links--columns {
|
|
232
|
-
.footer-links-inner {
|
|
233
|
-
gap: 96px;
|
|
234
|
-
}
|
|
235
|
-
.footer-links-column {
|
|
236
|
-
display: flex;
|
|
237
|
-
flex-direction: column;
|
|
238
|
-
}
|
|
239
|
-
.footer-links-group {
|
|
240
|
-
.footer-links-sub {
|
|
241
|
-
margin-top: 2px;
|
|
242
|
-
margin-bottom: 12px;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/* flow 布局 */
|
|
248
|
-
&.footer-links--flow {
|
|
249
|
-
display: inline-flex;
|
|
250
|
-
.footer-links-inner {
|
|
251
|
-
justify-content: center;
|
|
252
|
-
flex-wrap: wrap;
|
|
253
|
-
margin: 0 -8px;
|
|
254
|
-
.footer-links-item {
|
|
255
|
-
padding: 0 8px;
|
|
256
|
-
}
|
|
257
|
-
.footer-links-item + .footer-links-item::before {
|
|
258
|
-
content: '';
|
|
259
|
-
position: absolute;
|
|
260
|
-
left: 0;
|
|
261
|
-
top: 50%;
|
|
262
|
-
transform: translate(0, -50%);
|
|
263
|
-
height: 1em;
|
|
264
|
-
border-left: 1px solid ${e=>e.theme.palette.text.secondary};
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/* 移动端样式 */
|
|
270
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
271
|
-
.footer-links-inner {
|
|
272
|
-
flex-direction: column;
|
|
273
|
-
margin: 0;
|
|
274
|
-
}
|
|
275
|
-
.footer-links-sub {
|
|
276
|
-
display: none;
|
|
277
|
-
}
|
|
278
|
-
.footer-links-group {
|
|
279
|
-
position: relative;
|
|
280
|
-
padding: 12px 0;
|
|
281
|
-
.footer-links-item .footer-links-group-expand-icon {
|
|
282
|
-
display: inline-block;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
.footer-links-group + .footer-links-group {
|
|
286
|
-
border-top: 1px solid ${e=>e.theme.palette.grey[200]};
|
|
287
|
-
}
|
|
288
|
-
.footer-links-group--active {
|
|
289
|
-
.footer-links-sub {
|
|
290
|
-
display: flex;
|
|
291
|
-
flex-direction: row;
|
|
292
|
-
flex-wrap: wrap;
|
|
293
|
-
.footer-links-item {
|
|
294
|
-
flex: 0 0 50%;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
.footer-links-item {
|
|
299
|
-
padding-left: 0;
|
|
300
|
-
padding-right: 0;
|
|
301
|
-
font-size: 13px;
|
|
302
|
-
}
|
|
303
|
-
&.footer-links--grouped {
|
|
304
|
-
.footer-links-group {
|
|
305
|
-
> .footer-links-item {
|
|
306
|
-
font-size: 14px;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
&.footer-links--flow {
|
|
312
|
-
.footer-links-inner {
|
|
313
|
-
flex-direction: row;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
`;function Md({items:e=null,...r}){return e?.length?g.jsx(SS,{...r,children:e.map((n,t)=>g.jsx("a",{href:n.link,target:"_blank","aria-label":`Social media icon${n.title?` for ${n.title}`:""}`,rel:"noreferrer",children:g.jsx(rt,{icon:n.icon||n.title,size:24,component:"span"})},t))}):null}Md.propTypes={items:x.arrayOf(x.shape({icon:x.string,link:x.string}))};const SS=Xe("div")`
|
|
318
|
-
display: inline-flex;
|
|
319
|
-
flex-wrap: wrap;
|
|
320
|
-
align-items: center;
|
|
321
|
-
justify-content: center;
|
|
322
|
-
gap: 20px;
|
|
323
|
-
a {
|
|
324
|
-
color: ${e=>e.theme.palette.text.secondary};
|
|
325
|
-
text-decoration: none;
|
|
326
|
-
transition: color 0.2s ease-in-out;
|
|
327
|
-
&:hover {
|
|
328
|
-
color: ${({theme:e})=>e.palette.text.primary};
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
332
|
-
gap: 12px;
|
|
333
|
-
}
|
|
334
|
-
`;function Ad({owner:e="ArcBlock",year:r=`${new Date().getFullYear()}`,...n}){return g.jsxs(wS,{...n,children:["Copyright © ",r," ",e]})}Ad.propTypes={owner:x.string,year:x.string};const wS=Xe("p")`
|
|
335
|
-
display: flex;
|
|
336
|
-
align-items: center;
|
|
337
|
-
margin: 0;
|
|
338
|
-
font-size: 13px;
|
|
339
|
-
`;function la({children:e=null,autoCenter:r=!1,...n}){return e?g.jsx(CS,{...n,className:st(n.className,{"footer-row-auto-center":r}),children:e}):null}la.propTypes={children:x.any,autoCenter:x.bool};const CS=Xe(oe)`
|
|
340
|
-
display: flex;
|
|
341
|
-
justify-content: space-between;
|
|
342
|
-
& + & {
|
|
343
|
-
margin-top: 24px;
|
|
344
|
-
}
|
|
345
|
-
&.footer-row-auto-center > *:only-child {
|
|
346
|
-
margin: 0 auto;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
${({theme:e})=>e.breakpoints.down("md")} {
|
|
350
|
-
align-items: stretch;
|
|
351
|
-
flex-direction: column;
|
|
352
|
-
gap: ${({theme:e})=>e.spacing(1)};
|
|
353
|
-
> * {
|
|
354
|
-
flex: 1 0 100%;
|
|
355
|
-
}
|
|
356
|
-
&.footer-row-auto-center > * {
|
|
357
|
-
margin: 0 auto;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
`;function Ld({elements:e,data:r,className:n="",...t}){const i=!!r.navigation?.length;let o=null;return i?o=g.jsxs(Qt,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between"},children:[g.jsxs(oe,{sx:{flex:"1 1 auto",paddingRight:{xs:0,md:3},display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2,pb:3},children:[g.jsx(oe,{children:e.brand}),g.jsx(oe,{sx:{lineHeight:1},children:e.socialMedia})]}),g.jsx(oe,{sx:({palette:a})=>({mb:3,borderTop:{xs:`1px solid ${a.grey[200]}`,md:0}}),children:e.navigation})]}):o=g.jsxs(Qt,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:"space-between",gap:2,pb:3},children:[g.jsx(oe,{children:e.brand}),g.jsx(oe,{sx:{lineHeight:1},children:e.socialMedia})]}),g.jsx(IS,{...t,className:st({"footer--with-navs":i},n),children:g.jsxs(Qt,{style:{padding:0},children:[o,g.jsx(oe,{sx:{pt:3,borderTop:1,borderColor:"divider"}}),g.jsx(Qt,{children:g.jsxs(la,{autoCenter:!0,children:[e.copyright,e.links]})})]})})}Ld.propTypes={elements:x.shape({brand:x.element,navigation:x.element,socialMedia:x.element,copyright:x.element,links:x.element}).isRequired,data:x.object.isRequired,className:x.string};const IS=Xe("div")`
|
|
361
|
-
padding: 32px 0 24px 0;
|
|
362
|
-
.footer-brand-name,
|
|
363
|
-
.footer-brand-desc {
|
|
364
|
-
display: none;
|
|
365
|
-
}
|
|
366
|
-
&.footer--with-navs {
|
|
367
|
-
${e=>e.theme.breakpoints.up("md")} {
|
|
368
|
-
.footer-brand-desc {
|
|
369
|
-
max-width: 360px;
|
|
370
|
-
display: block;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
&& .footer-brand-logo {
|
|
375
|
-
margin-right: 0;
|
|
376
|
-
}
|
|
377
|
-
`;function zd({elements:e,data:r,...n}){return g.jsx(RS,{...n,children:g.jsx(Qt,{style:{padding:0},children:g.jsxs(Qt,{className:"plain-layout-container",children:[e.links&&g.jsxs(la,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!e.links&&g.jsxs(g.Fragment,{children:[I.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})})}zd.propTypes={elements:x.shape({brand:x.element,navigation:x.element,socialMedia:x.element,copyright:x.element,links:x.element}).isRequired,data:x.object.isRequired};const RS=Xe("div")`
|
|
378
|
-
padding: 24px 0;
|
|
379
|
-
.plain-layout-container {
|
|
380
|
-
display: flex;
|
|
381
|
-
justify-content: space-between;
|
|
382
|
-
align-items: center;
|
|
383
|
-
flex-wrap: wrap;
|
|
384
|
-
gap: 8px;
|
|
385
|
-
}
|
|
386
|
-
`,jd=[{name:"plain",support:(e,r)=>!r.navigation?.length&&!r.socialMedia?.length,component:zd},{name:"standard",support:()=>!0,component:Ld}],TS=jd.reduce((e,r)=>({...e,[r.name]:r}),{});function Fd({...e}){const{brand:r=null,navigation:n=null,socialMedia:t=null,copyright:i=null,links:o=null,layout:a="auto",...s}=e,l=()=>r?g.jsx(Nd,{...r}):null,c=()=>n?.length?g.jsx(xo,{links:n,columns:3}):null,u=()=>t?.length?g.jsx(Md,{items:t}):null,f=()=>{const v=i?.owner||r?.name;return v?g.jsx(Ad,{owner:v,year:i?.year||void 0}):null},d=()=>o?.length?g.jsx(xo,{flowLayout:!0,links:o}):null,p={brand:l(),navigation:c(),socialMedia:u(),copyright:f(),links:d()};let h=null;if(a==="auto"?h=jd.find(v=>v.support(p,e)).component:h=TS[a]?.component,!h)throw new Error(`layout ${a} is not supported.`);return g.jsxs(oe,{...s,className:st("blocklet__footer",s.className),sx:[{position:"relative"},...Array.isArray(s.sx)?s.sx:[s.sx]],children:[g.jsx(h,{elements:p,data:e}),g.jsx(oe,{sx:{position:"absolute",right:16,bottom:0,fontSize:12,color:"transparent","::selection":{background:"#000",color:"#fff"}},children:window?.blocklet?.version})]})}Fd.propTypes={brand:x.shape({name:x.node,description:x.string,logo:x.node}),navigation:x.arrayOf(x.shape({label:x.node,link:x.string})),socialMedia:x.arrayOf(x.shape({icon:x.node,link:x.string})),copyright:x.shape({owner:x.string,year:x.oneOfType([x.string,x.number])}),links:x.arrayOf(x.shape({label:x.node,link:x.string})),layout:x.oneOf(["auto","standard","plain"])};function Bd({meta:e={},theme:r={},...n}){const{locale:t,defaultLocale:i}=Le()||{},o=Bt(),a=I.useMemo(()=>{const m=Object.assign({},window.blocklet,e);try{return aa(m)}catch(y){return console.error("Failed to format blocklet info",y,m),m}},[e]),s=I.useMemo(()=>_c(o,r),[o,r]),l=Eo({key:"xs",meta:e,theme:r});if(!a.appName)return null;const{appName:c,appDescription:u,description:f,copyright:d}=a,p=s.palette.background.default,h={footerNav:ir({navigation:a?.navigation?.footer,locale:t,defaultLocale:i,section:"footer"})||[],socialMedia:ir({navigation:a?.navigation?.social,locale:t,defaultLocale:i,section:"footer"})||[],links:ir({navigation:a?.navigation?.bottom,locale:t,defaultLocale:i,section:"footer"})||[]},v={brand:{name:c,description:u||f,logo:l},navigation:Wt(h.footerNav,m=>({...m,label:m.title,link:m.link}),"items"),copyright:d,socialMedia:h.socialMedia,links:h.links.map(m=>({...m,label:m.title}))};return g.jsx(Pc,{theme:s,children:g.jsx(DS,{...v,...Mt(n,["bordered"]),$bordered:n?.bordered,$bgcolor:p})})}Bd.propTypes={meta:wd,theme:x.object};const DS=Xe(Fd)`
|
|
387
|
-
${({$bordered:e,theme:r})=>`border-top: 1px solid ${e&&r.palette.divider};`}
|
|
388
|
-
color: ${({theme:e})=>e.palette.text.secondary};
|
|
389
|
-
${({$bgcolor:e})=>e&&`background-color: ${e};`}
|
|
390
|
-
`,_S=Tc(Ed(Bd),{FallbackComponent:Dc});function Gd({meta:e={},fallbackUrl:r=Rn,invalidPathFallback:n=null,headerAddons:t=void 0,sessionManagerProps:i={showRole:!0,onLogout:()=>{window.location.href=Rn}},links:o=[],showDomainWarningDialog:a=!0,...s}){Od();const l=I.use(Kn)?.session?.user,c=l?.role,{locale:u,defaultLocale:f}=Le()||{},d=I.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return aa(C)}catch(D){return console.error("Failed to format blocklet info",D,C),C}},[e]),{localizedNav:p,flattened:h,matchedIndex:v}=I.useMemo(()=>{let C=ir({navigation:d?.navigation?.dashboard,locale:u,defaultLocale:f})||[];C=Sd(C,c),C=Wt(C,w=>{let _=null;return w.icon&&(w.icon.startsWith("http")||w.icon.startsWith("data:")?_=g.jsx(hh,{src:w.icon}):_=g.jsx("iconify-icon",{height:"100%",width:"100%",icon:w.icon})),{id:w.id,title:w.title,url:w.link,icon:_,external:!0,children:w.items}},"items");const D=ud(C).filter(w=>!!w.url),P=pd(D.map(w=>w.url));return P!==-1&&(D[P].active=!0),{localizedNav:C,flattened:D,matchedIndex:P}},[d,u,f,c]),m=typeof o=="function"?o(p):[...p,...o],y=Eo({meta:e});if(I.useLayoutEffect(()=>{l&&!h?.length&&r&&(window.location.href=r)},[r]),I.useLayoutEffect(()=>{l&&h?.length&&v===-1&&n&&n()},[n,h,v]),!d.appName)return null;const{appName:b}=d;return g.jsx(ph,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:m,...s,headerProps:{homeLink:Rn,logo:g.jsx("img",{src:y,alt:"logo"}),addons:g.jsx(sa,{formattedBlocklet:d,addons:t,sessionManagerProps:i,showDomainWarningDialog:a}),...s.headerProps}})}Gd.propTypes={meta:wd,fallbackUrl:x.string,invalidPathFallback:x.func,headerAddons:x.oneOfType([x.func,x.node]),sessionManagerProps:Cd,links:x.oneOfType([x.array,x.func]),showDomainWarningDialog:x.bool};function $d(e,r){return e?r===e.nodeName?!0:$d(e.parentNode,r):!1}function PS({...e}){return g.jsx("div",{onClick:r=>{$d(r.target,"A")&&r.preventDefault()},...e})}function Wd({className:e="",navigation:r=[]}){const{blocklet:n}=Gt(),{locale:t}=Le(),{languages:i}=ra(),o=gh({blocklet:n,square:!0}),a=n?.environments?.find(u=>u.key===Ge.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER)?.value,s=n?.environments?.find(u=>u.key===Ge.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR)?.value,l=a||s?{owner:a,year:s}:void 0,c={appId:n.appDid,appLogo:o,appName:n.meta.title,enableConnect:!0,enableLocale:!1,navigation:r,copyright:l};return g.jsx(vh,{translations:Qh,locale:t,languages:i,children:g.jsx(PS,{children:g.jsxs(oe,{className:e,children:[g.jsx(bS,{meta:c,showDomainWarningDialog:!1,sx:{".header-container":{maxWidth:"none"}}}),g.jsx(oe,{children:g.jsx(Gd,{meta:c,invalidPathFallback:()=>{},headerProps:{style:{display:"none"}},hideHtmlTitle:!0,showDomainWarningDialog:!1,children:g.jsx(La,{container:!0,spacing:2,children:new Array(6).fill().map((u,f)=>g.jsxs(La,{size:4,children:[g.jsx(di,{animation:!1,variant:"rectangular",width:"100%",height:120}),g.jsxs(oe,{sx:{pt:.5},children:[g.jsx(di,{animation:!1}),g.jsx(di,{width:"60%",animation:!1})]})]},f))})})}),g.jsx(_S,{meta:c,sx:{".MuiContainer-root":{maxWidth:"none"}}})]})})})}Wd.propTypes={className:x.string,navigation:x.array};const kS=dr(Wd)`
|
|
391
|
-
.dashboard {
|
|
392
|
-
height: auto !important;
|
|
393
|
-
}
|
|
394
|
-
.dashboard-content + div {
|
|
395
|
-
display: none;
|
|
396
|
-
}
|
|
397
|
-
`;var Hd=Q.createContext(null);function OS(e){e()}var Ud=OS,ES=function(r){return Ud=r},NS=function(){return Ud};function MS(){var e=NS(),r=null,n=null;return{clear:function(){r=null,n=null},notify:function(){e(function(){for(var i=r;i;)i.callback(),i=i.next})},get:function(){for(var i=[],o=r;o;)i.push(o),o=o.next;return i},subscribe:function(i){var o=!0,a=n={callback:i,next:null,prev:n};return a.prev?a.prev.next=a:r=a,function(){!o||r===null||(o=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:r=a.next)}}}}var Dl={notify:function(){},get:function(){return[]}};function qd(e,r){var n,t=Dl;function i(f){return l(),t.subscribe(f)}function o(){t.notify()}function a(){u.onStateChange&&u.onStateChange()}function s(){return!!n}function l(){n||(n=r?r.addNestedSub(a):e.subscribe(a),t=MS())}function c(){n&&(n(),n=void 0,t.clear(),t=Dl)}var u={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:function(){return t}};return u}var Vd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect;function AS(e){var r=e.store,n=e.context,t=e.children,i=I.useMemo(function(){var s=qd(r);return{store:r,subscription:s}},[r]),o=I.useMemo(function(){return r.getState()},[r]);Vd(function(){var s=i.subscription;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==r.getState()&&s.notifyNestedSubs(),function(){s.tryUnsubscribe(),s.onStateChange=null}},[i,o]);var a=n||Hd;return Q.createElement(a.Provider,{value:i},t)}var Ai={exports:{}},he={};/** @license React v17.0.2
|
|
398
|
-
* react-is.production.min.js
|
|
399
|
-
*
|
|
400
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
401
|
-
*
|
|
402
|
-
* This source code is licensed under the MIT license found in the
|
|
403
|
-
* LICENSE file in the root directory of this source tree.
|
|
404
|
-
*/var _l;function LS(){if(_l)return he;_l=1;var e=60103,r=60106,n=60107,t=60108,i=60114,o=60109,a=60110,s=60112,l=60113,c=60120,u=60115,f=60116,d=60121,p=60122,h=60117,v=60129,m=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),r=y("react.portal"),n=y("react.fragment"),t=y("react.strict_mode"),i=y("react.profiler"),o=y("react.provider"),a=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),f=y("react.lazy"),d=y("react.block"),p=y("react.server.block"),h=y("react.fundamental"),v=y("react.debug_trace_mode"),m=y("react.legacy_hidden")}function b(M){if(typeof M=="object"&&M!==null){var H=M.$$typeof;switch(H){case e:switch(M=M.type,M){case n:case i:case t:case l:case c:return M;default:switch(M=M&&M.$$typeof,M){case a:case s:case f:case u:case o:return M;default:return H}}case r:return H}}}var C=o,D=e,P=s,w=n,_=f,S=u,R=r,T=i,O=t,L=l;return he.ContextConsumer=a,he.ContextProvider=C,he.Element=D,he.ForwardRef=P,he.Fragment=w,he.Lazy=_,he.Memo=S,he.Portal=R,he.Profiler=T,he.StrictMode=O,he.Suspense=L,he.isAsyncMode=function(){return!1},he.isConcurrentMode=function(){return!1},he.isContextConsumer=function(M){return b(M)===a},he.isContextProvider=function(M){return b(M)===o},he.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},he.isForwardRef=function(M){return b(M)===s},he.isFragment=function(M){return b(M)===n},he.isLazy=function(M){return b(M)===f},he.isMemo=function(M){return b(M)===u},he.isPortal=function(M){return b(M)===r},he.isProfiler=function(M){return b(M)===i},he.isStrictMode=function(M){return b(M)===t},he.isSuspense=function(M){return b(M)===l},he.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===i||M===v||M===t||M===l||M===c||M===m||typeof M=="object"&&M!==null&&(M.$$typeof===f||M.$$typeof===u||M.$$typeof===o||M.$$typeof===a||M.$$typeof===s||M.$$typeof===h||M.$$typeof===d||M[0]===p)},he.typeOf=b,he}var Pl;function zS(){return Pl||(Pl=1,Ai.exports=LS()),Ai.exports}var jS=zS(),FS=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],BS=["reactReduxForwardedRef"],GS=[],$S=[null,null];function WS(e,r){var n=e[1];return[r.payload,n+1]}function kl(e,r,n){Vd(function(){return e.apply(void 0,r)},n)}function HS(e,r,n,t,i,o,a){e.current=t,r.current=i,n.current=!1,o.current&&(o.current=null,a())}function US(e,r,n,t,i,o,a,s,l,c){if(e){var u=!1,f=null,d=function(){if(!u){var v=r.getState(),m,y;try{m=t(v,i.current)}catch(b){y=b,f=b}y||(f=null),m===o.current?a.current||l():(o.current=m,s.current=m,a.current=!0,c({type:"STORE_UPDATED",payload:{error:y}}))}};n.onStateChange=d,n.trySubscribe(),d();var p=function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f};return p}}var qS=function(){return[null,0]};function VS(e,r){r===void 0&&(r={});var n=r,t=n.getDisplayName,i=t===void 0?function(C){return"ConnectAdvanced("+C+")"}:t,o=n.methodName,a=o===void 0?"connectAdvanced":o,s=n.renderCountProp,l=s===void 0?void 0:s,c=n.shouldHandleStateChanges,u=c===void 0?!0:c,f=n.storeKey,d=f===void 0?"store":f;n.withRef;var p=n.forwardRef,h=p===void 0?!1:p,v=n.context,m=v===void 0?Hd:v,y=or(n,FS),b=m;return function(D){var P=D.displayName||D.name||"Component",w=i(P),_=K({},y,{getDisplayName:i,methodName:a,renderCountProp:l,shouldHandleStateChanges:u,storeKey:d,displayName:w,wrappedComponentName:P,WrappedComponent:D}),S=y.pure;function R(H){return e(H.dispatch,_)}var T=S?I.useMemo:function(H){return H()};function O(H){var E=I.useMemo(function(){var _e=H.reactReduxForwardedRef,Fe=or(H,BS);return[H.context,_e,Fe]},[H]),B=E[0],G=E[1],U=E[2],J=I.useMemo(function(){return B&&B.Consumer&&jS.isContextConsumer(Q.createElement(B.Consumer,null))?B:b},[B,b]),ee=I.useContext(J),X=!!H.store&&!!H.store.getState&&!!H.store.dispatch;ee&&ee.store;var Z=X?H.store:ee.store,q=I.useMemo(function(){return R(Z)},[Z]),re=I.useMemo(function(){if(!u)return $S;var _e=qd(Z,X?null:ee.subscription),Fe=_e.notifyNestedSubs.bind(_e);return[_e,Fe]},[Z,X,ee]),ne=re[0],ue=re[1],$=I.useMemo(function(){return X?ee:K({},ee,{subscription:ne})},[X,ee,ne]),W=I.useReducer(WS,GS,qS),k=W[0],N=k[0],j=W[1];if(N&&N.error)throw N.error;var V=I.useRef(),te=I.useRef(U),se=I.useRef(),fe=I.useRef(!1),ve=T(function(){return se.current&&U===te.current?se.current:q(Z.getState(),U)},[Z,N,U]);kl(HS,[te,V,fe,U,ve,se,ue]),kl(US,[u,Z,ne,q,te,V,fe,se,ue,j],[Z,ne,q]);var Ce=I.useMemo(function(){return Q.createElement(D,K({},ve,{ref:G}))},[G,D,ve]),Se=I.useMemo(function(){return u?Q.createElement(J.Provider,{value:$},Ce):Ce},[J,Ce,$]);return Se}var L=S?Q.memo(O):O;if(L.WrappedComponent=D,L.displayName=O.displayName=w,h){var M=Q.forwardRef(function(E,B){return Q.createElement(L,K({},E,{reactReduxForwardedRef:B}))});return M.displayName=w,M.WrappedComponent=D,za(M,D)}return za(L,D)}}function Ol(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function Li(e,r){if(Ol(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var n=Object.keys(e),t=Object.keys(r);if(n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(r,n[i])||!Ol(e[n[i]],r[n[i]]))return!1;return!0}function KS(e,r){var n={},t=function(a){var s=e[a];typeof s=="function"&&(n[a]=function(){return r(s.apply(void 0,arguments))})};for(var i in e)t(i);return n}function ca(e){return function(n,t){var i=e(n,t);function o(){return i}return o.dependsOnOwnProps=!1,o}}function El(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function Kd(e,r){return function(t,i){i.displayName;var o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=El(e);var c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=El(c),c=o(s,l)),c},o}}function YS(e){return typeof e=="function"?Kd(e):void 0}function JS(e){return e?void 0:ca(function(r){return{dispatch:r}})}function XS(e){return e&&typeof e=="object"?ca(function(r){return KS(e,r)}):void 0}const QS=[YS,JS,XS];function ZS(e){return typeof e=="function"?Kd(e):void 0}function ew(e){return e?void 0:ca(function(){return{}})}const tw=[ZS,ew];function rw(e,r,n){return K({},n,e,r)}function nw(e){return function(n,t){t.displayName;var i=t.pure,o=t.areMergedPropsEqual,a=!1,s;return function(c,u,f){var d=e(c,u,f);return a?(!i||!o(d,s))&&(s=d):(a=!0,s=d),s}}}function iw(e){return typeof e=="function"?nw(e):void 0}function ow(e){return e?void 0:function(){return rw}}const aw=[iw,ow];var sw=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function lw(e,r,n,t){return function(o,a){return n(e(o,a),r(t,a),a)}}function cw(e,r,n,t,i){var o=i.areStatesEqual,a=i.areOwnPropsEqual,s=i.areStatePropsEqual,l=!1,c,u,f,d,p;function h(C,D){return c=C,u=D,f=e(c,u),d=r(t,u),p=n(f,d,u),l=!0,p}function v(){return f=e(c,u),r.dependsOnOwnProps&&(d=r(t,u)),p=n(f,d,u),p}function m(){return e.dependsOnOwnProps&&(f=e(c,u)),r.dependsOnOwnProps&&(d=r(t,u)),p=n(f,d,u),p}function y(){var C=e(c,u),D=!s(C,f);return f=C,D&&(p=n(f,d,u)),p}function b(C,D){var P=!a(D,u),w=!o(C,c,D,u);return c=C,u=D,P&&w?v():P?m():w?y():p}return function(D,P){return l?b(D,P):h(D,P)}}function uw(e,r){var n=r.initMapStateToProps,t=r.initMapDispatchToProps,i=r.initMergeProps,o=or(r,sw),a=n(e,o),s=t(e,o),l=i(e,o),c=o.pure?cw:lw;return c(a,s,l,e,o)}var dw=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function zi(e,r,n){for(var t=r.length-1;t>=0;t--){var i=r[t](e);if(i)return i}return function(o,a){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+a.wrappedComponentName+".")}}function fw(e,r){return e===r}function pw(e){var r=e===void 0?{}:e,n=r.connectHOC,t=n===void 0?VS:n,i=r.mapStateToPropsFactories,o=i===void 0?tw:i,a=r.mapDispatchToPropsFactories,s=a===void 0?QS:a,l=r.mergePropsFactories,c=l===void 0?aw:l,u=r.selectorFactory,f=u===void 0?uw:u;return function(p,h,v,m){m===void 0&&(m={});var y=m,b=y.pure,C=b===void 0?!0:b,D=y.areStatesEqual,P=D===void 0?fw:D,w=y.areOwnPropsEqual,_=w===void 0?Li:w,S=y.areStatePropsEqual,R=S===void 0?Li:S,T=y.areMergedPropsEqual,O=T===void 0?Li:T,L=or(y,dw),M=zi(p,o,"mapStateToProps"),H=zi(h,s,"mapDispatchToProps"),E=zi(v,c,"mergeProps");return t(f,K({methodName:"connect",getDisplayName:function(G){return"Connect("+G+")"},shouldHandleStateChanges:!!p,initMapStateToProps:M,initMapDispatchToProps:H,initMergeProps:E,pure:C,areStatesEqual:P,areOwnPropsEqual:_,areStatePropsEqual:R,areMergedPropsEqual:O},L))}}const Yd=pw();ES(Xr.unstable_batchedUpdates);var Nl=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function hw(e,r){return!!(e===r||Nl(e)&&Nl(r))}function gw(e,r){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!hw(e[n],r[n]))return!1;return!0}function Te(e,r){r===void 0&&(r=gw);var n,t=[],i,o=!1;function a(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return o&&n===this&&r(s,t)||(i=e.apply(this,s),o=!0,n=this,t=s),i}return a}function Jd(e,r){}Jd.bind(null,"warn");Jd.bind(null,"error");function yt(){}function vw(e,r){return K({},e,{},r)}function Ye(e,r,n){var t=r.map(function(i){var o=vw(n,i.options);return e.addEventListener(i.eventName,i.fn,o),function(){e.removeEventListener(i.eventName,i.fn,o)}});return function(){t.forEach(function(o){o()})}}var mw="Invariant failed";function zn(e){this.message=e}zn.prototype.toString=function(){return this.message};function Y(e,r){throw new zn(mw)}var bw=function(e){Un(r,e);function r(){for(var t,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o))||this,t.callbacks=null,t.unbind=yt,t.onWindowError=function(s){var l=t.getCallbacks();l.isDragging()&&l.tryAbort();var c=s.error;c instanceof zn&&s.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(s){t.callbacks=s},t}var n=r.prototype;return n.componentDidMount=function(){this.unbind=Ye(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof zn){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},r}(Q.Component),yw=`
|
|
405
|
-
Press space bar to start a drag.
|
|
406
|
-
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
407
|
-
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
408
|
-
`,jn=function(r){return r+1},xw=function(r){return`
|
|
409
|
-
You have lifted an item in position `+jn(r.source.index)+`
|
|
410
|
-
`},Xd=function(r,n){var t=r.droppableId===n.droppableId,i=jn(r.index),o=jn(n.index);return t?`
|
|
411
|
-
You have moved the item from position `+i+`
|
|
412
|
-
to position `+o+`
|
|
413
|
-
`:`
|
|
414
|
-
You have moved the item from position `+i+`
|
|
415
|
-
in list `+r.droppableId+`
|
|
416
|
-
to list `+n.droppableId+`
|
|
417
|
-
in position `+o+`
|
|
418
|
-
`},Qd=function(r,n,t){var i=n.droppableId===t.droppableId;return i?`
|
|
419
|
-
The item `+r+`
|
|
420
|
-
has been combined with `+t.draggableId:`
|
|
421
|
-
The item `+r+`
|
|
422
|
-
in list `+n.droppableId+`
|
|
423
|
-
has been combined with `+t.draggableId+`
|
|
424
|
-
in list `+t.droppableId+`
|
|
425
|
-
`},Sw=function(r){var n=r.destination;if(n)return Xd(r.source,n);var t=r.combine;return t?Qd(r.draggableId,r.source,t):"You are over an area that cannot be dropped on"},Ml=function(r){return`
|
|
426
|
-
The item has returned to its starting position
|
|
427
|
-
of `+jn(r.index)+`
|
|
428
|
-
`},ww=function(r){if(r.reason==="CANCEL")return`
|
|
429
|
-
Movement cancelled.
|
|
430
|
-
`+Ml(r.source)+`
|
|
431
|
-
`;var n=r.destination,t=r.combine;return n?`
|
|
432
|
-
You have dropped the item.
|
|
433
|
-
`+Xd(r.source,n)+`
|
|
434
|
-
`:t?`
|
|
435
|
-
You have dropped the item.
|
|
436
|
-
`+Qd(r.draggableId,r.source,t)+`
|
|
437
|
-
`:`
|
|
438
|
-
The item has been dropped while not over a drop area.
|
|
439
|
-
`+Ml(r.source)+`
|
|
440
|
-
`},Tn={dragHandleUsageInstructions:yw,onDragStart:xw,onDragUpdate:Sw,onDragEnd:ww},De={x:0,y:0},ke=function(r,n){return{x:r.x+n.x,y:r.y+n.y}},$e=function(r,n){return{x:r.x-n.x,y:r.y-n.y}},xt=function(r,n){return r.x===n.x&&r.y===n.y},hr=function(r){return{x:r.x!==0?-r.x:0,y:r.y!==0?-r.y:0}},jt=function(r,n,t){var i;return t===void 0&&(t=0),i={},i[r]=n,i[r==="x"?"y":"x"]=t,i},Vr=function(r,n){return Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2))},Al=function(r,n){return Math.min.apply(Math,n.map(function(t){return Vr(r,t)}))},Zd=function(r){return function(n){return{x:r(n.x),y:r(n.y)}}},Cw=function(e,r){var n=$t({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return n.width<=0||n.height<=0?null:n},an=function(r,n){return{top:r.top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x}},Ll=function(r){return[{x:r.left,y:r.top},{x:r.right,y:r.top},{x:r.left,y:r.bottom},{x:r.right,y:r.bottom}]},Iw={top:0,right:0,bottom:0,left:0},Rw=function(r,n){return n?an(r,n.scroll.diff.displacement):r},Tw=function(r,n,t){if(t&&t.increasedBy){var i;return K({},r,(i={},i[n.end]=r[n.end]+t.increasedBy[n.line],i))}return r},Dw=function(r,n){return n&&n.shouldClipSubject?Cw(n.pageMarginBox,r):$t(r)},lr=function(e){var r=e.page,n=e.withPlaceholder,t=e.axis,i=e.frame,o=Rw(r.marginBox,i),a=Tw(o,t,n),s=Dw(a,i);return{page:r,withPlaceholder:n,active:s}},ua=function(e,r){e.frame||Y();var n=e.frame,t=$e(r,n.scroll.initial),i=hr(t),o=K({},n,{scroll:{initial:n.scroll.initial,current:r,diff:{value:t,displacement:i},max:n.scroll.max}}),a=lr({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),s=K({},e,{frame:o,subject:a});return s};function Fn(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function da(e,r){if(e.findIndex)return e.findIndex(r);for(var n=0;n<e.length;n++)if(r(e[n]))return n;return-1}function Tt(e,r){if(e.find)return e.find(r);var n=da(e,r);if(n!==-1)return e[n]}function ef(e){return Array.prototype.slice.call(e)}var tf=Te(function(e){return e.reduce(function(r,n){return r[n.descriptor.id]=n,r},{})}),rf=Te(function(e){return e.reduce(function(r,n){return r[n.descriptor.id]=n,r},{})}),ni=Te(function(e){return Fn(e)}),_w=Te(function(e){return Fn(e)}),gr=Te(function(e,r){var n=_w(r).filter(function(t){return e===t.descriptor.droppableId}).sort(function(t,i){return t.descriptor.index-i.descriptor.index});return n});function fa(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function ii(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var oi=Te(function(e,r){return r.filter(function(n){return n.descriptor.id!==e.descriptor.id})}),Pw=function(e){var r=e.isMovingForward,n=e.draggable,t=e.destination,i=e.insideDestination,o=e.previousImpact;if(!t.isCombineEnabled)return null;var a=fa(o);if(!a)return null;function s(v){var m={type:"COMBINE",combine:{draggableId:v,droppableId:t.descriptor.id}};return K({},o,{at:m})}var l=o.displaced.all,c=l.length?l[0]:null;if(r)return c?s(c):null;var u=oi(n,i);if(!c){if(!u.length)return null;var f=u[u.length-1];return s(f.descriptor.id)}var d=da(u,function(v){return v.descriptor.id===c});d===-1&&Y();var p=d-1;if(p<0)return null;var h=u[p];return s(h.descriptor.id)},vr=function(e,r){return e.descriptor.droppableId===r.descriptor.id},nf={point:De,value:0},Kr={invisible:{},visible:{},all:[]},kw={displaced:Kr,displacedBy:nf,at:null},Je=function(e,r){return function(n){return e<=n&&n<=r}},of=function(e){var r=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(t){var i=r(t.top)&&r(t.bottom)&&n(t.left)&&n(t.right);if(i)return!0;var o=r(t.top)||r(t.bottom),a=n(t.left)||n(t.right),s=o&&a;if(s)return!0;var l=t.top<e.top&&t.bottom>e.bottom,c=t.left<e.left&&t.right>e.right,u=l&&c;if(u)return!0;var f=l&&a||c&&o;return f}},Ow=function(e){var r=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(t){var i=r(t.top)&&r(t.bottom)&&n(t.left)&&n(t.right);return i}},pa={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},af={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ew=function(e){return function(r){var n=Je(r.top,r.bottom),t=Je(r.left,r.right);return function(i){return e===pa?n(i.top)&&n(i.bottom):t(i.left)&&t(i.right)}}},Nw=function(r,n){var t=n.frame?n.frame.scroll.diff.displacement:De;return an(r,t)},Mw=function(r,n,t){return n.subject.active?t(n.subject.active)(r):!1},Aw=function(r,n,t){return t(n)(r)},ha=function(r){var n=r.target,t=r.destination,i=r.viewport,o=r.withDroppableDisplacement,a=r.isVisibleThroughFrameFn,s=o?Nw(n,t):n;return Mw(s,t,a)&&Aw(s,i,a)},Lw=function(r){return ha(K({},r,{isVisibleThroughFrameFn:of}))},sf=function(r){return ha(K({},r,{isVisibleThroughFrameFn:Ow}))},zw=function(r){return ha(K({},r,{isVisibleThroughFrameFn:Ew(r.destination.axis)}))},jw=function(r,n,t){if(typeof t=="boolean")return t;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[r])return!1;var a=o[r];return a?a.shouldAnimate:!0};function Fw(e,r){var n=e.page.marginBox,t={top:r.point.y,right:0,bottom:0,left:r.point.x};return $t(Nc(n,t))}function Yr(e){var r=e.afterDragging,n=e.destination,t=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return r.reduce(function(l,c){var u=Fw(c,t),f=c.descriptor.id;l.all.push(f);var d=Lw({target:u,destination:n,viewport:i,withDroppableDisplacement:!0});if(!d)return l.invisible[c.descriptor.id]=!0,l;var p=jw(f,a,o),h={draggableId:f,shouldAnimate:p};return l.visible[f]=h,l},{all:[],visible:{},invisible:{}})}function Bw(e,r){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return r.inHomeList?n:n+1}function zl(e){var r=e.insideDestination,n=e.inHomeList,t=e.displacedBy,i=e.destination,o=Bw(r,{inHomeList:n});return{displaced:Kr,displacedBy:t,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function Bn(e){var r=e.draggable,n=e.insideDestination,t=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=vr(r,t);if(s==null)return zl({insideDestination:n,inHomeList:c,displacedBy:o,destination:t});var u=Tt(n,function(v){return v.descriptor.index===s});if(!u)return zl({insideDestination:n,inHomeList:c,displacedBy:o,destination:t});var f=oi(r,n),d=n.indexOf(u),p=f.slice(d),h=Yr({afterDragging:p,destination:t,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l});return{displaced:h,displacedBy:o,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:s}}}}function Rt(e,r){return!!r.effected[e]}var Gw=function(e){var r=e.isMovingForward,n=e.destination,t=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var a=i.draggableId,s=t[a],l=s.descriptor.index,c=Rt(a,o);return c?r?l:l-1:r?l+1:l},$w=function(e){var r=e.isMovingForward,n=e.isInHomeList,t=e.insideDestination,i=e.location;if(!t.length)return null;var o=i.index,a=r?o+1:o-1,s=t[0].descriptor.index,l=t[t.length-1].descriptor.index,c=n?l:l+1;return a<s||a>c?null:a},Ww=function(e){var r=e.isMovingForward,n=e.isInHomeList,t=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||Y(),u.type==="REORDER"){var f=$w({isMovingForward:r,isInHomeList:n,location:u.destination,insideDestination:a});return f==null?null:Bn({draggable:t,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})}var d=Gw({isMovingForward:r,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return d==null?null:Bn({draggable:t,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})},Hw=function(e){var r=e.displaced,n=e.afterCritical,t=e.combineWith,i=e.displacedBy,o=!!(r.visible[t]||r.invisible[t]);return Rt(t,n)?o?De:hr(i.point):o?i.point:De},Uw=function(e){var r=e.afterCritical,n=e.impact,t=e.draggables,i=ii(n);i||Y();var o=i.draggableId,a=t[o].page.borderBox.center,s=Hw({displaced:n.displaced,afterCritical:r,combineWith:o,displacedBy:n.displacedBy});return ke(a,s)},lf=function(r,n){return n.margin[r.start]+n.borderBox[r.size]/2},qw=function(r,n){return n.margin[r.end]+n.borderBox[r.size]/2},ga=function(r,n,t){return n[r.crossAxisStart]+t.margin[r.crossAxisStart]+t.borderBox[r.crossAxisSize]/2},jl=function(r){var n=r.axis,t=r.moveRelativeTo,i=r.isMoving;return jt(n.line,t.marginBox[n.end]+lf(n,i),ga(n,t.marginBox,i))},Fl=function(r){var n=r.axis,t=r.moveRelativeTo,i=r.isMoving;return jt(n.line,t.marginBox[n.start]-qw(n,i),ga(n,t.marginBox,i))},Vw=function(r){var n=r.axis,t=r.moveInto,i=r.isMoving;return jt(n.line,t.contentBox[n.start]+lf(n,i),ga(n,t.contentBox,i))},Kw=function(e){var r=e.impact,n=e.draggable,t=e.draggables,i=e.droppable,o=e.afterCritical,a=gr(i.descriptor.id,t),s=n.page,l=i.axis;if(!a.length)return Vw({axis:l,moveInto:i.page,isMoving:s});var c=r.displaced,u=r.displacedBy,f=c.all[0];if(f){var d=t[f];if(Rt(f,o))return Fl({axis:l,moveRelativeTo:d.page,isMoving:s});var p=Ki(d.page,u.point);return Fl({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Rt(h.descriptor.id,o)){var v=Ki(h.page,hr(o.displacedBy.point));return jl({axis:l,moveRelativeTo:v,isMoving:s})}return jl({axis:l,moveRelativeTo:h.page,isMoving:s})},So=function(e,r){var n=e.frame;return n?ke(r,n.scroll.diff.displacement):r},Yw=function(r){var n=r.impact,t=r.draggable,i=r.droppable,o=r.draggables,a=r.afterCritical,s=t.page.borderBox.center,l=n.at;return!i||!l?s:l.type==="REORDER"?Kw({impact:n,draggable:t,draggables:o,droppable:i,afterCritical:a}):Uw({impact:n,draggables:o,afterCritical:a})},ai=function(e){var r=Yw(e),n=e.droppable,t=n?So(n,r):r;return t},cf=function(e,r){var n=$e(r,e.scroll.initial),t=hr(n),i=$t({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:n,displacement:t}}};return o};function Bl(e,r){return e.map(function(n){return r[n]})}function Jw(e,r){for(var n=0;n<r.length;n++){var t=r[n].visible[e];if(t)return t}return null}var Xw=function(e){var r=e.impact,n=e.viewport,t=e.destination,i=e.draggables,o=e.maxScrollChange,a=cf(n,ke(n.scroll.current,o)),s=t.frame?ua(t,ke(t.frame.scroll.current,o)):t,l=r.displaced,c=Yr({afterDragging:Bl(l.all,i),destination:t,displacedBy:r.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=Yr({afterDragging:Bl(l.all,i),destination:s,displacedBy:r.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),f={},d={},p=[l,c,u];l.all.forEach(function(v){var m=Jw(v,p);if(m){d[v]=m;return}f[v]=!0});var h=K({},r,{displaced:{all:l.all,invisible:f,visible:d}});return h},Qw=function(e,r){return ke(e.scroll.diff.displacement,r)},va=function(e){var r=e.pageBorderBoxCenter,n=e.draggable,t=e.viewport,i=Qw(t,r),o=$e(i,n.page.borderBox.center);return ke(n.client.borderBox.center,o)},uf=function(e){var r=e.draggable,n=e.destination,t=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=a===void 0?!1:a,l=$e(t,r.page.borderBox.center),c=an(r.page.borderBox,l),u={target:c,destination:n,withDroppableDisplacement:o,viewport:i};return s?zw(u):sf(u)},Zw=function(e){var r=e.isMovingForward,n=e.draggable,t=e.destination,i=e.draggables,o=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!t.isEnabled)return null;var u=gr(t.descriptor.id,i),f=vr(n,t),d=Pw({isMovingForward:r,draggable:n,destination:t,insideDestination:u,previousImpact:o})||Ww({isMovingForward:r,isInHomeList:f,draggable:n,draggables:i,destination:t,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!d)return null;var p=ai({impact:d,draggable:n,droppable:t,draggables:i,afterCritical:c}),h=uf({draggable:n,destination:t,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(h){var v=va({pageBorderBoxCenter:p,draggable:n,viewport:a});return{clientSelection:v,impact:d,scrollJumpRequest:null}}var m=$e(p,s),y=Xw({impact:d,viewport:a,destination:t,draggables:i,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}},Me=function(r){var n=r.subject.active;return n||Y(),n},eC=function(e){var r=e.isMovingForward,n=e.pageBorderBoxCenter,t=e.source,i=e.droppables,o=e.viewport,a=t.subject.active;if(!a)return null;var s=t.axis,l=Je(a[s.start],a[s.end]),c=ni(i).filter(function(f){return f!==t}).filter(function(f){return f.isEnabled}).filter(function(f){return!!f.subject.active}).filter(function(f){return of(o.frame)(Me(f))}).filter(function(f){var d=Me(f);return r?a[s.crossAxisEnd]<d[s.crossAxisEnd]:d[s.crossAxisStart]<a[s.crossAxisStart]}).filter(function(f){var d=Me(f),p=Je(d[s.start],d[s.end]);return l(d[s.start])||l(d[s.end])||p(a[s.start])||p(a[s.end])}).sort(function(f,d){var p=Me(f)[s.crossAxisStart],h=Me(d)[s.crossAxisStart];return r?p-h:h-p}).filter(function(f,d,p){return Me(f)[s.crossAxisStart]===Me(p[0])[s.crossAxisStart]});if(!c.length)return null;if(c.length===1)return c[0];var u=c.filter(function(f){var d=Je(Me(f)[s.start],Me(f)[s.end]);return d(n[s.line])});return u.length===1?u[0]:u.length>1?u.sort(function(f,d){return Me(f)[s.start]-Me(d)[s.start]})[0]:c.sort(function(f,d){var p=Al(n,Ll(Me(f))),h=Al(n,Ll(Me(d)));return p!==h?p-h:Me(f)[s.start]-Me(d)[s.start]})[0]},Gl=function(r,n){var t=r.page.borderBox.center;return Rt(r.descriptor.id,n)?$e(t,n.displacedBy.point):t},tC=function(r,n){var t=r.page.borderBox;return Rt(r.descriptor.id,n)?an(t,hr(n.displacedBy.point)):t},rC=function(e){var r=e.pageBorderBoxCenter,n=e.viewport,t=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter(function(s){return sf({target:tC(s,o),destination:t,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(s,l){var c=Vr(r,So(t,Gl(s,o))),u=Vr(r,So(t,Gl(l,o)));return c<u?-1:u<c?1:s.descriptor.index-l.descriptor.index});return a[0]||null},sn=Te(function(r,n){var t=n[r.line];return{value:t,point:jt(r.line,t)}}),nC=function(r,n,t){var i=r.axis;if(r.descriptor.mode==="virtual")return jt(i.line,n[i.line]);var o=r.subject.page.contentBox[i.size],a=gr(r.descriptor.id,t),s=a.reduce(function(u,f){return u+f.client.marginBox[i.size]},0),l=s+n[i.line],c=l-o;return c<=0?null:jt(i.line,c)},df=function(r,n){return K({},r,{scroll:K({},r.scroll,{max:n})})},ff=function(r,n,t){var i=r.frame;vr(n,r)&&Y(),r.subject.withPlaceholder&&Y();var o=sn(r.axis,n.displaceBy).point,a=nC(r,o,t),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:r.frame?r.frame.scroll.max:null};if(!i){var l=lr({page:r.subject.page,withPlaceholder:s,axis:r.axis,frame:r.frame});return K({},r,{subject:l})}var c=a?ke(i.scroll.max,a):i.scroll.max,u=df(i,c),f=lr({page:r.subject.page,withPlaceholder:s,axis:r.axis,frame:u});return K({},r,{subject:f,frame:u})},iC=function(r){var n=r.subject.withPlaceholder;n||Y();var t=r.frame;if(!t){var i=lr({page:r.subject.page,axis:r.axis,frame:null,withPlaceholder:null});return K({},r,{subject:i})}var o=n.oldFrameMaxScroll;o||Y();var a=df(t,o),s=lr({page:r.subject.page,axis:r.axis,frame:a,withPlaceholder:null});return K({},r,{subject:s,frame:a})},oC=function(e){var r=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,t=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(t.length)return null;var c={displaced:Kr,displacedBy:nf,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=ai({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),f=vr(i,a)?a:ff(a,i,o),d=uf({draggable:i,destination:f,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return d?c:null}var p=r[a.axis.line]<=n.page.borderBox.center[a.axis.line],h=function(){var m=n.descriptor.index;return n.descriptor.id===i.descriptor.id||p?m:m+1}(),v=sn(a.axis,i.displaceBy);return Bn({draggable:i,insideDestination:t,destination:a,viewport:s,displacedBy:v,last:Kr,index:h})},aC=function(e){var r=e.isMovingForward,n=e.previousPageBorderBoxCenter,t=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=eC({isMovingForward:r,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=gr(c.descriptor.id,o),f=rC({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),d=oC({previousPageBorderBoxCenter:n,destination:c,draggable:t,draggables:o,moveRelativeTo:f,insideDestination:u,viewport:s,afterCritical:l});if(!d)return null;var p=ai({impact:d,draggable:t,droppable:c,draggables:o,afterCritical:l}),h=va({pageBorderBoxCenter:p,draggable:t,viewport:s});return{clientSelection:h,impact:d,scrollJumpRequest:null}},We=function(e){var r=e.at;return r?r.type==="REORDER"?r.destination.droppableId:r.combine.droppableId:null},sC=function(r,n){var t=We(r);return t?n[t]:null},lC=function(e){var r=e.state,n=e.type,t=sC(r.impact,r.dimensions.droppables),i=!!t,o=r.dimensions.droppables[r.critical.droppable.id],a=t||o,s=a.axis.direction,l=s==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||s==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(l&&!i)return null;var c=n==="MOVE_DOWN"||n==="MOVE_RIGHT",u=r.dimensions.draggables[r.critical.draggable.id],f=r.current.page.borderBoxCenter,d=r.dimensions,p=d.draggables,h=d.droppables;return l?Zw({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,destination:a,draggables:p,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):aC({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,isOver:a,draggables:p,droppables:h,viewport:r.viewport,afterCritical:r.afterCritical})};function Ot(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function pf(e){var r=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(i){return r(i.y)&&n(i.x)}}function cC(e,r){return e.left<r.right&&e.right>r.left&&e.top<r.bottom&&e.bottom>r.top}function uC(e){var r=e.pageBorderBox,n=e.draggable,t=e.candidates,i=n.page.borderBox.center,o=t.map(function(a){var s=a.axis,l=jt(a.axis.line,r.center[s.line],a.page.borderBox.center[s.crossAxisLine]);return{id:a.descriptor.id,distance:Vr(i,l)}}).sort(function(a,s){return s.distance-a.distance});return o[0]?o[0].id:null}function dC(e){var r=e.pageBorderBox,n=e.draggable,t=e.droppables,i=ni(t).filter(function(o){if(!o.isEnabled)return!1;var a=o.subject.active;if(!a||!cC(r,a))return!1;if(pf(a)(r.center))return!0;var s=o.axis,l=a.center[s.crossAxisLine],c=r[s.crossAxisStart],u=r[s.crossAxisEnd],f=Je(a[s.crossAxisStart],a[s.crossAxisEnd]),d=f(c),p=f(u);return!d&&!p?!0:d?c<l:u>l});return i.length?i.length===1?i[0].descriptor.id:uC({pageBorderBox:r,draggable:n,candidates:i}):null}var hf=function(r,n){return $t(an(r,n))},fC=function(e,r){var n=e.frame;return n?hf(r,n.scroll.diff.value):r};function gf(e){var r=e.displaced,n=e.id;return!!(r.visible[n]||r.invisible[n])}function pC(e){var r=e.draggable,n=e.closest,t=e.inHomeList;return n?t&&n.descriptor.index>r.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var hC=function(e){var r=e.pageBorderBoxWithDroppableScroll,n=e.draggable,t=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=t.axis,c=sn(t.axis,n.displaceBy),u=c.value,f=r[l.start],d=r[l.end],p=oi(n,i),h=Tt(p,function(m){var y=m.descriptor.id,b=m.page.borderBox.center[l.line],C=Rt(y,s),D=gf({displaced:o,id:y});return C?D?d<=b:f<b-u:D?d<=b+u:f<b}),v=pC({draggable:n,closest:h,inHomeList:vr(n,t)});return Bn({draggable:n,insideDestination:i,destination:t,viewport:a,last:o,displacedBy:c,index:v})},gC=4,vC=function(e){var r=e.draggable,n=e.pageBorderBoxWithDroppableScroll,t=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,l=sn(i.axis,r.displaceBy),c=l.value,u=n[s.start],f=n[s.end],d=oi(r,o),p=Tt(d,function(v){var m=v.descriptor.id,y=v.page.borderBox,b=y[s.size],C=b/gC,D=Rt(m,a),P=gf({displaced:t.displaced,id:m});return D?P?f>y[s.start]+C&&f<y[s.end]-C:u>y[s.start]-c+C&&u<y[s.end]-c-C:P?f>y[s.start]+c+C&&f<y[s.end]+c-C:u>y[s.start]+C&&u<y[s.end]-C});if(!p)return null;var h={displacedBy:l,displaced:t.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}};return h},vf=function(e){var r=e.pageOffset,n=e.draggable,t=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,s=e.afterCritical,l=hf(n.page.borderBox,r),c=dC({pageBorderBox:l,draggable:n,droppables:i});if(!c)return kw;var u=i[c],f=gr(u.descriptor.id,t),d=fC(u,l);return vC({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:o,destination:u,insideDestination:f,afterCritical:s})||hC({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:u,insideDestination:f,last:o.displaced,viewport:a,afterCritical:s})},ma=function(e,r){var n;return K({},e,(n={},n[r.descriptor.id]=r,n))},mC=function(r){var n=r.previousImpact,t=r.impact,i=r.droppables,o=We(n),a=We(t);if(!o||o===a)return i;var s=i[o];if(!s.subject.withPlaceholder)return i;var l=iC(s);return ma(i,l)},bC=function(e){var r=e.draggable,n=e.draggables,t=e.droppables,i=e.previousImpact,o=e.impact,a=mC({previousImpact:i,impact:o,droppables:t}),s=We(o);if(!s)return a;var l=t[s];if(vr(r,l)||l.subject.withPlaceholder)return a;var c=ff(l,r,n);return ma(a,c)},Fr=function(e){var r=e.state,n=e.clientSelection,t=e.dimensions,i=e.viewport,o=e.impact,a=e.scrollJumpRequest,s=i||r.viewport,l=t||r.dimensions,c=n||r.current.client.selection,u=$e(c,r.initial.client.selection),f={offset:u,selection:c,borderBoxCenter:ke(r.initial.client.borderBoxCenter,u)},d={selection:ke(f.selection,s.scroll.current),borderBoxCenter:ke(f.borderBoxCenter,s.scroll.current),offset:ke(f.offset,s.scroll.diff.value)},p={client:f,page:d};if(r.phase==="COLLECTING")return K({phase:"COLLECTING"},r,{dimensions:l,viewport:s,current:p});var h=l.draggables[r.critical.draggable.id],v=o||vf({pageOffset:d.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:r.impact,viewport:s,afterCritical:r.afterCritical}),m=bC({draggable:h,impact:v,previousImpact:r.impact,draggables:l.draggables,droppables:l.droppables}),y=K({},r,{current:p,dimensions:{draggables:l.draggables,droppables:m},impact:v,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null});return y};function yC(e,r){return e.map(function(n){return r[n]})}var mf=function(e){var r=e.impact,n=e.viewport,t=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=r.displaced,s=yC(a.all,t),l=Yr({afterDragging:s,destination:i,displacedBy:r.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:a});return K({},r,{displaced:l})},bf=function(e){var r=e.impact,n=e.draggable,t=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=ai({impact:r,draggable:n,draggables:i,droppable:t,afterCritical:a});return va({pageBorderBoxCenter:s,draggable:n,viewport:o})},yf=function(e){var r=e.state,n=e.dimensions,t=e.viewport;r.movementMode!=="SNAP"&&Y();var i=r.impact,o=t||r.viewport,a=n||r.dimensions,s=a.draggables,l=a.droppables,c=s[r.critical.draggable.id],u=We(i);u||Y();var f=l[u],d=mf({impact:i,viewport:o,destination:f,draggables:s}),p=bf({impact:d,draggable:c,droppable:f,draggables:s,viewport:o,afterCritical:r.afterCritical});return Fr({impact:d,clientSelection:p,state:r,dimensions:a,viewport:o})},xC=function(e){return{index:e.index,droppableId:e.droppableId}},xf=function(e){var r=e.draggable,n=e.home,t=e.draggables,i=e.viewport,o=sn(n.axis,r.displaceBy),a=gr(n.descriptor.id,t),s=a.indexOf(r);s===-1&&Y();var l=a.slice(s+1),c=l.reduce(function(p,h){return p[h.descriptor.id]=!0,p},{}),u={inVirtualList:n.descriptor.mode==="virtual",displacedBy:o,effected:c},f=Yr({afterDragging:l,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),d={displaced:f,displacedBy:o,at:{type:"REORDER",destination:xC(r.descriptor)}};return{impact:d,afterCritical:u}},SC=function(e,r){return{draggables:e.draggables,droppables:ma(e.droppables,r)}},wC=function(e){var r=e.draggable,n=e.offset,t=e.initialWindowScroll,i=Ki(r.client,n),o=On(i,t),a=K({},r,{placeholder:K({},r.placeholder,{client:i}),client:i,page:o});return a},CC=function(e){var r=e.frame;return r||Y(),r},IC=function(e){var r=e.additions,n=e.updatedDroppables,t=e.viewport,i=t.scroll.diff.value;return r.map(function(o){var a=o.descriptor.droppableId,s=n[a],l=CC(s),c=l.scroll.diff.value,u=ke(i,c),f=wC({draggable:o,offset:u,initialWindowScroll:t.scroll.initial});return f})},RC=function(e){var r=e.state,n=e.published,t=n.modified.map(function(C){var D=r.dimensions.droppables[C.droppableId],P=ua(D,C.scroll);return P}),i=K({},r.dimensions.droppables,{},tf(t)),o=rf(IC({additions:n.additions,updatedDroppables:i,viewport:r.viewport})),a=K({},r.dimensions.draggables,{},o);n.removals.forEach(function(C){delete a[C]});var s={droppables:i,draggables:a},l=We(r.impact),c=l?s.droppables[l]:null,u=s.draggables[r.critical.draggable.id],f=s.droppables[r.critical.droppable.id],d=xf({draggable:u,home:f,draggables:a,viewport:r.viewport}),p=d.impact,h=d.afterCritical,v=c&&c.isCombineEnabled?r.impact:p,m=vf({pageOffset:r.current.page.offset,draggable:s.draggables[r.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:v,viewport:r.viewport,afterCritical:h}),y=K({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:m,onLiftImpact:p,dimensions:s,afterCritical:h,forceShouldAnimate:!1});if(r.phase==="COLLECTING")return y;var b=K({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1});return b},wo=function(r){return r.movementMode==="SNAP"},ji=function(r,n,t){var i=SC(r.dimensions,n);return!wo(r)||t?Fr({state:r,dimensions:i}):yf({state:r,dimensions:i})};function Fi(e){return e.isDragging&&e.movementMode==="SNAP"?K({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var $l={phase:"IDLE",completed:null,shouldFlush:!1},TC=function(e,r){if(e===void 0&&(e=$l),r.type==="FLUSH")return K({},$l,{shouldFlush:!0});if(r.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&Y();var n=r.payload,t=n.critical,i=n.clientSelection,o=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[t.draggable.id],c=a.droppables[t.droppable.id],u={selection:i,borderBoxCenter:l.client.borderBox.center,offset:De},f={client:u,page:{selection:ke(u.selection,o.scroll.initial),borderBoxCenter:ke(u.selection,o.scroll.initial),offset:ke(u.selection,o.scroll.diff.value)}},d=ni(a.droppables).every(function(j){return!j.isFixedOnPage}),p=xf({draggable:l,home:c,draggables:a.draggables,viewport:o}),h=p.impact,v=p.afterCritical,m={phase:"DRAGGING",isDragging:!0,critical:t,movementMode:s,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:h,afterCritical:v,onLiftImpact:h,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null};return m}if(r.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&Y();var y=K({phase:"COLLECTING"},e,{phase:"COLLECTING"});return y}if(r.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||Y(),RC({state:e,published:r.payload});if(r.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ot(e)||Y();var b=r.payload.client;return xt(b,e.current.client.selection)?e:Fr({state:e,clientSelection:b,impact:wo(e)?e.impact:null})}if(r.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return Fi(e);Ot(e)||Y();var C=r.payload,D=C.id,P=C.newScroll,w=e.dimensions.droppables[D];if(!w)return e;var _=ua(w,P);return ji(e,_,!1)}if(r.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ot(e)||Y();var S=r.payload,R=S.id,T=S.isEnabled,O=e.dimensions.droppables[R];O||Y(),O.isEnabled===T&&Y();var L=K({},O,{isEnabled:T});return ji(e,L,!0)}if(r.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ot(e)||Y();var M=r.payload,H=M.id,E=M.isCombineEnabled,B=e.dimensions.droppables[H];B||Y(),B.isCombineEnabled===E&&Y();var G=K({},B,{isCombineEnabled:E});return ji(e,G,!0)}if(r.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ot(e)||Y(),e.isWindowScrollAllowed||Y();var U=r.payload.newScroll;if(xt(e.viewport.scroll.current,U))return Fi(e);var J=cf(e.viewport,U);return wo(e)?yf({state:e,viewport:J}):Fr({state:e,viewport:J})}if(r.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ot(e))return e;var ee=r.payload.maxScroll;if(xt(ee,e.viewport.scroll.max))return e;var X=K({},e.viewport,{scroll:K({},e.viewport.scroll,{max:ee})});return K({phase:"DRAGGING"},e,{viewport:X})}if(r.type==="MOVE_UP"||r.type==="MOVE_DOWN"||r.type==="MOVE_LEFT"||r.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&Y();var Z=lC({state:e,type:r.type});return Z?Fr({state:e,impact:Z.impact,clientSelection:Z.clientSelection,scrollJumpRequest:Z.scrollJumpRequest}):e}if(r.type==="DROP_PENDING"){var q=r.payload.reason;e.phase!=="COLLECTING"&&Y();var re=K({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:q});return re}if(r.type==="DROP_ANIMATE"){var ne=r.payload,ue=ne.completed,$=ne.dropDuration,W=ne.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||Y();var k={phase:"DROP_ANIMATING",completed:ue,dropDuration:$,newHomeClientOffset:W,dimensions:e.dimensions};return k}if(r.type==="DROP_COMPLETE"){var N=r.payload.completed;return{phase:"IDLE",completed:N,shouldFlush:!1}}return e},DC=function(r){return{type:"BEFORE_INITIAL_CAPTURE",payload:r}},_C=function(r){return{type:"LIFT",payload:r}},PC=function(r){return{type:"INITIAL_PUBLISH",payload:r}},kC=function(r){return{type:"PUBLISH_WHILE_DRAGGING",payload:r}},OC=function(){return{type:"COLLECTION_STARTING",payload:null}},EC=function(r){return{type:"UPDATE_DROPPABLE_SCROLL",payload:r}},NC=function(r){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:r}},MC=function(r){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:r}},Sf=function(r){return{type:"MOVE",payload:r}},AC=function(r){return{type:"MOVE_BY_WINDOW_SCROLL",payload:r}},LC=function(r){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:r}},zC=function(){return{type:"MOVE_UP",payload:null}},jC=function(){return{type:"MOVE_DOWN",payload:null}},FC=function(){return{type:"MOVE_RIGHT",payload:null}},BC=function(){return{type:"MOVE_LEFT",payload:null}},ba=function(){return{type:"FLUSH",payload:null}},GC=function(r){return{type:"DROP_ANIMATE",payload:r}},ya=function(r){return{type:"DROP_COMPLETE",payload:r}},wf=function(r){return{type:"DROP",payload:r}},$C=function(r){return{type:"DROP_PENDING",payload:r}},Cf=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},WC=function(e){return function(r){var n=r.getState,t=r.dispatch;return function(i){return function(o){if(o.type!=="LIFT"){i(o);return}var a=o.payload,s=a.id,l=a.clientSelection,c=a.movementMode,u=n();u.phase==="DROP_ANIMATING"&&t(ya({completed:u.completed})),n().phase!=="IDLE"&&Y(),t(ba()),t(DC({draggableId:s,movementMode:c}));var f={shouldPublishImmediately:c==="SNAP"},d={draggableId:s,scrollOptions:f},p=e.startPublishing(d),h=p.critical,v=p.dimensions,m=p.viewport;t(PC({critical:h,dimensions:v,clientSelection:l,movementMode:c,viewport:m}))}}}},HC=function(e){return function(){return function(r){return function(n){n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),r(n)}}}},xa={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Jr={opacity:{drop:0,combining:.7},scale:{drop:.75}},Sa={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},_t=Sa.outOfTheWay+"s "+xa.outOfTheWay,Br={fluid:"opacity "+_t,snap:"transform "+_t+", opacity "+_t,drop:function(r){var n=r+"s "+xa.drop;return"transform "+n+", opacity "+n},outOfTheWay:"transform "+_t,placeholder:"height "+_t+", width "+_t+", margin "+_t},Wl=function(r){return xt(r,De)?null:"translate("+r.x+"px, "+r.y+"px)"},Co={moveTo:Wl,drop:function(r,n){var t=Wl(r);return t?n?t+" scale("+Jr.scale.drop+")":t:null}},Io=Sa.minDropTime,If=Sa.maxDropTime,UC=If-Io,Hl=1500,qC=.6,VC=function(e){var r=e.current,n=e.destination,t=e.reason,i=Vr(r,n);if(i<=0)return Io;if(i>=Hl)return If;var o=i/Hl,a=Io+UC*o,s=t==="CANCEL"?a*qC:a;return Number(s.toFixed(2))},KC=function(e){var r=e.impact,n=e.draggable,t=e.dimensions,i=e.viewport,o=e.afterCritical,a=t.draggables,s=t.droppables,l=We(r),c=l?s[l]:null,u=s[n.descriptor.droppableId],f=bf({impact:r,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i}),d=$e(f,n.client.borderBox.center);return d},YC=function(e){var r=e.draggables,n=e.reason,t=e.lastImpact,i=e.home,o=e.viewport,a=e.onLiftImpact;if(!t.at||n!=="DROP"){var s=mf({draggables:r,impact:a,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:s,didDropInsideDroppable:!1}}if(t.at.type==="REORDER")return{impact:t,didDropInsideDroppable:!0};var l=K({},t,{displaced:Kr});return{impact:l,didDropInsideDroppable:!0}},JC=function(e){var r=e.getState,n=e.dispatch;return function(t){return function(i){if(i.type!=="DROP"){t(i);return}var o=r(),a=i.payload.reason;if(o.phase==="COLLECTING"){n($C({reason:a}));return}if(o.phase!=="IDLE"){var s=o.phase==="DROP_PENDING"&&o.isWaiting;s&&Y(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||Y();var l=o.critical,c=o.dimensions,u=c.draggables[o.critical.draggable.id],f=YC({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=f.impact,p=f.didDropInsideDroppable,h=p?fa(d):null,v=p?ii(d):null,m={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:h,combine:v},b=KC({impact:d,draggable:u,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),C={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:d},D=!xt(o.current.client.offset,b)||!!y.combine;if(!D){n(ya({completed:C}));return}var P=VC({current:o.current.client.offset,destination:b,reason:a}),w={newHomeClientOffset:b,dropDuration:P,completed:C};n(GC(w))}}}},Rf=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function XC(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function QC(e){var r=e.onWindowScroll;function n(){r(Rf())}var t=Gr(n),i=XC(t),o=yt;function a(){return o!==yt}function s(){a()&&Y(),o=Ye(window,[i])}function l(){a()||Y(),t.cancel(),o(),o=yt}return{start:s,stop:l,isActive:a}}var ZC=function(r){return r.type==="DROP_COMPLETE"||r.type==="DROP_ANIMATE"||r.type==="FLUSH"},e0=function(e){var r=QC({onWindowScroll:function(t){e.dispatch(AC({newScroll:t}))}});return function(n){return function(t){!r.isActive()&&t.type==="INITIAL_PUBLISH"&&r.start(),r.isActive()&&ZC(t)&&r.stop(),n(t)}}},t0=function(e){var r=!1,n=!1,t=setTimeout(function(){n=!0}),i=function(a){r||n||(r=!0,e(a),clearTimeout(t))};return i.wasCalled=function(){return r},i},r0=function(){var e=[],r=function(o){var a=da(e,function(c){return c.timerId===o});a===-1&&Y();var s=e.splice(a,1),l=s[0];l.callback()},n=function(o){var a=setTimeout(function(){return r(a)}),s={timerId:a,callback:o};e.push(s)},t=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(a){clearTimeout(a.timerId),a.callback()})}};return{add:n,flush:t}},n0=function(r,n){return r==null&&n==null?!0:r==null||n==null?!1:r.droppableId===n.droppableId&&r.index===n.index},i0=function(r,n){return r==null&&n==null?!0:r==null||n==null?!1:r.draggableId===n.draggableId&&r.droppableId===n.droppableId},o0=function(r,n){if(r===n)return!0;var t=r.draggable.id===n.draggable.id&&r.draggable.droppableId===n.draggable.droppableId&&r.draggable.type===n.draggable.type&&r.draggable.index===n.draggable.index,i=r.droppable.id===n.droppable.id&&r.droppable.type===n.droppable.type;return t&&i},Cr=function(r,n){n()},gn=function(r,n){return{draggableId:r.draggable.id,type:r.droppable.type,source:{droppableId:r.droppable.id,index:r.draggable.index},mode:n}},Bi=function(r,n,t,i){if(!r){t(i(n));return}var o=t0(t),a={announce:o};r(n,a),o.wasCalled()||t(i(n))},a0=function(e,r){var n=r0(),t=null,i=function(d,p){t&&Y(),Cr("onBeforeCapture",function(){var h=e().onBeforeCapture;if(h){var v={draggableId:d,mode:p};h(v)}})},o=function(d,p){t&&Y(),Cr("onBeforeDragStart",function(){var h=e().onBeforeDragStart;h&&h(gn(d,p))})},a=function(d,p){t&&Y();var h=gn(d,p);t={mode:p,lastCritical:d,lastLocation:h.source,lastCombine:null},n.add(function(){Cr("onDragStart",function(){return Bi(e().onDragStart,h,r,Tn.onDragStart)})})},s=function(d,p){var h=fa(p),v=ii(p);t||Y();var m=!o0(d,t.lastCritical);m&&(t.lastCritical=d);var y=!n0(t.lastLocation,h);y&&(t.lastLocation=h);var b=!i0(t.lastCombine,v);if(b&&(t.lastCombine=v),!(!m&&!y&&!b)){var C=K({},gn(d,t.mode),{combine:v,destination:h});n.add(function(){Cr("onDragUpdate",function(){return Bi(e().onDragUpdate,C,r,Tn.onDragUpdate)})})}},l=function(){t||Y(),n.flush()},c=function(d){t||Y(),t=null,Cr("onDragEnd",function(){return Bi(e().onDragEnd,d,r,Tn.onDragEnd)})},u=function(){if(t){var d=K({},gn(t.lastCritical,t.mode),{combine:null,destination:null,reason:"CANCEL"});c(d)}};return{beforeCapture:i,beforeStart:o,start:a,update:s,flush:l,drop:c,abort:u}},s0=function(e,r){var n=a0(e,r);return function(t){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var a=o.payload.critical;n.beforeStart(a,o.payload.movementMode),i(o),n.start(a,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var s=o.payload.completed.result;n.flush(),i(o),n.drop(s);return}if(i(o),o.type==="FLUSH"){n.abort();return}var l=t.getState();l.phase==="DRAGGING"&&n.update(l.critical,l.impact)}}}},l0=function(e){return function(r){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){r(n);return}var t=e.getState();t.phase!=="DROP_ANIMATING"&&Y(),e.dispatch(ya({completed:t.completed}))}}},c0=function(e){var r=null,n=null;function t(){n&&(cancelAnimationFrame(n),n=null),r&&(r(),r=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&t(),i(o),o.type==="DROP_ANIMATE"){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var l=e.getState();l.phase==="DROP_ANIMATING"&&e.dispatch(Cf())}};n=requestAnimationFrame(function(){n=null,r=Ye(window,[a])})}}}},u0=function(e){return function(){return function(r){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),r(n)}}}},d0=function(e){var r=!1;return function(){return function(n){return function(t){if(t.type==="INITIAL_PUBLISH"){r=!0,e.tryRecordFocus(t.payload.critical.draggable.id),n(t),e.tryRestoreFocusRecorded();return}if(n(t),!!r){if(t.type==="FLUSH"){r=!1,e.tryRestoreFocusRecorded();return}if(t.type==="DROP_COMPLETE"){r=!1;var i=t.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},f0=function(r){return r.type==="DROP_COMPLETE"||r.type==="DROP_ANIMATE"||r.type==="FLUSH"},p0=function(e){return function(r){return function(n){return function(t){if(f0(t)){e.stop(),n(t);return}if(t.type==="INITIAL_PUBLISH"){n(t);var i=r.getState();i.phase!=="DRAGGING"&&Y(),e.start(i);return}n(t),e.scroll(r.getState())}}}},h0=function(e){return function(r){return function(n){if(r(n),n.type==="PUBLISH_WHILE_DRAGGING"){var t=e.getState();t.phase==="DROP_PENDING"&&(t.isWaiting||e.dispatch(wf({reason:t.reason})))}}}},g0=Ah,v0=function(e){var r=e.dimensionMarshal,n=e.focusMarshal,t=e.styleMarshal,i=e.getResponders,o=e.announce,a=e.autoScroller;return Mh(TC,g0(Lh(HC(t),u0(r),WC(r),JC,l0,c0,h0,p0(a),e0,d0(n),s0(i,o))))},Gi=function(){return{additions:{},removals:{},modified:{}}};function m0(e){var r=e.registry,n=e.callbacks,t=Gi(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var u=t,f=u.additions,d=u.removals,p=u.modified,h=Object.keys(f).map(function(y){return r.draggable.getById(y).getDimension(De)}).sort(function(y,b){return y.descriptor.index-b.descriptor.index}),v=Object.keys(p).map(function(y){var b=r.droppable.getById(y),C=b.callbacks.getScrollWhileDragging();return{droppableId:y,scroll:C}}),m={additions:h,removals:Object.keys(d),modified:v};t=Gi(),n.publish(m)}))},a=function(u){var f=u.descriptor.id;t.additions[f]=u,t.modified[u.descriptor.droppableId]=!0,t.removals[f]&&delete t.removals[f],o()},s=function(u){var f=u.descriptor;t.removals[f.id]=!0,t.modified[f.droppableId]=!0,t.additions[f.id]&&delete t.additions[f.id],o()},l=function(){i&&(cancelAnimationFrame(i),i=null,t=Gi())};return{add:a,remove:s,stop:l}}var Tf=function(e){var r=e.scrollHeight,n=e.scrollWidth,t=e.height,i=e.width,o=$e({x:n,y:r},{x:i,y:t}),a={x:Math.max(0,o.x),y:Math.max(0,o.y)};return a},Df=function(){var e=document.documentElement;return e||Y(),e},_f=function(){var e=Df(),r=Tf({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return r},b0=function(){var e=Rf(),r=_f(),n=e.y,t=e.x,i=Df(),o=i.clientWidth,a=i.clientHeight,s=t+o,l=n+a,c=$t({top:n,left:t,right:s,bottom:l}),u={frame:c,scroll:{initial:e,current:e,max:r,diff:{value:De,displacement:De}}};return u},y0=function(e){var r=e.critical,n=e.scrollOptions,t=e.registry,i=b0(),o=i.scroll.current,a=r.droppable,s=t.droppable.getAllByType(a.type).map(function(f){return f.callbacks.getDimensionAndWatchScroll(o,n)}),l=t.draggable.getAllByType(r.draggable.type).map(function(f){return f.getDimension(o)}),c={draggables:rf(l),droppables:tf(s)},u={dimensions:c,critical:r,viewport:i};return u};function Ul(e,r,n){if(n.descriptor.id===r.id||n.descriptor.type!==r.type)return!1;var t=e.droppable.getById(n.descriptor.droppableId);return t.descriptor.mode==="virtual"}var x0=function(e,r){var n=null,t=m0({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(p,h){e.droppable.exists(p)||Y(),n&&r.updateDroppableIsEnabled({id:p,isEnabled:h})},o=function(p,h){n&&(e.droppable.exists(p)||Y(),r.updateDroppableIsCombineEnabled({id:p,isCombineEnabled:h}))},a=function(p,h){n&&(e.droppable.exists(p)||Y(),r.updateDroppableScroll({id:p,newScroll:h}))},s=function(p,h){n&&e.droppable.getById(p).callbacks.scroll(h)},l=function(){if(n){t.stop();var p=n.critical.droppable;e.droppable.getAllByType(p.type).forEach(function(h){return h.callbacks.dragStopped()}),n.unsubscribe(),n=null}},c=function(p){n||Y();var h=n.critical.draggable;p.type==="ADDITION"&&Ul(e,h,p.value)&&t.add(p.value),p.type==="REMOVAL"&&Ul(e,h,p.value)&&t.remove(p.value)},u=function(p){n&&Y();var h=e.draggable.getById(p.draggableId),v=e.droppable.getById(h.descriptor.droppableId),m={draggable:h.descriptor,droppable:v.descriptor},y=e.subscribe(c);return n={critical:m,unsubscribe:y},y0({critical:m,registry:e,scrollOptions:p.scrollOptions})},f={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:s,updateDroppableScroll:a,startPublishing:u,stopPublishing:l};return f},Pf=function(e,r){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===r?!1:e.completed.result.reason==="DROP"},S0=function(e){window.scrollBy(e.x,e.y)},w0=Te(function(e){return ni(e).filter(function(r){return!(!r.isEnabled||!r.frame)})}),C0=function(r,n){var t=Tt(w0(n),function(i){return i.frame||Y(),pf(i.frame.pageMarginBox)(r)});return t},I0=function(e){var r=e.center,n=e.destination,t=e.droppables;if(n){var i=t[n];return i.frame?i:null}var o=C0(r,t);return o},St={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(r){return Math.pow(r,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},R0=function(e,r){var n=e[r.size]*St.startFromPercentage,t=e[r.size]*St.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:t};return i},kf=function(e){var r=e.startOfRange,n=e.endOfRange,t=e.current,i=n-r;if(i===0)return 0;var o=t-r,a=o/i;return a},wa=1,T0=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return St.maxPixelScroll;if(e===r.startScrollingFrom)return wa;var n=kf({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),t=1-n,i=St.maxPixelScroll*St.ease(t);return Math.ceil(i)},ql=St.durationDampening.accelerateAt,Vl=St.durationDampening.stopDampeningAt,D0=function(e,r){var n=r,t=Vl,i=Date.now(),o=i-n;if(o>=Vl)return e;if(o<ql)return wa;var a=kf({startOfRange:ql,endOfRange:t,current:o}),s=e*St.ease(a);return Math.ceil(s)},Kl=function(e){var r=e.distanceToEdge,n=e.thresholds,t=e.dragStartTime,i=e.shouldUseTimeDampening,o=T0(r,n);return o===0?0:i?Math.max(D0(o,t),wa):o},Yl=function(e){var r=e.container,n=e.distanceToEdges,t=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=R0(r,i),s=n[i.end]<n[i.start];return s?Kl({distanceToEdge:n[i.end],thresholds:a,dragStartTime:t,shouldUseTimeDampening:o}):-1*Kl({distanceToEdge:n[i.start],thresholds:a,dragStartTime:t,shouldUseTimeDampening:o})},_0=function(e){var r=e.container,n=e.subject,t=e.proposedScroll,i=n.height>r.height,o=n.width>r.width;return!o&&!i?t:o&&i?null:{x:o?0:t.x,y:i?0:t.y}},P0=Zd(function(e){return e===0?0:e}),Of=function(e){var r=e.dragStartTime,n=e.container,t=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},s=Yl({container:n,distanceToEdges:a,dragStartTime:r,axis:pa,shouldUseTimeDampening:o}),l=Yl({container:n,distanceToEdges:a,dragStartTime:r,axis:af,shouldUseTimeDampening:o}),c=P0({x:l,y:s});if(xt(c,De))return null;var u=_0({container:n,subject:t,proposedScroll:c});return u?xt(u,De)?null:u:null},k0=Zd(function(e){return e===0?0:e>0?1:-1}),Ca=function(){var e=function(n,t){return n<0?n:n>t?n-t:0};return function(r){var n=r.current,t=r.max,i=r.change,o=ke(n,i),a={x:e(o.x,t.x),y:e(o.y,t.y)};return xt(a,De)?null:a}}(),Ef=function(r){var n=r.max,t=r.current,i=r.change,o={x:Math.max(t.x,n.x),y:Math.max(t.y,n.y)},a=k0(i),s=Ca({max:o,current:t,change:a});return!s||a.x!==0&&s.x===0||a.y!==0&&s.y===0},Ia=function(r,n){return Ef({current:r.scroll.current,max:r.scroll.max,change:n})},O0=function(r,n){if(!Ia(r,n))return null;var t=r.scroll.max,i=r.scroll.current;return Ca({current:i,max:t,change:n})},Ra=function(r,n){var t=r.frame;return t?Ef({current:t.scroll.current,max:t.scroll.max,change:n}):!1},E0=function(r,n){var t=r.frame;return!t||!Ra(r,n)?null:Ca({current:t.scroll.current,max:t.scroll.max,change:n})},N0=function(e){var r=e.viewport,n=e.subject,t=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=Of({dragStartTime:i,container:r.frame,subject:n,center:t,shouldUseTimeDampening:o});return a&&Ia(r,a)?a:null},M0=function(e){var r=e.droppable,n=e.subject,t=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=r.frame;if(!a)return null;var s=Of({dragStartTime:i,container:a.pageMarginBox,subject:n,center:t,shouldUseTimeDampening:o});return s&&Ra(r,s)?s:null},Jl=function(e){var r=e.state,n=e.dragStartTime,t=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=r.current.page.borderBoxCenter,s=r.dimensions.draggables[r.critical.draggable.id],l=s.page.marginBox;if(r.isWindowScrollAllowed){var c=r.viewport,u=N0({dragStartTime:n,viewport:c,subject:l,center:a,shouldUseTimeDampening:t});if(u){i(u);return}}var f=I0({center:a,destination:We(r.impact),droppables:r.dimensions.droppables});if(f){var d=M0({dragStartTime:n,droppable:f,subject:l,center:a,shouldUseTimeDampening:t});d&&o(f.descriptor.id,d)}},A0=function(e){var r=e.scrollWindow,n=e.scrollDroppable,t=Gr(r),i=Gr(n),o=null,a=function(u){o||Y();var f=o,d=f.shouldUseTimeDampening,p=f.dragStartTime;Jl({state:u,scrollWindow:t,scrollDroppable:i,dragStartTime:p,shouldUseTimeDampening:d})},s=function(u){o&&Y();var f=Date.now(),d=!1,p=function(){d=!0};Jl({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p}),o={dragStartTime:f,shouldUseTimeDampening:d},d&&a(u)},l=function(){o&&(t.cancel(),i.cancel(),o=null)};return{start:s,stop:l,scroll:a}},L0=function(e){var r=e.move,n=e.scrollDroppable,t=e.scrollWindow,i=function(c,u){var f=ke(c.current.client.selection,u);r({client:f})},o=function(c,u){if(!Ra(c,u))return u;var f=E0(c,u);if(!f)return n(c.descriptor.id,u),null;var d=$e(u,f);n(c.descriptor.id,d);var p=$e(u,d);return p},a=function(c,u,f){if(!c||!Ia(u,f))return f;var d=O0(u,f);if(!d)return t(f),null;var p=$e(f,d);t(p);var h=$e(f,p);return h},s=function(c){var u=c.scrollJumpRequest;if(u){var f=We(c.impact);f||Y();var d=o(c.dimensions.droppables[f],u);if(d){var p=c.viewport,h=a(c.isWindowScrollAllowed,p,d);h&&i(c,h)}}};return s},z0=function(e){var r=e.scrollDroppable,n=e.scrollWindow,t=e.move,i=A0({scrollWindow:n,scrollDroppable:r}),o=L0({move:t,scrollWindow:n,scrollDroppable:r}),a=function(c){if(c.phase==="DRAGGING"){if(c.movementMode==="FLUID"){i.scroll(c);return}c.scrollJumpRequest&&o(c)}},s={scroll:a,start:i.start,stop:i.stop};return s},cr="data-rbd",ur=function(){var e=cr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Ro=function(){var e=cr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),j0=function(){var e=cr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Xl={contextId:cr+"-scroll-container-context-id"},F0=function(r){return function(n){return"["+n+'="'+r+'"]'}},Ir=function(r,n){return r.map(function(t){var i=t.styles[n];return i?t.selector+" { "+i+" }":""}).join(" ")},B0="pointer-events: none;",G0=function(e){var r=F0(e),n=function(){var s=`
|
|
441
|
-
cursor: -webkit-grab;
|
|
442
|
-
cursor: grab;
|
|
443
|
-
`;return{selector:r(ur.contextId),styles:{always:`
|
|
444
|
-
-webkit-touch-callout: none;
|
|
445
|
-
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
446
|
-
touch-action: manipulation;
|
|
447
|
-
`,resting:s,dragging:B0,dropAnimating:s}}}(),t=function(){var s=`
|
|
448
|
-
transition: `+Br.outOfTheWay+`;
|
|
449
|
-
`;return{selector:r(Ro.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}}(),i={selector:r(j0.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:`
|
|
450
|
-
cursor: grabbing;
|
|
451
|
-
cursor: -webkit-grabbing;
|
|
452
|
-
user-select: none;
|
|
453
|
-
-webkit-user-select: none;
|
|
454
|
-
-moz-user-select: none;
|
|
455
|
-
-ms-user-select: none;
|
|
456
|
-
overflow-anchor: none;
|
|
457
|
-
`}},a=[t,n,i,o];return{always:Ir(a,"always"),resting:Ir(a,"resting"),dragging:Ir(a,"dragging"),dropAnimating:Ir(a,"dropAnimating"),userCancel:Ir(a,"userCancel")}},He=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect,$i=function(){var r=document.querySelector("head");return r||Y(),r},Ql=function(r){var n=document.createElement("style");return r&&n.setAttribute("nonce",r),n.type="text/css",n};function $0(e,r){var n=de(function(){return G0(e)},[e]),t=I.useRef(null),i=I.useRef(null),o=ie(Te(function(f){var d=i.current;d||Y(),d.textContent=f}),[]),a=ie(function(f){var d=t.current;d||Y(),d.textContent=f},[]);He(function(){!t.current&&!i.current||Y();var f=Ql(r),d=Ql(r);return t.current=f,i.current=d,f.setAttribute(cr+"-always",e),d.setAttribute(cr+"-dynamic",e),$i().appendChild(f),$i().appendChild(d),a(n.always),o(n.resting),function(){var p=function(v){var m=v.current;m||Y(),$i().removeChild(m),v.current=null};p(t),p(i)}},[r,a,o,n.always,n.resting,e]);var s=ie(function(){return o(n.dragging)},[o,n.dragging]),l=ie(function(f){if(f==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),c=ie(function(){i.current&&o(n.resting)},[o,n.resting]),u=de(function(){return{dragging:s,dropping:l,resting:c}},[s,l,c]);return u}var Nf=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function si(e){return e instanceof Nf(e).HTMLElement}function W0(e,r){var n="["+ur.contextId+'="'+e+'"]',t=ef(document.querySelectorAll(n));if(!t.length)return null;var i=Tt(t,function(o){return o.getAttribute(ur.draggableId)===r});return!i||!si(i)?null:i}function H0(e){var r=I.useRef({}),n=I.useRef(null),t=I.useRef(null),i=I.useRef(!1),o=ie(function(d,p){var h={id:d,focus:p};return r.current[d]=h,function(){var m=r.current,y=m[d];y!==h&&delete m[d]}},[]),a=ie(function(d){var p=W0(e,d);p&&p!==document.activeElement&&p.focus()},[e]),s=ie(function(d,p){n.current===d&&(n.current=p)},[]),l=ie(function(){t.current||i.current&&(t.current=requestAnimationFrame(function(){t.current=null;var d=n.current;d&&a(d)}))},[a]),c=ie(function(d){n.current=null;var p=document.activeElement;p&&p.getAttribute(ur.draggableId)===d&&(n.current=d)},[]);He(function(){return i.current=!0,function(){i.current=!1;var d=t.current;d&&cancelAnimationFrame(d)}},[]);var u=de(function(){return{register:o,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}},[o,c,l,s]);return u}function U0(){var e={draggables:{},droppables:{}},r=[];function n(f){return r.push(f),function(){var p=r.indexOf(f);p!==-1&&r.splice(p,1)}}function t(f){r.length&&r.forEach(function(d){return d(f)})}function i(f){return e.draggables[f]||null}function o(f){var d=i(f);return d||Y(),d}var a={register:function(d){e.draggables[d.descriptor.id]=d,t({type:"ADDITION",value:d})},update:function(d,p){var h=e.draggables[p.descriptor.id];h&&h.uniqueId===d.uniqueId&&(delete e.draggables[p.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:function(d){var p=d.descriptor.id,h=i(p);h&&d.uniqueId===h.uniqueId&&(delete e.draggables[p],t({type:"REMOVAL",value:d}))},getById:o,findById:i,exists:function(d){return!!i(d)},getAllByType:function(d){return Fn(e.draggables).filter(function(p){return p.descriptor.type===d})}};function s(f){return e.droppables[f]||null}function l(f){var d=s(f);return d||Y(),d}var c={register:function(d){e.droppables[d.descriptor.id]=d},unregister:function(d){var p=s(d.descriptor.id);p&&d.uniqueId===p.uniqueId&&delete e.droppables[d.descriptor.id]},getById:l,findById:s,exists:function(d){return!!s(d)},getAllByType:function(d){return Fn(e.droppables).filter(function(p){return p.descriptor.type===d})}};function u(){e.draggables={},e.droppables={},r.length=0}return{draggable:a,droppable:c,subscribe:n,clean:u}}function q0(){var e=de(U0,[]);return I.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Ta=Q.createContext(null),Gn=function(){var e=document.body;return e||Y(),e},V0={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},K0=function(r){return"rbd-announcement-"+r};function Y0(e){var r=de(function(){return K0(e)},[e]),n=I.useRef(null);I.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=r,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),K(o.style,V0),Gn().appendChild(o),function(){setTimeout(function(){var l=Gn();l.contains(o)&&l.removeChild(o),o===n.current&&(n.current=null)})}},[r]);var t=ie(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return t}var J0=0,X0={separator:"::"};function Da(e,r){return r===void 0&&(r=X0),de(function(){return""+e+r.separator+J0++},[r.separator,e])}function Q0(e){var r=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+r+"-"+n}function Z0(e){var r=e.contextId,n=e.text,t=Da("hidden-text",{separator:"-"}),i=de(function(){return Q0({contextId:r,uniqueId:t})},[t,r]);return I.useEffect(function(){var a=document.createElement("div");return a.id=i,a.textContent=n,a.style.display="none",Gn().appendChild(a),function(){var l=Gn();l.contains(a)&&l.removeChild(a)}},[i,n]),i}var li=Q.createContext(null);function Mf(e){var r=I.useRef(e);return I.useEffect(function(){r.current=e}),r}function eI(){var e=null;function r(){return!!e}function n(a){return a===e}function t(a){e&&Y();var s={abandon:a};return e=s,s}function i(){e||Y(),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:r,isActive:n,claim:t,release:i,tryAbandon:o}}var tI=9,rI=13,_a=27,Af=32,nI=33,iI=34,oI=35,aI=36,sI=37,lI=38,cI=39,uI=40,vn,dI=(vn={},vn[rI]=!0,vn[tI]=!0,vn),Lf=function(e){dI[e.keyCode]&&e.preventDefault()},ci=function(){var e="visibilitychange";if(typeof document>"u")return e;var r=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=Tt(r,function(t){return"on"+t in document});return n||e}(),zf=0,Zl=5;function fI(e,r){return Math.abs(r.x-e.x)>=Zl||Math.abs(r.y-e.y)>=Zl}var ec={type:"IDLE"};function pI(e){var r=e.cancel,n=e.completed,t=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(a){var s=a.button,l=a.clientX,c=a.clientY;if(s===zf){var u={x:l,y:c},f=t();if(f.type==="DRAGGING"){a.preventDefault(),f.actions.move(u);return}f.type!=="PENDING"&&Y();var d=f.point;if(fI(d,u)){a.preventDefault();var p=f.actions.fluidLift(u);i({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(a){var s=t();if(s.type!=="DRAGGING"){r();return}a.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(a){t().type==="DRAGGING"&&a.preventDefault(),r()}},{eventName:"keydown",fn:function(a){var s=t();if(s.type==="PENDING"){r();return}if(a.keyCode===_a){a.preventDefault(),r();return}Lf(a)}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){t().type==="PENDING"&&r()}},{eventName:"webkitmouseforcedown",fn:function(a){var s=t();if(s.type==="IDLE"&&Y(),s.actions.shouldRespectForcePress()){r();return}a.preventDefault()}},{eventName:ci,fn:r}]}function hI(e){var r=I.useRef(ec),n=I.useRef(yt),t=de(function(){return{eventName:"mousedown",fn:function(f){if(!f.defaultPrevented&&f.button===zf&&!(f.ctrlKey||f.metaKey||f.shiftKey||f.altKey)){var d=e.findClosestDraggableId(f);if(d){var p=e.tryGetLock(d,a,{sourceEvent:f});if(p){f.preventDefault();var h={x:f.clientX,y:f.clientY};n.current(),c(p,h)}}}}}},[e]),i=de(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(f){if(!f.defaultPrevented){var d=e.findClosestDraggableId(f);if(d){var p=e.findOptionsForDraggable(d);p&&(p.shouldRespectForcePress||e.canGetLock(d)&&f.preventDefault())}}}}},[e]),o=ie(function(){var f={passive:!1,capture:!0};n.current=Ye(window,[i,t],f)},[i,t]),a=ie(function(){var u=r.current;u.type!=="IDLE"&&(r.current=ec,n.current(),o())},[o]),s=ie(function(){var u=r.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),l=ie(function(){var f={capture:!0,passive:!1},d=pI({cancel:s,completed:a,getPhase:function(){return r.current},setPhase:function(h){r.current=h}});n.current=Ye(window,d,f)},[s,a]),c=ie(function(f,d){r.current.type!=="IDLE"&&Y(),r.current={type:"PENDING",point:d,actions:f},l()},[l]);He(function(){return o(),function(){n.current()}},[o])}var Yt;function gI(){}var vI=(Yt={},Yt[iI]=!0,Yt[nI]=!0,Yt[aI]=!0,Yt[oI]=!0,Yt);function mI(e,r){function n(){r(),e.cancel()}function t(){r(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===_a){o.preventDefault(),n();return}if(o.keyCode===Af){o.preventDefault(),t();return}if(o.keyCode===uI){o.preventDefault(),e.moveDown();return}if(o.keyCode===lI){o.preventDefault(),e.moveUp();return}if(o.keyCode===cI){o.preventDefault(),e.moveRight();return}if(o.keyCode===sI){o.preventDefault(),e.moveLeft();return}if(vI[o.keyCode]){o.preventDefault();return}Lf(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:ci,fn:n}]}function bI(e){var r=I.useRef(gI),n=de(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==Af)return;var a=e.findClosestDraggableId(o);if(!a)return;var s=e.tryGetLock(a,u,{sourceEvent:o});if(!s)return;o.preventDefault();var l=!0,c=s.snapLift();r.current();function u(){l||Y(),l=!1,r.current(),t()}r.current=Ye(window,mI(c,u),{capture:!0,passive:!1})}}},[e]),t=ie(function(){var o={passive:!1,capture:!0};r.current=Ye(window,[n],o)},[n]);He(function(){return t(),function(){r.current()}},[t])}var Wi={type:"IDLE"},yI=120,xI=.15;function SI(e){var r=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){r();return}i.keyCode===_a&&i.preventDefault(),r()}},{eventName:ci,fn:r}]}function wI(e){var r=e.cancel,n=e.completed,t=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var a=t();if(a.type!=="DRAGGING"){r();return}a.hasMoved=!0;var s=o.touches[0],l=s.clientX,c=s.clientY,u={x:l,y:c};o.preventDefault(),a.actions.move(u)}},{eventName:"touchend",fn:function(o){var a=t();if(a.type!=="DRAGGING"){r();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(t().type!=="DRAGGING"){r();return}o.preventDefault(),r()}},{eventName:"touchforcechange",fn:function(o){var a=t();a.type==="IDLE"&&Y();var s=o.touches[0];if(s){var l=s.force>=xI;if(l){var c=a.actions.shouldRespectForcePress();if(a.type==="PENDING"){c&&r();return}if(c){if(a.hasMoved){o.preventDefault();return}r();return}o.preventDefault()}}}},{eventName:ci,fn:r}]}function CI(e){var r=I.useRef(Wi),n=I.useRef(yt),t=ie(function(){return r.current},[]),i=ie(function(p){r.current=p},[]),o=de(function(){return{eventName:"touchstart",fn:function(p){if(!p.defaultPrevented){var h=e.findClosestDraggableId(p);if(h){var v=e.tryGetLock(h,s,{sourceEvent:p});if(v){var m=p.touches[0],y=m.clientX,b=m.clientY,C={x:y,y:b};n.current(),f(v,C)}}}}}},[e]),a=ie(function(){var p={capture:!0,passive:!1};n.current=Ye(window,[o],p)},[o]),s=ie(function(){var d=r.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),i(Wi),n.current(),a())},[a,i]),l=ie(function(){var d=r.current;s(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[s]),c=ie(function(){var p={capture:!0,passive:!1},h={cancel:l,completed:s,getPhase:t},v=Ye(window,wI(h),p),m=Ye(window,SI(h),p);n.current=function(){v(),m()}},[l,t,s]),u=ie(function(){var p=t();p.type!=="PENDING"&&Y();var h=p.actions.fluidLift(p.point);i({type:"DRAGGING",actions:h,hasMoved:!1})},[t,i]),f=ie(function(p,h){t().type!=="IDLE"&&Y();var v=setTimeout(u,yI);i({type:"PENDING",point:h,actions:p,longPressTimerId:v}),c()},[c,t,i,u]);He(function(){return a(),function(){n.current();var h=t();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),i(Wi))}},[t,a,i]),He(function(){var p=Ye(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return p},[])}var II={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function jf(e,r){if(r==null)return!1;var n=!!II[r.tagName.toLowerCase()];if(n)return!0;var t=r.getAttribute("contenteditable");return t==="true"||t===""?!0:r===e?!1:jf(e,r.parentElement)}function RI(e,r){var n=r.target;return si(n)?jf(e,n):!1}var TI=function(e){return $t(e.getBoundingClientRect()).center};function DI(e){return e instanceof Nf(e).Element}var _I=function(){var e="matches";if(typeof document>"u")return e;var r=[e,"msMatchesSelector","webkitMatchesSelector"],n=Tt(r,function(t){return t in Element.prototype});return n||e}();function Ff(e,r){return e==null?null:e[_I](r)?e:Ff(e.parentElement,r)}function PI(e,r){return e.closest?e.closest(r):Ff(e,r)}function kI(e){return"["+ur.contextId+'="'+e+'"]'}function OI(e,r){var n=r.target;if(!DI(n))return null;var t=kI(e),i=PI(n,t);return!i||!si(i)?null:i}function EI(e,r){var n=OI(e,r);return n?n.getAttribute(ur.draggableId):null}function NI(e,r){var n="["+Ro.contextId+'="'+e+'"]',t=ef(document.querySelectorAll(n)),i=Tt(t,function(o){return o.getAttribute(Ro.id)===r});return!i||!si(i)?null:i}function MI(e){e.preventDefault()}function mn(e){var r=e.expected,n=e.phase,t=e.isLockActive;return e.shouldWarn,!(!t()||r!==n)}function Bf(e){var r=e.lockAPI,n=e.store,t=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var o=t.draggable.findById(i);return!(!o||!o.options.isEnabled||!Pf(n.getState(),i))}function AI(e){var r=e.lockAPI,n=e.contextId,t=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent,l=Bf({lockAPI:r,store:t,registry:i,draggableId:o});if(!l)return null;var c=i.draggable.getById(o),u=NI(n,c.descriptor.id);if(!u||s&&!c.options.canDragInteractiveElements&&RI(u,s))return null;var f=r.claim(a||yt),d="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return r.isActive(f)}function v(w,_){mn({expected:w,phase:d,isLockActive:h,shouldWarn:!0})&&t.dispatch(_())}var m=v.bind(null,"DRAGGING");function y(w){function _(){r.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(_(),d!=="PRE_DRAG"&&Y()),t.dispatch(_C(w.liftActionArgs)),d="DRAGGING";function S(R,T){if(T===void 0&&(T={shouldBlockNextClick:!1}),w.cleanup(),T.shouldBlockNextClick){var O=Ye(window,[{eventName:"click",fn:MI,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(O)}_(),t.dispatch(wf({reason:R}))}return K({isActive:function(){return mn({expected:"DRAGGING",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(T){return S("DROP",T)},cancel:function(T){return S("CANCEL",T)}},w.actions)}function b(w){var _=Gr(function(R){m(function(){return Sf({client:R})})}),S=y({liftActionArgs:{id:o,clientSelection:w,movementMode:"FLUID"},cleanup:function(){return _.cancel()},actions:{move:_}});return K({},S,{move:_})}function C(){var w={moveUp:function(){return m(zC)},moveRight:function(){return m(FC)},moveDown:function(){return m(jC)},moveLeft:function(){return m(BC)}};return y({liftActionArgs:{id:o,clientSelection:TI(u),movementMode:"SNAP"},cleanup:yt,actions:w})}function D(){var w=mn({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!0});w&&r.release()}var P={isActive:function(){return mn({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:b,snapLift:C,abort:D};return P}var LI=[hI,bI,CI];function zI(e){var r=e.contextId,n=e.store,t=e.registry,i=e.customSensors,o=e.enableDefaultSensors,a=[].concat(o?LI:[],i||[]),s=I.useState(function(){return eI()})[0],l=ie(function(b,C){b.isDragging&&!C.isDragging&&s.tryAbandon()},[s]);He(function(){var b=n.getState(),C=n.subscribe(function(){var D=n.getState();l(b,D),b=D});return C},[s,n,l]),He(function(){return s.tryAbandon},[s.tryAbandon]);for(var c=ie(function(y){return Bf({lockAPI:s,registry:t,store:n,draggableId:y})},[s,t,n]),u=ie(function(y,b,C){return AI({lockAPI:s,registry:t,contextId:r,store:n,draggableId:y,forceSensorStop:b,sourceEvent:C&&C.sourceEvent?C.sourceEvent:null})},[r,s,t,n]),f=ie(function(y){return EI(r,y)},[r]),d=ie(function(y){var b=t.draggable.findById(y);return b?b.options:null},[t.draggable]),p=ie(function(){s.isClaimed()&&(s.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(ba()))},[s,n]),h=ie(s.isClaimed,[s]),v=de(function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:f,findOptionsForDraggable:d,tryReleaseLock:p,isLockClaimed:h}},[c,u,f,d,p,h]),m=0;m<a.length;m++)a[m](v)}var jI=function(r){return{onBeforeCapture:r.onBeforeCapture,onBeforeDragStart:r.onBeforeDragStart,onDragStart:r.onDragStart,onDragEnd:r.onDragEnd,onDragUpdate:r.onDragUpdate}};function Rr(e){return e.current||Y(),e.current}function FI(e){var r=e.contextId,n=e.setCallbacks,t=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=I.useRef(null),s=Mf(e),l=ie(function(){return jI(s.current)},[s]),c=Y0(r),u=Z0({contextId:r,text:o}),f=$0(r,i),d=ie(function(R){Rr(a).dispatch(R)},[]),p=de(function(){return $a({publishWhileDragging:kC,updateDroppableScroll:EC,updateDroppableIsEnabled:NC,updateDroppableIsCombineEnabled:MC,collectionStarting:OC},d)},[d]),h=q0(),v=de(function(){return x0(h,p)},[h,p]),m=de(function(){return z0(K({scrollWindow:S0,scrollDroppable:v.scrollDroppable},$a({move:Sf},d)))},[v.scrollDroppable,d]),y=H0(r),b=de(function(){return v0({announce:c,autoScroller:m,dimensionMarshal:v,focusMarshal:y,getResponders:l,styleMarshal:f})},[c,m,v,y,l,f]);a.current=b;var C=ie(function(){var R=Rr(a),T=R.getState();T.phase!=="IDLE"&&R.dispatch(ba())},[]),D=ie(function(){var R=Rr(a).getState();return R.isDragging||R.phase==="DROP_ANIMATING"},[]),P=de(function(){return{isDragging:D,tryAbort:C}},[D,C]);n(P);var w=ie(function(R){return Pf(Rr(a).getState(),R)},[]),_=ie(function(){return Ot(Rr(a).getState())},[]),S=de(function(){return{marshal:v,focus:y,contextId:r,canLift:w,isMovementAllowed:_,dragHandleUsageInstructionsId:u,registry:h}},[r,v,u,y,w,_,h]);return zI({contextId:r,store:b,registry:h,customSensors:t,enableDefaultSensors:e.enableDefaultSensors!==!1}),I.useEffect(function(){return C},[C]),Q.createElement(li.Provider,{value:S},Q.createElement(AS,{context:Ta,store:b},e.children))}var BI=0;function GI(){return de(function(){return""+BI++},[])}function $I(e){var r=GI(),n=e.dragHandleUsageInstructions||Tn.dragHandleUsageInstructions;return Q.createElement(bw,null,function(t){return Q.createElement(FI,{nonce:e.nonce,contextId:r,setCallbacks:t,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var Gf=function(r){return function(n){return r===n}},WI=Gf("scroll"),HI=Gf("auto"),tc=function(r,n){return n(r.overflowX)||n(r.overflowY)},UI=function(r){var n=window.getComputedStyle(r),t={overflowX:n.overflowX,overflowY:n.overflowY};return tc(t,WI)||tc(t,HI)},qI=function(){return!1},VI=function e(r){return r==null?null:r===document.body?qI()?r:null:r===document.documentElement?null:UI(r)?r:e(r.parentElement)},To=function(e){return{x:e.scrollLeft,y:e.scrollTop}},KI=function e(r){if(!r)return!1;var n=window.getComputedStyle(r);return n.position==="fixed"?!0:e(r.parentElement)},YI=function(e){var r=VI(e),n=KI(e);return{closestScrollable:r,isFixedOnPage:n}},JI=function(e){var r=e.descriptor,n=e.isEnabled,t=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var p=l.scrollSize,h=l.client,v=Tf({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:v,diff:{value:De,displacement:De}}}}(),u=o==="vertical"?pa:af,f=lr({page:s,withPlaceholder:null,axis:u,frame:c}),d={descriptor:r,isCombineEnabled:t,isFixedOnPage:i,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:f};return d},XI=function(r,n){var t=Ec(r);if(!n||r!==n)return t;var i=t.paddingBox.top-n.scrollTop,o=t.paddingBox.left-n.scrollLeft,a=i+n.scrollHeight,s=o+n.scrollWidth,l={top:i,right:s,bottom:a,left:o},c=Nc(l,t.border),u=Eh({borderBox:c,margin:t.margin,border:t.border,padding:t.padding});return u},QI=function(e){var r=e.ref,n=e.descriptor,t=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=t.closestScrollable,u=XI(r,c),f=On(u,i),d=function(){if(!c)return null;var h=Ec(c),v={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:h,page:On(h,i),scroll:To(c),scrollSize:v,shouldClipSubject:l}}(),p=JI({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:t.isFixedOnPage,direction:o,client:u,page:f,closest:d});return p},ZI={passive:!1},eR={passive:!0},rc=function(e){return e.shouldPublishImmediately?ZI:eR};function $n(e){var r=I.useContext(e);return r||Y(),r}var bn=function(r){return r&&r.env.closestScrollable||null};function tR(e){var r=I.useRef(null),n=$n(li),t=Da("droppable"),i=n.registry,o=n.marshal,a=Mf(e),s=de(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),l=I.useRef(s),c=de(function(){return Te(function(D,P){r.current||Y();var w={x:D,y:P};o.updateDroppableScroll(s.id,w)})},[s.id,o]),u=ie(function(){var D=r.current;return!D||!D.env.closestScrollable?De:To(D.env.closestScrollable)},[]),f=ie(function(){var D=u();c(D.x,D.y)},[u,c]),d=de(function(){return Gr(f)},[f]),p=ie(function(){var D=r.current,P=bn(D);D&&P||Y();var w=D.scrollOptions;if(w.shouldPublishImmediately){f();return}d()},[d,f]),h=ie(function(D,P){r.current&&Y();var w=a.current,_=w.getDroppableRef();_||Y();var S=YI(_),R={ref:_,descriptor:s,env:S,scrollOptions:P};r.current=R;var T=QI({ref:_,descriptor:s,env:S,windowScroll:D,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),O=S.closestScrollable;return O&&(O.setAttribute(Xl.contextId,n.contextId),O.addEventListener("scroll",p,rc(R.scrollOptions))),T},[n.contextId,s,p,a]),v=ie(function(){var D=r.current,P=bn(D);return D&&P||Y(),To(P)},[]),m=ie(function(){var D=r.current;D||Y();var P=bn(D);r.current=null,P&&(d.cancel(),P.removeAttribute(Xl.contextId),P.removeEventListener("scroll",p,rc(D.scrollOptions)))},[p,d]),y=ie(function(D){var P=r.current;P||Y();var w=bn(P);w||Y(),w.scrollTop+=D.y,w.scrollLeft+=D.x},[]),b=de(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:v,dragStopped:m,scroll:y}},[m,h,v,y]),C=de(function(){return{uniqueId:t,descriptor:s,callbacks:b}},[b,s,t]);He(function(){return l.current=C.descriptor,i.droppable.register(C),function(){r.current&&m(),i.droppable.unregister(C)}},[b,s,m,C,o,i.droppable]),He(function(){r.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),He(function(){r.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Hi(){}var nc={width:0,height:0,margin:Iw},rR=function(r){var n=r.isAnimatingOpenOnMount,t=r.placeholder,i=r.animate;return n||i==="close"?nc:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}},nR=function(r){var n=r.isAnimatingOpenOnMount,t=r.placeholder,i=r.animate,o=rR({isAnimatingOpenOnMount:n,placeholder:t,animate:i});return{display:t.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Br.placeholder:null}};function iR(e){var r=I.useRef(null),n=ie(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),t=e.animate,i=e.onTransitionEnd,o=e.onClose,a=e.contextId,s=I.useState(e.animate==="open"),l=s[0],c=s[1];I.useEffect(function(){return l?t!=="open"?(n(),c(!1),Hi):r.current?Hi:(r.current=setTimeout(function(){r.current=null,c(!1)}),n):Hi},[t,l,n]);var u=ie(function(d){d.propertyName==="height"&&(i(),t==="close"&&o())},[t,o,i]),f=nR({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return Q.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":a,onTransitionEnd:u,ref:e.innerRef})}var oR=Q.memo(iR),Pa=Q.createContext(null),aR=function(e){Un(r,e);function r(){for(var t,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o))||this,t.state={isVisible:!!t.props.on,data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){t.state.animate==="close"&&t.setState({isVisible:!1})},t}r.getDerivedStateFromProps=function(i,o){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:o.isVisible?{isVisible:!0,data:o.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!i.on,data:i.on,animate:"none"}};var n=r.prototype;return n.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},r}(Q.PureComponent),ic={dragging:5e3,dropAnimating:4500},sR=function(r,n){return n?Br.drop(n.duration):r?Br.snap:Br.fluid},lR=function(r,n){return r?n?Jr.opacity.drop:Jr.opacity.combining:null},cR=function(r){return r.forceShouldAnimate!=null?r.forceShouldAnimate:r.mode==="SNAP"};function uR(e){var r=e.dimension,n=r.client,t=e.offset,i=e.combineWith,o=e.dropping,a=!!i,s=cR(e),l=!!o,c=l?Co.drop(t,a):Co.moveTo(t),u={position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:sR(s,o),transform:c,opacity:lR(a,l),zIndex:l?ic.dropAnimating:ic.dragging,pointerEvents:"none"};return u}function dR(e){return{transform:Co.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function fR(e){return e.type==="DRAGGING"?uR(e):dR(e)}function pR(e,r,n){n===void 0&&(n=De);var t=window.getComputedStyle(r),i=r.getBoundingClientRect(),o=Nh(i,t),a=On(o,n),s={client:o,tagName:r.tagName.toLowerCase(),display:t.display},l={x:o.marginBox.width,y:o.marginBox.height},c={descriptor:e,placeholder:s,displaceBy:l,client:o,page:a};return c}function hR(e){var r=Da("draggable"),n=e.descriptor,t=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=de(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}},[o,s,a]),c=ie(function(p){var h=i();return h||Y(),pR(n,h,p)},[n,i]),u=de(function(){return{uniqueId:r,descriptor:n,options:l,getDimension:c}},[n,c,l,r]),f=I.useRef(u),d=I.useRef(!0);He(function(){return t.draggable.register(f.current),function(){return t.draggable.unregister(f.current)}},[t.draggable]),He(function(){if(d.current){d.current=!1;return}var p=f.current;f.current=u,t.draggable.update(u,p)},[u,t.draggable])}function gR(e){e.preventDefault()}function vR(e){var r=I.useRef(null),n=ie(function(R){r.current=R},[]),t=ie(function(){return r.current},[]),i=$n(li),o=i.contextId,a=i.dragHandleUsageInstructionsId,s=i.registry,l=$n(Pa),c=l.type,u=l.droppableId,f=de(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}},[e.draggableId,e.index,c,u]),d=e.children,p=e.draggableId,h=e.isEnabled,v=e.shouldRespectForcePress,m=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,C=e.dropAnimationFinished;if(!y){var D=de(function(){return{descriptor:f,registry:s,getDraggableRef:t,canDragInteractiveElements:m,shouldRespectForcePress:v,isEnabled:h}},[f,s,t,m,v,h]);hR(D)}var P=de(function(){return h?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:gR}:null},[o,a,p,h]),w=ie(function(R){b.type==="DRAGGING"&&b.dropping&&R.propertyName==="transform"&&C()},[C,b]),_=de(function(){var R=fR(b),T=b.type==="DRAGGING"&&b.dropping?w:null,O={innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":p,style:R,onTransitionEnd:T},dragHandleProps:P};return O},[o,P,p,b,w,n]),S=de(function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}},[f.droppableId,f.id,f.index,f.type]);return d(_,b.snapshot,S)}var $f=function(e,r){return e===r},Wf=function(e){var r=e.combine,n=e.destination;return n?n.droppableId:r?r.droppableId:null},mR=function(r){return r.combine?r.combine.draggableId:null},bR=function(r){return r.at&&r.at.type==="COMBINE"?r.at.combine.draggableId:null};function yR(){var e=Te(function(i,o){return{x:i,y:o}}),r=Te(function(i,o,a,s,l){return{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:i,draggingOver:a,combineWith:s,combineTargetFor:null}}),n=Te(function(i,o,a,s,l,c,u){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:o,offset:i,dimension:a,forceShouldAnimate:u,snapshot:r(o,s,l,c,null)}}}),t=function(o,a){if(o.isDragging){if(o.critical.draggable.id!==a.draggableId)return null;var s=o.current.client.offset,l=o.dimensions.draggables[a.draggableId],c=We(o.impact),u=bR(o.impact),f=o.forceShouldAnimate;return n(e(s.x,s.y),o.movementMode,l,a.isClone,c,u,f)}if(o.phase==="DROP_ANIMATING"){var d=o.completed;if(d.result.draggableId!==a.draggableId)return null;var p=a.isClone,h=o.dimensions.draggables[a.draggableId],v=d.result,m=v.mode,y=Wf(v),b=mR(v),C=o.dropDuration,D={duration:C,curve:xa.drop,moveTo:o.newHomeClientOffset,opacity:b?Jr.opacity.drop:null,scale:b?Jr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:h,dropping:D,draggingOver:y,combineWith:b,mode:m,forceShouldAnimate:null,snapshot:r(m,p,y,b,D)}}}return null};return t}function Hf(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var xR={mapped:{type:"SECONDARY",offset:De,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Hf(null)}};function SR(){var e=Te(function(a,s){return{x:a,y:s}}),r=Te(Hf),n=Te(function(a,s,l){return s===void 0&&(s=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:s,shouldAnimateDisplacement:l,snapshot:r(s)}}}),t=function(s){return s?n(De,s,!0):null},i=function(s,l,c,u){var f=c.displaced.visible[s],d=!!(u.inVirtualList&&u.effected[s]),p=ii(c),h=p&&p.draggableId===s?l:null;if(!f){if(!d)return t(h);if(c.displaced.invisible[s])return null;var v=hr(u.displacedBy.point),m=e(v.x,v.y);return n(m,h,!0)}if(d)return t(h);var y=c.displacedBy.point,b=e(y.x,y.y);return n(b,h,f.shouldAnimate)},o=function(s,l){if(s.isDragging)return s.critical.draggable.id===l.draggableId?null:i(l.draggableId,s.critical.draggable.id,s.impact,s.afterCritical);if(s.phase==="DROP_ANIMATING"){var c=s.completed;return c.result.draggableId===l.draggableId?null:i(l.draggableId,c.result.draggableId,c.impact,c.afterCritical)}return null};return o}var wR=function(){var r=yR(),n=SR(),t=function(o,a){return r(o,a)||n(o,a)||xR};return t},CR={dropAnimationFinished:Cf},IR=Yd(wR,CR,null,{context:Ta,pure:!0,areStatePropsEqual:$f})(vR);function Uf(e){var r=$n(Pa),n=r.isUsingCloneFor;return n===e.draggableId&&!e.isClone?null:Q.createElement(IR,e)}function RR(e){var r=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,t=!!e.shouldRespectForcePress;return Q.createElement(Uf,K({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:n,shouldRespectForcePress:t}))}function TR(e){var r=I.useContext(li);r||Y();var n=r.contextId,t=r.isMovementAllowed,i=I.useRef(null),o=I.useRef(null),a=e.children,s=e.droppableId,l=e.type,c=e.mode,u=e.direction,f=e.ignoreContainerClipping,d=e.isDropDisabled,p=e.isCombineEnabled,h=e.snapshot,v=e.useClone,m=e.updateViewportMaxScroll,y=e.getContainerForClone,b=ie(function(){return i.current},[]),C=ie(function(O){i.current=O},[]);ie(function(){return o.current},[]);var D=ie(function(O){o.current=O},[]),P=ie(function(){t()&&m({maxScroll:_f()})},[t,m]);tR({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:d,isCombineEnabled:p,ignoreContainerClipping:f,getDroppableRef:b});var w=Q.createElement(aR,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(O){var L=O.onClose,M=O.data,H=O.animate;return Q.createElement(oR,{placeholder:M,onClose:L,innerRef:D,animate:H,contextId:n,onTransitionEnd:P})}),_=de(function(){return{innerRef:C,placeholder:w,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}},[n,s,w,C]),S=v?v.dragging.draggableId:null,R=de(function(){return{droppableId:s,type:l,isUsingCloneFor:S}},[s,S,l]);function T(){if(!v)return null;var O=v.dragging,L=v.render,M=Q.createElement(Uf,{draggableId:O.draggableId,index:O.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(H,E){return L(H,E,O)});return mh.createPortal(M,y())}return Q.createElement(Pa.Provider,{value:R},a(_,h),T())}var Ui=function(r,n){return r===n.droppable.type},oc=function(r,n){return n.draggables[r.draggable.id]},DR=function(){var r={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},n=K({},r,{shouldAnimatePlaceholder:!1}),t=Te(function(a){return{draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}}}),i=Te(function(a,s,l,c,u,f){var d=u.descriptor.id,p=u.descriptor.droppableId===a;if(p){var h=f?{render:f,dragging:t(u.descriptor)}:null,v={isDraggingOver:l,draggingOverWith:l?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:v,useClone:h}}if(!s)return n;if(!c)return r;var m={isDraggingOver:l,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:m,useClone:null}}),o=function(s,l){var c=l.droppableId,u=l.type,f=!l.isDropDisabled,d=l.renderClone;if(s.isDragging){var p=s.critical;if(!Ui(u,p))return n;var h=oc(p,s.dimensions),v=We(s.impact)===c;return i(c,f,v,v,h,d)}if(s.phase==="DROP_ANIMATING"){var m=s.completed;if(!Ui(u,m.critical))return n;var y=oc(m.critical,s.dimensions);return i(c,f,Wf(m.result)===c,We(m.impact)===c,y,d)}if(s.phase==="IDLE"&&s.completed&&!s.shouldFlush){var b=s.completed;if(!Ui(u,b.critical))return n;var C=We(b.impact)===c,D=!!(b.impact.at&&b.impact.at.type==="COMBINE"),P=b.critical.droppable.id===c;return C?D?r:n:P?r:n}return n};return o},_R={updateViewportMaxScroll:LC};function PR(){return document.body||Y(),document.body}var kR={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:PR},qf=Yd(DR,_R,null,{context:Ta,pure:!0,areStatePropsEqual:$f})(TR);qf.defaultProps=kR;const OR=e=>{const r=e.replace("#","");if(!/^([A-Fa-f0-9]{3}){1,2}$/.test(r))return{r:0,g:0,b:0};const n=r.length===3?r.split("").map(t=>t+t).join(""):r;return{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16)}};function ER({src:e,color:r,size:n=24,...t}){const[i,o]=I.useState("");return I.useEffect(()=>{const a=new Image;return a.crossOrigin="anonymous",a.onload=()=>{const s=document.createElement("canvas");s.width=a.width,s.height=a.height;const l=s.getContext("2d");l.drawImage(a,0,0);const c=l.getImageData(0,0,s.width,s.height),{data:u}=c,f=OR(r);for(let d=0;d<u.length;d+=4)if(u[d+3]>0){const p=u[d+3]/255;u[d]=f.r*p,u[d+1]=f.g*p,u[d+2]=f.b*p}l.putImageData(c,0,0),o(s.toDataURL("image/png"))},a.src=e,()=>{a.onload=null}},[e,r]),g.jsx(oe,{component:"img",src:i||e,sx:{width:n,height:n,display:"block",opacity:i?1:.5,transition:"opacity 0.2s"},...t})}const Do=375,Vf=667,ka=56,NR=ct(Nr)(({theme:e})=>({width:Do,height:Vf,display:"flex",flexDirection:"column",overflow:"hidden",border:`1px solid ${e.palette.divider}`,borderRadius:32,position:"relative"})),ac=ct(oe)(({theme:e})=>({height:ka,borderTop:`1px solid ${e.palette.divider}`,display:"flex",backgroundColor:e.palette.background.paper})),sc=ct(oe)(({theme:e,active:r})=>({flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative",color:r?e.palette.primary.main:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}})),MR=ct(oe)(({theme:e,left:r})=>({position:"absolute",bottom:-ka,left:r,transform:"translateX(-50%)",display:"flex",alignItems:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,padding:`${e.spacing(.5)} ${e.spacing(1)}`,boxShadow:e.shadows[2],zIndex:1})),yn=ct(ze)(({theme:e})=>({padding:e.spacing(.5),"&:not(:last-child)":{marginRight:e.spacing(.5)}})),AR=ct(oe)({flexGrow:1,height:"100%",position:"relative",overflow:"hidden"}),LR=ct(oe)(({theme:e})=>({width:400,paddingLeft:e.spacing(3),backgroundColor:e.palette.background.default,height:Vf,overflowY:"auto"}));function zR(){const{t:e,locale:r}=Le(),{blocklet:n}=Gt(),t=Bt(),i=qn(t.breakpoints.down("md")),{state:o,getNavigation:a,updateNavigationItem:s,addNavigationItem:l,delNavigationItem:c,updateNavigationTree:u}=Fc(),{inService:f}=pc(),d=I.useRef(null),p=I.useRef(null),h=I.useRef(null),v=n.environments.find(q=>q.key===Ge.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),m=n?.settings?.theme?.light?.palette?.primary?.main,[y,b]=I.useState(0),[C,D]=I.useState(!1),P=I.useRef(0),w=I.useRef(null),_=a("bottomNavigation"),S=_.length>0,R=_.length<5,[T,O]=I.useState(_.length>0?_[0]:null),L=_.findIndex(q=>q.id===T?.id),M=ae((q,re)=>{const ne=q?.[re];return bh(ne)?ne[r]||ne.en:ne}),H=ae(q=>{q.id!==T?.id&&O(q)}),E=ae(q=>{w.current=q,h.current?.add({},(re,ne)=>{const ue=l(ne,w.current);O(ue),re()})}),B=ae(()=>{D(!0)}),G=ae(()=>{h.current?.edit(T,(q,re)=>{s(re),q()})}),{run:U}=hc(()=>{p.current?.submit()},{wait:300}),J=ae(U),ee=ae(q=>{if(q?.startsWith("/"))try{const re=f?window.location.origin:v?.value;return new URL(q,re).href}catch{console.error("Failed to resolve url: ",q)}return q},[v?.value,f]),X=ae(q=>{if(!q.destination)return;const re=Array.from(_),[ne]=re.splice(q.source.index,1);re.splice(q.destination.index,0,ne),u(re)}),Z=ae(()=>{const q=_.find(ne=>ne.id===T?.id);if(!q)return"";let re=M(q,"link")||"/";if(re.startsWith("/"))try{re=ee(Re(q.__base||"/",re))}catch(ne){return console.error("Failed to get active tab link",ne),""}return re});return I.useEffect(()=>{T&&!i&&(p.current?.resetImmediate(),p.current?.edit(T,q=>{s(q)}))},[T,s,i]),I.useEffect(()=>{const q=_.findIndex(N=>N.id===T?.id);if(q===-1||!d.current)return b(P.current);const ne=Do/_.length*(q+.5),ue=d.current.getBoundingClientRect().width,$=ue/2+16,W=Do-(ue/2+16),k=Math.min(Math.max(ne,$),W);return P.current=k,b(k)},[T,_,P]),I.useEffect(()=>{_.length>0&&!T&&O(_[0])},[_,T]),g.jsx(oe,{sx:{display:"flex",justifyContent:"center"},children:g.jsxs(oe,{sx:{position:"relative",display:"inline-flex",alignItems:"flex-start",margin:"4px auto 0"},children:[g.jsxs(NR,{elevation:2,children:[g.jsx(AR,{children:S&&g.jsx(Zh,{url:Z(),width:"100%",height:"100%",id:"tabbar-preview",className:"tabbar-preview-iframe",display:"block",position:"relative",styles:{border:"none",background:"#fff"}})}),g.jsxs(oe,{sx:{height:ka,overflowY:"auto",flexShrink:0},children:[S&&g.jsx($I,{onDragEnd:X,children:g.jsx(qf,{droppableId:"tabbar",direction:"horizontal",children:q=>g.jsxs(ac,{ref:q.innerRef,...q.droppableProps,children:[_.map((re,ne)=>g.jsx(RR,{draggableId:re.id,index:ne,children:(ue,$)=>g.jsxs(sc,{className:"tab-item",ref:ue.innerRef,...ue.draggableProps,...ue.dragHandleProps,active:re.id===T?.id,onClick:W=>H(re,W),sx:{color:re.id===T?.id?m:"text.secondary",opacity:$.isDragging?.5:1},children:[g.jsx(ER,{src:ee(re.icon),color:re.id===T?.id?m:t.palette.text.secondary,size:24}),g.jsx(me,{variant:"caption",children:M(re,"title")})]})},re.id)),q.placeholder]})})}),!S&&g.jsx(ac,{children:g.jsx(sc,{className:"tab-item",onClick:()=>E(0),children:g.jsx(rt,{icon:"mdi:plus-circle-outline",size:28})})})]})]}),!i&&S&&g.jsx(LR,{children:T&&g.jsx(ia,{ref:p,sx:{p:0},section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation,onChange:J})}),g.jsx(xc,{in:T!==null,children:g.jsxs(MR,{ref:d,left:y,children:[g.jsx(yn,{size:"small",disabled:!R,onClick:()=>E(L),children:g.jsx(rt,{icon:"mdi:plus-circle-outline",size:28})}),i&&g.jsx(yn,{size:"small",onClick:()=>G(),children:g.jsx(rt,{icon:"mdi:edit-box-outline",size:28})}),g.jsx(yn,{size:"small",onClick:()=>B(),children:g.jsx(rt,{icon:"mdi:delete-outline",size:28})}),g.jsx(yn,{size:"small",disabled:!R,onClick:()=>E(L+1),children:g.jsx(rt,{icon:"mdi:plus-circle-outline",size:28})})]})}),g.jsx(oa,{ref:h,section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation}),g.jsx(kc,{confirmButton:{text:e("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:e("common.cancel"),props:{color:"primary"}},open:C,title:e("navigation.action.delTabBarTitle"),onConfirm:()=>{D(!1),c(T.id),_.length>1?L>0?O(_[L-1]):O(_[L+1]):O(null)},onCancel:()=>{D(!1)},children:g.jsx("p",{children:e("navigation.action.delTabBarDesc")})})]})})}const jR={login:Ze,logout:Ze,switch:Ze,switchDid:Ze,switchProfile:Ze,switchPassport:Ze,useDid:()=>({walletDid:"abcdefghijklmnopqrstuvwxyz"}),useOAuth:()=>({logoutOAuth:Ze,bindOAuth:Ze,configs:{},switchOAuthPassport:Ze})},Tr={header:"Header",footer:"Footer",bottom:"Footer Link",social:"Footer Social",dashboard:"Dashboard",sessionManager:"Session Blocklet",userCenter:"User Center",bottomNavigation:"Tab Bar"};function FR(){const{t:e}=Le(),{blocklet:r}=Gt(),n=I.useRef(null),{roles:t}=Mc(),i=qn(T=>T.breakpoints.down("md")),o=Ft({saveLoading:!1,resetLoading:!1,showResetConfirm:!1,mockRole:"owner"}),{state:a,navigation:s,getNavigation:l,saveNavigationList:c,resetNavigation:u,updateActiveSection:f,updateNavigationTree:d,updateNavigationItem:p,delNavigationItem:h,addNavigationItem:v}=Fc(),m=a.activeSection==="bottomNavigation",y=I.useCallback(T=>{n.current.add({parent:T},(O,L)=>{v(L),O()})},[v]),b=I.useCallback((T,O={})=>{switch(T){case"edit":n.current.edit(O,(L,M)=>{p(M),L()});break;case"toggle":p({id:O.id,visible:!O.visible});break;case"del":h(O.id);break}},[h,p]),C=I.useCallback(async()=>{try{o.saveLoading=!0,await c(a.rawNavigation),Nt.success(e("common.succeeded"))}catch(T){Nt.error(g.jsxs(oe,{children:[g.jsx(me,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(me,{variant:"body1",children:ja(T)||T.error})]}))}finally{o.saveLoading=!1}},[a.rawNavigation,o,c,e]),D=I.useCallback(async()=>{try{o.resetLoading=!0,await u(a.activeSection),Nt.success(e("navigation.action.resetSuccessful"),{variant:"success"})}catch(T){Nt.error(g.jsxs(oe,{children:[g.jsx(me,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(me,{variant:"body1",children:ja(T)||T.error})]}))}finally{o.resetLoading=!1}},[o,u,a.activeSection,e]),P=I.useMemo(()=>({session:{...jR,user:{did:r.appDid,fullName:"Preview User",role:o.mockRole,isPreviewUser:!0}}}),[r.appDid,o.mockRole]),w=l(a.activeSection),_=je(()=>a.activeSection!=="bottomNavigation"?!1:w.length>=5,[a.activeSection,w.length]),S=g.jsxs(g.Fragment,{children:[g.jsx(Nr,{variant:"outlined",sx:{display:"flex",height:660,overflow:"hidden",bgcolor:"background.default"},children:g.jsx(Nr,{elevation:0,sx:{flex:1,overflow:"auto",bgcolor:"background.default"},children:g.jsx(gd,{treeData:w,setTreeData:d,renderActions:({data:T,className:O})=>g.jsx(xd,{data:T,className:O,section:a.activeSection,add:(...L)=>y(...L),del:(...L)=>b("del",...L),edit:(...L)=>b("edit",...L),toggle:(...L)=>b("toggle",...L)})})})}),g.jsxs(Fa,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:3},children:[g.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1},children:e("common.preview")}),g.jsxs(mc,{sx:{m:1,minWidth:120},size:"small",children:[g.jsx(yh,{children:e("common.role")}),g.jsx(Ba,{value:o.mockRole,label:"Role",onChange:T=>{o.mockRole=T.target.value},children:t.map(T=>g.jsx(kn,{value:T.name,children:T.title},T.name))})]})]}),g.jsx(Nr,{variant:"outlined",children:g.jsx(Kn.Provider,{value:P,children:g.jsx(kS,{navigation:s})})})]}),R=g.jsx(zR,{});return g.jsxs(g.Fragment,{children:[i&&g.jsx(Ba,{fullWidth:!0,size:"small",value:a.activeSection,onChange:T=>f(T.target.value),children:Object.keys(Tr).map(T=>g.jsxs(kn,{value:T,children:[Tr[T],` (${l(T).length})`]}))}),!i&&g.jsx(fi,{variant:"outlined",children:Object.keys(Tr).map(T=>g.jsxs(wt,{variant:a.activeSection===T?"contained":void 0,onClick:()=>f(T),children:[Tr[T],` (${l(T).length})`]},T))}),g.jsxs(Fa,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:2},children:[g.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1},children:e("common.config")}),g.jsx(fi,{variant:"outlined",children:g.jsx(Ha,{size:"small",variant:"outlined",color:"error",startIcon:g.jsx(xe,{icon:"system-uicons:reset"}),sx:{mr:2},loading:o.resetLoading,loadingPosition:"start",onClick:()=>{o.showResetConfirm=!0},children:e("navigation.action.reset")})}),g.jsxs(fi,{variant:"outlined",children:[a.activeSection!=="bottomNavigation"&&g.jsx(wt,{size:"small",variant:"outlined",disabled:_,startIcon:g.jsx(xe,{icon:"mdi:plus"}),onClick:()=>y(),children:e("navigation.action.new")}),g.jsx(Ha,{size:"small",variant:"contained",startIcon:g.jsx(xe,{icon:"mdi:content-save"}),loading:o.saveLoading,loadingPosition:"start",onClick:C,children:e("common.save")})]})]}),m?R:S,g.jsx(oa,{ref:n,section:a.activeSection,components:a.components,rawNavigations:a.rawNavigation}),g.jsx(kc,{confirmButton:{text:e("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:e("common.cancel"),props:{color:"primary"}},open:o.showResetConfirm,title:e("navigation.action.restConfirmTitle",{section:Tr[a.activeSection]}),onConfirm:async()=>{await D(),o.showResetConfirm=!1},onCancel:()=>{o.showResetConfirm=!1},children:g.jsx("p",{children:e("navigation.action.restConfirmDesc")})})]})}function jT(){return g.jsx(bg,{children:g.jsx(FR,{})})}export{jT as default};
|