@oliasoft-open-source/react-ui-library 5.6.0-beta-20 → 5.6.0-beta-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-B1D5hqWS.js → index-CMB0aE4o.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/index.js +16 -11
- package/dist/storybook/assets/{Color-AVL7NMMY-BuAf7Fbp.js → Color-AVL7NMMY-Czg_fs6_.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PQXLIZUC-DLMby0wD.js → DocsRenderer-PQXLIZUC-B2Zun_PK.js} +2 -2
- package/dist/storybook/assets/{accordion-DU90ITZn.js → accordion-RHDLdSvI.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-CQBN7DP5.js → accordion.stories-u3D9KmXg.js} +1 -1
- package/dist/storybook/assets/{actions-C75Yhysc.js → actions-Ct9IeQri.js} +2 -2
- package/dist/storybook/assets/{actions.stories-BUHQ2nS5.js → actions.stories-JRO1NCkI.js} +1 -1
- package/dist/storybook/assets/{afe.stories-tjB42xAu.js → afe.stories-DZEb77dW.js} +1 -1
- package/dist/storybook/assets/{badge-DoQogrt7.js → badge-CSqHSgHc.js} +1 -1
- package/dist/storybook/assets/{badge.stories-LNlLlLqv.js → badge.stories-Bc7Okxm1.js} +1 -1
- package/dist/storybook/assets/{blocks-npsRjG9U.js → blocks-BRiP-lQk.js} +4 -4
- package/dist/storybook/assets/{blowout.stories-DjF4nrAH.js → blowout.stories-BXnq1D_i.js} +1 -1
- package/dist/storybook/assets/{breadcrumb.stories-BW0-hz0O.js → breadcrumb.stories-DiGI8A9V.js} +1 -1
- package/dist/storybook/assets/{button-COZYpTMg.js → button-DXVRmU6A.js} +1 -1
- package/dist/storybook/assets/{button-group-BjdP3aGQ.js → button-group-CxEZ408g.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-CTYaftZw.js → button-group.stories-Bjij8pPO.js} +1 -1
- package/dist/storybook/assets/button.stories-6rnL2ggd.js +1 -0
- package/dist/storybook/assets/{button.stories-XZ2oxsKX.js → button.stories-CuLcB-tY.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-YZlUwrwh.js → buttons-and-links-ifU6a0mN.js} +1 -1
- package/dist/storybook/assets/{card-BNQ_Ty0W.js → card-WLrmR7W6.js} +1 -1
- package/dist/storybook/assets/{card.stories-163_Jh8D.js → card.stories-DQNDv34o.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-CxCWrjf7.js → casing-loads.stories-D2n6yGkb.js} +1 -1
- package/dist/storybook/assets/cell.stories-D8Hi1-cW.js +1 -0
- package/dist/storybook/assets/{cell.stories-DVXralAI.js → cell.stories-krClSC58.js} +1 -1
- package/dist/storybook/assets/{check-box-BrYAm1gp.js → check-box--YUuQA9P.js} +1 -1
- package/dist/storybook/assets/check-box.stories-BJI_Ra--.js +1 -0
- package/dist/storybook/assets/{check-box.stories-hN_JaUBB.js → check-box.stories-D74c3Akh.js} +1 -1
- package/dist/storybook/assets/{check-box.test-case.stories-UoUkXfQ5.js → check-box.test-case.stories-BKBF_BX6.js} +1 -1
- package/dist/storybook/assets/{chunk-HA7DTUK3-D8QnUgcG.js → chunk-HA7DTUK3-Raoqpbvt.js} +1 -1
- package/dist/storybook/assets/client-CdAX5swh.js +1 -0
- package/dist/storybook/assets/{color-CuvQy1_s.js → color-c3A6zcnY.js} +1 -1
- package/dist/storybook/assets/column.stories-88DJqdEb.js +1 -0
- package/dist/storybook/assets/{column.stories-07ukXOnl.js → column.stories-B2iCf1oq.js} +1 -1
- package/dist/storybook/assets/{components-D22_Y--P.js → components-I7ZzC7pj.js} +1 -1
- package/dist/storybook/assets/{components-CXJQI0dy.js → components-hQQePxwc.js} +1 -1
- package/dist/storybook/assets/{data-import-export.stories-DnRO83xv.js → data-import-export.stories-CIZLvg4D.js} +4 -4
- package/dist/storybook/assets/{date-input.stories-DnF34iNJ.js → date-input.stories-BTDWCJeJ.js} +1 -1
- package/dist/storybook/assets/date-input.stories-BcbGtR2-.js +1 -0
- package/dist/storybook/assets/{dates-DGEdy1Iu.js → dates-CFjcRHXO.js} +1 -1
- package/dist/storybook/assets/{datetime.stories-ZsjGT_Ba.js → datetime.stories-DD0ccy0-.js} +1 -1
- package/dist/storybook/assets/{datetime.stories-Byw9Ly3Y.js → datetime.stories-DnNtHJjs.js} +1 -1
- package/dist/storybook/assets/{diff-viewer.stories-CtJPHKI9.js → diff-viewer.stories-X9oC-Oks.js} +1 -1
- package/dist/storybook/assets/{dist-DhxQWz_J.js → dist-QKqugWZ1.js} +1 -1
- package/dist/storybook/assets/{divider-BPAxNR_g.js → divider-B4em5zcI.js} +1 -1
- package/dist/storybook/assets/{divider.stories-Bg6ucFIb.js → divider.stories-BK7-ZNI9.js} +1 -1
- package/dist/storybook/assets/{drawer-BNaPmfVS.js → drawer-DwnwAjKu.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-D3rlc0B_.js → drawer.stories-JYUXlvNF.js} +1 -1
- package/dist/storybook/assets/{drawer.test-case.stories-BnL35nnk.js → drawer.test-case.stories-Bki6RY0m.js} +1 -1
- package/dist/storybook/assets/{emotion-is-prop-valid.esm-BTIsZlY_.js → emotion-is-prop-valid.esm-BUoVdhe_.js} +1 -1
- package/dist/storybook/assets/{empty-D8GvG9W1.js → empty-AFmslMHq.js} +1 -1
- package/dist/storybook/assets/{empty.stories-Cg8BM5j7.js → empty.stories-CUtAMhAD.js} +1 -1
- package/dist/storybook/assets/{esm-L3AFfpT1.js → esm-Cd-AO6qk.js} +1 -1
- package/dist/storybook/assets/{fast-deep-equal-BQOhduti.js → fast-deep-equal-DA2RLqM2.js} +1 -1
- package/dist/storybook/assets/{field-jj7svWmp.js → field-CMcGBkdh.js} +1 -1
- package/dist/storybook/assets/{field.stories-CscEOSF7.js → field.stories-1stOxabi.js} +1 -1
- package/dist/storybook/assets/field.stories-uUND_mpv.js +1 -0
- package/dist/storybook/assets/{file-button.stories-7tfp4knW.js → file-button.stories-B4Gql_bD.js} +1 -1
- package/dist/storybook/assets/{file-input-qOSwxw4H.js → file-input-COas7Hi6.js} +1 -1
- package/dist/storybook/assets/file-input.stories-BOVJ3DmM.js +1 -0
- package/dist/storybook/assets/{file-input.stories-BFQYuUt9.js → file-input.stories-BWbYblYx.js} +1 -1
- package/dist/storybook/assets/{flex-BX_Kuh88.js → flex-D7WQTo6g.js} +1 -1
- package/dist/storybook/assets/flex.stories-D6jauiOe.js +1 -0
- package/dist/storybook/assets/{flex.stories-CtOrEbia.js → flex.stories-D9-ounPI.js} +1 -1
- package/dist/storybook/assets/footer.stories-Cmvu9IzH.js +3 -0
- package/dist/storybook/assets/{form-row-mrg4_CM6.js → form-row-BvszlQL1.js} +1 -1
- package/dist/storybook/assets/{form.stories-CGRd_h9l.js → form.stories-BOnXDCQp.js} +1 -1
- package/dist/storybook/assets/form.stories-DzytY2o2.js +1 -0
- package/dist/storybook/assets/{formation.stories-BGZztmZW.js → formation.stories-_ceE98-7.js} +1 -1
- package/dist/storybook/assets/{grid-tfYbM62b.js → grid-BFBK01ob.js} +1 -1
- package/dist/storybook/assets/grid.stories-CFP01cxB.js +1 -0
- package/dist/storybook/assets/{grid.stories-D0UOs3BA.js → grid.stories-DbHzSPWt.js} +1 -1
- package/dist/storybook/assets/{heading-B4XmPyQx.js → heading-DC2eTr4r.js} +1 -1
- package/dist/storybook/assets/{heading.stories-CaMQ2ywV.js → heading.stories-Bju_DTHl.js} +1 -1
- package/dist/storybook/assets/{help-icon-7rahs3sO.js → help-icon-DzkFHroz.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-B-dMxxVe.js → help-icon.stories-cxUKs3lA.js} +1 -1
- package/dist/storybook/assets/{icon.stories-D3GOzxVG.js → icon.stories-D6tjLPpV.js} +1 -1
- package/dist/storybook/assets/{iframe-D4Zg62hF.js → iframe-EU22ddzP.js} +3 -3
- package/dist/storybook/assets/{initialize-context-B9jrQ6AF.js → initialize-context-DFfe1jE3.js} +1 -1
- package/dist/storybook/assets/{input-BQQrNKmr.js → input-BdYHHPue.js} +1 -1
- package/dist/storybook/assets/{input-group-VNNfEwqC.js → input-group-D24O4Bxc.js} +1 -1
- package/dist/storybook/assets/{input-group-addon-DhpBpIxI.js → input-group-addon-DZoIwpw9.js} +1 -1
- package/dist/storybook/assets/{input-group.stories-Cta4sPNf.js → input-group.stories-DZW-vCuS.js} +1 -1
- package/dist/storybook/assets/{input-validation-CxAQ39hf.js → input-validation-7uhW8FiV.js} +1 -1
- package/dist/storybook/assets/{input.stories-BcWKa2Cr.js → input.stories-BOGHYktw.js} +1 -1
- package/dist/storybook/assets/input.stories-DrdUyzE1.js +1 -0
- package/dist/storybook/assets/{inputs-C70G499e.js → inputs-fAQnBxvD.js} +1 -1
- package/dist/storybook/assets/{label-CT4MqTF7.js → label-BkXPoL3G.js} +1 -1
- package/dist/storybook/assets/{label.stories-BqJhMJc5.js → label.stories-B2YvjXB4.js} +1 -1
- package/dist/storybook/assets/{layout-forms-CoG6W9RH.js → layout-forms-CjQbNopc.js} +1 -1
- package/dist/storybook/assets/{layout-general-B16VrftS.js → layout-general-fq4B5Zut.js} +1 -1
- package/dist/storybook/assets/{lib-BOe7MuKK.js → lib-XOSeRsDk.js} +1 -1
- package/dist/storybook/assets/{list-vHinx-zI.js → list-Zyul4Mlh.js} +1 -1
- package/dist/storybook/assets/{list.stories-BPv37d5w.js → list.stories-CSdiq9gU.js} +1 -1
- package/dist/storybook/assets/{list.stories-data-Bqe7gOfa.js → list.stories-data-Cx_fKS4q.js} +1 -1
- package/dist/storybook/assets/{loader-BghLkIpx.js → loader-DIB8hTmj.js} +1 -1
- package/dist/storybook/assets/{loader.stories-COvsf0Ta.js → loader.stories-Dc88ogP9.js} +1 -1
- package/dist/storybook/assets/{lodash-DCsx9Ntr.js → lodash-CiSVjb27.js} +1 -1
- package/dist/storybook/assets/{menu.stories-DvLzmKlP.js → menu.stories-RIy8mFoz.js} +1 -1
- package/dist/storybook/assets/{menu.stories-data-BYyBO-PM.js → menu.stories-data-CBZr1Taj.js} +1 -1
- package/dist/storybook/assets/{menu.test-case.stories-DtIecsat.js → menu.test-case.stories-Bfs_CAnP.js} +1 -1
- package/dist/storybook/assets/{message.stories-DEKDDAU3.js → message.stories-BhqqzEWy.js} +1 -1
- package/dist/storybook/assets/{meta-content-DItgLKPe.js → meta-content-DejAmkIh.js} +1 -1
- package/dist/storybook/assets/{modal-Cq527L7E.js → modal-W5JR3-fd.js} +1 -1
- package/dist/storybook/assets/{modal.stories-LXok3kLl.js → modal.stories-DiMKniQu.js} +1 -1
- package/dist/storybook/assets/{modal.test-case.stories-BbjTMhbe.js → modal.test-case.stories-nqS1gANF.js} +1 -1
- package/dist/storybook/assets/{number-input-CYtGXTJS.js → number-input-CO11SW2l.js} +1 -1
- package/dist/storybook/assets/number-input.stories-BbUt2m34.js +1 -0
- package/dist/storybook/assets/{number-input.stories-BGjpbuGx.js → number-input.stories-Re1KujgJ.js} +1 -1
- package/dist/storybook/assets/{number-input.test-case.stories-DGrN8gGX.js → number-input.test-case.stories-Iqn-282h.js} +1 -1
- package/dist/storybook/assets/option-dropdown.stories-CRCHjTo8.js +1 -0
- package/dist/storybook/assets/{option-dropdown.stories-Vl5HS9hq.js → option-dropdown.stories-vKETLQUY.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-BZ4ZiTSH.js → padding-and-spacing-mKqkaVZM.js} +1 -1
- package/dist/storybook/assets/{page-g05z4ELc.js → page-DUJsIRkI.js} +1 -1
- package/dist/storybook/assets/{page.stories-Bs5iRsJd.js → page.stories-BgvLtK3e.js} +1 -1
- package/dist/storybook/assets/{pagination-Bz_ydB2y.js → pagination-_RRF0iW0.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-uS_7UoYp.js → pagination.stories-DHwcIyb9.js} +1 -1
- package/dist/storybook/assets/{pop-confirm.stories-BnuzhK-p.js → pop-confirm.stories-DG8BPBmI.js} +1 -1
- package/dist/storybook/assets/{popover-CyuIVmBY.js → popover-DPG74BOL.js} +1 -1
- package/dist/storybook/assets/{popover.stories-jwK98mVS.js → popover.stories-Y4STcRfO.js} +1 -1
- package/dist/storybook/assets/portal-DOH-1YPk.js +1 -0
- package/dist/storybook/assets/{portal.stories-9aIYnykm.js → portal.stories-DAtgj2uT.js} +1 -1
- package/dist/storybook/assets/{progress-bar-DMVGz10l.js → progress-bar-Bx3_0EWF.js} +1 -1
- package/dist/storybook/assets/{progress-bar.stories-Ci3ZFHEz.js → progress-bar.stories-CyN7y1Y-.js} +1 -1
- package/dist/storybook/assets/{projects.stories-CF77nVZT.js → projects.stories-CE20zs8O.js} +1 -1
- package/dist/storybook/assets/{radio-button-C7AH6epP.js → radio-button-D0fuZMak.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-am7W_JWQ.js → radio-button.stories-DHE16T1a.js} +1 -1
- package/dist/storybook/assets/radio-button.stories-DbFVHhwO.js +1 -0
- package/dist/storybook/assets/{radio-button.test-case.stories-Dn-20nRc.js → radio-button.test-case.stories-Ds0nZGCE.js} +1 -1
- package/dist/storybook/assets/{react-18-DVHmheBO.js → react-18-CK9Naa2M.js} +1 -1
- package/dist/storybook/assets/react-Dh4BE5Co.js +1 -0
- package/dist/storybook/assets/{react-dom-DrHyh6_j.js → react-dom-rzgPE705.js} +1 -1
- package/dist/storybook/assets/{react-fast-compare-50RPpPoD.js → react-fast-compare-DmR1Q96O.js} +1 -1
- package/dist/storybook/assets/{remirror-core-helpers-BLaIuZF5.js → remirror-core-helpers-BxdBMqPL.js} +2 -2
- package/dist/storybook/assets/{reservoirs.stories-DTSghh4m.js → reservoirs.stories-BLoj9OLz.js} +1 -1
- package/dist/storybook/assets/{rich-text-input.stories-ZaFfTUD4.js → rich-text-input.stories-C-6lWEu1.js} +3 -3
- package/dist/storybook/assets/{row-CBGyVSEs.js → row-ccWcLrf1.js} +1 -1
- package/dist/storybook/assets/{row.stories-Bli-TfEf.js → row.stories-CKMQWhy5.js} +1 -1
- package/dist/storybook/assets/{select-dDHTUZaq.js → select-C3UalMKs.js} +1 -1
- package/dist/storybook/assets/{select.stories-BnA8X0fz.js → select.stories-B-P8LmMf.js} +1 -1
- package/dist/storybook/assets/{select.stories-CKKEMw_0.js → select.stories-DtjQjgVV.js} +1 -1
- package/dist/storybook/assets/{select.stories-data-C_eXQEl2.js → select.stories-data-CT2OcjDR.js} +1 -1
- package/dist/storybook/assets/{select.test-case.stories-CbBpz7I2.js → select.test-case.stories-DqKVyEU4.js} +1 -1
- package/dist/storybook/assets/{setting-field.stories-BTgQt5yY.js → setting-field.stories-CYyr31Eg.js} +1 -1
- package/dist/storybook/assets/{side-bar-B14uvrxk.js → side-bar-9Bbmkf0C.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-BWw1HKJx.js → side-bar.stories-Cia7tzIc.js} +1 -1
- package/dist/storybook/assets/{site.stories-COhD59HV.js → site.stories-B_1ikMCB.js} +1 -1
- package/dist/storybook/assets/{slider-rFDKD7LU.js → slider-MhFdkngd.js} +1 -1
- package/dist/storybook/assets/{slider.stories-Cjn0-WIc.js → slider.stories-CckNlLkd.js} +1 -1
- package/dist/storybook/assets/{slider.stories-Bm-9rKCm.js → slider.stories-D0pLwM5a.js} +1 -1
- package/dist/storybook/assets/{smart-upload-modal-BoOADECF.js → smart-upload-modal-zQZpAVQt.js} +1 -1
- package/dist/storybook/assets/{smart-upload-modal.stories-BaQkh068.js → smart-upload-modal.stories-BToPeW5h.js} +1 -1
- package/dist/storybook/assets/{spacer-CXxVsxF9.js → spacer-vcWIopH5.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-CDSmJl2X.js → spacer.stories-DPSi11Bp.js} +1 -1
- package/dist/storybook/assets/{spinner-FbE2mbiy.js → spinner-gc9uGw0J.js} +1 -1
- package/dist/storybook/assets/{spinner.stories-DpQopigF.js → spinner.stories-CK0O8hEf.js} +1 -1
- package/dist/storybook/assets/{styled-components.browser.esm-DG0FhB-e.js → styled-components.browser.esm-DWmnuEYo.js} +1 -1
- package/dist/storybook/assets/{table-3zH873Md.js → table-B6Rh_KBA.js} +1 -1
- package/dist/storybook/assets/{table.stories-DNlQuLIO.js → table.stories-C8hHPkmK.js} +1 -1
- package/dist/storybook/assets/{table.stories-data-BdLpIlj_.js → table.stories-data-hBHpYw6Z.js} +1 -1
- package/dist/storybook/assets/{table.test-case.stories-DS9rit7R.js → table.test-case.stories-QOzGQnXy.js} +1 -1
- package/dist/storybook/assets/{tabs-C5z5XNIW.js → tabs-C5ycdABr.js} +1 -1
- package/dist/storybook/assets/{tabs.stories-Dmoe01JY.js → tabs.stories-D-MyZQNY.js} +1 -1
- package/dist/storybook/assets/{text-DVka0T2p.js → text-CkkjKEEc.js} +1 -1
- package/dist/storybook/assets/text-link.stories-7gBWHaHv.js +1 -0
- package/dist/storybook/assets/{text-link.stories-D2THsIkU.js → text-link.stories-C3RkXLt5.js} +1 -1
- package/dist/storybook/assets/{text.stories-BMTTyNKf.js → text.stories-DsybubcI.js} +1 -1
- package/dist/storybook/assets/{textarea-DfCgNX0N.js → textarea-D8zMidSh.js} +1 -1
- package/dist/storybook/assets/textarea.stories-BgTCHUTZ.js +1 -0
- package/dist/storybook/assets/{textarea.stories-Dht4nNH6.js → textarea.stories-EisiK949.js} +1 -1
- package/dist/storybook/assets/{title.stories-BMHBmrwL.js → title.stories-RgotXQt8.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-gpBKa_lY.js → toaster.stories-DVXlLZO3.js} +1 -1
- package/dist/storybook/assets/{toaster.test-case.stories-D3AOmsLX.js → toaster.test-case.stories-CMsBLl5F.js} +1 -1
- package/dist/storybook/assets/{toggle-C_si2Zbr.js → toggle-BAmO7wKa.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-Dig8_WhE.js → toggle.stories-CkXmUHKb.js} +1 -1
- package/dist/storybook/assets/toggle.stories-FV7V8hG-.js +1 -0
- package/dist/storybook/assets/{toggle.test-case.stories-UjPM421h.js → toggle.test-case.stories-SUkQcTKA.js} +1 -1
- package/dist/storybook/assets/{tooltip-BDJkAs31.js → tooltip-N1V1x_Kn.js} +1 -1
- package/dist/storybook/assets/{tooltip.stories-6XnQWcyy.js → tooltip.stories-DsInBp-i.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-Co1Lt0GK.js → tooltip.test-case.stories-BfxEEiJX.js} +1 -1
- package/dist/storybook/assets/{top-bar-Xyvy9J2W.js → top-bar-DCQ-Vcgr.js} +1 -1
- package/dist/storybook/assets/{top-bar.stories-BsQwRLt0.js → top-bar.stories-Cr1GNVIf.js} +1 -1
- package/dist/storybook/assets/{top-bar.testcase.stories-CsZMicVc.js → top-bar.testcase.stories-DLaCduEo.js} +1 -1
- package/dist/storybook/assets/{tree.stories-DfinTPtQ.js → tree.stories-BDH2ZKAF.js} +1 -1
- package/dist/storybook/assets/types-BjAzD82u.js +1 -0
- package/dist/storybook/assets/{unit-input-D3ug0XIr.js → unit-input-C-88gl7h.js} +1 -1
- package/dist/storybook/assets/{unit-input.stories-Cw3IxHlW.js → unit-input.stories-JosB76bO.js} +24 -8
- package/dist/storybook/assets/{unit-input.test-case.stories-B1Fm7RYH.js → unit-input.test-case.stories-pQmvLvTu.js} +1 -1
- package/dist/storybook/assets/unit-table.stories-M2tcFYq6.js +1 -0
- package/dist/storybook/assets/{unit-table.stories-DRfidPr_.js → unit-table.stories-kjnrEnHm.js} +1 -1
- package/dist/storybook/assets/{unit-table.test-case.stories-4m2yh8rO.js → unit-table.test-case.stories-CYjQekHK.js} +1 -1
- package/dist/storybook/assets/{use-keyboard-event-CPHW-LTR.js → use-keyboard-event-DJxq2Iwi.js} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/{index-B1D5hqWS.js → index-CMB0aE4o.js} +1 -1
- package/dist/storybook/index.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/button.stories-BRTM9RNN.js +0 -1
- package/dist/storybook/assets/cell.stories-C17vOhuH.js +0 -1
- package/dist/storybook/assets/check-box.stories-BrKolC-R.js +0 -1
- package/dist/storybook/assets/client-Brc_VZqR.js +0 -1
- package/dist/storybook/assets/column.stories-DTTMe-SC.js +0 -1
- package/dist/storybook/assets/date-input.stories-BhznaFeN.js +0 -1
- package/dist/storybook/assets/field.stories-DVAUG5cS.js +0 -1
- package/dist/storybook/assets/file-input.stories-yfrmCD6p.js +0 -1
- package/dist/storybook/assets/flex.stories-efwSspGB.js +0 -1
- package/dist/storybook/assets/footer.stories-CMxnQA07.js +0 -3
- package/dist/storybook/assets/form.stories-BEQSYOYi.js +0 -1
- package/dist/storybook/assets/grid.stories-Bx0R3C-c.js +0 -1
- package/dist/storybook/assets/input.stories-BjLz5uNQ.js +0 -1
- package/dist/storybook/assets/number-input.stories-D-Lv00Zw.js +0 -1
- package/dist/storybook/assets/option-dropdown.stories-BCRdCUmi.js +0 -1
- package/dist/storybook/assets/portal-pXFQWKb2.js +0 -1
- package/dist/storybook/assets/radio-button.stories-BlvB1C5u.js +0 -1
- package/dist/storybook/assets/react-B6lwR1uU.js +0 -1
- package/dist/storybook/assets/text-link.stories-DLTUbZkl.js +0 -1
- package/dist/storybook/assets/textarea.stories-Dp6QjyZK.js +0 -1
- package/dist/storybook/assets/toggle.stories-DQ4MZUIi.js +0 -1
- package/dist/storybook/assets/types-Q8bq0gPd.js +0 -1
- package/dist/storybook/assets/unit-table.stories-z70YLi9Y.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{E as e,M as t,h as n}from"./iframe-
|
|
1
|
+
import{E as e,M as t,h as n}from"./iframe-EU22ddzP.js";import"./react-dom-rzgPE705.js";import{b as r}from"./tooltip-N1V1x_Kn.js";import"./lodash-CiSVjb27.js";import{b as i}from"./button-DXVRmU6A.js";import"./spinner-gc9uGw0J.js";import{c as a}from"./actions-Ct9IeQri.js";import"./types-D9-IVcXX.js";import"./types-BjAzD82u.js";import"./badge-CSqHSgHc.js";import"./flex-D7WQTo6g.js";import{b as o}from"./menu.stories-data-CBZr1Taj.js";var s=t(e()),c=t(n()),l={title:`Basic/Tooltip/Test Cases`,component:r,args:{text:`Tooltip text`},tags:[`!autodocs`]};const u=e=>(0,c.jsx)(r,{...e}),d=u.bind({});d.args={children:(0,c.jsx)(a,{menu:o}),placement:`bottom-end`,display:`inline-block`};const f=u.bind({});f.args={children:(0,c.jsx)(`span`,{children:`Hover over me`}),text:`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean pharetra tellus eu cursus suscipit. Maecenas leo sapien, convallis ac urna ullamcorper, tempus porttitor eros. Suspendisse pellentesque odio ac metus semper, nec sagittis nisi cursus. Aenean felis libero, bibendum id accumsan id, commodo suscipit ex. Pellentesque gravida rhoncus neque, ac tincidunt libero maximus vel. In lacus nisi, malesuada vitae velit vel, laoreet porta nisl.`};const p=()=>{let[e,t]=(0,s.useState)(!0);return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(r,{text:`This tooltip should disappear when the trigger is removed`,placement:`top-center`,children:e&&(0,c.jsx)(i,{onClick:()=>t(!1),label:`Click to remove`})})})},m=()=>{let[e,t]=(0,s.useState)(0);return(0,c.jsx)(`div`,{style:{position:`relative`,display:`inline-block`,left:e},children:(0,c.jsx)(r,{text:`Tooltip text`,children:(0,c.jsx)(i,{onClick:()=>t(e+100),label:`Click to make me move`})})})};p.__docgenInfo={description:``,methods:[],displayName:`TestTriggerDisappears`},m.__docgenInfo={description:``,methods:[],displayName:`TestTriggerMoves`},d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`args => <Tooltip
|
|
2
2
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
3
3
|
{...args} />`,...d.parameters?.docs?.source}}},f.parameters={...f.parameters,docs:{...f.parameters?.docs,source:{originalSource:`args => <Tooltip
|
|
4
4
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,E as t,M as n,f as r,h as i,l as a,z as o}from"./iframe-
|
|
1
|
+
import{A as e,E as t,M as n,f as r,h as i,l as a,z as o}from"./iframe-EU22ddzP.js";import{b as s}from"./button-DXVRmU6A.js";import{c}from"./actions-Ct9IeQri.js";var l={topbar:`_topbar_oyr59_11`,fixed:`_fixed_oyr59_21`,appSwitcher:`_appSwitcher_oyr59_29`,title:`_title_oyr59_75`,logo:`_logo_oyr59_91`,label:`_label_oyr59_94`,brand:`_brand_oyr59_99`,version:`_version_oyr59_104`,left:`_left_oyr59_111`,right:`_right_oyr59_112`,item:`_item_oyr59_126`,link:`_link_oyr59_127`,button:`_button_oyr59_138`,menu:`_menu_oyr59_139`,active:`_active_oyr59_168`,alert:`_alert_oyr59_193`},u=n(t()),d=n(i());const f=({warning:e})=>(0,d.jsx)(`div`,{className:l.alert,children:e});f.__docgenInfo={description:``,methods:[],displayName:`Warning`,props:{warning:{required:!0,tsType:{name:`ReactNode`},description:``}}};const p=({icon:e,url:t,onClick:n})=>{let i=(0,d.jsx)(r,{icon:e});return t?(0,d.jsx)(`a`,{href:t,onClick:n,className:l.appSwitcher,children:i}):(0,d.jsx)(`div`,{onClick:n,className:l.appSwitcher,children:i})};p.__docgenInfo={description:``,methods:[],displayName:`AppSwitcher`,props:{icon:{required:!1,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},url:{required:!1,tsType:{name:`string`},description:``},onClick:{required:!1,tsType:{name:`MouseEventHandler`,elements:[{name:`union`,raw:`HTMLDivElement | HTMLAnchorElement`,elements:[{name:`HTMLDivElement`},{name:`HTMLAnchorElement`}]}],raw:`MouseEventHandler<HTMLDivElement | HTMLAnchorElement>`},description:``}}};var m=n(e());const h=({label:e,logo:t,url:n,version:r,onClick:i})=>{let a=(0,d.jsxs)(`div`,{className:l.title,children:[t&&(0,d.jsx)(`div`,{className:l.logo,children:t}),e&&(0,d.jsx)(`span`,{className:l.label,children:e}),r&&(0,d.jsx)(`div`,{className:l.version,children:r})]});return(0,d.jsx)(`div`,{className:(0,m.default)(l.item,l.brand),children:n?(0,d.jsx)(`a`,{href:n,onClick:i,children:a}):(0,d.jsx)(`div`,{onClick:i,children:a})})};h.__docgenInfo={description:``,methods:[],displayName:`Title`,props:{label:{required:!1,tsType:{name:`union`,raw:`string | null`,elements:[{name:`string`},{name:`null`}]},description:``},logo:{required:!1,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},url:{required:!1,tsType:{name:`string`},description:``},version:{required:!1,tsType:{name:`union`,raw:`string | number`,elements:[{name:`string`},{name:`number`}]},description:``},onClick:{required:!1,tsType:{name:`MouseEventHandler`,elements:[{name:`union`,raw:`HTMLDivElement | HTMLAnchorElement`,elements:[{name:`HTMLDivElement`},{name:`HTMLAnchorElement`}]}],raw:`MouseEventHandler<HTMLDivElement | HTMLAnchorElement>`},description:``}}};let g=function(e){return e.LINK=`Link`,e.BUTTON=`Button`,e.MENU=`Menu`,e.COMPONENT=`Component`,e}({});var _=n(e());const v=({label:e,url:t,icon:n,onClick:r,active:i,disabled:o,testId:s,component:c=`a`})=>{let f=(0,u.useContext)(a),p=e=>{(o||f)&&e.preventDefault(),r?.(e)};return(0,d.jsxs)(c,{className:(0,_.default)(l.link,i?l.active:``),href:t||`#`,to:t,onClick:p,"aria-disabled":o||f,"data-testid":s,role:r&&!t?`button`:void 0,children:[n,(0,d.jsx)(`span`,{className:l.label,children:e})]})};v.__docgenInfo={description:``,methods:[],displayName:`Link`,props:{label:{required:!1,tsType:{name:`union`,raw:`string | null`,elements:[{name:`string`},{name:`null`}]},description:``},url:{required:!1,tsType:{name:`string`},description:``},icon:{required:!1,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},onClick:{required:!1,tsType:{name:`MouseEventHandler`,elements:[{name:`HTMLAnchorElement`}],raw:`MouseEventHandler<HTMLAnchorElement>`},description:``},active:{required:!1,tsType:{name:`boolean`},description:``},disabled:{required:!1,tsType:{name:`boolean`},description:``},testId:{required:!1,tsType:{name:`string`},description:``},component:{required:!1,tsType:{name:`ReactElementType`,raw:`React.ElementType`},description:``,defaultValue:{value:`'a'`,computed:!1}}}};var y=n(e());const b=({element:e})=>{switch(e.type){case g.LINK:return(0,d.jsx)(`div`,{className:l.item,children:(0,d.jsx)(v,{label:e.label,url:e.url,icon:e.icon,onClick:e.onClick,active:e.active,disabled:e.disabled,testId:e.testId,component:e.component})});case g.BUTTON:return(0,d.jsx)(`div`,{className:(0,y.default)(l.item,l.button),children:(0,d.jsx)(s,{label:e.label,colored:e.colored,pill:!0,disabled:e.disabled,onClick:e.onClick,icon:e.icon,testId:e.testId})});case g.MENU:return(0,d.jsx)(`div`,{className:(0,y.default)(l.item,l.menu),children:(0,d.jsx)(c,{maxHeight:`100%`,menu:{trigger:o.COMPONENT,fullHeightTrigger:!0,placement:`bottom-start`,component:(0,d.jsx)(v,{label:e.label,icon:e.icon,onClick:e.onClick}),sections:e.sections}})});case g.COMPONENT:return(0,d.jsx)(`div`,{className:l.item,children:e.component});default:return null}};b.__docgenInfo={description:``,methods:[],displayName:`Element`,props:{element:{required:!0,tsType:{name:`union`,raw:`TLinkElement | TButtonElement | TMenuElement | TComponentElement`,elements:[{name:`intersection`,raw:`TBaseElementProps & {
|
|
2
2
|
type: 'Link';
|
|
3
3
|
url?: string;
|
|
4
4
|
active?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./preload-helper-D5u4KL1i.js";import{E as e,M as t,h as n,w as r,z as i}from"./iframe-
|
|
1
|
+
import"./preload-helper-D5u4KL1i.js";import{E as e,M as t,h as n,w as r,z as i}from"./iframe-EU22ddzP.js";import"./react-dom-rzgPE705.js";import"./tooltip-N1V1x_Kn.js";import"./lodash-CiSVjb27.js";import{b as a}from"./button-DXVRmU6A.js";import"./spinner-gc9uGw0J.js";import{c as o}from"./actions-Ct9IeQri.js";import{c as s}from"./types-D9-IVcXX.js";import"./types-BjAzD82u.js";import{b as c}from"./badge-CSqHSgHc.js";import{b as l,c as u,d,e as f}from"./chunk-HA7DTUK3-Raoqpbvt.js";import{b as p}from"./icon-custom-csoMOpVQ.js";import{b as m}from"./top-bar-DCQ-Vcgr.js";import{b as h}from"./page-DUJsIRkI.js";import{b as g}from"./logo-BgJ-mmNg.js";e();var _=t(n());const v=[{type:`Link`,label:`Link`,onClick:()=>{}},{type:`Link`,label:`Active`,active:!0,onClick:()=>{}},{type:`Link`,label:`Disabled`,disabled:!0,onClick:()=>{}},{type:`Menu`,label:`Dropdown`,onClick:()=>{},sections:[{type:`Option`,label:`Alpacas`,onClick:()=>{}},{type:`Option`,label:`Llamas`,onClick:()=>{}}]},{type:`Button`,label:`Save`,colored:!0,onClick:()=>{},testId:`top-bar-button-save`}],y=[{type:`Component`,component:(0,_.jsx)(c,{title:`3`,small:!0,margin:`5px`,children:(0,_.jsx)(a,{icon:r.NOTIFICATION,round:!0,onClick:()=>{}})})},{type:`Component`,component:(0,_.jsx)(o,{menu:{trigger:i.COMPONENT,fullHeightTrigger:!0,placement:`bottom-end`,component:(0,_.jsx)(a,{label:`TU`,round:!0,onClick:()=>{}}),sections:[{type:s.HEADING,label:`Test User`},{type:s.OPTION,label:`Profile`,icon:`user`,onClick:()=>{}},{type:s.DIVIDER},{type:s.OPTION,label:`Sign out`,icon:`lock`,onClick:()=>{}}]}})}];var b={title:`Navigation/TopBar`,component:m,parameters:{layout:`fullscreen`,docs:{story:{inline:!1,iframeHeight:400}}},argTypes:{height:{control:`text`}},args:{title:{logo:(0,_.jsx)(`img`,{src:g,alt:`logo`}),onClick:()=>{}},content:v,contentRight:y}};const x=e=>(0,_.jsx)(m,{...e}),S=x.bind({}),C=x.bind({});C.args={warning:`Application update available. Please refresh your browser.`};const w=x.bind({});w.args={title:{label:`Text Branding`,onClick:()=>{}}};const T=x.bind({});T.args={appSwitcher:{icon:p,onClick:()=>{}}};const E=()=>(0,_.jsx)(u,{children:(0,_.jsxs)(h,{left:0,children:[(0,_.jsx)(m,{content:[{type:`Link`,label:`Dashboard`,component:l,url:`/dashboard`},{type:`Link`,label:`Settings`,component:l,url:`/settings`}]}),(0,_.jsxs)(f,{children:[(0,_.jsx)(d,{path:`/dashboard`,element:(0,_.jsx)(`div`,{children:`Dashboard`})}),(0,_.jsx)(d,{path:`/settings`,element:(0,_.jsx)(`div`,{children:`Settings`})})]})]})});E.__docgenInfo={description:``,methods:[],displayName:`AsRouterLink`},S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`args => <TopBar {...args} />`,...S.parameters?.docs?.source}}},C.parameters={...C.parameters,docs:{...C.parameters?.docs,source:{originalSource:`args => <TopBar {...args} />`,...C.parameters?.docs?.source}}},w.parameters={...w.parameters,docs:{...w.parameters?.docs,source:{originalSource:`args => <TopBar {...args} />`,...w.parameters?.docs?.source}}},T.parameters={...T.parameters,docs:{...T.parameters?.docs,source:{originalSource:`args => <TopBar {...args} />`,...T.parameters?.docs?.source}}},E.parameters={...E.parameters,docs:{...E.parameters?.docs,source:{originalSource:`() => {
|
|
2
2
|
return <MemoryRouter>
|
|
3
3
|
<Page left={0}>
|
|
4
4
|
<TopBar content={[{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{E as e,M as t,h as n,w as r}from"./iframe-
|
|
1
|
+
import{E as e,M as t,h as n,w as r}from"./iframe-EU22ddzP.js";import"./react-dom-rzgPE705.js";import"./tooltip-N1V1x_Kn.js";import"./lodash-CiSVjb27.js";import{b as i}from"./button-DXVRmU6A.js";import"./spinner-gc9uGw0J.js";import"./actions-Ct9IeQri.js";import"./types-D9-IVcXX.js";import"./types-BjAzD82u.js";import{b as a}from"./badge-CSqHSgHc.js";import{b as o}from"./top-bar-DCQ-Vcgr.js";import{b as s}from"./logo-BgJ-mmNg.js";e();var c=t(n()),l={title:`Navigation/TopBar/Test Cases`,parameters:{layout:`fullscreen`,docs:{story:{inline:!1,iframeHeight:400}}}};const u=()=>(0,c.jsx)(o,{title:{logo:(0,c.jsx)(`img`,{src:s,alt:`logo`}),version:`V1.2.3`,onClick:()=>{}},content:[{type:`Link`,label:`Link`,onClick:()=>{}},{type:`Link`,label:`Lorem ipsum dolor est compendum lorem ipsum dolor est compendum lorem ipsum dolor est (cloned 2022-06-17 01:33:42)`,active:!0,onClick:()=>{}},{type:`Link`,label:`Disabled`,disabled:!0,onClick:()=>{}},{type:`Button`,label:`Save`,colored:!0,onClick:()=>{},testId:`top-bar-button-save`}],contentRight:[{type:`Component`,component:(0,c.jsx)(a,{title:`3`,small:!0,margin:`5px`,children:(0,c.jsx)(i,{icon:r.NOTIFICATION,round:!0,onClick:()=>{}})})}]});u.__docgenInfo={description:``,methods:[],displayName:`OverflowingLinks`},u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`() => <TopBar title={{
|
|
2
2
|
logo: <img src={LogoSVG} alt="logo" />,
|
|
3
3
|
version: 'V1.2.3',
|
|
4
4
|
onClick: () => {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,E as t,J as n,L as r,M as i,f as a,h as o,i as s,j as c,u as l,w as u}from"./iframe-D4Zg62hF.js";import"./react-dom-DrHyh6_j.js";import"./tooltip-BDJkAs31.js";import"./help-icon-7rahs3sO.js";import"./heading-B4XmPyQx.js";import{b as d}from"./text-DVka0T2p.js";import"./lodash-DCsx9Ntr.js";import{b as f}from"./button-COZYpTMg.js";import"./spinner-FbE2mbiy.js";import{b as p}from"./actions-C75Yhysc.js";import"./types-D9-IVcXX.js";import"./types-Q8bq0gPd.js";import"./badge-DoQogrt7.js";import"./objectSpread2-DjvBifS4.js";import{b as m}from"./fast-deep-equal-BQOhduti.js";import{b as h,d as g,e as _}from"./meta-content-DItgLKPe.js";import{b as v,c as y}from"./emotion-is-prop-valid.esm-BTIsZlY_.js";var b=i(t());const x=(0,b.createContext)({dragDropManager:void 0});function S(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var C=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),w=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},T={INIT:`@@redux/INIT`+w(),REPLACE:`@@redux/REPLACE`+w(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+w()}};function ee(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function te(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(S(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(S(1));return n(te)(e,t)}if(typeof e!=`function`)throw Error(S(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(S(3));return a}function d(e){if(typeof e!=`function`)throw Error(S(4));if(c)throw Error(S(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(S(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!ee(e))throw Error(S(7));if(e.type===void 0)throw Error(S(8));if(c)throw Error(S(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(S(10));i=e,f({type:T.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(S(11));function n(){e.next&&e.next(u())}n();var r=t(n);return{unsubscribe:r}}},e[C]=function(){return this},e}return f({type:T.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[C]=m,r}function E(e,t,...n){if(ne()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function ne(){return typeof process<`u`&&!0}function re(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function ie(e,t){return e.filter(e=>e!==t)}function ae(e){return typeof e==`object`}function oe(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function se(e,t){return e.filter(e=>t.indexOf(e)>-1)}const ce=`dnd-core/INIT_COORDS`,le=`dnd-core/BEGIN_DRAG`,ue=`dnd-core/PUBLISH_DRAG_SOURCE`,de=`dnd-core/HOVER`,fe=`dnd-core/DROP`,pe=`dnd-core/END_DRAG`;function me(e,t){return{type:ce,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const he={type:ce,payload:{clientOffset:null,sourceClientOffset:null}};function ge(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(me(i)),_e(t,o,s);let c=be(t,o);if(c==null){e.dispatch(he);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);ve(a),l=a(c)}e.dispatch(me(i,l));let u=s.getSource(c),d=u.beginDrag(o,c);if(d==null)return;ye(d),s.pinSource(c);let f=s.getSourceType(c);return{type:le,payload:{itemType:f,item:d,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}}}}function _e(e,t,n){E(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){E(n.getSource(e),`Expected sourceIds to be registered.`)})}function ve(e){E(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function ye(e){E(ae(e),`Item must be an object.`)}function be(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){xe(e,t,n[t])})}return e}function Ce(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();we(n);let i=De(n);i.forEach((i,a)=>{let o=Te(i,a,r,n),s={type:fe,payload:{dropResult:Se({},t,o)}};e.dispatch(s)})}}function we(e){E(e.isDragging(),`Cannot call drop while not dragging.`),E(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function Te(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Ee(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Ee(e){E(e===void 0||ae(e),`Drop result must either be an object or undefined.`)}function De(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Oe(e){return function(){let t=e.getMonitor(),n=e.getRegistry();ke(t);let r=t.getSourceId();if(r!=null){let e=n.getSource(r,!0);e.endDrag(t,r),n.unpinSource()}return{type:pe}}}function ke(e){E(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Ae(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function je(e){return function(t,{clientOffset:n}={}){Me(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry(),o=i.getItemType();return Pe(r,a,o),Ne(r,i,a),Fe(r,i,a),{type:de,payload:{targetIds:r,clientOffset:n||null}}}}function Me(e){E(Array.isArray(e),`Expected targetIds to be an array.`)}function Ne(e,t,n){E(t.isDragging(),`Cannot call hover while not dragging.`),E(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];E(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`);let i=n.getTarget(r);E(i,`Expected targetIds to be registered.`)}}function Pe(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r],a=t.getTargetType(i);Ae(a,n)||e.splice(r,1)}}function Fe(e,t,n){e.forEach(function(e){let r=n.getTarget(e);r.hover(t,e)})}function Ie(e){return function(){let t=e.getMonitor();if(t.isDragging())return{type:ue}}}function Le(e){return{beginDrag:ge(e),publishDragSource:Ie(e),hover:je(e),drop:Ce(e),endDrag:Oe(e)}}var Re=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=Le(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function ze(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Be(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ve(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Be(ze(t,r),n)}function He(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Be(t,n)}const Ue=[],We=[];Ue.__IS_NONE__=!0,We.__IS_ALL__=!0;function Ge(e,t){if(e===Ue)return!1;if(e===We||t===void 0)return!0;let n=se(t,e);return n.length>0}var Ke=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;E(typeof e==`function`,`listener must be a function.`),E(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId,i=()=>{let t=this.store.getState(),i=t.stateId;try{let a=i===r||i===r+1&&!Ge(t.dirtyHandlerIds,n);a||e()}finally{r=i}};return this.store.subscribe(i)}subscribeToOffsetChange(e){E(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset,n=()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return E(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);if(E(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;let n=this.registry.getTargetType(e),r=this.getItemType();return Ae(n,r)&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);if(E(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;let n=this.registry.getSourceType(e),r=this.getItemType();return n===r?t.isDragging(this,e):!1}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Ae(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Ve(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return He(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}};const qe=typeof global<`u`?global:self,Je=qe.MutationObserver||qe.WebKitMutationObserver;function Ye(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function Xe(e){let t=1,n=new Je(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const Ze=typeof Je==`function`?Xe:Ye;var Qe=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Ze(this.flush),this.requestErrorThrow=Ye(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},$e=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},et=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new $e(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}};const tt=new Qe,nt=new et(tt.registerPendingError);function rt(e){tt.enqueueTask(nt.create(e))}const it=`dnd-core/ADD_SOURCE`,at=`dnd-core/ADD_TARGET`,ot=`dnd-core/REMOVE_SOURCE`,st=`dnd-core/REMOVE_TARGET`;function ct(e){return{type:it,payload:{sourceId:e}}}function lt(e){return{type:at,payload:{targetId:e}}}function ut(e){return{type:ot,payload:{sourceId:e}}}function dt(e){return{type:st,payload:{targetId:e}}}function ft(e){E(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),E(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),E(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function pt(e){E(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),E(typeof e.hover==`function`,`Expected hover to be a function.`),E(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function mt(e,t){if(t&&Array.isArray(e)){e.forEach(e=>mt(e,!1));return}E(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var D;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(D||={});let ht=0;function gt(){return ht++}function _t(e){let t=gt().toString();switch(e){case D.SOURCE:return`S${t}`;case D.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function vt(e){switch(e[0]){case`S`:return D.SOURCE;case`T`:return D.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function yt(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var bt=class{addSource(e,t){mt(e),ft(t);let n=this.addHandler(D.SOURCE,e,t);return this.store.dispatch(ct(n)),n}addTarget(e,t){mt(e,!0),pt(t);let n=this.addHandler(D.TARGET,e,t);return this.store.dispatch(lt(n)),n}containsHandler(e){return yt(this.dragSources,e)||yt(this.dropTargets,e)}getSource(e,t=!1){E(this.isSourceId(e),`Expected a valid source ID.`);let n=t&&e===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(e);return r}getTarget(e){return E(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return E(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return E(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){let t=vt(e);return t===D.SOURCE}isTargetId(e){let t=vt(e);return t===D.TARGET}removeSource(e){E(this.getSource(e),`Expected an existing source.`),this.store.dispatch(ut(e)),rt(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){E(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(dt(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);E(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){E(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=_t(e);return this.types.set(r,t),e===D.SOURCE?this.dragSources.set(r,n):e===D.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}};const xt=(e,t)=>e===t;function St(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Ct(e,t,n=xt){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function wt(e=Ue,t){switch(t.type){case de:break;case it:case at:case st:case ot:return Ue;case le:case ue:case pe:case fe:default:return We}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=oe(n,r),a=i.length>0||!Ct(n,r);if(!a)return Ue;let o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&i.push(o),s&&i.push(s)),i}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Tt(e,t,n[t])})}return e}const Dt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ot(e=Dt,t){let{payload:n}=t;switch(t.type){case ce:case le:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case de:return St(e.clientOffset,n.clientOffset)?e:Et({},e,{clientOffset:n.clientOffset});case pe:case fe:return Dt;default:return e}}function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){kt(e,t,n[t])})}return e}const jt={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Mt(e=jt,t){let{payload:n}=t;switch(t.type){case le:return At({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case ue:return At({},e,{isSourcePublic:!0});case de:return At({},e,{targetIds:n.targetIds});case st:return e.targetIds.indexOf(n.targetId)===-1?e:At({},e,{targetIds:ie(e.targetIds,n.targetId)});case fe:return At({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case pe:return At({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Nt(e=0,t){switch(t.type){case it:case at:return e+1;case ot:case st:return e-1;default:return e}}function Pt(e=0){return e+1}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ft(e,t,n[t])})}return e}function Lt(e={},t){return{dirtyHandlerIds:wt(e.dirtyHandlerIds,{type:t.type,payload:It({},t.payload,{prevTargetIds:re(e,`dragOperation.targetIds`,[])})}),dragOffset:Ot(e.dragOffset,t),refCount:Nt(e.refCount,t),dragOperation:Mt(e.dragOperation,t),stateId:Pt(e.stateId)}}function Rt(e,t=void 0,n={},r=!1){let i=zt(r),a=new Ke(i,new bt(i)),o=new Re(i,a),s=e(o,t,n);return o.receiveBackend(s),o}function zt(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return te(Lt,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}var O=i(o());function Bt(e,t){if(e==null)return{};var n=Vt(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let Ht=0;const Ut=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`);var Wt=(0,b.memo)(function(e){var{children:t}=e,n=Bt(e,[`children`]);let[r,i]=Gt(n);return(0,b.useEffect)(()=>{if(i){let e=qt();return++Ht,()=>{--Ht===0&&(e[Ut]=null)}}},[]),(0,O.jsx)(x.Provider,{value:r,children:t})});function Gt(e){if(`manager`in e){let t={dragDropManager:e.manager};return[t,!1]}let t=Kt(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function Kt(e,t=qt(),n,r){let i=t;return i[Ut]||(i[Ut]={dragDropManager:Rt(e,t,n,r)}),i[Ut]}function qt(){return typeof global<`u`?global:window}const Jt=typeof window<`u`?b.useLayoutEffect:b.useEffect;var Yt=i(m());function Xt(e,t,n){let[r,i]=(0,b.useState)(()=>t(e)),a=(0,b.useCallback)(()=>{let a=t(e);(0,Yt.default)(r,a)||(i(a),n&&n())},[r,e,n]);return Jt(a),[r,a]}function Zt(e,t,n){let[r,i]=Xt(e,t,n);return Jt(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function Qt(e,t,n){return Zt(t,e||(()=>({})),()=>n.reconnect())}function $t(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),(0,b.useMemo)(()=>typeof e==`function`?e():e,n)}function en(e){return(0,b.useMemo)(()=>e.hooks.dragSource(),[e])}function tn(e){return(0,b.useMemo)(()=>e.hooks.dragPreview(),[e])}let nn=!1,rn=!1;var an=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){E(!nn,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return nn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{nn=!1}}isDragging(){if(!this.sourceId)return!1;E(!rn,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return rn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{rn=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}};let on=!1;var sn=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;E(!on,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return on=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{on=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function cn(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function ln(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function un(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function dn(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function fn(e){if(typeof e.type==`string`)return;let t=e.type.displayName||e.type.name||`the component`;throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function pn(e){return(t=null,n=null)=>{if(!(0,b.isValidElement)(t)){let r=t;return e(r,n),r}let r=t;fn(r);let i=n?t=>e(t,n):e;return gn(r,i)}}function mn(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=pn(r);t[n]=()=>e}}),t}function hn(e,t){typeof e==`function`?e(t):e.current=t}function gn(e,t){let n=e.ref;return E(typeof n!=`string`,`Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs`),n?(0,b.cloneElement)(e,{ref:e=>{hn(n,e),hn(t,e)}}):(0,b.cloneElement)(e,{ref:t})}var _n=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!un(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!un(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=mn({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,dn(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,dn(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},vn=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!un(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=mn({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,dn(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function yn(){let{dragDropManager:e}=(0,b.useContext)(x);return E(e!=null,`Expected drag drop context`),e}function bn(e,t){let n=yn(),r=(0,b.useMemo)(()=>new _n(n.getBackend()),[n]);return Jt(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Jt(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function xn(){let e=yn();return(0,b.useMemo)(()=>new an(e),[e])}var Sn=class{beginDrag(){let e=this.spec,t=this.monitor,n=null;return n=typeof e.item==`object`?e.item:typeof e.item==`function`?e.item(t):{},n??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag==`function`?e.canDrag(t):!0}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}};function Cn(e,t,n){let r=(0,b.useMemo)(()=>new Sn(e,t,n),[t,n]);return(0,b.useEffect)(()=>{r.spec=e},[e]),r}function wn(e){return(0,b.useMemo)(()=>{let t=e.type;return E(t!=null,`spec.type must be defined`),t},[e])}function Tn(e,t,n){let r=yn(),i=Cn(e,t,n),a=wn(e);Jt(function(){if(a!=null){let[e,o]=ln(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function En(e,t){let n=$t(e,t);E(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);let r=xn(),i=bn(n.options,n.previewOptions);return Tn(n,r,i),[Qt(n.collect,r,i),en(i),tn(i)]}function Dn(e){let t=yn(),n=t.getMonitor(),[r,i]=Xt(n,e);return(0,b.useEffect)(()=>n.subscribeToOffsetChange(i)),(0,b.useEffect)(()=>n.subscribeToStateChange(i)),r}function On(e){return(0,b.useMemo)(()=>e.hooks.dropTarget(),[e])}function kn(e){let t=yn(),n=(0,b.useMemo)(()=>new vn(t.getBackend()),[t]);return Jt(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function An(){let e=yn();return(0,b.useMemo)(()=>new sn(e),[e])}function jn(e){let{accept:t}=e;return(0,b.useMemo)(()=>(E(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Mn=class{canDrop(){let e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function Nn(e,t){let n=(0,b.useMemo)(()=>new Mn(e,t),[t]);return(0,b.useEffect)(()=>{n.spec=e},[e]),n}function Pn(e,t,n){let r=yn(),i=Nn(e,t),a=jn(e);Jt(function(){let[e,o]=cn(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function Fn(e,t){let n=$t(e,t),r=An(),i=kn(n.options);return Pn(n,r,i),[Qt(n.collect,r,i),On(i)]}function In(e){let t=null,n=()=>(t??=e(),t);return n}function Ln(e,t){return e.filter(e=>e!==t)}function Rn(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var zn=class{enter(e){let t=this.entered.length,n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=Rn(this.entered.filter(n),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Ln(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Bn=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},Vn={};n(Vn,{FILE:()=>Hn,HTML:()=>Gn,TEXT:()=>Wn,URL:()=>Un});const Hn=`__NATIVE_FILE__`,Un=`__NATIVE_URL__`,Wn=`__NATIVE_TEXT__`,Gn=`__NATIVE_HTML__`;function Kn(e,t,n){let r=t.reduce((t,n)=>t||e.getData(n),``);return r??n}const qn={[Hn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Gn]:{exposeProperties:{html:(e,t)=>Kn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Un]:{exposeProperties:{urls:(e,t)=>Kn(e,t,``).split(`
|
|
1
|
+
import{A as e,E as t,J as n,L as r,M as i,f as a,h as o,i as s,j as c,u as l,w as u}from"./iframe-EU22ddzP.js";import"./react-dom-rzgPE705.js";import"./tooltip-N1V1x_Kn.js";import"./help-icon-DzkFHroz.js";import"./heading-DC2eTr4r.js";import{b as d}from"./text-CkkjKEEc.js";import"./lodash-CiSVjb27.js";import{b as f}from"./button-DXVRmU6A.js";import"./spinner-gc9uGw0J.js";import{b as p}from"./actions-Ct9IeQri.js";import"./types-D9-IVcXX.js";import"./types-BjAzD82u.js";import"./badge-CSqHSgHc.js";import"./objectSpread2-DjvBifS4.js";import{b as m}from"./fast-deep-equal-DA2RLqM2.js";import{b as h,d as g,e as _}from"./meta-content-DejAmkIh.js";import{b as v,c as y}from"./emotion-is-prop-valid.esm-BUoVdhe_.js";var b=i(t());const x=(0,b.createContext)({dragDropManager:void 0});function S(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var C=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),w=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},T={INIT:`@@redux/INIT`+w(),REPLACE:`@@redux/REPLACE`+w(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+w()}};function ee(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function te(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(S(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(S(1));return n(te)(e,t)}if(typeof e!=`function`)throw Error(S(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(S(3));return a}function d(e){if(typeof e!=`function`)throw Error(S(4));if(c)throw Error(S(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(S(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!ee(e))throw Error(S(7));if(e.type===void 0)throw Error(S(8));if(c)throw Error(S(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(S(10));i=e,f({type:T.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(S(11));function n(){e.next&&e.next(u())}n();var r=t(n);return{unsubscribe:r}}},e[C]=function(){return this},e}return f({type:T.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[C]=m,r}function E(e,t,...n){if(ne()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function ne(){return typeof process<`u`&&!0}function re(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function ie(e,t){return e.filter(e=>e!==t)}function ae(e){return typeof e==`object`}function oe(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function se(e,t){return e.filter(e=>t.indexOf(e)>-1)}const ce=`dnd-core/INIT_COORDS`,le=`dnd-core/BEGIN_DRAG`,ue=`dnd-core/PUBLISH_DRAG_SOURCE`,de=`dnd-core/HOVER`,fe=`dnd-core/DROP`,pe=`dnd-core/END_DRAG`;function me(e,t){return{type:ce,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const he={type:ce,payload:{clientOffset:null,sourceClientOffset:null}};function ge(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(me(i)),_e(t,o,s);let c=be(t,o);if(c==null){e.dispatch(he);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);ve(a),l=a(c)}e.dispatch(me(i,l));let u=s.getSource(c),d=u.beginDrag(o,c);if(d==null)return;ye(d),s.pinSource(c);let f=s.getSourceType(c);return{type:le,payload:{itemType:f,item:d,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}}}}function _e(e,t,n){E(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){E(n.getSource(e),`Expected sourceIds to be registered.`)})}function ve(e){E(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function ye(e){E(ae(e),`Item must be an object.`)}function be(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){xe(e,t,n[t])})}return e}function Ce(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();we(n);let i=De(n);i.forEach((i,a)=>{let o=Te(i,a,r,n),s={type:fe,payload:{dropResult:Se({},t,o)}};e.dispatch(s)})}}function we(e){E(e.isDragging(),`Cannot call drop while not dragging.`),E(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function Te(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Ee(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Ee(e){E(e===void 0||ae(e),`Drop result must either be an object or undefined.`)}function De(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Oe(e){return function(){let t=e.getMonitor(),n=e.getRegistry();ke(t);let r=t.getSourceId();if(r!=null){let e=n.getSource(r,!0);e.endDrag(t,r),n.unpinSource()}return{type:pe}}}function ke(e){E(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Ae(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function je(e){return function(t,{clientOffset:n}={}){Me(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry(),o=i.getItemType();return Pe(r,a,o),Ne(r,i,a),Fe(r,i,a),{type:de,payload:{targetIds:r,clientOffset:n||null}}}}function Me(e){E(Array.isArray(e),`Expected targetIds to be an array.`)}function Ne(e,t,n){E(t.isDragging(),`Cannot call hover while not dragging.`),E(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];E(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`);let i=n.getTarget(r);E(i,`Expected targetIds to be registered.`)}}function Pe(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r],a=t.getTargetType(i);Ae(a,n)||e.splice(r,1)}}function Fe(e,t,n){e.forEach(function(e){let r=n.getTarget(e);r.hover(t,e)})}function Ie(e){return function(){let t=e.getMonitor();if(t.isDragging())return{type:ue}}}function Le(e){return{beginDrag:ge(e),publishDragSource:Ie(e),hover:je(e),drop:Ce(e),endDrag:Oe(e)}}var Re=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=Le(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function ze(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Be(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ve(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Be(ze(t,r),n)}function He(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Be(t,n)}const Ue=[],We=[];Ue.__IS_NONE__=!0,We.__IS_ALL__=!0;function Ge(e,t){if(e===Ue)return!1;if(e===We||t===void 0)return!0;let n=se(t,e);return n.length>0}var Ke=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;E(typeof e==`function`,`listener must be a function.`),E(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId,i=()=>{let t=this.store.getState(),i=t.stateId;try{let a=i===r||i===r+1&&!Ge(t.dirtyHandlerIds,n);a||e()}finally{r=i}};return this.store.subscribe(i)}subscribeToOffsetChange(e){E(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset,n=()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return E(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);if(E(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;let n=this.registry.getTargetType(e),r=this.getItemType();return Ae(n,r)&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);if(E(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;let n=this.registry.getSourceType(e),r=this.getItemType();return n===r?t.isDragging(this,e):!1}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Ae(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Ve(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return He(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}};const qe=typeof global<`u`?global:self,Je=qe.MutationObserver||qe.WebKitMutationObserver;function Ye(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function Xe(e){let t=1,n=new Je(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const Ze=typeof Je==`function`?Xe:Ye;var Qe=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Ze(this.flush),this.requestErrorThrow=Ye(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},$e=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},et=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new $e(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}};const tt=new Qe,nt=new et(tt.registerPendingError);function rt(e){tt.enqueueTask(nt.create(e))}const it=`dnd-core/ADD_SOURCE`,at=`dnd-core/ADD_TARGET`,ot=`dnd-core/REMOVE_SOURCE`,st=`dnd-core/REMOVE_TARGET`;function ct(e){return{type:it,payload:{sourceId:e}}}function lt(e){return{type:at,payload:{targetId:e}}}function ut(e){return{type:ot,payload:{sourceId:e}}}function dt(e){return{type:st,payload:{targetId:e}}}function ft(e){E(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),E(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),E(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function pt(e){E(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),E(typeof e.hover==`function`,`Expected hover to be a function.`),E(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function mt(e,t){if(t&&Array.isArray(e)){e.forEach(e=>mt(e,!1));return}E(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var D;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(D||={});let ht=0;function gt(){return ht++}function _t(e){let t=gt().toString();switch(e){case D.SOURCE:return`S${t}`;case D.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function vt(e){switch(e[0]){case`S`:return D.SOURCE;case`T`:return D.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function yt(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var bt=class{addSource(e,t){mt(e),ft(t);let n=this.addHandler(D.SOURCE,e,t);return this.store.dispatch(ct(n)),n}addTarget(e,t){mt(e,!0),pt(t);let n=this.addHandler(D.TARGET,e,t);return this.store.dispatch(lt(n)),n}containsHandler(e){return yt(this.dragSources,e)||yt(this.dropTargets,e)}getSource(e,t=!1){E(this.isSourceId(e),`Expected a valid source ID.`);let n=t&&e===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(e);return r}getTarget(e){return E(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return E(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return E(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){let t=vt(e);return t===D.SOURCE}isTargetId(e){let t=vt(e);return t===D.TARGET}removeSource(e){E(this.getSource(e),`Expected an existing source.`),this.store.dispatch(ut(e)),rt(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){E(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(dt(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);E(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){E(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=_t(e);return this.types.set(r,t),e===D.SOURCE?this.dragSources.set(r,n):e===D.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}};const xt=(e,t)=>e===t;function St(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Ct(e,t,n=xt){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function wt(e=Ue,t){switch(t.type){case de:break;case it:case at:case st:case ot:return Ue;case le:case ue:case pe:case fe:default:return We}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=oe(n,r),a=i.length>0||!Ct(n,r);if(!a)return Ue;let o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&i.push(o),s&&i.push(s)),i}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Tt(e,t,n[t])})}return e}const Dt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ot(e=Dt,t){let{payload:n}=t;switch(t.type){case ce:case le:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case de:return St(e.clientOffset,n.clientOffset)?e:Et({},e,{clientOffset:n.clientOffset});case pe:case fe:return Dt;default:return e}}function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){kt(e,t,n[t])})}return e}const jt={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Mt(e=jt,t){let{payload:n}=t;switch(t.type){case le:return At({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case ue:return At({},e,{isSourcePublic:!0});case de:return At({},e,{targetIds:n.targetIds});case st:return e.targetIds.indexOf(n.targetId)===-1?e:At({},e,{targetIds:ie(e.targetIds,n.targetId)});case fe:return At({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case pe:return At({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Nt(e=0,t){switch(t.type){case it:case at:return e+1;case ot:case st:return e-1;default:return e}}function Pt(e=0){return e+1}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ft(e,t,n[t])})}return e}function Lt(e={},t){return{dirtyHandlerIds:wt(e.dirtyHandlerIds,{type:t.type,payload:It({},t.payload,{prevTargetIds:re(e,`dragOperation.targetIds`,[])})}),dragOffset:Ot(e.dragOffset,t),refCount:Nt(e.refCount,t),dragOperation:Mt(e.dragOperation,t),stateId:Pt(e.stateId)}}function Rt(e,t=void 0,n={},r=!1){let i=zt(r),a=new Ke(i,new bt(i)),o=new Re(i,a),s=e(o,t,n);return o.receiveBackend(s),o}function zt(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return te(Lt,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}var O=i(o());function Bt(e,t){if(e==null)return{};var n=Vt(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let Ht=0;const Ut=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`);var Wt=(0,b.memo)(function(e){var{children:t}=e,n=Bt(e,[`children`]);let[r,i]=Gt(n);return(0,b.useEffect)(()=>{if(i){let e=qt();return++Ht,()=>{--Ht===0&&(e[Ut]=null)}}},[]),(0,O.jsx)(x.Provider,{value:r,children:t})});function Gt(e){if(`manager`in e){let t={dragDropManager:e.manager};return[t,!1]}let t=Kt(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function Kt(e,t=qt(),n,r){let i=t;return i[Ut]||(i[Ut]={dragDropManager:Rt(e,t,n,r)}),i[Ut]}function qt(){return typeof global<`u`?global:window}const Jt=typeof window<`u`?b.useLayoutEffect:b.useEffect;var Yt=i(m());function Xt(e,t,n){let[r,i]=(0,b.useState)(()=>t(e)),a=(0,b.useCallback)(()=>{let a=t(e);(0,Yt.default)(r,a)||(i(a),n&&n())},[r,e,n]);return Jt(a),[r,a]}function Zt(e,t,n){let[r,i]=Xt(e,t,n);return Jt(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function Qt(e,t,n){return Zt(t,e||(()=>({})),()=>n.reconnect())}function $t(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),(0,b.useMemo)(()=>typeof e==`function`?e():e,n)}function en(e){return(0,b.useMemo)(()=>e.hooks.dragSource(),[e])}function tn(e){return(0,b.useMemo)(()=>e.hooks.dragPreview(),[e])}let nn=!1,rn=!1;var an=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){E(!nn,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return nn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{nn=!1}}isDragging(){if(!this.sourceId)return!1;E(!rn,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return rn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{rn=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}};let on=!1;var sn=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;E(!on,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return on=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{on=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function cn(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function ln(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function un(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function dn(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function fn(e){if(typeof e.type==`string`)return;let t=e.type.displayName||e.type.name||`the component`;throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function pn(e){return(t=null,n=null)=>{if(!(0,b.isValidElement)(t)){let r=t;return e(r,n),r}let r=t;fn(r);let i=n?t=>e(t,n):e;return gn(r,i)}}function mn(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=pn(r);t[n]=()=>e}}),t}function hn(e,t){typeof e==`function`?e(t):e.current=t}function gn(e,t){let n=e.ref;return E(typeof n!=`string`,`Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs`),n?(0,b.cloneElement)(e,{ref:e=>{hn(n,e),hn(t,e)}}):(0,b.cloneElement)(e,{ref:t})}var _n=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!un(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!un(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=mn({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,dn(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,dn(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},vn=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!un(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=mn({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,dn(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function yn(){let{dragDropManager:e}=(0,b.useContext)(x);return E(e!=null,`Expected drag drop context`),e}function bn(e,t){let n=yn(),r=(0,b.useMemo)(()=>new _n(n.getBackend()),[n]);return Jt(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Jt(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function xn(){let e=yn();return(0,b.useMemo)(()=>new an(e),[e])}var Sn=class{beginDrag(){let e=this.spec,t=this.monitor,n=null;return n=typeof e.item==`object`?e.item:typeof e.item==`function`?e.item(t):{},n??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag==`function`?e.canDrag(t):!0}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}};function Cn(e,t,n){let r=(0,b.useMemo)(()=>new Sn(e,t,n),[t,n]);return(0,b.useEffect)(()=>{r.spec=e},[e]),r}function wn(e){return(0,b.useMemo)(()=>{let t=e.type;return E(t!=null,`spec.type must be defined`),t},[e])}function Tn(e,t,n){let r=yn(),i=Cn(e,t,n),a=wn(e);Jt(function(){if(a!=null){let[e,o]=ln(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function En(e,t){let n=$t(e,t);E(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);let r=xn(),i=bn(n.options,n.previewOptions);return Tn(n,r,i),[Qt(n.collect,r,i),en(i),tn(i)]}function Dn(e){let t=yn(),n=t.getMonitor(),[r,i]=Xt(n,e);return(0,b.useEffect)(()=>n.subscribeToOffsetChange(i)),(0,b.useEffect)(()=>n.subscribeToStateChange(i)),r}function On(e){return(0,b.useMemo)(()=>e.hooks.dropTarget(),[e])}function kn(e){let t=yn(),n=(0,b.useMemo)(()=>new vn(t.getBackend()),[t]);return Jt(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function An(){let e=yn();return(0,b.useMemo)(()=>new sn(e),[e])}function jn(e){let{accept:t}=e;return(0,b.useMemo)(()=>(E(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Mn=class{canDrop(){let e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function Nn(e,t){let n=(0,b.useMemo)(()=>new Mn(e,t),[t]);return(0,b.useEffect)(()=>{n.spec=e},[e]),n}function Pn(e,t,n){let r=yn(),i=Nn(e,t),a=jn(e);Jt(function(){let[e,o]=cn(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function Fn(e,t){let n=$t(e,t),r=An(),i=kn(n.options);return Pn(n,r,i),[Qt(n.collect,r,i),On(i)]}function In(e){let t=null,n=()=>(t??=e(),t);return n}function Ln(e,t){return e.filter(e=>e!==t)}function Rn(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var zn=class{enter(e){let t=this.entered.length,n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=Rn(this.entered.filter(n),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Ln(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Bn=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},Vn={};n(Vn,{FILE:()=>Hn,HTML:()=>Gn,TEXT:()=>Wn,URL:()=>Un});const Hn=`__NATIVE_FILE__`,Un=`__NATIVE_URL__`,Wn=`__NATIVE_TEXT__`,Gn=`__NATIVE_HTML__`;function Kn(e,t,n){let r=t.reduce((t,n)=>t||e.getData(n),``);return r??n}const qn={[Hn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Gn]:{exposeProperties:{html:(e,t)=>Kn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Un]:{exposeProperties:{urls:(e,t)=>Kn(e,t,``).split(`
|
|
2
2
|
`),dataTransfer:e=>e},matchesTypes:[`Url`,`text/uri-list`]},[Wn]:{exposeProperties:{text:(e,t)=>Kn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Text`,`text/plain`]}};function Jn(e,t){let n=qn[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new Bn(n);return r.loadDataTransfer(t),r}function Yn(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys(qn).filter(e=>{let n=qn[e];return n?.matchesTypes?n.matchesTypes.some(e=>t.indexOf(e)>-1):!1})[0]||null}const Xn=In(()=>/firefox/i.test(navigator.userAgent)),Zn=In(()=>!!window.safari);var Qn=class{interpolate(e){let{xs:t,ys:n,c1s:r,c2s:i,c3s:a}=this,o=t.length-1;if(e===t[o])return n[o];let s=0,c=a.length-1,l;for(;s<=c;){l=Math.floor(.5*(s+c));let r=t[l];if(r<e)s=l+1;else if(r>e)c=l-1;else return n[l]}o=Math.max(0,c);let u=e-t[o],d=u*u;return n[o]+r[o]*u+i[o]*d+a[o]*u*d}constructor(e,t){let{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);let i=[],a=[],o=[],s,c;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],c=t[r+1]-t[r],a.push(s),i.push(c),o.push(c/s);let l=[o[0]];for(let e=0;e<a.length-1;e++){let t=o[e],n=o[e+1];if(t*n<=0)l.push(0);else{s=a[e];let r=a[e+1],i=s+r;l.push(3*i/((i+r)/t+(i+s)/n))}}l.push(o[o.length-1]);let u=[],d=[],f;for(let e=0;e<l.length-1;e++){f=o[e];let t=l[e],n=1/a[e],r=t+l[e+1]-f-f;u.push((f-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=d}};function $n(e){let t=e.nodeType===1?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function er(e){return{x:e.clientX,y:e.clientY}}function tr(e){var t;return e.nodeName===`IMG`&&(Xn()||!(t=document.documentElement)?.contains(e))}function nr(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return Zn()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function rr(e,t,n,r,i){let a=tr(t),o=a?e:t,s=$n(o),c={x:n.x-s.x,y:n.y-s.y},{offsetWidth:l,offsetHeight:u}=e,{anchorX:d,anchorY:f}=r,{dragPreviewWidth:p,dragPreviewHeight:m}=nr(a,t,l,u),h=()=>{let e=new Qn([0,.5,1],[c.y,c.y/u*m,c.y+m-u]),t=e.interpolate(f);return Zn()&&a&&(t+=(window.devicePixelRatio-1)*m),t},g=()=>{let e=new Qn([0,.5,1],[c.x,c.x/l*p,c.x+p-l]);return e.interpolate(d)},{offsetX:_,offsetY:v}=i,y=_===0||_,b=v===0||v;return{x:y?_:g(),y:b?v:h()}}var ir=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<`u`)return window}get document(){var e;if((e=this.globalContext)?.document)return this.globalContext.document;if(this.window)return this.window.document}get rootElement(){var e;return(e=this.optionsArgs)?.rootElement||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ar(e,t,n[t])})}return e}var sr=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(e=this.dragStartSourceIds)?.length||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(t=this.dragOverTargetIds)?.length||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw Error(`Cannot have two HTML5 backends at the same time.`);e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){let e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)==null||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);let r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute(`draggable`,`true`),t.addEventListener(`dragstart`,r),t.addEventListener(`selectstart`,i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener(`dragstart`,r),t.removeEventListener(`selectstart`,i),t.setAttribute(`draggable`,`false`)}}connectDropTarget(e,t){let n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener(`dragenter`,n),t.addEventListener(`dragover`,r),t.addEventListener(`drop`,i),()=>{t.removeEventListener(`dragenter`,n),t.removeEventListener(`dragover`,r),t.removeEventListener(`drop`,i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener(`dragstart`,this.handleTopDragStart),e.addEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.addEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.addEventListener(`dragenter`,this.handleTopDragEnter),e.addEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.addEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.addEventListener(`dragover`,this.handleTopDragOver),e.addEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.addEventListener(`drop`,this.handleTopDrop),e.addEventListener(`drop`,this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener(`dragstart`,this.handleTopDragStart),e.removeEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.removeEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.removeEventListener(`dragenter`,this.handleTopDragEnter),e.removeEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.removeEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.removeEventListener(`dragover`,this.handleTopDragOver),e.removeEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.removeEventListener(`drop`,this.handleTopDrop),e.removeEventListener(`drop`,this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return or({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return or({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(Vn).some(t=>Vn[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Jn(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return(e=this.rootElement)?.addEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)==null||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||=[],this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&$n(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>!!(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{let e=this.currentDragSourceNode;e==null||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{this.hoverRafId===null&&typeof requestAnimationFrame<`u`&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<`u`&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;let{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;let n=er(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});let{dataTransfer:r}=e,i=Yn(r);if(this.monitor.isDragging()){if(r&&typeof r.setDragImage==`function`){let e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){let{anchorX:e,anchorY:a,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c={anchorX:e,anchorY:a},l={offsetX:o,offsetY:s},u=rr(t,i,n,c,l);r.setDragImage(i,u.x,u.y)}}try{r?.setData(`application/json`,{})}catch{}this.setCurrentDragSourceNode(e.target);let{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute(`draggable`)))return;else e.preventDefault()},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}let n=this.enterLeaveCounter.enter(e.target);if(!n||this.monitor.isDragging())return;let{dataTransfer:r}=e,i=Yn(r);i&&this.beginDragNativeItem(i,r)},this.handleTopDragEnter=e=>{let{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:er(e)});let n=t.some(e=>this.monitor.canDropOnTarget(e));n&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=e=>{let{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`);return}this.altKeyPressed=e.altKey,this.lastClientOffset=er(e),this.scheduleHover(t);let n=(t||[]).some(e=>this.monitor.canDropOnTarget(e));n?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();let t=this.enterLeaveCounter.leave(e.target);t&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var t;e.preventDefault(),(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}else Yn(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:er(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{let t=e.target;typeof t.dragDrop==`function`&&(t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new ir(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new zn(this.isNodeInDocument)}};let cr;function lr(){return cr||(cr=new Image,cr.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`),cr}const ur=function(e,t,n){return new sr(e,t,n)};var dr=[],fr=function(){return dr.some(function(e){return e.activeTargets.length>0})},pr=function(){return dr.some(function(e){return e.skippedTargets.length>0})},mr=`ResizeObserver loop completed with undelivered notifications.`,hr=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:mr}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=mr),window.dispatchEvent(e)},gr;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(gr||={});var _r=function(e){return Object.freeze(e)},vr=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,_r(this)}return e}(),yr=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,_r(this)}return e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,a=e.bottom,o=e.left,s=e.width,c=e.height;return{x:t,y:n,top:r,right:i,bottom:a,left:o,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),br=function(e){return e instanceof SVGElement&&`getBBox`in e},xr=function(e){if(br(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Sr=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)?.defaultView;return!!(n&&e instanceof n.Element)},Cr=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},wr=typeof window<`u`?window:{},Tr=new WeakMap,Er=/auto|scroll/,Dr=/^tb|vertical/,Or=/msie|trident/i.test(wr.navigator&&wr.navigator.userAgent),k=function(e){return parseFloat(e||`0`)},kr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new vr((n?t:e)||0,(n?e:t)||0)},Ar=_r({devicePixelContentBoxSize:kr(),borderBoxSize:kr(),contentBoxSize:kr(),contentRect:new yr(0,0,0,0)}),jr=function(e,t){if(t===void 0&&(t=!1),Tr.has(e)&&!t)return Tr.get(e);if(xr(e))return Tr.set(e,Ar),Ar;var n=getComputedStyle(e),r=br(e)&&e.ownerSVGElement&&e.getBBox(),i=!Or&&n.boxSizing===`border-box`,a=Dr.test(n.writingMode||``),o=!r&&Er.test(n.overflowY||``),s=!r&&Er.test(n.overflowX||``),c=r?0:k(n.paddingTop),l=r?0:k(n.paddingRight),u=r?0:k(n.paddingBottom),d=r?0:k(n.paddingLeft),f=r?0:k(n.borderTopWidth),p=r?0:k(n.borderRightWidth),m=r?0:k(n.borderBottomWidth),h=r?0:k(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:k(n.width)-S-x,T=r?r.height:k(n.height)-C-b,ee=w+g+x+v,te=T+_+b+y,E=_r({devicePixelContentBoxSize:kr(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:kr(ee,te,a),contentBoxSize:kr(w,T,a),contentRect:new yr(d,c,w,T)});return Tr.set(e,E),E},Mr=function(e,t,n){var r=jr(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case gr.DEVICE_PIXEL_CONTENT_BOX:return o;case gr.BORDER_BOX:return i;default:return a}},Nr=function(){function e(e){var t=jr(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=_r([t.borderBoxSize]),this.contentBoxSize=_r([t.contentBoxSize]),this.devicePixelContentBoxSize=_r([t.devicePixelContentBoxSize])}return e}(),Pr=function(e){if(xr(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Fr=function(){var e=1/0,t=[];dr.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Nr(t.target),i=Pr(t.target);r.push(n),t.lastReportedSize=Mr(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Ir=function(e){dr.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(Pr(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Lr=function(){var e=0;for(Ir(e);fr();)e=Fr(),Ir(e);return pr()&&hr(),e>0},Rr,zr=[],Br=function(){return zr.splice(0).forEach(function(e){return e()})},Vr=function(e){if(!Rr){var t=0,n=document.createTextNode(``),r={characterData:!0};new MutationObserver(function(){return Br()}).observe(n,r),Rr=function(){n.textContent=`${t?t--:t++}`}}zr.push(e),Rr()},Hr=function(e){Vr(function(){requestAnimationFrame(e)})},Ur=0,Wr=function(){return!!Ur},Gr=250,Kr={attributes:!0,characterData:!0,childList:!0,subtree:!0},qr=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Jr=function(e){return e===void 0&&(e=0),Date.now()+e},Yr=!1,Xr=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Gr),!Yr){Yr=!0;var n=Jr(e);Hr(function(){var r=!1;try{r=Lr()}finally{if(Yr=!1,e=n-Jr(),!Wr())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Kr)};document.body?t():wr.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),qr.forEach(function(t){return wr.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),qr.forEach(function(t){return wr.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}(),Zr=new Xr,Qr=function(e){!Ur&&e>0&&Zr.start(),Ur+=e,!Ur&&Zr.stop()},$r=function(e){return!br(e)&&!Cr(e)&&getComputedStyle(e).display===`inline`},ei=function(){function e(e,t){this.target=e,this.observedBox=t||gr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Mr(this.target,this.observedBox,!0);return $r(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),ti=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),ni=new WeakMap,ri=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ii=function(){function e(){}return e.connect=function(e,t){var n=new ti(e,t);ni.set(e,n)},e.observe=function(e,t,n){var r=ni.get(e),i=r.observationTargets.length===0;ri(r.observationTargets,t)<0&&(i&&dr.push(r),r.observationTargets.push(new ei(t,n&&n.box)),Qr(1),Zr.schedule())},e.unobserve=function(e,t){var n=ni.get(e),r=ri(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&dr.splice(dr.indexOf(n),1),n.observationTargets.splice(r,1),Qr(-1))},e.disconnect=function(e){var t=this,n=ni.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),ai=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);ii.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Sr(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);ii.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Sr(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);ii.unobserve(this,e)},e.prototype.disconnect=function(){ii.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}();const oi=(0,b.createContext)({});function si(e){let t=(0,b.useRef)(null);return t.current===null&&(t.current=e()),t.current}const ci=(0,b.createContext)(null),li=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function ui(e=!0){let t=(0,b.useContext)(ci);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,b.useId)();(0,b.useEffect)(()=>{e&&i(a)},[e]);let o=(0,b.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const di=typeof window<`u`,fi=di?b.useLayoutEffect:b.useEffect,A=e=>e;let pi=A,mi=A;function hi(e){let t;return()=>(t===void 0&&(t=e()),t)}const gi=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},j=e=>e*1e3,M=e=>e/1e3,_i={skipAnimations:!1,useManualTiming:!1};function vi(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r,c=s?t:n;return i&&a.add(e),c.has(e)||c.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}const yi=[`read`,`resolveKeyframes`,`update`,`preRender`,`render`,`postRender`];function bi(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=yi.reduce((e,t)=>(e[t]=vi(a),e),{}),{read:s,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,p=()=>{let a=_i.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,i.isProcessing||e(p)},h=yi.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||m(),r.schedule(e,t,i)),e},{}),g=e=>{for(let t=0;t<yi.length;t++)o[yi[t]].cancel(e)};return{schedule:h,cancel:g,state:i,steps:o}}const{schedule:N,cancel:xi,state:P,steps:Si}=bi(typeof requestAnimationFrame<`u`?requestAnimationFrame:A,!0),Ci=(0,b.createContext)({strict:!1}),wi={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Ti={};for(let e in wi)Ti[e]={isEnabled:t=>wi[e].some(e=>!!t[e])};function Ei(e){for(let t in e)Ti[t]={...Ti[t],...e[t]}}const Di=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function Oi(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Di.has(e)}let ki=e=>!Oi(e);function Ai(e){e&&(ki=t=>t.startsWith(`on`)?!Oi(t):e(t))}try{Ai((y(),r(v)).default)}catch{}function ji(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(ki(i)||n===!0&&Oi(i)||!t&&!Oi(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}function Mi(e){if(typeof Proxy>`u`)return e;let t=new Map,n=(...t)=>e(...t);return new Proxy(n,{get:(n,r)=>r===`create`?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Ni=(0,b.createContext)({});function Pi(e){return typeof e==`string`||Array.isArray(e)}function Fi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}const Ii=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Li=[`initial`,...Ii];function Ri(e){return Fi(e.animate)||Li.some(t=>Pi(e[t]))}function zi(e){return!!(Ri(e)||e.variants)}function Bi(e,t){if(Ri(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Pi(t)?t:void 0,animate:Pi(n)?n:void 0}}return e.inherit===!1?{}:t}function Vi(e){let{initial:t,animate:n}=Bi(e,(0,b.useContext)(Ni));return(0,b.useMemo)(()=>({initial:t,animate:n}),[Hi(t),Hi(n)])}function Hi(e){return Array.isArray(e)?e.join(` `):e}const Ui=Symbol.for(`motionComponentSymbol`);function Wi(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Gi(e,t,n){return(0,b.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):Wi(n)&&(n.current=r))},[t])}const Ki=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),qi=`data-`+Ki(`framerAppearId`),{schedule:Ji,cancel:Yi}=bi(queueMicrotask,!1),Xi=(0,b.createContext)({});function Zi(e,t,n,r,i){var a,o;let{visualElement:s}=(0,b.useContext)(Ni),c=(0,b.useContext)(Ci),l=(0,b.useContext)(ci),u=(0,b.useContext)(li).reducedMotion,d=(0,b.useRef)(null);r||=c.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));let f=d.current,p=(0,b.useContext)(Xi);f&&!f.projection&&i&&(f.type===`html`||f.type===`svg`)&&Qi(d.current,n,i,p);let m=(0,b.useRef)(!1);(0,b.useInsertionEffect)(()=>{f&&m.current&&f.update(n,l)});let h=n[qi],g=(0,b.useRef)(!!h&&!(a=window.MotionHandoffIsComplete)?.call(window,h)&&(o=window.MotionHasOptimisedAnimation)?.call(window,h));return fi(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ji.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())}),(0,b.useEffect)(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;(e=window.MotionHandoffMarkAsComplete)==null||e.call(window,h)}),g.current=!1))}),f}function Qi(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:$i(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Wi(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function $i(e){if(e)return e.options.allowProjection===!1?$i(e.parent):e.projection}function ea({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&Ei(e);function s(a,o){let s,c={...(0,b.useContext)(li),...a,layoutId:ta(a)},{isStatic:l}=c,u=Vi(a),d=r(a,l);if(!l&&di){na(c,e);let n=ra(c);s=n.MeasureLayout,u.visualElement=Zi(i,d,c,t,n.ProjectionNode)}return(0,O.jsxs)(Ni.Provider,{value:u,children:[s&&u.visualElement?(0,O.jsx)(s,{visualElement:u.visualElement,...c}):null,n(i,a,Gi(d,u.visualElement,o),d,l,u.visualElement)]})}s.displayName=`motion.${typeof i==`string`?i:`create(${(o=(a=i.displayName)??i.name)??``})`}`;let c=(0,b.forwardRef)(s);return c[Ui]=i,c}function ta({layoutId:e}){let t=(0,b.useContext)(oi).id;return t&&e!==void 0?t+`-`+e:e}function na(e,t){(0,b.useContext)(Ci).strict}function ra(e){let{drag:t,layout:n}=Ti;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ia=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function aa(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(ia.indexOf(e)>-1||/[A-Z]/u.test(e))}function oa(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function sa(e,t,n,r){if(typeof t==`function`){let[i,a]=oa(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=oa(r);t=t(n===void 0?e.custom:n,i,a)}return t}const ca=e=>Array.isArray(e),la=e=>!!(e&&typeof e==`object`&&e.mix&&e.toValue),ua=e=>ca(e)?e[e.length-1]||0:e,F=e=>!!(e&&e.getVelocity);function da(e){let t=F(e)?e.get():e;return la(t)?t.toValue():t}function fa({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){let o={latestValues:ma(r,i,a,e),renderState:t()};return n&&(o.onMount=e=>n({props:r,current:e,...o}),o.onUpdate=e=>n(e)),o}const pa=e=>(t,n)=>{let r=(0,b.useContext)(Ni),i=(0,b.useContext)(ci),a=()=>fa(e,t,r,i);return n?a():si(a)};function ma(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=da(a[e]);let{initial:o,animate:s}=e,c=Ri(e),l=zi(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Fi(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=sa(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}const ha=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],ga=new Set(ha),_a=e=>t=>typeof t==`string`&&t.startsWith(e),va=_a(`--`),ya=_a(`var(--`),ba=e=>{let t=ya(e);return t?xa.test(e.split(`/*`)[0].trim()):!1},xa=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sa=(e,t)=>t&&typeof e==`number`?t.transform(e):e,I=(e,t,n)=>n>t?t:n<e?e:n,Ca={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},wa={...Ca,transform:e=>I(0,1,e)},Ta={...Ca,default:1},Ea=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Da=Ea(`deg`),L=Ea(`%`),R=Ea(`px`),Oa=Ea(`vh`),ka=Ea(`vw`),Aa={...L,parse:e=>L.parse(e)/100,transform:e=>L.transform(e*100)},ja={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R},Ma={rotate:Da,rotateX:Da,rotateY:Da,rotateZ:Da,scale:Ta,scaleX:Ta,scaleY:Ta,scaleZ:Ta,skew:Da,skewX:Da,skewY:Da,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:wa,originX:Aa,originY:Aa,originZ:R},Na={...Ca,transform:Math.round},Pa={...ja,...Ma,zIndex:Na,size:R,fillOpacity:wa,strokeOpacity:wa,numOctaves:Na},Fa={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ia=ha.length;function La(e,t,n){let r=``,i=!0;for(let a=0;a<Ia;a++){let o=ha[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=Sa(s,Pa[o]);if(!c){i=!1;let t=Fa[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Ra(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(ga.has(e)){o=!0;continue}else if(va(e)){i[e]=n;continue}else{let t=Sa(n,Pa[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=La(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const za={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ba={offset:`strokeDashoffset`,array:`strokeDasharray`};function Va(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?za:Ba;e[a.offset]=R.transform(-r);let o=R.transform(t),s=R.transform(n);e[a.array]=`${o} ${s}`}function Ha(e,t,n){return typeof e==`string`?e:R.transform(t+n*e)}function Ua(e,t,n){let r=Ha(t,e.x,e.width),i=Ha(n,e.y,e.height);return`${r} ${i}`}function Wa(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:c=0,...l},u,d){if(Ra(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||a!==void 0||p.transform)&&(p.transformOrigin=Ua(m,i===void 0?.5:i,a===void 0?.5:a)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Va(f,o,s,c,!1)}const Ga=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Ka=()=>({...Ga(),attrs:{}}),qa=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ja(e,{style:t,vars:n},r,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(a,n[a])}const Ya=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function Xa(e,t,n,r){for(let n in Ja(e,t,void 0,r),t.attrs)e.setAttribute(Ya.has(n)?n:Ki(n),t.attrs[n])}const Za={};function Qa(e){Object.assign(Za,e)}function $a(e,{layout:t,layoutId:n}){return ga.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Za[e]||e===`opacity`)}function eo(e,t,n){var r;let{style:i}=e,a={};for(let o in i)(F(i[o])||t.style&&F(t.style[o])||$a(o,e)||(r=n?.getValue(o))?.liveStyle!==void 0)&&(a[o]=i[o]);return a}function to(e,t,n){let r=eo(e,t,n);for(let n in e)if(F(e[n])||F(t[n])){let t=ha.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}function no(e,t){try{t.dimensions=typeof e.getBBox==`function`?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const ro=[`x`,`y`,`width`,`height`,`cx`,`cy`,`r`],io={useVisualState:pa({scrapeMotionValuesFromProps:to,createRenderState:Ka,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(let e in i)if(ga.has(e)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let n=0;n<ro.length;n++){let r=ro[n];e[r]!==t[r]&&(o=!0)}o&&N.read(()=>{no(n,r),N.render(()=>{Wa(r,i,qa(n.tagName),e.transformTemplate),Xa(n,r)})})}})},ao={useVisualState:pa({scrapeMotionValuesFromProps:eo,createRenderState:Ga})};function oo(e,t,n){for(let r in t)!F(t[r])&&!$a(r,n)&&(e[r]=t[r])}function so({transformTemplate:e},t){return(0,b.useMemo)(()=>{let n=Ga();return Ra(n,t,e),Object.assign({},n.vars,n.style)},[t])}function co(e,t){let n=e.style||{},r={};return oo(r,n,e),Object.assign(r,so(e,t)),r}function lo(e,t){let n={},r=co(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function uo(e,t,n,r){let i=(0,b.useMemo)(()=>{let n=Ka();return Wa(n,t,qa(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};oo(t,e.style,e),i.style={...t,...i.style}}return i}function fo(e=!1){let t=(t,n,r,{latestValues:i},a)=>{let o=aa(t)?uo:lo,s=o(n,i,a,t),c=ji(n,typeof t==`string`,e),l=t===b.Fragment?{}:{...c,...s,ref:r},{children:u}=n,d=(0,b.useMemo)(()=>F(u)?u.get():u,[u]);return(0,b.createElement)(t,{...l,children:d})};return t}function po(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){let i=aa(n)?io:ao,a={...i,preloadedFeatures:e,useRender:fo(r),createVisualElement:t,Component:n};return ea(a)}}function mo(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ho(e,t,n){let r=e.getProps();return sa(r,t,n===void 0?r.custom:n,e)}const go=hi(()=>window.ScrollTimeline!==void 0);var _o=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>`finished`in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>{if(go()&&n.attachTimeline)return n.attachTimeline(e);if(typeof t==`function`)return t(n)});return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get startTime(){return this.getAll(`startTime`)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll(`flatten`)}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}},vo=class extends _o{then(e,t){return Promise.all(this.animations).then(e).catch(t)}};function yo(e,t){return e?e[t]||e.default||e:void 0}const bo=2e4;function xo(e){let t=0,n=e.next(t);for(;!n.done&&t<bo;)t+=50,n=e.next(t);return t>=bo?1/0:t}function So(e){return typeof e==`function`}function Co(e,t){e.timeline=t,e.onfinish=null}const wo=e=>Array.isArray(e)&&typeof e[0]==`number`,To={linearEasing:void 0};function Eo(e,t){let n=hi(e);return()=>{var e;return(e=To[t])??n()}}const Do=Eo(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Oo=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=e(gi(0,i-1,t))+`, `;return`linear(${r.substring(0,r.length-2)})`};function ko(e){return!!(typeof e==`function`&&Do()||!e||typeof e==`string`&&(e in jo||Do())||wo(e)||Array.isArray(e)&&e.every(ko))}const Ao=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jo={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Ao([0,.65,.55,1]),circOut:Ao([.55,0,1,.45]),backIn:Ao([.31,.01,.66,-.59]),backOut:Ao([.33,1.53,.69,.99])};function Mo(e,t){if(e)return typeof e==`function`&&Do()?Oo(e,t):wo(e)?Ao(e):Array.isArray(e)?e.map(e=>Mo(e,t)||jo.easeOut):jo[e]}const z={x:!1,y:!1};function No(){return z.x||z.y}function Po(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e==`string`){let i=document;t&&(i=t.current);let a=(r=n?.[e])??i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function Fo(e,t){let n=Po(e),r=new AbortController,i={passive:!0,...t,signal:r.signal},a=()=>r.abort();return[n,i,a]}function Io(e){return t=>{t.pointerType===`touch`||No()||e(t)}}function Lo(e,t,n={}){let[r,i,a]=Fo(e,n),o=Io(e=>{let{target:n}=e,r=t(e);if(typeof r!=`function`||!n)return;let a=Io(e=>{r(e),n.removeEventListener(`pointerleave`,a)});n.addEventListener(`pointerleave`,a,i)});return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}const Ro=(e,t)=>t?e===t?!0:Ro(e,t.parentElement):!1,zo=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Bo=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Vo(e){return Bo.has(e.tagName)||e.tabIndex!==-1}const Ho=new WeakSet;function Uo(e){return t=>{t.key===`Enter`&&e(t)}}function Wo(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}const Go=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Uo(()=>{if(Ho.has(n))return;Wo(n,`down`);let e=Uo(()=>{Wo(n,`up`)}),r=()=>Wo(n,`cancel`);n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,r,t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ko(e){return zo(e)&&!No()}function qo(e,t,n={}){let[r,i,a]=Fo(e,n),o=e=>{let r=e.currentTarget;if(!Ko(e)||Ho.has(r))return;Ho.add(r);let a=t(e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),!(!Ko(e)||!Ho.has(r))&&(Ho.delete(r),typeof a==`function`&&a(e,{success:t}))},s=e=>{o(e,n.useGlobalTarget||Ro(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{!Vo(e)&&e.getAttribute(`tabindex`)===null&&(e.tabIndex=0);let t=n.useGlobalTarget?window:e;t.addEventListener(`pointerdown`,o,i),e.addEventListener(`focus`,e=>Go(e,i),i)}),a}function Jo(e){return e===`x`||e===`y`?z[e]?null:(z[e]=!0,()=>{z[e]=!1}):z.x||z.y?null:(z.x=z.y=!0,()=>{z.x=z.y=!1})}const Yo=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ha]);let Xo;function Zo(){Xo=void 0}const B={now:()=>(Xo===void 0&&B.set(P.isProcessing||_i.useManualTiming?P.timestamp:performance.now()),Xo),set:e=>{Xo=e,queueMicrotask(Zo)}};function Qo(e,t){e.indexOf(t)===-1&&e.push(t)}function $o(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var es=class{constructor(){this.subscriptions=[]}add(e){return Qo(this.subscriptions,e),()=>$o(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function ts(e,t){return t?e*(1e3/t):0}const ns=e=>!isNaN(parseFloat(e)),rs={current:void 0};var os=class{constructor(e,t={}){this.version=`11.18.2`,this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=B.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=B.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ns(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new es);let n=this.events[e].add(t);return e===`change`?()=>{n(),N.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rs.current&&rs.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=B.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ts(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ss(e,t){return new os(e,t)}function cs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ss(n))}function ls(e,t){let n=ho(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=ua(a[t]);cs(e,t,n)}}function us(e){return!!(F(e)&&e.add)}function ds(e,t){let n=e.getValue(`willChange`);if(us(n))return n.add(t)}function fs(e){return e.props[qi]}const ps={current:!1},ms=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function hs(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ms(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<12);return o}function gs(e,t,n,r){if(e===t&&n===r)return A;let i=t=>hs(t,0,1,e,n);return e=>e===0||e===1?e:ms(i(e),t,r)}const _s=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vs=e=>t=>1-e(1-t),ys=gs(.33,1.53,.69,.99),bs=vs(ys),xs=_s(bs),Ss=e=>(e*=2)<1?.5*bs(e):.5*(2-2**(-10*(e-1))),Cs=e=>1-Math.sin(Math.acos(e)),ws=vs(Cs),Ts=_s(Cs),Es=e=>/^0[^.\s]+$/u.test(e);function Ds(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Es(e)}const Os=e=>Math.round(e*1e5)/1e5,ks=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function As(e){return e==null}const js=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ms=(e,t)=>n=>!!(typeof n==`string`&&js.test(n)&&n.startsWith(e)||t&&!As(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ns=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ks);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ps=e=>I(0,255,e),Fs={...Ca,transform:e=>Math.round(Ps(e))},Is={test:Ms(`rgb`,`red`),parse:Ns(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Fs.transform(e)+`, `+Fs.transform(t)+`, `+Fs.transform(n)+`, `+Os(wa.transform(r))+`)`};function Ls(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Rs={test:Ms(`#`),parse:Ls,transform:Is.transform},zs={test:Ms(`hsl`,`hue`),parse:Ns(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+L.transform(Os(t))+`, `+L.transform(Os(n))+`, `+Os(wa.transform(r))+`)`},V={test:e=>Is.test(e)||Rs.test(e)||zs.test(e),parse:e=>Is.test(e)?Is.parse(e):zs.test(e)?zs.parse(e):Rs.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Is.transform(e):zs.transform(e)},Bs=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vs(e){var t,n;return isNaN(e)&&typeof e==`string`&&((t=e.match(ks))?.length||0)+((n=e.match(Bs))?.length||0)>0}const Hs=`number`,Us=`color`,Ws=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gs(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0,o=t.replace(Ws,e=>(V.test(e)?(r.color.push(a),i.push(Us),n.push(V.parse(e))):e.startsWith(`var(`)?(r.var.push(a),i.push(`var`),n.push(e)):(r.number.push(a),i.push(Hs),n.push(parseFloat(e))),++a,"${}")),s=o.split("${}");return{values:n,split:s,indexes:r,types:i}}function Ks(e){return Gs(e).values}function qs(e){let{split:t,types:n}=Gs(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===Hs?i+=Os(e[a]):t===Us?i+=V.transform(e[a]):i+=e[a]}return i}}const Js=e=>typeof e==`number`?0:e;function Ys(e){let t=Ks(e),n=qs(e);return n(t.map(Js))}const Xs={test:Vs,parse:Ks,createTransformer:qs,getAnimatableNone:Ys},Zs=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Qs(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ks)||[];if(!r)return e;let i=n.replace(r,``),a=Zs.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}const $s=/\b([a-z-]*)\(.*?\)/gu,ec={...Xs,getAnimatableNone:e=>{let t=e.match($s);return t?t.map(Qs).join(` `):e}},tc={...Pa,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:ec,WebkitFilter:ec},nc=e=>tc[e];function rc(e,t){let n=nc(e);return n!==ec&&(n=Xs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ic=new Set([`auto`,`none`,`0`]);function ac(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ic.has(t)&&Gs(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=rc(n,i)}const oc=e=>e===Ca||e===R,sc=(e,t)=>parseFloat(e.split(`, `)[t]),cc=(e,t)=>(n,{transform:r})=>{if(r===`none`||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return sc(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?sc(t[1],e):0}},lc=new Set([`x`,`y`,`z`]),uc=ha.filter(e=>!lc.has(e));function dc(e){let t=[];return uc.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}const fc={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:cc(4,13),y:cc(5,14)};fc.translateX=fc.x,fc.translateY=fc.y;const pc=new Set;let mc=!1,hc=!1;function gc(){if(hc){let e=Array.from(pc).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=dc(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;(r=e.getValue(t))==null||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}hc=!1,mc=!1,pc.forEach(e=>e.complete()),pc.clear()}function _c(){pc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hc=!0)})}function vc(){_c(),gc()}var yc=class{constructor(e,t,n,r,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(pc.add(this),mc||(mc=!0,N.read(_c),N.resolveKeyframes(gc))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(e[i]===null)if(i===0){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),pc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,pc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const bc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),xc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sc(e){let t=xc.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Cc(e,t,n=1){mi(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=Sc(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return bc(e)?parseFloat(e):e}return ba(i)?Cc(i,t,n+1):i}const wc=e=>t=>t.test(e),Tc={test:e=>e===`auto`,parse:e=>e},Ec=[Ca,R,L,Da,ka,Oa,Tc],Dc=e=>Ec.find(wc(e));var Oc=class extends yc{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),ba(r))){let i=Cc(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Yo.has(n)||e.length!==2)return;let[r,i]=e,a=Dc(r),o=Dc(i);if(a!==o)if(oc(a)&&oc(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)Ds(e[t])&&n.push(t);n.length&&ac(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fc[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let a=r.length-1,o=r[a];r[a]=fc[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(e=this.removedTransforms)?.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}};const kc=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Xs.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ac(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function jc(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=kc(i,t),s=kc(a,t);return pi(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!s?!1:Ac(e)||(n===`spring`||So(n))&&r}const Mc=e=>e!==null;function Nc(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(Mc),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var Pc=class{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=B.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&vc(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=B.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:a,onComplete:o,onUpdate:s,isGenerator:c}=this.options;if(!c&&!jc(e,n,r,i))if(ps.current||!a){s&&s(Nc(e,this.options,t)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let l=this.initPlayback(e,t);l!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...l},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type=`keyframes`,this.options.ease=`linear`}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};const H=(e,t,n)=>e+(t-e)*n;function Fc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ic({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Fc(s,r,e+1/3),a=Fc(s,r,e),o=Fc(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Lc(e,t){return n=>n>0?t:e}const Rc=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},zc=[Rs,Is,zs],Bc=e=>zc.find(t=>t.test(e));function Vc(e){let t=Bc(e);if(pi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===zs&&(n=Ic(n)),n}const Hc=(e,t)=>{let n=Vc(e),r=Vc(t);if(!n||!r)return Lc(e,t);let i={...n};return e=>(i.red=Rc(n.red,r.red,e),i.green=Rc(n.green,r.green,e),i.blue=Rc(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),Is.transform(i))},Uc=(e,t)=>n=>t(e(n)),Wc=(...e)=>e.reduce(Uc),Gc=new Set([`none`,`hidden`]);function Kc(e,t){return Gc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qc(e,t){return n=>H(e,t,n)}function Jc(e){return typeof e==`number`?qc:typeof e==`string`?ba(e)?Lc:V.test(e)?Hc:Qc:Array.isArray(e)?Yc:typeof e==`object`?V.test(e)?Hc:Xc:Lc}function Yc(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Jc(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Xc(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Jc(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Zc(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let o=t.types[a],s=e.indexes[o][i[o]],c=(n=e.values[s])??0;r[a]=c,i[o]++}return r}const Qc=(e,t)=>{let n=Xs.createTransformer(t),r=Gs(e),i=Gs(t),a=r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length;return a?Gc.has(e)&&!i.values.length||Gc.has(t)&&!r.values.length?Kc(e,t):Wc(Yc(Zc(r,i),i.values),n):(pi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Lc(e,t))};function $c(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return H(e,t,n);let r=Jc(e);return r(e,t)}function el(e,t,n){let r=Math.max(t-5,0);return ts(n-e(r),t-r)}const U={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},tl=.001;function nl({duration:e=U.duration,bounce:t=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,a;pi(e<=j(U.maxDuration),`Spring duration must be 10 seconds or less`);let o=1-t;o=I(U.minDamping,U.maxDamping,o),e=I(U.minDuration,U.maxDuration,M(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=il(t,o),c=Math.exp(-i);return tl-a/s*c},a=t=>{let r=t*o,a=r*e,s=a*n+n,c=o**2*t**2*e,l=Math.exp(-a),u=il(t**2,o),d=-i(t)+tl>0?-1:1;return d*((s-c)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-tl+r*i},a=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,c=rl(i,a,s);if(e=j(e),isNaN(c))return{stiffness:U.stiffness,damping:U.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function rl(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}function il(e,t){return e*Math.sqrt(1-t*t)}const al=[`duration`,`bounce`],ol=[`stiffness`,`damping`,`mass`];function sl(e,t){return t.some(t=>e[t]!==void 0)}function cl(e){let t={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...e};if(!sl(e,ol)&&sl(e,al))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*I(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U.mass,stiffness:i,damping:a}}else{let n=nl(e);t={...t,...n,mass:U.mass},t.isResolvedFromDuration=!0}return t}function ll(e=U.visualDuration,t=U.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=cl({...n,velocity:-M(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=M(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?U.restSpeed.granular:U.restSpeed.default,i||=v?U.restDelta.granular:U.restDelta.default;let y;if(h<1){let e=il(_,h);y=t=>{let n=Math.exp(-h*_*t);return o-n*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=0;h<1&&(n=e===0?j(m):el(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(xo(b),bo),t=Oo(t=>b.next(e*t).value,e,30);return e+`ms `+t}};return b}function ul({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=ll({keyframes:[f.value,m(f.value)],velocity:el(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}const dl=gs(.42,0,1,1),fl=gs(0,0,.58,1),pl=gs(.42,0,.58,1),ml=e=>Array.isArray(e)&&typeof e[0]!=`number`,hl={linear:A,easeIn:dl,easeInOut:pl,easeOut:fl,circIn:Cs,circInOut:Ts,circOut:ws,backIn:bs,backInOut:xs,backOut:ys,anticipate:Ss},gl=e=>{if(wo(e)){mi(e.length===4,`Cubic bezier arrays must contain four numerical values.`);let[t,n,r,i]=e;return gs(t,n,r,i)}else if(typeof e==`string`)return mi(hl[e]!==void 0,`Invalid easing type '${e}'`),hl[e];return e};function _l(e,t,n){let r=[],i=n||$c,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||A:t;a=Wc(e,a)}r.push(a)}return r}function vl(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(mi(a===t.length,`Both input and output ranges must be the same length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=_l(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=gi(e[r],e[r+1],n);return s[r](i)};return n?t=>l(I(e[0],e[a-1],t)):l}function yl(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=gi(0,t,r);e.push(H(n,1,i))}}function bl(e){let t=[0];return yl(t,e.length-1),t}function xl(e,t){return e.map(e=>e*t)}function Sl(e,t){return e.map(()=>t||pl).splice(0,e.length-1)}function Cl({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ml(r)?r.map(gl):gl(r),a={done:!1,value:t[0]},o=xl(n&&n.length===t.length?n:bl(t),e),s=vl(o,t,{ease:Array.isArray(i)?i:Sl(t,i)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const wl=e=>{let t=({timestamp:t})=>e(t);return{start:()=>N.update(t,!0),stop:()=>xi(t),now:()=>P.isProcessing?P.timestamp:B.now()}},Tl={decay:ul,inertia:ul,tween:Cl,keyframes:Cl,spring:ll},El=e=>e/100;var Dl=class extends Pc{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState=`running`,this.startTime=null,this.state=`idle`,this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state===`idle`)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options,a=r?.KeyframeResolver||yc,o=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new a(i,o,t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t=`keyframes`,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=this.options,o=So(t)?t:Tl[t]||Cl,s,c;o!==Cl&&typeof e[0]!=`number`&&(s=Wc(El,$c(e[0],e[1])),e=[0,100]);let l=o({...this.options,keyframes:e});i===`mirror`&&(c=o({...this.options,keyframes:[...e].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=xo(l));let{calculatedDuration:u}=l,d=u+r,f=d*(n+1)-r;return{generator:l,mirroredGenerator:c,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:f}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState===`paused`||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:s,calculatedDuration:c,totalDuration:l,resolvedDuration:u}=n;if(this.startTime===null)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:m,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-l/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime===null?this.currentTime=Math.round(e-this.startTime)*this.speed:this.currentTime=this.holdTime;let g=this.currentTime-d*(this.speed>=0?1:-1),_=this.speed>=0?g<0:g>l;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=l);let v=this.currentTime,y=i;if(f){let e=Math.min(this.currentTime,l)/u,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,f+1);let r=!!(t%2);r&&(p===`reverse`?(n=1-n,m&&(n-=m/u)):p===`mirror`&&(y=a)),v=I(0,1,n)*u}let b=_?{done:!1,value:s[0]}:y.next(v);o&&(b.value=o(b.value));let{done:x}=b;!_&&c!==null&&(x=this.speed>=0?this.currentTime>=l:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&r!==void 0&&(b.value=Nc(s,this.options,r)),h&&h(b.value),S&&this.finish(),b}get duration(){let{resolved:e}=this;return e?M(e.calculatedDuration):0}get time(){return M(this.currentTime)}set time(e){e=j(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=M(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState=`running`;return}if(this.isStopped)return;let{driver:e=wl,onPlay:t,startTime:n}=this.options;this.driver||=e(e=>this.tick(e)),t&&t();let r=this.driver.now();this.holdTime===null?this.startTime?this.state===`finished`&&(this.startTime=r):this.startTime=n??this.calcStartTime():this.startTime=r-this.holdTime,this.state===`finished`&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state=`running`,this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState=`paused`;return}this.state=`paused`,this.holdTime=(e=this.currentTime)??0}complete(){this.state!==`running`&&this.play(),this.pendingPlayState=this.state=`finished`,this.holdTime=null}finish(){this.teardown(),this.state=`finished`;let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state=`idle`,this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}};const Ol=new Set([`opacity`,`clipPath`,`filter`,`transform`]);function kl(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeInOut`,times:c}={}){let l={[t]:n};c&&(l.offset=c);let u=Mo(s,i);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:i,easing:Array.isArray(u)?`linear`:u,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`})}const Al=hi(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function jl(e){return So(e.type)||e.type===`spring`||!ko(e.ease)}function Ml(e,t){let n=new Dl({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],a=0;for(;!r.done&&a<2e4;)r=n.sample(a),i.push(r.value),a+=10;return{times:void 0,keyframes:i,duration:a-10,ease:`linear`}}const Nl={anticipate:Ss,backInOut:xs,circInOut:Ts};function Pl(e){return e in Nl}var Fl=class extends Pc{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new Oc(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:i,type:a,motionValue:o,name:s,startTime:c}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i==`string`&&Do()&&Pl(i)&&(i=Nl[i]),jl(this.options)){let{onComplete:t,onUpdate:o,motionValue:s,element:c,...l}=this.options,u=Ml(e,l);e=u.keyframes,e.length===1&&(e[1]=e[0]),n=u.duration,r=u.times,i=u.ease,a=`keyframes`}let l=kl(o.owner.current,s,e,{...this.options,duration:n,times:r,ease:i});return l.startTime=c??this.calcStartTime(),this.pendingTimeline?(Co(l,this.pendingTimeline),this.pendingTimeline=void 0):l.onfinish=()=>{let{onComplete:n}=this.options;o.set(Nc(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:l,duration:n,times:r,type:a,ease:i,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return M(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return M(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=j(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return`idle`;let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return A;let{animation:n}=t;Co(n,e)}return A}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState===`finished`&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state===`idle`)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:a,times:o}=e;if(t.playState===`idle`||t.playState===`finished`)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,element:c,...l}=this.options,u=new Dl({...l,keyframes:n,duration:r,type:i,ease:a,times:o,isGenerator:!0}),d=j(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}let{onStop:s}=this.options;s&&s(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return Al()&&n&&Ol.has(n)&&!s&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}};const Il={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ll=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Rl={type:`keyframes`,duration:.8},zl={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Bl=(e,{keyframes:t})=>t.length>2?Rl:ga.has(e)?e.startsWith(`scale`)?Ll(t[1]):Il:zl;function Vl({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Hl=(e,t,n,r={},i,a)=>o=>{let s=yo(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=j(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Vl(s)||(u={...u,...Bl(e,u)}),u.duration&&=j(u.duration),u.repeatDelay&&=j(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),(ps.current||_i.skipAnimations)&&(d=!0,u.duration=0,u.delay=0),d&&!a&&t.get()!==void 0){let e=Nc(u.keyframes,s);if(e!==void 0)return N.update(()=>{u.onUpdate(e),u.onComplete()}),new vo([])}return!a&&Fl.supports(u)?new Fl(u):new Dl(u)};function Ul({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...c}=t;r&&(o=r);let l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(let t in c){let r=e.getValue(t,(a=e.latestValues[t])??null),i=c[t];if(i===void 0||u&&Ul(u,t))continue;let s={delay:n,...yo(o||{},t)},d=!1;if(window.MotionHandoffAnimation){let n=fs(e);if(n){let e=window.MotionHandoffAnimation(n,t,N);e!==null&&(s.startTime=e,d=!0)}}ds(e,t),r.start(Hl(t,r,i,e.shouldReduceMotion&&Yo.has(t)?{type:!1}:s,e,d));let f=r.animation;f&&l.push(f)}return s&&Promise.all(l).then(()=>{N.update(()=>{s&&ls(e,s)})}),l}function Gl(e,t,n={}){var r;let i=ho(e,t,n.type===`exit`?(r=e.presenceContext)?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>Promise.all(Wl(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return Kl(e,t,i+r,o,s,n)}:()=>Promise.resolve(),{when:c}=a;if(c){let[e,t]=c===`beforeChildren`?[o,s]:[s,o];return e().then(()=>t())}else return Promise.all([o(),s(n.delay)])}function Kl(e,t,n=0,r=0,i=1,a){let o=[],s=(e.variantChildren.size-1)*r,c=i===1?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(ql).forEach((e,r)=>{e.notify(`AnimationStart`,t),o.push(Gl(e,t,{...a,delay:n+c(r)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(o)}function ql(e,t){return e.sortNodePosition(t)}function Jl(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Gl(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Gl(e,t,n);else{let i=typeof t==`function`?ho(e,t,n.custom):t;r=Promise.all(Wl(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}const Yl=Li.length;function Xl(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Xl(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Yl;n++){let r=Li[n],i=e.props[r];(Pi(i)||i===!1)&&(t[r]=i)}return t}const Zl=[...Ii].reverse(),Ql=Ii.length;function $l(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Jl(e,t,n)))}function eu(e){let t=$l(e),n=ru(),r=!0,i=t=>(n,r)=>{var i;let a=ho(e,r,t===`exit`?(i=e.presenceContext)?.custom:void 0);if(a){let{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=Xl(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<Ql;t++){let f=Zl[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=Pi(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||Fi(m)||typeof m==`boolean`)continue;let v=tu(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ca(t)&&ca(n)?!mo(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let ee=_&&v,te=!ee||b;y&&te&&c.push(...x.map(e=>({animation:e,options:{type:f}})))}if(l.size){let t={};l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){var i;if(n[t].isActive===r)return Promise.resolve();(i=e.variantChildren)==null||i.forEach(e=>{var n;return(n=e.animationState)?.setActive(t,r)}),n[t].isActive=r;let a=o(t);for(let e in n)n[e].protectedKeys={};return a}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=ru(),r=!0}}}function tu(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!mo(t,e):!1}function nu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ru(){return{animate:nu(!0),whileInView:nu(),whileHover:nu(),whileTap:nu(),whileDrag:nu(),whileFocus:nu(),exit:nu()}}var iu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},au=class extends iu{constructor(e){super(e),e.animationState||=eu(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Fi(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}};let ou=0;var su=class extends iu{constructor(){super(...arguments),this.id=ou++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const cu={animation:{Feature:au},exit:{Feature:su}};function lu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function uu(e){return{point:{x:e.pageX,y:e.pageY}}}const du=e=>t=>zo(t)&&e(t,uu(t));function fu(e,t,n,r){return lu(e,t,du(n),r)}const pu=(e,t)=>Math.abs(e-t);function mu(e,t){let n=pu(e.x,t.x),r=pu(e.y,t.y);return Math.sqrt(n**2+r**2)}var hu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=vu(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=mu(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=P;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=gu(t,this.transformPagePoint),N.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=vu(e.type===`pointercancel`?this.lastMoveEventInfo:gu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!zo(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let a=uu(e),o=gu(a,this.transformPagePoint),{point:s}=o,{timestamp:c}=P;this.history=[{...s,timestamp:c}];let{onSessionStart:l}=t;l&&l(e,vu(o,this.history)),this.removeListeners=Wc(fu(this.contextWindow,`pointermove`,this.handlePointerMove),fu(this.contextWindow,`pointerup`,this.handlePointerUp),fu(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),xi(this.updatePoint)}};function gu(e,t){return t?{point:t(e.point)}:e}function _u(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vu({point:e},t){return{point:e,delta:_u(e,bu(t)),offset:_u(e,yu(t)),velocity:xu(t,.1)}}function yu(e){return e[0]}function bu(e){return e[e.length-1]}function xu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=bu(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>j(t)));)n--;if(!r)return{x:0,y:0};let a=M(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Su=1e-4;1-Su,1+Su;const Cu=.01;0-Cu,0+Cu;function W(e){return e.max-e.min}function wu(e,t,n){return Math.abs(e-t)<=n}function Tu(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=W(n)/W(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Eu(e,t,n,r){Tu(e.x,t.x,n.x,r?r.originX:void 0),Tu(e.y,t.y,n.y,r?r.originY:void 0)}function Du(e,t,n){e.min=n.min+t.min,e.max=e.min+W(t)}function Ou(e,t,n){Du(e.x,t.x,n.x),Du(e.y,t.y,n.y)}function ku(e,t,n){e.min=t.min-n.min,e.max=e.min+W(t)}function Au(e,t,n){ku(e.x,t.x,n.x),ku(e.y,t.y,n.y)}function ju(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function Mu(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Nu(e,{top:t,left:n,bottom:r,right:i}){return{x:Mu(e.x,n,i),y:Mu(e.y,t,r)}}function Pu(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Fu(e,t){return{x:Pu(e.x,t.x),y:Pu(e.y,t.y)}}function Iu(e,t){let n=.5,r=W(e),i=W(t);return i>r?n=gi(t.min,t.max-r,e.min):r>i&&(n=gi(e.min,e.max-i,t.min)),I(0,1,n)}function Lu(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ru=.35;function zu(e=Ru){return e===!1?e=0:e===!0&&(e=Ru),{x:Bu(e,`left`,`right`),y:Bu(e,`top`,`bottom`)}}function Bu(e,t,n){return{min:Vu(e,t),max:Vu(e,n)}}function Vu(e,t){return typeof e==`number`?e:e[t]||0}const Hu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Uu=()=>({x:Hu(),y:Hu()}),Wu=()=>({min:0,max:0}),G=()=>({x:Wu(),y:Wu()});function K(e){return[e(`x`),e(`y`)]}function Gu({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ku({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qu(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ju(e){return e===void 0||e===1}function Yu({scale:e,scaleX:t,scaleY:n}){return!Ju(e)||!Ju(t)||!Ju(n)}function Xu(e){return Yu(e)||Zu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zu(e){return Qu(e.x)||Qu(e.y)}function Qu(e){return e&&e!==`0%`}function $u(e,t,n){let r=e-n,i=t*r;return n+i}function ed(e,t,n,r,i){return i!==void 0&&(e=$u(e,i,r)),$u(e,n,r)+t}function td(e,t=0,n=1,r,i){e.min=ed(e.min,t,n,r,i),e.max=ed(e.max,t,n,r,i)}function nd(e,{x:t,y:n}){td(e.x,t.translate,t.scale,t.originPoint),td(e.y,n.translate,n.scale,n.originPoint)}const rd=.999999999999,id=1.0000000000001;function ad(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&cd(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nd(e,o)),r&&Xu(a.latestValues)&&cd(e,a.latestValues))}t.x<id&&t.x>rd&&(t.x=1),t.y<id&&t.y>rd&&(t.y=1)}function od(e,t){e.min+=t,e.max+=t}function sd(e,t,n,r,i=.5){let a=H(e.min,e.max,i);td(e,t,n,a,r)}function cd(e,t){sd(e.x,t.x,t.scaleX,t.scale,t.originX),sd(e.y,t.y,t.scaleY,t.scale,t.originY)}function ld(e,t){return Gu(qu(e.getBoundingClientRect(),t))}function ud(e,t,n){let r=ld(e,n),{scroll:i}=t;return i&&(od(r.x,i.offset.x),od(r.y,i.offset.y)),r}const dd=({current:e})=>e?e.ownerDocument.defaultView:null,fd=new WeakMap;var pd=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(uu(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Jo(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),K(e=>{let t=this.getAxisMotionValue(e).get()||0;if(L.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=W(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&N.postRender(()=>i(e,t)),ds(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},a=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=hd(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},o=(e,t)=>this.stop(e,t),s=()=>K(e=>{var t;return this.getAnimationState(e)===`paused`&&(t=this.getAxisMotionValue(e).animation)?.play()}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new hu(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:dd(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&N.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!md(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ju(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)?.layout,i=this.constraints;t&&Wi(t)?this.constraints||=this.resolveRefConstraints():t&&r?this.constraints=Nu(r.layoutBox,t):this.constraints=!1,this.elastic=zu(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&K(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Lu(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Wi(e))return!1;let n=e.current;mi(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=ud(n,r.root,this.visualElement.getTransformPagePoint()),a=Fu(r.layout.layoutBox,i);if(t){let e=t(Ku(a));this.hasMutatedConstraints=!!e,e&&(a=Gu(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=K(o=>{if(!md(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ds(this.visualElement,e),n.start(Hl(e,n,0,t,this.visualElement,!1))}stopAnimation(){K(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){K(e=>{var t;return(t=this.getAxisMotionValue(e).animation)?.pause()})}getAnimationState(e){var t;return(t=this.getAxisMotionValue(e).animation)?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){K(t=>{let{drag:n}=this.getProps();if(!md(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-H(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Wi(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};K(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Iu({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),K(t=>{if(!md(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(H(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;fd.set(this.visualElement,this);let e=this.visualElement.current,t=fu(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Wi(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),N.read(n);let a=lu(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(K(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Ru,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function md(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function hd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var gd=class extends iu{constructor(e){super(e),this.removeGroupControls=A,this.removeListeners=A,this.controls=new pd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}unmount(){this.removeGroupControls(),this.removeListeners()}};const _d=e=>(t,n)=>{e&&N.postRender(()=>e(t,n))};var vd=class extends iu{constructor(){super(...arguments),this.removePointerDownListener=A}onPointerDown(e){this.session=new hu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dd(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:_d(e),onStart:_d(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&N.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=fu(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const yd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xd={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(R.test(e))e=parseFloat(e);else return e;let n=bd(e,t.target.x),r=bd(e,t.target.y);return`${n}% ${r}%`}},Sd={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Xs.parse(e);if(i.length>5)return r;let a=Xs.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=H(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}};var Cd=class extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Qa(Td),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),yd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,a=n.projection;return a?(a.isPresent=i,r||e.layoutDependency!==t||t===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||N.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ji.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function wd(e){let[t,n]=ui(),r=(0,b.useContext)(oi);return(0,O.jsx)(Cd,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(Xi),isPresent:t,safeToRemove:n})}const Td={borderRadius:{...xd,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:xd,borderTopRightRadius:xd,borderBottomLeftRadius:xd,borderBottomRightRadius:xd,boxShadow:Sd};function Ed(e,t,n){let r=F(e)?e:ss(e);return r.start(Hl(``,r,t,n)),r.animation}function Dd(e){return e instanceof SVGElement&&e.tagName!==`svg`}const Od=(e,t)=>e.depth-t.depth;var kd=class{constructor(){this.children=[],this.isDirty=!1}add(e){Qo(this.children,e),this.isDirty=!0}remove(e){$o(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Od),this.isDirty=!1,this.children.forEach(e)}};function Ad(e,t){let n=B.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(xi(r),e(a-t))};return N.read(r,!0),()=>xi(r)}const jd=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],Md=jd.length,Nd=e=>typeof e==`string`?parseFloat(e):e,Pd=e=>typeof e==`number`||R.test(e);function Fd(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity===void 0?1:n.opacity,Ld(r)),e.opacityExit=H(t.opacity===void 0?1:t.opacity,0,Rd(r))):a&&(e.opacity=H(t.opacity===void 0?1:t.opacity,n.opacity===void 0?1:n.opacity,r));for(let i=0;i<Md;i++){let a=`border${jd[i]}Radius`,o=Id(t,a),s=Id(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||Pd(o)===Pd(s);c?(e[a]=Math.max(H(Nd(o),Nd(s),r),0),(L.test(s)||L.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function Id(e,t){return e[t]===void 0?e.borderRadius:e[t]}const Ld=zd(0,.5,ws),Rd=zd(.5,.95,A);function zd(e,t,n){return r=>r<e?0:r>t?1:n(gi(e,t,r))}function Bd(e,t){e.min=t.min,e.max=t.max}function q(e,t){Bd(e.x,t.x),Bd(e.y,t.y)}function Vd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Hd(e,t,n,r,i){return e-=t,e=$u(e,1/n,r),i!==void 0&&(e=$u(e,1/i,r)),e}function Ud(e,t=0,n=1,r=.5,i,a=e,o=e){if(L.test(t)){t=parseFloat(t);let e=H(o.min,o.max,t/100);t=e-o.min}if(typeof t!=`number`)return;let s=H(a.min,a.max,r);e===a&&(s-=t),e.min=Hd(e.min,t,n,s,i),e.max=Hd(e.max,t,n,s,i)}function Wd(e,t,[n,r,i],a,o){Ud(e,t[n],t[r],t[i],t.scale,a,o)}const Gd=[`x`,`scaleX`,`originX`],Kd=[`y`,`scaleY`,`originY`];function qd(e,t,n,r){Wd(e.x,t,Gd,n?n.x:void 0,r?r.x:void 0),Wd(e.y,t,Kd,n?n.y:void 0,r?r.y:void 0)}function Jd(e){return e.translate===0&&e.scale===1}function Yd(e){return Jd(e.x)&&Jd(e.y)}function Xd(e,t){return e.min===t.min&&e.max===t.max}function Zd(e,t){return Xd(e.x,t.x)&&Xd(e.y,t.y)}function Qd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $d(e,t){return Qd(e.x,t.x)&&Qd(e.y,t.y)}function ef(e){return W(e.x)/W(e.y)}function tf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var nf=class{constructor(){this.members=[]}add(e){Qo(this.members,e),e.scheduleRender()}remove(e){if($o(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function rf(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}const af={type:`projectionFrame`,totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},sf=typeof window<`u`&&window.MotionDebug!==void 0,cf=[``,`X`,`Y`,`Z`],lf={visibility:`hidden`},uf=1e3;let df=0;function ff(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function pf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=fs(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,N,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&pf(r)}function mf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=df++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sf&&(af.totalNodes=af.resolvedTargetDeltas=af.recalculatedProjection=0),this.nodes.forEach(_f),this.nodes.forEach(wf),this.nodes.forEach(Tf),this.nodes.forEach(vf),sf&&window.MotionDebug.record(af)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new kd)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new es),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Dd(t),this.instance=t;let{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Ad(r,250),yd.hasAnimatedSinceResize&&(yd.hasAnimatedSinceResize=!1,this.nodes.forEach(Cf))})}r&&this.root.registerSharedNode(r,this),this.options.animate!==!1&&a&&(r||i)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||Mf,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),c=!this.targetLayout||!$d(this.targetLayout,r)||n,l=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);let t={...yo(i,`layout`),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Cf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,xi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ef),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(bf);return}this.isUpdating||this.nodes.forEach(xf),this.isUpdating=!1,this.nodes.forEach(Sf),this.nodes.forEach(hf),this.nodes.forEach(gf),this.clearAllSnapshots();let t=B.now();P.delta=I(0,1e3/60,t-P.timestamp),P.timestamp=t,P.isProcessing=!0,Si.update.process(P),Si.preRender.process(P),Si.render.process(P),P.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ji.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yf),this.sharedNodes.forEach(Df)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,N.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){N.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=G(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Yd(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||Xu(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),If(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return G();let n=t.measureViewportBox(),r=(e=this.scroll)?.wasRoot||this.path.some(Rf);if(!r){let{scroll:e}=this.root;e&&(od(n.x,e.offset.x),od(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=G();if(q(n,e),(t=this.scroll)?.wasRoot)return n;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&q(n,e),od(n.x,i.offset.x),od(n.y,i.offset.y))}return n}applyTransform(e,t=!1){let n=G();q(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&cd(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Xu(r.latestValues)&&cd(n,r.latestValues)}return Xu(this.latestValues)&&cd(n,this.latestValues),n}removeTransform(e){let t=G();q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!Xu(n.latestValues))continue;Yu(n.latestValues)&&n.updateSnapshot();let r=G(),i=n.measurePageBox();q(r,i),qd(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Xu(this.latestValues)&&qd(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==P.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;let n=this.getLead();this.isProjectionDirty||=n.isProjectionDirty,this.isTransformDirty||=n.isTransformDirty,this.isSharedProjectionDirty||=n.isSharedProjectionDirty;let r=!!this.resumingFrom||this!==n,i=!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(t=this.parent)?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(i)return;let{layout:a,layoutId:o}=this.options;if(!(!this.layout||!(a||o))){if(this.resolvedRelativeTargetAt=P.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),Au(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ou(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):q(this.target,this.layout.layoutBox),nd(this.target,this.targetDelta)):q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),Au(this.relativeTargetOrigin,this.target,e.target),q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sf&&af.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Yu(this.parent.latestValues)||Zu(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(e=this.parent)?.isProjectionDirty)&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===P.timestamp&&(r=!1),r)return;let{layout:i,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||a))return;q(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;ad(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=G());let{target:c}=t;if(!c){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vd(this.prevProjectionDelta.x,this.projectionDelta.x),Vd(this.prevProjectionDelta.y,this.projectionDelta.y)),Eu(this.projectionDelta,this.layoutCorrected,c,this.latestValues),(this.treeScale.x!==o||this.treeScale.y!==s||!tf(this.projectionDelta.x,this.prevProjectionDelta.x)||!tf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,c)),sf&&af.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if((t=this.options.visualElement)==null||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Uu(),this.projectionDelta=Uu(),this.projectionDeltaWithTransform=Uu()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Uu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=G(),s=n?n.source:void 0,c=this.layout?this.layout.source:void 0,l=s!==c,u=this.getStack(),d=!u||u.members.length<=1,f=!!(l&&!d&&this.options.crossfade===!0&&!this.path.some(jf));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;Of(a.x,e.x,n),Of(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Au(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Af(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&Zd(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=G(),q(p,this.relativeTarget)),l&&(this.animationValues=i,Fd(i,r,this.latestValues,n,f,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=N.update(()=>{yd.hasAnimatedSinceResize=!0,this.currentAnimation=Ed(0,uf,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Lf(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=W(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=W(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q(t,n),cd(t,i),Eu(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nf);let n=this.sharedNodes.get(e);n.add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){var e;let{layoutId:t}=this.options;return t&&(e=this.getStack())?.lead||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?(e=this.getStack())?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ff(`z`,e,r,this.animationValues);for(let t=0;t<cf.length;t++)ff(`rotate${cf[t]}`,e,r,this.animationValues),ff(`skew${cf[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return lf;let r={visibility:``},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity=``,r.pointerEvents=da(e?.pointerEvents)||``,r.transform=i?i(this.latestValues,``):`none`,r;let a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){let t={};return this.options.layoutId&&(t.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,t.pointerEvents=da(e?.pointerEvents)||``),this.hasProjected&&!Xu(this.latestValues)&&(t.transform=i?i({},``):`none`,this.hasProjected=!1),t}let o=a.animationValues||a.latestValues;this.applyTransformsToTarget(),r.transform=rf(this.projectionDeltaWithTransform,this.treeScale,o),i&&(r.transform=i(o,r.transform));let{x:s,y:c}=this.projectionDelta;for(let e in r.transformOrigin=`${s.origin*100}% ${c.origin*100}% 0`,a.animationValues?r.opacity=a===this?(n=(t=o.opacity)??this.latestValues.opacity)??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=a===this?o.opacity===void 0?``:o.opacity:o.opacityExit===void 0?0:o.opacityExit,Za){if(o[e]===void 0)continue;let{correct:t,applyTo:n}=Za[e],i=r.transform===`none`?o[e]:t(o[e],a);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=a===this?da(e?.pointerEvents)||``:`none`),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return(t=e.currentAnimation)?.stop()}),this.root.nodes.forEach(bf),this.root.sharedNodes.clear()}}}function hf(e){e.updateLayout()}function gf(e){var t;let n=(t=e.resumeFrom)?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners(`didUpdate`)){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i===`size`?K(e=>{let r=a?n.measuredBox[e]:n.layoutBox[e],i=W(r);r.min=t[e].min,r.max=r.min+i}):Lf(i,n.layoutBox,t)&&K(r=>{let i=a?n.measuredBox[r]:n.layoutBox[r],o=W(t[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Uu();Eu(o,t,n.layoutBox);let s=Uu();a?Eu(s,e.applyTransform(r,!0),n.measuredBox):Eu(s,t,n.layoutBox);let c=!Yd(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=G();Au(o,n.layoutBox,i.layoutBox);let s=G();Au(s,t,a.layoutBox),$d(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:t,snapshot:n,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function _f(e){sf&&af.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function vf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yf(e){e.clearSnapshot()}function bf(e){e.clearMeasurements()}function xf(e){e.isLayoutDirty=!1}function Sf(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Cf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function wf(e){e.resolveTargetDelta()}function Tf(e){e.calcProjection()}function Ef(e){e.resetSkewAndRotation()}function Df(e){e.removeLeadSnapshot()}function Of(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kf(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function Af(e,t,n,r){kf(e.x,t.x,n.x,r),kf(e.y,t.y,n.y,r)}function jf(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Mf={duration:.45,ease:[.4,0,.1,1]},Nf=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Pf=Nf(`applewebkit/`)&&!Nf(`chrome/`)?Math.round:A;function Ff(e){e.min=Pf(e.min),e.max=Pf(e.max)}function If(e){Ff(e.x),Ff(e.y)}function Lf(e,t,n){return e===`position`||e===`preserve-aspect`&&!wu(ef(t),ef(n),.2)}function Rf(e){var t;return e!==e.root&&(t=e.scroll)?.wasRoot}const zf=mf({attachResizeListener:(e,t)=>lu(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bf={current:void 0},Vf=mf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bf.current){let e=new zf({});e.mount(window),e.setOptions({layoutScroll:!0}),Bf.current=e}return Bf.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Hf={pan:{Feature:vd},drag:{Feature:gd,ProjectionNode:Vf,MeasureLayout:wd}};function Uf(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=`onHover`+n,a=r[i];a&&N.postRender(()=>a(t,uu(t)))}var Wf=class extends iu{mount(){let{current:e}=this.node;e&&(this.unmount=Lo(e,e=>(Uf(this.node,e,`Start`),e=>Uf(this.node,e,`End`))))}unmount(){}},Gf=class extends iu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Wc(lu(this.node.current,`focus`,()=>this.onFocus()),lu(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Kf(e,t,n){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=`onTap`+(n===`End`?``:n),a=r[i];a&&N.postRender(()=>a(t,uu(t)))}var qf=class extends iu{mount(){let{current:e}=this.node;e&&(this.unmount=qo(e,e=>(Kf(this.node,e,`Start`),(e,{success:t})=>Kf(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Jf=new WeakMap,Yf=new WeakMap,Xf=e=>{let t=Jf.get(e.target);t&&t(e)},Zf=e=>{e.forEach(Xf)};function Qf({root:e,...t}){let n=e||document;Yf.has(n)||Yf.set(n,{});let r=Yf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Zf,{root:e,...t})),r[i]}function $f(e,t,n){let r=Qf(t);return Jf.set(e,n),r.observe(e),()=>{Jf.delete(e),r.unobserve(e)}}const ep={some:0,all:1};var tp=class extends iu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ep[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};return $f(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node,n=[`amount`,`margin`,`root`].some(np(e,t));n&&this.startObserver()}unmount(){}};function np({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rp={inView:{Feature:tp},tap:{Feature:qf},focus:{Feature:Gf},hover:{Feature:Wf}},ip={layout:{ProjectionNode:Vf,MeasureLayout:wd}},ap={current:null},op={current:!1};function sp(){if(op.current=!0,di)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ap.current=e.matches;e.addListener(t),t()}else ap.current=!1}const cp=[...Ec,V,Xs],lp=e=>cp.find(wc(e)),up=new WeakMap;function dp(e,t,n){for(let r in t){let i=t[r],a=n[r];if(F(i))e.addValue(r,i);else if(F(a))e.addValue(r,ss(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ss(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const fp=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var pp=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=B.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,N.render(this.render,!1,!0))};let{latestValues:s,renderState:c,onUpdate:l}=a;this.onUpdate=l,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=Ri(t),this.isVariantNode=zi(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];s[e]!==void 0&&F(t)&&t.set(s[e],!1)}}mount(e){this.current=e,up.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),op.current||sp(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:ap.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in up.delete(this.current),this.projection&&this.projection.unmount(),xi(this.notifyUpdate),xi(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=ga.has(e),r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&N.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on(`renderRequest`,this.scheduleRender),a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i(),a&&a(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ti){let t=Ti[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<fp.length;t++){let n=fp[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=`on`+n,i=e[r];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=dp(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ss(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r==`string`&&(bc(r)||Es(r))?r=parseFloat(r):!lp(r)&&Xs.test(t)&&(r=rc(e,t)),this.setBaseTarget(e,F(r)?r.get():r)),F(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r;if(typeof n==`string`||typeof n==`object`){let i=sa(this.props,n,(t=this.presenceContext)?.custom);i&&(r=i[e])}if(n&&r!==void 0)return r;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!F(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new es),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},mp=class extends pp{constructor(){super(...arguments),this.KeyframeResolver=Oc}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;F(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function hp(e){return window.getComputedStyle(e)}var gp=class extends mp{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ja}readValueFromInstance(e,t){if(ga.has(t)){let e=nc(t);return e&&e.default||0}else{let n=hp(e),r=(va(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ld(e,t)}build(e,t,n){Ra(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return eo(e,t,n)}},_p=class extends mp{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ga.has(t)){let e=nc(t);return e&&e.default||0}return t=Ya.has(t)?t:Ki(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return to(e,t,n)}build(e,t,n){Wa(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Xa(e,t,n,r)}mount(e){this.isSVGTag=qa(e.tagName),super.mount(e)}};const vp=(e,t)=>aa(e)?new _p(t):new gp(t,{allowProjection:e!==b.Fragment}),yp=po({...cu,...rp,...Hf,...ip},vp),bp=Mi(yp);function xp(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Sp({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){let i=n||(typeof window>`u`?class{}:window.ResizeObserver);if(!i)throw Error(`This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills`);let[a,o]=(0,b.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),s=(0,b.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a,orientationHandler:null}),c=e?typeof e==`number`?e:e.scroll:null,l=e?typeof e==`number`?e:e.resize:null,u=(0,b.useRef)(!1);(0,b.useEffect)(()=>(u.current=!0,()=>void(u.current=!1)));let[d,f,p]=(0,b.useMemo)(()=>{let e=()=>{if(!s.current.element)return;let{left:e,top:t,width:n,height:i,bottom:a,right:c,x:l,y:d}=s.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:i,bottom:a,right:c,x:l,y:d};s.current.element instanceof HTMLElement&&r&&(f.height=s.current.element.offsetHeight,f.width=s.current.element.offsetWidth),Object.freeze(f),u.current&&!Dp(s.current.lastBounds,f)&&o(s.current.lastBounds=f)};return[e,l?xp(e,l):e,c?xp(e,c):e]},[o,r,c,l]);function m(){s.current.scrollContainers&&(s.current.scrollContainers.forEach(e=>e.removeEventListener(`scroll`,p,!0)),s.current.scrollContainers=null),s.current.resizeObserver&&(s.current.resizeObserver.disconnect(),s.current.resizeObserver=null),s.current.orientationHandler&&(`orientation`in screen&&`removeEventListener`in screen.orientation?screen.orientation.removeEventListener(`change`,s.current.orientationHandler):`onorientationchange`in window&&window.removeEventListener(`orientationchange`,s.current.orientationHandler))}function h(){s.current.element&&(s.current.resizeObserver=new i(p),s.current.resizeObserver.observe(s.current.element),t&&s.current.scrollContainers&&s.current.scrollContainers.forEach(e=>e.addEventListener(`scroll`,p,{capture:!0,passive:!0})),s.current.orientationHandler=()=>{p()},`orientation`in screen&&`addEventListener`in screen.orientation?screen.orientation.addEventListener(`change`,s.current.orientationHandler):`onorientationchange`in window&&window.addEventListener(`orientationchange`,s.current.orientationHandler))}let g=e=>{!e||e===s.current.element||(m(),s.current.element=e,s.current.scrollContainers=Tp(e),h())};return wp(p,!!t),Cp(f),(0,b.useEffect)(()=>{m(),h()},[t,p,f]),(0,b.useEffect)(()=>m,[]),[g,a,d]}function Cp(e){(0,b.useEffect)(()=>{let t=e;return window.addEventListener(`resize`,t),()=>void window.removeEventListener(`resize`,t)},[e])}function wp(e,t){(0,b.useEffect)(()=>{if(t){let t=e;return window.addEventListener(`scroll`,t,{capture:!0,passive:!0}),()=>void window.removeEventListener(`scroll`,t,!0)}},[e,t])}function Tp(e){let t=[];if(!e||e===document.body)return t;let{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(e=>e===`auto`||e===`scroll`)&&t.push(e),[...t,...Tp(e.parentElement)]}const Ep=[`x`,`y`,`top`,`bottom`,`left`,`right`,`width`,`height`],Dp=(e,t)=>Ep.every(n=>e[n]===t[n]);var Op=e=>{throw TypeError(e)},kp=(e,t,n)=>t.has(e)||Op(`Cannot `+n),J=(e,t,n)=>(kp(e,t,`read from private field`),n?n.call(e):t.get(e)),Y=(e,t,n)=>t.has(e)?Op(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Ap=(e,t,n,r)=>(kp(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),jp,Mp=class{constructor(){Y(this,jp),this.register=e=>{J(this,jp).push(e)},this.unregister=e=>{for(;J(this,jp).indexOf(e)!==-1;)J(this,jp).splice(J(this,jp).indexOf(e),1)},this.backendChanged=e=>{for(let t of J(this,jp))t.backendChanged(e)},Ap(this,jp,[])}};jp=new WeakMap;var X,Np,Z,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp=class e{constructor(t,n,r){if(Y(this,X),Y(this,Np),Y(this,Z),Y(this,Pp),Y(this,Fp),Y(this,Ip,(e,t,n)=>{if(!n.backend)throw Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(n)}`);let r=n.backend(e,t,n.options),i=n.id,a=!n.id&&r&&r.constructor;if(a&&(i=r.constructor.name),!i)throw Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(n)}
|
|
3
3
|
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(a&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
4
4
|
This might be unsupported in the future, please specify 'id' explicitely for every backend.`),J(this,Z)[i])throw Error(`You must specify a unique 'id' property in your Backend entry:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e,M as t}from"./iframe-EU22ddzP.js";import{b as n}from"./lodash-CiSVjb27.js";var r=t(e()),i=t(n());const a=e=>(0,i.isString)(e)||(0,i.isNumber)(e)||(0,r.isValidElement)(e),o=e=>Array.isArray(e)?`array`:typeof e;export{o as b,a as c};
|