@abtnode/webapp 1.17.3-beta-20251127-063055-94957209 → 1.17.3

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.
Files changed (210) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-DU0D4sqH.js → AdapterDayjs-jQWZxlKZ.js} +1 -1
  4. package/dist/assets/{Add-BKe5i02H.js → Add-CM0i44L2.js} +1 -1
  5. package/dist/assets/ArrowDropDown-BrtzEFq8.js +1 -0
  6. package/dist/assets/{Autocomplete-DK0iCUAm.js → Autocomplete-BBHR-e2e.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-2mIcJJiP.js → Breadcrumbs-BaZ8MiUq.js} +1 -1
  8. package/dist/assets/{ButtonGroup-B86tCmd3.js → ButtonGroup-B_6MNBFc.js} +1 -1
  9. package/dist/assets/{CSSTransition-BZnv4uwU.js → CSSTransition-C6uS6QtZ.js} +1 -1
  10. package/dist/assets/{CallMerge-BdwpnGaL.js → CallMerge-CQP5GPxe.js} +1 -1
  11. package/dist/assets/{CardContent-B3Ns-1d7.js → CardContent-Ck7ja9MC.js} +1 -1
  12. package/dist/assets/{ChevronLeft-DKTuWlNz.js → ChevronLeft-C7cSHp9l.js} +1 -1
  13. package/dist/assets/{ChevronRight-U_VKk8yi.js → ChevronRight-BUUZmp3v.js} +1 -1
  14. package/dist/assets/{Clear-Bjaoevyy.js → Clear-CFi5u92e.js} +1 -1
  15. package/dist/assets/{DeleteOutline-1L0qVW5f.js → DeleteOutline-BHEKXTkO.js} +1 -1
  16. package/dist/assets/{Done-fcctYBnn.js → Done-DXPJGUWm.js} +1 -1
  17. package/dist/assets/{Edit-Df-gu5W0.js → Edit-JIlB-sRA.js} +1 -1
  18. package/dist/assets/{ErrorOutline-C2BuHaFO.js → ErrorOutline-DBqK27X8.js} +1 -1
  19. package/dist/assets/{FilterList-ip4QUiRE.js → FilterList-DqZHJbRG.js} +1 -1
  20. package/dist/assets/{Google-C4HUt8aJ.js → Google-KJc6rb0J.js} +1 -1
  21. package/dist/assets/{HelpOutline-Dn_yz-1h.js → HelpOutline-DswUhBxG.js} +1 -1
  22. package/dist/assets/{KeyboardArrowDown-C9ZFNMos.js → KeyboardArrowDown-BRIRZ0lk.js} +1 -1
  23. package/dist/assets/{Launch-CFi1NSiy.js → Launch-_uZBB3hy.js} +1 -1
  24. package/dist/assets/{Link-CQpp_kV1.js → Link-CvXyobEJ.js} +1 -1
  25. package/dist/assets/{ListItemButton-Dq8kjXAC.js → ListItemButton-BRQYff97.js} +1 -1
  26. package/dist/assets/{ListSubheader-BN5vdmXx.js → ListSubheader-BHGxSe1E.js} +1 -1
  27. package/dist/assets/{LoadingButton-YsBwLHRI.js → LoadingButton-BhZ8iOtK.js} +1 -1
  28. package/dist/assets/{MoreVert-BFhM4QD_.js → MoreVert-Ck4O28kx.js} +1 -1
  29. package/dist/assets/{OpenInNew-BQ_lyYyz.js → OpenInNew-BJk7hIVB.js} +1 -1
  30. package/dist/assets/{Refresh-BH-2JQxb.js → Refresh-kyiL1qX1.js} +1 -1
  31. package/dist/assets/{Search-XYz8f8XA.js → Search-BiQ8hlgr.js} +1 -1
  32. package/dist/assets/{Stepper-CgNQuoDq.js → Stepper-BJZfb2Le.js} +1 -1
  33. package/dist/assets/{Switch-D-GptXzp.js → Switch-UORzToTA.js} +1 -1
  34. package/dist/assets/{TableSearch-20ltCGV9.js → TableSearch-BQiqRB7D.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-BeJ2H-vs.js → ToggleButtonGroup-CbzWaH4A.js} +1 -1
  36. package/dist/assets/{UnfoldMore-ogSRr9M8.js → UnfoldMore-DZ3laWH7.js} +1 -1
  37. package/dist/assets/{Verified-DoWJRqF2.js → Verified-M-1m4RTW.js} +1 -1
  38. package/dist/assets/{VerifiedUser-C8oAKXOY.js → VerifiedUser-C7mhQBkH.js} +1 -1
  39. package/dist/assets/{ViewList-B9yb0HBO.js → ViewList-DC04kVZ7.js} +1 -1
  40. package/dist/assets/{_createAggregator-Ctg83h-t.js → _createAggregator-BcN4GRYz.js} +1 -1
  41. package/dist/assets/actions-DSVBY-iK.js +1 -0
  42. package/dist/assets/{actions-CEVha9Lm.js → actions-e0cgLZ3F.js} +1 -1
  43. package/dist/assets/{agreement-Do9LS1H9.js → agreement-CMStdtDl.js} +1 -1
  44. package/dist/assets/api-DxqoYz8S.js +1 -0
  45. package/dist/assets/{appearance-BAXcLNQv.js → appearance-BbYVAqwM.js} +1 -1
  46. package/dist/assets/{ar-Dz5bxvSE.js → ar-BJZY7v5z.js} +2 -2
  47. package/dist/assets/{audit-logs-CNWSS6cO.js → audit-logs-B2Hvy3ws.js} +1 -1
  48. package/dist/assets/{base-chart-CtBedy-P.js → base-chart-Do9WtdQs.js} +1 -1
  49. package/dist/assets/{blocklet-Dcm-KWY0.js → blocklet-Cu8go6Cl.js} +1 -1
  50. package/dist/assets/{chain-B1M1oJUZ.js → chain-tpP2d9Lm.js} +1 -1
  51. package/dist/assets/{click-to-copy-UAGH53Qf.js → click-to-copy-BpBPaRWz.js} +1 -1
  52. package/dist/assets/cloneDeep-BAowUJcW.js +1 -0
  53. package/dist/assets/{collapse-SFvNptyB.js → collapse-DRRC0SCd.js} +1 -1
  54. package/dist/assets/{config-navigation-BXWbV-Cs.js → config-navigation-Ntc_O8HF.js} +46 -46
  55. package/dist/assets/connect-to-CTjQfAN3.js +29 -0
  56. package/dist/assets/{cssMode-a2Qinu_F.js → cssMode-MKOimR8r.js} +1 -1
  57. package/dist/assets/{de-Ztxy5vEB.js → de-BF0NHTXz.js} +2 -2
  58. package/dist/assets/{delete-confirm-CykvEZcZ.js → delete-confirm-DwwucGed.js} +1 -1
  59. package/dist/assets/{depsEqual-CNVuMuEd.js → depsEqual-DJ4V1mTU.js} +1 -1
  60. package/dist/assets/{detail-DgAURCp6.js → detail-BAwVCAFb.js} +3 -3
  61. package/dist/assets/{domains-DzUka-Py.js → domains-rlp68m61.js} +1 -1
  62. package/dist/assets/{download-DAgi3KG_.js → download-CizjGT3a.js} +1 -1
  63. package/dist/assets/{edit.svg-DYBjroym.js → edit.svg-CpLTrX1j.js} +1 -1
  64. package/dist/assets/emotion-cache.browser.esm-BLI6o2QB.js +1 -0
  65. package/dist/assets/engine-d9ZSaCl8.js +1 -0
  66. package/dist/assets/{es-Cd-spoK_.js → es-Dv2m4LXp.js} +2 -2
  67. package/dist/assets/{fr-k8jXteN1.js → fr-BGhg9oO3.js} +2 -2
  68. package/dist/assets/{freemarker2-C-5txAzw.js → freemarker2-dI1M-X6u.js} +1 -1
  69. package/dist/assets/{get-safe-url-slTYcduh.js → get-safe-url-CHuz2b-I.js} +1 -1
  70. package/dist/assets/getValidReactChildren-C8GIEouH.js +1 -0
  71. package/dist/assets/{graphqlMode-CqvY2dvn.js → graphqlMode-B_WmUdLw.js} +2 -2
  72. package/dist/assets/{handlebars-BYAvYDfA.js → handlebars-CRMti49n.js} +1 -1
  73. package/dist/assets/{hi-CvpI1-tn.js → hi-CPfDhW8g.js} +2 -2
  74. package/dist/assets/{html-BvL9XBVt.js → html-ermJICEG.js} +1 -1
  75. package/dist/assets/{html-title-C8DFoE3o.js → html-title-BQwqe1Ck.js} +1 -1
  76. package/dist/assets/{htmlMode-B2ou9eLB.js → htmlMode-B0bBi3DI.js} +1 -1
  77. package/dist/assets/{id-D8coHs1U.js → id-9TUzKF6k.js} +2 -2
  78. package/dist/assets/{iframe-B2nulerg.js → iframe-9SAgwJDT.js} +1 -1
  79. package/dist/assets/{index-t7M3AlIl.js → index-2c1VoOd9.js} +123 -126
  80. package/dist/assets/index-B0_NefDz.js +1 -0
  81. package/dist/assets/{index-C3LdZf6o.js → index-B6xNHlEj.js} +3 -3
  82. package/dist/assets/{index-o0W75sh0.js → index-BC4-BsXp.js} +1 -1
  83. package/dist/assets/index-BGQR0TyN.js +1 -0
  84. package/dist/assets/{index-DxHUxvwT.js → index-BNQ03H5g.js} +1 -1
  85. package/dist/assets/{index-Dxb5VoXb.js → index-BR8r-K4S.js} +1 -1
  86. package/dist/assets/{index-BQoDUo8G.js → index-BVtHC_qD.js} +3 -3
  87. package/dist/assets/{index-DE2n9InK.js → index-BkBk9uDM.js} +1 -1
  88. package/dist/assets/{index-BVPjbwFh.js → index-Bkx9VtR1.js} +3 -3
  89. package/dist/assets/{index-DcJaC3Zv.js → index-C34tPvay.js} +1 -1
  90. package/dist/assets/{index-BE_VxsDo.js → index-C3PPN1sd.js} +1 -1
  91. package/dist/assets/index-CBDLDE06.js +168 -0
  92. package/dist/assets/{index-D1v2ub6O.js → index-CCDLY5yo.js} +1 -1
  93. package/dist/assets/{index-CcoyIHc2.js → index-CNd2lEI7.js} +1 -1
  94. package/dist/assets/{index-DevzmDa7.js → index-CTialFzy.js} +1 -1
  95. package/dist/assets/{index-BeBFdIcq.js → index-CZVLqYhR.js} +1 -1
  96. package/dist/assets/{index-C4O6nFZK.js → index-CcHEbeR3.js} +1 -1
  97. package/dist/assets/{index-m59yehWt.js → index-CeI21XVA.js} +1 -1
  98. package/dist/assets/{index-DNQRuNMg.js → index-CeMW5u5M.js} +1 -1
  99. package/dist/assets/{index-B0ezkZD_.js → index-CmgnJ9Ac.js} +9 -9
  100. package/dist/assets/{index-C-ZSaiUf.js → index-CuNku1ac.js} +1 -1
  101. package/dist/assets/{index-MI1PE9cE.js → index-D-Q5yWhn.js} +1 -1
  102. package/dist/assets/{index-Cmq6DzBi.js → index-D1jZ55Sb.js} +1 -1
  103. package/dist/assets/{index-C4sXNe3X.js → index-D6WMVz-u.js} +1 -1
  104. package/dist/assets/{index-BYvHyq2X.js → index-D9QeG2FZ.js} +1 -1
  105. package/dist/assets/{index-Gy9GijRe.js → index-DCmGZYYq.js} +1 -1
  106. package/dist/assets/index-DF8exUsL.js +328 -0
  107. package/dist/assets/{index-DudW3VZ0.js → index-DGZbMOLi.js} +1 -1
  108. package/dist/assets/{index-CGPesPdM.js → index-DO977Avs.js} +1 -1
  109. package/dist/assets/{index-Dxe6NqUd.js → index-DOFLIkPm.js} +1 -1
  110. package/dist/assets/{index-BTZ0eV0N.js → index-DUpNrHpg.js} +1 -1
  111. package/dist/assets/{index-B7yK5r9r.js → index-DcBZKU5L.js} +1 -1
  112. package/dist/assets/{index-C-ikBis3.js → index-DtbxvdaD.js} +1 -1
  113. package/dist/assets/{index-DKNNRdfd.js → index-DtnSIrsF.js} +1 -1
  114. package/dist/assets/{index-B069rJrU.js → index-DuqULJQe.js} +1 -1
  115. package/dist/assets/{index-zEOfnqWp.js → index-Dz_Rmjb-.js} +1 -1
  116. package/dist/assets/{index-Dmm7CN3L.js → index-EhtXyCtH.js} +1 -1
  117. package/dist/assets/{index-B22sxjhK.js → index-IfVDnuZk.js} +1 -1
  118. package/dist/assets/{index-CzOe4kWN.js → index-OJESZDQE.js} +1 -1
  119. package/dist/assets/{index-BxE9QNGJ.js → index-gDj2o7RF.js} +1 -1
  120. package/dist/assets/{index-Cq0PEg3C.js → index-mI9L2BhQ.js} +1 -1
  121. package/dist/assets/{index-CQBXMXxB.js → index-n0Dm2HUt.js} +1 -1
  122. package/dist/assets/{index-DLW-FPc1.js → index-vpxPTR3F.js} +1 -1
  123. package/dist/assets/{index-DrzeWNxs.js → index-yXEFoIGg.js} +1 -1
  124. package/dist/assets/{index-Bk3Q7htA.js → index-zysAnh52.js} +2 -2
  125. package/dist/assets/{index.esm-y0ki7yla.js → index.esm-CgpVcU8p.js} +1 -1
  126. package/dist/assets/{install-from-url-bDGtH7bg.js → install-from-url-jU_rZbjX.js} +1 -1
  127. package/dist/assets/{invitation-BMQ8ii-U.js → invitation-DX_ynvNX.js} +1 -1
  128. package/dist/assets/{is-path-prefix-equal-6ZIHUdY4.js → is-path-prefix-equal-VKe4yShn.js} +1 -1
  129. package/dist/assets/{item-CcYR2iTB.js → item-D0BOEDZA.js} +9 -9
  130. package/dist/assets/{ja-Dkn5OA2r.js → ja-DT5bRsBF.js} +2 -2
  131. package/dist/assets/{javascript-Dv9tLB_N.js → javascript-DCfUrb2b.js} +1 -1
  132. package/dist/assets/{jsonMode-DUlsfgRc.js → jsonMode-DflwradV.js} +1 -1
  133. package/dist/assets/{ko-DXfRo0NY.js → ko-CJn9PyPz.js} +2 -2
  134. package/dist/assets/{liquid-C9JfvrHT.js → liquid-v5CyzMO1.js} +1 -1
  135. package/dist/assets/{list-header-DE2pVYNH.js → list-header-BsNw1q-X.js} +1 -1
  136. package/dist/assets/{lock.svg-DK6tzOS0.js → lock.svg-DcfL5WSZ.js} +1 -1
  137. package/dist/assets/{log-B0JHspX2.js → log-v9e9l2M0.js} +1 -1
  138. package/dist/assets/{lottie-react.esm-BQ1sE4G7.js → lottie-react.esm-CCtixTZh.js} +1 -1
  139. package/dist/assets/{mdx-D_F4JUXE.js → mdx-Ctxzc90y.js} +1 -1
  140. package/dist/assets/{memory-Ca0TT2wR.js → memory-BBW5cukR.js} +1 -1
  141. package/dist/assets/{metric-B_ux39Cy.js → metric-gyu0g4Df.js} +1 -1
  142. package/dist/assets/omit-B1xspwKB.js +1 -0
  143. package/dist/assets/{overview-DdKaJYs3.js → overview-CGezXNcq.js} +1 -1
  144. package/dist/assets/{permission-DL-rt2kz.js → permission-Dh9Y-pMK.js} +1 -1
  145. package/dist/assets/{preference-B32PPIXC.js → preference-CSylIZyx.js} +3 -3
  146. package/dist/assets/pt-K9FK6Ube.js +5 -0
  147. package/dist/assets/{python-DxxmtajH.js → python-OTBVRvfx.js} +1 -1
  148. package/dist/assets/{raf-schd.esm-C3uAJs0d.js → raf-schd.esm-CeLqNu5n.js} +1 -1
  149. package/dist/assets/{razor-C21hzdPt.js → razor-Dz96HacP.js} +1 -1
  150. package/dist/assets/{rotate-session-key-Cxb_738W.js → rotate-session-key-sNZ4agRi.js} +1 -1
  151. package/dist/assets/ru-C_RwukUu.js +5 -0
  152. package/dist/assets/{runtime-Bdx0ukMN.js → runtime-44wcxPEo.js} +1 -1
  153. package/dist/assets/schema-DTRR0KGi.js +1 -0
  154. package/dist/assets/sdk-DH9OjvLO.js +1 -0
  155. package/dist/assets/{service-BM2nSHO0.js → service-CrTKbt09.js} +1 -1
  156. package/dist/assets/{shorten-label-DnblKkIH.js → shorten-label-azqzn6Q0.js} +1 -1
  157. package/dist/assets/{simple-select-DPUPpFQ5.js → simple-select-Cjwynh2P.js} +1 -1
  158. package/dist/assets/{spaces-BKKKu_Dh.js → spaces-CImRuKfl.js} +1 -1
  159. package/dist/assets/{status-DtYf6aZS.js → status-BVLGfZ_U.js} +1 -1
  160. package/dist/assets/{status-COOoCu8i.js → status-DqZQuuxT.js} +1 -1
  161. package/dist/assets/{switch-control-CNmlIEr7.js → switch-control-uPmfeqt7.js} +1 -1
  162. package/dist/assets/{table-icons-C91WckX-.js → table-icons-j1shPhg0.js} +1 -1
  163. package/dist/assets/{team-DMp941g-.js → team-BOavcC7l.js} +1 -1
  164. package/dist/assets/th-Bhii_FfA.js +5 -0
  165. package/dist/assets/{toLower-BOZmijH1.js → toLower-DFhqc1Tx.js} +1 -1
  166. package/dist/assets/toUpper-BIz-OTsX.js +1 -0
  167. package/dist/assets/{traffic-CAtwfrwW.js → traffic-Dk3MPYPo.js} +1 -1
  168. package/dist/assets/{tsMode-BsmIUAx_.js → tsMode-DtrLBL88.js} +1 -1
  169. package/dist/assets/{typescript-CuXsCA8e.js → typescript-B_jxVxfT.js} +1 -1
  170. package/dist/assets/{url-evaluation-Dx99nTAj.js → url-evaluation-CKpb4hS-.js} +1 -1
  171. package/dist/assets/{url-join--uxDIQ5s.js → url-join-_MGxS-GP.js} +1 -1
  172. package/dist/assets/{use-mobile-gk4f0z32.js → use-mobile-CYJJmSLZ.js} +1 -1
  173. package/dist/assets/{use-mobile-B_qRraPN.js → use-mobile-DehCuxqg.js} +1 -1
  174. package/dist/assets/{useAsync-BkAVfcXM.js → useAsync-EJ0V06fl.js} +1 -1
  175. package/dist/assets/{useAsyncRetry-B53j1afR.js → useAsyncRetry-DTCkIRbI.js} +1 -1
  176. package/dist/assets/{useLocalStorage-BNDc6dCy.js → useLocalStorage-C5c8IOKv.js} +1 -1
  177. package/dist/assets/{useThemeProps-CWZCrmyJ.js → useThemeProps-Ddo6kYr5.js} +1 -1
  178. package/dist/assets/{util-Hbz7ULeM.js → util-CQYGkX3v.js} +1 -1
  179. package/dist/assets/vi-DVF2tjOG.js +5 -0
  180. package/dist/assets/{wait-container-BwhzxN9f.js → wait-container-Dt2QEBDD.js} +1 -1
  181. package/dist/assets/{without-wallet-Bms_Rs1m.js → without-wallet-DwaGUGcr.js} +1 -1
  182. package/dist/assets/wrap-locale-BSXSKo1t.js +1 -0
  183. package/dist/assets/{xml-jOEN8hj5.js → xml-TYsadqlU.js} +1 -1
  184. package/dist/assets/{yaml-DIuLKVgk.js → yaml-BeTZvw1b.js} +1 -1
  185. package/dist/assets/{zh-DB1zAstv.js → zh-98nxdLeR.js} +2 -2
  186. package/dist/assets/{zh-tw-DVMVT9am.js → zh-tw-BdDE7n5E.js} +2 -2
  187. package/dist/index.html +1 -1
  188. package/dist/service-worker.js +1 -1
  189. package/package.json +1 -1
  190. package/dist/assets/ArrowDropDown-DZ4LPniJ.js +0 -1
  191. package/dist/assets/actions-CcYVxFDV.js +0 -1
  192. package/dist/assets/api-BgkTVaD7.js +0 -1
  193. package/dist/assets/cloneDeep-a4PlXlaR.js +0 -1
  194. package/dist/assets/connect-to-C1HXhR31.js +0 -30
  195. package/dist/assets/emotion-cache.browser.esm-Dakakd0R.js +0 -1
  196. package/dist/assets/engine-4rlPqZXl.js +0 -1
  197. package/dist/assets/getValidReactChildren-D4p_s3zF.js +0 -1
  198. package/dist/assets/index-BIyZS31y.js +0 -168
  199. package/dist/assets/index-DDHwRT_8.js +0 -1
  200. package/dist/assets/index-Dd8DBQ06.js +0 -328
  201. package/dist/assets/index-PmpfUMid.js +0 -1
  202. package/dist/assets/omit-Cxe_6CRp.js +0 -1
  203. package/dist/assets/pt-CNQsUMCu.js +0 -5
  204. package/dist/assets/ru-CjyCft4V.js +0 -5
  205. package/dist/assets/schema-CSqqEtp_.js +0 -1
  206. package/dist/assets/sdk-C4od53R_.js +0 -1
  207. package/dist/assets/th-WQWRMKAv.js +0 -5
  208. package/dist/assets/toUpper-BVrGP8Kf.js +0 -1
  209. package/dist/assets/vi-Br98wbNi.js +0 -5
  210. package/dist/assets/wrap-locale-BYm00LUc.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-C3LdZf6o.js","./index-t7M3AlIl.js","./index-DGkT7afN.css","./url-join--uxDIQ5s.js","./index-C-ZSaiUf.js","./_createAggregator-Ctg83h-t.js","./depsEqual-CNVuMuEd.js","./index-CGPesPdM.js","./index-DRYJ0xIl.js","./toUpper-BVrGP8Kf.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
2
- import{c0 as eh,b$ as th,r as I,c1 as rh,eT as nh,j as g,b8 as ot,c3 as nt,c4 as ih,hA as oh,hB as ah,gy as sh,du as lh,hC as ch,dv as uh,bQ as pc,bR as dh,bO as fh,bP as hh,bT as gc,dy as $n,hD as ph,eD as gh,ho as vh,gS as mh,dF as bh,gP as vc,hE as yh,gC as xh,fq as Sh,eE as wh,hb as Ch,V as Me,a2 as Qe,y as Ie,aH as be,aP as zt,c7 as Et,i as Ih,fb as Rh,eO as Th,hr as Dh,dx as Rr,ez as vr,di as mc,dC as _h,hF as Ph,dB as bc,bd as Gn,dO as nr,hG as F,e_ as K,eH as kh,hH as Yr,be as Q,o as x,dM as Wn,aQ as Oo,hI as Eo,cB as er,aD as xe,b as ht,K as oe,af as Oh,cw as se,b9 as No,dD as Yt,T as me,a3 as Ae,b1 as Yi,bA as xt,hJ as Eh,bn as yc,E as Hn,hK as Nh,hL as Mh,t as it,fo as Rn,ay as Ah,br as Ve,fe as xc,C as Sc,bJ as Lh,hM as Ma,M as Mo,fa as zh,f6 as wc,H as Ot,O as Cc,$ as Ic,v as Tn,hN as Rc,f as jt,dL as jh,by as Fh,gG as Tc,dJ as Or,a6 as Bh,a7 as $h,hO as Aa,hP as Dc,hQ as Gh,hR as Wh,hS as Un,ff as Hh,g8 as Uh,g9 as qh,hT as Vh,hU as Kh,hV as Yh,ge as qn,bD as Le,hW as Jh,h7 as Xh,hX as Qh,gL as Zh,hY as Dn,hZ as _c,L as Pc,z as Vn,h_ as La,h$ as kc,i0 as Ji,i1 as ep,i2 as tp,s as cr,i3 as rp,f5 as np,cA as Oc,i4 as ip,bG as op,i5 as ap,dI as Ye,D as sp,U as lp,cv as cp,i6 as up,a$ as dp,bg as za,Q as _n,a8 as ja,i7 as fp,i8 as hp,i9 as pp,ia as gp,ib as Ec,ic as vp,aB as Nc,f0 as Mc,id as Ao,ie as mp,hk as Ac,ig as bp,b5 as yp,cF as Jt,ih as xp,cU as Sp,ii as wp,d3 as Cp,G as Fa,dq as ui,eI as Ba,dN as Ip,ij as Rp,a4 as Lc,X as $a,ik as Ga,P as Tp,S as Wa}from"./index-t7M3AlIl.js";import{r as Dp}from"./omit-Cxe_6CRp.js";import{r as _p}from"./cloneDeep-a4PlXlaR.js";import{r as Pp}from"./index-C-ZSaiUf.js";import{c as kp,u as Op}from"./_createAggregator-Ctg83h-t.js";import{u as Ft}from"./blocklet-Dcm-KWY0.js";import{H as Ep,G as Np,M as Mp,N as Ap,O as Ha,K as Lp,L as zp}from"./index-C4sXNe3X.js";import{_ as Se,a as we,b as Ge,c as We,d as He,e as jp,f as zc,u as fe,g as ne,r as Fr,w as Pn,h as jc,i as Bt,j as Fc,k as Fp,l as Bp,o as Xi}from"./raf-schd.esm-C3uAJs0d.js";import{_ as A,b as Ua,c as $p,a as Gp,d as Wp}from"./redux-DfszZyTl.js";import{_ as Hp}from"./typeof-QjJsDpFa.js";import{u as Bc,b as Up}from"./team-DMp941g-.js";import{b as qp}from"./actions-CEVha9Lm.js";import{u as Vp,a as Kp,C as lt}from"./index.esm-y0ki7yla.js";import{S as Qi}from"./simple-select-DPUPpFQ5.js";import{b as Yp,a as qa}from"./html-title-C8DFoE3o.js";import{C as $c}from"./Clear-Bjaoevyy.js";import{A as Jp}from"./ArrowDropDown-DZ4LPniJ.js";import{a as Xp}from"./api-BgkTVaD7.js";import{A as Qp}from"./Autocomplete-DK0iCUAm.js";import{L as Zp}from"./ListItemButton-Dq8kjXAC.js";import{u as Gc}from"./use-mobile-gk4f0z32.js";import{u as eg}from"./index-DcJaC3Zv.js";import{d as tg}from"./KeyboardArrowDown-C9ZFNMos.js";import{S as rg}from"./Search-XYz8f8XA.js";import{A as ng}from"./Add-BKe5i02H.js";import{O as ig}from"./OpenInNew-BQ_lyYyz.js";import{t as og}from"./index-DDHwRT_8.js";import{I as ag}from"./iframe-B2nulerg.js";import{B as di}from"./ButtonGroup-B86tCmd3.js";import{L as Va}from"./LoadingButton-YsBwLHRI.js";import"./depsEqual-CNVuMuEd.js";import"./url-evaluation-Dx99nTAj.js";import"./useLocalStorage-BNDc6dCy.js";import"./MoreVert-BFhM4QD_.js";import"./get-safe-url-slTYcduh.js";import"./permission-DL-rt2kz.js";import"./ListSubheader-BN5vdmXx.js";import"./getValidReactChildren-D4p_s3zF.js";function sg(e){return eh("MuiListItemAvatar",e)}th("MuiListItemAvatar",["root","alignItemsFlexStart"]);const lg=e=>{const{alignItems:r,classes:n}=e;return ih({root:["root",r==="flex-start"&&"alignItemsFlexStart"]},sg,n)},cg=ot("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}}]}),Ka=I.forwardRef(function(r,n){const t=rh({props:r,name:"MuiListItemAvatar"}),{className:i,...o}=t,a=I.useContext(nh),s={...t,alignItems:a.alignItems},l=lg(s);return g.jsx(cg,{className:nt(l.root,i),ownerState:s,ref:n,...o})});var ug=oh(function(){return ah?sessionStorage:void 0});function dg(e,r){return sh(r,function(n){return e[n]})}function fg(e){return e==null?[]:dg(e,lh(e))}var hg=ch.isFinite;function Ya(e){return typeof e=="number"&&hg(e)}function pg(e){return typeof e=="number"&&e==uh(e)}var gg=kp(function(e,r,n){e[n?0:1].push(r)},function(){return[[],[]]});const vg=Object.freeze(Object.defineProperty({__proto__:null,default:gg},Symbol.toStringTag,{value:"Module"}));var mg=pc(function(e){var r=dh(e);return r=typeof r=="function"?r:void 0,fh(hh(e,1,gc,!0),void 0,r)});const bg=Object.freeze(Object.defineProperty({__proto__:null,default:mg},Symbol.toStringTag,{value:"Module"}));var Wc=pc(function(e,r){return gc(e)?qp(e,r):[]}),mr={};const yg=$n(bg),xg=$n(ph),Sg=$n(vg);var Ja;function wg(){return Ja||(Ja=1,function(e){var r=mr&&mr.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(e,"__esModule",{value:!0}),e.sortRootNavigation=e.cleanOldNavigationHistory=e.checkLink=void 0,e.parseNavigation=ie,e.deepWalk=w,e.isMatchSection=_,e.nestNavigationList=ee,e.filterNavigation=X,e.cleanOrphanNavigation=Z,e.joinLink=j,e.flattenNavigation=M,e.splitNavigationBySection=J;const n=gh(),t=r(yg),i=r(vh),o=r(mh),a=r(xg),s=r(bh),l=r(Dp),c=r(_p),u=Ch(),f=r(Pp()),d=r(vc()),h=r(yh),p=r(xh),v=r(Sg),m=Sh(),y=wh();Object.defineProperty(e,"checkLink",{enumerable:!0,get:function(){return y.checkLink}});const b="header",C="/",D="/",P="/";function w(G,W=()=>{},{key:L="children",order:N="first"}={}){function O(U,{index:te=0,parent:ae=null,level:de=0}={}){Array.isArray(U)?U.forEach((he,Ce)=>{O(he,{index:Ce,parent:ae,level:de+1})}):U&&(N==="first"&&W(U,ae,{index:te,level:de}),O(U[L],{parent:U,level:de}),N==="last"&&W(U,ae,{index:te,level:de}))}O(G)}function _(G,W){return W===b&&(0,a.default)(G)?!0:Array.isArray(G)?G.includes(W):G===W}function S(G){try{return JSON.parse(G)}catch{return G}}function T(G){return G.map(W=>{const L={...W};return L.role&&(L.role=S(L.role)),L.section&&(L.section=S(L.section)),L.title&&(L.title=S(L.title)),L.description&&(L.description=S(L.description)),L.link&&(L.link=S(L.link)),L})}function R(G="/",W=""){if((0,d.default)(W||""))return W;const L=f.default.join(G,W||D);return L.length>1&&L.endsWith("/")?L.slice(0,L.length-1):L}function k(G,W,{strict:L=!0}={}){let N=G,O=W;return L||(N=N||"/",O=O||"/"),(0,h.default)(N)&&(0,p.default)(O)&&(0,y.checkLink)(O)?Object.keys(N).reduce((U,te)=>(U[te]=R(N[te],O),U),{}):(0,p.default)(N)&&(0,y.checkLink)(N)&&(0,h.default)(O)?Object.keys(O).reduce((U,te)=>(U[te]=R(N,O[te]),U),{}):(0,p.default)(N)&&(0,p.default)(O)?(0,y.checkLink)(N)||(0,y.checkLink)(O)?R(N,O):O:(0,h.default)(N)&&(0,h.default)(O)?[...new Set([...Object.keys(N),...Object.keys(O)])].reduce((te,ae)=>(te[ae]=R(N[ae],O[ae]),te),{}):O}function j(G,W){const L=(0,c.default)(G);return w(L,(N,O)=>{const U=N.component||N.child;if(U){const te=W.find(ae=>ae.name===U);te&&(N.link=k(te.link,N.link,{strict:!1}))}else O&&(N.link=k(O.link,N.link))},{key:"items"}),L}function M(G=[],{depth:W=1,transform:L=N=>N}={}){const N=(0,c.default)(G),O=[];return w(N,(U,te,{level:ae})=>{if(ae>=W){const{items:de=[]}=U;if(de&&Array.isArray(de)&&de.length>0){delete U.items;const he=de.map(Ce=>L(Ce,U));if(te)te.items.push(...he);else{const Ce=L((0,l.default)(U,["items"]),te);O.push(Ce,...he)}}else if(ae===1){const he=L((0,l.default)(U,["items"]),te);O.push(he)}}else ae===1&&O.push(U)},{key:"items",order:"last"}),O}function H(G){if(G.section!=="bottomNavigation")return G;const W={...G};return n.NAVIGATION_I18N_FIELDS.forEach(L=>{const N=W[L];typeof N=="string"&&(W[L]={en:N})}),W}function E(G={}){const W=[];function L(O,U={}){const te=[],{children:ae=[],meta:de={}}=O,he=(0,c.default)(de?.navigation||[]);(0,m.hasStartEngine)(de)&&O.meta?.capabilities?.navigation!==!1&&te.push(...he);const Ce=U.name||"",ze=U.mountPoint||C,ye=O===G?"":de.name||"",_e=O===G?"":O.mountPoint||C;for(const le of ae){if(!(0,m.hasStartEngine)(le.meta))continue;const ve=le.meta.name,at=le.mountPoint,gr=[Ce,ye,ve].filter(Boolean).join("."),li=le.meta.navigation||[],ci=(0,u.joinURL)(ze,_e,at);le.meta?.capabilities?.navigation!==!1&&W.push({did:le.meta.did,name:gr,link:ci,title:le.meta.title||"",navigation:li.map(Xe=>({section:b,...Xe}))});const st=he.find(Xe=>Xe.component?Xe.component===ve:!1);if(st){if(!st.link)if(le.meta.navigation&&le.meta.navigation.length>0){const Xe=L(le,{mountPoint:_e,name:ye});Xe.length>0&&(st.items=st.items??[],st.items.push(...Xe))}else st.link=D}else if(le.meta?.capabilities?.navigation!==!1){const Xe=L(le,{mountPoint:_e,name:ye}),an={title:le.meta.title,component:ve,id:le.meta.did};Xe.length>0?(an.items=Xe,an.link=void 0):an.link=D,te.push(an)}}return te}return{navigationList:L(G),components:W}}function B(G){const W=(0,c.default)(G).filter(L=>L.id);return w(W,(L,N)=>{if(L.items&&L.items.length){for(let O=L.items.length-1;O>=0;O--)L.items[O].id||L.items.splice(O,1);L.items.length===0&&L.component&&(L.link=L.link||D)}N&&(L.parent=N.id,L.id=[N.id,L.id].join(P)),L.from=L.from||"yaml",L.visible=L.visible??!0},{key:"items"}),W}function $(G,W=2){const L=(0,c.default)(G),N=M(L,{depth:W,transform:(O,U)=>(U&&(O._parent||(O._parent=U.id,U.component||(O.link=k(U.link,O.link))),O.section=O.section||U.section||[b],O.visible=O.visible??U.visible,U.role&&(O.role=O.role||U.role)),O.component=[U.component,O.component].filter(Boolean).join("."),O)});return w(N,O=>{O.items&&O.items.length>0&&O.items.reduceRight((U,te)=>{if(te._parent){const ae=O.items.findIndex(de=>de.id===te._parent);ae>=0&&O.items.splice(ae,1),delete te._parent}return null},null)},{key:"items"}),N}function q(G,W){return W&&Array.isArray(G.items)?G.items.filter(L=>(0,a.default)(L.section)?_(G.section,W):!!_(L.section,W)).map(L=>({...L,section:W})):[]}function J(G){const W=(0,c.default)(G),L=[];for(const N of W){let te=function(ae,de){const he=q(ae,de);U.push({...O,section:de,items:he})};const O=(0,c.default)((0,l.default)(N,["items"])),U=[];if(Array.isArray(N.section))for(const ae of N.section)te(N,ae);else if(N.section){const{section:ae}=N;te(N,ae)}else if(N.items&&N.items.length>0){const ae=N.items.reduce((he,Ce)=>{const{section:ze=[b]}=Ce||{};return he.push(...ze),he},[]),de=[...new Set(ae)];for(const he of de)te(N,he)}else U.push({...N,section:b});L.push(...U)}return L}function ee(G=[]){const W=(0,c.default)(G);return W.reduceRight((L,N,O)=>{if(N.parent){const U=W.find(te=>N.section&&te.section?te.section===N.section&&te.id===N.parent:te.id===N.parent);U&&(U.items||(U.items=[]),U.items=[N,...U.items]),W.splice(O,1)}return null},null),W}function X(G,W=[]){const L=ee(G);return w(L,O=>{if(O?.component&&(W.some(U=>U.name===O.component)||(O.visible=!1)),O.items&&O.items.length)for(let U=O.items.length-1;U>=0;U--)O.items[U].visible===!1&&O.items.splice(U,1)},{key:"items"}),L.filter(O=>!(O.visible===!1||O.items&&Array.isArray(O.items)&&O.items.length>0&&O.items?.every(U=>U.visible===!1)))}function Z(G){return G.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 V=G=>{const[W,L]=(0,v.default)(G,N=>N.id==="/team");return[...W,...L]};e.sortRootNavigation=V;const re=G=>{const[,W]=(0,v.default)(G,L=>{const N=typeof L.title=="string"?L.title:L.title?.en;return L.id==="/team"&&N==="Access"||L.id==="/dashboard"&&N==="Blocklet"});return W};e.cleanOldNavigationHistory=re;function ie(G={},W={}){const{beforeProcess:L=le=>le}=W,{navigationList:N,components:O}=E(G),U=new Map;N.forEach(le=>{le.items?.forEach(ve=>{U.set((0,u.joinURL)(le.id,ve.id),ve)})});const te=(0,s.default)(G,"settings.org.enabled",!1);G?.settings?.navigations&&(Array.isArray(G.settings.navigations)?G.settings.navigations=[...G.settings.navigations].filter(le=>!(le?.parent==="/team"&&le.from==="team-tmpl")).map(le=>{if(le.section==="userCenter"&&!Object.prototype.hasOwnProperty.call(le,"private")){const ve=U.get(le.id);ve&&Object.prototype.hasOwnProperty.call(ve,"private")&&(le.private=ve.private)}return!te&&le.section==="userCenter"&&le.id==="/userCenter/orgs"?null:le}).filter(Boolean):G.settings.navigations=[]);const ae=T(re(G?.settings?.navigations||[])).map(H),de=$(L(N)),he=B(de),ze=J(he).reduce((le,ve)=>["bottom","social","sessionManager","userCenter"].includes(ve.section)&&ve.items&&ve.items.length>0?(le.push(...ve.items.map(gr=>{const{section:li}=ve,ci=k(ve.link,gr.link),st=[ve.component,gr.component].filter(Boolean).join(".");return{...gr,section:li,link:ci,component:st,parent:""}})),le):(le.push(ve),le),[]),ye=M(ze,{transform(le,ve){let{component:at}=le;return ve?.component&&(at=[ve.component,le.component].filter(Boolean).join(".")),H({...le,component:at})}});return{navigationList:(0,t.default)(ae,ye,(le,ve)=>{const at=["id","section"];return(0,i.default)((0,o.default)(le,at),(0,o.default)(ve,at))}),components:O,builtinList:ye}}}(mr)),mr}var Ee=wg();const Hc=I.createContext(null),Xa="/",Cg="header",Qa={dashboard:[{id:"/team",title:{en:"Access",zh:"访问控制"},role:["owner","admin","member"],section:["dashboard"],link:"",from:"team-tmpl",items:[{id:"member",title:{en:"Members",zh:"成员"},icon:"ant-design:user-outlined",link:`${be.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/members`,from:"team-tmpl"},{id:"passport",title:{en:"Passport",zh:"通行证"},icon:"icon-park-outline:passport",link:`${be.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/passports`,from:"team-tmpl"}]},{id:"/dashboard",title:"Blocklet",role:["owner","admin"],section:["dashboard"],link:"",from:"team-tmpl",items:[{id:"dashboard",title:{en:"Dashboard",zh:"仪表盘"},icon:"ant-design:dashboard-outlined",link:`${be.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,from:"team-tmpl"}]}],userCenter:[{id:"/userCenter/notification",title:{en:"Notifications",zh:"通知"},icon:"ant-design:bell-outlined",link:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/notifications"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/orgs",title:{en:"Organizations",zh:"组织"},icon:"ant-design:team-outlined",link:Ie(be.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:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/nfts"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/settings",title:{en:"Settings",zh:"设置"},icon:"ant-design:setting-outlined",link:Ie(be.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:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/did-spaces"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/user-followers",title:{en:"Following & Followers",zh:"关注 & 粉丝"},icon:"ant-design:user-outlined",link:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/user-followers"),from:"team-tmpl",section:["userCenter"]}]};function fi(e,r){return e.section&&r.section?e.section===r.section&&e.id===r.id:e.id===r.id}const ct=(e,r,n,t,i=!0)=>({id:e,from:"team-tmpl",title:r,icon:n,link:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,t),visible:i}),Ig=(e,r,n)=>({id:e,from:"team-tmpl",title:r,role:["owner","admin","member"],section:["dashboard"],link:"",items:n}),Rg=(e,r)=>{const n=Ee.cleanOldNavigationHistory(r);return n.findIndex(i=>i.id==="/team")===-1&&n.unshift(Ig("/team",e("navigation.blockletService"),[ct("dashboard",e("navigation.dashboard"),"ant-design:dashboard-outlined","/admin"),ct("did-connect",e("navigation.didConnect"),"tabler:users","/admin/did-connect"),ct("website",e("navigation.website"),"icon-park-twotone:upload-web","/admin/website"),ct("operation",e("navigation.operations"),"grommet-icons:configure","/admin/operations"),ct("integration",e("navigation.integration"),"hugeicons:webhook","/admin/integrations"),ct("developer",e("navigation.developer"),"heroicons:command-line","/admin/developers"),ct("did-spaces",e("navigation.didSpaces"),"icon-park-outline:cloud-storage","/admin/did-spaces"),ct("studio",e("navigation.studio"),"eos-icons:subscriptions-created-outlined","/admin/publish/publish")])),n};function Za({name:e}){return g.jsx(Th,{label:`Uninstalled: ${e}`,color:"error",size:"small",variant:"outlined",sx:{fontSize:10,height:20}})}function Tg({children:e}){const{blocklet:r,actions:n}=Ft(),{t}=Me(),{navigationList:i,components:o,builtinList:a}=Ee.parseNavigation(r,{beforeProcess(w){const _=Qe(w);return["dashboard","userCenter"].forEach(S=>{Object.prototype.hasOwnProperty.call(Qa,S)&&Qa[S].forEach(T=>{(T.shouldDisplay&&typeof T.shouldDisplay=="function"?T.shouldDisplay:()=>!0)(r)&&!_.some(k=>k.id===T.id)&&_.push(T)})}),Rg(t,_)}}),s=zt({rawNavigation:Qe(i),activeSection:Cg,components:o}),l=I.useMemo(()=>Ee.nestNavigationList(Qe(s.rawNavigation)),[s.rawNavigation]),c=I.useMemo(()=>{const w=Ee.filterNavigation(Qe(s.rawNavigation),o);return Ee.joinLink(w,o)},[o,s.rawNavigation]),u=I.useCallback(w=>{if(!w.id)return"";const _=Ee.flattenNavigation(Ee.joinLink(l,o)),S=_.find(T=>T.id===w.id);if(S?.component){if(!o.some(T=>T.name===S.component))return g.jsx(Za,{name:S.component})}else if(S.parent){const T=_.find(R=>R.id===S.parent);if(T?.component&&!o.some(R=>R.name===T.component))return g.jsx(Za,{name:T.component})}return S?.link},[l,o]),f=I.useCallback(w=>{s.activeSection=w},[s]),d=I.useCallback(w=>{const _=[];Ee.deepWalk(w,(T,R)=>{const k={...Et(T,["children","expand"]),parent:R?.id};_.push(k)});const S=Qe(s.rawNavigation).filter(T=>{if(!s.activeSection)return!1;const R=_.find(k=>fi(k,T));return R?!Ee.isMatchSection(R.section,s.activeSection):!0});s.rawNavigation=[...S,..._]},[s]),h=I.useCallback((w=[])=>{const _=Qe(s.rawNavigation).map(S=>{const T=w.find(R=>fi({...R,section:s.activeSection},S));return T?{...S,...T}:S});s.rawNavigation=_},[s]),p=I.useCallback((w,_=Xa)=>w.map(T=>{const k=o.find(H=>H.name===T.component)?.link||_,j=T.items||[],{link:M}=T;return{title:T.title,description:T.description,subtitle:u(T),link:M,icon:T.icon,children:p(j,M||Xa),section:T.section,visible:T.visible,parent:T.parent,component:T.component,id:T.id,role:T.role,from:T.from,__base:k}}),[o,u]),v=I.useCallback(w=>{h([w])},[h]),m=I.useCallback(w=>{const _=s.rawNavigation.filter(S=>S.id===w||S.parent===w).map(S=>S.id);s.rawNavigation=Qe(s.rawNavigation).filter(S=>!_.includes(S.id))},[s]),y=I.useCallback((w={},_=-1)=>{const S={...w,id:Ih.nanoid(),section:s.activeSection,visible:!0},T=[...s.rawNavigation],R=T.filter(k=>k.section===s.activeSection);if(_<0||_>R.length-1)T.push(S);else{const k=R[_],j=T.findIndex(M=>fi(M,k));T.splice(j,0,S)}return s.rawNavigation=T,S},[s]),b=I.useCallback(w=>{const S=Qe(l).filter(T=>Ee.isMatchSection(T.section,w));return p(S)},[l,p]),C=I.useCallback(async w=>{const S=w.map(T=>Rh(T,Dh)).map(T=>{const R={...T};return R.role&&Array.isArray(R.role)&&(R.role=JSON.stringify(R.role)),R.section&&Array.isArray(R.section)&&(R.section=JSON.stringify(R.section)),R.title&&R.title instanceof Object&&(R.title=JSON.stringify(R.title)),R.description&&R.description instanceof Object&&(R.description=JSON.stringify(R.description)),R.link&&R.link instanceof Object&&(R.link=JSON.stringify(R.link)),R});await n.configNavigations(S)},[n]),D=I.useCallback(async w=>{if(w){const _=a.filter(T=>Ee.isMatchSection(T.section,w)),S=s.rawNavigation.filter(T=>!Ee.isMatchSection(T.section,w));await C(S),s.rawNavigation=[...S,..._]}else await C([]),s.rawNavigation=Qe(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(Hc.Provider,{value:P,children:e})}function Uc(){const e=I.useContext(Hc);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}var Ke={},hi,es;function Dg(){if(es)return hi;es=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 Rr=="object"&&Rr&&Rr.Object===Object&&Rr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),f=Object.prototype,d=f.toString,h=Math.max,p=Math.min,v=function(){return u.Date.now()};function m(w,_,S){var T,R,k,j,M,H,E=0,B=!1,$=!1,q=!0;if(typeof w!="function")throw new TypeError(e);_=P(_)||0,b(S)&&(B=!!S.leading,$="maxWait"in S,k=$?h(P(S.maxWait)||0,_):k,q="trailing"in S?!!S.trailing:q);function J(L){var N=T,O=R;return T=R=void 0,E=L,j=w.apply(O,N),j}function ee(L){return E=L,M=setTimeout(V,_),B?J(L):j}function X(L){var N=L-H,O=L-E,U=_-N;return $?p(U,k-O):U}function Z(L){var N=L-H,O=L-E;return H===void 0||N>=_||N<0||$&&O>=k}function V(){var L=v();if(Z(L))return re(L);M=setTimeout(V,X(L))}function re(L){return M=void 0,q&&T?J(L):(T=R=void 0,j)}function ie(){M!==void 0&&clearTimeout(M),E=0,T=H=R=M=void 0}function G(){return M===void 0?j:re(v())}function W(){var L=v(),N=Z(L);if(T=arguments,R=this,H=L,N){if(M===void 0)return ee(H);if($)return M=setTimeout(V,_),J(H)}return M===void 0&&(M=setTimeout(V,_)),j}return W.cancel=ie,W.flush=G,W}function y(w,_,S){var T=!0,R=!0;if(typeof w!="function")throw new TypeError(e);return b(S)&&(T="leading"in S?!!S.leading:T,R="trailing"in S?!!S.trailing:R),m(w,_,{leading:T,maxWait:_,trailing:R})}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 br={exports:{}},Dt={exports:{}},_g=Dt.exports,ts;function Pg(){return ts||(ts=1,(function(){var e,r,n,t,i,o;typeof performance<"u"&&performance!==null&&performance.now?Dt.exports=function(){return performance.now()}:typeof vr<"u"&&vr!==null&&vr.hrtime?(Dt.exports=function(){return(e()-i)/1e6},r=vr.hrtime,e=function(){var a;return a=r(),a[0]*1e9+a[1]},t=e(),o=vr.uptime()*1e9,i=t-o):Date.now?(Dt.exports=function(){return Date.now()-n},n=Date.now()):(Dt.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(_g)),Dt.exports}var rs;function kg(){if(rs)return br.exports;rs=1;for(var e=Pg(),r=typeof window>"u"?Rr: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(),h=Math.max(0,u-(d-s));s=h+d,setTimeout(function(){var p=c.slice(0);c.length=0;for(var v=0;v<p.length;v++)if(!p[v].cancelled)try{p[v].callback(s)}catch(m){setTimeout(function(){throw m},0)}},Math.round(h))}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 br.exports=function(f){return i.call(r,f)},br.exports.cancel=function(){o.apply(r,arguments)},br.exports.polyfill=function(f){f||(f=r),f.requestAnimationFrame=i,f.cancelAnimationFrame=o},br.exports}var sn={},ns;function Og(){if(ns)return sn;ns=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=e;function e(r){return r.displayName||r.name||(typeof r=="string"&&r.length>0?r:"Unknown")}return sn}var Gt={},is;function Eg(){if(is)return Gt;is=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.noop=e,Gt.intBetween=r,Gt.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 Gt}var os;function Ng(){if(os)return Ke;os=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.createHorizontalStrength=T,Ke.createVerticalStrength=R,Ke.createScrollingComponent=M,Ke.default=H,Ke.defaultVerticalStrength=Ke.defaultHorizontalStrength=void 0;var e=u(mc()),r=c(bc()),n=_h(),t=c(Dg()),i=c(kg()),o=c(Og()),a=Ep,s=c(Ph()),l=Eg();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 $ in E)if(Object.prototype.hasOwnProperty.call(E,$)){var q=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(E,$):{};q.get||q.set?Object.defineProperty(B,$,q):B[$]=E[$]}}return B.default=E,B}function f(E){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function($){return typeof $}:f=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},f(E)}function d(){return d=Object.assign||function(E){for(var B=1;B<arguments.length;B++){var $=arguments[B];for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(E[q]=$[q])}return E},d.apply(this,arguments)}function h(E,B){if(E==null)return{};var $=p(E,B),q,J;if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(E);for(J=0;J<ee.length;J++)q=ee[J],!(B.indexOf(q)>=0)&&Object.prototype.propertyIsEnumerable.call(E,q)&&($[q]=E[q])}return $}function p(E,B){if(E==null)return{};var $={},q=Object.keys(E),J,ee;for(ee=0;ee<q.length;ee++)J=q[ee],!(B.indexOf(J)>=0)&&($[J]=E[J]);return $}function v(E,B){if(!(E instanceof B))throw new TypeError("Cannot call a class as a function")}function m(E,B){for(var $=0;$<B.length;$++){var q=B[$];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(E,q.key,q)}}function y(E,B,$){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($){return $.__proto__||Object.getPrototypeOf($)},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(q,J){return q.__proto__=J,q},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,$){return B in E?Object.defineProperty(E,B,{value:$,enumerable:!0,configurable:!0,writable:!0}):E[B]=$,E}var S=150;function T(E){return function($,q){var J=$.x,ee=$.w,X=$.y,Z=$.h,V=Math.min(ee/2,E),re=q.x>=J&&q.x<=J+ee,ie=re&&q.y>=X&&q.y<=X+Z;if(ie){if(q.x<J+V)return(q.x-J-V)/V;if(q.x>J+ee-V)return-(J+ee-q.x-V)/V}return 0}}function R(E){return function($,q){var J=$.y,ee=$.h,X=$.x,Z=$.w,V=Math.min(ee/2,E),re=q.y>=J&&q.y<=J+ee,ie=re&&q.x>=X&&q.x<=X+Z;if(ie){if(q.y<J+V)return(q.y-J-V)/V;if(q.y>J+ee-V)return-(J+ee-q.y-V)/V}return 0}}var k=T(S);Ke.defaultHorizontalStrength=k;var j=R(S);Ke.defaultVerticalStrength=j;function M(E){var B=function($){D(q,$);function q(J,ee){var X;return v(this,q),X=b(this,C(q).call(this,J,ee)),_(w(w(X)),"updateScrolling",(0,t.default)(function(Z){var V=X.container.getBoundingClientRect(),re=V.left,ie=V.top,G=V.width,W=V.height,L={x:re,y:ie,w:G,h:W},N=(0,l.getCoords)(Z),O=X.props,U=O.horizontalStrength,te=O.verticalStrength;X.scaleX=U(L,N),X.scaleY=te(L,N),!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(q,[{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 V(){var re=ee.scaleX,ie=ee.scaleY,G=ee.container,W=ee.props,L=W.strengthMultiplier,N=W.onScrollChange;if(L===0||re+ie===0){ee.stopScrolling();return}if(X+=1,X%2){var O=G.scrollLeft,U=G.scrollTop,te=G.scrollWidth,ae=G.scrollHeight,de=G.clientWidth,he=G.clientHeight,Ce=re?G.scrollLeft=(0,l.intBetween)(0,te-de,O+re*L):O,ze=ie?G.scrollTop=(0,l.intBetween)(0,ae-he,U+ie*L):U;N(Ce,ze)}ee.frame=(0,i.default)(V)};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=h(ee,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return e.default.createElement(E,d({ref:this.wrappedInstance},X))}}]),q}(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:j,horizontalStrength:k,strengthMultiplier:30}),(0,s.default)(B,E)}function H(E){var B=M(E);return function($){return e.default.createElement(a.DragDropContextConsumer,null,function(q){var J=q.dragDropManager;return J===void 0?null:e.default.createElement(B,d({},$,{dragDropManager:J}))})}}return Ke}var bn=Ng();const Mg=Gn(bn);var Ag=Np();const as=Gn(Ag);function qc(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Vc(e){function r(n){var t=this.constructor.getDerivedStateFromProps(e,n);return t??null}this.setState(r.bind(this))}function Kc(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}}qc.__suppressDeprecationWarning=!0;Vc.__suppressDeprecationWarning=!0;Kc.__suppressDeprecationWarning=!0;function Jr(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.
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B6xNHlEj.js","./index-2c1VoOd9.js","./index-DGkT7afN.css","./url-join-_MGxS-GP.js","./index-CuNku1ac.js","./_createAggregator-BcN4GRYz.js","./depsEqual-DJ4V1mTU.js","./index-DO977Avs.js","./index-DRYJ0xIl.js","./toUpper-BIz-OTsX.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
2
+ import{c0 as qf,b$ as Vf,r as I,c1 as Kf,eT as Yf,j as g,b8 as ot,c3 as nt,c4 as Jf,hz as Xf,hA as Qf,gx as Zf,du as ep,hB as tp,dv as rp,bQ as ac,bR as np,bO as ip,bP as op,bT as sc,dy as Gn,hC as ap,eD as sp,hn as lp,gR as cp,dF as up,gO as lc,hD as dp,gB as fp,fp as pp,eE as hp,ha as gp,V as Me,a2 as Qe,y as Ie,aH as be,aP as zt,c7 as Et,i as vp,fa as mp,eO as bp,hq as yp,dx as Rr,ez as vr,di as cc,dC as xp,hE as Sp,dB as uc,bd as $n,dO as nr,hF as F,e_ as K,eH as wp,hG as Yr,be as Q,o as x,dM as Wn,aQ as Do,hH as Po,cB as er,aD as xe,b as pt,K as oe,af as Cp,cw as se,b9 as _o,dD as Yt,T as me,a3 as Ae,b1 as Ui,bA as xt,hI as Ip,bn as dc,E as Hn,hJ as Rp,hK as Tp,t as it,fn as Rn,ay as Dp,br as Ve,fd as fc,C as pc,bJ as Pp,hL as ka,M as ko,f9 as _p,f6 as hc,H as Ot,O as gc,$ as vc,v as Tn,hM as mc,f as jt,dL as kp,by as Op,gF as bc,dJ as Or,a6 as Ep,a7 as Np,hN as Oa,hO as yc,hP as Mp,hQ as Ap,hR as Un,fe as Lp,g8 as zp,g9 as jp,ge as qn,bD as Le,hS as Fp,h6 as Bp,hT as Gp,hU as $p,gK as Wp,hV as Dn,hW as xc,L as Sc,z as Vn,hX as Ea,hY as wc,hZ as qi,h_ as Hp,h$ as Up,s as cr,i0 as qp,f5 as Vp,cA as Cc,i1 as Kp,bG as Yp,i2 as Jp,dI as Ye,D as Xp,U as Qp,cv as Zp,i3 as eh,a$ as th,bg as Na,Q as Pn,a8 as Ma,i4 as rh,i5 as nh,i6 as ih,i7 as oh,i8 as Ic,i9 as ah,aB as Rc,f0 as Tc,ia as Oo,ib as sh,hj as Dc,ic as lh,b5 as ch,cF as Jt,id as uh,cU as dh,ie as fh,d3 as ph,G as Aa,dq as ui,eI as La,dN as hh,ig as gh,a4 as Pc,X as za,ih as ja,P as vh,S as Fa}from"./index-2c1VoOd9.js";import{r as mh}from"./omit-B1xspwKB.js";import{r as bh}from"./cloneDeep-BAowUJcW.js";import{r as yh}from"./index-CuNku1ac.js";import{c as xh,u as Sh}from"./_createAggregator-BcN4GRYz.js";import{u as Ft}from"./blocklet-Cu8go6Cl.js";import{H as wh,G as Ch,M as Ih,N as Rh,O as Ba,K as Th,L as Dh}from"./index-D6WMVz-u.js";import{_ as Se,a as we,b as $e,c as We,d as He,e as Ph,f as _c,u as fe,g as ne,r as Fr,w as _n,h as kc,i as Bt,j as Oc,k as _h,l as kh,o as Vi}from"./raf-schd.esm-CeLqNu5n.js";import{_ as A,b as Ga,c as Oh,a as Eh,d as Nh}from"./redux-DfszZyTl.js";import{_ as Mh}from"./typeof-QjJsDpFa.js";import{u as Ec,b as Ah}from"./team-BOavcC7l.js";import{b as Lh}from"./actions-e0cgLZ3F.js";import{u as zh,a as jh,C as lt}from"./index.esm-CgpVcU8p.js";import{S as Ki}from"./simple-select-Cjwynh2P.js";import{b as Fh,a as $a}from"./html-title-BQwqe1Ck.js";import{C as Nc}from"./Clear-CFi5u92e.js";import{A as Bh}from"./ArrowDropDown-BrtzEFq8.js";import{a as Gh}from"./api-DxqoYz8S.js";import{A as $h}from"./Autocomplete-BBHR-e2e.js";import{L as Wh}from"./ListItemButton-BRQYff97.js";import{u as Mc}from"./use-mobile-CYJJmSLZ.js";import{u as Hh}from"./index-C34tPvay.js";import{d as Uh}from"./KeyboardArrowDown-BRIRZ0lk.js";import{S as qh}from"./Search-BiQ8hlgr.js";import{A as Vh}from"./Add-CM0i44L2.js";import{O as Kh}from"./OpenInNew-BJk7hIVB.js";import{t as Yh}from"./index-BGQR0TyN.js";import{I as Jh}from"./iframe-9SAgwJDT.js";import{B as di}from"./ButtonGroup-B_6MNBFc.js";import{L as Wa}from"./LoadingButton-BhZ8iOtK.js";import"./depsEqual-DJ4V1mTU.js";import"./url-evaluation-CKpb4hS-.js";import"./useLocalStorage-C5c8IOKv.js";import"./MoreVert-Ck4O28kx.js";import"./get-safe-url-CHuz2b-I.js";import"./permission-Dh9Y-pMK.js";import"./ListSubheader-BHGxSe1E.js";import"./getValidReactChildren-C8GIEouH.js";function Xh(e){return qf("MuiListItemAvatar",e)}Vf("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Qh=e=>{const{alignItems:r,classes:n}=e;return Jf({root:["root",r==="flex-start"&&"alignItemsFlexStart"]},Xh,n)},Zh=ot("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}}]}),Ha=I.forwardRef(function(r,n){const t=Kf({props:r,name:"MuiListItemAvatar"}),{className:i,...o}=t,a=I.useContext(Yf),s={...t,alignItems:a.alignItems},l=Qh(s);return g.jsx(Zh,{className:nt(l.root,i),ownerState:s,ref:n,...o})});var eg=Xf(function(){return Qf?sessionStorage:void 0});function tg(e,r){return Zf(r,function(n){return e[n]})}function rg(e){return e==null?[]:tg(e,ep(e))}var ng=tp.isFinite;function Ua(e){return typeof e=="number"&&ng(e)}function ig(e){return typeof e=="number"&&e==rp(e)}var og=xh(function(e,r,n){e[n?0:1].push(r)},function(){return[[],[]]});const ag=Object.freeze(Object.defineProperty({__proto__:null,default:og},Symbol.toStringTag,{value:"Module"}));var sg=ac(function(e){var r=np(e);return r=typeof r=="function"?r:void 0,ip(op(e,1,sc,!0),void 0,r)});const lg=Object.freeze(Object.defineProperty({__proto__:null,default:sg},Symbol.toStringTag,{value:"Module"}));var Ac=ac(function(e,r){return sc(e)?Lh(e,r):[]}),mr={};const cg=Gn(lg),ug=Gn(ap),dg=Gn(ag);var qa;function fg(){return qa||(qa=1,function(e){var r=mr&&mr.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(e,"__esModule",{value:!0}),e.sortRootNavigation=e.cleanOldNavigationHistory=e.checkLink=void 0,e.parseNavigation=ie,e.deepWalk=w,e.isMatchSection=P,e.nestNavigationList=ee,e.filterNavigation=X,e.cleanOrphanNavigation=Z,e.joinLink=j,e.flattenNavigation=M,e.splitNavigationBySection=J;const n=sp(),t=r(cg),i=r(lp),o=r(cp),a=r(ug),s=r(up),l=r(mh),c=r(bh),u=gp(),f=r(yh()),d=r(lc()),p=r(dp),h=r(fp),v=r(dg),m=pp(),y=hp();Object.defineProperty(e,"checkLink",{enumerable:!0,get:function(){return y.checkLink}});const b="header",C="/",D="/",_="/";function w($,W=()=>{},{key:L="children",order:N="first"}={}){function O(U,{index:te=0,parent:ae=null,level:de=0}={}){Array.isArray(U)?U.forEach((pe,Ce)=>{O(pe,{index:Ce,parent:ae,level:de+1})}):U&&(N==="first"&&W(U,ae,{index:te,level:de}),O(U[L],{parent:U,level:de}),N==="last"&&W(U,ae,{index:te,level:de}))}O($)}function P($,W){return W===b&&(0,a.default)($)?!0:Array.isArray($)?$.includes(W):$===W}function S($){try{return JSON.parse($)}catch{return $}}function T($){return $.map(W=>{const L={...W};return L.role&&(L.role=S(L.role)),L.section&&(L.section=S(L.section)),L.title&&(L.title=S(L.title)),L.description&&(L.description=S(L.description)),L.link&&(L.link=S(L.link)),L})}function R($="/",W=""){if((0,d.default)(W||""))return W;const L=f.default.join($,W||D);return L.length>1&&L.endsWith("/")?L.slice(0,L.length-1):L}function k($,W,{strict:L=!0}={}){let N=$,O=W;return L||(N=N||"/",O=O||"/"),(0,p.default)(N)&&(0,h.default)(O)&&(0,y.checkLink)(O)?Object.keys(N).reduce((U,te)=>(U[te]=R(N[te],O),U),{}):(0,h.default)(N)&&(0,y.checkLink)(N)&&(0,p.default)(O)?Object.keys(O).reduce((U,te)=>(U[te]=R(N,O[te]),U),{}):(0,h.default)(N)&&(0,h.default)(O)?(0,y.checkLink)(N)||(0,y.checkLink)(O)?R(N,O):O:(0,p.default)(N)&&(0,p.default)(O)?[...new Set([...Object.keys(N),...Object.keys(O)])].reduce((te,ae)=>(te[ae]=R(N[ae],O[ae]),te),{}):O}function j($,W){const L=(0,c.default)($);return w(L,(N,O)=>{const U=N.component||N.child;if(U){const te=W.find(ae=>ae.name===U);te&&(N.link=k(te.link,N.link,{strict:!1}))}else O&&(N.link=k(O.link,N.link))},{key:"items"}),L}function M($=[],{depth:W=1,transform:L=N=>N}={}){const N=(0,c.default)($),O=[];return w(N,(U,te,{level:ae})=>{if(ae>=W){const{items:de=[]}=U;if(de&&Array.isArray(de)&&de.length>0){delete U.items;const pe=de.map(Ce=>L(Ce,U));if(te)te.items.push(...pe);else{const Ce=L((0,l.default)(U,["items"]),te);O.push(Ce,...pe)}}else if(ae===1){const pe=L((0,l.default)(U,["items"]),te);O.push(pe)}}else ae===1&&O.push(U)},{key:"items",order:"last"}),O}function H($){if($.section!=="bottomNavigation")return $;const W={...$};return n.NAVIGATION_I18N_FIELDS.forEach(L=>{const N=W[L];typeof N=="string"&&(W[L]={en:N})}),W}function E($={}){const W=[];function L(O,U={}){const te=[],{children:ae=[],meta:de={}}=O,pe=(0,c.default)(de?.navigation||[]);(0,m.hasStartEngine)(de)&&O.meta?.capabilities?.navigation!==!1&&te.push(...pe);const Ce=U.name||"",ze=U.mountPoint||C,ye=O===$?"":de.name||"",Pe=O===$?"":O.mountPoint||C;for(const le of ae){if(!(0,m.hasStartEngine)(le.meta))continue;const ve=le.meta.name,at=le.mountPoint,gr=[Ce,ye,ve].filter(Boolean).join("."),li=le.meta.navigation||[],ci=(0,u.joinURL)(ze,Pe,at);le.meta?.capabilities?.navigation!==!1&&W.push({did:le.meta.did,name:gr,link:ci,title:le.meta.title||"",navigation:li.map(Xe=>({section:b,...Xe}))});const st=pe.find(Xe=>Xe.component?Xe.component===ve:!1);if(st){if(!st.link)if(le.meta.navigation&&le.meta.navigation.length>0){const Xe=L(le,{mountPoint:Pe,name:ye});Xe.length>0&&(st.items=st.items??[],st.items.push(...Xe))}else st.link=D}else if(le.meta?.capabilities?.navigation!==!1){const Xe=L(le,{mountPoint:Pe,name:ye}),an={title:le.meta.title,component:ve,id:le.meta.did};Xe.length>0?(an.items=Xe,an.link=void 0):an.link=D,te.push(an)}}return te}return{navigationList:L($),components:W}}function B($){const W=(0,c.default)($).filter(L=>L.id);return w(W,(L,N)=>{if(L.items&&L.items.length){for(let O=L.items.length-1;O>=0;O--)L.items[O].id||L.items.splice(O,1);L.items.length===0&&L.component&&(L.link=L.link||D)}N&&(L.parent=N.id,L.id=[N.id,L.id].join(_)),L.from=L.from||"yaml",L.visible=L.visible??!0},{key:"items"}),W}function G($,W=2){const L=(0,c.default)($),N=M(L,{depth:W,transform:(O,U)=>(U&&(O._parent||(O._parent=U.id,U.component||(O.link=k(U.link,O.link))),O.section=O.section||U.section||[b],O.visible=O.visible??U.visible,U.role&&(O.role=O.role||U.role)),O.component=[U.component,O.component].filter(Boolean).join("."),O)});return w(N,O=>{O.items&&O.items.length>0&&O.items.reduceRight((U,te)=>{if(te._parent){const ae=O.items.findIndex(de=>de.id===te._parent);ae>=0&&O.items.splice(ae,1),delete te._parent}return null},null)},{key:"items"}),N}function q($,W){return W&&Array.isArray($.items)?$.items.filter(L=>(0,a.default)(L.section)?P($.section,W):!!P(L.section,W)).map(L=>({...L,section:W})):[]}function J($){const W=(0,c.default)($),L=[];for(const N of W){let te=function(ae,de){const pe=q(ae,de);U.push({...O,section:de,items:pe})};const O=(0,c.default)((0,l.default)(N,["items"])),U=[];if(Array.isArray(N.section))for(const ae of N.section)te(N,ae);else if(N.section){const{section:ae}=N;te(N,ae)}else if(N.items&&N.items.length>0){const ae=N.items.reduce((pe,Ce)=>{const{section:ze=[b]}=Ce||{};return pe.push(...ze),pe},[]),de=[...new Set(ae)];for(const pe of de)te(N,pe)}else U.push({...N,section:b});L.push(...U)}return L}function ee($=[]){const W=(0,c.default)($);return W.reduceRight((L,N,O)=>{if(N.parent){const U=W.find(te=>N.section&&te.section?te.section===N.section&&te.id===N.parent:te.id===N.parent);U&&(U.items||(U.items=[]),U.items=[N,...U.items]),W.splice(O,1)}return null},null),W}function X($,W=[]){const L=ee($);return w(L,O=>{if(O?.component&&(W.some(U=>U.name===O.component)||(O.visible=!1)),O.items&&O.items.length)for(let U=O.items.length-1;U>=0;U--)O.items[U].visible===!1&&O.items.splice(U,1)},{key:"items"}),L.filter(O=>!(O.visible===!1||O.items&&Array.isArray(O.items)&&O.items.length>0&&O.items?.every(U=>U.visible===!1)))}function Z($){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 V=$=>{const[W,L]=(0,v.default)($,N=>N.id==="/team");return[...W,...L]};e.sortRootNavigation=V;const re=$=>{const[,W]=(0,v.default)($,L=>{const N=typeof L.title=="string"?L.title:L.title?.en;return L.id==="/team"&&N==="Access"||L.id==="/dashboard"&&N==="Blocklet"});return W};e.cleanOldNavigationHistory=re;function ie($={},W={}){const{beforeProcess:L=le=>le}=W,{navigationList:N,components:O}=E($),U=new Map;N.forEach(le=>{le.items?.forEach(ve=>{U.set((0,u.joinURL)(le.id,ve.id),ve)})});const te=(0,s.default)($,"settings.org.enabled",!1);$?.settings?.navigations&&(Array.isArray($.settings.navigations)?$.settings.navigations=[...$.settings.navigations].filter(le=>!(le?.parent==="/team"&&le.from==="team-tmpl")).map(le=>{if(le.section==="userCenter"&&!Object.prototype.hasOwnProperty.call(le,"private")){const ve=U.get(le.id);ve&&Object.prototype.hasOwnProperty.call(ve,"private")&&(le.private=ve.private)}return!te&&le.section==="userCenter"&&le.id==="/userCenter/orgs"?null:le}).filter(Boolean):$.settings.navigations=[]);const ae=T(re($?.settings?.navigations||[])).map(H),de=G(L(N)),pe=B(de),ze=J(pe).reduce((le,ve)=>["bottom","social","sessionManager","userCenter"].includes(ve.section)&&ve.items&&ve.items.length>0?(le.push(...ve.items.map(gr=>{const{section:li}=ve,ci=k(ve.link,gr.link),st=[ve.component,gr.component].filter(Boolean).join(".");return{...gr,section:li,link:ci,component:st,parent:""}})),le):(le.push(ve),le),[]),ye=M(ze,{transform(le,ve){let{component:at}=le;return ve?.component&&(at=[ve.component,le.component].filter(Boolean).join(".")),H({...le,component:at})}});return{navigationList:(0,t.default)(ae,ye,(le,ve)=>{const at=["id","section"];return(0,i.default)((0,o.default)(le,at),(0,o.default)(ve,at))}),components:O,builtinList:ye}}}(mr)),mr}var Ee=fg();const Lc=I.createContext(null),Va="/",pg="header",Ka={dashboard:[{id:"/team",title:{en:"Access",zh:"访问控制"},role:["owner","admin","member"],section:["dashboard"],link:"",from:"team-tmpl",items:[{id:"member",title:{en:"Members",zh:"成员"},icon:"ant-design:user-outlined",link:`${be.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/members`,from:"team-tmpl"},{id:"passport",title:{en:"Passport",zh:"通行证"},icon:"icon-park-outline:passport",link:`${be.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/passports`,from:"team-tmpl"}]},{id:"/dashboard",title:"Blocklet",role:["owner","admin"],section:["dashboard"],link:"",from:"team-tmpl",items:[{id:"dashboard",title:{en:"Dashboard",zh:"仪表盘"},icon:"ant-design:dashboard-outlined",link:`${be.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,from:"team-tmpl"}]}],userCenter:[{id:"/userCenter/notification",title:{en:"Notifications",zh:"通知"},icon:"ant-design:bell-outlined",link:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/notifications"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/orgs",title:{en:"Organizations",zh:"组织"},icon:"ant-design:team-outlined",link:Ie(be.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:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/nfts"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/settings",title:{en:"Settings",zh:"设置"},icon:"ant-design:setting-outlined",link:Ie(be.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:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/did-spaces"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/user-followers",title:{en:"Following & Followers",zh:"关注 & 粉丝"},icon:"ant-design:user-outlined",link:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/user-followers"),from:"team-tmpl",section:["userCenter"]}]};function fi(e,r){return e.section&&r.section?e.section===r.section&&e.id===r.id:e.id===r.id}const ct=(e,r,n,t,i=!0)=>({id:e,from:"team-tmpl",title:r,icon:n,link:Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,t),visible:i}),hg=(e,r,n)=>({id:e,from:"team-tmpl",title:r,role:["owner","admin","member"],section:["dashboard"],link:"",items:n}),gg=(e,r)=>{const n=Ee.cleanOldNavigationHistory(r);return n.findIndex(i=>i.id==="/team")===-1&&n.unshift(hg("/team",e("navigation.blockletService"),[ct("dashboard",e("navigation.dashboard"),"ant-design:dashboard-outlined","/admin"),ct("did-connect",e("navigation.didConnect"),"tabler:users","/admin/did-connect"),ct("website",e("navigation.website"),"icon-park-twotone:upload-web","/admin/website"),ct("operation",e("navigation.operations"),"grommet-icons:configure","/admin/operations"),ct("integration",e("navigation.integration"),"hugeicons:webhook","/admin/integrations"),ct("developer",e("navigation.developer"),"heroicons:command-line","/admin/developers"),ct("did-spaces",e("navigation.didSpaces"),"icon-park-outline:cloud-storage","/admin/did-spaces"),ct("studio",e("navigation.studio"),"eos-icons:subscriptions-created-outlined","/admin/publish/publish")])),n};function Ya({name:e}){return g.jsx(bp,{label:`Uninstalled: ${e}`,color:"error",size:"small",variant:"outlined",sx:{fontSize:10,height:20}})}function vg({children:e}){const{blocklet:r,actions:n}=Ft(),{t}=Me(),{navigationList:i,components:o,builtinList:a}=Ee.parseNavigation(r,{beforeProcess(w){const P=Qe(w);return["dashboard","userCenter"].forEach(S=>{Object.prototype.hasOwnProperty.call(Ka,S)&&Ka[S].forEach(T=>{(T.shouldDisplay&&typeof T.shouldDisplay=="function"?T.shouldDisplay:()=>!0)(r)&&!P.some(k=>k.id===T.id)&&P.push(T)})}),gg(t,P)}}),s=zt({rawNavigation:Qe(i),activeSection:pg,components:o}),l=I.useMemo(()=>Ee.nestNavigationList(Qe(s.rawNavigation)),[s.rawNavigation]),c=I.useMemo(()=>{const w=Ee.filterNavigation(Qe(s.rawNavigation),o);return Ee.joinLink(w,o)},[o,s.rawNavigation]),u=I.useCallback(w=>{if(!w.id)return"";const P=Ee.flattenNavigation(Ee.joinLink(l,o)),S=P.find(T=>T.id===w.id);if(S?.component){if(!o.some(T=>T.name===S.component))return g.jsx(Ya,{name:S.component})}else if(S.parent){const T=P.find(R=>R.id===S.parent);if(T?.component&&!o.some(R=>R.name===T.component))return g.jsx(Ya,{name:T.component})}return S?.link},[l,o]),f=I.useCallback(w=>{s.activeSection=w},[s]),d=I.useCallback(w=>{const P=[];Ee.deepWalk(w,(T,R)=>{const k={...Et(T,["children","expand"]),parent:R?.id};P.push(k)});const S=Qe(s.rawNavigation).filter(T=>{if(!s.activeSection)return!1;const R=P.find(k=>fi(k,T));return R?!Ee.isMatchSection(R.section,s.activeSection):!0});s.rawNavigation=[...S,...P]},[s]),p=I.useCallback((w=[])=>{const P=Qe(s.rawNavigation).map(S=>{const T=w.find(R=>fi({...R,section:s.activeSection},S));return T?{...S,...T}:S});s.rawNavigation=P},[s]),h=I.useCallback((w,P=Va)=>w.map(T=>{const k=o.find(H=>H.name===T.component)?.link||P,j=T.items||[],{link:M}=T;return{title:T.title,description:T.description,subtitle:u(T),link:M,icon:T.icon,children:h(j,M||Va),section:T.section,visible:T.visible,parent:T.parent,component:T.component,id:T.id,role:T.role,from:T.from,__base:k}}),[o,u]),v=I.useCallback(w=>{p([w])},[p]),m=I.useCallback(w=>{const P=s.rawNavigation.filter(S=>S.id===w||S.parent===w).map(S=>S.id);s.rawNavigation=Qe(s.rawNavigation).filter(S=>!P.includes(S.id))},[s]),y=I.useCallback((w={},P=-1)=>{const S={...w,id:vp.nanoid(),section:s.activeSection,visible:!0},T=[...s.rawNavigation],R=T.filter(k=>k.section===s.activeSection);if(P<0||P>R.length-1)T.push(S);else{const k=R[P],j=T.findIndex(M=>fi(M,k));T.splice(j,0,S)}return s.rawNavigation=T,S},[s]),b=I.useCallback(w=>{const S=Qe(l).filter(T=>Ee.isMatchSection(T.section,w));return h(S)},[l,h]),C=I.useCallback(async w=>{const S=w.map(T=>mp(T,yp)).map(T=>{const R={...T};return R.role&&Array.isArray(R.role)&&(R.role=JSON.stringify(R.role)),R.section&&Array.isArray(R.section)&&(R.section=JSON.stringify(R.section)),R.title&&R.title instanceof Object&&(R.title=JSON.stringify(R.title)),R.description&&R.description instanceof Object&&(R.description=JSON.stringify(R.description)),R.link&&R.link instanceof Object&&(R.link=JSON.stringify(R.link)),R});await n.configNavigations(S)},[n]),D=I.useCallback(async w=>{if(w){const P=a.filter(T=>Ee.isMatchSection(T.section,w)),S=s.rawNavigation.filter(T=>!Ee.isMatchSection(T.section,w));await C(S),s.rawNavigation=[...S,...P]}else await C([]),s.rawNavigation=Qe(a)},[C,s,a]),_=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(Lc.Provider,{value:_,children:e})}function zc(){const e=I.useContext(Lc);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}var Ke={},pi,Ja;function mg(){if(Ja)return pi;Ja=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 Rr=="object"&&Rr&&Rr.Object===Object&&Rr,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,P,S){var T,R,k,j,M,H,E=0,B=!1,G=!1,q=!0;if(typeof w!="function")throw new TypeError(e);P=_(P)||0,b(S)&&(B=!!S.leading,G="maxWait"in S,k=G?p(_(S.maxWait)||0,P):k,q="trailing"in S?!!S.trailing:q);function J(L){var N=T,O=R;return T=R=void 0,E=L,j=w.apply(O,N),j}function ee(L){return E=L,M=setTimeout(V,P),B?J(L):j}function X(L){var N=L-H,O=L-E,U=P-N;return G?h(U,k-O):U}function Z(L){var N=L-H,O=L-E;return H===void 0||N>=P||N<0||G&&O>=k}function V(){var L=v();if(Z(L))return re(L);M=setTimeout(V,X(L))}function re(L){return M=void 0,q&&T?J(L):(T=R=void 0,j)}function ie(){M!==void 0&&clearTimeout(M),E=0,T=H=R=M=void 0}function $(){return M===void 0?j:re(v())}function W(){var L=v(),N=Z(L);if(T=arguments,R=this,H=L,N){if(M===void 0)return ee(H);if(G)return M=setTimeout(V,P),J(H)}return M===void 0&&(M=setTimeout(V,P)),j}return W.cancel=ie,W.flush=$,W}function y(w,P,S){var T=!0,R=!0;if(typeof w!="function")throw new TypeError(e);return b(S)&&(T="leading"in S?!!S.leading:T,R="trailing"in S?!!S.trailing:R),m(w,P,{leading:T,maxWait:P,trailing:R})}function b(w){var P=typeof w;return!!w&&(P=="object"||P=="function")}function C(w){return!!w&&typeof w=="object"}function D(w){return typeof w=="symbol"||C(w)&&d.call(w)==n}function _(w){if(typeof w=="number")return w;if(D(w))return r;if(b(w)){var P=typeof w.valueOf=="function"?w.valueOf():w;w=b(P)?P+"":P}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 pi=y,pi}var br={exports:{}},Dt={exports:{}},bg=Dt.exports,Xa;function yg(){return Xa||(Xa=1,(function(){var e,r,n,t,i,o;typeof performance<"u"&&performance!==null&&performance.now?Dt.exports=function(){return performance.now()}:typeof vr<"u"&&vr!==null&&vr.hrtime?(Dt.exports=function(){return(e()-i)/1e6},r=vr.hrtime,e=function(){var a;return a=r(),a[0]*1e9+a[1]},t=e(),o=vr.uptime()*1e9,i=t-o):Date.now?(Dt.exports=function(){return Date.now()-n},n=Date.now()):(Dt.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(bg)),Dt.exports}var Qa;function xg(){if(Qa)return br.exports;Qa=1;for(var e=yg(),r=typeof window>"u"?Rr: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 br.exports=function(f){return i.call(r,f)},br.exports.cancel=function(){o.apply(r,arguments)},br.exports.polyfill=function(f){f||(f=r),f.requestAnimationFrame=i,f.cancelAnimationFrame=o},br.exports}var sn={},Za;function Sg(){if(Za)return sn;Za=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=e;function e(r){return r.displayName||r.name||(typeof r=="string"&&r.length>0?r:"Unknown")}return sn}var $t={},es;function wg(){if(es)return $t;es=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.noop=e,$t.intBetween=r,$t.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 $t}var ts;function Cg(){if(ts)return Ke;ts=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.createHorizontalStrength=T,Ke.createVerticalStrength=R,Ke.createScrollingComponent=M,Ke.default=H,Ke.defaultVerticalStrength=Ke.defaultHorizontalStrength=void 0;var e=u(cc()),r=c(uc()),n=xp(),t=c(mg()),i=c(xg()),o=c(Sg()),a=wh,s=c(Sp()),l=wg();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 q=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(E,G):{};q.get||q.set?Object.defineProperty(B,G,q):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 q in G)Object.prototype.hasOwnProperty.call(G,q)&&(E[q]=G[q])}return E},d.apply(this,arguments)}function p(E,B){if(E==null)return{};var G=h(E,B),q,J;if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(E);for(J=0;J<ee.length;J++)q=ee[J],!(B.indexOf(q)>=0)&&Object.prototype.propertyIsEnumerable.call(E,q)&&(G[q]=E[q])}return G}function h(E,B){if(E==null)return{};var G={},q=Object.keys(E),J,ee;for(ee=0;ee<q.length;ee++)J=q[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 q=B[G];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(E,q.key,q)}}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&&_(E,B)}function _(E,B){return _=Object.setPrototypeOf||function(q,J){return q.__proto__=J,q},_(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 P(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 T(E){return function(G,q){var J=G.x,ee=G.w,X=G.y,Z=G.h,V=Math.min(ee/2,E),re=q.x>=J&&q.x<=J+ee,ie=re&&q.y>=X&&q.y<=X+Z;if(ie){if(q.x<J+V)return(q.x-J-V)/V;if(q.x>J+ee-V)return-(J+ee-q.x-V)/V}return 0}}function R(E){return function(G,q){var J=G.y,ee=G.h,X=G.x,Z=G.w,V=Math.min(ee/2,E),re=q.y>=J&&q.y<=J+ee,ie=re&&q.x>=X&&q.x<=X+Z;if(ie){if(q.y<J+V)return(q.y-J-V)/V;if(q.y>J+ee-V)return-(J+ee-q.y-V)/V}return 0}}var k=T(S);Ke.defaultHorizontalStrength=k;var j=R(S);Ke.defaultVerticalStrength=j;function M(E){var B=function(G){D(q,G);function q(J,ee){var X;return v(this,q),X=b(this,C(q).call(this,J,ee)),P(w(w(X)),"updateScrolling",(0,t.default)(function(Z){var V=X.container.getBoundingClientRect(),re=V.left,ie=V.top,$=V.width,W=V.height,L={x:re,y:ie,w:$,h:W},N=(0,l.getCoords)(Z),O=X.props,U=O.horizontalStrength,te=O.verticalStrength;X.scaleX=U(L,N),X.scaleY=te(L,N),!X.frame&&(X.scaleX||X.scaleY)&&X.startScrolling()},100,{trailing:!1})),P(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(q,[{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 V(){var re=ee.scaleX,ie=ee.scaleY,$=ee.container,W=ee.props,L=W.strengthMultiplier,N=W.onScrollChange;if(L===0||re+ie===0){ee.stopScrolling();return}if(X+=1,X%2){var O=$.scrollLeft,U=$.scrollTop,te=$.scrollWidth,ae=$.scrollHeight,de=$.clientWidth,pe=$.clientHeight,Ce=re?$.scrollLeft=(0,l.intBetween)(0,te-de,O+re*L):O,ze=ie?$.scrollTop=(0,l.intBetween)(0,ae-pe,U+ie*L):U;N(Ce,ze)}ee.frame=(0,i.default)(V)};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))}}]),q}(e.Component);return P(B,"displayName","Scrolling(".concat((0,o.default)(E),")")),P(B,"propTypes",{dragDropManager:r.default.object.isRequired,onScrollChange:r.default.func,verticalStrength:r.default.func,horizontalStrength:r.default.func,strengthMultiplier:r.default.number}),P(B,"defaultProps",{onScrollChange:l.noop,verticalStrength:j,horizontalStrength:k,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(q){var J=q.dragDropManager;return J===void 0?null:e.default.createElement(B,d({},G,{dragDropManager:J}))})}}return Ke}var bn=Cg();const Ig=$n(bn);var Rg=Ch();const rs=$n(Rg);function jc(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Fc(e){function r(n){var t=this.constructor.getDerivedStateFromProps(e,n);return t??null}this.setState(r.bind(this))}function Bc(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}}jc.__suppressDeprecationWarning=!0;Fc.__suppressDeprecationWarning=!0;Bc.__suppressDeprecationWarning=!0;function Jr(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
3
 
4
4
  `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
5
5
  `+n:"")+(t!==null?`
@@ -7,10 +7,10 @@ import{c0 as eh,b$ as th,r as I,c1 as rh,eT as nh,j as g,b8 as ot,c3 as nt,c4 as
7
7
  `+i:"")+`
8
8
 
9
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=qc,r.componentWillReceiveProps=Vc),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=Kc;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 Yc(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=Yc(e[r]))&&(t&&(t+=" "),t+=n);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function Je(){for(var e,r,n=0,t="";n<arguments.length;)(e=arguments[n++])&&(r=Yc(e))&&(t&&(t+=" "),t+=r);return t}function ss(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 Xt(e,r){if(e==null)return{};var n,t,i=nr(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 Lg=function(){function e(r){var n=r.cellCount,t=r.cellSizeGetter,i=r.estimatedCellSize;we(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 Se(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}(),zg=15e5,jg=16777100,Fg=function(){return typeof window<"u"},Bg=function(){return!!window.chrome},$g=function(){return Fg()&&Bg()?jg:zg},ls=function(){function e(r){var n=r.maxScrollSize,t=n===void 0?$g():n,i=Xt(r,["maxScrollSize"]);we(this,e),A(this,"_cellSizeAndPositionManager",void 0),A(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Lg(i),this._maxScrollSize=t}return Se(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 ir(){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 ln=-1,tt=1;function Gg(e){var r=e.cellCount,n=e.overscanCellsCount,t=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return t===tt?{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 cs(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,h=e.updateScrollIndexCallback,p=n.getCellCount(),v=u>=0&&u<p,m=f!==s||d||!i||typeof r=="number"&&r!==i;v&&(m||c!==o||u!==a)?h(u):!v&&p>0&&(f<s||p<t)&&l>n.getTotalSize()-f&&h(p-1)}function Wg(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,h=e.rowStopIndex,p=e.styleCache,v=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,y=e.visibleRowIndices,b=[],C=t.areOffsetsAdjusted()||f.areOffsetsAdjusted(),D=!l&&!C,P=d;P<=h;P++)for(var w=f.getSizeAndPositionOfCell(P),_=i;_<=o;_++){var S=t.getSizeAndPositionOfCell(_),T=_>=m.start&&_<=m.stop&&P>=y.start&&P<=y.stop,R="".concat(P,"-").concat(_),k=void 0;D&&p[R]?k=p[R]:a&&!a.has(P,_)?k={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(k={height:w.size,left:S.offset+s,position:"absolute",top:w.offset+v,width:S.size},p[R]=k);var j={columnIndex:_,isScrolling:l,isVisible:T,key:R,parent:u,rowIndex:P,style:k},M=void 0;(c||l)&&!s&&!v?(r[R]||(r[R]=n(j)),M=r[R]):M=n(j),!(M==null||M===!1)&&b.push(M)}return b}const Hg=!!(typeof window<"u"&&window.document&&window.document.createElement);var cn;function Zi(e){if((!cn&&cn!==0||e)&&Hg){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),cn=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return cn}var Ne;typeof window<"u"?Ne=window:typeof self<"u"?Ne=self:Ne={};var Ug=Ne.requestAnimationFrame||Ne.webkitRequestAnimationFrame||Ne.mozRequestAnimationFrame||Ne.oRequestAnimationFrame||Ne.msRequestAnimationFrame||function(e){return Ne.setTimeout(e,1e3/60)},qg=Ne.cancelAnimationFrame||Ne.webkitCancelAnimationFrame||Ne.mozCancelAnimationFrame||Ne.oCancelAnimationFrame||Ne.msCancelAnimationFrame||function(e){Ne.clearTimeout(e)},us=Ug,Vg=qg,or=function(r){return Vg(r.id)},Lo=function(r,n){var t;Promise.resolve().then(function(){t=Date.now()});var i=function a(){Date.now()-t>=n?r.call():o.id=us(a)},o={id:us(i)};return o},ds,fs;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 Rt(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 Kg=150,pi={OBSERVED:"observed",REQUESTED:"requested"},Yg=function(){return null},dt=(fs=ds=function(e){Ge(r,e);function r(n){var t;we(this,r),t=We(this,He(r).call(this,n)),A(F(t),"_onGridRenderedMemoizer",ir()),A(F(t),"_onScrollMemoizer",ir(!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 ls({cellCount:n.columnCount,cellSizeGetter:function(s){return r._wrapSizeGetter(n.columnWidth)(s)},estimatedCellSize:r._getEstimatedColumnSize(n)}),o=new ls({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:tt,scrollDirectionVertical:tt,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 Se(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=Rt({},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,h=this.state.instanceProps,p=h.scrollbarSize,v=h.rowSizeAndPositionManager.getTotalSize(),m=h.columnSizeAndPositionManager.getTotalSize(),y=Math.min(Math.max(0,m-d+p),o),b=Math.min(Math.max(0,v-f+p),s);if(this.state.scrollLeft!==y||this.state.scrollTop!==b){var C=y!==this.state.scrollLeft?y>this.state.scrollLeft?tt:ln:this.state.scrollDirectionHorizontal,D=b!==this.state.scrollTop?b>this.state.scrollTop?tt:ln:this.state.scrollDirectionVertical,P={isScrolling:!0,scrollDirectionHorizontal:C,scrollDirectionVertical:D,scrollPositionChangeReason:pi.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===tt?o<=c:o>=c),this._recomputeScrollTopFlag=u>=0&&(this.state.scrollDirectionVertical===tt?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(Rt({},s,{scrollToColumn:i})),o!==void 0&&this._updateScrollTopForScrollToRow(Rt({},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(p){var v=Rt({},p,{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 h=o>0&&u>0;s>=0&&h&&this._updateScrollLeftForScrollToColumn(),c>=0&&h&&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,h=a.scrollToColumn,p=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===pi.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)):cs({cellSizeAndPositionManager:D.columnSizeAndPositionManager,previousCellsCount:t.columnCount,previousCellSize:t.columnWidth,previousScrollToAlignment:t.scrollToAlignment,previousScrollToIndex:t.scrollToColumn,previousSize:t.width,scrollOffset:y,scrollToAlignment:d,scrollToIndex:h,size:v,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):cs({cellSizeAndPositionManager:D.rowSizeAndPositionManager,previousCellsCount:t.rowCount,previousCellSize:t.rowHeight,previousScrollToAlignment:t.scrollToAlignment,previousScrollToIndex:t.scrollToRow,previousSize:t.height,scrollOffset:C,scrollToAlignment:d,scrollToIndex:p,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&&or(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,h=t.noContentRenderer,p=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(),T=S>f?C.scrollbarSize:0,R=_>y?C.scrollbarSize:0;(R!==this._horizontalScrollBarSize||T!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=T,this._scrollbarPresenceChanged=!0),w.overflowX=_+T<=y?"hidden":"auto",w.overflowY=S+R<=f?"hidden":"auto";var k=this._childrenToDisplay,j=k.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:Je("ReactVirtualized__Grid",s),id:d,onScroll:this._onScroll,role:p,style:Rt({},w,{},v),tabIndex:m}),k.length>0&&I.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:Rt({width:i?"auto":_,height:S,maxWidth:_,maxHeight:S,overflow:"hidden",pointerEvents:P?"none":"",position:"relative"},u)},k),j&&h())}},{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,h=t.rowCount,p=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&&p>0){var w=b.columnSizeAndPositionManager.getVisibleCellRange({containerSize:p,offset:D}),_=b.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:C}),S=b.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:p,offset:D}),T=b.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:C});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var R=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}),k=f({direction:"vertical",cellCount:h,overscanCellsCount:d,scrollDirection:y,startIndex:typeof _.start=="number"?_.start:0,stopIndex:typeof _.stop=="number"?_.stop:-1}),j=R.overscanStartIndex,M=R.overscanStopIndex,H=k.overscanStartIndex,E=k.overscanStopIndex;if(l){if(!l.hasFixedHeight()){for(var B=H;B<=E;B++)if(!l.has(B,0)){j=0,M=s-1;break}}if(!l.hasFixedWidth()){for(var $=j;$<=M;$++)if(!l.has(0,$)){H=0,E=h-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:j,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:T,visibleColumnIndices:w,visibleRowIndices:_}),this._columnStartIndex=j,this._columnStopIndex=M,this._rowStartIndex=H,this._rowStopIndex=E}}},{key:"_debounceScrollEnded",value:function(){var t=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&or(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Lo(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,h=i.props,p=h.height,v=h.onScroll,m=h.width;v({clientHeight:p,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 ss({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)}}),ss({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,Rt({},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:pi.REQUESTED};return typeof o=="number"&&o>=0&&(s.scrollDirectionHorizontal=o>i.scrollLeft?tt:ln,s.scrollLeft=o),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>i.scrollTop?tt:ln,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,h=l<0?d:Math.min(d,l),p=f.rowSizeAndPositionManager.getTotalSize(),v=f.scrollbarSizeMeasured&&p>a?f.scrollbarSize:0;return f.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-v,currentOffset:u,targetIndex:h})}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,h=l<0?d:Math.min(d,l),p=f.columnSizeAndPositionManager.getTotalSize(),v=f.scrollbarSizeMeasured&&p>c?f.scrollbarSize:0;return f.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:o-v,currentOffset:u,targetIndex:h})}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(ds,"propTypes",null),fs);A(dt,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:Wg,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Zi,noContentRenderer:Yg,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:Gg,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:Kg,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Jr(dt);var Jg=1;function Jc(e){var r=e.cellCount,n=e.overscanCellsCount,t=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n=Math.max(1,n),t===Jg?{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 ps,gs;function vs(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 Xg(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?vs(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Xc=(gs=ps=function(e){Ge(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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 h=t._getScrollState(),p=h.scrollToColumn,v=h.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!==p||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 Se(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?Xg({},i,{scrollToColumn:t.scrollToColumn,scrollToRow:t.scrollToRow,instanceProps:{prevScrollToColumn:t.scrollToColumn,prevScrollToRow:t.scrollToRow}}):{}}}]),r}(I.PureComponent),A(ps,"propTypes",null),gs);A(Xc,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0});Jr(Xc);function Qc(e,r){var n;typeof r<"u"?n=r:typeof window<"u"?n=window:typeof self<"u"?n=self:n=kh;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 T=S.__resizeTriggers__,R=T.firstElementChild,k=T.lastElementChild,j=R.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,j.style.width=R.offsetWidth+1+"px",j.style.height=R.offsetHeight+1+"px",R.scrollLeft=R.scrollWidth,R.scrollTop=R.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 T=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i(function(){s(T)&&(T.__resizeLast__.width=T.offsetWidth,T.__resizeLast__.height=T.offsetHeight,T.__resizeListeners__.forEach(function(R){R.call(T,S)}))})}},c=!1,u="",f="animationstart",d="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{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){p=d[m],u="-"+p.toLowerCase()+"-",f=h[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 T=(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%; }',R=S.head||S.getElementsByTagName("head")[0],k=S.createElement("style");k.id="detectElementResize",k.type="text/css",e!=null&&k.setAttribute("nonce",e),k.styleSheet?k.styleSheet.cssText=T:k.appendChild(S.createTextNode(T)),R.appendChild(k)}},P=function(S,T){if(t)S.attachEvent("onresize",T);else{if(!S.__resizeTriggers__){var R=S.ownerDocument,k=n.getComputedStyle(S);k&&k.position=="static"&&(S.style.position="relative"),D(R),S.__resizeLast__={},S.__resizeListeners__=[],(S.__resizeTriggers__=R.createElement("div")).className="resize-triggers";var j='<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 j}});S.__resizeTriggers__.innerHTML=M.createHTML("")}else S.__resizeTriggers__.innerHTML=j;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(T)}},w=function(S,T){if(t)S.detachEvent("onresize",T);else if(S.__resizeListeners__.splice(S.__resizeListeners__.indexOf(T),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 ms,bs;function ys(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?ys(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Zc=(bs=ms=function(e){Ge(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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,h=t._window||window,p=h.getComputedStyle(t._parentNode)||{},v=parseInt(p.paddingLeft,10)||0,m=parseInt(p.paddingRight,10)||0,y=parseInt(p.paddingTop,10)||0,b=parseInt(p.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 Se(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"},h={};return a||(d.height=0,h.height=u),s||(d.width=0,h.width=f),I.createElement("div",{className:o,ref:this._setRef,style:Qg({},d,{},l)},i(h))}}]),r}(I.Component),A(ms,"propTypes",null),bs);A(Zc,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var xs,Ss,Zg=(Ss=xs=function(e){Ge(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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,h=d===void 0?t.props.index||0:d,p=t._getCellMeasurements(),v=p.height,m=p.width;(v!==l.getHeight(h,u)||m!==l.getWidth(h,u))&&(l.set(h,u,m,v),f&&typeof f.recomputeGridSize=="function"&&f.recomputeGridSize({columnIndex:u,rowIndex:h}))}),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 Se(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||Yr.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(xs,"propTypes",null),Ss);A(Zg,"__internalCellMeasurerFlag",!1);function ws(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 ev(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ws(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tv=150,Wt={OBSERVED:"observed",REQUESTED:"requested"},Kn=function(e){Ge(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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",ir()),A(F(t),"_onScrollMemoizer",ir(!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,h=t.state,p=h.scrollLeft,v=h.scrollTop;if(f>=0){var m=l.getScrollPositionForCell({align:u,cellIndex:f,height:c,scrollLeft:p,scrollTop:v,width:d});(m.scrollLeft!==p||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,h=t._scrollbarSize,p=c.getTotalSize(),v=p.height,m=p.width,y=Math.max(0,Math.min(m-d+h,s.target.scrollLeft)),b=Math.max(0,Math.min(v-u+h,s.target.scrollTop));if(t.state.scrollLeft!==y||t.state.scrollTop!==b){var C=s.cancelable?Wt.OBSERVED:Wt.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=Zi(),t._scrollbarSize===void 0?(t._scrollbarSizeMeasured=!1,t._scrollbarSize=0):t._scrollbarSizeMeasured=!0,t}return Se(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=Zi(),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,h=u.scrollTop;d===Wt.REQUESTED&&(f>=0&&f!==i.scrollLeft&&f!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=f),h>=0&&h!==i.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),(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,h=t.verticalOverscanSize,p=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-h),S=Math.min(P,y+p+c),T=Math.min(D,b+l+h),R=l>0&&p>0?a.cellRenderers({height:T-_,isScrolling:m,width:S-w,x:w,y:_}):[],k={boxSizing:"border-box",direction:"ltr",height:i?"auto":l,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},j=D>l?this._scrollbarSize:0,M=P>p?this._scrollbarSize:0;return k.overflowX=P+j<=p?"hidden":"auto",k.overflowY=D+M<=l?"hidden":"auto",I.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Je("ReactVirtualized__Collection",s),id:u,onScroll:this._onScroll,role:"grid",style:ev({},k,{},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}},R),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})},tv)}},{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,h=i.props,p=h.height,v=h.onScroll,m=h.width;v({clientHeight:p,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:Wt.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:Wt.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:Wt.REQUESTED}:null}}]),r}(I.PureComponent);A(Kn,"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});Kn.propTypes={};Jr(Kn);var rv=function(){function e(r){var n=r.height,t=r.width,i=r.x,o=r.y;we(this,e),this.height=n,this.width=t,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return Se(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}(),nv=100,iv=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nv;we(this,e),this._sectionSize=r,this._cellMetadata=[],this._sections={}}return Se(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 h=c;h<=u;h++){var p="".concat(d,".").concat(h);this._sections[p]||(this._sections[p]=new rv({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:h*this._sectionSize})),f.push(this._sections[p])}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 ov(e){for(var r=e.cellCount,n=e.cellSizeAndPositionGetter,t=e.sectionSize,i=[],o=new iv(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 Cs(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 eu=function(e){Ge(r,e);function r(n,t){var i;return we(this,r),i=We(this,He(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 Se(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(Kn,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=ov({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=Cs({align:i,cellOffset:f.x,cellSize:f.width,containerSize:c,currentOffset:s}),l=Cs({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(p){var v=p.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(eu,"defaultProps",{"aria-label":"grid",cellGroupRenderer:av});eu.propTypes={};function av(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 sv(e){if(Array.isArray(e))return jp(e)}function lv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cv(){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 tu(e){return sv(e)||lv(e)||zc(e)||cv()}var ru=function(e){Ge(r,e);function r(n,t){var i;return we(this,r),i=We(this,He(r).call(this,n,t)),i._loadMoreRowsMemoizer=ir(),i._onRowsRendered=i._onRowsRendered.bind(F(i)),i._registerChild=i._registerChild.bind(F(i)),i}return Se(r,[{key:"resetLoadMoreRowsCache",value:function(t){this._loadMoreRowsMemoizer=ir(),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(){uv({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:a.startIndex,stopIndex:a.stopIndex})&&i._registeredChild&&fv(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=dv({isRowLoaded:l,minimumBatchSize:c,rowCount:u,startIndex:Math.max(0,t-f),stopIndex:Math.min(u-1,i+f)}),h=(o=[]).concat.apply(o,tu(d.map(function(p){var v=p.startIndex,m=p.stopIndex;return[v,m]})));this._loadMoreRowsMemoizer({callback:function(){a._loadUnloadedRanges(d)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(t){this._registeredChild=t}}]),r}(I.PureComponent);A(ru,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15});ru.propTypes={};function uv(e){var r=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,t=e.startIndex,i=e.stopIndex;return!(t>n||i<r)}function dv(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 h=a[0];h.stopIndex-h.startIndex+1<n&&h.startIndex>0;){var p=h.startIndex-1;if(!r({index:p}))h.startIndex=p;else break}return a}function fv(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 Is,Rs,nu=(Rs=Is=function(e){Ge(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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,h=s.key,p=t.props.rowRenderer,v=Object.getOwnPropertyDescriptor(u,"width");return v&&v.writable&&(u.width="100%"),p({index:c,style:u,isScrolling:f,isVisible:d,key:h,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 Se(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=Je("ReactVirtualized__List",i);return I.createElement(dt,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(Is,"propTypes",null),Rs);A(nu,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Jc,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function hv(e){if(Array.isArray(e))return e}function pv(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 gv(){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 vv(e,r){return hv(e)||pv(e,r)||zc(e,r)||gv()}function mv(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 bv(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 yv(e,r,n,t,i){return typeof n=="function"?bv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):mv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function xv(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 Sv(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 wv(e,r,n,t,i){return typeof n=="function"?Sv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):xv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function Cv(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 Iv(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 Rv(e,r,n,t,i){return typeof n=="function"?Iv(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 Tv(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 Dv(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 _v(e,r,n,t,i){return typeof n=="function"?Dv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):Tv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function Pv(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 kv(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 Ov(e,r,n,t,i){return typeof n=="function"?kv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):Pv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}const kn={ge:yv,gt:wv,lt:Rv,le:_v,eq:Ov};var Qt=0,_t=1,yn=2;function zo(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 Xr=zo.prototype;function gi(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 iu(e,r){var n=Br(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 Ts(e,r){var n=e.intervals([]);n.push(r),iu(e,n)}function Ds(e,r){var n=e.intervals([]),t=n.indexOf(r);return t<0?Qt:(n.splice(t,1),iu(e,n),_t)}Xr.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};Xr.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)?Ts(this,e):this.left.insert(e):this.left=Br([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(r+1)?Ts(this,e):this.right.insert(e):this.right=Br([e]);else{var n=kn.ge(this.leftPoints,e,jo),t=kn.ge(this.rightPoints,e,Fo);this.leftPoints.splice(n,0,e),this.rightPoints.splice(t,0,e)}};Xr.remove=function(e){var r=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return Qt;var n=this.right?this.right.count:0;if(4*n>3*(r-1))return Ds(this,e);var t=this.left.remove(e);return t===yn?(this.left=null,this.count-=1,_t):(t===_t&&(this.count-=1),t)}else if(e[0]>this.mid){if(!this.right)return Qt;var i=this.left?this.left.count:0;if(4*i>3*(r-1))return Ds(this,e);var t=this.right.remove(e);return t===yn?(this.right=null,this.count-=1,_t):(t===_t&&(this.count-=1),t)}else{if(this.count===1)return this.leftPoints[0]===e?yn:Qt;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}gi(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?gi(this,this.left):gi(this,this.right);return _t}for(var s=kn.ge(this.leftPoints,e,jo);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=kn.ge(this.rightPoints,e,Fo);t<this.rightPoints.length&&this.rightPoints[t][1]===e[1];++t)if(this.rightPoints[t]===e)return this.rightPoints.splice(t,1),_t}return Qt}};function ou(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 au(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 su(e,r){for(var n=0;n<e.length;++n){var t=r(e[n]);if(t)return t}}Xr.queryPoint=function(e,r){if(e<this.mid){if(this.left){var n=this.left.queryPoint(e,r);if(n)return n}return ou(this.leftPoints,e,r)}else if(e>this.mid){if(this.right){var n=this.right.queryPoint(e,r);if(n)return n}return au(this.rightPoints,e,r)}else return su(this.leftPoints,r)};Xr.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?ou(this.leftPoints,r,n):e>this.mid?au(this.rightPoints,e,n):su(this.leftPoints,n)};function Ev(e,r){return e-r}function jo(e,r){var n=e[0]-r[0];return n||e[1]-r[1]}function Fo(e,r){var n=e[1]-r[1];return n||e[0]-r[0]}function Br(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(Ev);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(jo),c.sort(Fo),new zo(t,Br(i),Br(o),l,c)}function lu(e){this.root=e}var ur=lu.prototype;ur.insert=function(e){this.root?this.root.insert(e):this.root=new zo(e[0],null,null,[e],[e])};ur.remove=function(e){if(this.root){var r=this.root.remove(e);return r===yn&&(this.root=null),r!==Qt}return!1};ur.queryPoint=function(e,r){if(this.root)return this.root.queryPoint(e,r)};ur.queryInterval=function(e,r,n){if(e<=r&&this.root)return this.root.queryInterval(e,r,n)};Object.defineProperty(ur,"count",{get:function(){return this.root?this.root.count:0}});Object.defineProperty(ur,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});function Nv(e){return new lu(null)}var vi=function(){function e(){we(this,e),A(this,"_columnSizeMap",{}),A(this,"_intervalTree",Nv()),A(this,"_leftMap",{})}return Se(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=vv(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}(),_s,Ps;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 Mv(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 Av={},Lv=150,cu=(Ps=_s=function(e){Ge(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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 vi),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 Se(r,[{key:"clearCellPositions",value:function(){this._positionCache=new vi,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 vi,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&&or(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,h=i.overscanByPixels,p=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,T=this._positionCache.count,R=0,k;if(this._positionCache.range(Math.max(0,P-h),u+h*2,function(H,E,B){var $;typeof k>"u"?(R=H,k=H):(R=Math.min(R,H),k=Math.max(k,H)),w.push(l({index:H,isScrolling:D,key:d(H),parent:t,style:($={height:s.getHeight(H)},A($,b==="ltr"?"left":"right",E),A($,"position","absolute"),A($,"top",B),A($,"width",s.getWidth(H)),$)}))}),S<P+u+h&&T<a)for(var j=Math.min(a-T,Math.ceil((P+u+h-S)/s.defaultHeight*y/s.defaultWidth)),M=T;M<T+j;M++)k=M,w.push(l({index:M,isScrolling:D,key:d(M),parent:this,style:{width:s.getWidth(M)}}));return this._startIndex=R,this._stopIndex=k,I.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Je("ReactVirtualized__Masonry",c),id:f,onScroll:this._onScroll,role:p,style:Mv({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&&or(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Lo(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(_s,"propTypes",null),Ps);A(cu,"defaultProps",{autoHeight:!1,keyMapper:zv,onCellsRendered:Os,onScroll:Os,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:Lv,style:Av,tabIndex:0,rowDirection:"ltr"});function zv(e){return e}function Os(){}Jr(cu);var mi=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};we(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 Se(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 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 Pe(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 Ns=20,Bo=function(e){Ge(r,e);function r(n,t){var i;we(this,r),i=We(this,He(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=Xt(l,["rowIndex"]),f=i.props,d=f.cellRenderer,h=f.fixedRowCount,p=f.rowCount;return c===p-h?I.createElement("div",{key:u.key,style:Pe({},u.style,{height:Ns})}):d(Pe({},u,{parent:F(i),rowIndex:c+h}))}),A(F(i),"_cellRendererBottomRightGrid",function(l){var c=l.columnIndex,u=l.rowIndex,f=Xt(l,["columnIndex","rowIndex"]),d=i.props,h=d.cellRenderer,p=d.fixedColumnCount,v=d.fixedRowCount;return h(Pe({},f,{columnIndex:c+p,parent:F(i),rowIndex:u+v}))}),A(F(i),"_cellRendererTopRightGrid",function(l){var c=l.columnIndex,u=Xt(l,["columnIndex"]),f=i.props,d=f.cellRenderer,h=f.columnCount,p=f.fixedColumnCount;return c===h-p?I.createElement("div",{key:u.key,style:Pe({},u.style,{width:Ns})}):d(Pe({},u,{columnIndex:c+p,parent:F(i)}))}),A(F(i),"_columnWidthRightGrid",function(l){var c=l.index,u=i.props,f=u.columnCount,d=u.fixedColumnCount,h=u.columnWidth,p=i.state,v=p.scrollbarSize,m=p.showHorizontalScrollbar;return m&&c===f-d?v:typeof h=="function"?h({index:c+d}):h}),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,h=d.showHorizontalScrollbar,p=d.showVerticalScrollbar;if(c!==h||f!==p){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,h=u.rowHeight,p=i.state,v=p.scrollbarSize,m=p.showVerticalScrollbar;return m&&c===d-f?v:typeof h=="function"?h({index:c+f}):h}),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 mi({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:s}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new mi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:s}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new mi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return Se(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=Xt(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(Pe({},l,{onScroll:i,scrollLeft:u}))),I.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Pe({},l,{onScroll:i,scrollTop:f})),this._renderBottomRightGrid(Pe({},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,h=i.styleBottomLeftGrid,p=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=Pe({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||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Pe({left:0,overflowX:"hidden",overflowY:a?"auto":"hidden",position:"absolute"},h)),(t||C||p!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Pe({left:this._getLeftGridWidth(this.props),position:"absolute"},p)),(t||v!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Pe({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},v)),(t||C||m!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Pe({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=h,this._lastRenderedStyleBottomRightGrid=p,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),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,p=l?d+h:d,v=I.createElement(dt,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:p}));return l?I.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Pe({},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(dt,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(dt,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 h=f?1:0,p=this._getTopGridHeight(t),v=this._getRightGridWidth(t),m=f?d:0,y=p,b=this._topRightGridStyle;c&&(y=p+m,b=Pe({},this._topRightGridStyle,{left:0}));var C=I.createElement(dt,K({},t,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,i-a)+h,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:Pe({},this._topRightGridStyle,{height:p,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(Bo,"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});Bo.propTypes={};Jr(Bo);function jv(e){var r=e.dataKey,n=e.rowData;return typeof n.get=="function"?n.get(r):n[r]}function Fv(e){var r=e.cellData;return r==null?"":String(r)}function uu(e){var r=e.className,n=e.columns,t=e.style;return I.createElement("div",{className:r,role:"row",style:t},n)}uu.propTypes=null;var ft={ASC:"ASC",DESC:"DESC"};function du(e){var r=e.sortDirection,n=Je("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":r===ft.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":r===ft.DESC});return I.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},r===ft.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"}))}du.propTypes={};function fu(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(du,{key:"SortIndicator",sortDirection:i})),a}fu.propTypes=null;function hu(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(h){return o({event:h,index:t,rowData:u})}),a&&(d.onDoubleClick=function(h){return a({event:h,index:t,rowData:u})}),s&&(d.onMouseOut=function(h){return s({event:h,index:t,rowData:u})}),l&&(d.onMouseOver=function(h){return l({event:h,index:t,rowData:u})}),c&&(d.onContextMenu=function(h){return c({event:h,index:t,rowData:u})})),I.createElement("div",K({},d,{className:r,key:i,role:"row",style:f}),n)}hu.propTypes=null;var pu=function(e){Ge(r,e);function r(){return we(this,r),We(this,He(r).apply(this,arguments))}return r}(I.Component);A(pu,"defaultProps",{cellDataGetter:jv,cellRenderer:Fv,defaultSortDirection:ft.ASC,flexGrow:0,flexShrink:1,headerRenderer:fu,style:{}});pu.propTypes={};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 Ht(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 gu=function(e){Ge(r,e);function r(n){var t;return we(this,r),t=We(this,He(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 Se(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=Yr.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,h=i.id,p=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,T){var R=t._getFlexStyleForColumn(S,S.props.style);t._cachedColumnStyles[T]=Ht({overflow:"hidden"},R)}),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:Je("ReactVirtualized__Table",a),id:h,role:"grid",style:b},!s&&f({className:Je("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:Ht({height:u,overflow:"hidden",paddingRight:D,width:C},_)}),I.createElement(dt,K({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Je("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:C,columnCount:1,height:P,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:D,scrollToRow:y,style:Ht({},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,h=f.cellRenderer,p=f.className,v=f.columnData,m=f.dataKey,y=f.id,b=d({columnData:v,dataKey:m,rowData:l}),C=h({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:Je("ReactVirtualized__Table__rowColumn",p),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,h=i.props,p=h.columnData,v=h.dataKey,m=h.defaultSortDirection,y=h.disableSort,b=h.headerRenderer,C=h.id,D=h.label,P=!y&&u,w=Je("ReactVirtualized__Table__headerColumn",s,i.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:P}),_=this._getFlexStyleForColumn(i,Ht({},l,{},i.props.headerStyle)),S=b({columnData:p,dataKey:v,disableSort:y,label:D,sortBy:f,sortDirection:d}),T,R,k,j,M;if(P||c){var H=f!==v,E=H?m:d===ft.DESC?ft.ASC:ft.DESC,B=function(J){P&&u({defaultSortDirection:m,event:J,sortBy:v,sortDirection:E}),c&&c({columnData:p,dataKey:v,event:J})},$=function(J){(J.key==="Enter"||J.key===" ")&&B(J)};M=i.props["aria-label"]||D||v,j="none",k=0,T=B,R=$}return f===v&&(j=d===ft.ASC?"ascending":"descending"),I.createElement("div",{"aria-label":M,"aria-sort":j,className:w,id:C,key:"Header-Col"+o,onClick:T,onKeyDown:R,role:"columnheader",style:_,tabIndex:k},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,h=u.onRowDoubleClick,p=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}),T=I.Children.toArray(f).map(function(j,M){return i._createColumn({column:j,columnIndex:M,isScrolling:a,parent:l,rowData:S,rowIndex:o,scrollbarWidth:P})}),R=Je("ReactVirtualized__Table__row",w),k=Ht({},c,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:P},_);return C({className:R,columns:T,index:o,isScrolling:a,key:s,onRowClick:d,onRowDoubleClick:h,onRowRightClick:p,onRowMouseOver:v,onRowMouseOut:m,rowData:S,style:k})}},{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=Ht({},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(gu,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Jc,overscanRowCount:10,rowRenderer:hu,headerRowRenderer:uu,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});gu.propTypes={};var pt=[],Er=null,Nt=null;function vu(){Nt&&(Nt=null,document.body&&Er!=null&&(document.body.style.pointerEvents=Er),Er=null)}function Bv(){vu(),pt.forEach(function(e){return e.__resetIsScrolling()})}function $v(){Nt&&or(Nt);var e=0;pt.forEach(function(r){e=Math.max(e,r.props.scrollingResetTimeInterval)}),Nt=Lo(Bv,e)}function mu(e){e.currentTarget===window&&Er==null&&document.body&&(Er=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),$v(),pt.forEach(function(r){r.props.scrollElement===e.currentTarget&&r.__handleWindowScrollEvent()})}function As(e,r){pt.some(function(n){return n.props.scrollElement===r})||r.addEventListener("scroll",mu),pt.push(e)}function Ls(e,r){pt=pt.filter(function(n){return n!==e}),pt.length||(r.removeEventListener("scroll",mu),Nt&&(or(Nt),vu()))}var $o=function(r){return r===window},Tr=function(r){return r.getBoundingClientRect()};function zs(e,r){if(e)if($o(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 Tr(e);else return{height:r.serverHeight,width:r.serverWidth}}function Gv(e,r){if($o(r)&&document.documentElement){var n=document.documentElement,t=Tr(e),i=Tr(n);return{top:t.top-i.top,left:t.left-i.left}}else{var o=bu(r),a=Tr(e),s=Tr(r);return{top:a.top+o.top-s.top,left:a.left+o.left-s.left}}}function bu(e){return $o(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 js,Fs;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 Wv(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Bs(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hv=150,yu=function(){return typeof window<"u"?window:void 0},Uv=(Fs=js=function(e){Ge(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(r)).call.apply(n,[this].concat(o))),A(F(t),"_window",yu()),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",Wv({},zs(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=bu(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 Se(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||Yr.findDOMNode(this);if(l instanceof Element&&t){var c=Gv(l,t);this._positionFromTop=c.top,this._positionFromLeft=c.left}var u=zs(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&&(As(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),Ls(this,a),As(this,o),this._unregisterResizeListener(a),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var t=this.props.scrollElement;t&&(Ls(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(js,"propTypes",null),Fs);A(Uv,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:Hv,scrollElement:yu(),serverHeight:0,serverWidth:0});function tr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tr=function(r){return typeof r}:tr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tr(e)}function Qr(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function $s(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 Zr(e,r,n){return r&&$s(e.prototype,r),n&&$s(e,n),e}function qv(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function gt(){return gt=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},gt.apply(this,arguments)}function Gs(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 ue(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Gs(Object(n),!0).forEach(function(t){qv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yn(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&&eo(e,r)}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},et(e)}function eo(e,r){return eo=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},eo(e,r)}function Vv(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 Go(e,r){if(e==null)return{};var n=Vv(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 rt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jn(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:rt(e)}function ge(e){return Kv(e)||Yv(e)||Jv()}function Kv(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 Yv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Jv(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function xu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Su(e){function r(n){var t=this.constructor.getDerivedStateFromProps(e,n);return t??null}this.setState(r.bind(this))}function wu(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}}xu.__suppressDeprecationWarning=!0;Su.__suppressDeprecationWarning=!0;wu.__suppressDeprecationWarning=!0;function Xv(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.
10
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(r.componentWillMount=jc,r.componentWillReceiveProps=Fc),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=Bc;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 Gc(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=Gc(e[r]))&&(t&&(t+=" "),t+=n);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function Je(){for(var e,r,n=0,t="";n<arguments.length;)(e=arguments[n++])&&(r=Gc(e))&&(t&&(t+=" "),t+=r);return t}function ns(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 Xt(e,r){if(e==null)return{};var n,t,i=nr(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 Tg=function(){function e(r){var n=r.cellCount,t=r.cellSizeGetter,i=r.estimatedCellSize;we(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 Se(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}(),Dg=15e5,Pg=16777100,_g=function(){return typeof window<"u"},kg=function(){return!!window.chrome},Og=function(){return _g()&&kg()?Pg:Dg},is=function(){function e(r){var n=r.maxScrollSize,t=n===void 0?Og():n,i=Xt(r,["maxScrollSize"]);we(this,e),A(this,"_cellSizeAndPositionManager",void 0),A(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Tg(i),this._maxScrollSize=t}return Se(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 ir(){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 ln=-1,tt=1;function Eg(e){var r=e.cellCount,n=e.overscanCellsCount,t=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return t===tt?{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 os(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 Ng(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,_=d;_<=p;_++)for(var w=f.getSizeAndPositionOfCell(_),P=i;P<=o;P++){var S=t.getSizeAndPositionOfCell(P),T=P>=m.start&&P<=m.stop&&_>=y.start&&_<=y.stop,R="".concat(_,"-").concat(P),k=void 0;D&&h[R]?k=h[R]:a&&!a.has(_,P)?k={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(k={height:w.size,left:S.offset+s,position:"absolute",top:w.offset+v,width:S.size},h[R]=k);var j={columnIndex:P,isScrolling:l,isVisible:T,key:R,parent:u,rowIndex:_,style:k},M=void 0;(c||l)&&!s&&!v?(r[R]||(r[R]=n(j)),M=r[R]):M=n(j),!(M==null||M===!1)&&b.push(M)}return b}const Mg=!!(typeof window<"u"&&window.document&&window.document.createElement);var cn;function Yi(e){if((!cn&&cn!==0||e)&&Mg){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),cn=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return cn}var Ne;typeof window<"u"?Ne=window:typeof self<"u"?Ne=self:Ne={};var Ag=Ne.requestAnimationFrame||Ne.webkitRequestAnimationFrame||Ne.mozRequestAnimationFrame||Ne.oRequestAnimationFrame||Ne.msRequestAnimationFrame||function(e){return Ne.setTimeout(e,1e3/60)},Lg=Ne.cancelAnimationFrame||Ne.webkitCancelAnimationFrame||Ne.mozCancelAnimationFrame||Ne.oCancelAnimationFrame||Ne.msCancelAnimationFrame||function(e){Ne.clearTimeout(e)},as=Ag,zg=Lg,or=function(r){return zg(r.id)},Eo=function(r,n){var t;Promise.resolve().then(function(){t=Date.now()});var i=function a(){Date.now()-t>=n?r.call():o.id=as(a)},o={id:as(i)};return o},ss,ls;function cs(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 Rt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?cs(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jg=150,hi={OBSERVED:"observed",REQUESTED:"requested"},Fg=function(){return null},dt=(ls=ss=function(e){$e(r,e);function r(n){var t;we(this,r),t=We(this,He(r).call(this,n)),A(F(t),"_onGridRenderedMemoizer",ir()),A(F(t),"_onScrollMemoizer",ir(!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 is({cellCount:n.columnCount,cellSizeGetter:function(s){return r._wrapSizeGetter(n.columnWidth)(s)},estimatedCellSize:r._getEstimatedColumnSize(n)}),o=new is({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:tt,scrollDirectionVertical:tt,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 Se(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=Rt({},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?tt:ln:this.state.scrollDirectionHorizontal,D=b!==this.state.scrollTop?b>this.state.scrollTop?tt:ln:this.state.scrollDirectionVertical,_={isScrolling:!0,scrollDirectionHorizontal:C,scrollDirectionVertical:D,scrollPositionChangeReason:hi.OBSERVED};c||(_.scrollTop=b),u||(_.scrollLeft=y),_.needToResetStyleCache=!1,this.setState(_)}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===tt?o<=c:o>=c),this._recomputeScrollTopFlag=u>=0&&(this.state.scrollDirectionVertical===tt?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(Rt({},s,{scrollToColumn:i})),o!==void 0&&this._updateScrollTopForScrollToRow(Rt({},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=Rt({},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 _=c>0&&t.columnCount===0||f>0&&t.rowCount===0;b===hi.REQUESTED&&(!l&&y>=0&&(y!==this._scrollingContainer.scrollLeft||_)&&(this._scrollingContainer.scrollLeft=y),!s&&C>=0&&(C!==this._scrollingContainer.scrollTop||_)&&(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)):os({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)):os({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 P=D.rowSizeAndPositionManager.getTotalSize(),S=D.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:C,totalColumnsWidth:S,totalRowsHeight:P})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&or(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,_=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 P=C.columnSizeAndPositionManager.getTotalSize(),S=C.rowSizeAndPositionManager.getTotalSize(),T=S>f?C.scrollbarSize:0,R=P>y?C.scrollbarSize:0;(R!==this._horizontalScrollBarSize||T!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=T,this._scrollbarPresenceChanged=!0),w.overflowX=P+T<=y?"hidden":"auto",w.overflowY=S+R<=f?"hidden":"auto";var k=this._childrenToDisplay,j=k.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:Je("ReactVirtualized__Grid",s),id:d,onScroll:this._onScroll,role:h,style:Rt({},w,{},v),tabIndex:m}),k.length>0&&I.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:Rt({width:i?"auto":P,height:S,maxWidth:P,maxHeight:S,overflow:"hidden",pointerEvents:_?"none":"",position:"relative"},u)},k),j&&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,_=this._isScrolling(t,i);if(this._childrenToDisplay=[],c>0&&h>0){var w=b.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:D}),P=b.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:C}),S=b.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:D}),T=b.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:C});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=P.start,this._renderedRowStopIndex=P.stop;var R=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}),k=f({direction:"vertical",cellCount:p,overscanCellsCount:d,scrollDirection:y,startIndex:typeof P.start=="number"?P.start:0,stopIndex:typeof P.stop=="number"?P.stop:-1}),j=R.overscanStartIndex,M=R.overscanStopIndex,H=k.overscanStartIndex,E=k.overscanStopIndex;if(l){if(!l.hasFixedHeight()){for(var B=H;B<=E;B++)if(!l.has(B,0)){j=0,M=s-1;break}}if(!l.hasFixedWidth()){for(var G=j;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:j,columnStopIndex:M,deferredMeasurementCache:l,horizontalOffsetAdjustment:S,isScrolling:_,isScrollingOptOut:v,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:H,rowStopIndex:E,scrollLeft:D,scrollTop:C,styleCache:this._styleCache,verticalOffsetAdjustment:T,visibleColumnIndices:w,visibleRowIndices:P}),this._columnStartIndex=j,this._columnStopIndex=M,this._rowStartIndex=H,this._rowStopIndex=E}}},{key:"_debounceScrollEnded",value:function(){var t=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&or(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Eo(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 ns({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)}}),ns({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,Rt({},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:hi.REQUESTED};return typeof o=="number"&&o>=0&&(s.scrollDirectionHorizontal=o>i.scrollLeft?tt:ln,s.scrollLeft=o),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>i.scrollTop?tt:ln,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(ss,"propTypes",null),ls);A(dt,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:Ng,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Yi,noContentRenderer:Fg,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:Eg,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:jg,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Jr(dt);var Bg=1;function $c(e){var r=e.cellCount,n=e.overscanCellsCount,t=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n=Math.max(1,n),t===Bg?{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 us,ds;function fs(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 Gg(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?fs(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Wc=(ds=us=function(e){$e(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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 Se(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?Gg({},i,{scrollToColumn:t.scrollToColumn,scrollToRow:t.scrollToRow,instanceProps:{prevScrollToColumn:t.scrollToColumn,prevScrollToRow:t.scrollToRow}}):{}}}]),r}(I.PureComponent),A(us,"propTypes",null),ds);A(Wc,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0});Jr(Wc);function Hc(e,r){var n;typeof r<"u"?n=r:typeof window<"u"?n=window:typeof self<"u"?n=self:n=wp;var t=typeof n.document<"u"&&n.document.attachEvent;if(!t){var i=function(){var P=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(S){return n.setTimeout(S,20)};return function(S){return P(S)}}(),o=function(){var P=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(S){return P(S)}}(),a=function(S){var T=S.__resizeTriggers__,R=T.firstElementChild,k=T.lastElementChild,j=R.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,j.style.width=R.offsetWidth+1+"px",j.style.height=R.offsetHeight+1+"px",R.scrollLeft=R.scrollWidth,R.scrollTop=R.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 T=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i(function(){s(T)&&(T.__resizeLast__.width=T.offsetWidth,T.__resizeLast__.height=T.offsetHeight,T.__resizeListeners__.forEach(function(R){R.call(T,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 T=(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%; }',R=S.head||S.getElementsByTagName("head")[0],k=S.createElement("style");k.id="detectElementResize",k.type="text/css",e!=null&&k.setAttribute("nonce",e),k.styleSheet?k.styleSheet.cssText=T:k.appendChild(S.createTextNode(T)),R.appendChild(k)}},_=function(S,T){if(t)S.attachEvent("onresize",T);else{if(!S.__resizeTriggers__){var R=S.ownerDocument,k=n.getComputedStyle(S);k&&k.position=="static"&&(S.style.position="relative"),D(R),S.__resizeLast__={},S.__resizeListeners__=[],(S.__resizeTriggers__=R.createElement("div")).className="resize-triggers";var j='<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 j}});S.__resizeTriggers__.innerHTML=M.createHTML("")}else S.__resizeTriggers__.innerHTML=j;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(T)}},w=function(S,T){if(t)S.detachEvent("onresize",T);else if(S.__resizeListeners__.splice(S.__resizeListeners__.indexOf(T),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:_,removeResizeListener:w}}var ps,hs;function gs(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 $g(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?gs(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Uc=(hs=ps=function(e){$e(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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 Se(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=Hc(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:$g({},d,{},l)},i(p))}}]),r}(I.Component),A(ps,"propTypes",null),hs);A(Uc,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var vs,ms,Wg=(ms=vs=function(e){$e(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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 Se(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||Yr.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(vs,"propTypes",null),ms);A(Wg,"__internalCellMeasurerFlag",!1);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 Hg(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?bs(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ug=150,Wt={OBSERVED:"observed",REQUESTED:"requested"},Kn=function(e){$e(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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",ir()),A(F(t),"_onScrollMemoizer",ir(!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?Wt.OBSERVED:Wt.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=Yi(),t._scrollbarSize===void 0?(t._scrollbarSizeMeasured=!1,t._scrollbarSize=0):t._scrollbarSizeMeasured=!0,t}return Se(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=Yi(),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===Wt.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,_=C.width,w=Math.max(0,y-c),P=Math.max(0,b-p),S=Math.min(_,y+h+c),T=Math.min(D,b+l+p),R=l>0&&h>0?a.cellRenderers({height:T-P,isScrolling:m,width:S-w,x:w,y:P}):[],k={boxSizing:"border-box",direction:"ltr",height:i?"auto":l,position:"relative",WebkitOverflowScrolling:"touch",width:h,willChange:"transform"},j=D>l?this._scrollbarSize:0,M=_>h?this._scrollbarSize:0;return k.overflowX=_+j<=h?"hidden":"auto",k.overflowY=D+M<=l?"hidden":"auto",I.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Je("ReactVirtualized__Collection",s),id:u,onScroll:this._onScroll,role:"grid",style:Hg({},k,{},d),tabIndex:0},o>0&&I.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:D,maxHeight:D,maxWidth:_,overflow:"hidden",pointerEvents:m?"none":"",width:_}},R),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})},Ug)}},{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:Wt.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:Wt.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:Wt.REQUESTED}:null}}]),r}(I.PureComponent);A(Kn,"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});Kn.propTypes={};Jr(Kn);var qg=function(){function e(r){var n=r.height,t=r.width,i=r.x,o=r.y;we(this,e),this.height=n,this.width=t,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return Se(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}(),Vg=100,Kg=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vg;we(this,e),this._sectionSize=r,this._cellMetadata=[],this._sections={}}return Se(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 qg({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 Yg(e){for(var r=e.cellCount,n=e.cellSizeAndPositionGetter,t=e.sectionSize,i=[],o=new Kg(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 ys(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 qc=function(e){$e(r,e);function r(n,t){var i;return we(this,r),i=We(this,He(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 Se(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(Kn,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=Yg({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=ys({align:i,cellOffset:f.x,cellSize:f.width,containerSize:c,currentOffset:s}),l=ys({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(qc,"defaultProps",{"aria-label":"grid",cellGroupRenderer:Jg});qc.propTypes={};function Jg(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 Xg(e){if(Array.isArray(e))return Ph(e)}function Qg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zg(){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 Vc(e){return Xg(e)||Qg(e)||_c(e)||Zg()}var Kc=function(e){$e(r,e);function r(n,t){var i;return we(this,r),i=We(this,He(r).call(this,n,t)),i._loadMoreRowsMemoizer=ir(),i._onRowsRendered=i._onRowsRendered.bind(F(i)),i._registerChild=i._registerChild.bind(F(i)),i}return Se(r,[{key:"resetLoadMoreRowsCache",value:function(t){this._loadMoreRowsMemoizer=ir(),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(){ev({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:a.startIndex,stopIndex:a.stopIndex})&&i._registeredChild&&rv(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=tv({isRowLoaded:l,minimumBatchSize:c,rowCount:u,startIndex:Math.max(0,t-f),stopIndex:Math.min(u-1,i+f)}),p=(o=[]).concat.apply(o,Vc(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(Kc,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15});Kc.propTypes={};function ev(e){var r=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,t=e.startIndex,i=e.stopIndex;return!(t>n||i<r)}function tv(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 rv(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 xs,Ss,Yc=(Ss=xs=function(e){$e(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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 Se(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=Je("ReactVirtualized__List",i);return I.createElement(dt,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(xs,"propTypes",null),Ss);A(Yc,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:$c,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function nv(e){if(Array.isArray(e))return e}function iv(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 ov(){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 av(e,r){return nv(e)||iv(e,r)||_c(e,r)||ov()}function sv(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 lv(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 cv(e,r,n,t,i){return typeof n=="function"?lv(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)}function uv(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 dv(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 fv(e,r,n,t,i){return typeof n=="function"?dv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):uv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function pv(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 hv(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 gv(e,r,n,t,i){return typeof n=="function"?hv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):pv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function vv(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 mv(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 bv(e,r,n,t,i){return typeof n=="function"?mv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):vv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}function yv(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 xv(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 Sv(e,r,n,t,i){return typeof n=="function"?xv(e,t===void 0?0:t|0,i===void 0?e.length-1:i|0,r,n):yv(e,n===void 0?0:n|0,t===void 0?e.length-1:t|0,r)}const kn={ge:cv,gt:fv,lt:gv,le:bv,eq:Sv};var Qt=0,Pt=1,yn=2;function No(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 Xr=No.prototype;function gi(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 Jc(e,r){var n=Br(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 ws(e,r){var n=e.intervals([]);n.push(r),Jc(e,n)}function Cs(e,r){var n=e.intervals([]),t=n.indexOf(r);return t<0?Qt:(n.splice(t,1),Jc(e,n),Pt)}Xr.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};Xr.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)?ws(this,e):this.left.insert(e):this.left=Br([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(r+1)?ws(this,e):this.right.insert(e):this.right=Br([e]);else{var n=kn.ge(this.leftPoints,e,Mo),t=kn.ge(this.rightPoints,e,Ao);this.leftPoints.splice(n,0,e),this.rightPoints.splice(t,0,e)}};Xr.remove=function(e){var r=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return Qt;var n=this.right?this.right.count:0;if(4*n>3*(r-1))return Cs(this,e);var t=this.left.remove(e);return t===yn?(this.left=null,this.count-=1,Pt):(t===Pt&&(this.count-=1),t)}else if(e[0]>this.mid){if(!this.right)return Qt;var i=this.left?this.left.count:0;if(4*i>3*(r-1))return Cs(this,e);var t=this.right.remove(e);return t===yn?(this.right=null,this.count-=1,Pt):(t===Pt&&(this.count-=1),t)}else{if(this.count===1)return this.leftPoints[0]===e?yn:Qt;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}gi(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?gi(this,this.left):gi(this,this.right);return Pt}for(var s=kn.ge(this.leftPoints,e,Mo);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=kn.ge(this.rightPoints,e,Ao);t<this.rightPoints.length&&this.rightPoints[t][1]===e[1];++t)if(this.rightPoints[t]===e)return this.rightPoints.splice(t,1),Pt}return Qt}};function Xc(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 Qc(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 Zc(e,r){for(var n=0;n<e.length;++n){var t=r(e[n]);if(t)return t}}Xr.queryPoint=function(e,r){if(e<this.mid){if(this.left){var n=this.left.queryPoint(e,r);if(n)return n}return Xc(this.leftPoints,e,r)}else if(e>this.mid){if(this.right){var n=this.right.queryPoint(e,r);if(n)return n}return Qc(this.rightPoints,e,r)}else return Zc(this.leftPoints,r)};Xr.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?Xc(this.leftPoints,r,n):e>this.mid?Qc(this.rightPoints,e,n):Zc(this.leftPoints,n)};function wv(e,r){return e-r}function Mo(e,r){var n=e[0]-r[0];return n||e[1]-r[1]}function Ao(e,r){var n=e[1]-r[1];return n||e[0]-r[0]}function Br(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(wv);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(Mo),c.sort(Ao),new No(t,Br(i),Br(o),l,c)}function eu(e){this.root=e}var ur=eu.prototype;ur.insert=function(e){this.root?this.root.insert(e):this.root=new No(e[0],null,null,[e],[e])};ur.remove=function(e){if(this.root){var r=this.root.remove(e);return r===yn&&(this.root=null),r!==Qt}return!1};ur.queryPoint=function(e,r){if(this.root)return this.root.queryPoint(e,r)};ur.queryInterval=function(e,r,n){if(e<=r&&this.root)return this.root.queryInterval(e,r,n)};Object.defineProperty(ur,"count",{get:function(){return this.root?this.root.count:0}});Object.defineProperty(ur,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});function Cv(e){return new eu(null)}var vi=function(){function e(){we(this,e),A(this,"_columnSizeMap",{}),A(this,"_intervalTree",Cv()),A(this,"_leftMap",{})}return Se(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=av(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}(),Is,Rs;function Ts(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 Iv(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ts(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Rv={},Tv=150,tu=(Rs=Is=function(e){$e(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(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 vi),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 Se(r,[{key:"clearCellPositions",value:function(){this._positionCache=new vi,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 vi,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&&or(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,_=C.scrollTop,w=[],P=this._getEstimatedTotalHeight(),S=this._positionCache.shortestColumnSize,T=this._positionCache.count,R=0,k;if(this._positionCache.range(Math.max(0,_-p),u+p*2,function(H,E,B){var G;typeof k>"u"?(R=H,k=H):(R=Math.min(R,H),k=Math.max(k,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<_+u+p&&T<a)for(var j=Math.min(a-T,Math.ceil((_+u+p-S)/s.defaultHeight*y/s.defaultWidth)),M=T;M<T+j;M++)k=M,w.push(l({index:M,isScrolling:D,key:d(M),parent:this,style:{width:s.getWidth(M)}}));return this._startIndex=R,this._stopIndex=k,I.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Je("ReactVirtualized__Masonry",c),id:f,onScroll:this._onScroll,role:h,style:Iv({boxSizing:"border-box",direction:"ltr",height:o?"auto":u,overflowX:"hidden",overflowY:P<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:P,maxWidth:"100%",maxHeight:P,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&&or(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Eo(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(Is,"propTypes",null),Rs);A(tu,"defaultProps",{autoHeight:!1,keyMapper:Dv,onCellsRendered:Ds,onScroll:Ds,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:Tv,style:Rv,tabIndex:0,rowDirection:"ltr"});function Dv(e){return e}function Ds(){}Jr(tu);var mi=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};we(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 Se(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 Ps(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 _e(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ps(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _s=20,Lo=function(e){$e(r,e);function r(n,t){var i;we(this,r),i=We(this,He(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=Xt(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:_e({},u.style,{height:_s})}):d(_e({},u,{parent:F(i),rowIndex:c+p}))}),A(F(i),"_cellRendererBottomRightGrid",function(l){var c=l.columnIndex,u=l.rowIndex,f=Xt(l,["columnIndex","rowIndex"]),d=i.props,p=d.cellRenderer,h=d.fixedColumnCount,v=d.fixedRowCount;return p(_e({},f,{columnIndex:c+h,parent:F(i),rowIndex:u+v}))}),A(F(i),"_cellRendererTopRightGrid",function(l){var c=l.columnIndex,u=Xt(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:_e({},u.style,{width:_s})}):d(_e({},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 mi({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:s}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new mi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:s}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new mi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return Se(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=Xt(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(_e({},l,{onScroll:i,scrollLeft:u}))),I.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(_e({},l,{onScroll:i,scrollTop:f})),this._renderBottomRightGrid(_e({},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=_e({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=_e({left:0,overflowX:"hidden",overflowY:a?"auto":"hidden",position:"absolute"},p)),(t||C||h!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=_e({left:this._getLeftGridWidth(this.props),position:"absolute"},h)),(t||v!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=_e({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},v)),(t||C||m!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=_e({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(dt,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:_e({},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(dt,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(dt,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=_e({},this._topRightGridStyle,{left:0}));var C=I.createElement(dt,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:_e({},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(Lo,"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});Lo.propTypes={};Jr(Lo);function Pv(e){var r=e.dataKey,n=e.rowData;return typeof n.get=="function"?n.get(r):n[r]}function _v(e){var r=e.cellData;return r==null?"":String(r)}function ru(e){var r=e.className,n=e.columns,t=e.style;return I.createElement("div",{className:r,role:"row",style:t},n)}ru.propTypes=null;var ft={ASC:"ASC",DESC:"DESC"};function nu(e){var r=e.sortDirection,n=Je("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":r===ft.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":r===ft.DESC});return I.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},r===ft.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"}))}nu.propTypes={};function iu(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(nu,{key:"SortIndicator",sortDirection:i})),a}iu.propTypes=null;function ou(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)}ou.propTypes=null;var au=function(e){$e(r,e);function r(){return we(this,r),We(this,He(r).apply(this,arguments))}return r}(I.Component);A(au,"defaultProps",{cellDataGetter:Pv,cellRenderer:_v,defaultSortDirection:ft.ASC,flexGrow:0,flexShrink:1,headerRenderer:iu,style:{}});au.propTypes={};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 Ht(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 su=function(e){$e(r,e);function r(n){var t;return we(this,r),t=We(this,He(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 Se(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=Yr.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,_=s?d:d-u,w=typeof v=="function"?v({index:-1}):v,P=typeof m=="function"?m({index:-1}):m;return this._cachedColumnStyles=[],I.Children.toArray(o).forEach(function(S,T){var R=t._getFlexStyleForColumn(S,S.props.style);t._cachedColumnStyles[T]=Ht({overflow:"hidden"},R)}),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:Je("ReactVirtualized__Table",a),id:p,role:"grid",style:b},!s&&f({className:Je("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:Ht({height:u,overflow:"hidden",paddingRight:D,width:C},P)}),I.createElement(dt,K({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Je("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:C,columnCount:1,height:_,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:D,scrollToRow:y,style:Ht({},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})},_=this._cachedColumnStyles[o],w=typeof C=="string"?C:null;return I.createElement("div",{"aria-colindex":o+1,"aria-describedby":y,className:Je("ReactVirtualized__Table__rowColumn",h),key:"Row"+c+"-Col"+o,onClick:D,role:"gridcell",style:_,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,_=!y&&u,w=Je("ReactVirtualized__Table__headerColumn",s,i.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:_}),P=this._getFlexStyleForColumn(i,Ht({},l,{},i.props.headerStyle)),S=b({columnData:h,dataKey:v,disableSort:y,label:D,sortBy:f,sortDirection:d}),T,R,k,j,M;if(_||c){var H=f!==v,E=H?m:d===ft.DESC?ft.ASC:ft.DESC,B=function(J){_&&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,j="none",k=0,T=B,R=G}return f===v&&(j=d===ft.ASC?"ascending":"descending"),I.createElement("div",{"aria-label":M,"aria-sort":j,className:w,id:C,key:"Header-Col"+o,onClick:T,onKeyDown:R,role:"columnheader",style:P,tabIndex:k},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,_=this.state.scrollbarWidth,w=typeof y=="function"?y({index:o}):y,P=typeof D=="function"?D({index:o}):D,S=b({index:o}),T=I.Children.toArray(f).map(function(j,M){return i._createColumn({column:j,columnIndex:M,isScrolling:a,parent:l,rowData:S,rowIndex:o,scrollbarWidth:_})}),R=Je("ReactVirtualized__Table__row",w),k=Ht({},c,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:_},P);return C({className:R,columns:T,index:o,isScrolling:a,key:s,onRowClick:d,onRowDoubleClick:p,onRowRightClick:h,onRowMouseOver:v,onRowMouseOut:m,rowData:S,style:k})}},{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=Ht({},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(su,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:$c,overscanRowCount:10,rowRenderer:ou,headerRowRenderer:ru,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});su.propTypes={};var ht=[],Er=null,Nt=null;function lu(){Nt&&(Nt=null,document.body&&Er!=null&&(document.body.style.pointerEvents=Er),Er=null)}function kv(){lu(),ht.forEach(function(e){return e.__resetIsScrolling()})}function Ov(){Nt&&or(Nt);var e=0;ht.forEach(function(r){e=Math.max(e,r.props.scrollingResetTimeInterval)}),Nt=Eo(kv,e)}function cu(e){e.currentTarget===window&&Er==null&&document.body&&(Er=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Ov(),ht.forEach(function(r){r.props.scrollElement===e.currentTarget&&r.__handleWindowScrollEvent()})}function Os(e,r){ht.some(function(n){return n.props.scrollElement===r})||r.addEventListener("scroll",cu),ht.push(e)}function Es(e,r){ht=ht.filter(function(n){return n!==e}),ht.length||(r.removeEventListener("scroll",cu),Nt&&(or(Nt),lu()))}var zo=function(r){return r===window},Tr=function(r){return r.getBoundingClientRect()};function Ns(e,r){if(e)if(zo(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 Tr(e);else return{height:r.serverHeight,width:r.serverWidth}}function Ev(e,r){if(zo(r)&&document.documentElement){var n=document.documentElement,t=Tr(e),i=Tr(n);return{top:t.top-i.top,left:t.left-i.left}}else{var o=uu(r),a=Tr(e),s=Tr(r);return{top:a.top+o.top-s.top,left:a.left+o.left-s.left}}}function uu(e){return zo(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 Ms,As;function Ls(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 Nv(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ls(n,!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mv=150,du=function(){return typeof window<"u"?window:void 0},Av=(As=Ms=function(e){$e(r,e);function r(){var n,t;we(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=We(this,(n=He(r)).call.apply(n,[this].concat(o))),A(F(t),"_window",du()),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",Nv({},Ns(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=uu(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 Se(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||Yr.findDOMNode(this);if(l instanceof Element&&t){var c=Ev(l,t);this._positionFromTop=c.top,this._positionFromLeft=c.left}var u=Ns(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=Hc(),this.updatePosition(t),t&&(Os(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),Es(this,a),Os(this,o),this._unregisterResizeListener(a),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var t=this.props.scrollElement;t&&(Es(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(Ms,"propTypes",null),As);A(Av,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:Mv,scrollElement:du(),serverHeight:0,serverWidth:0});function tr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tr=function(r){return typeof r}:tr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tr(e)}function Qr(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function zs(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 Zr(e,r,n){return r&&zs(e.prototype,r),n&&zs(e,n),e}function Lv(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function gt(){return gt=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},gt.apply(this,arguments)}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 ue(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?js(Object(n),!0).forEach(function(t){Lv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yn(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&&Ji(e,r)}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},et(e)}function Ji(e,r){return Ji=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},Ji(e,r)}function zv(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 jo(e,r){if(e==null)return{};var n=zv(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 rt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jn(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:rt(e)}function ge(e){return jv(e)||Fv(e)||Bv()}function jv(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 Fv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Bv(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function fu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function pu(e){function r(n){var t=this.constructor.getDerivedStateFromProps(e,n);return t??null}this.setState(r.bind(this))}function hu(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}}fu.__suppressDeprecationWarning=!0;pu.__suppressDeprecationWarning=!0;hu.__suppressDeprecationWarning=!0;function Gv(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
14
 
15
15
  `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
16
16
  `+n:"")+(t!==null?`
@@ -18,19 +18,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
18
18
  `+i:"")+`
19
19
 
20
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=xu,r.componentWillReceiveProps=Su),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=wu;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 Cu(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,h=d?[]:[].concat(ge(a),[i({node:n,treeIndex:t})]);if(t===r)return{node:n,lowerSiblingCounts:l,path:h};if(!n.children||u&&n.expanded!==!0)return{nextIndex:t+1};for(var p=t+1,v=n.children.length,m=0;m<v;m+=1){var y=Cu({ignoreCollapsed:u,getNodeKey:i,targetIndex:r,node:n.children[m],currentIndex:p,lowerSiblingCounts:[].concat(ge(l),[v-m-1]),path:h});if(y.node)return y;p=y.nextIndex}return{nextIndex:p}}function Wo(e){var r=e.node,n=e.ignoreCollapsed,t=n===void 0?!0:n;return Cu({getNodeKey:function(){},ignoreCollapsed:t,node:r,currentIndex:0,targetIndex:-1}).nextIndex-1}function Iu(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,h=d===void 0?[]:d,p=o?[]:[].concat(ge(f),[n({node:a,treeIndex:c})]),v=o?null:{node:a,parentNode:l,path:p,lowerSiblingCounts:h,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=Iu({callback:r,getNodeKey:n,ignoreCollapsed:t,node:a.children[C],parentNode:o?null:a,currentIndex:y+1,lowerSiblingCounts:[].concat(ge(h),[b-C-1]),path:p}),y===!1)return!1}return y}function Ru(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,h=d===void 0?[]:d,p=ue({},a),v=o?[]:[].concat(ge(f),[n({node:p,treeIndex:c})]),m={node:p,parentNode:l,path:v,lowerSiblingCounts:h,treeIndex:c};if(!p.children||p.expanded!==!0&&t&&!o)return{treeIndex:c,node:r(m)};var y=c,b=p.children.length;return typeof p.children!="function"&&(p.children=p.children.map(function(C,D){var P=Ru({callback:r,getNodeKey:n,ignoreCollapsed:t,node:C,parentNode:o?null:p,currentIndex:y+1,lowerSiblingCounts:[].concat(ge(h),[b-D-1]),path:v});return y=P.treeIndex,P.node})),{node:r(m),treeIndex:y}}function Tu(e){var r=e.treeData,n=e.getNodeKey,t=e.callback,i=e.ignoreCollapsed,o=i===void 0?!0:i;!r||r.length<1||Iu({callback:t,getNodeKey:n,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:r},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function Qv(e){var r=e.treeData,n=e.getNodeKey,t=e.callback,i=e.ignoreCollapsed,o=i;return!r||r.length<1?[]:Ru({callback:t,getNodeKey:n,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:r},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function Zv(e){var r=e.treeData,n=e.expanded,t=n===void 0?!0:n;return Qv({treeData:r,callback:function(o){var a=o.node;return ue(ue({},a),{},{expanded:t})},getNodeKey:function(o){var a=o.treeIndex;return a},ignoreCollapsed:!1})}function Dr(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,h=d===void 0?!1:d,p=f.node,v=f.currentTreeIndex,m=f.pathIndex;if(!h&&i({node:p,treeIndex:v})!==n[m])return s;if(m>=n.length-1)return typeof t=="function"?t({node:p,treeIndex:v}):t;if(!p.children)throw new Error("Path referenced children of node with no children.");for(var y=v+1,b=0;b<p.children.length;b+=1){var C=u({node:p.children[b],currentTreeIndex:y,pathIndex:m+1});if(C!==s)return C?ue(ue({},p),{},{children:[].concat(ge(p.children.slice(0,b)),[C],ge(p.children.slice(b+1)))}):ue(ue({},p),{},{children:[].concat(ge(p.children.slice(0,b)),ge(p.children.slice(b+1)))});y+=1+Wo({node:p.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 em(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=Dr({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 Du(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,h=e.path,p=h===void 0?[]:h,v=function(E){return s?[]:[].concat(ge(p),[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=ue(ue(ue({},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+Wo({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=ue(ue({},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,T=null,R=u+1,k=c.children;typeof k!="function"&&(k=k.map(function(H,E){if(_!==null)return H;var B=Du({targetDepth:r,minimumTreeIndex:n,newNode:t,ignoreCollapsed:i,expandParent:o,isLastChild:l&&E===k.length-1,node:H,currentIndex:R,currentDepth:f+1,getNodeKey:d,path:[]});return"insertedTreeIndex"in B&&(_=B.insertedTreeIndex,T=B.parentNode,S=B.parentPath),R=B.nextIndex,B.node}));var j=ue(ue({},c),{},{children:k}),M={node:j,nextIndex:R};return _!==null&&(M.insertedTreeIndex=_,M.parentPath=[].concat(ge(v(j)),ge(S)),M.parentNode=T),M}function _u(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=Du({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 tm(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 Tu({treeData:r,getNodeKey:n,ignoreCollapsed:i,callback:function(s){o.push(s)}}),o}function Pu(e,r){return!!e.children&&typeof e.children!="function"&&e.children.some(function(n){return n===r||Pu(n,r)})}function ku(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,ku(t,r+1))},r):r}function rm(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 h(p){var v=p.isPseudoRoot,m=v===void 0?!1:v,y=p.node,b=p.currentIndex,C=p.path,D=C===void 0?[]:C,P=[],w=!1,_=!1,S=m?[]:[].concat(ge(D),[r({node:y,treeIndex:b})]),T=m?null:{path:S,treeIndex:b},R=y.children&&typeof y.children!="function"&&y.children.length>0;!m&&i(ue(ue({},T),{},{node:y,searchQuery:t}))&&(u===o&&(_=!0),u+=1,w=!0);var k=b,j=ue({},y);return R&&(j.children=j.children.map(function(M){var H=h({node:M,currentIndex:k+1,path:S});return H.node.expanded?k=H.treeIndex:k+=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)&&(j.expanded=!0)),H.node})),!m&&!j.expanded&&(P=P.map(function(M){return ue(ue({},M),{},{treeIndex:null})})),w&&(P=[ue(ue({},T),{},{node:j})].concat(ge(P))),{node:P.length>0?j:y,matches:P,hasFocusMatch:_,treeIndex:k}},d=f({node:{children:n},isPseudoRoot:!0,currentIndex:-1});return{matches:d.matches,treeData:d.node.children}}function je(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.filter(Boolean).join(" ")}function nm(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=et(e),t;if(r()){var i=et(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Jn(this,t)}}var Ho=function(e){Yn(n,e);var r=nm(n);function n(){return Qr(this,n),r.apply(this,arguments)}return Zr(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,h=i.title,p=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,T=Go(i,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]),R=h||d.title,k=p||d.subtitle,j=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($,q){return Q.createElement("div",{key:q,className:je("rst__loadingCirclePoint",j)})}))):M=l(Q.createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));var H=v&&Pu(v,d),E=!_&&c,B={left:-.5*o};return S==="rtl"&&(B={right:-.5*o}),Q.createElement("div",gt({style:{height:"100%"}},T),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:je(d.expanded?"rst__collapseButton":"rst__expandButton",j),style:B,onClick:function(){return a({node:d,path:m,treeIndex:y})}}),d.expanded&&!c&&Q.createElement("div",{style:{width:o},className:je("rst__lineChildren",j)})),Q.createElement("div",{className:je("rst__rowWrapper",j)},s(Q.createElement("div",{className:je("rst__row",E&&"rst__rowLandingPad",E&&!u&&"rst__rowCancelPad",b&&"rst__rowSearchMatch",C&&"rst__rowSearchFocus",j,P),style:ue({opacity:H?.5:1},w)},M,Q.createElement("div",{className:je("rst__rowContents",!f&&"rst__rowContentsDragDisabled",j)},Q.createElement("div",{className:je("rst__rowLabel",j)},Q.createElement("span",{className:je("rst__rowTitle",d.subtitle&&"rst__rowTitleWithSubtitle")},typeof R=="function"?R({node:d,path:m,treeIndex:y}):R),k&&Q.createElement("span",{className:"rst__rowSubtitle"},typeof k=="function"?k({node:d,path:m,treeIndex:y}):k)),Q.createElement("div",{className:"rst__rowToolbar"},D.map(function($,q){return Q.createElement("div",{key:q,className:"rst__toolbarButton"},$)})))))))}}]),n}(I.Component);Ho.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"};Ho.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 Uo=function(r){var n=r.isOver,t=r.canDrop;return Q.createElement("div",{className:je("rst__placeholder",t&&"rst__placeholderLandingPad",t&&!n&&"rst__placeholderCancelPad")})};Uo.defaultProps={isOver:!1,canDrop:!1};Uo.propTypes={isOver:x.bool,canDrop:x.bool};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=et(e),t;if(r()){var i=et(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Jn(this,t)}}var qo=function(e){Yn(n,e);var r=im(n);function n(){return Qr(this,n),r.apply(this,arguments)}return Zr(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,h=i.isOver,p=i.draggedNode,v=i.canDrop,m=i.treeIndex;i.treeId,i.getPrevRow,i.node,i.path;var y=i.rowDirection,b=Go(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 T="";if(_>0?a===0?T="rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":S===D-1?T="rst__lineHalfHorizontalRight rst__lineFullVertical":T="rst__lineFullVertical":a===0?T="rst__lineHalfHorizontalRight":S===D-1&&(T="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),P.push(Q.createElement("div",{key:"pre_".concat(1+S),style:{width:u},className:je("rst__lineBlock",T,C)})),m!==a&&S===c){var R="";a===s+l-1?R="rst__highlightBottomLeftCorner":m===s?R="rst__highlightTopLeftCorner":R="rst__highlightLineVertical";var k;y==="rtl"?k={width:u,right:u*S}:k={width:u,left:u*S},P.push(Q.createElement("div",{key:S,style:k,className:je("rst__absoluteLineBlock",R,C)}))}});var w;return y==="rtl"?w={right:u*D}:w={left:u*D},d(Q.createElement("div",gt({},b,{className:je("rst__node",C)}),P,Q.createElement("div",{className:"rst__nodeContent",style:w},I.Children.map(o,function(_){return I.cloneElement(_,{isOver:h,canDrop:v,draggedNode:p})}))))}}]),n}(I.Component);qo.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"};qo.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 om(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=et(e),t;if(r()){var i=et(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Jn(this,t)}}var Vo=function(e){Yn(n,e);var r=om(n);function n(){return Qr(this,n),r.apply(this,arguments)}return Zr(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.connectDropTarget;i.treeId,i.drop;var s=Go(i,["children","connectDropTarget","treeId","drop"]);return a(Q.createElement("div",null,I.Children.map(o,function(l){return I.cloneElement(l,ue({},s))})))}}]),n}(I.Component);Vo.defaultProps={canDrop:!1,draggedNode:null};Vo.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 am(e){var r=e.treeIndex;return r}function Ou(e){return typeof e=="string"?e:e===null||tr(e)!=="object"||!e.props||!e.props.children||typeof e.props.children!="string"&&tr(e.props.children)!=="object"?"":typeof e.props.children=="string"?e.props.children:e.props.children.map(function(r){return Ou(r)}).join("")}function Ws(e,r,n,t,i){return typeof n[e]=="function"?String(n[e]({node:n,path:t,treeIndex:i})).indexOf(r)>-1:tr(n[e])==="object"?Ou(n[e]).indexOf(r)>-1:n[e]&&String(n[e]).indexOf(r)>-1}function sm(e){var r=e.node,n=e.path,t=e.treeIndex,i=e.searchQuery;return Ws("title",i,r,n,t)||Ws("subtitle",i,r,n,t)}var Ko=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}},to=Ko(_u),lm=Ko(tm),cm=Ko(Wo),um=function(){function e(r){Qr(this,e),this.treeRef=r}return Zr(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=Yr.findDOMNode(i).getBoundingClientRect(),d=t.getSourceClientOffset().x-f.left;c=Math.round(d/n.scaffoldBlockPxWidth)}else c=n.path.length;else{var h=n.rowDirection==="rtl"?-1:1;c=Math.round(h*t.getDifferenceFromInitialOffset().x/n.scaffoldBlockPxWidth)}var p=Math.min(o,Math.max(0,u+c-1));if(typeof this.maxDepth<"u"&&this.maxDepth!==null){var v=t.getItem().node,m=ku(v);p=Math.max(0,Math.min(p,this.maxDepth-m-1))}return p}},{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=to({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 Ap(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 Ha(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,h={node:u,path:f,treeIndex:d,treeId:t.treeId,minimumTreeIndex:0,depth:0};return t.drop(h),h}};function o(a,s){var l=s.getItem();return{connectDropTarget:a.dropTarget(),isOver:s.isOver(),canDrop:s.canDrop(),draggedNode:l?l.node:null}}return Ha(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 dm(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 fm(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=et(e),t;if(r()){var i=et(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Jn(this,t)}}var Hs=1,bi=function(r){var n=ue(ue({},r),{},{style:ue(ue({},r.theme.style),r.style),innerStyle:ue(ue({},r.theme.innerStyle),r.innerStyle),reactVirtualizedListProps:ue(ue({},r.theme.reactVirtualizedListProps),r.reactVirtualizedListProps)}),t={nodeContentRenderer:Ho,placeholderRenderer:Uo,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:qo};return Object.keys(t).forEach(function(i){r[i]===null&&(n[i]=typeof r.theme[i]<"u"?r.theme[i]:t[i])}),n},Xn=function(e){Yn(n,e);var r=fm(n);function n(t){var i;Qr(this,n),i=r.call(this,t);var o=bi(t),a=o.dndType,s=o.nodeContentRenderer,l=o.treeNodeRenderer,c=o.isVirtualized,u=o.slideRegionSize;return i.dndManager=new um(rt(i)),i.treeId="rst__".concat(Hs),Hs+=1,i.dndType=a||i.treeId,i.nodeContentRenderer=i.dndManager.wrapSource(s),i.treePlaceholderRenderer=i.dndManager.wrapPlaceholder(Vo),i.treeNodeRenderer=i.dndManager.wrapTarget(l),c&&(i.scrollZoneVirtualList=(bn.createScrollingComponent||Mg)(nu),i.vStrength=bn.createVerticalStrength(u),i.hStrength=bn.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(rt(i)),i.moveNode=i.moveNode.bind(rt(i)),i.startDrag=i.startDrag.bind(rt(i)),i.dragHover=i.dragHover.bind(rt(i)),i.endDrag=i.endDrag.bind(rt(i)),i.drop=i.drop.bind(rt(i)),i.handleDndMonitorChange=i.handleDndMonitorChange.bind(rt(i)),i}return Zr(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 lm({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=Dr({treeData:s.treeData,path:a,newNode:function(u){var f=u.node;return ue(ue({},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=_u({treeData:this.state.draggingTreeData,newNode:o,depth:l,minimumTreeIndex:c,expandParent:!0,getNodeKey:this.props.getNodeKey}),f=u.treeData,d=u.treeIndex,h=u.path,p=u.parentNode;this.props.onChange(f),this.props.onMoveNode({treeData:f,node:o,treeIndex:d,path:h,nextPath:h,nextTreeIndex:d,prevPath:a,prevTreeIndex:s,nextParentNode:p})}},{key:"startDrag",value:function(i){var o=this,a=i.path;this.setState(function(s){var l=em({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,h=to({treeData:d,newNode:a,depth:s,minimumTreeIndex:l,expandParent:!0,getNodeKey:o.props.getNodeKey}),p=o.getRows(h.treeData),v=p[h.treeIndex].path;return{draggedNode:a,draggedDepth:s,draggedMinimumTreeIndex:l,draggingTreeData:Dr({treeData:d,path:v.slice(0,-1),newNode:function(y){var b=y.node;return ue(ue({},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=Dr({treeData:a.treeData,path:c,newNode:function(p){var v=p.node;return ue({},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,h=i.node,p=i.parentNode,v=i.path,m=i.lowerSiblingCounts,y=i.treeIndex,b=bi(this.props),C=b.canDrag,D=b.generateNodeProps,P=b.scaffoldBlockPxWidth,w=b.searchFocusOffset,_=b.rowDirection,S=this.treeNodeRenderer,T=this.nodeContentRenderer,R=v[v.length-1],k=R in c,j=k&&c[R]===w,M={node:h,parentNode:p,path:v,lowerSiblingCounts:m,treeIndex:y,isSearchMatch:k,isSearchFocus:j},H=D?D(M):{},E=typeof C!="function"?C:C(M),B={treeIndex:y,scaffoldBlockPxWidth:P,node:h,path:v,treeId:this.treeId,rowDirection:_};return Q.createElement(S,gt({style:s,key:R,listIndex:a,getPrevRow:l,lowerSiblingCounts:m,swapFrom:u,swapLength:d,swapDepth:f},B),Q.createElement(T,gt({parentNode:p,isSearchMatch:k,isSearchFocus:j,canDrag:E,toggleChildrenVisibility:this.toggleChildrenVisibility},B,H)))}},{key:"render",value:function(){var i=this,o=bi(this.props),a=o.dragDropManager,s=o.style,l=o.className,c=o.innerStyle,u=o.rowHeight,f=o.isVirtualized,d=o.placeholderRenderer,h=o.reactVirtualizedListProps,p=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,T,R=null,k=null;if(C&&P!==null){var j=to({treeData:_,newNode:C,depth:D,minimumTreeIndex:P,expandParent:!0,getNodeKey:p}),M=P;R=j.treeIndex,k=1+cm({node:C}),T=dm(this.getRows(j.treeData),R,M,k)}else T=this.getRows(_);var H={};y.forEach(function(X,Z){var V=X.path;H[V[V.length-1]]=Z});var E=b!==null?{scrollToIndex:b}:{},B=s,$;if(T.length<1){var q=this.treePlaceholderRenderer,J=d;$=Q.createElement(q,{treeId:this.treeId,drop:this.drop},Q.createElement(J,null))}else if(f){B=ue({height:"100%"},B);var ee=this.scrollZoneVirtualList;$=Q.createElement(Zc,null,function(X){var Z=X.height,V=X.width;return Q.createElement(ee,gt({},E,{dragDropManager:a,verticalStrength:i.vStrength,horizontalStrength:i.hStrength,speed:30,scrollToAlignment:"start",className:"rst__virtualScrollOverride",width:V,onScroll:function(ie){var G=ie.scrollTop;i.scrollTop=G},height:Z,style:c,rowCount:T.length,estimatedRowSize:typeof u!="function"?u:void 0,rowHeight:typeof u!="function"?u:function(re){var ie=re.index;return u({index:ie,treeIndex:ie,node:T[ie].node,path:T[ie].path})},rowRenderer:function(ie){var G=ie.index,W=ie.style;return i.renderRow(T[G],{listIndex:G,style:W,getPrevRow:function(){return T[G-1]||null},matchKeys:H,swapFrom:R,swapDepth:D,swapLength:k})}},h))})}else $=T.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 T[Z-1]||null},matchKeys:H,swapFrom:R,swapDepth:D,swapLength:k})});return Q.createElement("div",{className:je("rst__tree",l,S),style:B},$)}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.instanceProps,s={},l=as(a.treeData,i.treeData);return a.treeData=i.treeData,l?as(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=ue(ue({},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,h=i.searchMethod,p=i.searchFocusOffset,v=i.onlyExpandSearchedNodes,m=o.instanceProps;if(!d&&!h)return f&&f([]),{searchMatches:[]};var y={instanceProps:{}},b=rm({getNodeKey:u,treeData:v?Zv({treeData:m.treeData,expanded:!1}):m.treeData,searchQuery:d,searchMethod:h||sm,searchFocusOffset:p,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&&p!==null&&p<D.length&&(P=D[p].treeIndex),y.searchMatches=D,y.searchFocusTreeIndex=P,y}},{key:"loadLazyChildren",value:function(i,o){var a=o.instanceProps;Tu({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(p){return i.onChange(Dr({treeData:a.treeData,path:u,newNode:function(m){var y=m.node;return y===c?ue(ue({},y),{},{children:p}):y},getNodeKey:i.getNodeKey}))}})}})}}]),n}(I.Component);Xn.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};Xn.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:function(){return!0},className:"",dndType:null,generateNodeProps:null,getNodeKey:am,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"};Xv(Xn);var hm=function(r){return Q.createElement(Mp.Consumer,null,function(n){var t=n.dragDropManager;return t===void 0?null:Q.createElement(Xn,gt({},r,{dragDropManager:t}))})},xn={exports:{}},Us=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},en=(typeof window>"u"?"undefined":Us(window))==="object"&&(typeof document>"u"?"undefined":Us(document))==="object"&&document.nodeType===9,pm={}.constructor;function ro(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(ro);if(e.constructor!==pm)return e;var r={};for(var n in e)r[n]=ro(e[n]);return r}function Yo(e,r,n){e===void 0&&(e="unnamed");var t=n.jss,i=ro(r),o=t.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var qs=function(r,n){for(var t="",i=0;i<r.length&&r[i]!=="!important";i++)t&&(t+=n),t+=r[i];return t},Mt=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+=qs(r[t]," ");else n=qs(r,", ");return r[r.length-1]==="!important"&&(n+=" !important"),n};function dr(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
22
- `,space:" "}}function yr(e,r){for(var n="",t=0;t<r;t++)n+=" ";return n+e}function $r(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=dr(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 h in d){var p=d[h];p!=null&&(t&&(t+=c),t+=yr(h+":"+u+Mt(p)+";",a))}}else for(var v in s){var m=s[v];m!=null&&(t&&(t+=c),t+=yr(v+":"+u+Mt(m)+";",a))}for(var y in r){var b=r[y];b!=null&&y!=="fallbacks"&&(t&&(t+=c),t+=yr(y+":"+u+Mt(b)+";",a))}return!t&&!n.allowEmpty||!e?t:(a--,t&&(t=""+c+t+c),yr(""+e+u+"{"+t,a)+yr("}",a))}var gm=/([[\].#*$><+~=|^:(),"'`\s])/g,Vs=typeof CSS<"u"&&CSS.escape,Jo=function(e){return Vs?Vs(e):e.replace(gm,"\\$1")},Eu=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}(),no=function(e){Wn(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="."+Jo(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]=Mt(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 $r(this.selectorText,this.style,s)},Se(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}(Eu),vm={onCreateRule:function(r,n,t){return r[0]==="@"||t.parent&&t.parent.type==="keyframes"?null:new no(r,n,t)}},yi={indent:1,children:!0},mm=/@([\w-]+)/,bm=function(){function e(n,t,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(mm);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new Qn(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=yi);var i=dr(t),o=i.linebreak;if(t.indent==null&&(t.indent=yi.indent),t.children==null&&(t.children=yi.children),t.children===!1)return this.query+" {}";var a=this.rules.toString(t);return a?this.query+" {"+o+a+o+"}":""},e}(),ym=/@container|@media|@supports\s+/,xm={onCreateRule:function(r,n,t){return ym.test(r)?new bm(r,n,t):null}},xi={indent:1,children:!0},Sm=/@keyframes\s+([\w-]+)/,io=function(){function e(n,t,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(Sm);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:Jo(l(this,s)),this.rules=new Qn(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=xi);var i=dr(t),o=i.linebreak;if(t.indent==null&&(t.indent=xi.indent),t.children==null&&(t.children=xi.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}(),wm=/@keyframes\s+/,Cm=/\$([\w-]+)/g,oo=function(r,n){return typeof r=="string"?r.replace(Cm,function(t,i){return i in n?n[i]:t}):r},Ks=function(r,n,t){var i=r[n],o=oo(i,t);o!==i&&(r[n]=o)},Im={onCreateRule:function(r,n,t){return typeof r=="string"&&wm.test(r)?new io(r,n,t):null},onProcessStyle:function(r,n,t){return n.type!=="style"||!t||("animation-name"in r&&Ks(r,"animation-name",t.keyframes),"animation"in r&&Ks(r,"animation",t.keyframes)),r},onChangeValue:function(r,n,t){var i=t.options.sheet;if(!i)return r;switch(n){case"animation":return oo(r,i.keyframes);case"animation-name":return oo(r,i.keyframes);default:return r}}},Rm=function(e){Wn(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 $r(this.key,this.style,s)},r}(Eu),Tm={onCreateRule:function(r,n,t){return t.parent&&t.parent.type==="keyframes"?new Rm(r,n,t):null}},Dm=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=dr(t),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=$r(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return $r(this.at,this.style,t)},e}(),_m=/@font-face/,Pm={onCreateRule:function(r,n,t){return _m.test(r)?new Dm(r,n,t):null}},km=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 $r(this.key,this.style,t)},e}(),Om={onCreateRule:function(r,n,t){return r==="@viewport"||r==="@-ms-viewport"?new km(r,n,t):null}},Em=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}(),Nm={"@charset":!0,"@import":!0,"@namespace":!0},Mm={onCreateRule:function(r,n,t){return r in Nm?new Em(r,n,t):null}},Ys=[vm,xm,Im,Tm,Pm,Om,Mm],Am={process:!0},Js={force:!0,process:!0},Qn=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,h=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),p=t;t in this.raw&&(p=t+"-d"+this.counter++),this.raw[p]=i,p in this.classes&&(h.selector="."+Jo(this.classes[p]));var v=Yo(p,i,h);if(!v)return null;this.register(v);var m=h.index===void 0?this.index.length:h.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 no?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof io&&this.keyframes&&(this.keyframes[t.name]=t.id)},r.unregister=function(t){delete this.map[t.key],t instanceof no?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof io&&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=Am);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,Js)}for(var h in c){var p=t.style[h],v=c[h];p==null&&p!==v&&t.prop(h,null,Js)}}},r.toString=function(t){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=dr(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}(),Nu=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 Qn(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}(),Lm=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}(),zm=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=nr(i,["attached"]),s=dr(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},Se(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),Nr=new zm,ao=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),so="2f1acc6c3a606b082e5eef5e54414ffb";ao[so]==null&&(ao[so]=0);var Xs=ao[so]++,Qs=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")+Xs+s+n:l+o.key+"-"+Xs+(s?"-"+s:"")+"-"+n};return t},Mu=function(r){var n;return function(){return n||(n=r()),n}},jm=function(r,n){try{return r.attributeStyleMap?r.attributeStyleMap.get(n):r.style.getPropertyValue(n)}catch{return""}},Fm=function(r,n,t){try{var i=t;if(Array.isArray(t)&&(i=Mt(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},Bm=function(r,n){try{r.attributeStyleMap?r.attributeStyleMap.delete(n):r.style.removeProperty(n)}catch{}},$m=function(r,n){return r.selectorText=n,r.selectorText===n},Au=Mu(function(){return document.querySelector("head")});function Gm(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 Wm(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 Hm(e){for(var r=Au(),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 Um(e){var r=Nr.registry;if(r.length>0){var n=Gm(r,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=Wm(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=Hm(t);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function qm(e,r){var n=r.insertionPoint,t=Um(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}Au().appendChild(e)}var Vm=Mu(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Zs=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]},el=function(r,n){var t=r.cssRules.length;return n===void 0||n>t?t:n},Km=function(){var r=document.createElement("style");return r.textContent=`
24
- `,r},Ym=function(){function e(n){this.getPropertyValue=jm,this.setProperty=Fm,this.removeProperty=Bm,this.setSelector=$m,this.hasInsertedRules=!1,this.cssRules=[],n&&Nr.add(n),this.sheet=n;var t=this.sheet?this.sheet.options:{},i=t.media,o=t.meta,a=t.element;this.element=a||Km(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=Vm();s&&this.element.setAttribute("nonce",s)}var r=e.prototype;return r.attach=function(){if(!(this.element.parentNode||!this.sheet)){qm(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=`
21
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(r.componentWillMount=fu,r.componentWillReceiveProps=pu),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=hu;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 gu(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=gu({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 Fo(e){var r=e.node,n=e.ignoreCollapsed,t=n===void 0?!0:n;return gu({getNodeKey:function(){},ignoreCollapsed:t,node:r,currentIndex:0,targetIndex:-1}).nextIndex-1}function vu(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=vu({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 mu(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=ue({},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 _=mu({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=_.treeIndex,_.node})),{node:r(m),treeIndex:y}}function bu(e){var r=e.treeData,n=e.getNodeKey,t=e.callback,i=e.ignoreCollapsed,o=i===void 0?!0:i;!r||r.length<1||vu({callback:t,getNodeKey:n,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:r},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function $v(e){var r=e.treeData,n=e.getNodeKey,t=e.callback,i=e.ignoreCollapsed,o=i;return!r||r.length<1?[]:mu({callback:t,getNodeKey:n,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:r},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function Wv(e){var r=e.treeData,n=e.expanded,t=n===void 0?!0:n;return $v({treeData:r,callback:function(o){var a=o.node;return ue(ue({},a),{},{expanded:t})},getNodeKey:function(o){var a=o.treeIndex;return a},ignoreCollapsed:!1})}function Dr(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?ue(ue({},h),{},{children:[].concat(ge(h.children.slice(0,b)),[C],ge(h.children.slice(b+1)))}):ue(ue({},h),{},{children:[].concat(ge(h.children.slice(0,b)),ge(h.children.slice(b+1)))});y+=1+Fo({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 Hv(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=Dr({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 yu(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=ue(ue(ue({},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,_=0;_<c.children.length;_+=1){if(b>=n){C=b,D=_;break}b+=1+Fo({node:c.children[_],ignoreCollapsed:i})}if(D===null){if(b<n&&!l)return{node:c,nextIndex:b};C=b,D=c.children.length}var w=ue(ue({},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 P=null,S=null,T=null,R=u+1,k=c.children;typeof k!="function"&&(k=k.map(function(H,E){if(P!==null)return H;var B=yu({targetDepth:r,minimumTreeIndex:n,newNode:t,ignoreCollapsed:i,expandParent:o,isLastChild:l&&E===k.length-1,node:H,currentIndex:R,currentDepth:f+1,getNodeKey:d,path:[]});return"insertedTreeIndex"in B&&(P=B.insertedTreeIndex,T=B.parentNode,S=B.parentPath),R=B.nextIndex,B.node}));var j=ue(ue({},c),{},{children:k}),M={node:j,nextIndex:R};return P!==null&&(M.insertedTreeIndex=P,M.parentPath=[].concat(ge(v(j)),ge(S)),M.parentNode=T),M}function xu(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=yu({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 Uv(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 bu({treeData:r,getNodeKey:n,ignoreCollapsed:i,callback:function(s){o.push(s)}}),o}function Su(e,r){return!!e.children&&typeof e.children!="function"&&e.children.some(function(n){return n===r||Su(n,r)})}function wu(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,wu(t,r+1))},r):r}function qv(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,_=[],w=!1,P=!1,S=m?[]:[].concat(ge(D),[r({node:y,treeIndex:b})]),T=m?null:{path:S,treeIndex:b},R=y.children&&typeof y.children!="function"&&y.children.length>0;!m&&i(ue(ue({},T),{},{node:y,searchQuery:t}))&&(u===o&&(P=!0),u+=1,w=!0);var k=b,j=ue({},y);return R&&(j.children=j.children.map(function(M){var H=p({node:M,currentIndex:k+1,path:S});return H.node.expanded?k=H.treeIndex:k+=1,(H.matches.length>0||H.hasFocusMatch)&&(_=[].concat(ge(_),ge(H.matches)),H.hasFocusMatch&&(P=!0),(s&&H.matches.length>0||(s||c)&&H.hasFocusMatch)&&(j.expanded=!0)),H.node})),!m&&!j.expanded&&(_=_.map(function(M){return ue(ue({},M),{},{treeIndex:null})})),w&&(_=[ue(ue({},T),{},{node:j})].concat(ge(_))),{node:_.length>0?j:y,matches:_,hasFocusMatch:P,treeIndex:k}},d=f({node:{children:n},isPseudoRoot:!0,currentIndex:-1});return{matches:d.matches,treeData:d.node.children}}function je(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.filter(Boolean).join(" ")}function Vv(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=et(e),t;if(r()){var i=et(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Jn(this,t)}}var Bo=function(e){Yn(n,e);var r=Vv(n);function n(){return Qr(this,n),r.apply(this,arguments)}return Zr(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,_=i.className,w=i.style,P=i.didDrop;i.treeId,i.isOver,i.parentNode;var S=i.rowDirection,T=jo(i,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]),R=p||d.title,k=h||d.subtitle,j=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,q){return Q.createElement("div",{key:q,className:je("rst__loadingCirclePoint",j)})}))):M=l(Q.createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));var H=v&&Su(v,d),E=!P&&c,B={left:-.5*o};return S==="rtl"&&(B={right:-.5*o}),Q.createElement("div",gt({style:{height:"100%"}},T),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:je(d.expanded?"rst__collapseButton":"rst__expandButton",j),style:B,onClick:function(){return a({node:d,path:m,treeIndex:y})}}),d.expanded&&!c&&Q.createElement("div",{style:{width:o},className:je("rst__lineChildren",j)})),Q.createElement("div",{className:je("rst__rowWrapper",j)},s(Q.createElement("div",{className:je("rst__row",E&&"rst__rowLandingPad",E&&!u&&"rst__rowCancelPad",b&&"rst__rowSearchMatch",C&&"rst__rowSearchFocus",j,_),style:ue({opacity:H?.5:1},w)},M,Q.createElement("div",{className:je("rst__rowContents",!f&&"rst__rowContentsDragDisabled",j)},Q.createElement("div",{className:je("rst__rowLabel",j)},Q.createElement("span",{className:je("rst__rowTitle",d.subtitle&&"rst__rowTitleWithSubtitle")},typeof R=="function"?R({node:d,path:m,treeIndex:y}):R),k&&Q.createElement("span",{className:"rst__rowSubtitle"},typeof k=="function"?k({node:d,path:m,treeIndex:y}):k)),Q.createElement("div",{className:"rst__rowToolbar"},D.map(function(G,q){return Q.createElement("div",{key:q,className:"rst__toolbarButton"},G)})))))))}}]),n}(I.Component);Bo.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"};Bo.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 Go=function(r){var n=r.isOver,t=r.canDrop;return Q.createElement("div",{className:je("rst__placeholder",t&&"rst__placeholderLandingPad",t&&!n&&"rst__placeholderCancelPad")})};Go.defaultProps={isOver:!1,canDrop:!1};Go.propTypes={isOver:x.bool,canDrop:x.bool};function Kv(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=et(e),t;if(r()){var i=et(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Jn(this,t)}}var $o=function(e){Yn(n,e);var r=Kv(n);function n(){return Qr(this,n),r.apply(this,arguments)}return Zr(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=jo(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,_=[];f.forEach(function(P,S){var T="";if(P>0?a===0?T="rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":S===D-1?T="rst__lineHalfHorizontalRight rst__lineFullVertical":T="rst__lineFullVertical":a===0?T="rst__lineHalfHorizontalRight":S===D-1&&(T="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),_.push(Q.createElement("div",{key:"pre_".concat(1+S),style:{width:u},className:je("rst__lineBlock",T,C)})),m!==a&&S===c){var R="";a===s+l-1?R="rst__highlightBottomLeftCorner":m===s?R="rst__highlightTopLeftCorner":R="rst__highlightLineVertical";var k;y==="rtl"?k={width:u,right:u*S}:k={width:u,left:u*S},_.push(Q.createElement("div",{key:S,style:k,className:je("rst__absoluteLineBlock",R,C)}))}});var w;return y==="rtl"?w={right:u*D}:w={left:u*D},d(Q.createElement("div",gt({},b,{className:je("rst__node",C)}),_,Q.createElement("div",{className:"rst__nodeContent",style:w},I.Children.map(o,function(P){return I.cloneElement(P,{isOver:p,canDrop:v,draggedNode:h})}))))}}]),n}(I.Component);$o.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"};$o.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 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=et(e),t;if(r()){var i=et(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Jn(this,t)}}var Wo=function(e){Yn(n,e);var r=Yv(n);function n(){return Qr(this,n),r.apply(this,arguments)}return Zr(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.connectDropTarget;i.treeId,i.drop;var s=jo(i,["children","connectDropTarget","treeId","drop"]);return a(Q.createElement("div",null,I.Children.map(o,function(l){return I.cloneElement(l,ue({},s))})))}}]),n}(I.Component);Wo.defaultProps={canDrop:!1,draggedNode:null};Wo.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 Jv(e){var r=e.treeIndex;return r}function Cu(e){return typeof e=="string"?e:e===null||tr(e)!=="object"||!e.props||!e.props.children||typeof e.props.children!="string"&&tr(e.props.children)!=="object"?"":typeof e.props.children=="string"?e.props.children:e.props.children.map(function(r){return Cu(r)}).join("")}function Fs(e,r,n,t,i){return typeof n[e]=="function"?String(n[e]({node:n,path:t,treeIndex:i})).indexOf(r)>-1:tr(n[e])==="object"?Cu(n[e]).indexOf(r)>-1:n[e]&&String(n[e]).indexOf(r)>-1}function Xv(e){var r=e.node,n=e.path,t=e.treeIndex,i=e.searchQuery;return Fs("title",i,r,n,t)||Fs("subtitle",i,r,n,t)}var Ho=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}},Xi=Ho(xu),Qv=Ho(Uv),Zv=Ho(Fo),em=function(){function e(r){Qr(this,e),this.treeRef=r}return Zr(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=Yr.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=wu(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=Xi({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 Rh(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 Ba(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 Ba(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 tm(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 rm(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=et(e),t;if(r()){var i=et(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return Jn(this,t)}}var Bs=1,bi=function(r){var n=ue(ue({},r),{},{style:ue(ue({},r.theme.style),r.style),innerStyle:ue(ue({},r.theme.innerStyle),r.innerStyle),reactVirtualizedListProps:ue(ue({},r.theme.reactVirtualizedListProps),r.reactVirtualizedListProps)}),t={nodeContentRenderer:Bo,placeholderRenderer:Go,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:$o};return Object.keys(t).forEach(function(i){r[i]===null&&(n[i]=typeof r.theme[i]<"u"?r.theme[i]:t[i])}),n},Xn=function(e){Yn(n,e);var r=rm(n);function n(t){var i;Qr(this,n),i=r.call(this,t);var o=bi(t),a=o.dndType,s=o.nodeContentRenderer,l=o.treeNodeRenderer,c=o.isVirtualized,u=o.slideRegionSize;return i.dndManager=new em(rt(i)),i.treeId="rst__".concat(Bs),Bs+=1,i.dndType=a||i.treeId,i.nodeContentRenderer=i.dndManager.wrapSource(s),i.treePlaceholderRenderer=i.dndManager.wrapPlaceholder(Wo),i.treeNodeRenderer=i.dndManager.wrapTarget(l),c&&(i.scrollZoneVirtualList=(bn.createScrollingComponent||Ig)(Yc),i.vStrength=bn.createVerticalStrength(u),i.hStrength=bn.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(rt(i)),i.moveNode=i.moveNode.bind(rt(i)),i.startDrag=i.startDrag.bind(rt(i)),i.dragHover=i.dragHover.bind(rt(i)),i.endDrag=i.endDrag.bind(rt(i)),i.drop=i.drop.bind(rt(i)),i.handleDndMonitorChange=i.handleDndMonitorChange.bind(rt(i)),i}return Zr(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 Qv({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=Dr({treeData:s.treeData,path:a,newNode:function(u){var f=u.node;return ue(ue({},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=xu({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=Hv({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=Xi({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:Dr({treeData:d,path:v.slice(0,-1),newNode:function(y){var b=y.node;return ue(ue({},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=Dr({treeData:a.treeData,path:c,newNode:function(h){var v=h.node;return ue({},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=bi(this.props),C=b.canDrag,D=b.generateNodeProps,_=b.scaffoldBlockPxWidth,w=b.searchFocusOffset,P=b.rowDirection,S=this.treeNodeRenderer,T=this.nodeContentRenderer,R=v[v.length-1],k=R in c,j=k&&c[R]===w,M={node:p,parentNode:h,path:v,lowerSiblingCounts:m,treeIndex:y,isSearchMatch:k,isSearchFocus:j},H=D?D(M):{},E=typeof C!="function"?C:C(M),B={treeIndex:y,scaffoldBlockPxWidth:_,node:p,path:v,treeId:this.treeId,rowDirection:P};return Q.createElement(S,gt({style:s,key:R,listIndex:a,getPrevRow:l,lowerSiblingCounts:m,swapFrom:u,swapLength:d,swapDepth:f},B),Q.createElement(T,gt({parentNode:h,isSearchMatch:k,isSearchFocus:j,canDrag:E,toggleChildrenVisibility:this.toggleChildrenVisibility},B,H)))}},{key:"render",value:function(){var i=this,o=bi(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,_=m.draggedMinimumTreeIndex,w=m.instanceProps,P=this.state.draggingTreeData||w.treeData,S=v==="rtl"?"rst__rtl":null,T,R=null,k=null;if(C&&_!==null){var j=Xi({treeData:P,newNode:C,depth:D,minimumTreeIndex:_,expandParent:!0,getNodeKey:h}),M=_;R=j.treeIndex,k=1+Zv({node:C}),T=tm(this.getRows(j.treeData),R,M,k)}else T=this.getRows(P);var H={};y.forEach(function(X,Z){var V=X.path;H[V[V.length-1]]=Z});var E=b!==null?{scrollToIndex:b}:{},B=s,G;if(T.length<1){var q=this.treePlaceholderRenderer,J=d;G=Q.createElement(q,{treeId:this.treeId,drop:this.drop},Q.createElement(J,null))}else if(f){B=ue({height:"100%"},B);var ee=this.scrollZoneVirtualList;G=Q.createElement(Uc,null,function(X){var Z=X.height,V=X.width;return Q.createElement(ee,gt({},E,{dragDropManager:a,verticalStrength:i.vStrength,horizontalStrength:i.hStrength,speed:30,scrollToAlignment:"start",className:"rst__virtualScrollOverride",width:V,onScroll:function(ie){var $=ie.scrollTop;i.scrollTop=$},height:Z,style:c,rowCount:T.length,estimatedRowSize:typeof u!="function"?u:void 0,rowHeight:typeof u!="function"?u:function(re){var ie=re.index;return u({index:ie,treeIndex:ie,node:T[ie].node,path:T[ie].path})},rowRenderer:function(ie){var $=ie.index,W=ie.style;return i.renderRow(T[$],{listIndex:$,style:W,getPrevRow:function(){return T[$-1]||null},matchKeys:H,swapFrom:R,swapDepth:D,swapLength:k})}},p))})}else G=T.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 T[Z-1]||null},matchKeys:H,swapFrom:R,swapDepth:D,swapLength:k})});return Q.createElement("div",{className:je("rst__tree",l,S),style:B},G)}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.instanceProps,s={},l=rs(a.treeData,i.treeData);return a.treeData=i.treeData,l?rs(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=ue(ue({},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=qv({getNodeKey:u,treeData:v?Wv({treeData:m.treeData,expanded:!1}):m.treeData,searchQuery:d,searchMethod:p||Xv,searchFocusOffset:h,expandAllMatchPaths:s&&!l,expandFocusMatchPaths:!!s}),C=b.treeData,D=b.matches;s&&(y.instanceProps.ignoreOneTreeUpdate=!0,c(C)),f&&f(D);var _=null;return a&&h!==null&&h<D.length&&(_=D[h].treeIndex),y.searchMatches=D,y.searchFocusTreeIndex=_,y}},{key:"loadLazyChildren",value:function(i,o){var a=o.instanceProps;bu({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(Dr({treeData:a.treeData,path:u,newNode:function(m){var y=m.node;return y===c?ue(ue({},y),{},{children:h}):y},getNodeKey:i.getNodeKey}))}})}})}}]),n}(I.Component);Xn.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};Xn.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:function(){return!0},className:"",dndType:null,generateNodeProps:null,getNodeKey:Jv,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"};Gv(Xn);var nm=function(r){return Q.createElement(Ih.Consumer,null,function(n){var t=n.dragDropManager;return t===void 0?null:Q.createElement(Xn,gt({},r,{dragDropManager:t}))})},xn={exports:{}},Gs=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},en=(typeof window>"u"?"undefined":Gs(window))==="object"&&(typeof document>"u"?"undefined":Gs(document))==="object"&&document.nodeType===9,im={}.constructor;function Qi(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Qi);if(e.constructor!==im)return e;var r={};for(var n in e)r[n]=Qi(e[n]);return r}function Uo(e,r,n){e===void 0&&(e="unnamed");var t=n.jss,i=Qi(r),o=t.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var $s=function(r,n){for(var t="",i=0;i<r.length&&r[i]!=="!important";i++)t&&(t+=n),t+=r[i];return t},Mt=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+=$s(r[t]," ");else n=$s(r,", ");return r[r.length-1]==="!important"&&(n+=" !important"),n};function dr(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
22
+ `,space:" "}}function yr(e,r){for(var n="",t=0;t<r;t++)n+=" ";return n+e}function Gr(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=dr(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+=yr(p+":"+u+Mt(h)+";",a))}}else for(var v in s){var m=s[v];m!=null&&(t&&(t+=c),t+=yr(v+":"+u+Mt(m)+";",a))}for(var y in r){var b=r[y];b!=null&&y!=="fallbacks"&&(t&&(t+=c),t+=yr(y+":"+u+Mt(b)+";",a))}return!t&&!n.allowEmpty||!e?t:(a--,t&&(t=""+c+t+c),yr(""+e+u+"{"+t,a)+yr("}",a))}var om=/([[\].#*$><+~=|^:(),"'`\s])/g,Ws=typeof CSS<"u"&&CSS.escape,qo=function(e){return Ws?Ws(e):e.replace(om,"\\$1")},Iu=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}(),Zi=function(e){Wn(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="."+qo(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]=Mt(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 Gr(this.selectorText,this.style,s)},Se(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}(Iu),am={onCreateRule:function(r,n,t){return r[0]==="@"||t.parent&&t.parent.type==="keyframes"?null:new Zi(r,n,t)}},yi={indent:1,children:!0},sm=/@([\w-]+)/,lm=function(){function e(n,t,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(sm);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new Qn(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=yi);var i=dr(t),o=i.linebreak;if(t.indent==null&&(t.indent=yi.indent),t.children==null&&(t.children=yi.children),t.children===!1)return this.query+" {}";var a=this.rules.toString(t);return a?this.query+" {"+o+a+o+"}":""},e}(),cm=/@container|@media|@supports\s+/,um={onCreateRule:function(r,n,t){return cm.test(r)?new lm(r,n,t):null}},xi={indent:1,children:!0},dm=/@keyframes\s+([\w-]+)/,eo=function(){function e(n,t,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(dm);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:qo(l(this,s)),this.rules=new Qn(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=xi);var i=dr(t),o=i.linebreak;if(t.indent==null&&(t.indent=xi.indent),t.children==null&&(t.children=xi.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}(),fm=/@keyframes\s+/,pm=/\$([\w-]+)/g,to=function(r,n){return typeof r=="string"?r.replace(pm,function(t,i){return i in n?n[i]:t}):r},Hs=function(r,n,t){var i=r[n],o=to(i,t);o!==i&&(r[n]=o)},hm={onCreateRule:function(r,n,t){return typeof r=="string"&&fm.test(r)?new eo(r,n,t):null},onProcessStyle:function(r,n,t){return n.type!=="style"||!t||("animation-name"in r&&Hs(r,"animation-name",t.keyframes),"animation"in r&&Hs(r,"animation",t.keyframes)),r},onChangeValue:function(r,n,t){var i=t.options.sheet;if(!i)return r;switch(n){case"animation":return to(r,i.keyframes);case"animation-name":return to(r,i.keyframes);default:return r}}},gm=function(e){Wn(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 Gr(this.key,this.style,s)},r}(Iu),vm={onCreateRule:function(r,n,t){return t.parent&&t.parent.type==="keyframes"?new gm(r,n,t):null}},mm=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=dr(t),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=Gr(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return Gr(this.at,this.style,t)},e}(),bm=/@font-face/,ym={onCreateRule:function(r,n,t){return bm.test(r)?new mm(r,n,t):null}},xm=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 Gr(this.key,this.style,t)},e}(),Sm={onCreateRule:function(r,n,t){return r==="@viewport"||r==="@-ms-viewport"?new xm(r,n,t):null}},wm=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}(),Cm={"@charset":!0,"@import":!0,"@namespace":!0},Im={onCreateRule:function(r,n,t){return r in Cm?new wm(r,n,t):null}},Us=[am,um,hm,vm,ym,Sm,Im],Rm={process:!0},qs={force:!0,process:!0},Qn=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="."+qo(this.classes[h]));var v=Uo(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 Zi?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof eo&&this.keyframes&&(this.keyframes[t.name]=t.id)},r.unregister=function(t){delete this.map[t.key],t instanceof Zi?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof eo&&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=Rm);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,qs)}for(var p in c){var h=t.style[p],v=c[p];h==null&&h!==v&&t.prop(p,null,qs)}}},r.toString=function(t){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=dr(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}(),Ru=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 Qn(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}(),Tm=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}(),Dm=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=nr(i,["attached"]),s=dr(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},Se(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),Nr=new Dm,ro=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),no="2f1acc6c3a606b082e5eef5e54414ffb";ro[no]==null&&(ro[no]=0);var Vs=ro[no]++,Ks=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")+Vs+s+n:l+o.key+"-"+Vs+(s?"-"+s:"")+"-"+n};return t},Tu=function(r){var n;return function(){return n||(n=r()),n}},Pm=function(r,n){try{return r.attributeStyleMap?r.attributeStyleMap.get(n):r.style.getPropertyValue(n)}catch{return""}},_m=function(r,n,t){try{var i=t;if(Array.isArray(t)&&(i=Mt(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},km=function(r,n){try{r.attributeStyleMap?r.attributeStyleMap.delete(n):r.style.removeProperty(n)}catch{}},Om=function(r,n){return r.selectorText=n,r.selectorText===n},Du=Tu(function(){return document.querySelector("head")});function Em(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 Nm(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 Mm(e){for(var r=Du(),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 Am(e){var r=Nr.registry;if(r.length>0){var n=Em(r,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=Nm(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=Mm(t);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function Lm(e,r){var n=r.insertionPoint,t=Am(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}Du().appendChild(e)}var zm=Tu(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Ys=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]},Js=function(r,n){var t=r.cssRules.length;return n===void 0||n>t?t:n},jm=function(){var r=document.createElement("style");return r.textContent=`
24
+ `,r},Fm=function(){function e(n){this.getPropertyValue=Pm,this.setProperty=_m,this.removeProperty=km,this.setSelector=Om,this.hasInsertedRules=!1,this.cssRules=[],n&&Nr.add(n),this.sheet=n;var t=this.sheet?this.sheet.options:{},i=t.media,o=t.meta,a=t.element;this.element=a||jm(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=zm();s&&this.element.setAttribute("nonce",s)}var r=e.prototype;return r.attach=function(){if(!(this.element.parentNode||!this.sheet)){Lm(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
25
  `)}},r.deploy=function(){var t=this.sheet;if(t){if(t.options.link){this.insertRules(t.rules);return}this.element.textContent=`
26
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=el(o,i);if(s=Zs(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=el(o,i),f=Zs(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 Nu&&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}(),Jm=0,Xm=function(){function e(n){this.id=Jm++,this.version="10.10.0",this.plugins=new Lm,this.options={id:{minify:!1},createGenerateId:Qs,Renderer:en?Ym:null,plugins:[]},this.generateId=Qs({minify:!1});for(var t=0;t<Ys.length;t++)this.plugins.use(Ys[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=Nr.index===0?0:Nr.index+1);var s=new Nu(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(),Nr.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=Yo(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}(),Lu=function(r){return new Xm(r)},Xo=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function zu(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=zu(t);o&&(r||(r={}),r[n]=o)}}return r}/**
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=Js(o,i);if(s=Ys(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=Js(o,i),f=Ys(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 Ru&&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}(),Bm=0,Gm=function(){function e(n){this.id=Bm++,this.version="10.10.0",this.plugins=new Tm,this.options={id:{minify:!1},createGenerateId:Ks,Renderer:en?Fm:null,plugins:[]},this.generateId=Ks({minify:!1});for(var t=0;t<Us.length;t++)this.plugins.use(Us[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=Nr.index===0?0:Nr.index+1);var s=new Ru(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(),Nr.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=Uo(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}(),Pu=function(r){return new Gm(r)},Vo=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function _u(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=_u(t);o&&(r||(r={}),r[n]=o)}}return r}/**
28
28
  * A better abstraction over CSS.
29
29
  *
30
30
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
31
31
  * @website https://github.com/cssinjs/jss
32
32
  * @license MIT
33
- */Lu();function Si(e){return e&&Hp(e)==="object"&&e.constructor===Object}function ju(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},t=n.clone?K({},e):e;return Si(e)&&Si(r)&&Object.keys(r).forEach(function(i){i!=="__proto__"&&(Si(r[i])&&i in e?t[i]=ju(e[i],r[i],n):t[i]=r[i])}),t}function Fu(){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 Zt={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)}},Qm=Q.createContext(null);function Zm(){var e=Q.useContext(Qm);return e}var eb=typeof Symbol=="function"&&Symbol.for;const tb=eb?Symbol.for("mui.nested"):"__THEME_NESTED__";var rb=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function nb(){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(rb.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var h="".concat(s).concat(d,"-").concat(u.key);return!f.options.theme[tb]||a!==""?h:"".concat(h,"-").concat(c())}return"".concat(s).concat(i).concat(c())}}var Bu=Date.now(),wi="fnValues"+Bu,Ci="fnStyle"+ ++Bu,ib=function(){return{onCreateRule:function(n,t,i){if(typeof t!="function")return null;var o=Yo(n,{},i);return o[Ci]=t,o},onProcessStyle:function(n,t){if(wi in t||Ci 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[wi]=i,n},onUpdate:function(n,t,i,o){var a=t,s=a[Ci];s&&(a.style=s(n)||{});var l=a[wi];if(l)for(var c in l)a.prop(c,l[c](n),o)}}},vt="@global",lo="@global ",ob=function(){function e(n,t,i){this.type="global",this.at=vt,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new Qn(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}(),ab=function(){function e(n,t,i){this.type="global",this.at=vt,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(lo.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}(),sb=/\s*,\s*/g;function $u(e,r){for(var n=e.split(sb),t="",i=0;i<n.length;i++)t+=r+" "+n[i].trim(),n[i+1]&&(t+=", ");return t}function lb(e,r){var n=e.options,t=e.style,i=t?t[vt]:null;if(i){for(var o in i)r.addRule(o,i[o],K({},n,{selector:$u(o,e.selector)}));delete t[vt]}}function cb(e,r){var n=e.options,t=e.style;for(var i in t)if(!(i[0]!=="@"||i.substr(0,vt.length)!==vt)){var o=$u(i.substr(vt.length),e.selector);r.addRule(o,t[i],K({},n,{selector:o})),delete t[i]}}function ub(){function e(n,t,i){if(!n)return null;if(n===vt)return new ob(n,t,i);if(n[0]==="@"&&n.substr(0,lo.length)===lo)return new ab(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||(lb(n,t),cb(n,t))}return{onCreateRule:e,onProcessRule:r}}var tl=/\s*,\s*/g,db=/&/g,fb=/\$([\w-]+)/g;function hb(){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(tl),s=i.split(tl),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(db,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,h=f[0]==="@";if(!(!d&&!h)){if(c=n(s,l,c),d){var p=r(f,s.selector);u||(u=e(l,a)),p=p.replace(fb,u);var v=s.key+"-"+f;"replaceRule"in l?l.replaceRule(v,i[f],K({},c,{selector:p})):l.addRule(v,i[f],K({},c,{selector:p}))}else h&&l.addRule(f,{},c).addRule(s.key,i[f],{selector:s.selector});delete i[f]}}return i}return{onProcessStyle:t}}var pb=/[A-Z]/g,gb=/^ms-/,Ii={};function vb(e){return"-"+e.toLowerCase()}function Gu(e){if(Ii.hasOwnProperty(e))return Ii[e];var r=e.replace(pb,vb);return Ii[e]=gb.test(r)?"-"+r:r}function On(e){var r={};for(var n in e){var t=n.indexOf("--")===0?n:Gu(n);r[t]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(On):r.fallbacks=On(e.fallbacks)),r}function mb(){function e(n){if(Array.isArray(n)){for(var t=0;t<n.length;t++)n[t]=On(n[t]);return n}return On(n)}function r(n,t,i){if(t.indexOf("--")===0)return n;var o=Gu(t);return t===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:r}}var z=Xo&&CSS?CSS.px:"px",un=Xo&&CSS?CSS.ms:"ms",Ut=Xo&&CSS?CSS.percent:"%",bb={"animation-delay":un,"animation-duration":un,"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":Ut,"perspective-origin-y":Ut,"transform-origin":Ut,"transform-origin-x":Ut,"transform-origin-y":Ut,"transform-origin-z":Ut,"transition-delay":un,"transition-duration":un,"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 Wu(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 yb=Wu(bb);function Mr(e,r,n){if(r==null)return r;if(Array.isArray(r))for(var t=0;t<r.length;t++)r[t]=Mr(e,r[t],n);else if(typeof r=="object")if(e==="fallbacks")for(var i in r)r[i]=Mr(i,r[i],n);else for(var o in r)r[o]=Mr(e+"-"+o,r[o],n);else if(typeof r=="number"&&isNaN(r)===!1){var a=n[e]||yb[e];return a&&!(r===0&&a===z)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function xb(e){e===void 0&&(e={});var r=Wu(e);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=Mr(a,i[a],r);return i}function t(i,o){return Mr(o,i,r)}return{onProcessStyle:n,onChangeValue:t}}var _r="",co="",Hu="",Uu="",Sb=en&&"ontouchstart"in document.documentElement;if(en){var Ri={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},wb=document.createElement("p"),Ti=wb.style,Cb="Transform";for(var Di in Ri)if(Di+Cb in Ti){_r=Di,co=Ri[Di];break}_r==="Webkit"&&"msHyphens"in Ti&&(_r="ms",co=Ri.ms,Uu="edge"),_r==="Webkit"&&"-apple-trailing-word"in Ti&&(Hu="apple")}var ce={js:_r,css:co,vendor:Hu,browser:Uu,isTouch:Sb};function Ib(e){return e[1]==="-"||ce.js==="ms"?e:"@"+ce.css+"keyframes"+e.substr(10)}var Rb={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:ce.js==="ms"?"-webkit-"+r:ce.css+r}},Tb={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:ce.js==="Webkit"?ce.css+"print-"+r:r}},Db=/[-\s]+(.)?/g;function _b(e,r){return r?r.toUpperCase():""}function Qo(e){return e.replace(Db,_b)}function St(e){return Qo("-"+e)}var Pb={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(ce.js==="Webkit"){var t="mask-image";if(Qo(t)in n)return r;if(ce.js+St(t)in n)return ce.css+r}return r}},kb={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:ce.vendor==="apple"&&!ce.isTouch?ce.css+r:r}},Ob={noPrefill:["transform"],supportedProperty:function(r,n,t){return r!=="transform"?!1:t.transform?r:ce.css+r}},Eb={noPrefill:["transition"],supportedProperty:function(r,n,t){return r!=="transition"?!1:t.transition?r:ce.css+r}},Nb={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:ce.js==="Webkit"||ce.js==="ms"&&ce.browser!=="edge"?ce.css+r:r}},Mb={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:ce.js==="Moz"||ce.js==="ms"||ce.vendor==="apple"?ce.css+r:r}},Ab={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(ce.js==="Webkit"){var t="WebkitColumn"+St(r);return t in n?ce.css+"column-"+r:!1}if(ce.js==="Moz"){var i="page"+St(r);return i in n?"page-"+r:!1}return!1}},Lb={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(ce.js==="Moz")return r;var t=r.replace("-inline","");return ce.js+St(t)in n?ce.css+t:!1}},zb={supportedProperty:function(r,n){return Qo(r)in n?r:!1}},jb={supportedProperty:function(r,n){var t=St(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:ce.js+t in n?ce.css+r:ce.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+r:!1}},Fb={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:ce.js==="ms"?""+ce.css+r:r}},Bb={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:ce.js==="ms"?ce.css+"scroll-chaining":r}},$b={"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"},Gb={supportedProperty:function(r,n){var t=$b[r];return t&&ce.js+St(t)in n?ce.css+t:!1}},qu={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"},Wb=Object.keys(qu),Hb=function(r){return ce.css+r},Ub={supportedProperty:function(r,n,t){var i=t.multiple;if(Wb.indexOf(r)>-1){var o=qu[r];if(!Array.isArray(o))return ce.js+St(o)in n?ce.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(ce.js+St(o[0])in n))return!1;return o.map(Hb)}return!1}},Vu=[Rb,Tb,Pb,kb,Ob,Eb,Nb,Mb,Ab,Lb,zb,jb,Fb,Bb,Gb,Ub],rl=Vu.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),qb=Vu.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,tu(r.noPrefill)),e},[]),Pr,kt={};if(en){Pr=document.createElement("p");var _i=window.getComputedStyle(document.documentElement,"");for(var Pi in _i)isNaN(Pi)||(kt[_i[Pi]]=_i[Pi]);qb.forEach(function(e){return delete kt[e]})}function uo(e,r){if(r===void 0&&(r={}),!Pr)return e;if(kt[e]!=null)return kt[e];(e==="transition"||e==="transform")&&(r[e]=e in Pr.style);for(var n=0;n<rl.length&&(kt[e]=rl[n](e,Pr.style,r),!kt[e]);n++);try{Pr.style[e]=""}catch{return!1}return kt[e]}var qt={},Vb={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Kb=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,ut;function Yb(e,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var t=r?uo(r):", "+uo(n);return t||r||n}en&&(ut=document.createElement("p"));function nl(e,r){var n=r;if(!ut||e==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=e+n;if(qt[t]!=null)return qt[t];try{ut.style[e]=n}catch{return qt[t]=!1,!1}if(Vb[e])n=n.replace(Kb,Yb);else if(ut.style[e]===""&&(n=ce.css+n,n==="-ms-flex"&&(ut.style[e]="-ms-flexbox"),ut.style[e]=n,ut.style[e]===""))return qt[t]=!1,!1;return ut.style[e]="",qt[t]=n,qt[t]}function Jb(){function e(i){if(i.type==="keyframes"){var o=i;o.at=Ib(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=uo(o);l&&l!==o&&(s=!0);var c=!1,u=nl(l,Mt(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 nl(o,Mt(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:t}}function Xb(){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 Qb(){return{plugins:[ib(),ub(),hb(),mb(),xb(),typeof window>"u"?null:Jb(),Xb()]}}var Zb=Lu(Qb()),ey=nb(),ty=new Map,ry={disableGeneration:!1,generateClassName:ey,jss:Zb,sheetsCache:null,sheetsManager:ty,sheetsRegistry:null},ny=Q.createContext(ry),il=-1e9;function iy(){return il+=1,il}var oy={};function ay(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]=ju(s[l],a[l])}),s},options:{}}}function sy(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=Fu({baseClasses:t.cacheClasses.lastJSS,newClasses:r,Component:n})),t.cacheClasses.value}function ly(e,r){var n=e.state,t=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=Zt.get(i.sheetsManager,o,t);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Zt.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=Zt.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&&Zt.set(i.sheetsCache,o,t,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=zu(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=Fu({baseClasses:s.staticSheet.classes,newClasses:d.classes}),c&&c.add(d)}else n.classes=s.staticSheet.classes;s.refs+=1}}function cy(e,r){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(r)}function uy(e){var r=e.state,n=e.theme,t=e.stylesOptions,i=e.stylesCreator;if(!t.disableGeneration){var o=Zt.get(t.sheetsManager,i,n);o.refs-=1;var a=t.sheetsRegistry;o.refs===0&&(Zt.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 dy(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 fy(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?oy:o,s=Xt(r,["name","classNamePrefix","Component","defaultTheme"]),l=ay(e),c=n||t||"makeStyles";l.options={index:iy(),name:n,meta:c,classNamePrefix:c};var u=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=Zm()||a,p=K({},Q.useContext(ny),s),v=Q.useRef(),m=Q.useRef();dy(function(){var b={name:n,state:{},stylesCreator:l,stylesOptions:p,theme:h};return ly(b,d),m.current=!1,v.current=b,function(){uy(b)}},[h,l]),Q.useEffect(function(){m.current&&cy(v.current,d),m.current=!0});var y=sy(v.current,d.classes,i);return y};return u}const hy=Object.freeze(Object.defineProperty({__proto__:null,default:fy},Symbol.toStringTag,{value:"Module"})),py=$n(hy);var gy=xn.exports,ol;function vy(){return ol||(ol=1,function(e,r){(function(n,t){e.exports=t()})(typeof self<"u"?self:gy,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=mc()},function(n,t){n.exports=bc()},function(n,t){n.exports=py},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,T=b.node,R=b.title,k=b.draggedNode,j=b.path,M=b.treeIndex,H=b.isSearchMatch,E=b.isSearchFocus,B=b.icons,$=b.buttons,q=b.className,J=b.style,ee=b.didDrop,X=b.lowerSiblingCounts,Z=b.listIndex,V=b.swapFrom,re=b.swapLength,ie=b.swapDepth,G=b.onItemClick,W=y(),L=R||T.title,N=k&&a(k,T),O=!ee&&w,U=[];X.forEach(function(ae,de){if(de>0&&(U.push(u.default.createElement("div",{className:W.lineBlock,key:"pre_"+(1+de),style:{width:C}})),M!==Z&&de===ie)){var he="";he=Z===V+re-1?W.highlightBottomLeftCorner:M===V?W.highlightTopLeftCorner:W.highlightLineVertical,U.push(u.default.createElement("div",{className:W.absoluteLineBlock+" "+he,key:"highlight_"+(1+de),style:{left:C*de,width:C}}))}});var te=u.default.createElement("div",{className:W.contentNode},D(u.default.createElement("div",{className:W.row+(T.active?" "+W.activeRow:"")+(O?" "+W.rowLandingPad:"")+(w?" "+W.rowLandingPadDisable:"")+(O&&!_?" "+W.rowCancelPad:"")+(H?" "+W.rowSearchMatch:"")+(E?" "+W.rowSearchFocus:"")+(S?"":" "+W.rowWrapperDragDisabled)+(q?" "+q:""),onClick:function(){return G?G(l({},T,{index:M})):null},style:l({opacity:N?.5:1},J)},T.type==="divider"?u.default.createElement("div",{className:W.divider}):u.default.createElement(c.Fragment,null,U,u.default.createElement("div",{className:W.rowIcon},B),u.default.createElement("div",{className:W.rowLabel},typeof L=="string"?u.default.createElement("span",{className:W.rowTitle},L):typeof L=="function"?L({node:T,path:j,treeIndex:M}):L),u.default.createElement("div",{className:W.rowToolbar},$)))));return S?P(te,{dropEffect:"copy"}):te}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),h=i(2),p=o(h),v=i(5),m=o(v),y=(0,p.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,T=m.draggedNode,R=m.canDrop,k=v();return _(l.default.createElement("div",{className:k.node},s.Children.map(y,function(j){return(0,s.cloneElement)(j,{canDrop:R,draggedNode:T,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),h=i(7),p=o(h),v=(0,d.default)(p.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"}}}}])})}(xn)),xn.exports}var my=vy();const by=Gn(my);/**
33
+ */Pu();function Si(e){return e&&Mh(e)==="object"&&e.constructor===Object}function ku(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},t=n.clone?K({},e):e;return Si(e)&&Si(r)&&Object.keys(r).forEach(function(i){i!=="__proto__"&&(Si(r[i])&&i in e?t[i]=ku(e[i],r[i],n):t[i]=r[i])}),t}function Ou(){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 Zt={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)}},$m=Q.createContext(null);function Wm(){var e=Q.useContext($m);return e}var Hm=typeof Symbol=="function"&&Symbol.for;const Um=Hm?Symbol.for("mui.nested"):"__THEME_NESTED__";var qm=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Vm(){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(qm.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var p="".concat(s).concat(d,"-").concat(u.key);return!f.options.theme[Um]||a!==""?p:"".concat(p,"-").concat(c())}return"".concat(s).concat(i).concat(c())}}var Eu=Date.now(),wi="fnValues"+Eu,Ci="fnStyle"+ ++Eu,Km=function(){return{onCreateRule:function(n,t,i){if(typeof t!="function")return null;var o=Uo(n,{},i);return o[Ci]=t,o},onProcessStyle:function(n,t){if(wi in t||Ci 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[wi]=i,n},onUpdate:function(n,t,i,o){var a=t,s=a[Ci];s&&(a.style=s(n)||{});var l=a[wi];if(l)for(var c in l)a.prop(c,l[c](n),o)}}},vt="@global",io="@global ",Ym=function(){function e(n,t,i){this.type="global",this.at=vt,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new Qn(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}(),Jm=function(){function e(n,t,i){this.type="global",this.at=vt,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(io.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}(),Xm=/\s*,\s*/g;function Nu(e,r){for(var n=e.split(Xm),t="",i=0;i<n.length;i++)t+=r+" "+n[i].trim(),n[i+1]&&(t+=", ");return t}function Qm(e,r){var n=e.options,t=e.style,i=t?t[vt]:null;if(i){for(var o in i)r.addRule(o,i[o],K({},n,{selector:Nu(o,e.selector)}));delete t[vt]}}function Zm(e,r){var n=e.options,t=e.style;for(var i in t)if(!(i[0]!=="@"||i.substr(0,vt.length)!==vt)){var o=Nu(i.substr(vt.length),e.selector);r.addRule(o,t[i],K({},n,{selector:o})),delete t[i]}}function eb(){function e(n,t,i){if(!n)return null;if(n===vt)return new Ym(n,t,i);if(n[0]==="@"&&n.substr(0,io.length)===io)return new Jm(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||(Qm(n,t),Zm(n,t))}return{onCreateRule:e,onProcessRule:r}}var Xs=/\s*,\s*/g,tb=/&/g,rb=/\$([\w-]+)/g;function nb(){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(Xs),s=i.split(Xs),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(tb,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(rb,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 ib=/[A-Z]/g,ob=/^ms-/,Ii={};function ab(e){return"-"+e.toLowerCase()}function Mu(e){if(Ii.hasOwnProperty(e))return Ii[e];var r=e.replace(ib,ab);return Ii[e]=ob.test(r)?"-"+r:r}function On(e){var r={};for(var n in e){var t=n.indexOf("--")===0?n:Mu(n);r[t]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(On):r.fallbacks=On(e.fallbacks)),r}function sb(){function e(n){if(Array.isArray(n)){for(var t=0;t<n.length;t++)n[t]=On(n[t]);return n}return On(n)}function r(n,t,i){if(t.indexOf("--")===0)return n;var o=Mu(t);return t===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:r}}var z=Vo&&CSS?CSS.px:"px",un=Vo&&CSS?CSS.ms:"ms",Ut=Vo&&CSS?CSS.percent:"%",lb={"animation-delay":un,"animation-duration":un,"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":Ut,"perspective-origin-y":Ut,"transform-origin":Ut,"transform-origin-x":Ut,"transform-origin-y":Ut,"transform-origin-z":Ut,"transition-delay":un,"transition-duration":un,"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 Au(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 cb=Au(lb);function Mr(e,r,n){if(r==null)return r;if(Array.isArray(r))for(var t=0;t<r.length;t++)r[t]=Mr(e,r[t],n);else if(typeof r=="object")if(e==="fallbacks")for(var i in r)r[i]=Mr(i,r[i],n);else for(var o in r)r[o]=Mr(e+"-"+o,r[o],n);else if(typeof r=="number"&&isNaN(r)===!1){var a=n[e]||cb[e];return a&&!(r===0&&a===z)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function ub(e){e===void 0&&(e={});var r=Au(e);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=Mr(a,i[a],r);return i}function t(i,o){return Mr(o,i,r)}return{onProcessStyle:n,onChangeValue:t}}var Pr="",oo="",Lu="",zu="",db=en&&"ontouchstart"in document.documentElement;if(en){var Ri={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},fb=document.createElement("p"),Ti=fb.style,pb="Transform";for(var Di in Ri)if(Di+pb in Ti){Pr=Di,oo=Ri[Di];break}Pr==="Webkit"&&"msHyphens"in Ti&&(Pr="ms",oo=Ri.ms,zu="edge"),Pr==="Webkit"&&"-apple-trailing-word"in Ti&&(Lu="apple")}var ce={js:Pr,css:oo,vendor:Lu,browser:zu,isTouch:db};function hb(e){return e[1]==="-"||ce.js==="ms"?e:"@"+ce.css+"keyframes"+e.substr(10)}var gb={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:ce.js==="ms"?"-webkit-"+r:ce.css+r}},vb={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:ce.js==="Webkit"?ce.css+"print-"+r:r}},mb=/[-\s]+(.)?/g;function bb(e,r){return r?r.toUpperCase():""}function Ko(e){return e.replace(mb,bb)}function St(e){return Ko("-"+e)}var yb={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(ce.js==="Webkit"){var t="mask-image";if(Ko(t)in n)return r;if(ce.js+St(t)in n)return ce.css+r}return r}},xb={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:ce.vendor==="apple"&&!ce.isTouch?ce.css+r:r}},Sb={noPrefill:["transform"],supportedProperty:function(r,n,t){return r!=="transform"?!1:t.transform?r:ce.css+r}},wb={noPrefill:["transition"],supportedProperty:function(r,n,t){return r!=="transition"?!1:t.transition?r:ce.css+r}},Cb={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:ce.js==="Webkit"||ce.js==="ms"&&ce.browser!=="edge"?ce.css+r:r}},Ib={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:ce.js==="Moz"||ce.js==="ms"||ce.vendor==="apple"?ce.css+r:r}},Rb={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(ce.js==="Webkit"){var t="WebkitColumn"+St(r);return t in n?ce.css+"column-"+r:!1}if(ce.js==="Moz"){var i="page"+St(r);return i in n?"page-"+r:!1}return!1}},Tb={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(ce.js==="Moz")return r;var t=r.replace("-inline","");return ce.js+St(t)in n?ce.css+t:!1}},Db={supportedProperty:function(r,n){return Ko(r)in n?r:!1}},Pb={supportedProperty:function(r,n){var t=St(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:ce.js+t in n?ce.css+r:ce.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+r:!1}},_b={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:ce.js==="ms"?""+ce.css+r:r}},kb={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:ce.js==="ms"?ce.css+"scroll-chaining":r}},Ob={"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"},Eb={supportedProperty:function(r,n){var t=Ob[r];return t&&ce.js+St(t)in n?ce.css+t:!1}},ju={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"},Nb=Object.keys(ju),Mb=function(r){return ce.css+r},Ab={supportedProperty:function(r,n,t){var i=t.multiple;if(Nb.indexOf(r)>-1){var o=ju[r];if(!Array.isArray(o))return ce.js+St(o)in n?ce.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(ce.js+St(o[0])in n))return!1;return o.map(Mb)}return!1}},Fu=[gb,vb,yb,xb,Sb,wb,Cb,Ib,Rb,Tb,Db,Pb,_b,kb,Eb,Ab],Qs=Fu.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Lb=Fu.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,Vc(r.noPrefill)),e},[]),_r,kt={};if(en){_r=document.createElement("p");var Pi=window.getComputedStyle(document.documentElement,"");for(var _i in Pi)isNaN(_i)||(kt[Pi[_i]]=Pi[_i]);Lb.forEach(function(e){return delete kt[e]})}function ao(e,r){if(r===void 0&&(r={}),!_r)return e;if(kt[e]!=null)return kt[e];(e==="transition"||e==="transform")&&(r[e]=e in _r.style);for(var n=0;n<Qs.length&&(kt[e]=Qs[n](e,_r.style,r),!kt[e]);n++);try{_r.style[e]=""}catch{return!1}return kt[e]}var qt={},zb={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},jb=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,ut;function Fb(e,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var t=r?ao(r):", "+ao(n);return t||r||n}en&&(ut=document.createElement("p"));function Zs(e,r){var n=r;if(!ut||e==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=e+n;if(qt[t]!=null)return qt[t];try{ut.style[e]=n}catch{return qt[t]=!1,!1}if(zb[e])n=n.replace(jb,Fb);else if(ut.style[e]===""&&(n=ce.css+n,n==="-ms-flex"&&(ut.style[e]="-ms-flexbox"),ut.style[e]=n,ut.style[e]===""))return qt[t]=!1,!1;return ut.style[e]="",qt[t]=n,qt[t]}function Bb(){function e(i){if(i.type==="keyframes"){var o=i;o.at=hb(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=ao(o);l&&l!==o&&(s=!0);var c=!1,u=Zs(l,Mt(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 Zs(o,Mt(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:t}}function Gb(){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 $b(){return{plugins:[Km(),eb(),nb(),sb(),ub(),typeof window>"u"?null:Bb(),Gb()]}}var Wb=Pu($b()),Hb=Vm(),Ub=new Map,qb={disableGeneration:!1,generateClassName:Hb,jss:Wb,sheetsCache:null,sheetsManager:Ub,sheetsRegistry:null},Vb=Q.createContext(qb),el=-1e9;function Kb(){return el+=1,el}var Yb={};function Jb(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]=ku(s[l],a[l])}),s},options:{}}}function Xb(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=Ou({baseClasses:t.cacheClasses.lastJSS,newClasses:r,Component:n})),t.cacheClasses.value}function Qb(e,r){var n=e.state,t=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=Zt.get(i.sheetsManager,o,t);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Zt.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=Zt.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&&Zt.set(i.sheetsCache,o,t,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=_u(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=Ou({baseClasses:s.staticSheet.classes,newClasses:d.classes}),c&&c.add(d)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Zb(e,r){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(r)}function ey(e){var r=e.state,n=e.theme,t=e.stylesOptions,i=e.stylesCreator;if(!t.disableGeneration){var o=Zt.get(t.sheetsManager,i,n);o.refs-=1;var a=t.sheetsRegistry;o.refs===0&&(Zt.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 ty(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 ry(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?Yb:o,s=Xt(r,["name","classNamePrefix","Component","defaultTheme"]),l=Jb(e),c=n||t||"makeStyles";l.options={index:Kb(),name:n,meta:c,classNamePrefix:c};var u=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=Wm()||a,h=K({},Q.useContext(Vb),s),v=Q.useRef(),m=Q.useRef();ty(function(){var b={name:n,state:{},stylesCreator:l,stylesOptions:h,theme:p};return Qb(b,d),m.current=!1,v.current=b,function(){ey(b)}},[p,l]),Q.useEffect(function(){m.current&&Zb(v.current,d),m.current=!0});var y=Xb(v.current,d.classes,i);return y};return u}const ny=Object.freeze(Object.defineProperty({__proto__:null,default:ry},Symbol.toStringTag,{value:"Module"})),iy=Gn(ny);var oy=xn.exports,tl;function ay(){return tl||(tl=1,function(e,r){(function(n,t){e.exports=t()})(typeof self<"u"?self:oy,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=cc()},function(n,t){n.exports=uc()},function(n,t){n.exports=iy},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,_=b.connectDragSource,w=b.isDragging,P=b.canDrop,S=b.canDrag,T=b.node,R=b.title,k=b.draggedNode,j=b.path,M=b.treeIndex,H=b.isSearchMatch,E=b.isSearchFocus,B=b.icons,G=b.buttons,q=b.className,J=b.style,ee=b.didDrop,X=b.lowerSiblingCounts,Z=b.listIndex,V=b.swapFrom,re=b.swapLength,ie=b.swapDepth,$=b.onItemClick,W=y(),L=R||T.title,N=k&&a(k,T),O=!ee&&w,U=[];X.forEach(function(ae,de){if(de>0&&(U.push(u.default.createElement("div",{className:W.lineBlock,key:"pre_"+(1+de),style:{width:C}})),M!==Z&&de===ie)){var pe="";pe=Z===V+re-1?W.highlightBottomLeftCorner:M===V?W.highlightTopLeftCorner:W.highlightLineVertical,U.push(u.default.createElement("div",{className:W.absoluteLineBlock+" "+pe,key:"highlight_"+(1+de),style:{left:C*de,width:C}}))}});var te=u.default.createElement("div",{className:W.contentNode},D(u.default.createElement("div",{className:W.row+(T.active?" "+W.activeRow:"")+(O?" "+W.rowLandingPad:"")+(w?" "+W.rowLandingPadDisable:"")+(O&&!P?" "+W.rowCancelPad:"")+(H?" "+W.rowSearchMatch:"")+(E?" "+W.rowSearchFocus:"")+(S?"":" "+W.rowWrapperDragDisabled)+(q?" "+q:""),onClick:function(){return $?$(l({},T,{index:M})):null},style:l({opacity:N?.5:1},J)},T.type==="divider"?u.default.createElement("div",{className:W.divider}):u.default.createElement(c.Fragment,null,U,u.default.createElement("div",{className:W.rowIcon},B),u.default.createElement("div",{className:W.rowLabel},typeof L=="string"?u.default.createElement("span",{className:W.rowTitle},L):typeof L=="function"?L({node:T,path:j,treeIndex:M}):L),u.default.createElement("div",{className:W.rowToolbar},G)))));return S?_(te,{dropEffect:"copy"}):te}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 _ in D)Object.prototype.hasOwnProperty.call(D,_)&&(b[_]=D[_])}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,_=m.swapDepth,w=m.lowerSiblingCounts,P=m.connectDropTarget,S=m.isOver,T=m.draggedNode,R=m.canDrop,k=v();return P(l.default.createElement("div",{className:k.node},s.Children.map(y,function(j){return(0,s.cloneElement)(j,{canDrop:R,draggedNode:T,isOver:S,listIndex:b,lowerSiblingCounts:w,swapDepth:_,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"}}}}])})}(xn)),xn.exports}var sy=ay();const ly=$n(sy);/**
34
34
  * (c) Iconify
35
35
  *
36
36
  * For the full copyright and license information, please view the license.txt
@@ -40,21 +40,21 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
40
40
  *
41
41
  * @license MIT
42
42
  * @version 1.0.8
43
- */const Ku=Object.freeze({left:0,top:0,width:16,height:16}),En=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),tn=Object.freeze({...Ku,...En}),fo=Object.freeze({...tn,body:"",hidden:!1}),yy=Object.freeze({width:null,height:null}),Yu=Object.freeze({...yy,...En});function xy(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 Sy=/[\s,]+/;function wy(e,r){r.split(Sy).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ju={...Yu,preserveAspectRatio:""};function al(e){const r={...Ju},n=(t,i)=>e.getAttribute(t)||i;return r.width=n("width",null),r.height=n("height",null),r.rotate=xy(n("rotate","")),wy(r,n("flip","")),r.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),r}function Cy(e,r){for(const n in Ju)if(e[n]!==r[n])return!0;return!1}const Ar=/^[a-z0-9]+(-[a-z0-9]+)*$/,rn=(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&&!Sn(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&&!Sn(s)?null:s}if(n&&t===""){const s={provider:t,prefix:"",name:o};return r&&!Sn(s,n)?null:s}return null},Sn=(e,r)=>e?!!((e.provider===""||e.provider.match(Ar))&&(r&&e.prefix===""||e.prefix.match(Ar))&&e.name.match(Ar)):!1;function Iy(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 sl(e,r){const n=Iy(e,r);for(const t in fo)t in En?t in e&&!(t in n)&&(n[t]=En[t]):t in r?n[t]=r[t]:t in e&&(n[t]=e[t]);return n}function Ry(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 Ty(e,r,n){const t=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=sl(t[s]||i[s],o)}return a(r),n.forEach(a),sl(e,o)}function Xu(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=Ry(e);for(const i in t){const o=t[i];o&&(r(i,Ty(e,i,o)),n.push(i))}return n}const Dy={provider:"",aliases:{},not_found:{},...Ku};function ki(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"||!ki(e,Dy))return null;const n=r.icons;for(const i in n){const o=n[i];if(!i.match(Ar)||typeof o.body!="string"||!ki(o,fo))return null}const t=r.aliases||Object.create(null);for(const i in t){const o=t[i],a=o.parent;if(!i.match(Ar)||typeof a!="string"||!n[a]&&!t[a]||!ki(o,fo))return null}return r}const Nn=Object.create(null);function _y(e,r){return{provider:e,prefix:r,icons:Object.create(null),missing:new Set}}function wt(e,r){const n=Nn[e]||(Nn[e]=Object.create(null));return n[r]||(n[r]=_y(e,r))}function Zo(e,r){return Qu(r)?Xu(r,(n,t)=>{t?e.icons[n]=t:e.missing.add(n)}):[]}function Py(e,r,n){try{if(typeof n.body=="string")return e.icons[r]={...n},!0}catch{}return!1}function ky(e,r){let n=[];return(typeof e=="string"?[e]:Object.keys(Nn)).forEach(i=>{(typeof i=="string"&&typeof r=="string"?[r]:Object.keys(Nn[i]||{})).forEach(a=>{const s=wt(i,a);n=n.concat(Object.keys(s.icons).map(l=>(i!==""?"@"+i+":":"")+a+":"+l))})}),n}let Gr=!1;function Zu(e){return typeof e=="boolean"&&(Gr=e),Gr}function Wr(e){const r=typeof e=="string"?rn(e,!0,Gr):e;if(r){const n=wt(r.provider,r.prefix),t=r.name;return n.icons[t]||(n.missing.has(t)?null:void 0)}}function ed(e,r){const n=rn(e,!0,Gr);if(!n)return!1;const t=wt(n.provider,n.prefix);return Py(t,n.name,r)}function ll(e,r){if(typeof e!="object")return!1;if(typeof r!="string"&&(r=e.provider||""),Gr&&!r&&!e.prefix){let i=!1;return Qu(e)&&(e.prefix="",Xu(e,(o,a)=>{a&&ed(o,a)&&(i=!0)})),i}const n=e.prefix;if(!Sn({provider:r,prefix:n,name:"a"}))return!1;const t=wt(r,n);return!!Zo(t,e)}function Oy(e){return!!Wr(e)}function Ey(e){const r=Wr(e);return r?{...tn,...r}:null}function Ny(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]=wt(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 td(e,r){e.forEach(n=>{const t=n.loaderCallbacks;t&&(n.loaderCallbacks=t.filter(i=>i.id!==r))})}function My(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||td([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let Ay=0;function Ly(e,r,n){const t=Ay++,i=td.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 ho=Object.create(null);function cl(e,r){ho[e]=r}function po(e){return ho[e]||ho[""]}function zy(e,r=!0,n=!1){const t=[];return e.forEach(i=>{const o=typeof i=="string"?rn(i,r,n):i;o&&t.push(o)}),t}var jy={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Fy(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=[],h=[];typeof t=="function"&&h.push(t);function p(){f&&(clearTimeout(f),f=null)}function v(){l==="pending"&&(l="aborted"),p(),d.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),d=[]}function m(w,_){_&&(h=[]),typeof w=="function"&&h.push(w)}function y(){return{startTime:s,payload:r,status:l,queriesSent:c,queriesPending:d.length,subscribe:m,abort:v}}function b(){l="failed",h.forEach(w=>{w(void 0,u)})}function C(){d.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),d=[]}function D(w,_,S){const T=_!=="success";switch(d=d.filter(R=>R!==w),l){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(_==="abort"){u=S,b();return}if(T){u=S,d.length||(a.length?P():b());return}if(p(),C(),!e.random){const R=e.resources.indexOf(w.resource);R!==-1&&R!==e.index&&(e.index=R)}l="completed",h.forEach(R=>{R(S)})}function P(){if(l!=="pending")return;p();const w=a.shift();if(w===void 0){if(d.length){f=setTimeout(()=>{p(),l==="pending"&&(C(),b())},e.timeout);return}b();return}const _={status:"pending",resource:w,callback:(S,T)=>{D(_,S,T)}};d.push(_),c++,f=setTimeout(P,e.rotate),n(w,r,_.callback)}return setTimeout(P),y}function rd(e){const r={...jy,...e};let n=[];function t(){n=n.filter(s=>s().status==="pending")}function i(s,l,c){const u=Fy(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 ea(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 Zn=Object.create(null),xr=["https://api.simplesvg.com","https://api.unisvg.com"],wn=[];for(;xr.length>0;)xr.length===1||Math.random()>.5?wn.push(xr.shift()):wn.push(xr.pop());Zn[""]=ea({resources:["https://api.iconify.design"].concat(wn)});function ul(e,r){const n=ea(r);return n===null?!1:(Zn[e]=n,!0)}function ei(e){return Zn[e]}function By(){return Object.keys(Zn)}function dl(){}const Oi=Object.create(null);function $y(e){if(!Oi[e]){const r=ei(e);if(!r)return;const n=rd(r),t={config:r,redundancy:n};Oi[e]=t}return Oi[e]}function nd(e,r,n){let t,i;if(typeof e=="string"){const o=po(e);if(!o)return n(void 0,424),dl;i=o.send;const a=$y(e);a&&(t=a.redundancy)}else{const o=ea(e);if(o){t=rd(o);const a=e.resources?e.resources[0]:"",s=po(a);s&&(i=s.send)}}return!t||!i?(n(void 0,424),dl):t.query(r,i,n)().abort}const fl="iconify2",Hr="iconify",id=Hr+"-count",hl=Hr+"-version",od=36e5,Gy=168;function go(e,r){try{return e.getItem(r)}catch{}}function ta(e,r,n){try{return e.setItem(r,n),!0}catch{}}function pl(e,r){try{e.removeItem(r)}catch{}}function vo(e,r){return ta(e,id,r.toString())}function mo(e){return parseInt(go(e,id))||0}const At={local:!0,session:!0},ad={local:new Set,session:new Set};let ra=!1;function Wy(e){ra=e}let dn=typeof window>"u"?{}:window;function sd(e){const r=e+"Storage";try{if(dn&&dn[r]&&typeof dn[r].length=="number")return dn[r]}catch{}At[e]=!1}function ld(e,r){const n=sd(e);if(!n)return;const t=go(n,hl);if(t!==fl){if(t){const s=mo(n);for(let l=0;l<s;l++)pl(n,Hr+l.toString())}ta(n,hl,fl),vo(n,0);return}const i=Math.floor(Date.now()/od)-Gy,o=s=>{const l=Hr+s.toString(),c=go(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{}pl(n,l)}};let a=mo(n);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,vo(n,a)):ad[e].add(s))}function cd(){if(!ra){Wy(!0);for(const e in At)ld(e,r=>{const n=r.data,t=r.provider,i=n.prefix,o=wt(t,i);if(!Zo(o,n).length)return!1;const a=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function Hy(e,r){const n=e.lastModifiedCached;if(n&&n>=r)return n===r;if(e.lastModifiedCached=r,n)for(const t in At)ld(t,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===r});return!0}function Uy(e,r){ra||cd();function n(t){let i;if(!At[t]||!(i=sd(t)))return;const o=ad[t];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=mo(i),!vo(i,a+1))return;const s={cached:Math.floor(Date.now()/od),provider:e.provider,data:r};return ta(i,Hr+a.toString(),JSON.stringify(s))}r.lastModified&&!Hy(e,r.lastModified)||Object.keys(r.icons).length&&(r.not_found&&(r=Object.assign({},r),delete r.not_found),n("local")||n("session"))}function gl(){}function qy(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,My(e)}))}function Vy(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=po(n)))return;o.prepare(n,t,i).forEach(s=>{nd(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=Zo(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),Uy(e,l)}catch(c){console.error(c)}qy(e)})})}))}const na=(e,r)=>{const n=zy(e,!0,Zu()),t=Ny(n);if(!t.pending.length){let l=!0;return r&&setTimeout(()=>{l&&r(t.loaded,t.missing,t.pending,gl)}),()=>{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(wt(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=wt(c,u),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[c][u].push(f))}),o.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&Vy(l,i[c][u])}),r?Ly(r,t,o):gl},Ky=e=>new Promise((r,n)=>{const t=typeof e=="string"?rn(e,!0):e;if(!t){n(e);return}na([t||e],i=>{if(i.length&&t){const o=Wr(t);if(o){r({...tn,...o});return}}n(e)})});function Yy(e){try{const r=typeof e=="string"?JSON.parse(e):e;if(typeof r.body=="string")return{...r}}catch{}}function Jy(e,r){const n=typeof e=="string"?rn(e,!0,!0):null;if(!n){const o=Yy(e);return{value:e,data:o}}const t=Wr(n);if(t!==void 0||!n.prefix)return{value:e,name:n,data:t};const i=na([n],()=>r(e,n,Wr(n)));return{value:e,name:n,loading:i}}function Ei(e){return e.hasAttribute("inline")}let ud=!1;try{ud=navigator.vendor.indexOf("Apple")===0}catch{}function Xy(e,r){switch(r){case"svg":case"bg":case"mask":return r}return r!=="style"&&(ud||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Qy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function bo(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(Qy);if(t===null||!t.length)return e;const i=[];let o=t.shift(),a=Zy.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 ex=e=>e==="unset"||e==="undefined"||e==="none";function dd(e,r){const n={...tn,...e},t={...Yu,...r},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,t].forEach(p=>{const v=[],m=p.hFlip,y=p.vFlip;let b=p.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=bo(f,l/c)):(u=a==="auto"?l:a,f=s===null?bo(u,c/l):s==="auto"?c:s);const d={},h=(p,v)=>{ex(v)||(d[p]=v.toString())};return h("width",u),h("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:d,body:o}}const tx=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Mn=tx();function rx(e){Mn=e}function nx(){return Mn}function ix(e,r){const n=ei(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 ox(e){return e===404}const ax=(e,r,n)=>{const t=[],i=ix(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 sx(e){if(typeof e=="string"){const r=ei(e);if(r)return r.path}return"/"}const lx=(e,r,n)=>{if(!Mn){n("abort",424);return}let t=sx(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;Mn(e+t).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{n(ox(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)})},cx={prepare:ax,send:lx};function vl(e,r){switch(e){case"local":case"session":At[e]=r;break;case"all":for(const n in At)At[n]=r;break}}const Ni="data-style";let fd="";function ux(e){fd=e}function ml(e,r){let n=Array.from(e.childNodes).find(t=>t.hasAttribute&&t.hasAttribute(Ni));n||(n=document.createElement("style"),n.setAttribute(Ni,Ni),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(r?"-0.125em":"0")+"}span,svg{display:block}"+fd}function hd(){cl("",cx),Zu(!0);let e;try{e=window}catch{}if(e){if(cd(),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"||!ll(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;ul(t,o)||console.error(i)}catch{console.error(i)}}}}return{enableCache:n=>vl(n,!0),disableCache:n=>vl(n,!1),iconExists:Oy,getIcon:Ey,listIcons:ky,addIcon:ed,addCollection:ll,calculateSize:bo,buildIcon:dd,loadIcons:na,loadIcon:Ky,addAPIProvider:ul,appendCustomStyle:ux,_api:{getAPIConfig:ei,setAPIModule:cl,sendAPIQuery:nd,setFetch:rx,getFetch:nx,listAPIProviders:By}}}function pd(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 dx(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function fx(e){return"data:image/svg+xml,"+dx(e)}function hx(e){return'url("'+fx(e)+'")'}const yo={"background-color":"currentColor"},gd={"background-color":"transparent"},bl={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},yl={"-webkit-mask":yo,mask:yo,background:gd};for(const e in yl){const r=yl[e];for(const n in bl)r[e+"-"+n]=bl[n]}function xl(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function px(e,r,n){const t=document.createElement("span");let i=e.body;i.indexOf("<a")!==-1&&(i+="<!-- "+Date.now()+" -->");const o=e.attributes,a=pd(i,{...o,width:r.width+"",height:r.height+""}),s=hx(a),l=t.style,c={"--svg":s,width:xl(o.width),height:xl(o.height),...n?yo:gd};for(const u in c)l.setProperty(u,c[u]);return t}let Lr;function gx(){try{Lr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Lr=null}}function vx(e){return Lr===void 0&&gx(),Lr?Lr.createHTML(e):e}function mx(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=pd(e.body,n);return r.innerHTML=vx(i),r.firstChild}function Sl(e,r){const n=r.icon.data,t=r.customisations,i=dd(n,t);t.preserveAspectRatio&&(i.attributes.preserveAspectRatio=t.preserveAspectRatio);const o=r.renderedMode;let a;switch(o){case"svg":a=mx(i);break;default:a=px(i,{...tn,...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 wl(e,r,n){const t=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:r,icon:e,lastRender:t}}function bx(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=Ei(this);ml(s,l),this._state=wl({value:""},l),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(s){if(s==="inline"){const l=Ei(this),c=this._state;l!==c.inline&&(c.inline=l,ml(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 Ei(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{}Sl(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=al(this);(s.attrMode!==c||Cy(s.customisations,u))&&this._renderIcon(s.icon,u,c)}_iconChanged(s){const l=Jy(s,(c,u,f)=>{const d=this._state;if(d.rendered||this.getAttribute("icon")!==c)return;const h={value:c,name:u,data:f};h.data?this._gotIconData(h):d.icon=h});l.data?this._gotIconData(l):this._state=wl(l,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,al(this),this.getAttribute("mode"))}_renderIcon(s,l,c){const u=Xy(s.data.body,c),f=this._state.inline;Sl(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=hd();for(const s in a)o[s]=o.prototype[s]=a[s];return r.define(e,o),o}const yx=bx()||hd(),{enableCache:zT,disableCache:jT,iconExists:FT,getIcon:BT,listIcons:$T,addIcon:GT,addCollection:WT,calculateSize:HT,buildIcon:UT,loadIcons:qT,loadIcon:VT,addAPIProvider:KT,_api:YT}=yx,$t=(e,r,n="children")=>e.map(t=>Array.isArray(t[n])?r({...t,[n]:$t(t[n],r,n)}):r(t)),vd=(e,r="children")=>{const n=[];return $t(e,t=>n.push(t),r),n},ia=(e,r,n="children")=>e.map(t=>({...t})).filter(t=>{const i=t[n];if(Array.isArray(i)){const a=ia(i,r,n);t[n]=a?.length?a:void 0}const o={filteredChildren:t[n],isLeaf:!i?.length};return r(t,o)}),md=e=>/^https?:\/\//.test(e),bd=e=>/^mailto:/i.test(e.trim()),xx=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)},yd=(e=[])=>{const r=e.map((n,t)=>({path:n,index:t})).filter(n=>xx(n.path));return r?.length?r.slice(1).reduce((n,t)=>n.path.length>=t.path.length?n:t,r[0]).index:-1},Sx=(e,r={})=>{const{columns:n=1,breakInside:t=!1,groupHeight:i=48,itemHeight:o=24,childrenKey:a="items"}=r,s=e.reduce((p,v)=>p+i+(v[a]?.length||0)*o,0),l=Math.ceil(s/n),c=[[]];let u=0,f=0;const d=l*.2,h=p=>f>l-d&&u<n-1&&f+p>l+d;return e.forEach(p=>{const v=i+(p[a]?.length||0)*o;t&&h(i)&&(u++,f=0,c[u]=[]),!t&&f>0&&h(v)&&(u++,f=0,c[u]=[]),c[u].push({...p,group:!0}),f+=i,p[a]&&p[a].forEach(m=>{t&&h(o)&&(u++,f=0,c[u]=[]),c[u].push({...m,group:!1}),f+=o})}),c};function Ze({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(Oo(async()=>{l(!0);try{await Eo(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%"}}),md(e))return g.jsx(er,{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(er,{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(er,{component:"span",...t,sx:i,children:Array.from(e)[0]})):null}function oa(e=["en","zh"]){const{blocklet:r}=Ft();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=>ht.SUPPORTED_LANGUAGES[c]),s=a.reduce((c,u)=>(c[u]=ht.SUPPORTED_LANGUAGES[u].nativeName,c),{}),l=a.map(c=>({code:c,name:ht.SUPPORTED_LANGUAGES[c].nativeName}));return{locales:i,localeMap:s,defaultLocale:o,languages:l}},[r.environments,e])}const wx=e=>e.from!=="team-tmpl";function Cx({prevPath:e,nextPath:r,node:n}){if(n.from==="team-tmpl")return!1;const t=e.length,i=r.length;return!!(t===i&&Oh(e.slice(0,t-1),r.slice(0,i-1)))}function xd({treeNode:e}){const{locale:r}=Me(),{blocklet:n}=Ft(),{defaultLocale:t}=oa(),i=n.environments.find(s=>s.key===ht.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),o=se(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 Yt(s)&&(c=s[r]||s[t]||s.en),!I.isValidElement(l)&&Yt(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&&(No(o(e.icon))?g.jsx(Ze,{size:16,style:{marginRight:4},icon:o(e.icon)}):g.jsx(xe,{size:16,style:{marginRight:4},icon:e.icon})),a()]})}xd.propTypes={treeNode:x.object.isRequired};const Ix=ot(oe)(({theme:e})=>({"& .MuiNodeContent-row":{backgroundColor:e.palette.background.default}}));function Sd({treeData:e,setTreeData:r=()=>{},renderActions:n=()=>{}}){const t=e.map(o=>({...o,expanded:!0})),i={};return typeof window<"u"&&(i.context=window),g.jsx(Ix,{children:g.jsx(Lp,{backend:zp,...i,children:g.jsx(hm,{generateNodeProps:o=>{const a=wx(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(xd,{treeNode:o.node})}},maxDepth:2,isVirtualized:!1,treeData:t,onChange:r,canDrop:Cx,theme:by})})})}Sd.propTypes={treeData:x.object.isRequired,setTreeData:x.func,renderActions:x.func};var Rx=vc();const Tx=Gn(Rx);function wd({sx:e=null,onAdd:r=()=>{},onChange:n=()=>{},defaultLocale:t="en",locale:i="",locales:o=[],localeMap:a={},onRemoveLocale:s=()=>{}}){const{t:l}=Me(),c=I.useRef(),[u,f]=I.useState(null),d=zt({localeList:[],inputLocale:"",localeError:""}),h=I.useMemo(()=>!!u,[u]),p=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(Et(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=se(S=>S?S===t||d.localeList.includes(S)?l("navigation.form.localeExists",{value:S}):!0:l("common.requiredErrorText",{name:"Locale"})),C=se((S="")=>{const T=S?.trim(),R=b(T);return R!==!0?d.localeError=R:d.localeError="",R}),D=se(()=>{f(null),d.inputLocale="",d.localeError=""}),P=se(()=>{const S=d.inputLocale?.trim();C(S)===!0&&(D(),d.localeList.push(S),r(S))}),w=se((S,T)=>{S.preventDefault(),S.stopPropagation(),d.localeList=Wc(d.localeList,T),s(T)}),_=se(S=>{const{value:T}=S.target;C(T),d.inputLocale=T});return I.useEffect(()=>{d.localeList=[...o]},[o,d]),Op("enter",()=>{setTimeout(()=>{P()})},{target:c}),g.jsxs(g.Fragment,{children:[g.jsxs(Yp,{sx:e,value:p,onChange:(S,T)=>{n(T)},children:[g.jsx(qa,{label:y,value:t}),v.map(S=>g.jsx(qa,{sx:{position:"relative"},label:g.jsxs(g.Fragment,{children:[a[S],g.jsx(Ae,{size:"small",color:"inherit",sx:{position:"absolute",top:0,right:0},onClick:T=>{w(T,S)},children:g.jsx(xe,{icon:"mdi:close",height:14})})]}),value:S},S)),g.jsx(Ae,{color:"primary",disableFocusRipple:!0,sx:{width:"48px"},onClick:S=>{f(S.currentTarget)},children:g.jsx(xe,{icon:"mdi:plus"})})]}),g.jsx(Yi,{open:h,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(Qi,{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(xt,{size:"small",variant:"contained",onClick:P,children:l("common.confirm")})})]})})]})}wd.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 aa=["https://api.iconify.design","https://api.unisvg.com","https://api.simplesvg.com"];async function Cd(e,r,n=5e3){for(const t of aa){const i=Ie(t,e);try{return await Xp.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 Dx({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 Cd("/search",{query:`${o} palette=${t}`||e,start:n,limit:r,...i&&{prefix:i}});return a}const fn=new Map;async function _x(e){if(fn.has(e))return fn.get(e);const r=(async()=>{const{data:n}=await Cd("/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)})();fn.set(e,r);try{return await r}catch(n){throw fn.delete(e),n}}function Px(e){return Ie(aa[0],`${e}.svg`)}function kx(e){try{const r=new URL(e);for(const n of aa)if(r.origin===n)return Eh(r.pathname).replace(".svg","");return""}catch{return""}}function Ox(e){let r=!0,n=e;return e&&(e.startsWith("/")?(r=!1,n=""):No(e)&&(n=kx(e))),{isIconId:r,iconId:n}}const Ex=I.lazy(()=>Lh(()=>import("./index-C3LdZf6o.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}))),Cl=Ve(Ze)(({theme:e})=>({"&&":{color:e.palette.text.primary},"> img":{filter:e.palette.mode==="dark"?"invert(1)":"none"}}));function Id({icon:e,...r}){const[n,t]=I.useState(!1);return Oo(async()=>{t(!1),await Eo(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})}Id.propTypes={icon:x.string.isRequired};function xo({value:e,helperText:r,label:n,placeholder:t,methods:i=["select"],iconifyShape:o="id",...a}){const{getSessionInHeader:s,prefix:l,inService:c}=yc(),{blocklet:u}=Ft(),f=Hn(Z=>Z.breakpoints.down("md")),d=u.environments.find(Z=>Z.key===ht.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),h=s(),p=I.useRef(null),v=I.useRef(null),m=I.useRef(null),{t:y,locale:b}=Me(),{isIconId:C,iconId:D}=Ox(e),[P,w]=I.useState(null),{onChange:_,onBlur:S,sx:T,...R}=a,k=i.includes("upload"),j=i.includes("select"),M=Ie(l,"/api/media/upload",u.appPid),H=zt({showPopover:!1}),E=se(Z=>{if(Z?.startsWith("/"))try{const V=c?window.location.origin:d?.value;return new URL(Z,V).href}catch{console.error("Failed to resolve url: ",Z)}return Z},[d?.value,c]),B=se(async Z=>await p.current.getUploader().uploadFile(Z)),$=se(()=>{w(null)}),q=se(()=>{j&&w(m.current)}),J=se(async Z=>{try{if(o==="url"){const V=Px(Z),re=await Nh(V,{width:128,height:128}),ie=await Mh(re,Z);await B(ie)}else _?.(Z)}catch(V){console.error("Failed to pick icon:",V)}$()}),ee=se(Z=>{Z.stopPropagation(),v.current.open(),$()}),X=se(Z=>{a?.onChange?.(Z.data.url)});return g.jsxs(g.Fragment,{children:[g.jsx(it,{helperText:r,value:e,sx:{"& .MuiInputBase-root,.MuiInputBase-input":{cursor:"pointer"},...T},onClick:j?q:void 0,...R,label:n,placeholder:t,slotProps:{input:{ref:m,readOnly:!0,startAdornment:g.jsx(Rn,{position:"start",sx:{cursor:"auto"},onMouseEnter:()=>{e&&(H.showPopover=!0)},onMouseLeave:()=>{H.showPopover=!1},children:g.jsx(Cl,{size:28,icon:E(e),alt:"Error"})}),endAdornment:g.jsxs(Rn,{position:"end",children:[g.jsx(Ae,{sx:{visibility:e?"visible":"hidden"},onClick:Z=>{Z.stopPropagation(),_("")},children:g.jsx($c,{style:{fontSize:18}})}),k&&g.jsx(Ah,{title:y("common.upload"),children:g.jsx(Ae,{disableFocusRipple:!1,disableRipple:!1,onClick:ee,children:g.jsx(Id,{icon:"material-symbols:upload-file-outline-rounded",width:24,height:24})})}),j&&g.jsx(oe,{component:Jp,sx:{mr:"-6px",fontSize:24,transform:P?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms",pointerEvents:"none"}})]})}}}),j&&g.jsx(Yi,{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:$,children:g.jsx(Rd,{label:n,placeholder:t,value:C?D:"",sx:{width:m.current?.offsetWidth??"auto"},onPick:J,onClose:$})}),g.jsx(So,{ref:p,locale:b,apiPath:M,headers:h,imageEditorProps:{},onUploadFinish:X}),g.jsx(So,{ref:v,locale:b,apiPath:M,headers:h,onUploadFinish:X}),g.jsx(Yi,{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(Cl,{size:120,icon:E(e),alt:"Error"})})]})}xo.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 Rd({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),[h,p]=I.useState(!1),v=I.useRef(null),m=I.useRef([]),y=I.useRef(1),b=I.useRef(!0),{t:C}=Me(),D=96,P=se(()=>{!b.current||c||(u(!0),setTimeout(()=>{const S=y.current+1,T=(S-1)*D,R=S*D,k=m.current.slice(T,R);l(j=>[...j,...k]),y.current=S,b.current=R<m.current.length,u(!1)},300))}),w=se(S=>{m.current=S,y.current=1,b.current=S.length>D;const T=S.slice(0,D);l(T),p(S.length===0),b.current&&P()}),{run:_}=xc(async S=>{if(S){u(!0);try{const{icons:T}=await Dx({keyword:S});w(T)}catch(T){console.error("Failed to search icons:",T),p(!0)}finally{u(!1)}}},{wait:300,trailing:!0});return I.useEffect(()=>{const S=()=>{if(!v.current)return;const{scrollTop:R,scrollHeight:k,clientHeight:j}=v.current;(R+j>=k-150||k<=j)&&P()},T=v.current;return T&&(T.addEventListener("scroll",S),S()),()=>{T&&T.removeEventListener("scroll",S)}},[P,c]),Oo(async()=>{if(f)_(f);else{u(!0);try{const S=await _x("mdi-light");w(S)}catch(S){console.error("Failed to fetch default icons:",S),p(!0)}finally{u(!1)}}},[f,_,w]),g.jsxs(Nx,{ref:v,sx:t,...a,children:[g.jsxs(oe,{className:"icon-picker-input",children:[g.jsx(it,{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(Ae,{sx:{visibility:f?"visible":"hidden"},onClick:()=>d(""),children:g.jsx($c,{style:{fontSize:18}})})}}}),g.jsx(xt,{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(Mx,{$active:n===S,onClick:()=>{i(S)},children:g.jsx(xe,{icon:S,width:"32",height:"32"})},S))}),h&&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(Sc,{size:20})})]})]})}Rd.propTypes={label:x.any,placeholder:x.any,value:x.string,sx:x.object,onPick:x.func.isRequired,onClose:x.func.isRequired};const Nx=Ve(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}})),Mx=Ve(Ae,{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 So({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(Ex,{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}})})}So.propTypes={ref:x.any,locale:x.string,apiPath:x.string,headers:x.object,imageEditorProps:x.object,onUploadFinish:x.func};const Il=24,Rl=48,Tl="add";x.string.isRequired;function sa({ref:e=null,section:r="",components:n=[],rawNavigations:t=[],onChange:i=()=>{},...o}){const{roles:a}=Bc(),{t:s,locale:l}=Me(),{localeMap:c,defaultLocale:u}=oa(),f=se(()=>({title:{[u]:""},description:{[u]:""},link:{[u]:""}})),d=se(N=>Wc(Array.from(new Set(be.NAVIGATION_I18N_FIELDS.flatMap(O=>Yt(N[O])?Object.keys(N[O]):[]))),u)),h=I.useRef(()=>{}),p=zt({isRoot:!0,type:Tl,linkDisabled:!1,locale:u,formState:f(),get localeList(){return d(p.formState)}}),{handleSubmit:v,control:m,reset:y,setValue:b,clearErrors:C,formState:{errors:D}}=Vp({mode:"onChange",defaultValues:{id:"",title:"",description:"",icon:"",link:"",component:"",parent:"",role:[]}});I.useEffect(()=>{be.NAVIGATION_I18N_FIELDS.forEach(N=>b(N,p.formState[N][p.locale]))},[b,p.locale]);const P=Kp({control:m}),w=P.component,_=P.title,S=P.description,T=P.link,R=P.parent;I.useEffect(()=>{p.formState.title[p.locale]=_},[_]),I.useEffect(()=>{p.formState.description[p.locale]=S},[S]),I.useEffect(()=>{p.formState.link[p.locale]=T},[T]),I.useEffect(()=>{i?.(P)},[P,i]);const k=I.useMemo(()=>t.find(O=>w?n.find(te=>te.name===w).did===O.id:O.id===R),[n,t,w,R]),j=I.useMemo(()=>{if(k?.component){const N=n.find(ae=>ae.name===k.component),{link:O}=N||{},U=Yt(O)?O[p.locale]:O;if(w)return Ma(U);const te=Yt(k.link)?k.link[p.locale]:k.link;return Ma(Ie(U,te||"/"))}return null},[n,p.locale,k,w]),M=I.useMemo(()=>{const{component:N}=k||{},O=n.find(ae=>ae.name===N),{navigation:U=[]}=O||{};return Ee.flattenNavigation(U,{transform(ae,de){return de?.section&&(ae.section=ae.section||de.section),ae}}).filter(ae=>ae.link).filter(ae=>Ee.isMatchSection(ae.section,r)).map(ae=>({label:ae.link,title:ae.title[l]||ae.title}))},[k,n,r,l]),H=se(()=>{p.isRoot=!0,p.locale=u,p.type=Tl,p.linkDisabled=!1,p.formState=f(),y(),C(),h.current=()=>{}}),E=se((N={})=>(p.localeList.length>0&&be.NAVIGATION_I18N_FIELDS.forEach(O=>{fg(p.formState[O]).length>1&&(N[O]=p.formState[O])}),Mo(N.role)&&(N.role=void 0),N)),B=se(({parent:N}={},O=()=>{})=>{p.type="add",p.isRoot=!N,b("parent",N?.id),h.current=U=>{O(U)}}),$=se((N={},O=()=>{})=>{const{id:U,icon:te,parent:ae,component:de,role:he=[]}=N;b("id",U),b("icon",te),N.from==="team-tmpl"&&(p.linkDisabled=!0);const Ce=d(N),ze=(ye,_e)=>{wc(ye)?p.formState[_e]=Ce.reduce((le,ve)=>(le[ve]=ye,le),{[u]:ye}):Yt(ye)?p.formState[_e]=Qe(ye):p.formState[_e]={}};be.NAVIGATION_I18N_FIELDS.forEach(ye=>ze(N[ye],ye)),be.NAVIGATION_I18N_FIELDS.forEach(ye=>b(ye,p.formState[ye][p.locale])),b("component",de),b("parent",ae),b("role",he||[]),p.type="edit",p.isRoot=!ae,h.current=ye=>{const _e=zh(ye,["id","title","description","icon","component","link","role"]);O(_e)}}),q=se(N=>{const O=N?.trim();if(r!=="bottomNavigation"){if(!O)return s("common.requiredErrorText",{name:s("navigation.form.title")});if(O.length>Il)return s("navigation.form.titleTooLong",{len:Il})}return!0}),J=se(N=>{const O=N?.trim();return O&&O.length>Rl?s("navigation.form.descriptionTooLong",{len:Rl}):!0}),ee=se(N=>N?.startsWith("/")?new URL(N,window.location.origin).href:N),X=se(async N=>{const O=N?.trim();if(O){if(No(ee(O)))return!0;try{await Eo(O)}catch{return s("navigation.form.invalidIcon")}}return!0}),Z=se(N=>{const O=N?.trim();return O?X(O):s("common.requiredErrorText",{name:s("navigation.form.icon")})}),V=se(N=>{const O=N?.trim();return O?Ee.checkLink(O)?!0:s("navigation.form.invalidLink"):p.isRoot?!0:s("common.requiredErrorText",{name:s("navigation.form.link")})}),re=se(N=>{p.locale=N,be.NAVIGATION_I18N_FIELDS.forEach(O=>{p.formState[O][N]||(p.formState[O][N]="")}),setTimeout(()=>{C()})}),ie=se(()=>{const{title:N,link:O}=p.formState;if(r!=="bottomNavigation")for(const U of Object.keys(N)){const te=q(N[U]);if(te!==!0)return te}for(const U of Object.keys(O)){const te=V(O[U]);if(te!==!0)return te}return!0}),G=se(N=>{const O=ie();O===!0?h.current(E(N)):Ot.error(O)}),W=se(N=>{p.locale=u,be.NAVIGATION_I18N_FIELDS.forEach(O=>{p.formState[O]=Et(p.formState[O],N)}),i?.(P)}),L=se(N=>{p.locale=N,be.NAVIGATION_I18N_FIELDS.forEach(O=>{p.formState[O][N]=p.formState[O][u]}),i?.(P),setTimeout(()=>{C()})});return I.useImperativeHandle(e,()=>({add:B,edit:$,resetImmediate:()=>H(),reset:()=>setTimeout(()=>H(),0),submit:v(G)}),[B,H,$,v,G]),g.jsxs(oe,{...o,children:[g.jsx(wd,{sx:{mb:1},onAdd:L,onChange:re,onRemoveLocale:W,defaultLocale:u,locale:p.locale,localeMap:c,locales:p.localeList}),g.jsxs("form",{noValidate:!0,autoComplete:"off",children:[r!=="bottomNavigation"&&g.jsx(lt,{name:"title",control:m,rules:{validate:q},render:({field:N})=>g.jsx(it,{fullWidth:!0,variant:"outlined",margin:"dense",required:!0,placeholder:s("navigation.form.titlePlaceholder"),label:s("navigation.form.title"),disabled:p.isEdit,error:!!D?.title?.message,helperText:D?.title?.message||" ",...N})}),r==="bottomNavigation"?g.jsx(lt,{name:"icon",control:m,rules:{validate:Z},render:({field:N})=>g.jsx(xo,{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:p.locale!==u,methods:["select"],iconifyShape:"url",...N})}):g.jsx(lt,{name:"icon",control:m,rules:{validate:X},render:({field:N})=>g.jsx(xo,{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:p.locale!==u,...N})}),p.isRoot&&g.jsx(lt,{name:"component",control:m,render:({field:N})=>g.jsx(Qi,{fullWidth:!0,margin:"dense",disabled:p.locale!==u&&N.value,label:s("navigation.form.component"),placeholer:s("navigation.form.componentPlaceholder"),options:n.map(O=>({title:O.title,value:O.name,description:O.link})),error:!!D?.component?.message,helperText:D?.component?.message||" ",...Et(N,"ref")})}),!p.isRoot&&["header"].includes(r)&&g.jsx(lt,{name:"description",control:m,rules:{validate:J},render:({field:N})=>g.jsx(it,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:s("navigation.form.descriptionPlaceholder"),label:s("navigation.form.description"),disabled:p.isEdit,error:!!D?.description?.message,helperText:D?.description?.message||" ",...N})}),g.jsx(lt,{name:"link",control:m,rules:{validate:V},render:({field:N})=>g.jsx(Cc,{fullWidth:!0,margin:"dense",children:g.jsx(Qp,{disablePortal:!0,freeSolo:!0,blurOnSelect:!0,autoSelect:!0,fullWidth:!0,disabled:p.linkDisabled,isOptionEqualToValue:O=>O.label,options:M,renderInput:O=>g.jsx(it,{...O,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:j?g.jsx(Rn,{position:"start",sx:{textDecoration:Tx(T||"")?"line-through":""},children:j}):null}}}),renderOption:(O,U)=>g.jsxs(oe,{component:"li",...O,children:[U.label,g.jsx(me,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:U.title})]}),margin:"dense",...N,onChange:()=>{},onInputChange:(O,U)=>{N.onChange(U)}})})}),["dashboard","sessionManager"].includes(r)&&g.jsx(lt,{name:"role",control:m,render:({field:N})=>g.jsx(Qi,{fullWidth:!0,multiple:!0,margin:"dense",label:s("navigation.form.role"),placeholer:s("navigation.form.rolePlaceholder"),options:a.map(O=>({title:O.title,value:O.name})),error:!!D?.role?.message,helperText:D?.role?.message||" ",...Et(N,"ref")})}),r==="bottomNavigation"&&g.jsx(lt,{name:"title",control:m,rules:{validate:q},render:({field:N})=>g.jsx(it,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:s("navigation.form.titlePlaceholder"),label:s("navigation.form.title"),disabled:p.isEdit,error:!!D?.title?.message,helperText:D?.title?.message||" ",...N})})]})]})}sa.propTypes={ref:x.any,section:x.string,components:x.array,rawNavigations:x.array,onChange:x.func};function la({ref:e=null,section:r="",components:n=[],rawNavigations:t=[]}){const{t:i}=Me(),[o,{setTrue:a,setFalse:s}]=Up(),[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]),h=I.useCallback((v={},m=()=>{})=>{c("add"),u.current?.add(v,y=>m(d,y)),a()},[a,d]),p=I.useCallback((v={},m=()=>{})=>{c("edit"),u.current?.edit(v,y=>m(d,y)),a()},[a,d]);return I.useImperativeHandle(e,()=>({add:h,edit:p,close:d}),[h,p,d]),g.jsx(Ic,{open:o,title:f,keepMounted:!0,onClose:d,sx:{".MuiDialogContent-root":{pt:0}},actions:g.jsx(Tn,{color:"primary",variant:"contained",onClick:()=>u.current?.submit(),children:i("common.confirm")}),children:g.jsx(sa,{ref:u,section:r,components:n,rawNavigations:t})})}la.propTypes={ref:x.any,section:x.string,components:x.array,rawNavigations:x.array};function Td({className:e="",add:r=()=>{},edit:n=()=>{},toggle:t=()=>{},del:i=()=>{},data:o,section:a=""}){const{t:s}=Me(),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]),h=I.useCallback(v=>{u(v),t(o)},[t,o]),p=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(Ae,{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(Ae,{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(Ae,{size:"small",color:"warning",onClick:h,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(Ae,{disabled:l&&!c,size:"small",color:"error",onClick:p,children:g.jsx(xe,{icon:"mdi:delete"})})})]})}Td.propTypes={data:x.object.isRequired,className:x.string,add:x.func,edit:x.func,toggle:x.func,del:x.func,section:x.string};const Cn=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",Ax=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},Lx=(e,r="en",n="en")=>{if(typeof e=="string"){if(md(e)){const i=new URL(e);return i.searchParams.set("locale",r),i.href}if(bd(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},rr=({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 $t(e,o=>({...o,title:i(o.title,r),description:i(o.description,r),link:Rc(o.items?.length?o.link:Lx(o.link,r,n),t),_rawLink:o.link}),"items")},zx=e=>$t(e,r=>r.role?{...r,role:Array.isArray(r.role)?r.role:[r.role]}:r,"items"),jx=e=>{if(!e?.length)return null;const r=zx(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},ca=e=>{if(!e)return null;const r={...e};return r.theme=Ax(r.theme),r.navigation=jx(Fx(r.navigation)),r},Fx=(e=[])=>ia(e,(r,n)=>!!r.link||n.filteredChildren?.length,"items"),Dd=(e,r)=>ia(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"),Bx={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"/>'},$x={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 Gx({session:e,locale:r="zh",size:n=24,popperType:t="click",sx:i,...o}){const a=window?.blocklet||{},s=(a.navigation||[]).filter(h=>h.section==="sessionManager"&&!["/sessionManager"].includes(h.id)).filter(h=>!!(h?.role||[]).includes(e?.user?.role||"guest")).map(h=>{const p=(a?.componentMountPoints||[]).find(v=>h.component===v.name);return{...h,component:p}}),l=jt(),c=I.useRef(null),u=zt({open:!1}),f=se((h=!u.open)=>{u.open=h}),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(Ae,{size:"medium",ref:c,children:g.jsx(xe,{icon:Bx,fontSize:n,style:{transform:"scale(1.08)"}})}),g.jsx(jh,{open:u.open,anchorEl:c.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:h})=>g.jsx(Fh,{onClickAway:p=>{p.preventDefault(),p.stopPropagation(),f(!1)},children:g.jsx(Tc,{...h,timeout:350,children:g.jsxs(Or,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[g.jsx(Bh,{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(p=>g.jsx($h,{disablePadding:!0,children:g.jsxs(Zp,{href:Aa(p.link,r),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[p?.component?.did?g.jsx(oe,{component:"img",src:`${Dc}/blocklet/logo-bundle/${p.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(xe,{fontSize:50,icon:p.icon||$x,color:l.palette.text.secondary}),g.jsx(me,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Aa(p.title,r)})]})},p.id))}),g.jsx(Gh,{session:e,children:g.jsx(Tn,{variant:"outlined",fullWidth:!0,href:Wh,sx:{mt:1},children:r==="zh"?"管理":"Manage"})})]})})})})]})}const _d=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])}))}))}),Pd=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}),Wx=["admin","owner"],Hx=e=>e.endsWith(".ip.abtnet.io"),Ux=e=>e.endsWith(".did.abtnet.io"),qx={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:"配置域名"}},Vx=1e3*60*60*24*30,Dl=".well-known/service/admin/domains";function kd({locale:e="en",session:r={}}){const n=r?.user,t=Gc(),[i,o]=I.useState(()=>{const d=window.localStorage.getItem("domain-warning-skip");if(!d)return!0;const h=+new Date,p=+new Date(d);return h-p>Vx}),a=se((d,h={})=>Un(qx,d,e,"en",h)),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=Ie(window.location.origin,Dl);d.startsWith("http")&&window.open(d,"_blank"),o(!1)},[]),f=n?.role&&Wx.includes(n.role);return window.location.href.includes(Dl)||t||!Hx(s)&&!Ux(s)?null:g.jsxs(Hh,{open:i,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>o(!1),children:[g.jsxs(Uh,{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(qh,{sx:{px:"12px !important"},children:[g.jsx(xt,{onClick:c,children:a("skip")}),f&&g.jsx(xt,{variant:"contained",onClick:u,children:a("bindDomain")})]})]})}kd.propTypes={locale:x.string,session:x.object};var Mi,_l;function Kx(){if(_l)return Mi;_l=1;const e=Vh();return Mi=(r,n=!1)=>{const t=e(["@arcblock/ws",r].join(":"));return{debug:t,warn:t,info:t,trace:n?t:console.error,error:n?t:console.error}},Mi}var Ai,Pl;function Yx(){if(Pl)return Ai;Pl=1;const e=Kx();return Ai=(r,n,t)=>class extends r{constructor(o,a={}){super(o,{transport:t,...a}),this._logger=e("client",a.silent),this.emitter=new n,this.onOpen(()=>{this._logger.debug("socket open",o)}),this.onClose(()=>{this._logger.debug("socket close",o)}),this.onError(s=>{this._logger.error("socket error",s.error)}),this.onMessage(s=>{this._logger.debug("socket message",s)})}on(o,a,s={}){this.ensureJoinChannel(o,s),this.emitter.on(o,a)}off(o,a){a?this.emitter.off(o,a):this.emitter.removeAllListeners(o),this.ensureLeaveChannel(o)}disconnect(o,a,s){this.emitter.eventNames().forEach(l=>{this.emitter.removeAllListeners(l)}),super.disconnect(o,a,s)}ensureJoinChannel(o,a={}){if(this.emitter.listenerCount(o)>0)return;const l=this.channel(o,a);l.join().receive("ok",c=>{this._logger.debug("join success",{topic:o,message:c})}).receive("error",c=>{this._logger.error("join error",{topic:o,error:c})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:o})}),l.on(o,({status:c,response:u})=>{c==="ok"?this.emitter.emit(o,u):this._logger.debug("response error",{topic:o,status:c,data:u})})}ensureLeaveChannel(o){if(this.emitter.listenerCount(o)>0)return;const s=this.channels.find(l=>l.topic===o);s&&(this.remove(s),s.leave().receive("ok",l=>{this._logger.debug("leave success",{topic:o,message:l})}).receive("error",l=>{this._logger.error("leave error",{topic:o,err:l})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:o})}),s.off(o))}subscribe(o,a={}){let s=this.channels.find(l=>l.topic===o);return s||(s=this.channel(o,a),s.join().receive("ok",l=>{this._logger.debug("join success",{topic:o,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:o,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:o})}),s)}unsubscribe(o){this.ensureLeaveChannel(o)}},Ai}var Li,kl;function Jx(){if(kl)return Li;kl=1;const e=Kh(),{Socket:r}=Yh();return Li=Yx()(r,e),Li}var zi,Ol;function Xx(){return Ol||(Ol=1,zi={WsClient:Jx()}),zi}var Qx=Xx();const ke={};function Zx(e="admin"){let r="/";!window?.blocklet&&window?.env?.apiPrefix&&(r=window.env.apiPrefix);const n=Ie(r,Dc,e);return new Qx.WsClient(n,{heartbeatIntervalMs:100*1e3})}function eS(e="admin"){return ke[e]||(ke[e]=Zx(e)),ke[e]}const tS=(e="admin")=>{const r=I.use(qn),{session:n}=r??{},t=Le(()=>n.user?.did,[n.user]),i=Jh(t);return Xh(()=>{Object.keys(ke).forEach(o=>{ke[o]?.isConnected()&&ke[o]?.disconnect(),delete ke[o]})}),t?(i&&i!==t&&Object.keys(ke).forEach(o=>{ke[o]&&(ke[o].isConnected()&&ke[o].disconnect(),ke[o].connect())}),!ke[e]&&n.user&&(ke[e]=eS(e),ke[e].connect()),ke[e]):null},rS={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>'},nS={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"/>'},iS={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 oS(){const e=jt();return[...e.breakpoints.keys].reverse().reduce((r,n)=>{const t=Hn(e.breakpoints.up(n));return!r&&t?n:r},null)||"xs"}const kr=new Qh,aS=e=>!Mo(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,sS=e=>{if(!e)return null;const{meta:r,target:n}=e;return{metaLink:r?.id,targetLink:n?.id}},lS=async(e,r)=>{try{return await kr.user.getProfileUrl({did:e,locale:r})}catch(n){console.error(n);return}},cS=async(e,r)=>{const{type:n,did:t}=e;return _c.isSameAddr(n,"did")?await lS(t,r)||Dn.getLink(e):Dn.getLink(e)},uS=async(e,r,n=!0)=>{const t=Dn.toTextList(e);return await Promise.all(t.map(async i=>{if(i instanceof Dn.Link){if(n){const o=await cS(i,r),{type:a,chainId:s,did:l}=i;return _c.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(""))},dS=e=>Zh.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),fS={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 Kt({user:e,color:r=void 0}){const{palette:n}=jt(),t=Vn(Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),i=r||n.text.primary;return g.jsx(Pc,{href:t,color:i,target:"_blank",onClick:o=>{o.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}Kt.displayName="UserLink";function hS({activity:e,users:r,actors:n,extra:t={},mountPoint:i=""}){const{palette:o}=jt(),{type:a,target:s}=e||{},{type:l}=s||{},{linkColor:c=o.text.primary}=t||{},u=Le(()=>{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=Le(()=>Array.isArray(n)?n.map(m=>m?u.get(m)||{did:m,fullName:"System"}:null).filter(Boolean):[],[n,u]),d=se(()=>{if(!Array.isArray(f)||f.length===0)return null;if(f.length===1)return g.jsx(Kt,{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(Kt,{user:m[0],color:c})," and ",g.jsx(Kt,{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(Kt,{user:D,color:c}),P<C.length-1?", ":""]},D.did)),b?`, and ${f.length-2} others`:g.jsxs(g.Fragment,{children:[", and ",g.jsx(Kt,{user:y,color:c})]})]})}),h=se(()=>{const m=a?fS[a]:null;return m?m(l,r.length):null}),p=Le(()=>{const m=d(),y=h();return!m||!y?null:g.jsxs(g.Fragment,{children:[m," ",y]})},[a,l,f,d,h]),v=Le(()=>{if(!e)return null;const m=sS(e);return m?.targetLink?Ie(i,m.targetLink):null},[e,i]);return!a||Mo(s)?null:g.jsxs(g.Fragment,{children:[p," ",v&&g.jsx(Pc,{href:v,color:c,target:"_blank",sx:{textDecoration:"none"},onClick:m=>{m.customPreventRedirect=!0},children:s.name})]})}const pS={normal:La,success:rS,info:La,warning:nS,error:iS},gS=cr(np)`
43
+ */const Bu=Object.freeze({left:0,top:0,width:16,height:16}),En=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),tn=Object.freeze({...Bu,...En}),so=Object.freeze({...tn,body:"",hidden:!1}),cy=Object.freeze({width:null,height:null}),Gu=Object.freeze({...cy,...En});function uy(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 dy=/[\s,]+/;function fy(e,r){r.split(dy).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const $u={...Gu,preserveAspectRatio:""};function rl(e){const r={...$u},n=(t,i)=>e.getAttribute(t)||i;return r.width=n("width",null),r.height=n("height",null),r.rotate=uy(n("rotate","")),fy(r,n("flip","")),r.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),r}function py(e,r){for(const n in $u)if(e[n]!==r[n])return!0;return!1}const Ar=/^[a-z0-9]+(-[a-z0-9]+)*$/,rn=(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&&!Sn(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&&!Sn(s)?null:s}if(n&&t===""){const s={provider:t,prefix:"",name:o};return r&&!Sn(s,n)?null:s}return null},Sn=(e,r)=>e?!!((e.provider===""||e.provider.match(Ar))&&(r&&e.prefix===""||e.prefix.match(Ar))&&e.name.match(Ar)):!1;function hy(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 nl(e,r){const n=hy(e,r);for(const t in so)t in En?t in e&&!(t in n)&&(n[t]=En[t]):t in r?n[t]=r[t]:t in e&&(n[t]=e[t]);return n}function gy(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 vy(e,r,n){const t=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=nl(t[s]||i[s],o)}return a(r),n.forEach(a),nl(e,o)}function Wu(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=gy(e);for(const i in t){const o=t[i];o&&(r(i,vy(e,i,o)),n.push(i))}return n}const my={provider:"",aliases:{},not_found:{},...Bu};function ki(e,r){for(const n in r)if(n in e&&typeof e[n]!=typeof r[n])return!1;return!0}function Hu(e){if(typeof e!="object"||e===null)return null;const r=e;if(typeof r.prefix!="string"||!e.icons||typeof e.icons!="object"||!ki(e,my))return null;const n=r.icons;for(const i in n){const o=n[i];if(!i.match(Ar)||typeof o.body!="string"||!ki(o,so))return null}const t=r.aliases||Object.create(null);for(const i in t){const o=t[i],a=o.parent;if(!i.match(Ar)||typeof a!="string"||!n[a]&&!t[a]||!ki(o,so))return null}return r}const Nn=Object.create(null);function by(e,r){return{provider:e,prefix:r,icons:Object.create(null),missing:new Set}}function wt(e,r){const n=Nn[e]||(Nn[e]=Object.create(null));return n[r]||(n[r]=by(e,r))}function Yo(e,r){return Hu(r)?Wu(r,(n,t)=>{t?e.icons[n]=t:e.missing.add(n)}):[]}function yy(e,r,n){try{if(typeof n.body=="string")return e.icons[r]={...n},!0}catch{}return!1}function xy(e,r){let n=[];return(typeof e=="string"?[e]:Object.keys(Nn)).forEach(i=>{(typeof i=="string"&&typeof r=="string"?[r]:Object.keys(Nn[i]||{})).forEach(a=>{const s=wt(i,a);n=n.concat(Object.keys(s.icons).map(l=>(i!==""?"@"+i+":":"")+a+":"+l))})}),n}let $r=!1;function Uu(e){return typeof e=="boolean"&&($r=e),$r}function Wr(e){const r=typeof e=="string"?rn(e,!0,$r):e;if(r){const n=wt(r.provider,r.prefix),t=r.name;return n.icons[t]||(n.missing.has(t)?null:void 0)}}function qu(e,r){const n=rn(e,!0,$r);if(!n)return!1;const t=wt(n.provider,n.prefix);return yy(t,n.name,r)}function il(e,r){if(typeof e!="object")return!1;if(typeof r!="string"&&(r=e.provider||""),$r&&!r&&!e.prefix){let i=!1;return Hu(e)&&(e.prefix="",Wu(e,(o,a)=>{a&&qu(o,a)&&(i=!0)})),i}const n=e.prefix;if(!Sn({provider:r,prefix:n,name:"a"}))return!1;const t=wt(r,n);return!!Yo(t,e)}function Sy(e){return!!Wr(e)}function wy(e){const r=Wr(e);return r?{...tn,...r}:null}function Cy(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]=wt(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 Vu(e,r){e.forEach(n=>{const t=n.loaderCallbacks;t&&(n.loaderCallbacks=t.filter(i=>i.id!==r))})}function Iy(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||Vu([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let Ry=0;function Ty(e,r,n){const t=Ry++,i=Vu.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 lo=Object.create(null);function ol(e,r){lo[e]=r}function co(e){return lo[e]||lo[""]}function Dy(e,r=!0,n=!1){const t=[];return e.forEach(i=>{const o=typeof i=="string"?rn(i,r,n):i;o&&t.push(o)}),t}var Py={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function _y(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 P=Math.floor(Math.random()*w.length);a.push(w[P]),w=w.slice(0,P).concat(w.slice(P+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){P&&(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,P,S){const T=P!=="success";switch(d=d.filter(R=>R!==w),l){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(P==="abort"){u=S,b();return}if(T){u=S,d.length||(a.length?_():b());return}if(h(),C(),!e.random){const R=e.resources.indexOf(w.resource);R!==-1&&R!==e.index&&(e.index=R)}l="completed",p.forEach(R=>{R(S)})}function _(){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 P={status:"pending",resource:w,callback:(S,T)=>{D(P,S,T)}};d.push(P),c++,f=setTimeout(_,e.rotate),n(w,r,P.callback)}return setTimeout(_),y}function Ku(e){const r={...Py,...e};let n=[];function t(){n=n.filter(s=>s().status==="pending")}function i(s,l,c){const u=_y(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 Jo(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 Zn=Object.create(null),xr=["https://api.simplesvg.com","https://api.unisvg.com"],wn=[];for(;xr.length>0;)xr.length===1||Math.random()>.5?wn.push(xr.shift()):wn.push(xr.pop());Zn[""]=Jo({resources:["https://api.iconify.design"].concat(wn)});function al(e,r){const n=Jo(r);return n===null?!1:(Zn[e]=n,!0)}function ei(e){return Zn[e]}function ky(){return Object.keys(Zn)}function sl(){}const Oi=Object.create(null);function Oy(e){if(!Oi[e]){const r=ei(e);if(!r)return;const n=Ku(r),t={config:r,redundancy:n};Oi[e]=t}return Oi[e]}function Yu(e,r,n){let t,i;if(typeof e=="string"){const o=co(e);if(!o)return n(void 0,424),sl;i=o.send;const a=Oy(e);a&&(t=a.redundancy)}else{const o=Jo(e);if(o){t=Ku(o);const a=e.resources?e.resources[0]:"",s=co(a);s&&(i=s.send)}}return!t||!i?(n(void 0,424),sl):t.query(r,i,n)().abort}const ll="iconify2",Hr="iconify",Ju=Hr+"-count",cl=Hr+"-version",Xu=36e5,Ey=168;function uo(e,r){try{return e.getItem(r)}catch{}}function Xo(e,r,n){try{return e.setItem(r,n),!0}catch{}}function ul(e,r){try{e.removeItem(r)}catch{}}function fo(e,r){return Xo(e,Ju,r.toString())}function po(e){return parseInt(uo(e,Ju))||0}const At={local:!0,session:!0},Qu={local:new Set,session:new Set};let Qo=!1;function Ny(e){Qo=e}let dn=typeof window>"u"?{}:window;function Zu(e){const r=e+"Storage";try{if(dn&&dn[r]&&typeof dn[r].length=="number")return dn[r]}catch{}At[e]=!1}function ed(e,r){const n=Zu(e);if(!n)return;const t=uo(n,cl);if(t!==ll){if(t){const s=po(n);for(let l=0;l<s;l++)ul(n,Hr+l.toString())}Xo(n,cl,ll),fo(n,0);return}const i=Math.floor(Date.now()/Xu)-Ey,o=s=>{const l=Hr+s.toString(),c=uo(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{}ul(n,l)}};let a=po(n);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,fo(n,a)):Qu[e].add(s))}function td(){if(!Qo){Ny(!0);for(const e in At)ed(e,r=>{const n=r.data,t=r.provider,i=n.prefix,o=wt(t,i);if(!Yo(o,n).length)return!1;const a=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function My(e,r){const n=e.lastModifiedCached;if(n&&n>=r)return n===r;if(e.lastModifiedCached=r,n)for(const t in At)ed(t,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===r});return!0}function Ay(e,r){Qo||td();function n(t){let i;if(!At[t]||!(i=Zu(t)))return;const o=Qu[t];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=po(i),!fo(i,a+1))return;const s={cached:Math.floor(Date.now()/Xu),provider:e.provider,data:r};return Xo(i,Hr+a.toString(),JSON.stringify(s))}r.lastModified&&!My(e,r.lastModified)||Object.keys(r.icons).length&&(r.not_found&&(r=Object.assign({},r),delete r.not_found),n("local")||n("session"))}function dl(){}function Ly(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Iy(e)}))}function zy(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=co(n)))return;o.prepare(n,t,i).forEach(s=>{Yu(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=Yo(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),Ay(e,l)}catch(c){console.error(c)}Ly(e)})})}))}const Zo=(e,r)=>{const n=Dy(e,!0,Uu()),t=Cy(n);if(!t.pending.length){let l=!0;return r&&setTimeout(()=>{l&&r(t.loaded,t.missing,t.pending,dl)}),()=>{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(wt(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=wt(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&&zy(l,i[c][u])}),r?Ty(r,t,o):dl},jy=e=>new Promise((r,n)=>{const t=typeof e=="string"?rn(e,!0):e;if(!t){n(e);return}Zo([t||e],i=>{if(i.length&&t){const o=Wr(t);if(o){r({...tn,...o});return}}n(e)})});function Fy(e){try{const r=typeof e=="string"?JSON.parse(e):e;if(typeof r.body=="string")return{...r}}catch{}}function By(e,r){const n=typeof e=="string"?rn(e,!0,!0):null;if(!n){const o=Fy(e);return{value:e,data:o}}const t=Wr(n);if(t!==void 0||!n.prefix)return{value:e,name:n,data:t};const i=Zo([n],()=>r(e,n,Wr(n)));return{value:e,name:n,loading:i}}function Ei(e){return e.hasAttribute("inline")}let rd=!1;try{rd=navigator.vendor.indexOf("Apple")===0}catch{}function Gy(e,r){switch(r){case"svg":case"bg":case"mask":return r}return r!=="style"&&(rd||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const $y=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Wy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ho(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($y);if(t===null||!t.length)return e;const i=[];let o=t.shift(),a=Wy.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 Hy=e=>e==="unset"||e==="undefined"||e==="none";function nd(e,r){const n={...tn,...e},t={...Gu,...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=ho(f,l/c)):(u=a==="auto"?l:a,f=s===null?ho(u,c/l):s==="auto"?c:s);const d={},p=(h,v)=>{Hy(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 Uy=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Mn=Uy();function qy(e){Mn=e}function Vy(){return Mn}function Ky(e,r){const n=ei(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 Yy(e){return e===404}const Jy=(e,r,n)=>{const t=[],i=Ky(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 Xy(e){if(typeof e=="string"){const r=ei(e);if(r)return r.path}return"/"}const Qy=(e,r,n)=>{if(!Mn){n("abort",424);return}let t=Xy(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;Mn(e+t).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{n(Yy(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)})},Zy={prepare:Jy,send:Qy};function fl(e,r){switch(e){case"local":case"session":At[e]=r;break;case"all":for(const n in At)At[n]=r;break}}const Ni="data-style";let id="";function ex(e){id=e}function pl(e,r){let n=Array.from(e.childNodes).find(t=>t.hasAttribute&&t.hasAttribute(Ni));n||(n=document.createElement("style"),n.setAttribute(Ni,Ni),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(r?"-0.125em":"0")+"}span,svg{display:block}"+id}function od(){ol("",Zy),Uu(!0);let e;try{e=window}catch{}if(e){if(td(),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"||!il(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;al(t,o)||console.error(i)}catch{console.error(i)}}}}return{enableCache:n=>fl(n,!0),disableCache:n=>fl(n,!1),iconExists:Sy,getIcon:wy,listIcons:xy,addIcon:qu,addCollection:il,calculateSize:ho,buildIcon:nd,loadIcons:Zo,loadIcon:jy,addAPIProvider:al,appendCustomStyle:ex,_api:{getAPIConfig:ei,setAPIModule:ol,sendAPIQuery:Yu,setFetch:qy,getFetch:Vy,listAPIProviders:ky}}}function ad(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 tx(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function rx(e){return"data:image/svg+xml,"+tx(e)}function nx(e){return'url("'+rx(e)+'")'}const go={"background-color":"currentColor"},sd={"background-color":"transparent"},hl={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},gl={"-webkit-mask":go,mask:go,background:sd};for(const e in gl){const r=gl[e];for(const n in hl)r[e+"-"+n]=hl[n]}function vl(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function ix(e,r,n){const t=document.createElement("span");let i=e.body;i.indexOf("<a")!==-1&&(i+="<!-- "+Date.now()+" -->");const o=e.attributes,a=ad(i,{...o,width:r.width+"",height:r.height+""}),s=nx(a),l=t.style,c={"--svg":s,width:vl(o.width),height:vl(o.height),...n?go:sd};for(const u in c)l.setProperty(u,c[u]);return t}let Lr;function ox(){try{Lr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Lr=null}}function ax(e){return Lr===void 0&&ox(),Lr?Lr.createHTML(e):e}function sx(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=ad(e.body,n);return r.innerHTML=ax(i),r.firstChild}function ml(e,r){const n=r.icon.data,t=r.customisations,i=nd(n,t);t.preserveAspectRatio&&(i.attributes.preserveAspectRatio=t.preserveAspectRatio);const o=r.renderedMode;let a;switch(o){case"svg":a=sx(i);break;default:a=ix(i,{...tn,...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 bl(e,r,n){const t=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:r,icon:e,lastRender:t}}function lx(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=Ei(this);pl(s,l),this._state=bl({value:""},l),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(s){if(s==="inline"){const l=Ei(this),c=this._state;l!==c.inline&&(c.inline=l,pl(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 Ei(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{}ml(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=rl(this);(s.attrMode!==c||py(s.customisations,u))&&this._renderIcon(s.icon,u,c)}_iconChanged(s){const l=By(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=bl(l,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,rl(this),this.getAttribute("mode"))}_renderIcon(s,l,c){const u=Gy(s.data.body,c),f=this._state.inline;ml(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=od();for(const s in a)o[s]=o.prototype[s]=a[s];return r.define(e,o),o}const cx=lx()||od(),{enableCache:wT,disableCache:CT,iconExists:IT,getIcon:RT,listIcons:TT,addIcon:DT,addCollection:PT,calculateSize:_T,buildIcon:kT,loadIcons:OT,loadIcon:ET,addAPIProvider:NT,_api:MT}=cx,Gt=(e,r,n="children")=>e.map(t=>Array.isArray(t[n])?r({...t,[n]:Gt(t[n],r,n)}):r(t)),ld=(e,r="children")=>{const n=[];return Gt(e,t=>n.push(t),r),n},ea=(e,r,n="children")=>e.map(t=>({...t})).filter(t=>{const i=t[n];if(Array.isArray(i)){const a=ea(i,r,n);t[n]=a?.length?a:void 0}const o={filteredChildren:t[n],isLeaf:!i?.length};return r(t,o)}),cd=e=>/^https?:\/\//.test(e),ud=e=>/^mailto:/i.test(e.trim()),ux=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)},dd=(e=[])=>{const r=e.map((n,t)=>({path:n,index:t})).filter(n=>ux(n.path));return r?.length?r.slice(1).reduce((n,t)=>n.path.length>=t.path.length?n:t,r[0]).index:-1},dx=(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 Ze({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(Do(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%"}}),cd(e))return g.jsx(er,{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(er,{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(er,{component:"span",...t,sx:i,children:Array.from(e)[0]})):null}function ta(e=["en","zh"]){const{blocklet:r}=Ft();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=>pt.SUPPORTED_LANGUAGES[c]),s=a.reduce((c,u)=>(c[u]=pt.SUPPORTED_LANGUAGES[u].nativeName,c),{}),l=a.map(c=>({code:c,name:pt.SUPPORTED_LANGUAGES[c].nativeName}));return{locales:i,localeMap:s,defaultLocale:o,languages:l}},[r.environments,e])}const fx=e=>e.from!=="team-tmpl";function px({prevPath:e,nextPath:r,node:n}){if(n.from==="team-tmpl")return!1;const t=e.length,i=r.length;return!!(t===i&&Cp(e.slice(0,t-1),r.slice(0,i-1)))}function fd({treeNode:e}){const{locale:r}=Me(),{blocklet:n}=Ft(),{defaultLocale:t}=ta(),i=n.environments.find(s=>s.key===pt.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),o=se(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 Yt(s)&&(c=s[r]||s[t]||s.en),!I.isValidElement(l)&&Yt(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&&(_o(o(e.icon))?g.jsx(Ze,{size:16,style:{marginRight:4},icon:o(e.icon)}):g.jsx(xe,{size:16,style:{marginRight:4},icon:e.icon})),a()]})}fd.propTypes={treeNode:x.object.isRequired};const hx=ot(oe)(({theme:e})=>({"& .MuiNodeContent-row":{backgroundColor:e.palette.background.default}}));function pd({treeData:e,setTreeData:r=()=>{},renderActions:n=()=>{}}){const t=e.map(o=>({...o,expanded:!0})),i={};return typeof window<"u"&&(i.context=window),g.jsx(hx,{children:g.jsx(Th,{backend:Dh,...i,children:g.jsx(nm,{generateNodeProps:o=>{const a=fx(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(fd,{treeNode:o.node})}},maxDepth:2,isVirtualized:!1,treeData:t,onChange:r,canDrop:px,theme:ly})})})}pd.propTypes={treeData:x.object.isRequired,setTreeData:x.func,renderActions:x.func};var gx=lc();const vx=$n(gx);function hd({sx:e=null,onAdd:r=()=>{},onChange:n=()=>{},defaultLocale:t="en",locale:i="",locales:o=[],localeMap:a={},onRemoveLocale:s=()=>{}}){const{t:l}=Me(),c=I.useRef(),[u,f]=I.useState(null),d=zt({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(Et(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=se(S=>S?S===t||d.localeList.includes(S)?l("navigation.form.localeExists",{value:S}):!0:l("common.requiredErrorText",{name:"Locale"})),C=se((S="")=>{const T=S?.trim(),R=b(T);return R!==!0?d.localeError=R:d.localeError="",R}),D=se(()=>{f(null),d.inputLocale="",d.localeError=""}),_=se(()=>{const S=d.inputLocale?.trim();C(S)===!0&&(D(),d.localeList.push(S),r(S))}),w=se((S,T)=>{S.preventDefault(),S.stopPropagation(),d.localeList=Ac(d.localeList,T),s(T)}),P=se(S=>{const{value:T}=S.target;C(T),d.inputLocale=T});return I.useEffect(()=>{d.localeList=[...o]},[o,d]),Sh("enter",()=>{setTimeout(()=>{_()})},{target:c}),g.jsxs(g.Fragment,{children:[g.jsxs(Fh,{sx:e,value:h,onChange:(S,T)=>{n(T)},children:[g.jsx($a,{label:y,value:t}),v.map(S=>g.jsx($a,{sx:{position:"relative"},label:g.jsxs(g.Fragment,{children:[a[S],g.jsx(Ae,{size:"small",color:"inherit",sx:{position:"absolute",top:0,right:0},onClick:T=>{w(T,S)},children:g.jsx(xe,{icon:"mdi:close",height:14})})]}),value:S},S)),g.jsx(Ae,{color:"primary",disableFocusRipple:!0,sx:{width:"48px"},onClick:S=>{f(S.currentTarget)},children:g.jsx(xe,{icon:"mdi:plus"})})]}),g.jsx(Ui,{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(Ki,{required:!0,fullWidth:!0,label:"Locale",value:d.inputLocale,options:m,onChange:P,error:!!d.localeError,helperText:d.localeError||" "})}),g.jsx(oe,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(xt,{size:"small",variant:"contained",onClick:_,children:l("common.confirm")})})]})})]})}hd.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 ra=["https://api.iconify.design","https://api.unisvg.com","https://api.simplesvg.com"];async function gd(e,r,n=5e3){for(const t of ra){const i=Ie(t,e);try{return await Gh.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 mx({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 gd("/search",{query:`${o} palette=${t}`||e,start:n,limit:r,...i&&{prefix:i}});return a}const fn=new Map;async function bx(e){if(fn.has(e))return fn.get(e);const r=(async()=>{const{data:n}=await gd("/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)})();fn.set(e,r);try{return await r}catch(n){throw fn.delete(e),n}}function yx(e){return Ie(ra[0],`${e}.svg`)}function xx(e){try{const r=new URL(e);for(const n of ra)if(r.origin===n)return Ip(r.pathname).replace(".svg","");return""}catch{return""}}function Sx(e){let r=!0,n=e;return e&&(e.startsWith("/")?(r=!1,n=""):_o(e)&&(n=xx(e))),{isIconId:r,iconId:n}}const wx=I.lazy(()=>Pp(()=>import("./index-B6xNHlEj.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}))),yl=Ve(Ze)(({theme:e})=>({"&&":{color:e.palette.text.primary},"> img":{filter:e.palette.mode==="dark"?"invert(1)":"none"}}));function vd({icon:e,...r}){const[n,t]=I.useState(!1);return Do(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})}vd.propTypes={icon:x.string.isRequired};function vo({value:e,helperText:r,label:n,placeholder:t,methods:i=["select"],iconifyShape:o="id",...a}){const{getSessionInHeader:s,prefix:l,inService:c}=dc(),{blocklet:u}=Ft(),f=Hn(Z=>Z.breakpoints.down("md")),d=u.environments.find(Z=>Z.key===pt.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),p=s(),h=I.useRef(null),v=I.useRef(null),m=I.useRef(null),{t:y,locale:b}=Me(),{isIconId:C,iconId:D}=Sx(e),[_,w]=I.useState(null),{onChange:P,onBlur:S,sx:T,...R}=a,k=i.includes("upload"),j=i.includes("select"),M=Ie(l,"/api/media/upload",u.appPid),H=zt({showPopover:!1}),E=se(Z=>{if(Z?.startsWith("/"))try{const V=c?window.location.origin:d?.value;return new URL(Z,V).href}catch{console.error("Failed to resolve url: ",Z)}return Z},[d?.value,c]),B=se(async Z=>await h.current.getUploader().uploadFile(Z)),G=se(()=>{w(null)}),q=se(()=>{j&&w(m.current)}),J=se(async Z=>{try{if(o==="url"){const V=yx(Z),re=await Rp(V,{width:128,height:128}),ie=await Tp(re,Z);await B(ie)}else P?.(Z)}catch(V){console.error("Failed to pick icon:",V)}G()}),ee=se(Z=>{Z.stopPropagation(),v.current.open(),G()}),X=se(Z=>{a?.onChange?.(Z.data.url)});return g.jsxs(g.Fragment,{children:[g.jsx(it,{helperText:r,value:e,sx:{"& .MuiInputBase-root,.MuiInputBase-input":{cursor:"pointer"},...T},onClick:j?q:void 0,...R,label:n,placeholder:t,slotProps:{input:{ref:m,readOnly:!0,startAdornment:g.jsx(Rn,{position:"start",sx:{cursor:"auto"},onMouseEnter:()=>{e&&(H.showPopover=!0)},onMouseLeave:()=>{H.showPopover=!1},children:g.jsx(yl,{size:28,icon:E(e),alt:"Error"})}),endAdornment:g.jsxs(Rn,{position:"end",children:[g.jsx(Ae,{sx:{visibility:e?"visible":"hidden"},onClick:Z=>{Z.stopPropagation(),P("")},children:g.jsx(Nc,{style:{fontSize:18}})}),k&&g.jsx(Dp,{title:y("common.upload"),children:g.jsx(Ae,{disableFocusRipple:!1,disableRipple:!1,onClick:ee,children:g.jsx(vd,{icon:"material-symbols:upload-file-outline-rounded",width:24,height:24})})}),j&&g.jsx(oe,{component:Bh,sx:{mr:"-6px",fontSize:24,transform:_?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms",pointerEvents:"none"}})]})}}}),j&&g.jsx(Ui,{open:!!_,anchorEl:_,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(md,{label:n,placeholder:t,value:C?D:"",sx:{width:m.current?.offsetWidth??"auto"},onPick:J,onClose:G})}),g.jsx(mo,{ref:h,locale:b,apiPath:M,headers:p,imageEditorProps:{},onUploadFinish:X}),g.jsx(mo,{ref:v,locale:b,apiPath:M,headers:p,onUploadFinish:X}),g.jsx(Ui,{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(yl,{size:120,icon:E(e),alt:"Error"})})]})}vo.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 md({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}=Me(),D=96,_=se(()=>{!b.current||c||(u(!0),setTimeout(()=>{const S=y.current+1,T=(S-1)*D,R=S*D,k=m.current.slice(T,R);l(j=>[...j,...k]),y.current=S,b.current=R<m.current.length,u(!1)},300))}),w=se(S=>{m.current=S,y.current=1,b.current=S.length>D;const T=S.slice(0,D);l(T),h(S.length===0),b.current&&_()}),{run:P}=fc(async S=>{if(S){u(!0);try{const{icons:T}=await mx({keyword:S});w(T)}catch(T){console.error("Failed to search icons:",T),h(!0)}finally{u(!1)}}},{wait:300,trailing:!0});return I.useEffect(()=>{const S=()=>{if(!v.current)return;const{scrollTop:R,scrollHeight:k,clientHeight:j}=v.current;(R+j>=k-150||k<=j)&&_()},T=v.current;return T&&(T.addEventListener("scroll",S),S()),()=>{T&&T.removeEventListener("scroll",S)}},[_,c]),Do(async()=>{if(f)P(f);else{u(!0);try{const S=await bx("mdi-light");w(S)}catch(S){console.error("Failed to fetch default icons:",S),h(!0)}finally{u(!1)}}},[f,P,w]),g.jsxs(Cx,{ref:v,sx:t,...a,children:[g.jsxs(oe,{className:"icon-picker-input",children:[g.jsx(it,{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(Ae,{sx:{visibility:f?"visible":"hidden"},onClick:()=>d(""),children:g.jsx(Nc,{style:{fontSize:18}})})}}}),g.jsx(xt,{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(Ix,{$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(pc,{size:20})})]})]})}md.propTypes={label:x.any,placeholder:x.any,value:x.string,sx:x.object,onPick:x.func.isRequired,onClose:x.func.isRequired};const Cx=Ve(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}})),Ix=Ve(Ae,{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 mo({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(wx,{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}})})}mo.propTypes={ref:x.any,locale:x.string,apiPath:x.string,headers:x.object,imageEditorProps:x.object,onUploadFinish:x.func};const xl=24,Sl=48,wl="add";x.string.isRequired;function na({ref:e=null,section:r="",components:n=[],rawNavigations:t=[],onChange:i=()=>{},...o}){const{roles:a}=Ec(),{t:s,locale:l}=Me(),{localeMap:c,defaultLocale:u}=ta(),f=se(()=>({title:{[u]:""},description:{[u]:""},link:{[u]:""}})),d=se(N=>Ac(Array.from(new Set(be.NAVIGATION_I18N_FIELDS.flatMap(O=>Yt(N[O])?Object.keys(N[O]):[]))),u)),p=I.useRef(()=>{}),h=zt({isRoot:!0,type:wl,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}}=zh({mode:"onChange",defaultValues:{id:"",title:"",description:"",icon:"",link:"",component:"",parent:"",role:[]}});I.useEffect(()=>{be.NAVIGATION_I18N_FIELDS.forEach(N=>b(N,h.formState[N][h.locale]))},[b,h.locale]);const _=jh({control:m}),w=_.component,P=_.title,S=_.description,T=_.link,R=_.parent;I.useEffect(()=>{h.formState.title[h.locale]=P},[P]),I.useEffect(()=>{h.formState.description[h.locale]=S},[S]),I.useEffect(()=>{h.formState.link[h.locale]=T},[T]),I.useEffect(()=>{i?.(_)},[_,i]);const k=I.useMemo(()=>t.find(O=>w?n.find(te=>te.name===w).did===O.id:O.id===R),[n,t,w,R]),j=I.useMemo(()=>{if(k?.component){const N=n.find(ae=>ae.name===k.component),{link:O}=N||{},U=Yt(O)?O[h.locale]:O;if(w)return ka(U);const te=Yt(k.link)?k.link[h.locale]:k.link;return ka(Ie(U,te||"/"))}return null},[n,h.locale,k,w]),M=I.useMemo(()=>{const{component:N}=k||{},O=n.find(ae=>ae.name===N),{navigation:U=[]}=O||{};return Ee.flattenNavigation(U,{transform(ae,de){return de?.section&&(ae.section=ae.section||de.section),ae}}).filter(ae=>ae.link).filter(ae=>Ee.isMatchSection(ae.section,r)).map(ae=>({label:ae.link,title:ae.title[l]||ae.title}))},[k,n,r,l]),H=se(()=>{h.isRoot=!0,h.locale=u,h.type=wl,h.linkDisabled=!1,h.formState=f(),y(),C(),p.current=()=>{}}),E=se((N={})=>(h.localeList.length>0&&be.NAVIGATION_I18N_FIELDS.forEach(O=>{rg(h.formState[O]).length>1&&(N[O]=h.formState[O])}),ko(N.role)&&(N.role=void 0),N)),B=se(({parent:N}={},O=()=>{})=>{h.type="add",h.isRoot=!N,b("parent",N?.id),p.current=U=>{O(U)}}),G=se((N={},O=()=>{})=>{const{id:U,icon:te,parent:ae,component:de,role:pe=[]}=N;b("id",U),b("icon",te),N.from==="team-tmpl"&&(h.linkDisabled=!0);const Ce=d(N),ze=(ye,Pe)=>{hc(ye)?h.formState[Pe]=Ce.reduce((le,ve)=>(le[ve]=ye,le),{[u]:ye}):Yt(ye)?h.formState[Pe]=Qe(ye):h.formState[Pe]={}};be.NAVIGATION_I18N_FIELDS.forEach(ye=>ze(N[ye],ye)),be.NAVIGATION_I18N_FIELDS.forEach(ye=>b(ye,h.formState[ye][h.locale])),b("component",de),b("parent",ae),b("role",pe||[]),h.type="edit",h.isRoot=!ae,p.current=ye=>{const Pe=_p(ye,["id","title","description","icon","component","link","role"]);O(Pe)}}),q=se(N=>{const O=N?.trim();if(r!=="bottomNavigation"){if(!O)return s("common.requiredErrorText",{name:s("navigation.form.title")});if(O.length>xl)return s("navigation.form.titleTooLong",{len:xl})}return!0}),J=se(N=>{const O=N?.trim();return O&&O.length>Sl?s("navigation.form.descriptionTooLong",{len:Sl}):!0}),ee=se(N=>N?.startsWith("/")?new URL(N,window.location.origin).href:N),X=se(async N=>{const O=N?.trim();if(O){if(_o(ee(O)))return!0;try{await Po(O)}catch{return s("navigation.form.invalidIcon")}}return!0}),Z=se(N=>{const O=N?.trim();return O?X(O):s("common.requiredErrorText",{name:s("navigation.form.icon")})}),V=se(N=>{const O=N?.trim();return O?Ee.checkLink(O)?!0:s("navigation.form.invalidLink"):h.isRoot?!0:s("common.requiredErrorText",{name:s("navigation.form.link")})}),re=se(N=>{h.locale=N,be.NAVIGATION_I18N_FIELDS.forEach(O=>{h.formState[O][N]||(h.formState[O][N]="")}),setTimeout(()=>{C()})}),ie=se(()=>{const{title:N,link:O}=h.formState;if(r!=="bottomNavigation")for(const U of Object.keys(N)){const te=q(N[U]);if(te!==!0)return te}for(const U of Object.keys(O)){const te=V(O[U]);if(te!==!0)return te}return!0}),$=se(N=>{const O=ie();O===!0?p.current(E(N)):Ot.error(O)}),W=se(N=>{h.locale=u,be.NAVIGATION_I18N_FIELDS.forEach(O=>{h.formState[O]=Et(h.formState[O],N)}),i?.(_)}),L=se(N=>{h.locale=N,be.NAVIGATION_I18N_FIELDS.forEach(O=>{h.formState[O][N]=h.formState[O][u]}),i?.(_),setTimeout(()=>{C()})});return I.useImperativeHandle(e,()=>({add:B,edit:G,resetImmediate:()=>H(),reset:()=>setTimeout(()=>H(),0),submit:v($)}),[B,H,G,v,$]),g.jsxs(oe,{...o,children:[g.jsx(hd,{sx:{mb:1},onAdd:L,onChange:re,onRemoveLocale:W,defaultLocale:u,locale:h.locale,localeMap:c,locales:h.localeList}),g.jsxs("form",{noValidate:!0,autoComplete:"off",children:[r!=="bottomNavigation"&&g.jsx(lt,{name:"title",control:m,rules:{validate:q},render:({field:N})=>g.jsx(it,{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||" ",...N})}),r==="bottomNavigation"?g.jsx(lt,{name:"icon",control:m,rules:{validate:Z},render:({field:N})=>g.jsx(vo,{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",...N})}):g.jsx(lt,{name:"icon",control:m,rules:{validate:X},render:({field:N})=>g.jsx(vo,{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,...N})}),h.isRoot&&g.jsx(lt,{name:"component",control:m,render:({field:N})=>g.jsx(Ki,{fullWidth:!0,margin:"dense",disabled:h.locale!==u&&N.value,label:s("navigation.form.component"),placeholer:s("navigation.form.componentPlaceholder"),options:n.map(O=>({title:O.title,value:O.name,description:O.link})),error:!!D?.component?.message,helperText:D?.component?.message||" ",...Et(N,"ref")})}),!h.isRoot&&["header"].includes(r)&&g.jsx(lt,{name:"description",control:m,rules:{validate:J},render:({field:N})=>g.jsx(it,{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||" ",...N})}),g.jsx(lt,{name:"link",control:m,rules:{validate:V},render:({field:N})=>g.jsx(gc,{fullWidth:!0,margin:"dense",children:g.jsx($h,{disablePortal:!0,freeSolo:!0,blurOnSelect:!0,autoSelect:!0,fullWidth:!0,disabled:h.linkDisabled,isOptionEqualToValue:O=>O.label,options:M,renderInput:O=>g.jsx(it,{...O,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:j?g.jsx(Rn,{position:"start",sx:{textDecoration:vx(T||"")?"line-through":""},children:j}):null}}}),renderOption:(O,U)=>g.jsxs(oe,{component:"li",...O,children:[U.label,g.jsx(me,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:U.title})]}),margin:"dense",...N,onChange:()=>{},onInputChange:(O,U)=>{N.onChange(U)}})})}),["dashboard","sessionManager"].includes(r)&&g.jsx(lt,{name:"role",control:m,render:({field:N})=>g.jsx(Ki,{fullWidth:!0,multiple:!0,margin:"dense",label:s("navigation.form.role"),placeholer:s("navigation.form.rolePlaceholder"),options:a.map(O=>({title:O.title,value:O.name})),error:!!D?.role?.message,helperText:D?.role?.message||" ",...Et(N,"ref")})}),r==="bottomNavigation"&&g.jsx(lt,{name:"title",control:m,rules:{validate:q},render:({field:N})=>g.jsx(it,{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||" ",...N})})]})]})}na.propTypes={ref:x.any,section:x.string,components:x.array,rawNavigations:x.array,onChange:x.func};function ia({ref:e=null,section:r="",components:n=[],rawNavigations:t=[]}){const{t:i}=Me(),[o,{setTrue:a,setFalse:s}]=Ah(),[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(vc,{open:o,title:f,keepMounted:!0,onClose:d,sx:{".MuiDialogContent-root":{pt:0}},actions:g.jsx(Tn,{color:"primary",variant:"contained",onClick:()=>u.current?.submit(),children:i("common.confirm")}),children:g.jsx(na,{ref:u,section:r,components:n,rawNavigations:t})})}ia.propTypes={ref:x.any,section:x.string,components:x.array,rawNavigations:x.array};function bd({className:e="",add:r=()=>{},edit:n=()=>{},toggle:t=()=>{},del:i=()=>{},data:o,section:a=""}){const{t:s}=Me(),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(Ae,{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(Ae,{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(Ae,{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(Ae,{disabled:l&&!c,size:"small",color:"error",onClick:h,children:g.jsx(xe,{icon:"mdi:delete"})})})]})}bd.propTypes={data:x.object.isRequired,className:x.string,add:x.func,edit:x.func,toggle:x.func,del:x.func,section:x.string};const Cn=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",Rx=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},Tx=(e,r="en",n="en")=>{if(typeof e=="string"){if(cd(e)){const i=new URL(e);return i.searchParams.set("locale",r),i.href}if(ud(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},rr=({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 Gt(e,o=>({...o,title:i(o.title,r),description:i(o.description,r),link:mc(o.items?.length?o.link:Tx(o.link,r,n),t),_rawLink:o.link}),"items")},Dx=e=>Gt(e,r=>r.role?{...r,role:Array.isArray(r.role)?r.role:[r.role]}:r,"items"),Px=e=>{if(!e?.length)return null;const r=Dx(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},oa=e=>{if(!e)return null;const r={...e};return r.theme=Rx(r.theme),r.navigation=Px(_x(r.navigation)),r},_x=(e=[])=>ea(e,(r,n)=>!!r.link||n.filteredChildren?.length,"items"),yd=(e,r)=>ea(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"),kx={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"/>'},Ox={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 Ex({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=jt(),c=I.useRef(null),u=zt({open:!1}),f=se((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(Ae,{size:"medium",ref:c,children:g.jsx(xe,{icon:kx,fontSize:n,style:{transform:"scale(1.08)"}})}),g.jsx(kp,{open:u.open,anchorEl:c.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>g.jsx(Op,{onClickAway:h=>{h.preventDefault(),h.stopPropagation(),f(!1)},children:g.jsx(bc,{...p,timeout:350,children:g.jsxs(Or,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[g.jsx(Ep,{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(Np,{disablePadding:!0,children:g.jsxs(Wh,{href:Oa(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:`${yc}/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||Ox,color:l.palette.text.secondary}),g.jsx(me,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Oa(h.title,r)})]})},h.id))}),g.jsx(Mp,{session:e,children:g.jsx(Tn,{variant:"outlined",fullWidth:!0,href:Ap,sx:{mt:1},children:r==="zh"?"管理":"Manage"})})]})})})})]})}const xd=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])}))}))}),Sd=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}),Nx=["admin","owner"],Mx=e=>e.endsWith(".ip.abtnet.io"),Ax=e=>e.endsWith(".did.abtnet.io"),Lx={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:"配置域名"}},zx=1e3*60*60*24*30,Cl=".well-known/service/admin/domains";function wd({locale:e="en",session:r={}}){const n=r?.user,t=Mc(),[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>zx}),a=se((d,p={})=>Un(Lx,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=Ie(window.location.origin,Cl);d.startsWith("http")&&window.open(d,"_blank"),o(!1)},[]),f=n?.role&&Nx.includes(n.role);return window.location.href.includes(Cl)||t||!Mx(s)&&!Ax(s)?null:g.jsxs(Lp,{open:i,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>o(!1),children:[g.jsxs(zp,{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(jp,{sx:{px:"12px !important"},children:[g.jsx(xt,{onClick:c,children:a("skip")}),f&&g.jsx(xt,{variant:"contained",onClick:u,children:a("bindDomain")})]})]})}wd.propTypes={locale:x.string,session:x.object};const ke={};function jx(e="admin"){let r="/";!window?.blocklet&&window?.env?.apiPrefix&&(r=window.env.apiPrefix);const n=Ie(r,yc,e);return new Gp.WsClient(n,{heartbeatIntervalMs:100*1e3})}function Fx(e="admin"){return ke[e]||(ke[e]=jx(e)),ke[e]}const Bx=(e="admin")=>{const r=I.use(qn),{session:n}=r??{},t=Le(()=>n.user?.did,[n.user]),i=Fp(t);return Bp(()=>{Object.keys(ke).forEach(o=>{ke[o]?.isConnected()&&ke[o]?.disconnect(),delete ke[o]})}),t?(i&&i!==t&&Object.keys(ke).forEach(o=>{ke[o]&&(ke[o].isConnected()&&ke[o].disconnect(),ke[o].connect())}),!ke[e]&&n.user&&(ke[e]=Fx(e),ke[e].connect()),ke[e]):null},Gx={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>'},$x={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"/>'},Wx={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 Hx(){const e=jt();return[...e.breakpoints.keys].reverse().reduce((r,n)=>{const t=Hn(e.breakpoints.up(n));return!r&&t?n:r},null)||"xs"}const kr=new $p,Ux=e=>!ko(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,qx=e=>{if(!e)return null;const{meta:r,target:n}=e;return{metaLink:r?.id,targetLink:n?.id}},Vx=async(e,r)=>{try{return await kr.user.getProfileUrl({did:e,locale:r})}catch(n){console.error(n);return}},Kx=async(e,r)=>{const{type:n,did:t}=e;return xc.isSameAddr(n,"did")?await Vx(t,r)||Dn.getLink(e):Dn.getLink(e)},Yx=async(e,r,n=!0)=>{const t=Dn.toTextList(e);return await Promise.all(t.map(async i=>{if(i instanceof Dn.Link){if(n){const o=await Kx(i,r),{type:a,chainId:s,did:l}=i;return xc.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(""))},Jx=e=>Wp.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),Xx={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 Kt({user:e,color:r=void 0}){const{palette:n}=jt(),t=Vn(Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),i=r||n.text.primary;return g.jsx(Sc,{href:t,color:i,target:"_blank",onClick:o=>{o.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}Kt.displayName="UserLink";function Qx({activity:e,users:r,actors:n,extra:t={},mountPoint:i=""}){const{palette:o}=jt(),{type:a,target:s}=e||{},{type:l}=s||{},{linkColor:c=o.text.primary}=t||{},u=Le(()=>{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=Le(()=>Array.isArray(n)?n.map(m=>m?u.get(m)||{did:m,fullName:"System"}:null).filter(Boolean):[],[n,u]),d=se(()=>{if(!Array.isArray(f)||f.length===0)return null;if(f.length===1)return g.jsx(Kt,{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(Kt,{user:m[0],color:c})," and ",g.jsx(Kt,{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,_)=>g.jsxs(Q.Fragment,{children:[g.jsx(Kt,{user:D,color:c}),_<C.length-1?", ":""]},D.did)),b?`, and ${f.length-2} others`:g.jsxs(g.Fragment,{children:[", and ",g.jsx(Kt,{user:y,color:c})]})]})}),p=se(()=>{const m=a?Xx[a]:null;return m?m(l,r.length):null}),h=Le(()=>{const m=d(),y=p();return!m||!y?null:g.jsxs(g.Fragment,{children:[m," ",y]})},[a,l,f,d,p]),v=Le(()=>{if(!e)return null;const m=qx(e);return m?.targetLink?Ie(i,m.targetLink):null},[e,i]);return!a||ko(s)?null:g.jsxs(g.Fragment,{children:[h," ",v&&g.jsx(Sc,{href:v,color:c,target:"_blank",sx:{textDecoration:"none"},onClick:m=>{m.customPreventRedirect=!0},children:s.name})]})}const Zx={normal:Ea,success:Gx,info:Ea,warning:$x,error:Wx},eS=cr(Vp)`
44
44
  font-size: 20px;
45
- `,vS=cr.div`
45
+ `,tS=cr.div`
46
46
  display: flex;
47
47
  align-items: flex-start;
48
48
  gap: 8px;
49
49
  flex: 1;
50
50
  width: 0;
51
- `,mS=cr.div`
51
+ `,rS=cr.div`
52
52
  display: flex;
53
53
  align-items: center;
54
54
  margin-left: auto;
55
55
  margin-right: -8px;
56
56
  width: 44px;
57
- `,bS={xl:"400px",lg:"400px",md:"400px",sm:"300px"},yS=cr(rp)`
57
+ `,nS={xl:"400px",lg:"400px",md:"400px",sm:"300px"},iS=cr(qp)`
58
58
  display: flex;
59
59
  color: #fff;
60
60
  align-items: center;
@@ -65,8 +65,8 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
65
65
  0px 6px 10px 0px rgba(0, 0, 0, 0.14),
66
66
  0px 1px 18px 0px rgba(0, 0, 0, 0.12);
67
67
 
68
- ${({severity:e,breakpoint:r})=>{const n=bS[r]||"400px";return e==="success"?`
69
- background-color: ${ep[600]} !important;
68
+ ${({severity:e,breakpoint:r})=>{const n=nS[r]||"400px";return e==="success"?`
69
+ background-color: ${Hp[600]} !important;
70
70
  width: ${n};
71
71
  `:e==="error"?`
72
72
  background-color: #d32f2f !important;
@@ -75,13 +75,13 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
75
75
  background-color: #1976d2 !important;
76
76
  width: ${n};
77
77
  `:e==="warning"?`
78
- background-color: ${tp[700]} !important;
78
+ background-color: ${Up[700]} !important;
79
79
  width: ${n};
80
80
  `:`
81
81
  background-color: #333;
82
82
  width: ${n};
83
83
  `}}
84
- `,xS=cr.div`
84
+ `,oS=cr.div`
85
85
  cursor: pointer;
86
86
  display: flex;
87
87
  flex-direction: column;
@@ -104,10 +104,10 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
104
104
  .link,
105
105
  .dapp,
106
106
  .common {
107
- color: ${Ji.white};
107
+ color: ${qi.white};
108
108
  }
109
109
  }
110
- `;function SS({ref:e=void 0,keyId:r,notification:n={},viewAllUrl:t,content:i=null}){const o=oS(),[a,s]=I.useState(n.description||""),l=pS[n.severity||""],{closeSnackbar:c}=kc(),u=()=>c(r);I.useEffect(()=>{uS(n.description||"","en").then(m=>{s(m)})},[n.description]);const f=m=>{m.stopPropagation(),c(r),m?.customPreventRedirect||window.open(t,"_blank")},d=Le(()=>aS(n),[n]),h=Le(()=>n?.activity,[n]),p=Le(()=>!h||h.type==="tips"?null:h?.meta,[h]),v=hS({activity:h,users:[n?.actorInfo],actors:[n?.activity?.actor],extra:{linkColor:Ji.white}});return g.jsxs(yS,{ref:e,severity:n.severity,breakpoint:o,children:[g.jsxs(vS,{children:[l?g.jsx(xe,{icon:l,fontSize:24}):null,g.jsx(xS,{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}),p?g.jsx(me,{variant:"subtitle2",component:"p",sx:{fontSize:16,display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:Ji.white,lineHeight:1.2},children:p?.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:dS(a)}})]})})})]}),g.jsx(mS,{children:g.jsx(Ae,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:g.jsx(gS,{})},"close")})]})}const wo=Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),wS=e=>Vn(wo,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function Od({session:e={}}){const{unReadCount:r,user:n,setUnReadCount:t}=e,i=Le(()=>n?.did,[n]),{enqueueSnackbar:o}=kc(),a=Oc(),s=I.useMemo(()=>!i||n?.isPreviewUser||i===window.blocklet.did,[i,n]),l=I.useMemo(()=>a.arcSphere||a.wallet,[a]),c=Le(()=>window.blocklet?.serverVersion,[]),u=tS("user"),f=Le(()=>`${window.blocklet.did}/${i}/${be.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,[i]),d=Le(()=>`${window.blocklet.did}/${i}/${be.EVENTS.NOTIFICATION_BLOCKLET_READ}`,[i]),h=I.useCallback(v=>{const{receivers:m}=v??{},{receiver:y}=m[0]??{};if(y===i){t(C=>C+1);const b=ip(c,"1.16.42-beta-20250407");if(!l&&v.source==="component"&&b){const C=wS(v),{severity:D,description:P}=v||{},w=["error","warning"].includes(D)||v.sticky;o(P,{variant:D,autoHideDuration:w?null:5e3,content:_=>g.jsx(SS,{viewAllUrl:C,keyId:_,notification:v})})}}},[i,t,o,c,l]),p=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,h),u.on(d,p)),()=>{u&&!s&&(u.off(f,h),u.off(d,p))}),[u,t,h,f,p,d,s]),!e.user||!wo?null:g.jsx(Ae,{size:"medium",variant:"outlined",href:Vn(wo,{read:r<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:g.jsx(op,{badgeContent:r,color:"error",invisible:r===0,children:g.jsx(ap,{style:{width:"auto",height:24}})})})}Od.propTypes={session:x.object};const Ed=e=>{const{response:r}=e;return r?`Request failed: ${r.status} ${r.statusText}: ${JSON.stringify(r.data)}`:e.message};function Nd(e){const r=se(async({search:o,page:a=1,pageSize:s=20})=>{try{return await kr.user.getOrgs({search:o,page:a,pageSize:s})}catch(l){return console.error(l),{orgs:[],paging:{page:a,pageSize:s,total:0}}}}),n=se(async({name:o,description:a})=>{try{return(await kr.user.createOrg({name:o,description:a})).data}catch(s){return console.error(s),Ot.error(Ed(s)),null}}),t=se(async o=>{try{return await kr.user.getOrg(o)}catch(a){return e.logout(),console.error(a),null}}),i=se(async o=>{try{const a=await kr.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 Md={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 Ad({onSuccess:e=Ye,onCancel:r=Ye,locale:n="en"}){const[t,i]=I.useState(!1),[o,a]=I.useState(""),{createOrg:s}=Nd(),l=se((d,h={})=>Un(Md,d,n,"en",h)),c=zt({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 h=c.description.trim();if(h.length>255){a(l("descriptionTooLong",{length:25}));return}a(""),i(!0);try{await s({name:d,description:h}),e()}catch(p){console.error(p);const v=Ed(p);a(v),Ot.error(v)}finally{i(!1)}},f=g.jsxs("div",{children:[g.jsx(me,{component:"div",style:{marginTop:16},children:g.jsx(it,{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(it,{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(Ic,{title:l("mutate.title",{mode:l("create")}),fullWidth:!0,open:!0,onClose:r,showCloseButton:!1,actions:g.jsxs(g.Fragment,{children:[g.jsx(Tn,{onClick:r,color:"inherit",children:l("cancel")}),g.jsxs(Tn,{"data-cy":"mutate-org-confirm",onClick:u,color:"primary",disabled:t,variant:"contained",autoFocus:!0,children:[t&&g.jsx(Sc,{size:16}),l("create")]})]}),children:[g.jsx(sp,{component:"div",children:f}),!!o&&g.jsx(lp,{severity:"error",style:{width:"100%",margin:0},children:o})]})}Ad.propTypes={onSuccess:x.func,onCancel:x.func,locale:x.string};const El=20;function Ld({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=se((E,B={})=>Un(Md,E,r,"en",B)),{getOrgs:u,getCurrentOrg:f}=Nd(e),d=I.useMemo(()=>e?.user?.role||"",[e?.user?.role]),{data:h={}}=cp(()=>f(d),{ready:!!d,refreshDeps:[d],onError:E=>{console.error("Failed to get organization role",E)}}),p=I.useMemo(()=>h||{name:e?.user?.passports?.find(E=>E.name===d)?.title||d||"-"},[h,d,e?.user?.passports]),v=up(i,{wait:500}),{data:m,loadMore:y,loadingMore:b,reload:C}=eg(async E=>{const B={page:E?Math.ceil(E.list.length/El)+1:1,pageSize:El,search:i},$=await u(B),{orgs:q=[],paging:J}=$||{};return{list:q,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,_=se(E=>{const B=E.target,{scrollTop:$,scrollHeight:q,clientHeight:J}=B;q-$-J<50&&!b&&w&&y()}),S=!!n;I.useEffect(()=>{S&&C()},[S,C]);const T=E=>{t(E.currentTarget)},R=()=>{t(null),s(!1),o("")},k=E=>{e.switchPassport(()=>{window.location.reload()},{orgId:E.id}),R()},j=()=>{s(!0)},M=()=>{const E=Vn(Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"user/orgs"),{locale:r});window.location.href=E,R()},H=E=>g.jsxs(_n,{onClick:()=>k(E),selected:E.id===p.id,sx:{py:1.5,px:2,"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.hover"}}},children:[g.jsx(Ka,{sx:{minWidth:40},children:g.jsx(er,{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(ja,{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===p.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(xt,{ref:l,onClick:T,endIcon:g.jsx(tg,{}),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(er,{sx:{width:24,height:24,fontSize:12,bgcolor:"primary.main"},children:p.name?.[0]}),g.jsx(me,{variant:"body2",sx:{fontWeight:500},children:p.name})]}),g.jsxs(dp,{anchorEl:n,open:S,onClose:R,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(it,{fullWidth:!0,size:"small",placeholder:c("search"),value:i,onChange:E=>o(E.target.value),InputProps:{startAdornment:g.jsx(Rn,{position:"start",children:g.jsx(rg,{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 $=B===D.length-1;return g.jsxs(oe,{children:[H(E),$&&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(za,{}),g.jsxs(_n,{onClick:j,sx:{py:1.5,px:2,"&:hover":{backgroundColor:"action.hover"}},children:[g.jsx(Ka,{sx:{minWidth:40},children:g.jsx(er,{sx:{width:28,height:28,bgcolor:"success.main",color:"success.contrastText"},children:g.jsx(ng,{fontSize:"small"})})}),g.jsx(ja,{primary:g.jsx(me,{variant:"body2",sx:{fontWeight:500},children:c("createNew")})})]}),g.jsx(za,{}),g.jsx(oe,{sx:{p:1.5},children:g.jsx(xt,{onClick:M,variant:"text",component:"a",size:"small",endIcon:g.jsx(ig,{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(Ad,{onSuccess:M,onCancel:()=>s(!1),locale:r})]})}Ld.propTypes={session:x.object.isRequired,locale:x.string};const CS=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification"),IS=e=>{const{settings:r={}}=e??window?.blocklet??{};return r?.org?.enabled||!1},RS=()=>{const{pathname:e=""}=window.location||{};return e.startsWith(be.WELLKNOWN_BLOCKLET_ADMIN_PATH)};function ua({formattedBlocklet:e,addons:r=null,showDomainWarningDialog:n=!0,sessionManagerProps:t={showRole:!0}}){const i=I.use(qn),{locale:o,languages:a,defaultLocale:s}=Me()||{},{enableConnect:l=!0,enableLocale:c=!0}=e,u=!!i?.session?.user;let f=rr({navigation:e?.navigation?.sessionManager,locale:o,defaultLocale:s})||[];f=Dd(f,i?.session?.user?.role);const d=(()=>{if(r&&typeof r!="function")return Array.isArray(r)?r:[r];let v=[];if(CS()&&v.push(g.jsx(Od,{session:i.session},"notification-addon")),c&&o&&a.length>1&&v.push(g.jsx(fp,{showText:!1},"locale-selector")),v.push(g.jsx(hp,{},"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(Gx,{session:i.session,locale:o},"session-blocklet")),v.push(g.jsx(pp,{session:i.session,locale:o,menu:m,showRole:!0,...t},"session-user"))}return!RS()&&IS(e)&&i?.session?.user&&v.unshift(g.jsx(Ld,{session:i.session,locale:o},"orgs-switch")),typeof r=="function"&&(v=r(v)||[]),v})(),h=Array.isArray(d)?d:[d],p=[n?g.jsx(kd,{session:i?.session,locale:o}):null,...h].filter(Boolean);return I.createElement(g.Fragment,null,...p)}ua.propTypes={formattedBlocklet:x.object.isRequired,addons:x.oneOfType([x.func,x.node]),sessionManagerProps:Pd,showDomainWarningDialog:x.bool};const zd=()=>{const e=Oc();I.useEffect(()=>{(e.wallet||e.arcSphere)&&gp.call("arcHideTopBar","{}")},[e])},TS="blocklet-ui-react-embed-mode";function jd(e){const r=e.displayName||e.name||"Component";function n(t){const[i]=ug(TS,{defaultValue:0,listenStorageChange:!0});return i===1?null:g.jsx(e,{...t})}return n.displayName=`withHideWhenEmbed(${r})`,n}const DS={en:{products:"Products"},zh:{products:"产品"},"zh-TW":{products:"產品"},ja:{products:"製品"}},_S=e=>{if(!e?.length)return{navItems:[],activeId:null};let r=1;const n=$t(e,o=>{const a=o.icon?g.jsx(Ze,{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:Rc(o.link,"header"),...s,children:o.title}),icon:a,description:o.description,link:o.link}},"items"),t=vd(n),i=yd(t.map(o=>o.link));return{navItems:n,activeId:i>=0?t[i].id:null}};function PS({meta:e={},addons:r=void 0,sessionManagerProps:n={showRole:!0},homeLink:t=Cn,theme:i={},hideNavMenu:o=!1,showDomainWarningDialog:a=!0,...s}){zd();const l=jt(),{locale:c,defaultLocale:u}=Me()||{},f=se((P,w={})=>Un(DS,P,c,"en",w)),d=I.useMemo(()=>{const P=Object.assign({},window.blocklet,e);try{return ca(P)}catch(w){return console.error("Failed to format blocklet info",w,P),P}},[e]),h=I.useMemo(()=>Mc(l,i),[l,i]),p=Ao({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),Ya(w)?{productsOrder:w,productsType:"AIGNE"}:Ya(P)?{productsOrder:P,productsType:"ARCBLOCK"}:{productsOrder:null,productsType:null}},[d]);if(!d.appName)return null;const y=rr({navigation:d?.navigation?.header,locale:c,defaultLocale:u}),b=_S(y),{navItems:C,activeId:D}=b;return m&&Number.isInteger(v)&&C.splice(v,0,{label:f("products"),children:()=>g.jsx(mp,{type:m})}),g.jsx(Ac,{theme:h,children:g.jsx(kS,{homeLink:t,logo:g.jsx("img",{src:p,alt:"logo"}),addons:g.jsx(ua,{formattedBlocklet:d,addons:typeof r=="function"?P=>r(P,{navigation:b}):r,sessionManagerProps:n,showDomainWarningDialog:a}),...Et(s,["bordered"]),$bordered:s?.bordered,$bgcolor:h.palette.background.default,className:nt("blocklet__header",s.className),children:o||!C?.length?null:({isMobile:P})=>g.jsx(bp,{mode:P?"inline":"horizontal",activeId:D,items:C,className:"header-nav",bgColor:"transparent",textColor:h.palette.grey[500],activeTextColor:h.palette.text.primary})})})}const kS=Ve(vp)`
110
+ `;function aS({ref:e=void 0,keyId:r,notification:n={},viewAllUrl:t,content:i=null}){const o=Hx(),[a,s]=I.useState(n.description||""),l=Zx[n.severity||""],{closeSnackbar:c}=wc(),u=()=>c(r);I.useEffect(()=>{Yx(n.description||"","en").then(m=>{s(m)})},[n.description]);const f=m=>{m.stopPropagation(),c(r),m?.customPreventRedirect||window.open(t,"_blank")},d=Le(()=>Ux(n),[n]),p=Le(()=>n?.activity,[n]),h=Le(()=>!p||p.type==="tips"?null:p?.meta,[p]),v=Qx({activity:p,users:[n?.actorInfo],actors:[n?.activity?.actor],extra:{linkColor:qi.white}});return g.jsxs(iS,{ref:e,severity:n.severity,breakpoint:o,children:[g.jsxs(tS,{children:[l?g.jsx(xe,{icon:l,fontSize:24}):null,g.jsx(oS,{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:qi.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:Jx(a)}})]})})})]}),g.jsx(rS,{children:g.jsx(Ae,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:g.jsx(eS,{})},"close")})]})}const bo=Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),sS=e=>Vn(bo,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function Cd({session:e={}}){const{unReadCount:r,user:n,setUnReadCount:t}=e,i=Le(()=>n?.did,[n]),{enqueueSnackbar:o}=wc(),a=Cc(),s=I.useMemo(()=>!i||n?.isPreviewUser||i===window.blocklet.did,[i,n]),l=I.useMemo(()=>a.arcSphere||a.wallet,[a]),c=Le(()=>window.blocklet?.serverVersion,[]),u=Bx("user"),f=Le(()=>`${window.blocklet.did}/${i}/${be.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,[i]),d=Le(()=>`${window.blocklet.did}/${i}/${be.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=Kp(c,"1.16.42-beta-20250407");if(!l&&v.source==="component"&&b){const C=sS(v),{severity:D,description:_}=v||{},w=["error","warning"].includes(D)||v.sticky;o(_,{variant:D,autoHideDuration:w?null:5e3,content:P=>g.jsx(aS,{viewAllUrl:C,keyId:P,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||!bo?null:g.jsx(Ae,{size:"medium",variant:"outlined",href:Vn(bo,{read:r<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:g.jsx(Yp,{badgeContent:r,color:"error",invisible:r===0,children:g.jsx(Jp,{style:{width:"auto",height:24}})})})}Cd.propTypes={session:x.object};const Id=e=>{const{response:r}=e;return r?`Request failed: ${r.status} ${r.statusText}: ${JSON.stringify(r.data)}`:e.message};function Rd(e){const r=se(async({search:o,page:a=1,pageSize:s=20})=>{try{return await kr.user.getOrgs({search:o,page:a,pageSize:s})}catch(l){return console.error(l),{orgs:[],paging:{page:a,pageSize:s,total:0}}}}),n=se(async({name:o,description:a})=>{try{return(await kr.user.createOrg({name:o,description:a})).data}catch(s){return console.error(s),Ot.error(Id(s)),null}}),t=se(async o=>{try{return await kr.user.getOrg(o)}catch(a){return e.logout(),console.error(a),null}}),i=se(async o=>{try{const a=await kr.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 Td={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 Dd({onSuccess:e=Ye,onCancel:r=Ye,locale:n="en"}){const[t,i]=I.useState(!1),[o,a]=I.useState(""),{createOrg:s}=Rd(),l=se((d,p={})=>Un(Td,d,n,"en",p)),c=zt({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=Id(h);a(v),Ot.error(v)}finally{i(!1)}},f=g.jsxs("div",{children:[g.jsx(me,{component:"div",style:{marginTop:16},children:g.jsx(it,{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(it,{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(vc,{title:l("mutate.title",{mode:l("create")}),fullWidth:!0,open:!0,onClose:r,showCloseButton:!1,actions:g.jsxs(g.Fragment,{children:[g.jsx(Tn,{onClick:r,color:"inherit",children:l("cancel")}),g.jsxs(Tn,{"data-cy":"mutate-org-confirm",onClick:u,color:"primary",disabled:t,variant:"contained",autoFocus:!0,children:[t&&g.jsx(pc,{size:16}),l("create")]})]}),children:[g.jsx(Xp,{component:"div",children:f}),!!o&&g.jsx(Qp,{severity:"error",style:{width:"100%",margin:0},children:o})]})}Dd.propTypes={onSuccess:x.func,onCancel:x.func,locale:x.string};const Il=20;function Pd({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=se((E,B={})=>Un(Td,E,r,"en",B)),{getOrgs:u,getCurrentOrg:f}=Rd(e),d=I.useMemo(()=>e?.user?.role||"",[e?.user?.role]),{data:p={}}=Zp(()=>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=eh(i,{wait:500}),{data:m,loadMore:y,loadingMore:b,reload:C}=Hh(async E=>{const B={page:E?Math.ceil(E.list.length/Il)+1:1,pageSize:Il,search:i},G=await u(B),{orgs:q=[],paging:J}=G||{};return{list:q,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:_=0}=m||{},w=D.length<_,P=se(E=>{const B=E.target,{scrollTop:G,scrollHeight:q,clientHeight:J}=B;q-G-J<50&&!b&&w&&y()}),S=!!n;I.useEffect(()=>{S&&C()},[S,C]);const T=E=>{t(E.currentTarget)},R=()=>{t(null),s(!1),o("")},k=E=>{e.switchPassport(()=>{window.location.reload()},{orgId:E.id}),R()},j=()=>{s(!0)},M=()=>{const E=Vn(Ie(be.WELLKNOWN_SERVICE_PATH_PREFIX,"user/orgs"),{locale:r});window.location.href=E,R()},H=E=>g.jsxs(Pn,{onClick:()=>k(E),selected:E.id===h.id,sx:{py:1.5,px:2,"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.hover"}}},children:[g.jsx(Ha,{sx:{minWidth:40},children:g.jsx(er,{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(Ma,{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(xt,{ref:l,onClick:T,endIcon:g.jsx(Uh,{}),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(er,{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(th,{anchorEl:n,open:S,onClose:R,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(it,{fullWidth:!0,size:"small",placeholder:c("search"),value:i,onChange:E=>o(E.target.value),InputProps:{startAdornment:g.jsx(Rn,{position:"start",children:g.jsx(qh,{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:P,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(Na,{}),g.jsxs(Pn,{onClick:j,sx:{py:1.5,px:2,"&:hover":{backgroundColor:"action.hover"}},children:[g.jsx(Ha,{sx:{minWidth:40},children:g.jsx(er,{sx:{width:28,height:28,bgcolor:"success.main",color:"success.contrastText"},children:g.jsx(Vh,{fontSize:"small"})})}),g.jsx(Ma,{primary:g.jsx(me,{variant:"body2",sx:{fontWeight:500},children:c("createNew")})})]}),g.jsx(Na,{}),g.jsx(oe,{sx:{p:1.5},children:g.jsx(xt,{onClick:M,variant:"text",component:"a",size:"small",endIcon:g.jsx(Kh,{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(Dd,{onSuccess:M,onCancel:()=>s(!1),locale:r})]})}Pd.propTypes={session:x.object.isRequired,locale:x.string};const lS=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification"),cS=e=>{const{settings:r={}}=e??window?.blocklet??{};return r?.org?.enabled||!1},uS=()=>{const{pathname:e=""}=window.location||{};return e.startsWith(be.WELLKNOWN_BLOCKLET_ADMIN_PATH)};function aa({formattedBlocklet:e,addons:r=null,showDomainWarningDialog:n=!0,sessionManagerProps:t={showRole:!0}}){const i=I.use(qn),{locale:o,languages:a,defaultLocale:s}=Me()||{},{enableConnect:l=!0,enableLocale:c=!0}=e,u=!!i?.session?.user;let f=rr({navigation:e?.navigation?.sessionManager,locale:o,defaultLocale:s})||[];f=yd(f,i?.session?.user?.role);const d=(()=>{if(r&&typeof r!="function")return Array.isArray(r)?r:[r];let v=[];if(lS()&&v.push(g.jsx(Cd,{session:i.session},"notification-addon")),c&&o&&a.length>1&&v.push(g.jsx(rh,{showText:!1},"locale-selector")),v.push(g.jsx(nh,{},"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(Ex,{session:i.session,locale:o},"session-blocklet")),v.push(g.jsx(ih,{session:i.session,locale:o,menu:m,showRole:!0,...t},"session-user"))}return!uS()&&cS(e)&&i?.session?.user&&v.unshift(g.jsx(Pd,{session:i.session,locale:o},"orgs-switch")),typeof r=="function"&&(v=r(v)||[]),v})(),p=Array.isArray(d)?d:[d],h=[n?g.jsx(wd,{session:i?.session,locale:o}):null,...p].filter(Boolean);return I.createElement(g.Fragment,null,...h)}aa.propTypes={formattedBlocklet:x.object.isRequired,addons:x.oneOfType([x.func,x.node]),sessionManagerProps:Sd,showDomainWarningDialog:x.bool};const _d=()=>{const e=Cc();I.useEffect(()=>{(e.wallet||e.arcSphere)&&oh.call("arcHideTopBar","{}")},[e])},dS="blocklet-ui-react-embed-mode";function kd(e){const r=e.displayName||e.name||"Component";function n(t){const[i]=eg(dS,{defaultValue:0,listenStorageChange:!0});return i===1?null:g.jsx(e,{...t})}return n.displayName=`withHideWhenEmbed(${r})`,n}const fS={en:{products:"Products"},zh:{products:"产品"},"zh-TW":{products:"產品"},ja:{products:"製品"}},pS=e=>{if(!e?.length)return{navItems:[],activeId:null};let r=1;const n=Gt(e,o=>{const a=o.icon?g.jsx(Ze,{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:mc(o.link,"header"),...s,children:o.title}),icon:a,description:o.description,link:o.link}},"items"),t=ld(n),i=dd(t.map(o=>o.link));return{navItems:n,activeId:i>=0?t[i].id:null}};function hS({meta:e={},addons:r=void 0,sessionManagerProps:n={showRole:!0},homeLink:t=Cn,theme:i={},hideNavMenu:o=!1,showDomainWarningDialog:a=!0,...s}){_d();const l=jt(),{locale:c,defaultLocale:u}=Me()||{},f=se((_,w={})=>Un(fS,_,c,"en",w)),d=I.useMemo(()=>{const _=Object.assign({},window.blocklet,e);try{return oa(_)}catch(w){return console.error("Failed to format blocklet info",w,_),_}},[e]),p=I.useMemo(()=>Tc(l,i),[l,i]),h=Oo({meta:e,theme:i}),{productsOrder:v,productsType:m}=I.useMemo(()=>{let{USE_ARCBLOCK_THEME:_,USE_AIGNE_THEME:w}=d;return _=parseInt(_,10),w=parseInt(w,10),Ua(w)?{productsOrder:w,productsType:"AIGNE"}:Ua(_)?{productsOrder:_,productsType:"ARCBLOCK"}:{productsOrder:null,productsType:null}},[d]);if(!d.appName)return null;const y=rr({navigation:d?.navigation?.header,locale:c,defaultLocale:u}),b=pS(y),{navItems:C,activeId:D}=b;return m&&Number.isInteger(v)&&C.splice(v,0,{label:f("products"),children:()=>g.jsx(sh,{type:m})}),g.jsx(Dc,{theme:p,children:g.jsx(gS,{homeLink:t,logo:g.jsx("img",{src:h,alt:"logo"}),addons:g.jsx(aa,{formattedBlocklet:d,addons:typeof r=="function"?_=>r(_,{navigation:b}):r,sessionManagerProps:n,showDomainWarningDialog:a}),...Et(s,["bordered"]),$bordered:s?.bordered,$bgcolor:p.palette.background.default,className:nt("blocklet__header",s.className),children:o||!C?.length?null:({isMobile:_})=>g.jsx(lh,{mode:_?"inline":"horizontal",activeId:D,items:C,className:"header-nav",bgColor:"transparent",textColor:p.palette.grey[500],activeTextColor:p.palette.text.primary})})})}const gS=Ve(ah)`
111
111
  ${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
112
112
  .header-logo {
113
113
  min-width: 44px;
@@ -118,7 +118,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
118
118
  min-width: 32px;
119
119
  }
120
120
  }
121
- `,OS=Ec(jd(PS),{FallbackComponent:Nc});function Fd({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(ES,{...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})]})}Fd.propTypes={name:x.node,logo:x.node,description:x.string};const ES=Ve("div")`
121
+ `,vS=Ic(kd(hS),{FallbackComponent:Rc});function Od({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(mS,{...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})]})}Od.propTypes={name:x.node,logo:x.node,description:x.string};const mS=Ve("div")`
122
122
  display: flex;
123
123
  flex-direction: column;
124
124
  font-size: 14px;
@@ -165,7 +165,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
165
165
  }
166
166
  }
167
167
  }
168
- `;function Co({links:e=[],flowLayout:r=!1,columns:n,...t}){const[i,o]=I.useState(-1),a=Gc({key:"md"}),s=e.some(f=>f.items?.length),l=!a&&s&&pg(n)&&n>1,c=({label:f,link:d,icon:h,render:p,props:v})=>{let m=f;if(p)m=p({label:f,link:d,props:v});else if(d&&wc(d)){const y=d.startsWith("http")||d.startsWith("//"),b=bd(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:[h&&g.jsx(Ze,{icon:h,size:20,sx:{mr:.5}}),m]})},u=Le(()=>e?.length?r?e.map((f,d)=>g.jsx("span",{className:"footer-links-item",children:c(f)},d)):l?Sx(e,{columns:n}).map((f,d)=>g.jsx("div",{className:"footer-links-column",children:f.filter(h=>h.group).map((h,p)=>{const{items:v}=h;return g.jsxs("div",{className:"footer-links-group",children:[g.jsx("span",{className:"footer-links-item",children:c(h)}),!!v?.length&&g.jsx("div",{className:"footer-links-sub",children:v.map((m,y)=>g.jsx("span",{className:nt("footer-links-item",{"footer-links-item--new":m.isNew}),children:c(m)},y))})]},p)})},d)):e.map((f,d)=>{const{items:h}=f,p=d===i;return g.jsxs("div",{className:nt("footer-links-group",{"footer-links-group--active":p}),onClick:()=>o(i===d?-1:d),children:[g.jsxs("span",{className:"footer-links-item",children:[c(f),!!h?.length&&g.jsx("span",{className:"footer-links-group-expand-icon",children:g.jsx(yp,{style:{transform:`rotate(${p?180:0}deg)`}})})]}),!!h?.length&&g.jsx("div",{className:"footer-links-sub",children:h.map((v,m)=>g.jsx("span",{className:nt("footer-links-item",{"footer-links-item--new":v.isNew}),children:c(v)},m))})]},d)}):null,[e,r,l,i]);return e?.length?g.jsx(NS,{...t,className:nt(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}Co.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 NS=Ve("div")`
168
+ `;function yo({links:e=[],flowLayout:r=!1,columns:n,...t}){const[i,o]=I.useState(-1),a=Mc({key:"md"}),s=e.some(f=>f.items?.length),l=!a&&s&&ig(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&&hc(d)){const y=d.startsWith("http")||d.startsWith("//"),b=ud(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(Ze,{icon:p,size:20,sx:{mr:.5}}),m]})},u=Le(()=>e?.length?r?e.map((f,d)=>g.jsx("span",{className:"footer-links-item",children:c(f)},d)):l?dx(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:nt("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:nt("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(ch,{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:nt("footer-links-item",{"footer-links-item--new":v.isNew}),children:c(v)},m))})]},d)}):null,[e,r,l,i]);return e?.length?g.jsx(bS,{...t,className:nt(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}yo.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 bS=Ve("div")`
169
169
  overflow: hidden;
170
170
  color: ${({theme:e})=>e.palette.text.secondary};
171
171
  .footer-links-inner {
@@ -314,7 +314,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
314
314
  }
315
315
  }
316
316
  }
317
- `;function Bd({items:e=null,...r}){return e?.length?g.jsx(MS,{...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(Ze,{icon:n.icon||n.title,size:24,component:"span"})},t))}):null}Bd.propTypes={items:x.arrayOf(x.shape({icon:x.string,link:x.string}))};const MS=Ve("div")`
317
+ `;function Ed({items:e=null,...r}){return e?.length?g.jsx(yS,{...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(Ze,{icon:n.icon||n.title,size:24,component:"span"})},t))}):null}Ed.propTypes={items:x.arrayOf(x.shape({icon:x.string,link:x.string}))};const yS=Ve("div")`
318
318
  display: inline-flex;
319
319
  flex-wrap: wrap;
320
320
  align-items: center;
@@ -331,12 +331,12 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
331
331
  ${e=>e.theme.breakpoints.down("md")} {
332
332
  gap: 12px;
333
333
  }
334
- `;function $d({owner:e="ArcBlock",year:r=`${new Date().getFullYear()}`,...n}){return g.jsxs(AS,{...n,children:["Copyright © ",r," ",e]})}$d.propTypes={owner:x.string,year:x.string};const AS=Ve("p")`
334
+ `;function Nd({owner:e="ArcBlock",year:r=`${new Date().getFullYear()}`,...n}){return g.jsxs(xS,{...n,children:["Copyright © ",r," ",e]})}Nd.propTypes={owner:x.string,year:x.string};const xS=Ve("p")`
335
335
  display: flex;
336
336
  align-items: center;
337
337
  margin: 0;
338
338
  font-size: 13px;
339
- `;function da({children:e=null,autoCenter:r=!1,...n}){return e?g.jsx(LS,{...n,className:nt(n.className,{"footer-row-auto-center":r}),children:e}):null}da.propTypes={children:x.any,autoCenter:x.bool};const LS=Ve(oe)`
339
+ `;function sa({children:e=null,autoCenter:r=!1,...n}){return e?g.jsx(SS,{...n,className:nt(n.className,{"footer-row-auto-center":r}),children:e}):null}sa.propTypes={children:x.any,autoCenter:x.bool};const SS=Ve(oe)`
340
340
  display: flex;
341
341
  justify-content: space-between;
342
342
  & + & {
@@ -357,7 +357,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
357
357
  margin: 0 auto;
358
358
  }
359
359
  }
360
- `;function Gd({elements:e,data:r,className:n="",...t}){const i=!!r.navigation?.length;let o=null;return i?o=g.jsxs(Jt,{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(Jt,{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(zS,{...t,className:nt({"footer--with-navs":i},n),children:g.jsxs(Jt,{style:{padding:0},children:[o,g.jsx(oe,{sx:{pt:3,borderTop:1,borderColor:"divider"}}),g.jsx(Jt,{children:g.jsxs(da,{autoCenter:!0,children:[e.copyright,e.links]})})]})})}Gd.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 zS=Ve("div")`
360
+ `;function Md({elements:e,data:r,className:n="",...t}){const i=!!r.navigation?.length;let o=null;return i?o=g.jsxs(Jt,{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(Jt,{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(wS,{...t,className:nt({"footer--with-navs":i},n),children:g.jsxs(Jt,{style:{padding:0},children:[o,g.jsx(oe,{sx:{pt:3,borderTop:1,borderColor:"divider"}}),g.jsx(Jt,{children:g.jsxs(sa,{autoCenter:!0,children:[e.copyright,e.links]})})]})})}Md.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 wS=Ve("div")`
361
361
  padding: 32px 0 24px 0;
362
362
  .footer-brand-name,
363
363
  .footer-brand-desc {
@@ -374,7 +374,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
374
374
  && .footer-brand-logo {
375
375
  margin-right: 0;
376
376
  }
377
- `;function Wd({elements:e,data:r,...n}){return g.jsx(jS,{...n,children:g.jsx(Jt,{style:{padding:0},children:g.jsxs(Jt,{className:"plain-layout-container",children:[e.links&&g.jsxs(da,{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]})]})})})}Wd.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 jS=Ve("div")`
377
+ `;function Ad({elements:e,data:r,...n}){return g.jsx(CS,{...n,children:g.jsx(Jt,{style:{padding:0},children:g.jsxs(Jt,{className:"plain-layout-container",children:[e.links&&g.jsxs(sa,{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]})]})})})}Ad.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 CS=Ve("div")`
378
378
  padding: 24px 0;
379
379
  .plain-layout-container {
380
380
  display: flex;
@@ -383,31 +383,31 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
383
383
  flex-wrap: wrap;
384
384
  gap: 8px;
385
385
  }
386
- `,Hd=[{name:"plain",support:(e,r)=>!r.navigation?.length&&!r.socialMedia?.length,component:Wd},{name:"standard",support:()=>!0,component:Gd}],FS=Hd.reduce((e,r)=>({...e,[r.name]:r}),{});function Ud({...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(Fd,{...r}):null,c=()=>n?.length?g.jsx(Co,{links:n,columns:3}):null,u=()=>t?.length?g.jsx(Bd,{items:t}):null,f=()=>{const v=i?.owner||r?.name;return v?g.jsx($d,{owner:v,year:i?.year||void 0}):null},d=()=>o?.length?g.jsx(Co,{flowLayout:!0,links:o}):null,h={brand:l(),navigation:c(),socialMedia:u(),copyright:f(),links:d()};let p=null;if(a==="auto"?p=Hd.find(v=>v.support(h,e)).component:p=FS[a]?.component,!p)throw new Error(`layout ${a} is not supported.`);return g.jsxs(oe,{...s,className:nt("blocklet__footer",s.className),sx:[{position:"relative"},...Array.isArray(s.sx)?s.sx:[s.sx]],children:[g.jsx(p,{elements:h,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})]})}Ud.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 qd({meta:e={},theme:r={},...n}){const{locale:t,defaultLocale:i}=Me()||{},o=jt(),a=I.useMemo(()=>{const m=Object.assign({},window.blocklet,e);try{return ca(m)}catch(y){return console.error("Failed to format blocklet info",y,m),m}},[e]),s=I.useMemo(()=>Mc(o,r),[o,r]),l=Ao({key:"xs",meta:e,theme:r});if(!a.appName)return null;const{appName:c,appDescription:u,description:f,copyright:d}=a,h=s.palette.background.default,p={footerNav:rr({navigation:a?.navigation?.footer,locale:t,defaultLocale:i,section:"footer"})||[],socialMedia:rr({navigation:a?.navigation?.social,locale:t,defaultLocale:i,section:"footer"})||[],links:rr({navigation:a?.navigation?.bottom,locale:t,defaultLocale:i,section:"footer"})||[]},v={brand:{name:c,description:u||f,logo:l},navigation:$t(p.footerNav,m=>({...m,label:m.title,link:m.link}),"items"),copyright:d,socialMedia:p.socialMedia,links:p.links.map(m=>({...m,label:m.title}))};return g.jsx(Ac,{theme:s,children:g.jsx(BS,{...v,...Et(n,["bordered"]),$bordered:n?.bordered,$bgcolor:h})})}qd.propTypes={meta:_d,theme:x.object};const BS=Ve(Ud)`
386
+ `,Ld=[{name:"plain",support:(e,r)=>!r.navigation?.length&&!r.socialMedia?.length,component:Ad},{name:"standard",support:()=>!0,component:Md}],IS=Ld.reduce((e,r)=>({...e,[r.name]:r}),{});function zd({...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(Od,{...r}):null,c=()=>n?.length?g.jsx(yo,{links:n,columns:3}):null,u=()=>t?.length?g.jsx(Ed,{items:t}):null,f=()=>{const v=i?.owner||r?.name;return v?g.jsx(Nd,{owner:v,year:i?.year||void 0}):null},d=()=>o?.length?g.jsx(yo,{flowLayout:!0,links:o}):null,p={brand:l(),navigation:c(),socialMedia:u(),copyright:f(),links:d()};let h=null;if(a==="auto"?h=Ld.find(v=>v.support(p,e)).component:h=IS[a]?.component,!h)throw new Error(`layout ${a} is not supported.`);return g.jsxs(oe,{...s,className:nt("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})]})}zd.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 jd({meta:e={},theme:r={},...n}){const{locale:t,defaultLocale:i}=Me()||{},o=jt(),a=I.useMemo(()=>{const m=Object.assign({},window.blocklet,e);try{return oa(m)}catch(y){return console.error("Failed to format blocklet info",y,m),m}},[e]),s=I.useMemo(()=>Tc(o,r),[o,r]),l=Oo({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:rr({navigation:a?.navigation?.footer,locale:t,defaultLocale:i,section:"footer"})||[],socialMedia:rr({navigation:a?.navigation?.social,locale:t,defaultLocale:i,section:"footer"})||[],links:rr({navigation:a?.navigation?.bottom,locale:t,defaultLocale:i,section:"footer"})||[]},v={brand:{name:c,description:u||f,logo:l},navigation:Gt(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(Dc,{theme:s,children:g.jsx(RS,{...v,...Et(n,["bordered"]),$bordered:n?.bordered,$bgcolor:p})})}jd.propTypes={meta:xd,theme:x.object};const RS=Ve(zd)`
387
387
  ${({$bordered:e,theme:r})=>`border-top: 1px solid ${e&&r.palette.divider};`}
388
388
  color: ${({theme:e})=>e.palette.text.secondary};
389
389
  ${({$bgcolor:e})=>e&&`background-color: ${e};`}
390
- `,$S=Ec(jd(qd),{FallbackComponent:Nc});function Vd({meta:e={},fallbackUrl:r=Cn,invalidPathFallback:n=null,headerAddons:t=void 0,sessionManagerProps:i={showRole:!0,onLogout:()=>{window.location.href=Cn}},links:o=[],showDomainWarningDialog:a=!0,...s}){zd();const l=I.use(qn)?.session?.user,c=l?.role,{locale:u,defaultLocale:f}=Me()||{},d=I.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return ca(C)}catch(D){return console.error("Failed to format blocklet info",D,C),C}},[e]),{localizedNav:h,flattened:p,matchedIndex:v}=I.useMemo(()=>{let C=rr({navigation:d?.navigation?.dashboard,locale:u,defaultLocale:f})||[];C=Dd(C,c),C=$t(C,w=>{let _=null;return w.icon&&(w.icon.startsWith("http")||w.icon.startsWith("data:")?_=g.jsx(Sp,{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=vd(C).filter(w=>!!w.url),P=yd(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(h):[...h,...o],y=Ao({meta:e});if(I.useLayoutEffect(()=>{l&&!p?.length&&r&&(window.location.href=r)},[r]),I.useLayoutEffect(()=>{l&&p?.length&&v===-1&&n&&n()},[n,p,v]),!d.appName)return null;const{appName:b}=d;return g.jsx(xp,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:m,...s,headerProps:{homeLink:Cn,logo:g.jsx("img",{src:y,alt:"logo"}),addons:g.jsx(ua,{formattedBlocklet:d,addons:t,sessionManagerProps:i,showDomainWarningDialog:a}),...s.headerProps}})}Vd.propTypes={meta:_d,fallbackUrl:x.string,invalidPathFallback:x.func,headerAddons:x.oneOfType([x.func,x.node]),sessionManagerProps:Pd,links:x.oneOfType([x.array,x.func]),showDomainWarningDialog:x.bool};function Kd(e,r){return e?r===e.nodeName?!0:Kd(e.parentNode,r):!1}function GS({...e}){return g.jsx("div",{onClick:r=>{Kd(r.target,"A")&&r.preventDefault()},...e})}function Yd({className:e="",navigation:r=[]}){const{blocklet:n}=Ft(),{locale:t}=Me(),{languages:i}=oa(),o=wp({blocklet:n,square:!0}),a=n?.environments?.find(u=>u.key===ht.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER)?.value,s=n?.environments?.find(u=>u.key===ht.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(Cp,{translations:og,locale:t,languages:i,children:g.jsx(GS,{children:g.jsxs(oe,{className:e,children:[g.jsx(OS,{meta:c,showDomainWarningDialog:!1,sx:{".header-container":{maxWidth:"none"}}}),g.jsx(oe,{children:g.jsx(Vd,{meta:c,invalidPathFallback:()=>{},headerProps:{style:{display:"none"}},hideHtmlTitle:!0,showDomainWarningDialog:!1,children:g.jsx(Fa,{container:!0,spacing:2,children:new Array(6).fill().map((u,f)=>g.jsxs(Fa,{size:4,children:[g.jsx(ui,{animation:!1,variant:"rectangular",width:"100%",height:120}),g.jsxs(oe,{sx:{pt:.5},children:[g.jsx(ui,{animation:!1}),g.jsx(ui,{width:"60%",animation:!1})]})]},f))})})}),g.jsx($S,{meta:c,sx:{".MuiContainer-root":{maxWidth:"none"}}})]})})})}Yd.propTypes={className:x.string,navigation:x.array};const WS=cr(Yd)`
390
+ `,TS=Ic(kd(jd),{FallbackComponent:Rc});function Fd({meta:e={},fallbackUrl:r=Cn,invalidPathFallback:n=null,headerAddons:t=void 0,sessionManagerProps:i={showRole:!0,onLogout:()=>{window.location.href=Cn}},links:o=[],showDomainWarningDialog:a=!0,...s}){_d();const l=I.use(qn)?.session?.user,c=l?.role,{locale:u,defaultLocale:f}=Me()||{},d=I.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return oa(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=rr({navigation:d?.navigation?.dashboard,locale:u,defaultLocale:f})||[];C=yd(C,c),C=Gt(C,w=>{let P=null;return w.icon&&(w.icon.startsWith("http")||w.icon.startsWith("data:")?P=g.jsx(dh,{src:w.icon}):P=g.jsx("iconify-icon",{height:"100%",width:"100%",icon:w.icon})),{id:w.id,title:w.title,url:w.link,icon:P,external:!0,children:w.items}},"items");const D=ld(C).filter(w=>!!w.url),_=dd(D.map(w=>w.url));return _!==-1&&(D[_].active=!0),{localizedNav:C,flattened:D,matchedIndex:_}},[d,u,f,c]),m=typeof o=="function"?o(p):[...p,...o],y=Oo({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(uh,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:m,...s,headerProps:{homeLink:Cn,logo:g.jsx("img",{src:y,alt:"logo"}),addons:g.jsx(aa,{formattedBlocklet:d,addons:t,sessionManagerProps:i,showDomainWarningDialog:a}),...s.headerProps}})}Fd.propTypes={meta:xd,fallbackUrl:x.string,invalidPathFallback:x.func,headerAddons:x.oneOfType([x.func,x.node]),sessionManagerProps:Sd,links:x.oneOfType([x.array,x.func]),showDomainWarningDialog:x.bool};function Bd(e,r){return e?r===e.nodeName?!0:Bd(e.parentNode,r):!1}function DS({...e}){return g.jsx("div",{onClick:r=>{Bd(r.target,"A")&&r.preventDefault()},...e})}function Gd({className:e="",navigation:r=[]}){const{blocklet:n}=Ft(),{locale:t}=Me(),{languages:i}=ta(),o=fh({blocklet:n,square:!0}),a=n?.environments?.find(u=>u.key===pt.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER)?.value,s=n?.environments?.find(u=>u.key===pt.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(ph,{translations:Yh,locale:t,languages:i,children:g.jsx(DS,{children:g.jsxs(oe,{className:e,children:[g.jsx(vS,{meta:c,showDomainWarningDialog:!1,sx:{".header-container":{maxWidth:"none"}}}),g.jsx(oe,{children:g.jsx(Fd,{meta:c,invalidPathFallback:()=>{},headerProps:{style:{display:"none"}},hideHtmlTitle:!0,showDomainWarningDialog:!1,children:g.jsx(Aa,{container:!0,spacing:2,children:new Array(6).fill().map((u,f)=>g.jsxs(Aa,{size:4,children:[g.jsx(ui,{animation:!1,variant:"rectangular",width:"100%",height:120}),g.jsxs(oe,{sx:{pt:.5},children:[g.jsx(ui,{animation:!1}),g.jsx(ui,{width:"60%",animation:!1})]})]},f))})})}),g.jsx(TS,{meta:c,sx:{".MuiContainer-root":{maxWidth:"none"}}})]})})})}Gd.propTypes={className:x.string,navigation:x.array};const PS=cr(Gd)`
391
391
  .dashboard {
392
392
  height: auto !important;
393
393
  }
394
394
  .dashboard-content + div {
395
395
  display: none;
396
396
  }
397
- `;var Jd=Q.createContext(null);function HS(e){e()}var Xd=HS,US=function(r){return Xd=r},qS=function(){return Xd};function VS(){var e=qS(),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 Nl={notify:function(){},get:function(){return[]}};function Qd(e,r){var n,t=Nl;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=VS())}function c(){n&&(n(),n=void 0,t.clear(),t=Nl)}var u={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:function(){return t}};return u}var Zd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect;function KS(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]);Zd(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||Jd;return Q.createElement(a.Provider,{value:i},t)}var ji={exports:{}},pe={};/** @license React v17.0.2
397
+ `;var $d=Q.createContext(null);function _S(e){e()}var Wd=_S,kS=function(r){return Wd=r},OS=function(){return Wd};function ES(){var e=OS(),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 Rl={notify:function(){},get:function(){return[]}};function Hd(e,r){var n,t=Rl;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=ES())}function c(){n&&(n(),n=void 0,t.clear(),t=Rl)}var u={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:function(){return t}};return u}var Ud=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect;function NS(e){var r=e.store,n=e.context,t=e.children,i=I.useMemo(function(){var s=Hd(r);return{store:r,subscription:s}},[r]),o=I.useMemo(function(){return r.getState()},[r]);Ud(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||$d;return Q.createElement(a.Provider,{value:i},t)}var Mi={exports:{}},he={};/** @license React v17.0.2
398
398
  * react-is.production.min.js
399
399
  *
400
400
  * Copyright (c) Facebook, Inc. and its affiliates.
401
401
  *
402
402
  * This source code is licensed under the MIT license found in the
403
403
  * LICENSE file in the root directory of this source tree.
404
- */var Ml;function YS(){if(Ml)return pe;Ml=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,h=60122,p=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"),h=y("react.server.block"),p=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,T=r,R=i,k=t,j=l;return pe.ContextConsumer=a,pe.ContextProvider=C,pe.Element=D,pe.ForwardRef=P,pe.Fragment=w,pe.Lazy=_,pe.Memo=S,pe.Portal=T,pe.Profiler=R,pe.StrictMode=k,pe.Suspense=j,pe.isAsyncMode=function(){return!1},pe.isConcurrentMode=function(){return!1},pe.isContextConsumer=function(M){return b(M)===a},pe.isContextProvider=function(M){return b(M)===o},pe.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},pe.isForwardRef=function(M){return b(M)===s},pe.isFragment=function(M){return b(M)===n},pe.isLazy=function(M){return b(M)===f},pe.isMemo=function(M){return b(M)===u},pe.isPortal=function(M){return b(M)===r},pe.isProfiler=function(M){return b(M)===i},pe.isStrictMode=function(M){return b(M)===t},pe.isSuspense=function(M){return b(M)===l},pe.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===p||M.$$typeof===d||M[0]===h)},pe.typeOf=b,pe}var Al;function JS(){return Al||(Al=1,ji.exports=YS()),ji.exports}var XS=JS(),QS=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ZS=["reactReduxForwardedRef"],ew=[],tw=[null,null];function rw(e,r){var n=e[1];return[r.payload,n+1]}function Ll(e,r,n){Zd(function(){return e.apply(void 0,r)},n)}function nw(e,r,n,t,i,o,a){e.current=t,r.current=i,n.current=!1,o.current&&(o.current=null,a())}function iw(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 h=function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f};return h}}var ow=function(){return[null,0]};function aw(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 h=n.forwardRef,p=h===void 0?!1:h,v=n.context,m=v===void 0?Jd:v,y=nr(n,QS),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 T(H){return e(H.dispatch,_)}var R=S?I.useMemo:function(H){return H()};function k(H){var E=I.useMemo(function(){var _e=H.reactReduxForwardedRef,le=nr(H,ZS);return[H.context,_e,le]},[H]),B=E[0],$=E[1],q=E[2],J=I.useMemo(function(){return B&&B.Consumer&&XS.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,V=I.useMemo(function(){return T(Z)},[Z]),re=I.useMemo(function(){if(!u)return tw;var _e=Qd(Z,X?null:ee.subscription),le=_e.notifyNestedSubs.bind(_e);return[_e,le]},[Z,X,ee]),ie=re[0],G=re[1],W=I.useMemo(function(){return X?ee:K({},ee,{subscription:ie})},[X,ee,ie]),L=I.useReducer(rw,ew,ow),N=L[0],O=N[0],U=L[1];if(O&&O.error)throw O.error;var te=I.useRef(),ae=I.useRef(q),de=I.useRef(),he=I.useRef(!1),Ce=R(function(){return de.current&&q===ae.current?de.current:V(Z.getState(),q)},[Z,O,q]);Ll(nw,[ae,te,he,q,Ce,de,G]),Ll(iw,[u,Z,ie,V,ae,te,he,de,G,U],[Z,ie,V]);var ze=I.useMemo(function(){return Q.createElement(D,K({},Ce,{ref:$}))},[$,D,Ce]),ye=I.useMemo(function(){return u?Q.createElement(J.Provider,{value:W},ze):ze},[J,ze,W]);return ye}var j=S?Q.memo(k):k;if(j.WrappedComponent=D,j.displayName=k.displayName=w,p){var M=Q.forwardRef(function(E,B){return Q.createElement(j,K({},E,{reactReduxForwardedRef:B}))});return M.displayName=w,M.WrappedComponent=D,Ba(M,D)}return Ba(j,D)}}function zl(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function Fi(e,r){if(zl(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])||!zl(e[n[i]],r[n[i]]))return!1;return!0}function sw(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 fa(e){return function(n,t){var i=e(n,t);function o(){return i}return o.dependsOnOwnProps=!1,o}}function jl(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function ef(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=jl(e);var c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=jl(c),c=o(s,l)),c},o}}function lw(e){return typeof e=="function"?ef(e):void 0}function cw(e){return e?void 0:fa(function(r){return{dispatch:r}})}function uw(e){return e&&typeof e=="object"?fa(function(r){return sw(e,r)}):void 0}const dw=[lw,cw,uw];function fw(e){return typeof e=="function"?ef(e):void 0}function hw(e){return e?void 0:fa(function(){return{}})}const pw=[fw,hw];function gw(e,r,n){return K({},n,e,r)}function vw(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 mw(e){return typeof e=="function"?vw(e):void 0}function bw(e){return e?void 0:function(){return gw}}const yw=[mw,bw];var xw=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Sw(e,r,n,t){return function(o,a){return n(e(o,a),r(t,a),a)}}function ww(e,r,n,t,i){var o=i.areStatesEqual,a=i.areOwnPropsEqual,s=i.areStatePropsEqual,l=!1,c,u,f,d,h;function p(C,D){return c=C,u=D,f=e(c,u),d=r(t,u),h=n(f,d,u),l=!0,h}function v(){return f=e(c,u),r.dependsOnOwnProps&&(d=r(t,u)),h=n(f,d,u),h}function m(){return e.dependsOnOwnProps&&(f=e(c,u)),r.dependsOnOwnProps&&(d=r(t,u)),h=n(f,d,u),h}function y(){var C=e(c,u),D=!s(C,f);return f=C,D&&(h=n(f,d,u)),h}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():h}return function(D,P){return l?b(D,P):p(D,P)}}function Cw(e,r){var n=r.initMapStateToProps,t=r.initMapDispatchToProps,i=r.initMergeProps,o=nr(r,xw),a=n(e,o),s=t(e,o),l=i(e,o),c=o.pure?ww:Sw;return c(a,s,l,e,o)}var Iw=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Bi(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 Rw(e,r){return e===r}function Tw(e){var r=e===void 0?{}:e,n=r.connectHOC,t=n===void 0?aw:n,i=r.mapStateToPropsFactories,o=i===void 0?pw:i,a=r.mapDispatchToPropsFactories,s=a===void 0?dw:a,l=r.mergePropsFactories,c=l===void 0?yw:l,u=r.selectorFactory,f=u===void 0?Cw:u;return function(h,p,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?Rw:D,w=y.areOwnPropsEqual,_=w===void 0?Fi:w,S=y.areStatePropsEqual,T=S===void 0?Fi:S,R=y.areMergedPropsEqual,k=R===void 0?Fi:R,j=nr(y,Iw),M=Bi(h,o,"mapStateToProps"),H=Bi(p,s,"mapDispatchToProps"),E=Bi(v,c,"mergeProps");return t(f,K({methodName:"connect",getDisplayName:function($){return"Connect("+$+")"},shouldHandleStateChanges:!!h,initMapStateToProps:M,initMapDispatchToProps:H,initMergeProps:E,pure:C,areStatesEqual:P,areOwnPropsEqual:_,areStatePropsEqual:T,areMergedPropsEqual:k},j))}}const tf=Tw();US(Yr.unstable_batchedUpdates);var Fl=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function Dw(e,r){return!!(e===r||Fl(e)&&Fl(r))}function _w(e,r){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!Dw(e[n],r[n]))return!1;return!0}function Re(e,r){r===void 0&&(r=_w);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 rf(e,r){}rf.bind(null,"warn");rf.bind(null,"error");function mt(){}function Pw(e,r){return K({},e,{},r)}function Ue(e,r,n){var t=r.map(function(i){var o=Pw(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 kw="Invariant failed";function An(e){this.message=e}An.prototype.toString=function(){return this.message};function Y(e,r){throw new An(kw)}var Ow=function(e){Wn(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=mt,t.onWindowError=function(s){var l=t.getCallbacks();l.isDragging()&&l.tryAbort();var c=s.error;c instanceof An&&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=Ue(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof An){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},r}(Q.Component),Ew=`
404
+ */var Tl;function MS(){if(Tl)return he;Tl=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,_=s,w=n,P=f,S=u,T=r,R=i,k=t,j=l;return he.ContextConsumer=a,he.ContextProvider=C,he.Element=D,he.ForwardRef=_,he.Fragment=w,he.Lazy=P,he.Memo=S,he.Portal=T,he.Profiler=R,he.StrictMode=k,he.Suspense=j,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 Dl;function AS(){return Dl||(Dl=1,Mi.exports=MS()),Mi.exports}var LS=AS(),zS=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],jS=["reactReduxForwardedRef"],FS=[],BS=[null,null];function GS(e,r){var n=e[1];return[r.payload,n+1]}function Pl(e,r,n){Ud(function(){return e.apply(void 0,r)},n)}function $S(e,r,n,t,i,o,a){e.current=t,r.current=i,n.current=!1,o.current&&(o.current=null,a())}function WS(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 HS=function(){return[null,0]};function US(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?$d:v,y=nr(n,zS),b=m;return function(D){var _=D.displayName||D.name||"Component",w=i(_),P=K({},y,{getDisplayName:i,methodName:a,renderCountProp:l,shouldHandleStateChanges:u,storeKey:d,displayName:w,wrappedComponentName:_,WrappedComponent:D}),S=y.pure;function T(H){return e(H.dispatch,P)}var R=S?I.useMemo:function(H){return H()};function k(H){var E=I.useMemo(function(){var Pe=H.reactReduxForwardedRef,le=nr(H,jS);return[H.context,Pe,le]},[H]),B=E[0],G=E[1],q=E[2],J=I.useMemo(function(){return B&&B.Consumer&&LS.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,V=I.useMemo(function(){return T(Z)},[Z]),re=I.useMemo(function(){if(!u)return BS;var Pe=Hd(Z,X?null:ee.subscription),le=Pe.notifyNestedSubs.bind(Pe);return[Pe,le]},[Z,X,ee]),ie=re[0],$=re[1],W=I.useMemo(function(){return X?ee:K({},ee,{subscription:ie})},[X,ee,ie]),L=I.useReducer(GS,FS,HS),N=L[0],O=N[0],U=L[1];if(O&&O.error)throw O.error;var te=I.useRef(),ae=I.useRef(q),de=I.useRef(),pe=I.useRef(!1),Ce=R(function(){return de.current&&q===ae.current?de.current:V(Z.getState(),q)},[Z,O,q]);Pl($S,[ae,te,pe,q,Ce,de,$]),Pl(WS,[u,Z,ie,V,ae,te,pe,de,$,U],[Z,ie,V]);var ze=I.useMemo(function(){return Q.createElement(D,K({},Ce,{ref:G}))},[G,D,Ce]),ye=I.useMemo(function(){return u?Q.createElement(J.Provider,{value:W},ze):ze},[J,ze,W]);return ye}var j=S?Q.memo(k):k;if(j.WrappedComponent=D,j.displayName=k.displayName=w,h){var M=Q.forwardRef(function(E,B){return Q.createElement(j,K({},E,{reactReduxForwardedRef:B}))});return M.displayName=w,M.WrappedComponent=D,La(M,D)}return La(j,D)}}function _l(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function Ai(e,r){if(_l(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])||!_l(e[n[i]],r[n[i]]))return!1;return!0}function qS(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 la(e){return function(n,t){var i=e(n,t);function o(){return i}return o.dependsOnOwnProps=!1,o}}function kl(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function qd(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=kl(e);var c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=kl(c),c=o(s,l)),c},o}}function VS(e){return typeof e=="function"?qd(e):void 0}function KS(e){return e?void 0:la(function(r){return{dispatch:r}})}function YS(e){return e&&typeof e=="object"?la(function(r){return qS(e,r)}):void 0}const JS=[VS,KS,YS];function XS(e){return typeof e=="function"?qd(e):void 0}function QS(e){return e?void 0:la(function(){return{}})}const ZS=[XS,QS];function ew(e,r,n){return K({},n,e,r)}function tw(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 rw(e){return typeof e=="function"?tw(e):void 0}function nw(e){return e?void 0:function(){return ew}}const iw=[rw,nw];var ow=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function aw(e,r,n,t){return function(o,a){return n(e(o,a),r(t,a),a)}}function sw(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 _=!a(D,u),w=!o(C,c,D,u);return c=C,u=D,_&&w?v():_?m():w?y():p}return function(D,_){return l?b(D,_):h(D,_)}}function lw(e,r){var n=r.initMapStateToProps,t=r.initMapDispatchToProps,i=r.initMergeProps,o=nr(r,ow),a=n(e,o),s=t(e,o),l=i(e,o),c=o.pure?sw:aw;return c(a,s,l,e,o)}var cw=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Li(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 uw(e,r){return e===r}function dw(e){var r=e===void 0?{}:e,n=r.connectHOC,t=n===void 0?US:n,i=r.mapStateToPropsFactories,o=i===void 0?ZS:i,a=r.mapDispatchToPropsFactories,s=a===void 0?JS:a,l=r.mergePropsFactories,c=l===void 0?iw:l,u=r.selectorFactory,f=u===void 0?lw: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,_=D===void 0?uw:D,w=y.areOwnPropsEqual,P=w===void 0?Ai:w,S=y.areStatePropsEqual,T=S===void 0?Ai:S,R=y.areMergedPropsEqual,k=R===void 0?Ai:R,j=nr(y,cw),M=Li(p,o,"mapStateToProps"),H=Li(h,s,"mapDispatchToProps"),E=Li(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:_,areOwnPropsEqual:P,areStatePropsEqual:T,areMergedPropsEqual:k},j))}}const Vd=dw();kS(Yr.unstable_batchedUpdates);var Ol=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function fw(e,r){return!!(e===r||Ol(e)&&Ol(r))}function pw(e,r){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!fw(e[n],r[n]))return!1;return!0}function Re(e,r){r===void 0&&(r=pw);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 Kd(e,r){}Kd.bind(null,"warn");Kd.bind(null,"error");function mt(){}function hw(e,r){return K({},e,{},r)}function Ue(e,r,n){var t=r.map(function(i){var o=hw(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 gw="Invariant failed";function An(e){this.message=e}An.prototype.toString=function(){return this.message};function Y(e,r){throw new An(gw)}var vw=function(e){Wn(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=mt,t.onWindowError=function(s){var l=t.getCallbacks();l.isDragging()&&l.tryAbort();var c=s.error;c instanceof An&&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=Ue(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof An){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},r}(Q.Component),mw=`
405
405
  Press space bar to start a drag.
406
406
  When dragging you can use the arrow keys to move the item around and escape to cancel.
407
407
  Some screen readers may require you to be in focus mode or to use your pass through key
408
- `,Ln=function(r){return r+1},Nw=function(r){return`
408
+ `,Ln=function(r){return r+1},bw=function(r){return`
409
409
  You have lifted an item in position `+Ln(r.source.index)+`
410
- `},nf=function(r,n){var t=r.droppableId===n.droppableId,i=Ln(r.index),o=Ln(n.index);return t?`
410
+ `},Yd=function(r,n){var t=r.droppableId===n.droppableId,i=Ln(r.index),o=Ln(n.index);return t?`
411
411
  You have moved the item from position `+i+`
412
412
  to position `+o+`
413
413
  `:`
@@ -415,38 +415,38 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
415
415
  in list `+r.droppableId+`
416
416
  to list `+n.droppableId+`
417
417
  in position `+o+`
418
- `},of=function(r,n,t){var i=n.droppableId===t.droppableId;return i?`
418
+ `},Jd=function(r,n,t){var i=n.droppableId===t.droppableId;return i?`
419
419
  The item `+r+`
420
420
  has been combined with `+t.draggableId:`
421
421
  The item `+r+`
422
422
  in list `+n.droppableId+`
423
423
  has been combined with `+t.draggableId+`
424
424
  in list `+t.droppableId+`
425
- `},Mw=function(r){var n=r.destination;if(n)return nf(r.source,n);var t=r.combine;return t?of(r.draggableId,r.source,t):"You are over an area that cannot be dropped on"},Bl=function(r){return`
425
+ `},yw=function(r){var n=r.destination;if(n)return Yd(r.source,n);var t=r.combine;return t?Jd(r.draggableId,r.source,t):"You are over an area that cannot be dropped on"},El=function(r){return`
426
426
  The item has returned to its starting position
427
427
  of `+Ln(r.index)+`
428
- `},Aw=function(r){if(r.reason==="CANCEL")return`
428
+ `},xw=function(r){if(r.reason==="CANCEL")return`
429
429
  Movement cancelled.
430
- `+Bl(r.source)+`
430
+ `+El(r.source)+`
431
431
  `;var n=r.destination,t=r.combine;return n?`
432
432
  You have dropped the item.
433
- `+nf(r.source,n)+`
433
+ `+Yd(r.source,n)+`
434
434
  `:t?`
435
435
  You have dropped the item.
436
- `+of(r.draggableId,r.source,t)+`
436
+ `+Jd(r.draggableId,r.source,t)+`
437
437
  `:`
438
438
  The item has been dropped while not over a drop area.
439
- `+Bl(r.source)+`
440
- `},In={dragHandleUsageInstructions:Ew,onDragStart:Nw,onDragUpdate:Mw,onDragEnd:Aw},Te={x:0,y:0},De=function(r,n){return{x:r.x+n.x,y:r.y+n.y}},Fe=function(r,n){return{x:r.x-n.x,y:r.y-n.y}},bt=function(r,n){return r.x===n.x&&r.y===n.y},fr=function(r){return{x:r.x!==0?-r.x:0,y:r.y!==0?-r.y:0}},Lt=function(r,n,t){var i;return t===void 0&&(t=0),i={},i[r]=n,i[r==="x"?"y":"x"]=t,i},Ur=function(r,n){return Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2))},$l=function(r,n){return Math.min.apply(Math,n.map(function(t){return Ur(r,t)}))},af=function(r){return function(n){return{x:r(n.x),y:r(n.y)}}},Lw=function(e,r){var n=Bt({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},nn=function(r,n){return{top:r.top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x}},Gl=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}]},zw={top:0,right:0,bottom:0,left:0},jw=function(r,n){return n?nn(r,n.scroll.diff.displacement):r},Fw=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},Bw=function(r,n){return n&&n.shouldClipSubject?Lw(n.pageMarginBox,r):Bt(r)},ar=function(e){var r=e.page,n=e.withPlaceholder,t=e.axis,i=e.frame,o=jw(r.marginBox,i),a=Fw(o,t,n),s=Bw(a,i);return{page:r,withPlaceholder:n,active:s}},ha=function(e,r){e.frame||Y();var n=e.frame,t=Fe(r,n.scroll.initial),i=fr(t),o=K({},n,{scroll:{initial:n.scroll.initial,current:r,diff:{value:t,displacement:i},max:n.scroll.max}}),a=ar({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),s=K({},e,{frame:o,subject:a});return s};function zn(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function pa(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 It(e,r){if(e.find)return e.find(r);var n=pa(e,r);if(n!==-1)return e[n]}function sf(e){return Array.prototype.slice.call(e)}var lf=Re(function(e){return e.reduce(function(r,n){return r[n.descriptor.id]=n,r},{})}),cf=Re(function(e){return e.reduce(function(r,n){return r[n.descriptor.id]=n,r},{})}),ti=Re(function(e){return zn(e)}),$w=Re(function(e){return zn(e)}),hr=Re(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 ga(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function ri(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var ni=Re(function(e,r){return r.filter(function(n){return n.descriptor.id!==e.descriptor.id})}),Gw=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=ga(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=ni(n,i);if(!c){if(!u.length)return null;var f=u[u.length-1];return s(f.descriptor.id)}var d=pa(u,function(v){return v.descriptor.id===c});d===-1&&Y();var h=d-1;if(h<0)return null;var p=u[h];return s(p.descriptor.id)},pr=function(e,r){return e.descriptor.droppableId===r.descriptor.id},uf={point:Te,value:0},qr={invisible:{},visible:{},all:[]},Ww={displaced:qr,displacedBy:uf,at:null},qe=function(e,r){return function(n){return e<=n&&n<=r}},df=function(e){var r=qe(e.top,e.bottom),n=qe(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}},Hw=function(e){var r=qe(e.top,e.bottom),n=qe(e.left,e.right);return function(t){var i=r(t.top)&&r(t.bottom)&&n(t.left)&&n(t.right);return i}},va={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ff={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Uw=function(e){return function(r){var n=qe(r.top,r.bottom),t=qe(r.left,r.right);return function(i){return e===va?n(i.top)&&n(i.bottom):t(i.left)&&t(i.right)}}},qw=function(r,n){var t=n.frame?n.frame.scroll.diff.displacement:Te;return nn(r,t)},Vw=function(r,n,t){return n.subject.active?t(n.subject.active)(r):!1},Kw=function(r,n,t){return t(n)(r)},ma=function(r){var n=r.target,t=r.destination,i=r.viewport,o=r.withDroppableDisplacement,a=r.isVisibleThroughFrameFn,s=o?qw(n,t):n;return Vw(s,t,a)&&Kw(s,i,a)},Yw=function(r){return ma(K({},r,{isVisibleThroughFrameFn:df}))},hf=function(r){return ma(K({},r,{isVisibleThroughFrameFn:Hw}))},Jw=function(r){return ma(K({},r,{isVisibleThroughFrameFn:Uw(r.destination.axis)}))},Xw=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 Qw(e,r){var n=e.page.marginBox,t={top:r.point.y,right:0,bottom:0,left:r.point.x};return Bt(Fc(n,t))}function Vr(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=Qw(c,t),f=c.descriptor.id;l.all.push(f);var d=Yw({target:u,destination:n,viewport:i,withDroppableDisplacement:!0});if(!d)return l.invisible[c.descriptor.id]=!0,l;var h=Xw(f,a,o),p={draggableId:f,shouldAnimate:h};return l.visible[f]=p,l},{all:[],visible:{},invisible:{}})}function Zw(e,r){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return r.inHomeList?n:n+1}function Wl(e){var r=e.insideDestination,n=e.inHomeList,t=e.displacedBy,i=e.destination,o=Zw(r,{inHomeList:n});return{displaced:qr,displacedBy:t,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function jn(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=pr(r,t);if(s==null)return Wl({insideDestination:n,inHomeList:c,displacedBy:o,destination:t});var u=It(n,function(v){return v.descriptor.index===s});if(!u)return Wl({insideDestination:n,inHomeList:c,displacedBy:o,destination:t});var f=ni(r,n),d=n.indexOf(u),h=f.slice(d),p=Vr({afterDragging:h,destination:t,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l});return{displaced:p,displacedBy:o,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:s}}}}function Ct(e,r){return!!r.effected[e]}var eC=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=Ct(a,o);return c?r?l:l-1:r?l+1:l},tC=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},rC=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=tC({isMovingForward:r,isInHomeList:n,location:u.destination,insideDestination:a});return f==null?null:jn({draggable:t,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})}var d=eC({isMovingForward:r,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return d==null?null:jn({draggable:t,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})},nC=function(e){var r=e.displaced,n=e.afterCritical,t=e.combineWith,i=e.displacedBy,o=!!(r.visible[t]||r.invisible[t]);return Ct(t,n)?o?Te:fr(i.point):o?i.point:Te},iC=function(e){var r=e.afterCritical,n=e.impact,t=e.draggables,i=ri(n);i||Y();var o=i.draggableId,a=t[o].page.borderBox.center,s=nC({displaced:n.displaced,afterCritical:r,combineWith:o,displacedBy:n.displacedBy});return De(a,s)},pf=function(r,n){return n.margin[r.start]+n.borderBox[r.size]/2},oC=function(r,n){return n.margin[r.end]+n.borderBox[r.size]/2},ba=function(r,n,t){return n[r.crossAxisStart]+t.margin[r.crossAxisStart]+t.borderBox[r.crossAxisSize]/2},Hl=function(r){var n=r.axis,t=r.moveRelativeTo,i=r.isMoving;return Lt(n.line,t.marginBox[n.end]+pf(n,i),ba(n,t.marginBox,i))},Ul=function(r){var n=r.axis,t=r.moveRelativeTo,i=r.isMoving;return Lt(n.line,t.marginBox[n.start]-oC(n,i),ba(n,t.marginBox,i))},aC=function(r){var n=r.axis,t=r.moveInto,i=r.isMoving;return Lt(n.line,t.contentBox[n.start]+pf(n,i),ba(n,t.contentBox,i))},sC=function(e){var r=e.impact,n=e.draggable,t=e.draggables,i=e.droppable,o=e.afterCritical,a=hr(i.descriptor.id,t),s=n.page,l=i.axis;if(!a.length)return aC({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(Ct(f,o))return Ul({axis:l,moveRelativeTo:d.page,isMoving:s});var h=Xi(d.page,u.point);return Ul({axis:l,moveRelativeTo:h,isMoving:s})}var p=a[a.length-1];if(p.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Ct(p.descriptor.id,o)){var v=Xi(p.page,fr(o.displacedBy.point));return Hl({axis:l,moveRelativeTo:v,isMoving:s})}return Hl({axis:l,moveRelativeTo:p.page,isMoving:s})},Io=function(e,r){var n=e.frame;return n?De(r,n.scroll.diff.displacement):r},lC=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"?sC({impact:n,draggable:t,draggables:o,droppable:i,afterCritical:a}):iC({impact:n,draggables:o,afterCritical:a})},ii=function(e){var r=lC(e),n=e.droppable,t=n?Io(n,r):r;return t},gf=function(e,r){var n=Fe(r,e.scroll.initial),t=fr(n),i=Bt({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 ql(e,r){return e.map(function(n){return r[n]})}function cC(e,r){for(var n=0;n<r.length;n++){var t=r[n].visible[e];if(t)return t}return null}var uC=function(e){var r=e.impact,n=e.viewport,t=e.destination,i=e.draggables,o=e.maxScrollChange,a=gf(n,De(n.scroll.current,o)),s=t.frame?ha(t,De(t.frame.scroll.current,o)):t,l=r.displaced,c=Vr({afterDragging:ql(l.all,i),destination:t,displacedBy:r.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=Vr({afterDragging:ql(l.all,i),destination:s,displacedBy:r.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),f={},d={},h=[l,c,u];l.all.forEach(function(v){var m=cC(v,h);if(m){d[v]=m;return}f[v]=!0});var p=K({},r,{displaced:{all:l.all,invisible:f,visible:d}});return p},dC=function(e,r){return De(e.scroll.diff.displacement,r)},ya=function(e){var r=e.pageBorderBoxCenter,n=e.draggable,t=e.viewport,i=dC(t,r),o=Fe(i,n.page.borderBox.center);return De(n.client.borderBox.center,o)},vf=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=Fe(t,r.page.borderBox.center),c=nn(r.page.borderBox,l),u={target:c,destination:n,withDroppableDisplacement:o,viewport:i};return s?Jw(u):hf(u)},fC=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=hr(t.descriptor.id,i),f=pr(n,t),d=Gw({isMovingForward:r,draggable:n,destination:t,insideDestination:u,previousImpact:o})||rC({isMovingForward:r,isInHomeList:f,draggable:n,draggables:i,destination:t,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!d)return null;var h=ii({impact:d,draggable:n,droppable:t,draggables:i,afterCritical:c}),p=vf({draggable:n,destination:t,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(p){var v=ya({pageBorderBoxCenter:h,draggable:n,viewport:a});return{clientSelection:v,impact:d,scrollJumpRequest:null}}var m=Fe(h,s),y=uC({impact:d,viewport:a,destination:t,draggables:i,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}},Oe=function(r){var n=r.subject.active;return n||Y(),n},hC=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=qe(a[s.start],a[s.end]),c=ti(i).filter(function(f){return f!==t}).filter(function(f){return f.isEnabled}).filter(function(f){return!!f.subject.active}).filter(function(f){return df(o.frame)(Oe(f))}).filter(function(f){var d=Oe(f);return r?a[s.crossAxisEnd]<d[s.crossAxisEnd]:d[s.crossAxisStart]<a[s.crossAxisStart]}).filter(function(f){var d=Oe(f),h=qe(d[s.start],d[s.end]);return l(d[s.start])||l(d[s.end])||h(a[s.start])||h(a[s.end])}).sort(function(f,d){var h=Oe(f)[s.crossAxisStart],p=Oe(d)[s.crossAxisStart];return r?h-p:p-h}).filter(function(f,d,h){return Oe(f)[s.crossAxisStart]===Oe(h[0])[s.crossAxisStart]});if(!c.length)return null;if(c.length===1)return c[0];var u=c.filter(function(f){var d=qe(Oe(f)[s.start],Oe(f)[s.end]);return d(n[s.line])});return u.length===1?u[0]:u.length>1?u.sort(function(f,d){return Oe(f)[s.start]-Oe(d)[s.start]})[0]:c.sort(function(f,d){var h=$l(n,Gl(Oe(f))),p=$l(n,Gl(Oe(d)));return h!==p?h-p:Oe(f)[s.start]-Oe(d)[s.start]})[0]},Vl=function(r,n){var t=r.page.borderBox.center;return Ct(r.descriptor.id,n)?Fe(t,n.displacedBy.point):t},pC=function(r,n){var t=r.page.borderBox;return Ct(r.descriptor.id,n)?nn(t,fr(n.displacedBy.point)):t},gC=function(e){var r=e.pageBorderBoxCenter,n=e.viewport,t=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter(function(s){return hf({target:pC(s,o),destination:t,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(s,l){var c=Ur(r,Io(t,Vl(s,o))),u=Ur(r,Io(t,Vl(l,o)));return c<u?-1:u<c?1:s.descriptor.index-l.descriptor.index});return a[0]||null},on=Re(function(r,n){var t=n[r.line];return{value:t,point:Lt(r.line,t)}}),vC=function(r,n,t){var i=r.axis;if(r.descriptor.mode==="virtual")return Lt(i.line,n[i.line]);var o=r.subject.page.contentBox[i.size],a=hr(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:Lt(i.line,c)},mf=function(r,n){return K({},r,{scroll:K({},r.scroll,{max:n})})},bf=function(r,n,t){var i=r.frame;pr(n,r)&&Y(),r.subject.withPlaceholder&&Y();var o=on(r.axis,n.displaceBy).point,a=vC(r,o,t),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:r.frame?r.frame.scroll.max:null};if(!i){var l=ar({page:r.subject.page,withPlaceholder:s,axis:r.axis,frame:r.frame});return K({},r,{subject:l})}var c=a?De(i.scroll.max,a):i.scroll.max,u=mf(i,c),f=ar({page:r.subject.page,withPlaceholder:s,axis:r.axis,frame:u});return K({},r,{subject:f,frame:u})},mC=function(r){var n=r.subject.withPlaceholder;n||Y();var t=r.frame;if(!t){var i=ar({page:r.subject.page,axis:r.axis,frame:null,withPlaceholder:null});return K({},r,{subject:i})}var o=n.oldFrameMaxScroll;o||Y();var a=mf(t,o),s=ar({page:r.subject.page,axis:r.axis,frame:a,withPlaceholder:null});return K({},r,{subject:s,frame:a})},bC=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:qr,displacedBy:uf,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=ii({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),f=pr(i,a)?a:bf(a,i,o),d=vf({draggable:i,destination:f,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return d?c:null}var h=r[a.axis.line]<=n.page.borderBox.center[a.axis.line],p=function(){var m=n.descriptor.index;return n.descriptor.id===i.descriptor.id||h?m:m+1}(),v=on(a.axis,i.displaceBy);return jn({draggable:i,insideDestination:t,destination:a,viewport:s,displacedBy:v,last:qr,index:p})},yC=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=hC({isMovingForward:r,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=hr(c.descriptor.id,o),f=gC({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),d=bC({previousPageBorderBoxCenter:n,destination:c,draggable:t,draggables:o,moveRelativeTo:f,insideDestination:u,viewport:s,afterCritical:l});if(!d)return null;var h=ii({impact:d,draggable:t,droppable:c,draggables:o,afterCritical:l}),p=ya({pageBorderBoxCenter:h,draggable:t,viewport:s});return{clientSelection:p,impact:d,scrollJumpRequest:null}},Be=function(e){var r=e.at;return r?r.type==="REORDER"?r.destination.droppableId:r.combine.droppableId:null},xC=function(r,n){var t=Be(r);return t?n[t]:null},SC=function(e){var r=e.state,n=e.type,t=xC(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,h=d.draggables,p=d.droppables;return l?fC({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,destination:a,draggables:h,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):yC({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,isOver:a,draggables:h,droppables:p,viewport:r.viewport,afterCritical:r.afterCritical})};function Pt(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function yf(e){var r=qe(e.top,e.bottom),n=qe(e.left,e.right);return function(i){return r(i.y)&&n(i.x)}}function wC(e,r){return e.left<r.right&&e.right>r.left&&e.top<r.bottom&&e.bottom>r.top}function CC(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=Lt(a.axis.line,r.center[s.line],a.page.borderBox.center[s.crossAxisLine]);return{id:a.descriptor.id,distance:Ur(i,l)}}).sort(function(a,s){return s.distance-a.distance});return o[0]?o[0].id:null}function IC(e){var r=e.pageBorderBox,n=e.draggable,t=e.droppables,i=ti(t).filter(function(o){if(!o.isEnabled)return!1;var a=o.subject.active;if(!a||!wC(r,a))return!1;if(yf(a)(r.center))return!0;var s=o.axis,l=a.center[s.crossAxisLine],c=r[s.crossAxisStart],u=r[s.crossAxisEnd],f=qe(a[s.crossAxisStart],a[s.crossAxisEnd]),d=f(c),h=f(u);return!d&&!h?!0:d?c<l:u>l});return i.length?i.length===1?i[0].descriptor.id:CC({pageBorderBox:r,draggable:n,candidates:i}):null}var xf=function(r,n){return Bt(nn(r,n))},RC=function(e,r){var n=e.frame;return n?xf(r,n.scroll.diff.value):r};function Sf(e){var r=e.displaced,n=e.id;return!!(r.visible[n]||r.invisible[n])}function TC(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 DC=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=on(t.axis,n.displaceBy),u=c.value,f=r[l.start],d=r[l.end],h=ni(n,i),p=It(h,function(m){var y=m.descriptor.id,b=m.page.borderBox.center[l.line],C=Ct(y,s),D=Sf({displaced:o,id:y});return C?D?d<=b:f<b-u:D?d<=b+u:f<b}),v=TC({draggable:n,closest:p,inHomeList:pr(n,t)});return jn({draggable:n,insideDestination:i,destination:t,viewport:a,last:o,displacedBy:c,index:v})},_C=4,PC=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=on(i.axis,r.displaceBy),c=l.value,u=n[s.start],f=n[s.end],d=ni(r,o),h=It(d,function(v){var m=v.descriptor.id,y=v.page.borderBox,b=y[s.size],C=b/_C,D=Ct(m,a),P=Sf({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(!h)return null;var p={displacedBy:l,displaced:t.displaced,at:{type:"COMBINE",combine:{draggableId:h.descriptor.id,droppableId:i.descriptor.id}}};return p},wf=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=xf(n.page.borderBox,r),c=IC({pageBorderBox:l,draggable:n,droppables:i});if(!c)return Ww;var u=i[c],f=hr(u.descriptor.id,t),d=RC(u,l);return PC({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:o,destination:u,insideDestination:f,afterCritical:s})||DC({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:u,insideDestination:f,last:o.displaced,viewport:a,afterCritical:s})},xa=function(e,r){var n;return K({},e,(n={},n[r.descriptor.id]=r,n))},kC=function(r){var n=r.previousImpact,t=r.impact,i=r.droppables,o=Be(n),a=Be(t);if(!o||o===a)return i;var s=i[o];if(!s.subject.withPlaceholder)return i;var l=mC(s);return xa(i,l)},OC=function(e){var r=e.draggable,n=e.draggables,t=e.droppables,i=e.previousImpact,o=e.impact,a=kC({previousImpact:i,impact:o,droppables:t}),s=Be(o);if(!s)return a;var l=t[s];if(pr(r,l)||l.subject.withPlaceholder)return a;var c=bf(l,r,n);return xa(a,c)},zr=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=Fe(c,r.initial.client.selection),f={offset:u,selection:c,borderBoxCenter:De(r.initial.client.borderBoxCenter,u)},d={selection:De(f.selection,s.scroll.current),borderBoxCenter:De(f.borderBoxCenter,s.scroll.current),offset:De(f.offset,s.scroll.diff.value)},h={client:f,page:d};if(r.phase==="COLLECTING")return K({phase:"COLLECTING"},r,{dimensions:l,viewport:s,current:h});var p=l.draggables[r.critical.draggable.id],v=o||wf({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:r.impact,viewport:s,afterCritical:r.afterCritical}),m=OC({draggable:p,impact:v,previousImpact:r.impact,draggables:l.draggables,droppables:l.droppables}),y=K({},r,{current:h,dimensions:{draggables:l.draggables,droppables:m},impact:v,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null});return y};function EC(e,r){return e.map(function(n){return r[n]})}var Cf=function(e){var r=e.impact,n=e.viewport,t=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=r.displaced,s=EC(a.all,t),l=Vr({afterDragging:s,destination:i,displacedBy:r.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:a});return K({},r,{displaced:l})},If=function(e){var r=e.impact,n=e.draggable,t=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=ii({impact:r,draggable:n,draggables:i,droppable:t,afterCritical:a});return ya({pageBorderBoxCenter:s,draggable:n,viewport:o})},Rf=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=Be(i);u||Y();var f=l[u],d=Cf({impact:i,viewport:o,destination:f,draggables:s}),h=If({impact:d,draggable:c,droppable:f,draggables:s,viewport:o,afterCritical:r.afterCritical});return zr({impact:d,clientSelection:h,state:r,dimensions:a,viewport:o})},NC=function(e){return{index:e.index,droppableId:e.droppableId}},Tf=function(e){var r=e.draggable,n=e.home,t=e.draggables,i=e.viewport,o=on(n.axis,r.displaceBy),a=hr(n.descriptor.id,t),s=a.indexOf(r);s===-1&&Y();var l=a.slice(s+1),c=l.reduce(function(h,p){return h[p.descriptor.id]=!0,h},{}),u={inVirtualList:n.descriptor.mode==="virtual",displacedBy:o,effected:c},f=Vr({afterDragging:l,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),d={displaced:f,displacedBy:o,at:{type:"REORDER",destination:NC(r.descriptor)}};return{impact:d,afterCritical:u}},MC=function(e,r){return{draggables:e.draggables,droppables:xa(e.droppables,r)}},AC=function(e){var r=e.draggable,n=e.offset,t=e.initialWindowScroll,i=Xi(r.client,n),o=Pn(i,t),a=K({},r,{placeholder:K({},r.placeholder,{client:i}),client:i,page:o});return a},LC=function(e){var r=e.frame;return r||Y(),r},zC=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=LC(s),c=l.scroll.diff.value,u=De(i,c),f=AC({draggable:o,offset:u,initialWindowScroll:t.scroll.initial});return f})},jC=function(e){var r=e.state,n=e.published,t=n.modified.map(function(C){var D=r.dimensions.droppables[C.droppableId],P=ha(D,C.scroll);return P}),i=K({},r.dimensions.droppables,{},lf(t)),o=cf(zC({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=Be(r.impact),c=l?s.droppables[l]:null,u=s.draggables[r.critical.draggable.id],f=s.droppables[r.critical.droppable.id],d=Tf({draggable:u,home:f,draggables:a,viewport:r.viewport}),h=d.impact,p=d.afterCritical,v=c&&c.isCombineEnabled?r.impact:h,m=wf({pageOffset:r.current.page.offset,draggable:s.draggables[r.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:v,viewport:r.viewport,afterCritical:p}),y=K({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:m,onLiftImpact:h,dimensions:s,afterCritical:p,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},Ro=function(r){return r.movementMode==="SNAP"},$i=function(r,n,t){var i=MC(r.dimensions,n);return!Ro(r)||t?zr({state:r,dimensions:i}):Rf({state:r,dimensions:i})};function Gi(e){return e.isDragging&&e.movementMode==="SNAP"?K({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Kl={phase:"IDLE",completed:null,shouldFlush:!1},FC=function(e,r){if(e===void 0&&(e=Kl),r.type==="FLUSH")return K({},Kl,{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:Te},f={client:u,page:{selection:De(u.selection,o.scroll.initial),borderBoxCenter:De(u.selection,o.scroll.initial),offset:De(u.selection,o.scroll.diff.value)}},d=ti(a.droppables).every(function(U){return!U.isFixedOnPage}),h=Tf({draggable:l,home:c,draggables:a.draggables,viewport:o}),p=h.impact,v=h.afterCritical,m={phase:"DRAGGING",isDragging:!0,critical:t,movementMode:s,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:p,afterCritical:v,onLiftImpact:p,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(),jC({state:e,published:r.payload});if(r.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Pt(e)||Y();var b=r.payload.client;return bt(b,e.current.client.selection)?e:zr({state:e,clientSelection:b,impact:Ro(e)?e.impact:null})}if(r.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return Gi(e);Pt(e)||Y();var C=r.payload,D=C.id,P=C.newScroll,w=e.dimensions.droppables[D];if(!w)return e;var _=ha(w,P);return $i(e,_,!1)}if(r.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Pt(e)||Y();var S=r.payload,T=S.id,R=S.isEnabled,k=e.dimensions.droppables[T];k||Y(),k.isEnabled===R&&Y();var j=K({},k,{isEnabled:R});return $i(e,j,!0)}if(r.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Pt(e)||Y();var M=r.payload,H=M.id,E=M.isCombineEnabled,B=e.dimensions.droppables[H];B||Y(),B.isCombineEnabled===E&&Y();var $=K({},B,{isCombineEnabled:E});return $i(e,$,!0)}if(r.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Pt(e)||Y(),e.isWindowScrollAllowed||Y();var q=r.payload.newScroll;if(bt(e.viewport.scroll.current,q))return Gi(e);var J=gf(e.viewport,q);return Ro(e)?Rf({state:e,viewport:J}):zr({state:e,viewport:J})}if(r.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Pt(e))return e;var ee=r.payload.maxScroll;if(bt(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=SC({state:e,type:r.type});return Z?zr({state:e,impact:Z.impact,clientSelection:Z.clientSelection,scrollJumpRequest:Z.scrollJumpRequest}):e}if(r.type==="DROP_PENDING"){var V=r.payload.reason;e.phase!=="COLLECTING"&&Y();var re=K({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:V});return re}if(r.type==="DROP_ANIMATE"){var ie=r.payload,G=ie.completed,W=ie.dropDuration,L=ie.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||Y();var N={phase:"DROP_ANIMATING",completed:G,dropDuration:W,newHomeClientOffset:L,dimensions:e.dimensions};return N}if(r.type==="DROP_COMPLETE"){var O=r.payload.completed;return{phase:"IDLE",completed:O,shouldFlush:!1}}return e},BC=function(r){return{type:"BEFORE_INITIAL_CAPTURE",payload:r}},$C=function(r){return{type:"LIFT",payload:r}},GC=function(r){return{type:"INITIAL_PUBLISH",payload:r}},WC=function(r){return{type:"PUBLISH_WHILE_DRAGGING",payload:r}},HC=function(){return{type:"COLLECTION_STARTING",payload:null}},UC=function(r){return{type:"UPDATE_DROPPABLE_SCROLL",payload:r}},qC=function(r){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:r}},VC=function(r){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:r}},Df=function(r){return{type:"MOVE",payload:r}},KC=function(r){return{type:"MOVE_BY_WINDOW_SCROLL",payload:r}},YC=function(r){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:r}},JC=function(){return{type:"MOVE_UP",payload:null}},XC=function(){return{type:"MOVE_DOWN",payload:null}},QC=function(){return{type:"MOVE_RIGHT",payload:null}},ZC=function(){return{type:"MOVE_LEFT",payload:null}},Sa=function(){return{type:"FLUSH",payload:null}},e0=function(r){return{type:"DROP_ANIMATE",payload:r}},wa=function(r){return{type:"DROP_COMPLETE",payload:r}},_f=function(r){return{type:"DROP",payload:r}},t0=function(r){return{type:"DROP_PENDING",payload:r}},Pf=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},r0=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(wa({completed:u.completed})),n().phase!=="IDLE"&&Y(),t(Sa()),t(BC({draggableId:s,movementMode:c}));var f={shouldPublishImmediately:c==="SNAP"},d={draggableId:s,scrollOptions:f},h=e.startPublishing(d),p=h.critical,v=h.dimensions,m=h.viewport;t(GC({critical:p,dimensions:v,clientSelection:l,movementMode:c,viewport:m}))}}}},n0=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)}}}},Ca={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Kr={opacity:{drop:0,combining:.7},scale:{drop:.75}},Ia={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Tt=Ia.outOfTheWay+"s "+Ca.outOfTheWay,jr={fluid:"opacity "+Tt,snap:"transform "+Tt+", opacity "+Tt,drop:function(r){var n=r+"s "+Ca.drop;return"transform "+n+", opacity "+n},outOfTheWay:"transform "+Tt,placeholder:"height "+Tt+", width "+Tt+", margin "+Tt},Yl=function(r){return bt(r,Te)?null:"translate("+r.x+"px, "+r.y+"px)"},To={moveTo:Yl,drop:function(r,n){var t=Yl(r);return t?n?t+" scale("+Kr.scale.drop+")":t:null}},Do=Ia.minDropTime,kf=Ia.maxDropTime,i0=kf-Do,Jl=1500,o0=.6,a0=function(e){var r=e.current,n=e.destination,t=e.reason,i=Ur(r,n);if(i<=0)return Do;if(i>=Jl)return kf;var o=i/Jl,a=Do+i0*o,s=t==="CANCEL"?a*o0:a;return Number(s.toFixed(2))},s0=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=Be(r),c=l?s[l]:null,u=s[n.descriptor.droppableId],f=If({impact:r,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i}),d=Fe(f,n.client.borderBox.center);return d},l0=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=Cf({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:qr});return{impact:l,didDropInsideDroppable:!0}},c0=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(t0({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=l0({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,h=f.didDropInsideDroppable,p=h?ga(d):null,v=h?ri(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:p,combine:v},b=s0({impact:d,draggable:u,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),C={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:d},D=!bt(o.current.client.offset,b)||!!y.combine;if(!D){n(wa({completed:C}));return}var P=a0({current:o.current.client.offset,destination:b,reason:a}),w={newHomeClientOffset:b,dropDuration:P,completed:C};n(e0(w))}}}},Of=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function u0(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function d0(e){var r=e.onWindowScroll;function n(){r(Of())}var t=Fr(n),i=u0(t),o=mt;function a(){return o!==mt}function s(){a()&&Y(),o=Ue(window,[i])}function l(){a()||Y(),t.cancel(),o(),o=mt}return{start:s,stop:l,isActive:a}}var f0=function(r){return r.type==="DROP_COMPLETE"||r.type==="DROP_ANIMATE"||r.type==="FLUSH"},h0=function(e){var r=d0({onWindowScroll:function(t){e.dispatch(KC({newScroll:t}))}});return function(n){return function(t){!r.isActive()&&t.type==="INITIAL_PUBLISH"&&r.start(),r.isActive()&&f0(t)&&r.stop(),n(t)}}},p0=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},g0=function(){var e=[],r=function(o){var a=pa(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}},v0=function(r,n){return r==null&&n==null?!0:r==null||n==null?!1:r.droppableId===n.droppableId&&r.index===n.index},m0=function(r,n){return r==null&&n==null?!0:r==null||n==null?!1:r.draggableId===n.draggableId&&r.droppableId===n.droppableId},b0=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},Sr=function(r,n){n()},hn=function(r,n){return{draggableId:r.draggable.id,type:r.droppable.type,source:{droppableId:r.droppable.id,index:r.draggable.index},mode:n}},Wi=function(r,n,t,i){if(!r){t(i(n));return}var o=p0(t),a={announce:o};r(n,a),o.wasCalled()||t(i(n))},y0=function(e,r){var n=g0(),t=null,i=function(d,h){t&&Y(),Sr("onBeforeCapture",function(){var p=e().onBeforeCapture;if(p){var v={draggableId:d,mode:h};p(v)}})},o=function(d,h){t&&Y(),Sr("onBeforeDragStart",function(){var p=e().onBeforeDragStart;p&&p(hn(d,h))})},a=function(d,h){t&&Y();var p=hn(d,h);t={mode:h,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(function(){Sr("onDragStart",function(){return Wi(e().onDragStart,p,r,In.onDragStart)})})},s=function(d,h){var p=ga(h),v=ri(h);t||Y();var m=!b0(d,t.lastCritical);m&&(t.lastCritical=d);var y=!v0(t.lastLocation,p);y&&(t.lastLocation=p);var b=!m0(t.lastCombine,v);if(b&&(t.lastCombine=v),!(!m&&!y&&!b)){var C=K({},hn(d,t.mode),{combine:v,destination:p});n.add(function(){Sr("onDragUpdate",function(){return Wi(e().onDragUpdate,C,r,In.onDragUpdate)})})}},l=function(){t||Y(),n.flush()},c=function(d){t||Y(),t=null,Sr("onDragEnd",function(){return Wi(e().onDragEnd,d,r,In.onDragEnd)})},u=function(){if(t){var d=K({},hn(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}},x0=function(e,r){var n=y0(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)}}}},S0=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(wa({completed:t.completed}))}}},w0=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(Pf())}};n=requestAnimationFrame(function(){n=null,r=Ue(window,[a])})}}}},C0=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)}}}},I0=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()}}}}}},R0=function(r){return r.type==="DROP_COMPLETE"||r.type==="DROP_ANIMATE"||r.type==="FLUSH"},T0=function(e){return function(r){return function(n){return function(t){if(R0(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())}}}},D0=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(_f({reason:t.reason})))}}}},_0=Gp,P0=function(e){var r=e.dimensionMarshal,n=e.focusMarshal,t=e.styleMarshal,i=e.getResponders,o=e.announce,a=e.autoScroller;return $p(FC,_0(Wp(n0(t),C0(r),r0(r),c0,S0,w0,D0,T0(a),h0,I0(n),x0(i,o))))},Hi=function(){return{additions:{},removals:{},modified:{}}};function k0(e){var r=e.registry,n=e.callbacks,t=Hi(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var u=t,f=u.additions,d=u.removals,h=u.modified,p=Object.keys(f).map(function(y){return r.draggable.getById(y).getDimension(Te)}).sort(function(y,b){return y.descriptor.index-b.descriptor.index}),v=Object.keys(h).map(function(y){var b=r.droppable.getById(y),C=b.callbacks.getScrollWhileDragging();return{droppableId:y,scroll:C}}),m={additions:p,removals:Object.keys(d),modified:v};t=Hi(),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=Hi())};return{add:a,remove:s,stop:l}}var Ef=function(e){var r=e.scrollHeight,n=e.scrollWidth,t=e.height,i=e.width,o=Fe({x:n,y:r},{x:i,y:t}),a={x:Math.max(0,o.x),y:Math.max(0,o.y)};return a},Nf=function(){var e=document.documentElement;return e||Y(),e},Mf=function(){var e=Nf(),r=Ef({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return r},O0=function(){var e=Of(),r=Mf(),n=e.y,t=e.x,i=Nf(),o=i.clientWidth,a=i.clientHeight,s=t+o,l=n+a,c=Bt({top:n,left:t,right:s,bottom:l}),u={frame:c,scroll:{initial:e,current:e,max:r,diff:{value:Te,displacement:Te}}};return u},E0=function(e){var r=e.critical,n=e.scrollOptions,t=e.registry,i=O0(),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:cf(l),droppables:lf(s)},u={dimensions:c,critical:r,viewport:i};return u};function Xl(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 N0=function(e,r){var n=null,t=k0({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(h,p){e.droppable.exists(h)||Y(),n&&r.updateDroppableIsEnabled({id:h,isEnabled:p})},o=function(h,p){n&&(e.droppable.exists(h)||Y(),r.updateDroppableIsCombineEnabled({id:h,isCombineEnabled:p}))},a=function(h,p){n&&(e.droppable.exists(h)||Y(),r.updateDroppableScroll({id:h,newScroll:p}))},s=function(h,p){n&&e.droppable.getById(h).callbacks.scroll(p)},l=function(){if(n){t.stop();var h=n.critical.droppable;e.droppable.getAllByType(h.type).forEach(function(p){return p.callbacks.dragStopped()}),n.unsubscribe(),n=null}},c=function(h){n||Y();var p=n.critical.draggable;h.type==="ADDITION"&&Xl(e,p,h.value)&&t.add(h.value),h.type==="REMOVAL"&&Xl(e,p,h.value)&&t.remove(h.value)},u=function(h){n&&Y();var p=e.draggable.getById(h.draggableId),v=e.droppable.getById(p.descriptor.droppableId),m={draggable:p.descriptor,droppable:v.descriptor},y=e.subscribe(c);return n={critical:m,unsubscribe:y},E0({critical:m,registry:e,scrollOptions:h.scrollOptions})},f={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:s,updateDroppableScroll:a,startPublishing:u,stopPublishing:l};return f},Af=function(e,r){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===r?!1:e.completed.result.reason==="DROP"},M0=function(e){window.scrollBy(e.x,e.y)},A0=Re(function(e){return ti(e).filter(function(r){return!(!r.isEnabled||!r.frame)})}),L0=function(r,n){var t=It(A0(n),function(i){return i.frame||Y(),yf(i.frame.pageMarginBox)(r)});return t},z0=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=L0(r,t);return o},yt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(r){return Math.pow(r,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},j0=function(e,r){var n=e[r.size]*yt.startFromPercentage,t=e[r.size]*yt.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:t};return i},Lf=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},Ra=1,F0=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return yt.maxPixelScroll;if(e===r.startScrollingFrom)return Ra;var n=Lf({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),t=1-n,i=yt.maxPixelScroll*yt.ease(t);return Math.ceil(i)},Ql=yt.durationDampening.accelerateAt,Zl=yt.durationDampening.stopDampeningAt,B0=function(e,r){var n=r,t=Zl,i=Date.now(),o=i-n;if(o>=Zl)return e;if(o<Ql)return Ra;var a=Lf({startOfRange:Ql,endOfRange:t,current:o}),s=e*yt.ease(a);return Math.ceil(s)},ec=function(e){var r=e.distanceToEdge,n=e.thresholds,t=e.dragStartTime,i=e.shouldUseTimeDampening,o=F0(r,n);return o===0?0:i?Math.max(B0(o,t),Ra):o},tc=function(e){var r=e.container,n=e.distanceToEdges,t=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=j0(r,i),s=n[i.end]<n[i.start];return s?ec({distanceToEdge:n[i.end],thresholds:a,dragStartTime:t,shouldUseTimeDampening:o}):-1*ec({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}},G0=af(function(e){return e===0?0:e}),zf=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=tc({container:n,distanceToEdges:a,dragStartTime:r,axis:va,shouldUseTimeDampening:o}),l=tc({container:n,distanceToEdges:a,dragStartTime:r,axis:ff,shouldUseTimeDampening:o}),c=G0({x:l,y:s});if(bt(c,Te))return null;var u=$0({container:n,subject:t,proposedScroll:c});return u?bt(u,Te)?null:u:null},W0=af(function(e){return e===0?0:e>0?1:-1}),Ta=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=De(n,i),a={x:e(o.x,t.x),y:e(o.y,t.y)};return bt(a,Te)?null:a}}(),jf=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=W0(i),s=Ta({max:o,current:t,change:a});return!s||a.x!==0&&s.x===0||a.y!==0&&s.y===0},Da=function(r,n){return jf({current:r.scroll.current,max:r.scroll.max,change:n})},H0=function(r,n){if(!Da(r,n))return null;var t=r.scroll.max,i=r.scroll.current;return Ta({current:i,max:t,change:n})},_a=function(r,n){var t=r.frame;return t?jf({current:t.scroll.current,max:t.scroll.max,change:n}):!1},U0=function(r,n){var t=r.frame;return!t||!_a(r,n)?null:Ta({current:t.scroll.current,max:t.scroll.max,change:n})},q0=function(e){var r=e.viewport,n=e.subject,t=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=zf({dragStartTime:i,container:r.frame,subject:n,center:t,shouldUseTimeDampening:o});return a&&Da(r,a)?a:null},V0=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=zf({dragStartTime:i,container:a.pageMarginBox,subject:n,center:t,shouldUseTimeDampening:o});return s&&_a(r,s)?s:null},rc=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=q0({dragStartTime:n,viewport:c,subject:l,center:a,shouldUseTimeDampening:t});if(u){i(u);return}}var f=z0({center:a,destination:Be(r.impact),droppables:r.dimensions.droppables});if(f){var d=V0({dragStartTime:n,droppable:f,subject:l,center:a,shouldUseTimeDampening:t});d&&o(f.descriptor.id,d)}},K0=function(e){var r=e.scrollWindow,n=e.scrollDroppable,t=Fr(r),i=Fr(n),o=null,a=function(u){o||Y();var f=o,d=f.shouldUseTimeDampening,h=f.dragStartTime;rc({state:u,scrollWindow:t,scrollDroppable:i,dragStartTime:h,shouldUseTimeDampening:d})},s=function(u){o&&Y();var f=Date.now(),d=!1,h=function(){d=!0};rc({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h}),o={dragStartTime:f,shouldUseTimeDampening:d},d&&a(u)},l=function(){o&&(t.cancel(),i.cancel(),o=null)};return{start:s,stop:l,scroll:a}},Y0=function(e){var r=e.move,n=e.scrollDroppable,t=e.scrollWindow,i=function(c,u){var f=De(c.current.client.selection,u);r({client:f})},o=function(c,u){if(!_a(c,u))return u;var f=U0(c,u);if(!f)return n(c.descriptor.id,u),null;var d=Fe(u,f);n(c.descriptor.id,d);var h=Fe(u,d);return h},a=function(c,u,f){if(!c||!Da(u,f))return f;var d=H0(u,f);if(!d)return t(f),null;var h=Fe(f,d);t(h);var p=Fe(f,h);return p},s=function(c){var u=c.scrollJumpRequest;if(u){var f=Be(c.impact);f||Y();var d=o(c.dimensions.droppables[f],u);if(d){var h=c.viewport,p=a(c.isWindowScrollAllowed,h,d);p&&i(c,p)}}};return s},J0=function(e){var r=e.scrollDroppable,n=e.scrollWindow,t=e.move,i=K0({scrollWindow:n,scrollDroppable:r}),o=Y0({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},sr="data-rbd",lr=function(){var e=sr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),_o=function(){var e=sr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),X0=function(){var e=sr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),nc={contextId:sr+"-scroll-container-context-id"},Q0=function(r){return function(n){return"["+n+'="'+r+'"]'}},wr=function(r,n){return r.map(function(t){var i=t.styles[n];return i?t.selector+" { "+i+" }":""}).join(" ")},Z0="pointer-events: none;",eI=function(e){var r=Q0(e),n=function(){var s=`
439
+ `+El(r.source)+`
440
+ `},In={dragHandleUsageInstructions:mw,onDragStart:bw,onDragUpdate:yw,onDragEnd:xw},Te={x:0,y:0},De=function(r,n){return{x:r.x+n.x,y:r.y+n.y}},Fe=function(r,n){return{x:r.x-n.x,y:r.y-n.y}},bt=function(r,n){return r.x===n.x&&r.y===n.y},fr=function(r){return{x:r.x!==0?-r.x:0,y:r.y!==0?-r.y:0}},Lt=function(r,n,t){var i;return t===void 0&&(t=0),i={},i[r]=n,i[r==="x"?"y":"x"]=t,i},Ur=function(r,n){return Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2))},Nl=function(r,n){return Math.min.apply(Math,n.map(function(t){return Ur(r,t)}))},Xd=function(r){return function(n){return{x:r(n.x),y:r(n.y)}}},Sw=function(e,r){var n=Bt({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},nn=function(r,n){return{top:r.top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x}},Ml=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}]},ww={top:0,right:0,bottom:0,left:0},Cw=function(r,n){return n?nn(r,n.scroll.diff.displacement):r},Iw=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},Rw=function(r,n){return n&&n.shouldClipSubject?Sw(n.pageMarginBox,r):Bt(r)},ar=function(e){var r=e.page,n=e.withPlaceholder,t=e.axis,i=e.frame,o=Cw(r.marginBox,i),a=Iw(o,t,n),s=Rw(a,i);return{page:r,withPlaceholder:n,active:s}},ca=function(e,r){e.frame||Y();var n=e.frame,t=Fe(r,n.scroll.initial),i=fr(t),o=K({},n,{scroll:{initial:n.scroll.initial,current:r,diff:{value:t,displacement:i},max:n.scroll.max}}),a=ar({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),s=K({},e,{frame:o,subject:a});return s};function zn(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function ua(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 It(e,r){if(e.find)return e.find(r);var n=ua(e,r);if(n!==-1)return e[n]}function Qd(e){return Array.prototype.slice.call(e)}var Zd=Re(function(e){return e.reduce(function(r,n){return r[n.descriptor.id]=n,r},{})}),ef=Re(function(e){return e.reduce(function(r,n){return r[n.descriptor.id]=n,r},{})}),ti=Re(function(e){return zn(e)}),Tw=Re(function(e){return zn(e)}),pr=Re(function(e,r){var n=Tw(r).filter(function(t){return e===t.descriptor.droppableId}).sort(function(t,i){return t.descriptor.index-i.descriptor.index});return n});function da(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function ri(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var ni=Re(function(e,r){return r.filter(function(n){return n.descriptor.id!==e.descriptor.id})}),Dw=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=da(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=ni(n,i);if(!c){if(!u.length)return null;var f=u[u.length-1];return s(f.descriptor.id)}var d=ua(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)},hr=function(e,r){return e.descriptor.droppableId===r.descriptor.id},tf={point:Te,value:0},qr={invisible:{},visible:{},all:[]},Pw={displaced:qr,displacedBy:tf,at:null},qe=function(e,r){return function(n){return e<=n&&n<=r}},rf=function(e){var r=qe(e.top,e.bottom),n=qe(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}},_w=function(e){var r=qe(e.top,e.bottom),n=qe(e.left,e.right);return function(t){var i=r(t.top)&&r(t.bottom)&&n(t.left)&&n(t.right);return i}},fa={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},nf={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},kw=function(e){return function(r){var n=qe(r.top,r.bottom),t=qe(r.left,r.right);return function(i){return e===fa?n(i.top)&&n(i.bottom):t(i.left)&&t(i.right)}}},Ow=function(r,n){var t=n.frame?n.frame.scroll.diff.displacement:Te;return nn(r,t)},Ew=function(r,n,t){return n.subject.active?t(n.subject.active)(r):!1},Nw=function(r,n,t){return t(n)(r)},pa=function(r){var n=r.target,t=r.destination,i=r.viewport,o=r.withDroppableDisplacement,a=r.isVisibleThroughFrameFn,s=o?Ow(n,t):n;return Ew(s,t,a)&&Nw(s,i,a)},Mw=function(r){return pa(K({},r,{isVisibleThroughFrameFn:rf}))},of=function(r){return pa(K({},r,{isVisibleThroughFrameFn:_w}))},Aw=function(r){return pa(K({},r,{isVisibleThroughFrameFn:kw(r.destination.axis)}))},Lw=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 zw(e,r){var n=e.page.marginBox,t={top:r.point.y,right:0,bottom:0,left:r.point.x};return Bt(Oc(n,t))}function Vr(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=zw(c,t),f=c.descriptor.id;l.all.push(f);var d=Mw({target:u,destination:n,viewport:i,withDroppableDisplacement:!0});if(!d)return l.invisible[c.descriptor.id]=!0,l;var p=Lw(f,a,o),h={draggableId:f,shouldAnimate:p};return l.visible[f]=h,l},{all:[],visible:{},invisible:{}})}function jw(e,r){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return r.inHomeList?n:n+1}function Al(e){var r=e.insideDestination,n=e.inHomeList,t=e.displacedBy,i=e.destination,o=jw(r,{inHomeList:n});return{displaced:qr,displacedBy:t,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function jn(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=hr(r,t);if(s==null)return Al({insideDestination:n,inHomeList:c,displacedBy:o,destination:t});var u=It(n,function(v){return v.descriptor.index===s});if(!u)return Al({insideDestination:n,inHomeList:c,displacedBy:o,destination:t});var f=ni(r,n),d=n.indexOf(u),p=f.slice(d),h=Vr({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 Ct(e,r){return!!r.effected[e]}var Fw=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=Ct(a,o);return c?r?l:l-1:r?l+1:l},Bw=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},Gw=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=Bw({isMovingForward:r,isInHomeList:n,location:u.destination,insideDestination:a});return f==null?null:jn({draggable:t,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})}var d=Fw({isMovingForward:r,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return d==null?null:jn({draggable:t,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})},$w=function(e){var r=e.displaced,n=e.afterCritical,t=e.combineWith,i=e.displacedBy,o=!!(r.visible[t]||r.invisible[t]);return Ct(t,n)?o?Te:fr(i.point):o?i.point:Te},Ww=function(e){var r=e.afterCritical,n=e.impact,t=e.draggables,i=ri(n);i||Y();var o=i.draggableId,a=t[o].page.borderBox.center,s=$w({displaced:n.displaced,afterCritical:r,combineWith:o,displacedBy:n.displacedBy});return De(a,s)},af=function(r,n){return n.margin[r.start]+n.borderBox[r.size]/2},Hw=function(r,n){return n.margin[r.end]+n.borderBox[r.size]/2},ha=function(r,n,t){return n[r.crossAxisStart]+t.margin[r.crossAxisStart]+t.borderBox[r.crossAxisSize]/2},Ll=function(r){var n=r.axis,t=r.moveRelativeTo,i=r.isMoving;return Lt(n.line,t.marginBox[n.end]+af(n,i),ha(n,t.marginBox,i))},zl=function(r){var n=r.axis,t=r.moveRelativeTo,i=r.isMoving;return Lt(n.line,t.marginBox[n.start]-Hw(n,i),ha(n,t.marginBox,i))},Uw=function(r){var n=r.axis,t=r.moveInto,i=r.isMoving;return Lt(n.line,t.contentBox[n.start]+af(n,i),ha(n,t.contentBox,i))},qw=function(e){var r=e.impact,n=e.draggable,t=e.draggables,i=e.droppable,o=e.afterCritical,a=pr(i.descriptor.id,t),s=n.page,l=i.axis;if(!a.length)return Uw({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(Ct(f,o))return zl({axis:l,moveRelativeTo:d.page,isMoving:s});var p=Vi(d.page,u.point);return zl({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Ct(h.descriptor.id,o)){var v=Vi(h.page,fr(o.displacedBy.point));return Ll({axis:l,moveRelativeTo:v,isMoving:s})}return Ll({axis:l,moveRelativeTo:h.page,isMoving:s})},xo=function(e,r){var n=e.frame;return n?De(r,n.scroll.diff.displacement):r},Vw=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"?qw({impact:n,draggable:t,draggables:o,droppable:i,afterCritical:a}):Ww({impact:n,draggables:o,afterCritical:a})},ii=function(e){var r=Vw(e),n=e.droppable,t=n?xo(n,r):r;return t},sf=function(e,r){var n=Fe(r,e.scroll.initial),t=fr(n),i=Bt({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 jl(e,r){return e.map(function(n){return r[n]})}function Kw(e,r){for(var n=0;n<r.length;n++){var t=r[n].visible[e];if(t)return t}return null}var Yw=function(e){var r=e.impact,n=e.viewport,t=e.destination,i=e.draggables,o=e.maxScrollChange,a=sf(n,De(n.scroll.current,o)),s=t.frame?ca(t,De(t.frame.scroll.current,o)):t,l=r.displaced,c=Vr({afterDragging:jl(l.all,i),destination:t,displacedBy:r.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=Vr({afterDragging:jl(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=Kw(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},Jw=function(e,r){return De(e.scroll.diff.displacement,r)},ga=function(e){var r=e.pageBorderBoxCenter,n=e.draggable,t=e.viewport,i=Jw(t,r),o=Fe(i,n.page.borderBox.center);return De(n.client.borderBox.center,o)},lf=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=Fe(t,r.page.borderBox.center),c=nn(r.page.borderBox,l),u={target:c,destination:n,withDroppableDisplacement:o,viewport:i};return s?Aw(u):of(u)},Xw=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=pr(t.descriptor.id,i),f=hr(n,t),d=Dw({isMovingForward:r,draggable:n,destination:t,insideDestination:u,previousImpact:o})||Gw({isMovingForward:r,isInHomeList:f,draggable:n,draggables:i,destination:t,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!d)return null;var p=ii({impact:d,draggable:n,droppable:t,draggables:i,afterCritical:c}),h=lf({draggable:n,destination:t,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(h){var v=ga({pageBorderBoxCenter:p,draggable:n,viewport:a});return{clientSelection:v,impact:d,scrollJumpRequest:null}}var m=Fe(p,s),y=Yw({impact:d,viewport:a,destination:t,draggables:i,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}},Oe=function(r){var n=r.subject.active;return n||Y(),n},Qw=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=qe(a[s.start],a[s.end]),c=ti(i).filter(function(f){return f!==t}).filter(function(f){return f.isEnabled}).filter(function(f){return!!f.subject.active}).filter(function(f){return rf(o.frame)(Oe(f))}).filter(function(f){var d=Oe(f);return r?a[s.crossAxisEnd]<d[s.crossAxisEnd]:d[s.crossAxisStart]<a[s.crossAxisStart]}).filter(function(f){var d=Oe(f),p=qe(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=Oe(f)[s.crossAxisStart],h=Oe(d)[s.crossAxisStart];return r?p-h:h-p}).filter(function(f,d,p){return Oe(f)[s.crossAxisStart]===Oe(p[0])[s.crossAxisStart]});if(!c.length)return null;if(c.length===1)return c[0];var u=c.filter(function(f){var d=qe(Oe(f)[s.start],Oe(f)[s.end]);return d(n[s.line])});return u.length===1?u[0]:u.length>1?u.sort(function(f,d){return Oe(f)[s.start]-Oe(d)[s.start]})[0]:c.sort(function(f,d){var p=Nl(n,Ml(Oe(f))),h=Nl(n,Ml(Oe(d)));return p!==h?p-h:Oe(f)[s.start]-Oe(d)[s.start]})[0]},Fl=function(r,n){var t=r.page.borderBox.center;return Ct(r.descriptor.id,n)?Fe(t,n.displacedBy.point):t},Zw=function(r,n){var t=r.page.borderBox;return Ct(r.descriptor.id,n)?nn(t,fr(n.displacedBy.point)):t},eC=function(e){var r=e.pageBorderBoxCenter,n=e.viewport,t=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter(function(s){return of({target:Zw(s,o),destination:t,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(s,l){var c=Ur(r,xo(t,Fl(s,o))),u=Ur(r,xo(t,Fl(l,o)));return c<u?-1:u<c?1:s.descriptor.index-l.descriptor.index});return a[0]||null},on=Re(function(r,n){var t=n[r.line];return{value:t,point:Lt(r.line,t)}}),tC=function(r,n,t){var i=r.axis;if(r.descriptor.mode==="virtual")return Lt(i.line,n[i.line]);var o=r.subject.page.contentBox[i.size],a=pr(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:Lt(i.line,c)},cf=function(r,n){return K({},r,{scroll:K({},r.scroll,{max:n})})},uf=function(r,n,t){var i=r.frame;hr(n,r)&&Y(),r.subject.withPlaceholder&&Y();var o=on(r.axis,n.displaceBy).point,a=tC(r,o,t),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:r.frame?r.frame.scroll.max:null};if(!i){var l=ar({page:r.subject.page,withPlaceholder:s,axis:r.axis,frame:r.frame});return K({},r,{subject:l})}var c=a?De(i.scroll.max,a):i.scroll.max,u=cf(i,c),f=ar({page:r.subject.page,withPlaceholder:s,axis:r.axis,frame:u});return K({},r,{subject:f,frame:u})},rC=function(r){var n=r.subject.withPlaceholder;n||Y();var t=r.frame;if(!t){var i=ar({page:r.subject.page,axis:r.axis,frame:null,withPlaceholder:null});return K({},r,{subject:i})}var o=n.oldFrameMaxScroll;o||Y();var a=cf(t,o),s=ar({page:r.subject.page,axis:r.axis,frame:a,withPlaceholder:null});return K({},r,{subject:s,frame:a})},nC=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:qr,displacedBy:tf,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=ii({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),f=hr(i,a)?a:uf(a,i,o),d=lf({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=on(a.axis,i.displaceBy);return jn({draggable:i,insideDestination:t,destination:a,viewport:s,displacedBy:v,last:qr,index:h})},iC=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=Qw({isMovingForward:r,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=pr(c.descriptor.id,o),f=eC({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),d=nC({previousPageBorderBoxCenter:n,destination:c,draggable:t,draggables:o,moveRelativeTo:f,insideDestination:u,viewport:s,afterCritical:l});if(!d)return null;var p=ii({impact:d,draggable:t,droppable:c,draggables:o,afterCritical:l}),h=ga({pageBorderBoxCenter:p,draggable:t,viewport:s});return{clientSelection:h,impact:d,scrollJumpRequest:null}},Be=function(e){var r=e.at;return r?r.type==="REORDER"?r.destination.droppableId:r.combine.droppableId:null},oC=function(r,n){var t=Be(r);return t?n[t]:null},aC=function(e){var r=e.state,n=e.type,t=oC(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?Xw({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,destination:a,draggables:p,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):iC({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,isOver:a,draggables:p,droppables:h,viewport:r.viewport,afterCritical:r.afterCritical})};function _t(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function df(e){var r=qe(e.top,e.bottom),n=qe(e.left,e.right);return function(i){return r(i.y)&&n(i.x)}}function sC(e,r){return e.left<r.right&&e.right>r.left&&e.top<r.bottom&&e.bottom>r.top}function lC(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=Lt(a.axis.line,r.center[s.line],a.page.borderBox.center[s.crossAxisLine]);return{id:a.descriptor.id,distance:Ur(i,l)}}).sort(function(a,s){return s.distance-a.distance});return o[0]?o[0].id:null}function cC(e){var r=e.pageBorderBox,n=e.draggable,t=e.droppables,i=ti(t).filter(function(o){if(!o.isEnabled)return!1;var a=o.subject.active;if(!a||!sC(r,a))return!1;if(df(a)(r.center))return!0;var s=o.axis,l=a.center[s.crossAxisLine],c=r[s.crossAxisStart],u=r[s.crossAxisEnd],f=qe(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:lC({pageBorderBox:r,draggable:n,candidates:i}):null}var ff=function(r,n){return Bt(nn(r,n))},uC=function(e,r){var n=e.frame;return n?ff(r,n.scroll.diff.value):r};function pf(e){var r=e.displaced,n=e.id;return!!(r.visible[n]||r.invisible[n])}function dC(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 fC=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=on(t.axis,n.displaceBy),u=c.value,f=r[l.start],d=r[l.end],p=ni(n,i),h=It(p,function(m){var y=m.descriptor.id,b=m.page.borderBox.center[l.line],C=Ct(y,s),D=pf({displaced:o,id:y});return C?D?d<=b:f<b-u:D?d<=b+u:f<b}),v=dC({draggable:n,closest:h,inHomeList:hr(n,t)});return jn({draggable:n,insideDestination:i,destination:t,viewport:a,last:o,displacedBy:c,index:v})},pC=4,hC=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=on(i.axis,r.displaceBy),c=l.value,u=n[s.start],f=n[s.end],d=ni(r,o),p=It(d,function(v){var m=v.descriptor.id,y=v.page.borderBox,b=y[s.size],C=b/pC,D=Ct(m,a),_=pf({displaced:t.displaced,id:m});return D?_?f>y[s.start]+C&&f<y[s.end]-C:u>y[s.start]-c+C&&u<y[s.end]-c-C:_?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},hf=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=ff(n.page.borderBox,r),c=cC({pageBorderBox:l,draggable:n,droppables:i});if(!c)return Pw;var u=i[c],f=pr(u.descriptor.id,t),d=uC(u,l);return hC({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:o,destination:u,insideDestination:f,afterCritical:s})||fC({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:u,insideDestination:f,last:o.displaced,viewport:a,afterCritical:s})},va=function(e,r){var n;return K({},e,(n={},n[r.descriptor.id]=r,n))},gC=function(r){var n=r.previousImpact,t=r.impact,i=r.droppables,o=Be(n),a=Be(t);if(!o||o===a)return i;var s=i[o];if(!s.subject.withPlaceholder)return i;var l=rC(s);return va(i,l)},vC=function(e){var r=e.draggable,n=e.draggables,t=e.droppables,i=e.previousImpact,o=e.impact,a=gC({previousImpact:i,impact:o,droppables:t}),s=Be(o);if(!s)return a;var l=t[s];if(hr(r,l)||l.subject.withPlaceholder)return a;var c=uf(l,r,n);return va(a,c)},zr=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=Fe(c,r.initial.client.selection),f={offset:u,selection:c,borderBoxCenter:De(r.initial.client.borderBoxCenter,u)},d={selection:De(f.selection,s.scroll.current),borderBoxCenter:De(f.borderBoxCenter,s.scroll.current),offset:De(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||hf({pageOffset:d.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:r.impact,viewport:s,afterCritical:r.afterCritical}),m=vC({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 mC(e,r){return e.map(function(n){return r[n]})}var gf=function(e){var r=e.impact,n=e.viewport,t=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=r.displaced,s=mC(a.all,t),l=Vr({afterDragging:s,destination:i,displacedBy:r.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:a});return K({},r,{displaced:l})},vf=function(e){var r=e.impact,n=e.draggable,t=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=ii({impact:r,draggable:n,draggables:i,droppable:t,afterCritical:a});return ga({pageBorderBoxCenter:s,draggable:n,viewport:o})},mf=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=Be(i);u||Y();var f=l[u],d=gf({impact:i,viewport:o,destination:f,draggables:s}),p=vf({impact:d,draggable:c,droppable:f,draggables:s,viewport:o,afterCritical:r.afterCritical});return zr({impact:d,clientSelection:p,state:r,dimensions:a,viewport:o})},bC=function(e){return{index:e.index,droppableId:e.droppableId}},bf=function(e){var r=e.draggable,n=e.home,t=e.draggables,i=e.viewport,o=on(n.axis,r.displaceBy),a=pr(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=Vr({afterDragging:l,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),d={displaced:f,displacedBy:o,at:{type:"REORDER",destination:bC(r.descriptor)}};return{impact:d,afterCritical:u}},yC=function(e,r){return{draggables:e.draggables,droppables:va(e.droppables,r)}},xC=function(e){var r=e.draggable,n=e.offset,t=e.initialWindowScroll,i=Vi(r.client,n),o=_n(i,t),a=K({},r,{placeholder:K({},r.placeholder,{client:i}),client:i,page:o});return a},SC=function(e){var r=e.frame;return r||Y(),r},wC=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=SC(s),c=l.scroll.diff.value,u=De(i,c),f=xC({draggable:o,offset:u,initialWindowScroll:t.scroll.initial});return f})},CC=function(e){var r=e.state,n=e.published,t=n.modified.map(function(C){var D=r.dimensions.droppables[C.droppableId],_=ca(D,C.scroll);return _}),i=K({},r.dimensions.droppables,{},Zd(t)),o=ef(wC({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=Be(r.impact),c=l?s.droppables[l]:null,u=s.draggables[r.critical.draggable.id],f=s.droppables[r.critical.droppable.id],d=bf({draggable:u,home:f,draggables:a,viewport:r.viewport}),p=d.impact,h=d.afterCritical,v=c&&c.isCombineEnabled?r.impact:p,m=hf({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},So=function(r){return r.movementMode==="SNAP"},zi=function(r,n,t){var i=yC(r.dimensions,n);return!So(r)||t?zr({state:r,dimensions:i}):mf({state:r,dimensions:i})};function ji(e){return e.isDragging&&e.movementMode==="SNAP"?K({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Bl={phase:"IDLE",completed:null,shouldFlush:!1},IC=function(e,r){if(e===void 0&&(e=Bl),r.type==="FLUSH")return K({},Bl,{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:Te},f={client:u,page:{selection:De(u.selection,o.scroll.initial),borderBoxCenter:De(u.selection,o.scroll.initial),offset:De(u.selection,o.scroll.diff.value)}},d=ti(a.droppables).every(function(U){return!U.isFixedOnPage}),p=bf({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(),CC({state:e,published:r.payload});if(r.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;_t(e)||Y();var b=r.payload.client;return bt(b,e.current.client.selection)?e:zr({state:e,clientSelection:b,impact:So(e)?e.impact:null})}if(r.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return ji(e);_t(e)||Y();var C=r.payload,D=C.id,_=C.newScroll,w=e.dimensions.droppables[D];if(!w)return e;var P=ca(w,_);return zi(e,P,!1)}if(r.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;_t(e)||Y();var S=r.payload,T=S.id,R=S.isEnabled,k=e.dimensions.droppables[T];k||Y(),k.isEnabled===R&&Y();var j=K({},k,{isEnabled:R});return zi(e,j,!0)}if(r.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;_t(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 zi(e,G,!0)}if(r.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;_t(e)||Y(),e.isWindowScrollAllowed||Y();var q=r.payload.newScroll;if(bt(e.viewport.scroll.current,q))return ji(e);var J=sf(e.viewport,q);return So(e)?mf({state:e,viewport:J}):zr({state:e,viewport:J})}if(r.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!_t(e))return e;var ee=r.payload.maxScroll;if(bt(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=aC({state:e,type:r.type});return Z?zr({state:e,impact:Z.impact,clientSelection:Z.clientSelection,scrollJumpRequest:Z.scrollJumpRequest}):e}if(r.type==="DROP_PENDING"){var V=r.payload.reason;e.phase!=="COLLECTING"&&Y();var re=K({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:V});return re}if(r.type==="DROP_ANIMATE"){var ie=r.payload,$=ie.completed,W=ie.dropDuration,L=ie.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||Y();var N={phase:"DROP_ANIMATING",completed:$,dropDuration:W,newHomeClientOffset:L,dimensions:e.dimensions};return N}if(r.type==="DROP_COMPLETE"){var O=r.payload.completed;return{phase:"IDLE",completed:O,shouldFlush:!1}}return e},RC=function(r){return{type:"BEFORE_INITIAL_CAPTURE",payload:r}},TC=function(r){return{type:"LIFT",payload:r}},DC=function(r){return{type:"INITIAL_PUBLISH",payload:r}},PC=function(r){return{type:"PUBLISH_WHILE_DRAGGING",payload:r}},_C=function(){return{type:"COLLECTION_STARTING",payload:null}},kC=function(r){return{type:"UPDATE_DROPPABLE_SCROLL",payload:r}},OC=function(r){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:r}},EC=function(r){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:r}},yf=function(r){return{type:"MOVE",payload:r}},NC=function(r){return{type:"MOVE_BY_WINDOW_SCROLL",payload:r}},MC=function(r){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:r}},AC=function(){return{type:"MOVE_UP",payload:null}},LC=function(){return{type:"MOVE_DOWN",payload:null}},zC=function(){return{type:"MOVE_RIGHT",payload:null}},jC=function(){return{type:"MOVE_LEFT",payload:null}},ma=function(){return{type:"FLUSH",payload:null}},FC=function(r){return{type:"DROP_ANIMATE",payload:r}},ba=function(r){return{type:"DROP_COMPLETE",payload:r}},xf=function(r){return{type:"DROP",payload:r}},BC=function(r){return{type:"DROP_PENDING",payload:r}},Sf=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},GC=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(ba({completed:u.completed})),n().phase!=="IDLE"&&Y(),t(ma()),t(RC({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(DC({critical:h,dimensions:v,clientSelection:l,movementMode:c,viewport:m}))}}}},$C=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)}}}},ya={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Kr={opacity:{drop:0,combining:.7},scale:{drop:.75}},xa={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Tt=xa.outOfTheWay+"s "+ya.outOfTheWay,jr={fluid:"opacity "+Tt,snap:"transform "+Tt+", opacity "+Tt,drop:function(r){var n=r+"s "+ya.drop;return"transform "+n+", opacity "+n},outOfTheWay:"transform "+Tt,placeholder:"height "+Tt+", width "+Tt+", margin "+Tt},Gl=function(r){return bt(r,Te)?null:"translate("+r.x+"px, "+r.y+"px)"},wo={moveTo:Gl,drop:function(r,n){var t=Gl(r);return t?n?t+" scale("+Kr.scale.drop+")":t:null}},Co=xa.minDropTime,wf=xa.maxDropTime,WC=wf-Co,$l=1500,HC=.6,UC=function(e){var r=e.current,n=e.destination,t=e.reason,i=Ur(r,n);if(i<=0)return Co;if(i>=$l)return wf;var o=i/$l,a=Co+WC*o,s=t==="CANCEL"?a*HC:a;return Number(s.toFixed(2))},qC=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=Be(r),c=l?s[l]:null,u=s[n.descriptor.droppableId],f=vf({impact:r,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i}),d=Fe(f,n.client.borderBox.center);return d},VC=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=gf({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:qr});return{impact:l,didDropInsideDroppable:!0}},KC=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(BC({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=VC({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?da(d):null,v=p?ri(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=qC({impact:d,draggable:u,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),C={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:d},D=!bt(o.current.client.offset,b)||!!y.combine;if(!D){n(ba({completed:C}));return}var _=UC({current:o.current.client.offset,destination:b,reason:a}),w={newHomeClientOffset:b,dropDuration:_,completed:C};n(FC(w))}}}},Cf=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function YC(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function JC(e){var r=e.onWindowScroll;function n(){r(Cf())}var t=Fr(n),i=YC(t),o=mt;function a(){return o!==mt}function s(){a()&&Y(),o=Ue(window,[i])}function l(){a()||Y(),t.cancel(),o(),o=mt}return{start:s,stop:l,isActive:a}}var XC=function(r){return r.type==="DROP_COMPLETE"||r.type==="DROP_ANIMATE"||r.type==="FLUSH"},QC=function(e){var r=JC({onWindowScroll:function(t){e.dispatch(NC({newScroll:t}))}});return function(n){return function(t){!r.isActive()&&t.type==="INITIAL_PUBLISH"&&r.start(),r.isActive()&&XC(t)&&r.stop(),n(t)}}},ZC=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},e0=function(){var e=[],r=function(o){var a=ua(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}},t0=function(r,n){return r==null&&n==null?!0:r==null||n==null?!1:r.droppableId===n.droppableId&&r.index===n.index},r0=function(r,n){return r==null&&n==null?!0:r==null||n==null?!1:r.draggableId===n.draggableId&&r.droppableId===n.droppableId},n0=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},Sr=function(r,n){n()},pn=function(r,n){return{draggableId:r.draggable.id,type:r.droppable.type,source:{droppableId:r.droppable.id,index:r.draggable.index},mode:n}},Fi=function(r,n,t,i){if(!r){t(i(n));return}var o=ZC(t),a={announce:o};r(n,a),o.wasCalled()||t(i(n))},i0=function(e,r){var n=e0(),t=null,i=function(d,p){t&&Y(),Sr("onBeforeCapture",function(){var h=e().onBeforeCapture;if(h){var v={draggableId:d,mode:p};h(v)}})},o=function(d,p){t&&Y(),Sr("onBeforeDragStart",function(){var h=e().onBeforeDragStart;h&&h(pn(d,p))})},a=function(d,p){t&&Y();var h=pn(d,p);t={mode:p,lastCritical:d,lastLocation:h.source,lastCombine:null},n.add(function(){Sr("onDragStart",function(){return Fi(e().onDragStart,h,r,In.onDragStart)})})},s=function(d,p){var h=da(p),v=ri(p);t||Y();var m=!n0(d,t.lastCritical);m&&(t.lastCritical=d);var y=!t0(t.lastLocation,h);y&&(t.lastLocation=h);var b=!r0(t.lastCombine,v);if(b&&(t.lastCombine=v),!(!m&&!y&&!b)){var C=K({},pn(d,t.mode),{combine:v,destination:h});n.add(function(){Sr("onDragUpdate",function(){return Fi(e().onDragUpdate,C,r,In.onDragUpdate)})})}},l=function(){t||Y(),n.flush()},c=function(d){t||Y(),t=null,Sr("onDragEnd",function(){return Fi(e().onDragEnd,d,r,In.onDragEnd)})},u=function(){if(t){var d=K({},pn(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}},o0=function(e,r){var n=i0(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)}}}},a0=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(ba({completed:t.completed}))}}},s0=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(Sf())}};n=requestAnimationFrame(function(){n=null,r=Ue(window,[a])})}}}},l0=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)}}}},c0=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()}}}}}},u0=function(r){return r.type==="DROP_COMPLETE"||r.type==="DROP_ANIMATE"||r.type==="FLUSH"},d0=function(e){return function(r){return function(n){return function(t){if(u0(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())}}}},f0=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(xf({reason:t.reason})))}}}},p0=Eh,h0=function(e){var r=e.dimensionMarshal,n=e.focusMarshal,t=e.styleMarshal,i=e.getResponders,o=e.announce,a=e.autoScroller;return Oh(IC,p0(Nh($C(t),l0(r),GC(r),KC,a0,s0,f0,d0(a),QC,c0(n),o0(i,o))))},Bi=function(){return{additions:{},removals:{},modified:{}}};function g0(e){var r=e.registry,n=e.callbacks,t=Bi(),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(Te)}).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=Bi(),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=Bi())};return{add:a,remove:s,stop:l}}var If=function(e){var r=e.scrollHeight,n=e.scrollWidth,t=e.height,i=e.width,o=Fe({x:n,y:r},{x:i,y:t}),a={x:Math.max(0,o.x),y:Math.max(0,o.y)};return a},Rf=function(){var e=document.documentElement;return e||Y(),e},Tf=function(){var e=Rf(),r=If({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return r},v0=function(){var e=Cf(),r=Tf(),n=e.y,t=e.x,i=Rf(),o=i.clientWidth,a=i.clientHeight,s=t+o,l=n+a,c=Bt({top:n,left:t,right:s,bottom:l}),u={frame:c,scroll:{initial:e,current:e,max:r,diff:{value:Te,displacement:Te}}};return u},m0=function(e){var r=e.critical,n=e.scrollOptions,t=e.registry,i=v0(),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:ef(l),droppables:Zd(s)},u={dimensions:c,critical:r,viewport:i};return u};function Wl(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 b0=function(e,r){var n=null,t=g0({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"&&Wl(e,h,p.value)&&t.add(p.value),p.type==="REMOVAL"&&Wl(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},m0({critical:m,registry:e,scrollOptions:p.scrollOptions})},f={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:s,updateDroppableScroll:a,startPublishing:u,stopPublishing:l};return f},Df=function(e,r){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===r?!1:e.completed.result.reason==="DROP"},y0=function(e){window.scrollBy(e.x,e.y)},x0=Re(function(e){return ti(e).filter(function(r){return!(!r.isEnabled||!r.frame)})}),S0=function(r,n){var t=It(x0(n),function(i){return i.frame||Y(),df(i.frame.pageMarginBox)(r)});return t},w0=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=S0(r,t);return o},yt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(r){return Math.pow(r,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},C0=function(e,r){var n=e[r.size]*yt.startFromPercentage,t=e[r.size]*yt.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:t};return i},Pf=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},Sa=1,I0=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return yt.maxPixelScroll;if(e===r.startScrollingFrom)return Sa;var n=Pf({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),t=1-n,i=yt.maxPixelScroll*yt.ease(t);return Math.ceil(i)},Hl=yt.durationDampening.accelerateAt,Ul=yt.durationDampening.stopDampeningAt,R0=function(e,r){var n=r,t=Ul,i=Date.now(),o=i-n;if(o>=Ul)return e;if(o<Hl)return Sa;var a=Pf({startOfRange:Hl,endOfRange:t,current:o}),s=e*yt.ease(a);return Math.ceil(s)},ql=function(e){var r=e.distanceToEdge,n=e.thresholds,t=e.dragStartTime,i=e.shouldUseTimeDampening,o=I0(r,n);return o===0?0:i?Math.max(R0(o,t),Sa):o},Vl=function(e){var r=e.container,n=e.distanceToEdges,t=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=C0(r,i),s=n[i.end]<n[i.start];return s?ql({distanceToEdge:n[i.end],thresholds:a,dragStartTime:t,shouldUseTimeDampening:o}):-1*ql({distanceToEdge:n[i.start],thresholds:a,dragStartTime:t,shouldUseTimeDampening:o})},T0=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}},D0=Xd(function(e){return e===0?0:e}),_f=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=Vl({container:n,distanceToEdges:a,dragStartTime:r,axis:fa,shouldUseTimeDampening:o}),l=Vl({container:n,distanceToEdges:a,dragStartTime:r,axis:nf,shouldUseTimeDampening:o}),c=D0({x:l,y:s});if(bt(c,Te))return null;var u=T0({container:n,subject:t,proposedScroll:c});return u?bt(u,Te)?null:u:null},P0=Xd(function(e){return e===0?0:e>0?1:-1}),wa=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=De(n,i),a={x:e(o.x,t.x),y:e(o.y,t.y)};return bt(a,Te)?null:a}}(),kf=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=P0(i),s=wa({max:o,current:t,change:a});return!s||a.x!==0&&s.x===0||a.y!==0&&s.y===0},Ca=function(r,n){return kf({current:r.scroll.current,max:r.scroll.max,change:n})},_0=function(r,n){if(!Ca(r,n))return null;var t=r.scroll.max,i=r.scroll.current;return wa({current:i,max:t,change:n})},Ia=function(r,n){var t=r.frame;return t?kf({current:t.scroll.current,max:t.scroll.max,change:n}):!1},k0=function(r,n){var t=r.frame;return!t||!Ia(r,n)?null:wa({current:t.scroll.current,max:t.scroll.max,change:n})},O0=function(e){var r=e.viewport,n=e.subject,t=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=_f({dragStartTime:i,container:r.frame,subject:n,center:t,shouldUseTimeDampening:o});return a&&Ca(r,a)?a:null},E0=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=_f({dragStartTime:i,container:a.pageMarginBox,subject:n,center:t,shouldUseTimeDampening:o});return s&&Ia(r,s)?s:null},Kl=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=O0({dragStartTime:n,viewport:c,subject:l,center:a,shouldUseTimeDampening:t});if(u){i(u);return}}var f=w0({center:a,destination:Be(r.impact),droppables:r.dimensions.droppables});if(f){var d=E0({dragStartTime:n,droppable:f,subject:l,center:a,shouldUseTimeDampening:t});d&&o(f.descriptor.id,d)}},N0=function(e){var r=e.scrollWindow,n=e.scrollDroppable,t=Fr(r),i=Fr(n),o=null,a=function(u){o||Y();var f=o,d=f.shouldUseTimeDampening,p=f.dragStartTime;Kl({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};Kl({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}},M0=function(e){var r=e.move,n=e.scrollDroppable,t=e.scrollWindow,i=function(c,u){var f=De(c.current.client.selection,u);r({client:f})},o=function(c,u){if(!Ia(c,u))return u;var f=k0(c,u);if(!f)return n(c.descriptor.id,u),null;var d=Fe(u,f);n(c.descriptor.id,d);var p=Fe(u,d);return p},a=function(c,u,f){if(!c||!Ca(u,f))return f;var d=_0(u,f);if(!d)return t(f),null;var p=Fe(f,d);t(p);var h=Fe(f,p);return h},s=function(c){var u=c.scrollJumpRequest;if(u){var f=Be(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},A0=function(e){var r=e.scrollDroppable,n=e.scrollWindow,t=e.move,i=N0({scrollWindow:n,scrollDroppable:r}),o=M0({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},sr="data-rbd",lr=function(){var e=sr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Io=function(){var e=sr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),L0=function(){var e=sr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Yl={contextId:sr+"-scroll-container-context-id"},z0=function(r){return function(n){return"["+n+'="'+r+'"]'}},wr=function(r,n){return r.map(function(t){var i=t.styles[n];return i?t.selector+" { "+i+" }":""}).join(" ")},j0="pointer-events: none;",F0=function(e){var r=z0(e),n=function(){var s=`
441
441
  cursor: -webkit-grab;
442
442
  cursor: grab;
443
443
  `;return{selector:r(lr.contextId),styles:{always:`
444
444
  -webkit-touch-callout: none;
445
445
  -webkit-tap-highlight-color: rgba(0,0,0,0);
446
446
  touch-action: manipulation;
447
- `,resting:s,dragging:Z0,dropAnimating:s}}}(),t=function(){var s=`
447
+ `,resting:s,dragging:j0,dropAnimating:s}}}(),t=function(){var s=`
448
448
  transition: `+jr.outOfTheWay+`;
449
- `;return{selector:r(_o.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}}(),i={selector:r(X0.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:`
449
+ `;return{selector:r(Io.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}}(),i={selector:r(L0.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:`
450
450
  cursor: grabbing;
451
451
  cursor: -webkit-grabbing;
452
452
  user-select: none;
@@ -454,4 +454,4 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
454
454
  -moz-user-select: none;
455
455
  -ms-user-select: none;
456
456
  overflow-anchor: none;
457
- `}},a=[t,n,i,o];return{always:wr(a,"always"),resting:wr(a,"resting"),dragging:wr(a,"dragging"),dropAnimating:wr(a,"dropAnimating"),userCancel:wr(a,"userCancel")}},$e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect,Ui=function(){var r=document.querySelector("head");return r||Y(),r},ic=function(r){var n=document.createElement("style");return r&&n.setAttribute("nonce",r),n.type="text/css",n};function tI(e,r){var n=fe(function(){return eI(e)},[e]),t=I.useRef(null),i=I.useRef(null),o=ne(Re(function(f){var d=i.current;d||Y(),d.textContent=f}),[]),a=ne(function(f){var d=t.current;d||Y(),d.textContent=f},[]);$e(function(){!t.current&&!i.current||Y();var f=ic(r),d=ic(r);return t.current=f,i.current=d,f.setAttribute(sr+"-always",e),d.setAttribute(sr+"-dynamic",e),Ui().appendChild(f),Ui().appendChild(d),a(n.always),o(n.resting),function(){var h=function(v){var m=v.current;m||Y(),Ui().removeChild(m),v.current=null};h(t),h(i)}},[r,a,o,n.always,n.resting,e]);var s=ne(function(){return o(n.dragging)},[o,n.dragging]),l=ne(function(f){if(f==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),c=ne(function(){i.current&&o(n.resting)},[o,n.resting]),u=fe(function(){return{dragging:s,dropping:l,resting:c}},[s,l,c]);return u}var Ff=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function oi(e){return e instanceof Ff(e).HTMLElement}function rI(e,r){var n="["+lr.contextId+'="'+e+'"]',t=sf(document.querySelectorAll(n));if(!t.length)return null;var i=It(t,function(o){return o.getAttribute(lr.draggableId)===r});return!i||!oi(i)?null:i}function nI(e){var r=I.useRef({}),n=I.useRef(null),t=I.useRef(null),i=I.useRef(!1),o=ne(function(d,h){var p={id:d,focus:h};return r.current[d]=p,function(){var m=r.current,y=m[d];y!==p&&delete m[d]}},[]),a=ne(function(d){var h=rI(e,d);h&&h!==document.activeElement&&h.focus()},[e]),s=ne(function(d,h){n.current===d&&(n.current=h)},[]),l=ne(function(){t.current||i.current&&(t.current=requestAnimationFrame(function(){t.current=null;var d=n.current;d&&a(d)}))},[a]),c=ne(function(d){n.current=null;var h=document.activeElement;h&&h.getAttribute(lr.draggableId)===d&&(n.current=d)},[]);$e(function(){return i.current=!0,function(){i.current=!1;var d=t.current;d&&cancelAnimationFrame(d)}},[]);var u=fe(function(){return{register:o,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}},[o,c,l,s]);return u}function iI(){var e={draggables:{},droppables:{}},r=[];function n(f){return r.push(f),function(){var h=r.indexOf(f);h!==-1&&r.splice(h,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,h){var p=e.draggables[h.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[h.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:function(d){var h=d.descriptor.id,p=i(h);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[h],t({type:"REMOVAL",value:d}))},getById:o,findById:i,exists:function(d){return!!i(d)},getAllByType:function(d){return zn(e.draggables).filter(function(h){return h.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 h=s(d.descriptor.id);h&&d.uniqueId===h.uniqueId&&delete e.droppables[d.descriptor.id]},getById:l,findById:s,exists:function(d){return!!s(d)},getAllByType:function(d){return zn(e.droppables).filter(function(h){return h.descriptor.type===d})}};function u(){e.draggables={},e.droppables={},r.length=0}return{draggable:a,droppable:c,subscribe:n,clean:u}}function oI(){var e=fe(iI,[]);return I.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Pa=Q.createContext(null),Fn=function(){var e=document.body;return e||Y(),e},aI={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},sI=function(r){return"rbd-announcement-"+r};function lI(e){var r=fe(function(){return sI(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,aI),Fn().appendChild(o),function(){setTimeout(function(){var l=Fn();l.contains(o)&&l.removeChild(o),o===n.current&&(n.current=null)})}},[r]);var t=ne(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return t}var cI=0,uI={separator:"::"};function ka(e,r){return r===void 0&&(r=uI),fe(function(){return""+e+r.separator+cI++},[r.separator,e])}function dI(e){var r=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+r+"-"+n}function fI(e){var r=e.contextId,n=e.text,t=ka("hidden-text",{separator:"-"}),i=fe(function(){return dI({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",Fn().appendChild(a),function(){var l=Fn();l.contains(a)&&l.removeChild(a)}},[i,n]),i}var ai=Q.createContext(null);function Bf(e){var r=I.useRef(e);return I.useEffect(function(){r.current=e}),r}function hI(){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 pI=9,gI=13,Oa=27,$f=32,vI=33,mI=34,bI=35,yI=36,xI=37,SI=38,wI=39,CI=40,pn,II=(pn={},pn[gI]=!0,pn[pI]=!0,pn),Gf=function(e){II[e.keyCode]&&e.preventDefault()},si=function(){var e="visibilitychange";if(typeof document>"u")return e;var r=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=It(r,function(t){return"on"+t in document});return n||e}(),Wf=0,oc=5;function RI(e,r){return Math.abs(r.x-e.x)>=oc||Math.abs(r.y-e.y)>=oc}var ac={type:"IDLE"};function TI(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===Wf){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(RI(d,u)){a.preventDefault();var h=f.actions.fluidLift(u);i({type:"DRAGGING",actions:h})}}}},{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===Oa){a.preventDefault(),r();return}Gf(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:si,fn:r}]}function DI(e){var r=I.useRef(ac),n=I.useRef(mt),t=fe(function(){return{eventName:"mousedown",fn:function(f){if(!f.defaultPrevented&&f.button===Wf&&!(f.ctrlKey||f.metaKey||f.shiftKey||f.altKey)){var d=e.findClosestDraggableId(f);if(d){var h=e.tryGetLock(d,a,{sourceEvent:f});if(h){f.preventDefault();var p={x:f.clientX,y:f.clientY};n.current(),c(h,p)}}}}}},[e]),i=fe(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(f){if(!f.defaultPrevented){var d=e.findClosestDraggableId(f);if(d){var h=e.findOptionsForDraggable(d);h&&(h.shouldRespectForcePress||e.canGetLock(d)&&f.preventDefault())}}}}},[e]),o=ne(function(){var f={passive:!1,capture:!0};n.current=Ue(window,[i,t],f)},[i,t]),a=ne(function(){var u=r.current;u.type!=="IDLE"&&(r.current=ac,n.current(),o())},[o]),s=ne(function(){var u=r.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),l=ne(function(){var f={capture:!0,passive:!1},d=TI({cancel:s,completed:a,getPhase:function(){return r.current},setPhase:function(p){r.current=p}});n.current=Ue(window,d,f)},[s,a]),c=ne(function(f,d){r.current.type!=="IDLE"&&Y(),r.current={type:"PENDING",point:d,actions:f},l()},[l]);$e(function(){return o(),function(){n.current()}},[o])}var Vt;function _I(){}var PI=(Vt={},Vt[mI]=!0,Vt[vI]=!0,Vt[yI]=!0,Vt[bI]=!0,Vt);function kI(e,r){function n(){r(),e.cancel()}function t(){r(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Oa){o.preventDefault(),n();return}if(o.keyCode===$f){o.preventDefault(),t();return}if(o.keyCode===CI){o.preventDefault(),e.moveDown();return}if(o.keyCode===SI){o.preventDefault(),e.moveUp();return}if(o.keyCode===wI){o.preventDefault(),e.moveRight();return}if(o.keyCode===xI){o.preventDefault(),e.moveLeft();return}if(PI[o.keyCode]){o.preventDefault();return}Gf(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:si,fn:n}]}function OI(e){var r=I.useRef(_I),n=fe(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==$f)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=Ue(window,kI(c,u),{capture:!0,passive:!1})}}},[e]),t=ne(function(){var o={passive:!1,capture:!0};r.current=Ue(window,[n],o)},[n]);$e(function(){return t(),function(){r.current()}},[t])}var qi={type:"IDLE"},EI=120,NI=.15;function MI(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===Oa&&i.preventDefault(),r()}},{eventName:si,fn:r}]}function AI(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>=NI;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:si,fn:r}]}function LI(e){var r=I.useRef(qi),n=I.useRef(mt),t=ne(function(){return r.current},[]),i=ne(function(h){r.current=h},[]),o=fe(function(){return{eventName:"touchstart",fn:function(h){if(!h.defaultPrevented){var p=e.findClosestDraggableId(h);if(p){var v=e.tryGetLock(p,s,{sourceEvent:h});if(v){var m=h.touches[0],y=m.clientX,b=m.clientY,C={x:y,y:b};n.current(),f(v,C)}}}}}},[e]),a=ne(function(){var h={capture:!0,passive:!1};n.current=Ue(window,[o],h)},[o]),s=ne(function(){var d=r.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),i(qi),n.current(),a())},[a,i]),l=ne(function(){var d=r.current;s(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[s]),c=ne(function(){var h={capture:!0,passive:!1},p={cancel:l,completed:s,getPhase:t},v=Ue(window,AI(p),h),m=Ue(window,MI(p),h);n.current=function(){v(),m()}},[l,t,s]),u=ne(function(){var h=t();h.type!=="PENDING"&&Y();var p=h.actions.fluidLift(h.point);i({type:"DRAGGING",actions:p,hasMoved:!1})},[t,i]),f=ne(function(h,p){t().type!=="IDLE"&&Y();var v=setTimeout(u,EI);i({type:"PENDING",point:p,actions:h,longPressTimerId:v}),c()},[c,t,i,u]);$e(function(){return a(),function(){n.current();var p=t();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),i(qi))}},[t,a,i]),$e(function(){var h=Ue(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return h},[])}var zI={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Hf(e,r){if(r==null)return!1;var n=!!zI[r.tagName.toLowerCase()];if(n)return!0;var t=r.getAttribute("contenteditable");return t==="true"||t===""?!0:r===e?!1:Hf(e,r.parentElement)}function jI(e,r){var n=r.target;return oi(n)?Hf(e,n):!1}var FI=function(e){return Bt(e.getBoundingClientRect()).center};function BI(e){return e instanceof Ff(e).Element}var $I=function(){var e="matches";if(typeof document>"u")return e;var r=[e,"msMatchesSelector","webkitMatchesSelector"],n=It(r,function(t){return t in Element.prototype});return n||e}();function Uf(e,r){return e==null?null:e[$I](r)?e:Uf(e.parentElement,r)}function GI(e,r){return e.closest?e.closest(r):Uf(e,r)}function WI(e){return"["+lr.contextId+'="'+e+'"]'}function HI(e,r){var n=r.target;if(!BI(n))return null;var t=WI(e),i=GI(n,t);return!i||!oi(i)?null:i}function UI(e,r){var n=HI(e,r);return n?n.getAttribute(lr.draggableId):null}function qI(e,r){var n="["+_o.contextId+'="'+e+'"]',t=sf(document.querySelectorAll(n)),i=It(t,function(o){return o.getAttribute(_o.id)===r});return!i||!oi(i)?null:i}function VI(e){e.preventDefault()}function gn(e){var r=e.expected,n=e.phase,t=e.isLockActive;return e.shouldWarn,!(!t()||r!==n)}function qf(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||!Af(n.getState(),i))}function KI(e){var r=e.lockAPI,n=e.contextId,t=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent,l=qf({lockAPI:r,store:t,registry:i,draggableId:o});if(!l)return null;var c=i.draggable.getById(o),u=qI(n,c.descriptor.id);if(!u||s&&!c.options.canDragInteractiveElements&&jI(u,s))return null;var f=r.claim(a||mt),d="PRE_DRAG";function h(){return c.options.shouldRespectForcePress}function p(){return r.isActive(f)}function v(w,_){gn({expected:w,phase:d,isLockActive:p,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(T,R){if(R===void 0&&(R={shouldBlockNextClick:!1}),w.cleanup(),R.shouldBlockNextClick){var k=Ue(window,[{eventName:"click",fn:VI,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(k)}_(),t.dispatch(_f({reason:T}))}return K({isActive:function(){return gn({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:h,drop:function(R){return S("DROP",R)},cancel:function(R){return S("CANCEL",R)}},w.actions)}function b(w){var _=Fr(function(T){m(function(){return Df({client:T})})}),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(JC)},moveRight:function(){return m(QC)},moveDown:function(){return m(XC)},moveLeft:function(){return m(ZC)}};return y({liftActionArgs:{id:o,clientSelection:FI(u),movementMode:"SNAP"},cleanup:mt,actions:w})}function D(){var w=gn({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0});w&&r.release()}var P={isActive:function(){return gn({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:h,fluidLift:b,snapLift:C,abort:D};return P}var YI=[DI,OI,LI];function JI(e){var r=e.contextId,n=e.store,t=e.registry,i=e.customSensors,o=e.enableDefaultSensors,a=[].concat(o?YI:[],i||[]),s=I.useState(function(){return hI()})[0],l=ne(function(b,C){b.isDragging&&!C.isDragging&&s.tryAbandon()},[s]);$e(function(){var b=n.getState(),C=n.subscribe(function(){var D=n.getState();l(b,D),b=D});return C},[s,n,l]),$e(function(){return s.tryAbandon},[s.tryAbandon]);for(var c=ne(function(y){return qf({lockAPI:s,registry:t,store:n,draggableId:y})},[s,t,n]),u=ne(function(y,b,C){return KI({lockAPI:s,registry:t,contextId:r,store:n,draggableId:y,forceSensorStop:b,sourceEvent:C&&C.sourceEvent?C.sourceEvent:null})},[r,s,t,n]),f=ne(function(y){return UI(r,y)},[r]),d=ne(function(y){var b=t.draggable.findById(y);return b?b.options:null},[t.draggable]),h=ne(function(){s.isClaimed()&&(s.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(Sa()))},[s,n]),p=ne(s.isClaimed,[s]),v=fe(function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:f,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:p}},[c,u,f,d,h,p]),m=0;m<a.length;m++)a[m](v)}var XI=function(r){return{onBeforeCapture:r.onBeforeCapture,onBeforeDragStart:r.onBeforeDragStart,onDragStart:r.onDragStart,onDragEnd:r.onDragEnd,onDragUpdate:r.onDragUpdate}};function Cr(e){return e.current||Y(),e.current}function QI(e){var r=e.contextId,n=e.setCallbacks,t=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=I.useRef(null),s=Bf(e),l=ne(function(){return XI(s.current)},[s]),c=lI(r),u=fI({contextId:r,text:o}),f=tI(r,i),d=ne(function(T){Cr(a).dispatch(T)},[]),h=fe(function(){return Ua({publishWhileDragging:WC,updateDroppableScroll:UC,updateDroppableIsEnabled:qC,updateDroppableIsCombineEnabled:VC,collectionStarting:HC},d)},[d]),p=oI(),v=fe(function(){return N0(p,h)},[p,h]),m=fe(function(){return J0(K({scrollWindow:M0,scrollDroppable:v.scrollDroppable},Ua({move:Df},d)))},[v.scrollDroppable,d]),y=nI(r),b=fe(function(){return P0({announce:c,autoScroller:m,dimensionMarshal:v,focusMarshal:y,getResponders:l,styleMarshal:f})},[c,m,v,y,l,f]);a.current=b;var C=ne(function(){var T=Cr(a),R=T.getState();R.phase!=="IDLE"&&T.dispatch(Sa())},[]),D=ne(function(){var T=Cr(a).getState();return T.isDragging||T.phase==="DROP_ANIMATING"},[]),P=fe(function(){return{isDragging:D,tryAbort:C}},[D,C]);n(P);var w=ne(function(T){return Af(Cr(a).getState(),T)},[]),_=ne(function(){return Pt(Cr(a).getState())},[]),S=fe(function(){return{marshal:v,focus:y,contextId:r,canLift:w,isMovementAllowed:_,dragHandleUsageInstructionsId:u,registry:p}},[r,v,u,y,w,_,p]);return JI({contextId:r,store:b,registry:p,customSensors:t,enableDefaultSensors:e.enableDefaultSensors!==!1}),I.useEffect(function(){return C},[C]),Q.createElement(ai.Provider,{value:S},Q.createElement(KS,{context:Pa,store:b},e.children))}var ZI=0;function eR(){return fe(function(){return""+ZI++},[])}function tR(e){var r=eR(),n=e.dragHandleUsageInstructions||In.dragHandleUsageInstructions;return Q.createElement(Ow,null,function(t){return Q.createElement(QI,{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 Vf=function(r){return function(n){return r===n}},rR=Vf("scroll"),nR=Vf("auto"),sc=function(r,n){return n(r.overflowX)||n(r.overflowY)},iR=function(r){var n=window.getComputedStyle(r),t={overflowX:n.overflowX,overflowY:n.overflowY};return sc(t,rR)||sc(t,nR)},oR=function(){return!1},aR=function e(r){return r==null?null:r===document.body?oR()?r:null:r===document.documentElement?null:iR(r)?r:e(r.parentElement)},Po=function(e){return{x:e.scrollLeft,y:e.scrollTop}},sR=function e(r){if(!r)return!1;var n=window.getComputedStyle(r);return n.position==="fixed"?!0:e(r.parentElement)},lR=function(e){var r=aR(e),n=sR(e);return{closestScrollable:r,isFixedOnPage:n}},cR=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 h=l.scrollSize,p=l.client,v=Ef({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:p.paddingBox.height,width:p.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:p,scrollSize:h,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:v,diff:{value:Te,displacement:Te}}}}(),u=o==="vertical"?va:ff,f=ar({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},uR=function(r,n){var t=jc(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=Fc(l,t.border),u=Fp({borderBox:c,margin:t.margin,border:t.border,padding:t.padding});return u},dR=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=uR(r,c),f=Pn(u,i),d=function(){if(!c)return null;var p=jc(c),v={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:p,page:Pn(p,i),scroll:Po(c),scrollSize:v,shouldClipSubject:l}}(),h=cR({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:t.isFixedOnPage,direction:o,client:u,page:f,closest:d});return h},fR={passive:!1},hR={passive:!0},lc=function(e){return e.shouldPublishImmediately?fR:hR};function Bn(e){var r=I.useContext(e);return r||Y(),r}var vn=function(r){return r&&r.env.closestScrollable||null};function pR(e){var r=I.useRef(null),n=Bn(ai),t=ka("droppable"),i=n.registry,o=n.marshal,a=Bf(e),s=fe(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),l=I.useRef(s),c=fe(function(){return Re(function(D,P){r.current||Y();var w={x:D,y:P};o.updateDroppableScroll(s.id,w)})},[s.id,o]),u=ne(function(){var D=r.current;return!D||!D.env.closestScrollable?Te:Po(D.env.closestScrollable)},[]),f=ne(function(){var D=u();c(D.x,D.y)},[u,c]),d=fe(function(){return Fr(f)},[f]),h=ne(function(){var D=r.current,P=vn(D);D&&P||Y();var w=D.scrollOptions;if(w.shouldPublishImmediately){f();return}d()},[d,f]),p=ne(function(D,P){r.current&&Y();var w=a.current,_=w.getDroppableRef();_||Y();var S=lR(_),T={ref:_,descriptor:s,env:S,scrollOptions:P};r.current=T;var R=dR({ref:_,descriptor:s,env:S,windowScroll:D,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),k=S.closestScrollable;return k&&(k.setAttribute(nc.contextId,n.contextId),k.addEventListener("scroll",h,lc(T.scrollOptions))),R},[n.contextId,s,h,a]),v=ne(function(){var D=r.current,P=vn(D);return D&&P||Y(),Po(P)},[]),m=ne(function(){var D=r.current;D||Y();var P=vn(D);r.current=null,P&&(d.cancel(),P.removeAttribute(nc.contextId),P.removeEventListener("scroll",h,lc(D.scrollOptions)))},[h,d]),y=ne(function(D){var P=r.current;P||Y();var w=vn(P);w||Y(),w.scrollTop+=D.y,w.scrollLeft+=D.x},[]),b=fe(function(){return{getDimensionAndWatchScroll:p,getScrollWhileDragging:v,dragStopped:m,scroll:y}},[m,p,v,y]),C=fe(function(){return{uniqueId:t,descriptor:s,callbacks:b}},[b,s,t]);$e(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]),$e(function(){r.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),$e(function(){r.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Vi(){}var cc={width:0,height:0,margin:zw},gR=function(r){var n=r.isAnimatingOpenOnMount,t=r.placeholder,i=r.animate;return n||i==="close"?cc:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}},vR=function(r){var n=r.isAnimatingOpenOnMount,t=r.placeholder,i=r.animate,o=gR({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"?jr.placeholder:null}};function mR(e){var r=I.useRef(null),n=ne(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),Vi):r.current?Vi:(r.current=setTimeout(function(){r.current=null,c(!1)}),n):Vi},[t,l,n]);var u=ne(function(d){d.propertyName==="height"&&(i(),t==="close"&&o())},[t,o,i]),f=vR({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 bR=Q.memo(mR),Ea=Q.createContext(null),yR=function(e){Wn(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),uc={dragging:5e3,dropAnimating:4500},xR=function(r,n){return n?jr.drop(n.duration):r?jr.snap:jr.fluid},SR=function(r,n){return r?n?Kr.opacity.drop:Kr.opacity.combining:null},wR=function(r){return r.forceShouldAnimate!=null?r.forceShouldAnimate:r.mode==="SNAP"};function CR(e){var r=e.dimension,n=r.client,t=e.offset,i=e.combineWith,o=e.dropping,a=!!i,s=wR(e),l=!!o,c=l?To.drop(t,a):To.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:xR(s,o),transform:c,opacity:SR(a,l),zIndex:l?uc.dropAnimating:uc.dragging,pointerEvents:"none"};return u}function IR(e){return{transform:To.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function RR(e){return e.type==="DRAGGING"?CR(e):IR(e)}function TR(e,r,n){n===void 0&&(n=Te);var t=window.getComputedStyle(r),i=r.getBoundingClientRect(),o=Bp(i,t),a=Pn(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 DR(e){var r=ka("draggable"),n=e.descriptor,t=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=fe(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}},[o,s,a]),c=ne(function(h){var p=i();return p||Y(),TR(n,p,h)},[n,i]),u=fe(function(){return{uniqueId:r,descriptor:n,options:l,getDimension:c}},[n,c,l,r]),f=I.useRef(u),d=I.useRef(!0);$e(function(){return t.draggable.register(f.current),function(){return t.draggable.unregister(f.current)}},[t.draggable]),$e(function(){if(d.current){d.current=!1;return}var h=f.current;f.current=u,t.draggable.update(u,h)},[u,t.draggable])}function _R(e){e.preventDefault()}function PR(e){var r=I.useRef(null),n=ne(function(T){r.current=T},[]),t=ne(function(){return r.current},[]),i=Bn(ai),o=i.contextId,a=i.dragHandleUsageInstructionsId,s=i.registry,l=Bn(Ea),c=l.type,u=l.droppableId,f=fe(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}},[e.draggableId,e.index,c,u]),d=e.children,h=e.draggableId,p=e.isEnabled,v=e.shouldRespectForcePress,m=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,C=e.dropAnimationFinished;if(!y){var D=fe(function(){return{descriptor:f,registry:s,getDraggableRef:t,canDragInteractiveElements:m,shouldRespectForcePress:v,isEnabled:p}},[f,s,t,m,v,p]);DR(D)}var P=fe(function(){return p?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:_R}:null},[o,a,h,p]),w=ne(function(T){b.type==="DRAGGING"&&b.dropping&&T.propertyName==="transform"&&C()},[C,b]),_=fe(function(){var T=RR(b),R=b.type==="DRAGGING"&&b.dropping?w:null,k={innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":h,style:T,onTransitionEnd:R},dragHandleProps:P};return k},[o,P,h,b,w,n]),S=fe(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 Kf=function(e,r){return e===r},Yf=function(e){var r=e.combine,n=e.destination;return n?n.droppableId:r?r.droppableId:null},kR=function(r){return r.combine?r.combine.draggableId:null},OR=function(r){return r.at&&r.at.type==="COMBINE"?r.at.combine.draggableId:null};function ER(){var e=Re(function(i,o){return{x:i,y:o}}),r=Re(function(i,o,a,s,l){return{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:i,draggingOver:a,combineWith:s,combineTargetFor:null}}),n=Re(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=Be(o.impact),u=OR(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 h=a.isClone,p=o.dimensions.draggables[a.draggableId],v=d.result,m=v.mode,y=Yf(v),b=kR(v),C=o.dropDuration,D={duration:C,curve:Ca.drop,moveTo:o.newHomeClientOffset,opacity:b?Kr.opacity.drop:null,scale:b?Kr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:p,dropping:D,draggingOver:y,combineWith:b,mode:m,forceShouldAnimate:null,snapshot:r(m,h,y,b,D)}}}return null};return t}function Jf(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var NR={mapped:{type:"SECONDARY",offset:Te,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Jf(null)}};function MR(){var e=Re(function(a,s){return{x:a,y:s}}),r=Re(Jf),n=Re(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(Te,s,!0):null},i=function(s,l,c,u){var f=c.displaced.visible[s],d=!!(u.inVirtualList&&u.effected[s]),h=ri(c),p=h&&h.draggableId===s?l:null;if(!f){if(!d)return t(p);if(c.displaced.invisible[s])return null;var v=fr(u.displacedBy.point),m=e(v.x,v.y);return n(m,p,!0)}if(d)return t(p);var y=c.displacedBy.point,b=e(y.x,y.y);return n(b,p,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 AR=function(){var r=ER(),n=MR(),t=function(o,a){return r(o,a)||n(o,a)||NR};return t},LR={dropAnimationFinished:Pf},zR=tf(AR,LR,null,{context:Pa,pure:!0,areStatePropsEqual:Kf})(PR);function Xf(e){var r=Bn(Ea),n=r.isUsingCloneFor;return n===e.draggableId&&!e.isClone?null:Q.createElement(zR,e)}function jR(e){var r=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,t=!!e.shouldRespectForcePress;return Q.createElement(Xf,K({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:n,shouldRespectForcePress:t}))}function FR(e){var r=I.useContext(ai);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,h=e.isCombineEnabled,p=e.snapshot,v=e.useClone,m=e.updateViewportMaxScroll,y=e.getContainerForClone,b=ne(function(){return i.current},[]),C=ne(function(k){i.current=k},[]);ne(function(){return o.current},[]);var D=ne(function(k){o.current=k},[]),P=ne(function(){t()&&m({maxScroll:Mf()})},[t,m]);pR({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var w=Q.createElement(yR,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(k){var j=k.onClose,M=k.data,H=k.animate;return Q.createElement(bR,{placeholder:M,onClose:j,innerRef:D,animate:H,contextId:n,onTransitionEnd:P})}),_=fe(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,T=fe(function(){return{droppableId:s,type:l,isUsingCloneFor:S}},[s,S,l]);function R(){if(!v)return null;var k=v.dragging,j=v.render,M=Q.createElement(Xf,{draggableId:k.draggableId,index:k.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(H,E){return j(H,E,k)});return Ip.createPortal(M,y())}return Q.createElement(Ea.Provider,{value:T},a(_,p),R())}var Ki=function(r,n){return r===n.droppable.type},dc=function(r,n){return n.draggables[r.draggable.id]},BR=function(){var r={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},n=K({},r,{shouldAnimatePlaceholder:!1}),t=Re(function(a){return{draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}}}),i=Re(function(a,s,l,c,u,f){var d=u.descriptor.id,h=u.descriptor.droppableId===a;if(h){var p=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:p}}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 h=s.critical;if(!Ki(u,h))return n;var p=dc(h,s.dimensions),v=Be(s.impact)===c;return i(c,f,v,v,p,d)}if(s.phase==="DROP_ANIMATING"){var m=s.completed;if(!Ki(u,m.critical))return n;var y=dc(m.critical,s.dimensions);return i(c,f,Yf(m.result)===c,Be(m.impact)===c,y,d)}if(s.phase==="IDLE"&&s.completed&&!s.shouldFlush){var b=s.completed;if(!Ki(u,b.critical))return n;var C=Be(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:YC};function GR(){return document.body||Y(),document.body}var WR={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:GR},Qf=tf(BR,$R,null,{context:Pa,pure:!0,areStatePropsEqual:Kf})(FR);Qf.defaultProps=WR;const HR=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 UR({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=HR(r);for(let d=0;d<u.length;d+=4)if(u[d+3]>0){const h=u[d+3]/255;u[d]=f.r*h,u[d+1]=f.g*h,u[d+2]=f.b*h}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 ko=375,Zf=667,Na=56,qR=ot(Or)(({theme:e})=>({width:ko,height:Zf,display:"flex",flexDirection:"column",overflow:"hidden",border:`1px solid ${e.palette.divider}`,borderRadius:32,position:"relative"})),fc=ot(oe)(({theme:e})=>({height:Na,borderTop:`1px solid ${e.palette.divider}`,display:"flex",backgroundColor:e.palette.background.paper})),hc=ot(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}})),VR=ot(oe)(({theme:e,left:r})=>({position:"absolute",bottom:-Na,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})),mn=ot(Ae)(({theme:e})=>({padding:e.spacing(.5),"&:not(:last-child)":{marginRight:e.spacing(.5)}})),KR=ot(oe)({flexGrow:1,height:"100%",position:"relative",overflow:"hidden"}),YR=ot(oe)(({theme:e})=>({width:400,paddingLeft:e.spacing(3),backgroundColor:e.palette.background.default,height:Zf,overflowY:"auto"}));function JR(){const{t:e,locale:r}=Me(),{blocklet:n}=Ft(),t=jt(),i=Hn(t.breakpoints.down("md")),{state:o,getNavigation:a,updateNavigationItem:s,addNavigationItem:l,delNavigationItem:c,updateNavigationTree:u}=Uc(),{inService:f}=yc(),d=I.useRef(null),h=I.useRef(null),p=I.useRef(null),v=n.environments.find(V=>V.key===ht.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,T=_.length<5,[R,k]=I.useState(_.length>0?_[0]:null),j=_.findIndex(V=>V.id===R?.id),M=se((V,re)=>{const ie=V?.[re];return Rp(ie)?ie[r]||ie.en:ie}),H=se(V=>{V.id!==R?.id&&k(V)}),E=se(V=>{w.current=V,p.current?.add({},(re,ie)=>{const G=l(ie,w.current);k(G),re()})}),B=se(()=>{D(!0)}),$=se(()=>{p.current?.edit(R,(V,re)=>{s(re),V()})}),{run:q}=xc(()=>{h.current?.submit()},{wait:300}),J=se(q),ee=se(V=>{if(V?.startsWith("/"))try{const re=f?window.location.origin:v?.value;return new URL(V,re).href}catch{console.error("Failed to resolve url: ",V)}return V},[v?.value,f]),X=se(V=>{if(!V.destination)return;const re=Array.from(_),[ie]=re.splice(V.source.index,1);re.splice(V.destination.index,0,ie),u(re)}),Z=se(()=>{const V=_.find(ie=>ie.id===R?.id);if(!V)return"";let re=M(V,"link")||"/";if(re.startsWith("/"))try{re=ee(Ie(V.__base||"/",re))}catch(ie){return console.error("Failed to get active tab link",ie),""}return re});return I.useEffect(()=>{R&&!i&&(h.current?.resetImmediate(),h.current?.edit(R,V=>{s(V)}))},[R,s,i]),I.useEffect(()=>{const V=_.findIndex(O=>O.id===R?.id);if(V===-1||!d.current)return b(P.current);const ie=ko/_.length*(V+.5),G=d.current.getBoundingClientRect().width,W=G/2+16,L=ko-(G/2+16),N=Math.min(Math.max(ie,W),L);return P.current=N,b(N)},[R,_,P]),I.useEffect(()=>{_.length>0&&!R&&k(_[0])},[_,R]),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(qR,{elevation:2,children:[g.jsx(KR,{children:S&&g.jsx(ag,{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:Na,overflowY:"auto",flexShrink:0},children:[S&&g.jsx(tR,{onDragEnd:X,children:g.jsx(Qf,{droppableId:"tabbar",direction:"horizontal",children:V=>g.jsxs(fc,{ref:V.innerRef,...V.droppableProps,children:[_.map((re,ie)=>g.jsx(jR,{draggableId:re.id,index:ie,children:(G,W)=>g.jsxs(hc,{className:"tab-item",ref:G.innerRef,...G.draggableProps,...G.dragHandleProps,active:re.id===R?.id,onClick:L=>H(re,L),sx:{color:re.id===R?.id?m:"text.secondary",opacity:W.isDragging?.5:1},children:[g.jsx(UR,{src:ee(re.icon),color:re.id===R?.id?m:t.palette.text.secondary,size:24}),g.jsx(me,{variant:"caption",children:M(re,"title")})]})},re.id)),V.placeholder]})})}),!S&&g.jsx(fc,{children:g.jsx(hc,{className:"tab-item",onClick:()=>E(0),children:g.jsx(Ze,{icon:"mdi:plus-circle-outline",size:28})})})]})]}),!i&&S&&g.jsx(YR,{children:R&&g.jsx(sa,{ref:h,sx:{p:0},section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation,onChange:J})}),g.jsx(Tc,{in:R!==null,children:g.jsxs(VR,{ref:d,left:y,children:[g.jsx(mn,{size:"small",disabled:!T,onClick:()=>E(j),children:g.jsx(Ze,{icon:"mdi:plus-circle-outline",size:28})}),i&&g.jsx(mn,{size:"small",onClick:()=>$(),children:g.jsx(Ze,{icon:"mdi:edit-box-outline",size:28})}),g.jsx(mn,{size:"small",onClick:()=>B(),children:g.jsx(Ze,{icon:"mdi:delete-outline",size:28})}),g.jsx(mn,{size:"small",disabled:!T,onClick:()=>E(j+1),children:g.jsx(Ze,{icon:"mdi:plus-circle-outline",size:28})})]})}),g.jsx(la,{ref:p,section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation}),g.jsx(Lc,{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(R.id),_.length>1?j>0?k(_[j-1]):k(_[j+1]):k(null)},onCancel:()=>{D(!1)},children:g.jsx("p",{children:e("navigation.action.delTabBarDesc")})})]})})}const XR={login:Ye,logout:Ye,switch:Ye,switchDid:Ye,switchProfile:Ye,switchPassport:Ye,useDid:()=>({walletDid:"abcdefghijklmnopqrstuvwxyz"}),useOAuth:()=>({logoutOAuth:Ye,bindOAuth:Ye,configs:{},switchOAuthPassport:Ye})},Ir={header:"Header",footer:"Footer",bottom:"Footer Link",social:"Footer Social",dashboard:"Dashboard",sessionManager:"Session Blocklet",userCenter:"User Center",bottomNavigation:"Tab Bar"};function QR(){const{t:e}=Me(),{blocklet:r}=Ft(),n=I.useRef(null),{roles:t}=Bc(),i=Hn(R=>R.breakpoints.down("md")),o=zt({saveLoading:!1,resetLoading:!1,showResetConfirm:!1,mockRole:"owner"}),{state:a,navigation:s,getNavigation:l,saveNavigationList:c,resetNavigation:u,updateActiveSection:f,updateNavigationTree:d,updateNavigationItem:h,delNavigationItem:p,addNavigationItem:v}=Uc(),m=a.activeSection==="bottomNavigation",y=I.useCallback(R=>{n.current.add({parent:R},(k,j)=>{v(j),k()})},[v]),b=I.useCallback((R,k={})=>{switch(R){case"edit":n.current.edit(k,(j,M)=>{h(M),j()});break;case"toggle":h({id:k.id,visible:!k.visible});break;case"del":p(k.id);break}},[p,h]),C=I.useCallback(async()=>{try{o.saveLoading=!0,await c(a.rawNavigation),Ot.success(e("common.succeeded"))}catch(R){Ot.error(g.jsxs(oe,{children:[g.jsx(me,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(me,{variant:"body1",children:$a(R)||R.error})]}))}finally{o.saveLoading=!1}},[a.rawNavigation,o,c,e]),D=I.useCallback(async()=>{try{o.resetLoading=!0,await u(a.activeSection),Ot.success(e("navigation.action.resetSuccessful"),{variant:"success"})}catch(R){Ot.error(g.jsxs(oe,{children:[g.jsx(me,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(me,{variant:"body1",children:$a(R)||R.error})]}))}finally{o.resetLoading=!1}},[o,u,a.activeSection,e]),P=I.useMemo(()=>({session:{...XR,user:{did:r.appDid,fullName:"Preview User",role:o.mockRole,isPreviewUser:!0}}}),[r.appDid,o.mockRole]),w=l(a.activeSection),_=Le(()=>a.activeSection!=="bottomNavigation"?!1:w.length>=5,[a.activeSection,w.length]),S=g.jsxs(g.Fragment,{children:[g.jsx(Or,{variant:"outlined",sx:{display:"flex",height:660,overflow:"hidden",bgcolor:"background.default"},children:g.jsx(Or,{elevation:0,sx:{flex:1,overflow:"auto",bgcolor:"background.default"},children:g.jsx(Sd,{treeData:w,setTreeData:d,renderActions:({data:R,className:k})=>g.jsx(Td,{data:R,className:k,section:a.activeSection,add:(...j)=>y(...j),del:(...j)=>b("del",...j),edit:(...j)=>b("edit",...j),toggle:(...j)=>b("toggle",...j)})})})}),g.jsxs(Ga,{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(Cc,{sx:{m:1,minWidth:120},size:"small",children:[g.jsx(Tp,{children:e("common.role")}),g.jsx(Wa,{value:o.mockRole,label:"Role",onChange:R=>{o.mockRole=R.target.value},children:t.map(R=>g.jsx(_n,{value:R.name,children:R.title},R.name))})]})]}),g.jsx(Or,{variant:"outlined",children:g.jsx(qn.Provider,{value:P,children:g.jsx(WS,{navigation:s})})})]}),T=g.jsx(JR,{});return g.jsxs(g.Fragment,{children:[i&&g.jsx(Wa,{fullWidth:!0,size:"small",value:a.activeSection,onChange:R=>f(R.target.value),children:Object.keys(Ir).map(R=>g.jsxs(_n,{value:R,children:[Ir[R],` (${l(R).length})`]}))}),!i&&g.jsx(di,{variant:"outlined",children:Object.keys(Ir).map(R=>g.jsxs(xt,{variant:a.activeSection===R?"contained":void 0,onClick:()=>f(R),children:[Ir[R],` (${l(R).length})`]},R))}),g.jsxs(Ga,{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(di,{variant:"outlined",children:g.jsx(Va,{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(di,{variant:"outlined",children:[a.activeSection!=="bottomNavigation"&&g.jsx(xt,{size:"small",variant:"outlined",disabled:_,startIcon:g.jsx(xe,{icon:"mdi:plus"}),onClick:()=>y(),children:e("navigation.action.new")}),g.jsx(Va,{size:"small",variant:"contained",startIcon:g.jsx(xe,{icon:"mdi:content-save"}),loading:o.saveLoading,loadingPosition:"start",onClick:C,children:e("common.save")})]})]}),m?T:S,g.jsx(la,{ref:n,section:a.activeSection,components:a.components,rawNavigations:a.rawNavigation}),g.jsx(Lc,{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:Ir[a.activeSection]}),onConfirm:async()=>{await D(),o.showResetConfirm=!1},onCancel:()=>{o.showResetConfirm=!1},children:g.jsx("p",{children:e("navigation.action.restConfirmDesc")})})]})}function XT(){return g.jsx(Tg,{children:g.jsx(QR,{})})}export{XT as default};
457
+ `}},a=[t,n,i,o];return{always:wr(a,"always"),resting:wr(a,"resting"),dragging:wr(a,"dragging"),dropAnimating:wr(a,"dropAnimating"),userCancel:wr(a,"userCancel")}},Ge=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect,Gi=function(){var r=document.querySelector("head");return r||Y(),r},Jl=function(r){var n=document.createElement("style");return r&&n.setAttribute("nonce",r),n.type="text/css",n};function B0(e,r){var n=fe(function(){return F0(e)},[e]),t=I.useRef(null),i=I.useRef(null),o=ne(Re(function(f){var d=i.current;d||Y(),d.textContent=f}),[]),a=ne(function(f){var d=t.current;d||Y(),d.textContent=f},[]);Ge(function(){!t.current&&!i.current||Y();var f=Jl(r),d=Jl(r);return t.current=f,i.current=d,f.setAttribute(sr+"-always",e),d.setAttribute(sr+"-dynamic",e),Gi().appendChild(f),Gi().appendChild(d),a(n.always),o(n.resting),function(){var p=function(v){var m=v.current;m||Y(),Gi().removeChild(m),v.current=null};p(t),p(i)}},[r,a,o,n.always,n.resting,e]);var s=ne(function(){return o(n.dragging)},[o,n.dragging]),l=ne(function(f){if(f==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),c=ne(function(){i.current&&o(n.resting)},[o,n.resting]),u=fe(function(){return{dragging:s,dropping:l,resting:c}},[s,l,c]);return u}var Of=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function oi(e){return e instanceof Of(e).HTMLElement}function G0(e,r){var n="["+lr.contextId+'="'+e+'"]',t=Qd(document.querySelectorAll(n));if(!t.length)return null;var i=It(t,function(o){return o.getAttribute(lr.draggableId)===r});return!i||!oi(i)?null:i}function $0(e){var r=I.useRef({}),n=I.useRef(null),t=I.useRef(null),i=I.useRef(!1),o=ne(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=ne(function(d){var p=G0(e,d);p&&p!==document.activeElement&&p.focus()},[e]),s=ne(function(d,p){n.current===d&&(n.current=p)},[]),l=ne(function(){t.current||i.current&&(t.current=requestAnimationFrame(function(){t.current=null;var d=n.current;d&&a(d)}))},[a]),c=ne(function(d){n.current=null;var p=document.activeElement;p&&p.getAttribute(lr.draggableId)===d&&(n.current=d)},[]);Ge(function(){return i.current=!0,function(){i.current=!1;var d=t.current;d&&cancelAnimationFrame(d)}},[]);var u=fe(function(){return{register:o,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}},[o,c,l,s]);return u}function W0(){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 zn(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 zn(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 H0(){var e=fe(W0,[]);return I.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Ra=Q.createContext(null),Fn=function(){var e=document.body;return e||Y(),e},U0={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},q0=function(r){return"rbd-announcement-"+r};function V0(e){var r=fe(function(){return q0(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,U0),Fn().appendChild(o),function(){setTimeout(function(){var l=Fn();l.contains(o)&&l.removeChild(o),o===n.current&&(n.current=null)})}},[r]);var t=ne(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return t}var K0=0,Y0={separator:"::"};function Ta(e,r){return r===void 0&&(r=Y0),fe(function(){return""+e+r.separator+K0++},[r.separator,e])}function J0(e){var r=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+r+"-"+n}function X0(e){var r=e.contextId,n=e.text,t=Ta("hidden-text",{separator:"-"}),i=fe(function(){return J0({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",Fn().appendChild(a),function(){var l=Fn();l.contains(a)&&l.removeChild(a)}},[i,n]),i}var ai=Q.createContext(null);function Ef(e){var r=I.useRef(e);return I.useEffect(function(){r.current=e}),r}function Q0(){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 Z0=9,eI=13,Da=27,Nf=32,tI=33,rI=34,nI=35,iI=36,oI=37,aI=38,sI=39,lI=40,hn,cI=(hn={},hn[eI]=!0,hn[Z0]=!0,hn),Mf=function(e){cI[e.keyCode]&&e.preventDefault()},si=function(){var e="visibilitychange";if(typeof document>"u")return e;var r=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=It(r,function(t){return"on"+t in document});return n||e}(),Af=0,Xl=5;function uI(e,r){return Math.abs(r.x-e.x)>=Xl||Math.abs(r.y-e.y)>=Xl}var Ql={type:"IDLE"};function dI(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===Af){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(uI(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===Da){a.preventDefault(),r();return}Mf(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:si,fn:r}]}function fI(e){var r=I.useRef(Ql),n=I.useRef(mt),t=fe(function(){return{eventName:"mousedown",fn:function(f){if(!f.defaultPrevented&&f.button===Af&&!(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=fe(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=ne(function(){var f={passive:!1,capture:!0};n.current=Ue(window,[i,t],f)},[i,t]),a=ne(function(){var u=r.current;u.type!=="IDLE"&&(r.current=Ql,n.current(),o())},[o]),s=ne(function(){var u=r.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),l=ne(function(){var f={capture:!0,passive:!1},d=dI({cancel:s,completed:a,getPhase:function(){return r.current},setPhase:function(h){r.current=h}});n.current=Ue(window,d,f)},[s,a]),c=ne(function(f,d){r.current.type!=="IDLE"&&Y(),r.current={type:"PENDING",point:d,actions:f},l()},[l]);Ge(function(){return o(),function(){n.current()}},[o])}var Vt;function pI(){}var hI=(Vt={},Vt[rI]=!0,Vt[tI]=!0,Vt[iI]=!0,Vt[nI]=!0,Vt);function gI(e,r){function n(){r(),e.cancel()}function t(){r(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Da){o.preventDefault(),n();return}if(o.keyCode===Nf){o.preventDefault(),t();return}if(o.keyCode===lI){o.preventDefault(),e.moveDown();return}if(o.keyCode===aI){o.preventDefault(),e.moveUp();return}if(o.keyCode===sI){o.preventDefault(),e.moveRight();return}if(o.keyCode===oI){o.preventDefault(),e.moveLeft();return}if(hI[o.keyCode]){o.preventDefault();return}Mf(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:si,fn:n}]}function vI(e){var r=I.useRef(pI),n=fe(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==Nf)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=Ue(window,gI(c,u),{capture:!0,passive:!1})}}},[e]),t=ne(function(){var o={passive:!1,capture:!0};r.current=Ue(window,[n],o)},[n]);Ge(function(){return t(),function(){r.current()}},[t])}var $i={type:"IDLE"},mI=120,bI=.15;function yI(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===Da&&i.preventDefault(),r()}},{eventName:si,fn:r}]}function xI(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>=bI;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:si,fn:r}]}function SI(e){var r=I.useRef($i),n=I.useRef(mt),t=ne(function(){return r.current},[]),i=ne(function(p){r.current=p},[]),o=fe(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=ne(function(){var p={capture:!0,passive:!1};n.current=Ue(window,[o],p)},[o]),s=ne(function(){var d=r.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),i($i),n.current(),a())},[a,i]),l=ne(function(){var d=r.current;s(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[s]),c=ne(function(){var p={capture:!0,passive:!1},h={cancel:l,completed:s,getPhase:t},v=Ue(window,xI(h),p),m=Ue(window,yI(h),p);n.current=function(){v(),m()}},[l,t,s]),u=ne(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=ne(function(p,h){t().type!=="IDLE"&&Y();var v=setTimeout(u,mI);i({type:"PENDING",point:h,actions:p,longPressTimerId:v}),c()},[c,t,i,u]);Ge(function(){return a(),function(){n.current();var h=t();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),i($i))}},[t,a,i]),Ge(function(){var p=Ue(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return p},[])}var wI={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Lf(e,r){if(r==null)return!1;var n=!!wI[r.tagName.toLowerCase()];if(n)return!0;var t=r.getAttribute("contenteditable");return t==="true"||t===""?!0:r===e?!1:Lf(e,r.parentElement)}function CI(e,r){var n=r.target;return oi(n)?Lf(e,n):!1}var II=function(e){return Bt(e.getBoundingClientRect()).center};function RI(e){return e instanceof Of(e).Element}var TI=function(){var e="matches";if(typeof document>"u")return e;var r=[e,"msMatchesSelector","webkitMatchesSelector"],n=It(r,function(t){return t in Element.prototype});return n||e}();function zf(e,r){return e==null?null:e[TI](r)?e:zf(e.parentElement,r)}function DI(e,r){return e.closest?e.closest(r):zf(e,r)}function PI(e){return"["+lr.contextId+'="'+e+'"]'}function _I(e,r){var n=r.target;if(!RI(n))return null;var t=PI(e),i=DI(n,t);return!i||!oi(i)?null:i}function kI(e,r){var n=_I(e,r);return n?n.getAttribute(lr.draggableId):null}function OI(e,r){var n="["+Io.contextId+'="'+e+'"]',t=Qd(document.querySelectorAll(n)),i=It(t,function(o){return o.getAttribute(Io.id)===r});return!i||!oi(i)?null:i}function EI(e){e.preventDefault()}function gn(e){var r=e.expected,n=e.phase,t=e.isLockActive;return e.shouldWarn,!(!t()||r!==n)}function jf(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||!Df(n.getState(),i))}function NI(e){var r=e.lockAPI,n=e.contextId,t=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent,l=jf({lockAPI:r,store:t,registry:i,draggableId:o});if(!l)return null;var c=i.draggable.getById(o),u=OI(n,c.descriptor.id);if(!u||s&&!c.options.canDragInteractiveElements&&CI(u,s))return null;var f=r.claim(a||mt),d="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return r.isActive(f)}function v(w,P){gn({expected:w,phase:d,isLockActive:h,shouldWarn:!0})&&t.dispatch(P())}var m=v.bind(null,"DRAGGING");function y(w){function P(){r.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(P(),d!=="PRE_DRAG"&&Y()),t.dispatch(TC(w.liftActionArgs)),d="DRAGGING";function S(T,R){if(R===void 0&&(R={shouldBlockNextClick:!1}),w.cleanup(),R.shouldBlockNextClick){var k=Ue(window,[{eventName:"click",fn:EI,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(k)}P(),t.dispatch(xf({reason:T}))}return K({isActive:function(){return gn({expected:"DRAGGING",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(R){return S("DROP",R)},cancel:function(R){return S("CANCEL",R)}},w.actions)}function b(w){var P=Fr(function(T){m(function(){return yf({client:T})})}),S=y({liftActionArgs:{id:o,clientSelection:w,movementMode:"FLUID"},cleanup:function(){return P.cancel()},actions:{move:P}});return K({},S,{move:P})}function C(){var w={moveUp:function(){return m(AC)},moveRight:function(){return m(zC)},moveDown:function(){return m(LC)},moveLeft:function(){return m(jC)}};return y({liftActionArgs:{id:o,clientSelection:II(u),movementMode:"SNAP"},cleanup:mt,actions:w})}function D(){var w=gn({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!0});w&&r.release()}var _={isActive:function(){return gn({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:b,snapLift:C,abort:D};return _}var MI=[fI,vI,SI];function AI(e){var r=e.contextId,n=e.store,t=e.registry,i=e.customSensors,o=e.enableDefaultSensors,a=[].concat(o?MI:[],i||[]),s=I.useState(function(){return Q0()})[0],l=ne(function(b,C){b.isDragging&&!C.isDragging&&s.tryAbandon()},[s]);Ge(function(){var b=n.getState(),C=n.subscribe(function(){var D=n.getState();l(b,D),b=D});return C},[s,n,l]),Ge(function(){return s.tryAbandon},[s.tryAbandon]);for(var c=ne(function(y){return jf({lockAPI:s,registry:t,store:n,draggableId:y})},[s,t,n]),u=ne(function(y,b,C){return NI({lockAPI:s,registry:t,contextId:r,store:n,draggableId:y,forceSensorStop:b,sourceEvent:C&&C.sourceEvent?C.sourceEvent:null})},[r,s,t,n]),f=ne(function(y){return kI(r,y)},[r]),d=ne(function(y){var b=t.draggable.findById(y);return b?b.options:null},[t.draggable]),p=ne(function(){s.isClaimed()&&(s.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(ma()))},[s,n]),h=ne(s.isClaimed,[s]),v=fe(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 LI=function(r){return{onBeforeCapture:r.onBeforeCapture,onBeforeDragStart:r.onBeforeDragStart,onDragStart:r.onDragStart,onDragEnd:r.onDragEnd,onDragUpdate:r.onDragUpdate}};function Cr(e){return e.current||Y(),e.current}function zI(e){var r=e.contextId,n=e.setCallbacks,t=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=I.useRef(null),s=Ef(e),l=ne(function(){return LI(s.current)},[s]),c=V0(r),u=X0({contextId:r,text:o}),f=B0(r,i),d=ne(function(T){Cr(a).dispatch(T)},[]),p=fe(function(){return Ga({publishWhileDragging:PC,updateDroppableScroll:kC,updateDroppableIsEnabled:OC,updateDroppableIsCombineEnabled:EC,collectionStarting:_C},d)},[d]),h=H0(),v=fe(function(){return b0(h,p)},[h,p]),m=fe(function(){return A0(K({scrollWindow:y0,scrollDroppable:v.scrollDroppable},Ga({move:yf},d)))},[v.scrollDroppable,d]),y=$0(r),b=fe(function(){return h0({announce:c,autoScroller:m,dimensionMarshal:v,focusMarshal:y,getResponders:l,styleMarshal:f})},[c,m,v,y,l,f]);a.current=b;var C=ne(function(){var T=Cr(a),R=T.getState();R.phase!=="IDLE"&&T.dispatch(ma())},[]),D=ne(function(){var T=Cr(a).getState();return T.isDragging||T.phase==="DROP_ANIMATING"},[]),_=fe(function(){return{isDragging:D,tryAbort:C}},[D,C]);n(_);var w=ne(function(T){return Df(Cr(a).getState(),T)},[]),P=ne(function(){return _t(Cr(a).getState())},[]),S=fe(function(){return{marshal:v,focus:y,contextId:r,canLift:w,isMovementAllowed:P,dragHandleUsageInstructionsId:u,registry:h}},[r,v,u,y,w,P,h]);return AI({contextId:r,store:b,registry:h,customSensors:t,enableDefaultSensors:e.enableDefaultSensors!==!1}),I.useEffect(function(){return C},[C]),Q.createElement(ai.Provider,{value:S},Q.createElement(NS,{context:Ra,store:b},e.children))}var jI=0;function FI(){return fe(function(){return""+jI++},[])}function BI(e){var r=FI(),n=e.dragHandleUsageInstructions||In.dragHandleUsageInstructions;return Q.createElement(vw,null,function(t){return Q.createElement(zI,{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 Ff=function(r){return function(n){return r===n}},GI=Ff("scroll"),$I=Ff("auto"),Zl=function(r,n){return n(r.overflowX)||n(r.overflowY)},WI=function(r){var n=window.getComputedStyle(r),t={overflowX:n.overflowX,overflowY:n.overflowY};return Zl(t,GI)||Zl(t,$I)},HI=function(){return!1},UI=function e(r){return r==null?null:r===document.body?HI()?r:null:r===document.documentElement?null:WI(r)?r:e(r.parentElement)},Ro=function(e){return{x:e.scrollLeft,y:e.scrollTop}},qI=function e(r){if(!r)return!1;var n=window.getComputedStyle(r);return n.position==="fixed"?!0:e(r.parentElement)},VI=function(e){var r=UI(e),n=qI(e);return{closestScrollable:r,isFixedOnPage:n}},KI=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=If({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:Te,displacement:Te}}}}(),u=o==="vertical"?fa:nf,f=ar({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},YI=function(r,n){var t=kc(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=Oc(l,t.border),u=_h({borderBox:c,margin:t.margin,border:t.border,padding:t.padding});return u},JI=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=YI(r,c),f=_n(u,i),d=function(){if(!c)return null;var h=kc(c),v={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:h,page:_n(h,i),scroll:Ro(c),scrollSize:v,shouldClipSubject:l}}(),p=KI({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:t.isFixedOnPage,direction:o,client:u,page:f,closest:d});return p},XI={passive:!1},QI={passive:!0},ec=function(e){return e.shouldPublishImmediately?XI:QI};function Bn(e){var r=I.useContext(e);return r||Y(),r}var vn=function(r){return r&&r.env.closestScrollable||null};function ZI(e){var r=I.useRef(null),n=Bn(ai),t=Ta("droppable"),i=n.registry,o=n.marshal,a=Ef(e),s=fe(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),l=I.useRef(s),c=fe(function(){return Re(function(D,_){r.current||Y();var w={x:D,y:_};o.updateDroppableScroll(s.id,w)})},[s.id,o]),u=ne(function(){var D=r.current;return!D||!D.env.closestScrollable?Te:Ro(D.env.closestScrollable)},[]),f=ne(function(){var D=u();c(D.x,D.y)},[u,c]),d=fe(function(){return Fr(f)},[f]),p=ne(function(){var D=r.current,_=vn(D);D&&_||Y();var w=D.scrollOptions;if(w.shouldPublishImmediately){f();return}d()},[d,f]),h=ne(function(D,_){r.current&&Y();var w=a.current,P=w.getDroppableRef();P||Y();var S=VI(P),T={ref:P,descriptor:s,env:S,scrollOptions:_};r.current=T;var R=JI({ref:P,descriptor:s,env:S,windowScroll:D,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),k=S.closestScrollable;return k&&(k.setAttribute(Yl.contextId,n.contextId),k.addEventListener("scroll",p,ec(T.scrollOptions))),R},[n.contextId,s,p,a]),v=ne(function(){var D=r.current,_=vn(D);return D&&_||Y(),Ro(_)},[]),m=ne(function(){var D=r.current;D||Y();var _=vn(D);r.current=null,_&&(d.cancel(),_.removeAttribute(Yl.contextId),_.removeEventListener("scroll",p,ec(D.scrollOptions)))},[p,d]),y=ne(function(D){var _=r.current;_||Y();var w=vn(_);w||Y(),w.scrollTop+=D.y,w.scrollLeft+=D.x},[]),b=fe(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:v,dragStopped:m,scroll:y}},[m,h,v,y]),C=fe(function(){return{uniqueId:t,descriptor:s,callbacks:b}},[b,s,t]);Ge(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]),Ge(function(){r.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Ge(function(){r.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Wi(){}var tc={width:0,height:0,margin:ww},eR=function(r){var n=r.isAnimatingOpenOnMount,t=r.placeholder,i=r.animate;return n||i==="close"?tc:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}},tR=function(r){var n=r.isAnimatingOpenOnMount,t=r.placeholder,i=r.animate,o=eR({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"?jr.placeholder:null}};function rR(e){var r=I.useRef(null),n=ne(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),Wi):r.current?Wi:(r.current=setTimeout(function(){r.current=null,c(!1)}),n):Wi},[t,l,n]);var u=ne(function(d){d.propertyName==="height"&&(i(),t==="close"&&o())},[t,o,i]),f=tR({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 nR=Q.memo(rR),Pa=Q.createContext(null),iR=function(e){Wn(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),rc={dragging:5e3,dropAnimating:4500},oR=function(r,n){return n?jr.drop(n.duration):r?jr.snap:jr.fluid},aR=function(r,n){return r?n?Kr.opacity.drop:Kr.opacity.combining:null},sR=function(r){return r.forceShouldAnimate!=null?r.forceShouldAnimate:r.mode==="SNAP"};function lR(e){var r=e.dimension,n=r.client,t=e.offset,i=e.combineWith,o=e.dropping,a=!!i,s=sR(e),l=!!o,c=l?wo.drop(t,a):wo.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:oR(s,o),transform:c,opacity:aR(a,l),zIndex:l?rc.dropAnimating:rc.dragging,pointerEvents:"none"};return u}function cR(e){return{transform:wo.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function uR(e){return e.type==="DRAGGING"?lR(e):cR(e)}function dR(e,r,n){n===void 0&&(n=Te);var t=window.getComputedStyle(r),i=r.getBoundingClientRect(),o=kh(i,t),a=_n(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 fR(e){var r=Ta("draggable"),n=e.descriptor,t=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=fe(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}},[o,s,a]),c=ne(function(p){var h=i();return h||Y(),dR(n,h,p)},[n,i]),u=fe(function(){return{uniqueId:r,descriptor:n,options:l,getDimension:c}},[n,c,l,r]),f=I.useRef(u),d=I.useRef(!0);Ge(function(){return t.draggable.register(f.current),function(){return t.draggable.unregister(f.current)}},[t.draggable]),Ge(function(){if(d.current){d.current=!1;return}var p=f.current;f.current=u,t.draggable.update(u,p)},[u,t.draggable])}function pR(e){e.preventDefault()}function hR(e){var r=I.useRef(null),n=ne(function(T){r.current=T},[]),t=ne(function(){return r.current},[]),i=Bn(ai),o=i.contextId,a=i.dragHandleUsageInstructionsId,s=i.registry,l=Bn(Pa),c=l.type,u=l.droppableId,f=fe(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=fe(function(){return{descriptor:f,registry:s,getDraggableRef:t,canDragInteractiveElements:m,shouldRespectForcePress:v,isEnabled:h}},[f,s,t,m,v,h]);fR(D)}var _=fe(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:pR}:null},[o,a,p,h]),w=ne(function(T){b.type==="DRAGGING"&&b.dropping&&T.propertyName==="transform"&&C()},[C,b]),P=fe(function(){var T=uR(b),R=b.type==="DRAGGING"&&b.dropping?w:null,k={innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":p,style:T,onTransitionEnd:R},dragHandleProps:_};return k},[o,_,p,b,w,n]),S=fe(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(P,b.snapshot,S)}var Bf=function(e,r){return e===r},Gf=function(e){var r=e.combine,n=e.destination;return n?n.droppableId:r?r.droppableId:null},gR=function(r){return r.combine?r.combine.draggableId:null},vR=function(r){return r.at&&r.at.type==="COMBINE"?r.at.combine.draggableId:null};function mR(){var e=Re(function(i,o){return{x:i,y:o}}),r=Re(function(i,o,a,s,l){return{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:i,draggingOver:a,combineWith:s,combineTargetFor:null}}),n=Re(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=Be(o.impact),u=vR(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=Gf(v),b=gR(v),C=o.dropDuration,D={duration:C,curve:ya.drop,moveTo:o.newHomeClientOffset,opacity:b?Kr.opacity.drop:null,scale:b?Kr.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 $f(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var bR={mapped:{type:"SECONDARY",offset:Te,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:$f(null)}};function yR(){var e=Re(function(a,s){return{x:a,y:s}}),r=Re($f),n=Re(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(Te,s,!0):null},i=function(s,l,c,u){var f=c.displaced.visible[s],d=!!(u.inVirtualList&&u.effected[s]),p=ri(c),h=p&&p.draggableId===s?l:null;if(!f){if(!d)return t(h);if(c.displaced.invisible[s])return null;var v=fr(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 xR=function(){var r=mR(),n=yR(),t=function(o,a){return r(o,a)||n(o,a)||bR};return t},SR={dropAnimationFinished:Sf},wR=Vd(xR,SR,null,{context:Ra,pure:!0,areStatePropsEqual:Bf})(hR);function Wf(e){var r=Bn(Pa),n=r.isUsingCloneFor;return n===e.draggableId&&!e.isClone?null:Q.createElement(wR,e)}function CR(e){var r=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,t=!!e.shouldRespectForcePress;return Q.createElement(Wf,K({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:n,shouldRespectForcePress:t}))}function IR(e){var r=I.useContext(ai);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=ne(function(){return i.current},[]),C=ne(function(k){i.current=k},[]);ne(function(){return o.current},[]);var D=ne(function(k){o.current=k},[]),_=ne(function(){t()&&m({maxScroll:Tf()})},[t,m]);ZI({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:d,isCombineEnabled:p,ignoreContainerClipping:f,getDroppableRef:b});var w=Q.createElement(iR,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(k){var j=k.onClose,M=k.data,H=k.animate;return Q.createElement(nR,{placeholder:M,onClose:j,innerRef:D,animate:H,contextId:n,onTransitionEnd:_})}),P=fe(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,T=fe(function(){return{droppableId:s,type:l,isUsingCloneFor:S}},[s,S,l]);function R(){if(!v)return null;var k=v.dragging,j=v.render,M=Q.createElement(Wf,{draggableId:k.draggableId,index:k.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(H,E){return j(H,E,k)});return hh.createPortal(M,y())}return Q.createElement(Pa.Provider,{value:T},a(P,h),R())}var Hi=function(r,n){return r===n.droppable.type},nc=function(r,n){return n.draggables[r.draggable.id]},RR=function(){var r={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},n=K({},r,{shouldAnimatePlaceholder:!1}),t=Re(function(a){return{draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}}}),i=Re(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(!Hi(u,p))return n;var h=nc(p,s.dimensions),v=Be(s.impact)===c;return i(c,f,v,v,h,d)}if(s.phase==="DROP_ANIMATING"){var m=s.completed;if(!Hi(u,m.critical))return n;var y=nc(m.critical,s.dimensions);return i(c,f,Gf(m.result)===c,Be(m.impact)===c,y,d)}if(s.phase==="IDLE"&&s.completed&&!s.shouldFlush){var b=s.completed;if(!Hi(u,b.critical))return n;var C=Be(b.impact)===c,D=!!(b.impact.at&&b.impact.at.type==="COMBINE"),_=b.critical.droppable.id===c;return C?D?r:n:_?r:n}return n};return o},TR={updateViewportMaxScroll:MC};function DR(){return document.body||Y(),document.body}var PR={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:DR},Hf=Vd(RR,TR,null,{context:Ra,pure:!0,areStatePropsEqual:Bf})(IR);Hf.defaultProps=PR;const _R=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 kR({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=_R(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 To=375,Uf=667,_a=56,OR=ot(Or)(({theme:e})=>({width:To,height:Uf,display:"flex",flexDirection:"column",overflow:"hidden",border:`1px solid ${e.palette.divider}`,borderRadius:32,position:"relative"})),ic=ot(oe)(({theme:e})=>({height:_a,borderTop:`1px solid ${e.palette.divider}`,display:"flex",backgroundColor:e.palette.background.paper})),oc=ot(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}})),ER=ot(oe)(({theme:e,left:r})=>({position:"absolute",bottom:-_a,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})),mn=ot(Ae)(({theme:e})=>({padding:e.spacing(.5),"&:not(:last-child)":{marginRight:e.spacing(.5)}})),NR=ot(oe)({flexGrow:1,height:"100%",position:"relative",overflow:"hidden"}),MR=ot(oe)(({theme:e})=>({width:400,paddingLeft:e.spacing(3),backgroundColor:e.palette.background.default,height:Uf,overflowY:"auto"}));function AR(){const{t:e,locale:r}=Me(),{blocklet:n}=Ft(),t=jt(),i=Hn(t.breakpoints.down("md")),{state:o,getNavigation:a,updateNavigationItem:s,addNavigationItem:l,delNavigationItem:c,updateNavigationTree:u}=zc(),{inService:f}=dc(),d=I.useRef(null),p=I.useRef(null),h=I.useRef(null),v=n.environments.find(V=>V.key===pt.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),m=n?.settings?.theme?.light?.palette?.primary?.main,[y,b]=I.useState(0),[C,D]=I.useState(!1),_=I.useRef(0),w=I.useRef(null),P=a("bottomNavigation"),S=P.length>0,T=P.length<5,[R,k]=I.useState(P.length>0?P[0]:null),j=P.findIndex(V=>V.id===R?.id),M=se((V,re)=>{const ie=V?.[re];return gh(ie)?ie[r]||ie.en:ie}),H=se(V=>{V.id!==R?.id&&k(V)}),E=se(V=>{w.current=V,h.current?.add({},(re,ie)=>{const $=l(ie,w.current);k($),re()})}),B=se(()=>{D(!0)}),G=se(()=>{h.current?.edit(R,(V,re)=>{s(re),V()})}),{run:q}=fc(()=>{p.current?.submit()},{wait:300}),J=se(q),ee=se(V=>{if(V?.startsWith("/"))try{const re=f?window.location.origin:v?.value;return new URL(V,re).href}catch{console.error("Failed to resolve url: ",V)}return V},[v?.value,f]),X=se(V=>{if(!V.destination)return;const re=Array.from(P),[ie]=re.splice(V.source.index,1);re.splice(V.destination.index,0,ie),u(re)}),Z=se(()=>{const V=P.find(ie=>ie.id===R?.id);if(!V)return"";let re=M(V,"link")||"/";if(re.startsWith("/"))try{re=ee(Ie(V.__base||"/",re))}catch(ie){return console.error("Failed to get active tab link",ie),""}return re});return I.useEffect(()=>{R&&!i&&(p.current?.resetImmediate(),p.current?.edit(R,V=>{s(V)}))},[R,s,i]),I.useEffect(()=>{const V=P.findIndex(O=>O.id===R?.id);if(V===-1||!d.current)return b(_.current);const ie=To/P.length*(V+.5),$=d.current.getBoundingClientRect().width,W=$/2+16,L=To-($/2+16),N=Math.min(Math.max(ie,W),L);return _.current=N,b(N)},[R,P,_]),I.useEffect(()=>{P.length>0&&!R&&k(P[0])},[P,R]),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(OR,{elevation:2,children:[g.jsx(NR,{children:S&&g.jsx(Jh,{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:_a,overflowY:"auto",flexShrink:0},children:[S&&g.jsx(BI,{onDragEnd:X,children:g.jsx(Hf,{droppableId:"tabbar",direction:"horizontal",children:V=>g.jsxs(ic,{ref:V.innerRef,...V.droppableProps,children:[P.map((re,ie)=>g.jsx(CR,{draggableId:re.id,index:ie,children:($,W)=>g.jsxs(oc,{className:"tab-item",ref:$.innerRef,...$.draggableProps,...$.dragHandleProps,active:re.id===R?.id,onClick:L=>H(re,L),sx:{color:re.id===R?.id?m:"text.secondary",opacity:W.isDragging?.5:1},children:[g.jsx(kR,{src:ee(re.icon),color:re.id===R?.id?m:t.palette.text.secondary,size:24}),g.jsx(me,{variant:"caption",children:M(re,"title")})]})},re.id)),V.placeholder]})})}),!S&&g.jsx(ic,{children:g.jsx(oc,{className:"tab-item",onClick:()=>E(0),children:g.jsx(Ze,{icon:"mdi:plus-circle-outline",size:28})})})]})]}),!i&&S&&g.jsx(MR,{children:R&&g.jsx(na,{ref:p,sx:{p:0},section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation,onChange:J})}),g.jsx(bc,{in:R!==null,children:g.jsxs(ER,{ref:d,left:y,children:[g.jsx(mn,{size:"small",disabled:!T,onClick:()=>E(j),children:g.jsx(Ze,{icon:"mdi:plus-circle-outline",size:28})}),i&&g.jsx(mn,{size:"small",onClick:()=>G(),children:g.jsx(Ze,{icon:"mdi:edit-box-outline",size:28})}),g.jsx(mn,{size:"small",onClick:()=>B(),children:g.jsx(Ze,{icon:"mdi:delete-outline",size:28})}),g.jsx(mn,{size:"small",disabled:!T,onClick:()=>E(j+1),children:g.jsx(Ze,{icon:"mdi:plus-circle-outline",size:28})})]})}),g.jsx(ia,{ref:h,section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation}),g.jsx(Pc,{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(R.id),P.length>1?j>0?k(P[j-1]):k(P[j+1]):k(null)},onCancel:()=>{D(!1)},children:g.jsx("p",{children:e("navigation.action.delTabBarDesc")})})]})})}const LR={login:Ye,logout:Ye,switch:Ye,switchDid:Ye,switchProfile:Ye,switchPassport:Ye,useDid:()=>({walletDid:"abcdefghijklmnopqrstuvwxyz"}),useOAuth:()=>({logoutOAuth:Ye,bindOAuth:Ye,configs:{},switchOAuthPassport:Ye})},Ir={header:"Header",footer:"Footer",bottom:"Footer Link",social:"Footer Social",dashboard:"Dashboard",sessionManager:"Session Blocklet",userCenter:"User Center",bottomNavigation:"Tab Bar"};function zR(){const{t:e}=Me(),{blocklet:r}=Ft(),n=I.useRef(null),{roles:t}=Ec(),i=Hn(R=>R.breakpoints.down("md")),o=zt({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}=zc(),m=a.activeSection==="bottomNavigation",y=I.useCallback(R=>{n.current.add({parent:R},(k,j)=>{v(j),k()})},[v]),b=I.useCallback((R,k={})=>{switch(R){case"edit":n.current.edit(k,(j,M)=>{p(M),j()});break;case"toggle":p({id:k.id,visible:!k.visible});break;case"del":h(k.id);break}},[h,p]),C=I.useCallback(async()=>{try{o.saveLoading=!0,await c(a.rawNavigation),Ot.success(e("common.succeeded"))}catch(R){Ot.error(g.jsxs(oe,{children:[g.jsx(me,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(me,{variant:"body1",children:za(R)||R.error})]}))}finally{o.saveLoading=!1}},[a.rawNavigation,o,c,e]),D=I.useCallback(async()=>{try{o.resetLoading=!0,await u(a.activeSection),Ot.success(e("navigation.action.resetSuccessful"),{variant:"success"})}catch(R){Ot.error(g.jsxs(oe,{children:[g.jsx(me,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(me,{variant:"body1",children:za(R)||R.error})]}))}finally{o.resetLoading=!1}},[o,u,a.activeSection,e]),_=I.useMemo(()=>({session:{...LR,user:{did:r.appDid,fullName:"Preview User",role:o.mockRole,isPreviewUser:!0}}}),[r.appDid,o.mockRole]),w=l(a.activeSection),P=Le(()=>a.activeSection!=="bottomNavigation"?!1:w.length>=5,[a.activeSection,w.length]),S=g.jsxs(g.Fragment,{children:[g.jsx(Or,{variant:"outlined",sx:{display:"flex",height:660,overflow:"hidden",bgcolor:"background.default"},children:g.jsx(Or,{elevation:0,sx:{flex:1,overflow:"auto",bgcolor:"background.default"},children:g.jsx(pd,{treeData:w,setTreeData:d,renderActions:({data:R,className:k})=>g.jsx(bd,{data:R,className:k,section:a.activeSection,add:(...j)=>y(...j),del:(...j)=>b("del",...j),edit:(...j)=>b("edit",...j),toggle:(...j)=>b("toggle",...j)})})})}),g.jsxs(ja,{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(gc,{sx:{m:1,minWidth:120},size:"small",children:[g.jsx(vh,{children:e("common.role")}),g.jsx(Fa,{value:o.mockRole,label:"Role",onChange:R=>{o.mockRole=R.target.value},children:t.map(R=>g.jsx(Pn,{value:R.name,children:R.title},R.name))})]})]}),g.jsx(Or,{variant:"outlined",children:g.jsx(qn.Provider,{value:_,children:g.jsx(PS,{navigation:s})})})]}),T=g.jsx(AR,{});return g.jsxs(g.Fragment,{children:[i&&g.jsx(Fa,{fullWidth:!0,size:"small",value:a.activeSection,onChange:R=>f(R.target.value),children:Object.keys(Ir).map(R=>g.jsxs(Pn,{value:R,children:[Ir[R],` (${l(R).length})`]}))}),!i&&g.jsx(di,{variant:"outlined",children:Object.keys(Ir).map(R=>g.jsxs(xt,{variant:a.activeSection===R?"contained":void 0,onClick:()=>f(R),children:[Ir[R],` (${l(R).length})`]},R))}),g.jsxs(ja,{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(di,{variant:"outlined",children:g.jsx(Wa,{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(di,{variant:"outlined",children:[a.activeSection!=="bottomNavigation"&&g.jsx(xt,{size:"small",variant:"outlined",disabled:P,startIcon:g.jsx(xe,{icon:"mdi:plus"}),onClick:()=>y(),children:e("navigation.action.new")}),g.jsx(Wa,{size:"small",variant:"contained",startIcon:g.jsx(xe,{icon:"mdi:content-save"}),loading:o.saveLoading,loadingPosition:"start",onClick:C,children:e("common.save")})]})]}),m?T:S,g.jsx(ia,{ref:n,section:a.activeSection,components:a.components,rawNavigations:a.rawNavigation}),g.jsx(Pc,{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:Ir[a.activeSection]}),onConfirm:async()=>{await D(),o.showResetConfirm=!1},onCancel:()=>{o.showResetConfirm=!1},children:g.jsx("p",{children:e("navigation.action.restConfirmDesc")})})]})}function AT(){return g.jsx(vg,{children:g.jsx(zR,{})})}export{AT as default};