@ryuzaki13/react-foundation-ui 1.11.1 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/README.md +36 -0
  2. package/dist/advanced-search/index.js +2 -2
  3. package/dist/barcode-scanner/BarcodeScannerDialog.d.ts +46 -0
  4. package/dist/barcode-scanner/BarcodeScannerDialog.d.ts.map +1 -0
  5. package/dist/barcode-scanner/index.d.ts +3 -0
  6. package/dist/barcode-scanner/index.d.ts.map +1 -0
  7. package/dist/barcode-scanner/index.js +135 -0
  8. package/dist/barcode-scanner/index.js.map +1 -0
  9. package/dist/base-table/index.js +1 -1
  10. package/dist/chunks/{base-table-DswaYoH-.js → base-table-B9m-r0Ve.js} +2 -2
  11. package/dist/chunks/{base-table-DswaYoH-.js.map → base-table-B9m-r0Ve.js.map} +1 -1
  12. package/dist/chunks/{context-menu-HC7Vteb5.js → context-menu-Dj6MXgv6.js} +2 -2
  13. package/dist/chunks/{context-menu-HC7Vteb5.js.map → context-menu-Dj6MXgv6.js.map} +1 -1
  14. package/dist/chunks/{multi-select-D1JjZJfr.js → multi-select-V7SLAduU.js} +3 -3
  15. package/dist/chunks/{multi-select-D1JjZJfr.js.map → multi-select-V7SLAduU.js.map} +1 -1
  16. package/dist/chunks/{picker-DO9HFqJV.js → picker-DZ4-1BvK.js} +2 -2
  17. package/dist/chunks/picker-DZ4-1BvK.js.map +1 -0
  18. package/dist/chunks/{select-3jk0ljU1.js → select-B7cWlJxL.js} +3 -3
  19. package/dist/chunks/select-B7cWlJxL.js.map +1 -0
  20. package/dist/chunks/{table-aozLLSJk.js → table-Dvh4o6Ly.js} +2 -2
  21. package/dist/chunks/{table-aozLLSJk.js.map → table-Dvh4o6Ly.js.map} +1 -1
  22. package/dist/context-menu/index.js +1 -1
  23. package/dist/layout-picker/index.js +1 -1
  24. package/dist/listbox/index.js +1 -1
  25. package/dist/multi-select/index.js +1 -1
  26. package/dist/picker/index.js +1 -1
  27. package/dist/preset-select/index.js +1 -1
  28. package/dist/select/index.js +1 -1
  29. package/dist/simple-table/index.js +1 -1
  30. package/dist/slider/index.js +1 -1
  31. package/dist/state-select/index.js +1 -1
  32. package/dist/styles.css +1 -1
  33. package/dist/table/index.js +1 -1
  34. package/dist/table-sorting/index.js +1 -1
  35. package/dist/tree-select/index.js +1 -1
  36. package/dist/tree-table/index.js +1 -1
  37. package/package.json +10 -1
  38. package/storybook-static/assets/{Badge-B0pMNo6u.js → Badge-xeXe52JJ.js} +1 -1
  39. package/storybook-static/assets/{Badge.stories-DmJySgC9.js → Badge.stories-CmVjv-uT.js} +1 -1
  40. package/storybook-static/assets/{BadgeList-CPMgBZNy.js → BadgeList-BcoPWNyN.js} +1 -1
  41. package/storybook-static/assets/BarcodeScannerDialog-DQGhFXAm.css +1 -0
  42. package/storybook-static/assets/BarcodeScannerDialog.stories-yAA6tA1d.js +72 -0
  43. package/storybook-static/assets/{Button-DdP87Kjo.js → Button-CFOJHJwd.js} +1 -1
  44. package/storybook-static/assets/{Button-BQCqsOSh.js → Button-DJER9ynI.js} +1 -1
  45. package/storybook-static/assets/{Button.stories-B95Gfrv6.js → Button.stories-U_2CIpOj.js} +1 -1
  46. package/storybook-static/assets/{CalendarView-Dkx103Eo.js → CalendarView-B4DHU14y.js} +1 -1
  47. package/storybook-static/assets/{CheckBox-6jhHJHNx.js → CheckBox-DLjlV0re.js} +1 -1
  48. package/storybook-static/assets/{CheckBox-CEiyvt0g.js → CheckBox-DcOrStyV.js} +1 -1
  49. package/storybook-static/assets/{CheckBox.stories-C-ry0F3S.js → CheckBox.stories-HK9oMf2U.js} +1 -1
  50. package/storybook-static/assets/{Color-6AOWCN3U-C7ZBfvPD.js → Color-6AOWCN3U-TVtDY8qi.js} +1 -1
  51. package/storybook-static/assets/{ContextMenu-BXr3AZy_.js → ContextMenu-C6ZM2Mo4.js} +1 -1
  52. package/storybook-static/assets/{ContextMenu-B7zzWFcl.js → ContextMenu-ZU-3k31S.js} +1 -1
  53. package/storybook-static/assets/{ContextMenu.stories-BixTxzOj.js → ContextMenu.stories-JO0hLeHH.js} +1 -1
  54. package/storybook-static/assets/{CustomOptionButton-B4TQxEG7.js → CustomOptionButton-Bh__qmrf.js} +1 -1
  55. package/storybook-static/assets/{DateInput-CiNA_ASr.js → DateInput-CaqZCM7S.js} +1 -1
  56. package/storybook-static/assets/{DateInput-Dd18xSEj.js → DateInput-Cyy5MkIX.js} +1 -1
  57. package/storybook-static/assets/{DateInput.stories-BEsG3vsL.js → DateInput.stories-TxCUy1Nf.js} +1 -1
  58. package/storybook-static/assets/{DateRangePresetSelect-CPYFDKex.js → DateRangePresetSelect-9yDtN_-K.js} +1 -1
  59. package/storybook-static/assets/{DateRangePresetSelect-Ccz7NfDd.js → DateRangePresetSelect-DZve4le1.js} +1 -1
  60. package/storybook-static/assets/{DateRangePresetSelect.stories-opQhou6g.js → DateRangePresetSelect.stories-2xcwHu0v.js} +1 -1
  61. package/storybook-static/assets/{Detail-iNp-Y0oX.js → Detail-Bv8TlvPR.js} +1 -1
  62. package/storybook-static/assets/{Detail.stories-wMP_UVa0.js → Detail.stories-RHFHl-QD.js} +1 -1
  63. package/storybook-static/assets/{Dialog-C61I39GX.js → Dialog-B6CmbIp6.js} +1 -1
  64. package/storybook-static/assets/{Dialog-DvJy6JL7.js → Dialog-JG-Js1_P.js} +1 -1
  65. package/storybook-static/assets/{Dialog.stories-BA49irYS.js → Dialog.stories-CMG0bq1P.js} +1 -1
  66. package/storybook-static/assets/{Disclosure-CuKVlkDs.js → Disclosure-CKD2uWXW.js} +1 -1
  67. package/storybook-static/assets/{Disclosure.stories-DGEYHdsF.js → Disclosure.stories-CCoZix5k.js} +1 -1
  68. package/storybook-static/assets/{DisclosureGroup-DhU1dNC8.js → DisclosureGroup-DxIXFd4p.js} +1 -1
  69. package/storybook-static/assets/{DocsRenderer-JROSPFPF-BkpUvEnq.js → DocsRenderer-JROSPFPF-Xf4KJ_Qh.js} +1 -1
  70. package/storybook-static/assets/{DropZone-7ceW1dn3.js → DropZone-BuU0GrtU.js} +1 -1
  71. package/storybook-static/assets/{DropZone-C78CmTpa.js → DropZone-C14QKp48.js} +1 -1
  72. package/storybook-static/assets/{DropZone.stories-ufjhh7h-.js → DropZone.stories-nLb_ObZg.js} +1 -1
  73. package/storybook-static/assets/{DropdownMenu-n6JW93BD.js → DropdownMenu-Db8c-Zn1.js} +1 -1
  74. package/storybook-static/assets/{ExpandableActionPanel-Hr0krU6W.js → ExpandableActionPanel-CsS6nONV.js} +1 -1
  75. package/storybook-static/assets/{ExpandableActionPanel.stories-DhvuWFNv.js → ExpandableActionPanel.stories-D2uLOAZ8.js} +1 -1
  76. package/storybook-static/assets/{Flex-B94m_qyY.js → Flex-n7EPU0Zg.js} +1 -1
  77. package/storybook-static/assets/{Flex.stories-B8AaUI7D.js → Flex.stories-BLqFw3hw.js} +1 -1
  78. package/storybook-static/assets/{FloatingPopover-DJiX84PM.js → FloatingPopover-Xth-H2JR.js} +1 -1
  79. package/storybook-static/assets/FormattedTableCell-cvi554Ef.js +15 -0
  80. package/storybook-static/assets/{Grid-kT9nG3ti.js → Grid-Ca7aufxq.js} +1 -1
  81. package/storybook-static/assets/{Grid.stories-CIpqBZEV.js → Grid.stories-JCGqm-rs.js} +1 -1
  82. package/storybook-static/assets/{ImageCropper.stories-lLmE-m8y.js → ImageCropper.stories-BFnA9lQ8.js} +1 -1
  83. package/storybook-static/assets/{ImageRenderer-CumAPDzJ.js → ImageRenderer-Dou6U8Cd.js} +1 -1
  84. package/storybook-static/assets/{ImageRenderer.stories-DRBkO7a5.js → ImageRenderer.stories-C74Qukdv.js} +1 -1
  85. package/storybook-static/assets/{ImageView.stories-CJPbRo4F.js → ImageView.stories-DBbugUss.js} +1 -1
  86. package/storybook-static/assets/{ImageViewer.stories-Dga7I4WU.js → ImageViewer.stories-BmzkBXJR.js} +2 -2
  87. package/storybook-static/assets/{ImageViewerRuntime-B2Mqo_WZ.js → ImageViewerRuntime-voWTu9L2.js} +1 -1
  88. package/storybook-static/assets/{Input-C1R3JI6C.js → Input-CD-NDeTl.js} +1 -1
  89. package/storybook-static/assets/{Input-aN_k-nwG.js → Input-DX4_SiCQ.js} +1 -1
  90. package/storybook-static/assets/{Input.stories-CamuqrIq.js → Input.stories-B4aVxE7P.js} +1 -1
  91. package/storybook-static/assets/{InputDateTime-DLGntd6J.js → InputDateTime-GVzmQgws.js} +1 -1
  92. package/storybook-static/assets/{InputDateTime.stories-DKS2OEea.js → InputDateTime.stories-Dd6aHwhL.js} +1 -1
  93. package/storybook-static/assets/{InputFile-VpaVOpAd.js → InputFile-C7IlWWuo.js} +1 -1
  94. package/storybook-static/assets/{InputFile-Co7tvxPX.js → InputFile-De0O-P06.js} +1 -1
  95. package/storybook-static/assets/{InputFile.stories-DXdlBxEU.js → InputFile.stories-B5DPvKKg.js} +1 -1
  96. package/storybook-static/assets/{InputFiles-DvkMwKO7.js → InputFiles-jpJ8OsvW.js} +1 -1
  97. package/storybook-static/assets/{InputFiles-BTCuD668.js → InputFiles-k1ui98yk.js} +1 -1
  98. package/storybook-static/assets/{InputFiles.stories-DrTZMej-.js → InputFiles.stories-yhEjTkhb.js} +1 -1
  99. package/storybook-static/assets/{InputFilesList-CGjnqnzc.js → InputFilesList-DQ8xIsNB.js} +1 -1
  100. package/storybook-static/assets/{InputImage-DiEO91jk.js → InputImage-BcfFZoeK.js} +1 -1
  101. package/storybook-static/assets/{InputImage-Ipb-FcJa.js → InputImage-ChqqaulB.js} +1 -1
  102. package/storybook-static/assets/{InputImage.stories-ttixjbus.js → InputImage.stories-DbH8bUI5.js} +1 -1
  103. package/storybook-static/assets/{InteractiveComponents-B4gMe903.js → InteractiveComponents-AOIUFszB.js} +1 -1
  104. package/storybook-static/assets/{InteractiveComponents.stories-Bao1bjuz.js → InteractiveComponents.stories-BWKhw0r9.js} +1 -1
  105. package/storybook-static/assets/LayoutPicker-Bw46oQ_0.js +376 -0
  106. package/storybook-static/assets/{LayoutPicker-CuHY0iUU.js → LayoutPicker-DbsRuLFI.js} +1 -1
  107. package/storybook-static/assets/{LayoutPicker.stories-DYrG4wtT.js → LayoutPicker.stories-C86co23-.js} +1 -1
  108. package/storybook-static/assets/{Listbox-BxHmY5ET.js → Listbox-CSMsOd31.js} +1 -1
  109. package/storybook-static/assets/{Listbox-BL0ioHxs.js → Listbox-DYRwIMlK.js} +1 -1
  110. package/storybook-static/assets/{Listbox.stories-DJyYFh1U.js → Listbox.stories-7NFvXRCS.js} +1 -1
  111. package/storybook-static/assets/{Modal-Q7o1iqet.js → Modal-DNeEDLQQ.js} +1 -1
  112. package/storybook-static/assets/Modal-THLBkb1a.js +1 -0
  113. package/storybook-static/assets/{Modal.stories-DwIrHxPr.js → Modal.stories-BfoU_GML.js} +1 -1
  114. package/storybook-static/assets/ModalManagerProvider-DZ0QK10e.js +1 -0
  115. package/storybook-static/assets/{MultiSelect-HPQ3mNkL.js → MultiSelect-BT6apkyP.js} +1 -1
  116. package/storybook-static/assets/{MultiSelect-CJesPVwA.js → MultiSelect-DFIEQ66c.js} +1 -1
  117. package/storybook-static/assets/{MultiSelect.stories-Bb2GHyNF.js → MultiSelect.stories-D0BHrQym.js} +1 -1
  118. package/storybook-static/assets/{NoData-CGqnBZTW.js → NoData-CVxb7dGU.js} +1 -1
  119. package/storybook-static/assets/{NotificationsHost-CwzaWa75.js → NotificationsHost-CaLF-GIF.js} +1 -1
  120. package/storybook-static/assets/{NotificationsHost.stories-CcPBctyV.js → NotificationsHost.stories-Cnf45TOG.js} +1 -1
  121. package/storybook-static/assets/{ODataMultiSelect-C_M7IJ-E.js → ODataMultiSelect-CCofPFd1.js} +1 -1
  122. package/storybook-static/assets/{ODataMultiSelect.stories-CEWZoIYN.js → ODataMultiSelect.stories-CjduYosa.js} +1 -1
  123. package/storybook-static/assets/{ODataSelect-CeQ91U4i.js → ODataSelect-D7CqYyzD.js} +1 -1
  124. package/storybook-static/assets/{ODataSelect.stories-OpbcMtd0.js → ODataSelect.stories-CXV_NdRT.js} +1 -1
  125. package/storybook-static/assets/{ODataTreeMultiSelect-By-iwUlb.js → ODataTreeMultiSelect-BftPFs2n.js} +1 -1
  126. package/storybook-static/assets/{ODataTreeMultiSelect.stories-DjediQp3.js → ODataTreeMultiSelect.stories-or0wQ9AP.js} +1 -1
  127. package/storybook-static/assets/{ODataTreeSelect-C4fBiCfR.js → ODataTreeSelect-D5xOD_30.js} +1 -1
  128. package/storybook-static/assets/{ODataTreeSelect.stories-BRVIyV0K.js → ODataTreeSelect.stories-D2x68_IW.js} +1 -1
  129. package/storybook-static/assets/{OneStepScroller-BeOhzxOb.js → OneStepScroller-C4yOwu7w.js} +1 -1
  130. package/storybook-static/assets/{Option-BALI2Izw.js → Option-I8HVUw9B.js} +2 -2
  131. package/storybook-static/assets/{OptionButton-Cu_hyVYx.js → OptionButton-xVwyJ3j2.js} +1 -1
  132. package/storybook-static/assets/{PeriodSelect-C0tZpOZ2.js → PeriodSelect-Dx9nlZ5b.js} +1 -1
  133. package/storybook-static/assets/{PeriodSelect-D7ZyNQQj.js → PeriodSelect-DyB-sGeM.js} +1 -1
  134. package/storybook-static/assets/{PeriodSelect.stories-CaKpWoBI.js → PeriodSelect.stories-D8dRUZqc.js} +1 -1
  135. package/storybook-static/assets/{PickerTriggerActions-CouIkvlG.js → PickerTriggerActions-ZarFFzzM.js} +1 -1
  136. package/storybook-static/assets/{Popover-BNl3GC6I.js → Popover-C5hwgiuL.js} +1 -1
  137. package/storybook-static/assets/{Popover-VojsocpB.js → Popover-CwS4OEAV.js} +1 -1
  138. package/storybook-static/assets/{Popover.stories-voeYCJAG.js → Popover.stories-DhqDwrcv.js} +1 -1
  139. package/storybook-static/assets/{PresetRangeDateInput-BAsiw0m9.js → PresetRangeDateInput-Df2H0YZU.js} +1 -1
  140. package/storybook-static/assets/{PresetRangeDateInput-DTFvAuEG.js → PresetRangeDateInput-yr-ltDie.js} +1 -1
  141. package/storybook-static/assets/{PresetRangeDateInput.stories-BpytrxVn.js → PresetRangeDateInput.stories-DWOjQ4Zf.js} +1 -1
  142. package/storybook-static/assets/{PresetSelect-DqsBg04y.js → PresetSelect-ByDcnzCX.js} +1 -1
  143. package/storybook-static/assets/{README-KslesuPp.js → README-2IcraWHE.js} +1 -1
  144. package/storybook-static/assets/{README-6evrAby4.js → README-2eDgLZuV.js} +1 -1
  145. package/storybook-static/assets/{README-CP8A3pUx.js → README-41H-AUuO.js} +1 -1
  146. package/storybook-static/assets/{README-Dt7VgalJ.js → README-AkT4HI-u.js} +1 -1
  147. package/storybook-static/assets/{README-D6Vv7boA.js → README-B1NAcRKT.js} +1 -1
  148. package/storybook-static/assets/{README-qYd4IxwX.js → README-B2HzDG5u.js} +1 -1
  149. package/storybook-static/assets/{README-CNGBJoj9.js → README-B7NYCoih.js} +1 -1
  150. package/storybook-static/assets/{README-BvWWZXkg.js → README-BFrWKslN.js} +1 -1
  151. package/storybook-static/assets/{README-CRPSrjud.js → README-BInzuU6X.js} +1 -1
  152. package/storybook-static/assets/{README-DLMl2PNQ.js → README-Bb_w1Nym.js} +1 -1
  153. package/storybook-static/assets/{README-CFx77m4x.js → README-BefUR1FM.js} +1 -1
  154. package/storybook-static/assets/{README-V9-IwPwN.js → README-Bh-x23CQ.js} +1 -1
  155. package/storybook-static/assets/{README-CSnzw2D-.js → README-BlIhHhIF.js} +1 -1
  156. package/storybook-static/assets/{README-DTdq97bt.js → README-BrGdMSth.js} +1 -1
  157. package/storybook-static/assets/{README-D0tDmHet.js → README-C0eV13Sr.js} +1 -1
  158. package/storybook-static/assets/{README-D2ulcVfy.js → README-C5ffwEKG.js} +1 -1
  159. package/storybook-static/assets/{README-C9NwfMMB.js → README-C6VoMZPn.js} +1 -1
  160. package/storybook-static/assets/{README-C-Pfk84O.js → README-C6mrJ7kb.js} +1 -1
  161. package/storybook-static/assets/{README-CGU1FPkG.js → README-CIYrqth9.js} +1 -1
  162. package/storybook-static/assets/{README-D01CDD_h.js → README-CMydTTS6.js} +1 -1
  163. package/storybook-static/assets/{README-BVJkWNdT.js → README-CUWKggHu.js} +1 -1
  164. package/storybook-static/assets/{README-CshGb2DJ.js → README-CaoO8Ut5.js} +1 -1
  165. package/storybook-static/assets/{README-BVZEvH2e.js → README-Cd1d0wgT.js} +1 -1
  166. package/storybook-static/assets/{README-D5JHlt8a.js → README-ChJJgEZt.js} +1 -1
  167. package/storybook-static/assets/{README-pEhV0D6Q.js → README-Ci0Kh1hT.js} +1 -1
  168. package/storybook-static/assets/{README-y2sdEYQd.js → README-CjRe0c1V.js} +1 -1
  169. package/storybook-static/assets/{README-JfTIbTxa.js → README-Cjf73J3z.js} +1 -1
  170. package/storybook-static/assets/{README-DlSdPLoj.js → README-CvT8FpW1.js} +1 -1
  171. package/storybook-static/assets/{README-BIY0CXzT.js → README-CvUdVa7L.js} +1 -1
  172. package/storybook-static/assets/{README-B4L4Qms9.js → README-CzfreI7x.js} +1 -1
  173. package/storybook-static/assets/{README-ymNGc5K0.js → README-DDFlsdF6.js} +1 -1
  174. package/storybook-static/assets/{README-B2JDHSDg.js → README-DF-mwTId.js} +1 -1
  175. package/storybook-static/assets/{README-BvwvQC0S.js → README-DFH0KR45.js} +1 -1
  176. package/storybook-static/assets/{README-Bwn32UEx.js → README-DG9Aq5O7.js} +1 -1
  177. package/storybook-static/assets/{README-BRJb1GLe.js → README-DJVLbFKd.js} +1 -1
  178. package/storybook-static/assets/{README-CBcr-aZ-.js → README-DJjcvyeX.js} +1 -1
  179. package/storybook-static/assets/{README-SmqCd027.js → README-DZRPFRwC.js} +1 -1
  180. package/storybook-static/assets/{README-822aEKM9.js → README-DdurFiZJ.js} +1 -1
  181. package/storybook-static/assets/{README-CZrtJjG5.js → README-DhqJsnNJ.js} +1 -1
  182. package/storybook-static/assets/{README-CxvHN56L.js → README-LWv6IIBV.js} +1 -1
  183. package/storybook-static/assets/{README-BV9yMaZH.js → README-XDT1NSK3.js} +1 -1
  184. package/storybook-static/assets/{README-CNwWDpPA.js → README-X_V5F9VK.js} +1 -1
  185. package/storybook-static/assets/{README-C78L4rcb.js → README-YmEv1fWN.js} +1 -1
  186. package/storybook-static/assets/{README-DPWMkaF9.js → README-idblV6mv.js} +1 -1
  187. package/storybook-static/assets/{README-D95b9s0-.js → README-jNLhEStI.js} +1 -1
  188. package/storybook-static/assets/{README-BuA3_CmY.js → README-lB3klDGb.js} +1 -1
  189. package/storybook-static/assets/{README-BH_ofrva.js → README-mhW5Aj9o.js} +1 -1
  190. package/storybook-static/assets/{README-RqmpGW_K.js → README-oXktEVVG.js} +1 -1
  191. package/storybook-static/assets/{README-DpbDg5ce.js → README-pJ0Dv8pm.js} +1 -1
  192. package/storybook-static/assets/{README-D1eYEpJo.js → README-pP_dKNmF.js} +1 -1
  193. package/storybook-static/assets/{README-DaTftOiF.js → README-uFeDyLKo.js} +1 -1
  194. package/storybook-static/assets/{README-eGS9MpcY.js → README-zxMZWAG-.js} +1 -1
  195. package/storybook-static/assets/{RadioButton-CnpzlpUJ.js → RadioButton-3OVIrkg4.js} +1 -1
  196. package/storybook-static/assets/{RadioButton-Ba9QfrAy.js → RadioButton-DiapWNGf.js} +1 -1
  197. package/storybook-static/assets/{RadioButton.stories-BnN4pgGe.js → RadioButton.stories-Df1y-QjJ.js} +1 -1
  198. package/storybook-static/assets/{RadioGroup-BykHY9bQ.js → RadioGroup-D3BysS3K.js} +1 -1
  199. package/storybook-static/assets/{RadioGroup-Snp96mXk.js → RadioGroup-DoOe4_wG.js} +1 -1
  200. package/storybook-static/assets/{RadioGroup.stories-ElfRHSzd.js → RadioGroup.stories-0aCFeFN2.js} +1 -1
  201. package/storybook-static/assets/{Scrollable-CZQNMT37.js → Scrollable-02LDVVqT.js} +1 -1
  202. package/storybook-static/assets/{Select-DB19StkW.js → Select-BpLN5zpQ.js} +1 -1
  203. package/storybook-static/assets/Select-D3Wk8fwj.js +12 -0
  204. package/storybook-static/assets/{Select.stories-B-x2u4Ka.js → Select.stories-B-RfQZ5q.js} +1 -1
  205. package/storybook-static/assets/{SerializableSelect-RdiASBU7.js → SerializableSelect-CZf4QPZi.js} +1 -1
  206. package/storybook-static/assets/{SerializableSelect.stories-D3oi1vVq.js → SerializableSelect.stories-DBiDumoN.js} +1 -1
  207. package/storybook-static/assets/{SingleDateTimeInput-lU6cGbfx.js → SingleDateTimeInput-LLvsDwQT.js} +1 -1
  208. package/storybook-static/assets/{SingleDateTimeInput-ekp5dih9.js → SingleDateTimeInput-UMS-nqrM.js} +1 -1
  209. package/storybook-static/assets/{SingleDateTimeInput.stories-CL-wJh62.js → SingleDateTimeInput.stories-CBARmmwN.js} +1 -1
  210. package/storybook-static/assets/{Slider-BaGjYkeA.js → Slider-D82fAdWL.js} +1 -1
  211. package/storybook-static/assets/{Slider-TYTl3yDT.js → Slider-Dd9L-QGJ.js} +1 -1
  212. package/storybook-static/assets/{Slider.stories-B1Q15yer.js → Slider.stories-DF8nIKZp.js} +1 -1
  213. package/storybook-static/assets/{SliderInput-DQCecLsI.js → SliderInput-CgmboZ1q.js} +1 -1
  214. package/storybook-static/assets/{SliderInput-D7HC0Qy7.js → SliderInput-D7hnLXHS.js} +1 -1
  215. package/storybook-static/assets/{SliderInput.stories-Dks-x9HE.js → SliderInput.stories-BzAIEc5i.js} +1 -1
  216. package/storybook-static/assets/{Sortable-BNy1ZMbQ.js → Sortable-B3X-lOlN.js} +1 -1
  217. package/storybook-static/assets/{Sortable.stories-Cb6IiB1t.js → Sortable.stories-CngQWqnx.js} +1 -1
  218. package/storybook-static/assets/{Splitter-DIgl2n1Z.js → Splitter-SgFpplUJ.js} +1 -1
  219. package/storybook-static/assets/{Splitter.stories-BIjaaFzl.js → Splitter.stories-Fn131gq4.js} +1 -1
  220. package/storybook-static/assets/{StateSelect-B6gJ8hJa.js → StateSelect-BjtS9CeU.js} +1 -1
  221. package/storybook-static/assets/{StateSelect-zOqdyaQn.js → StateSelect-uGGrERzF.js} +1 -1
  222. package/storybook-static/assets/{StateSelect.stories-BO-IgbhM.js → StateSelect.stories-BeBboHki.js} +1 -1
  223. package/storybook-static/assets/{StringToggle.stories-D4f7Fbw8.js → StringToggle.stories-C8L5uM8M.js} +1 -1
  224. package/storybook-static/assets/{Switch-CJrR8E7p.js → Switch-BVv0ctfZ.js} +1 -1
  225. package/storybook-static/assets/{Switch-D5xdNKsi.js → Switch-Dy9ANQK-.js} +1 -1
  226. package/storybook-static/assets/{Switch.stories-9rHvE9GC.js → Switch.stories-DQQj-bF6.js} +1 -1
  227. package/storybook-static/assets/{Table-BndDbNw8.js → Table-DPzutyXT.js} +1 -1
  228. package/storybook-static/assets/{Table.stories-CJCfJUjh.js → Table.stories-BCVWtmqh.js} +2 -2
  229. package/storybook-static/assets/{Tabs-CP10ZNq4.js → Tabs-CrrOHegg.js} +1 -1
  230. package/storybook-static/assets/{Tabs.stories-C9yRAUoL.js → Tabs.stories-YlPJcHz6.js} +2 -2
  231. package/storybook-static/assets/{TabsBox-CF6lsJX9.js → TabsBox-C-qdFgsq.js} +1 -1
  232. package/storybook-static/assets/{TagInput-CNuIR1Js.js → TagInput-ClXASgV9.js} +1 -1
  233. package/storybook-static/assets/{TagInput.stories-EHAVYqjD.js → TagInput.stories-Dq6pf1E5.js} +1 -1
  234. package/storybook-static/assets/{Text-Dk57_ZbR.js → Text-ZVTVRrGw.js} +1 -1
  235. package/storybook-static/assets/{Textarea-C62-_iti.js → Textarea-CU4Td5J9.js} +1 -1
  236. package/storybook-static/assets/{Textarea-BE9dNCqI.js → Textarea-z6NWx_Bh.js} +1 -1
  237. package/storybook-static/assets/{Textarea.stories-DKvABJTj.js → Textarea.stories-CubRAISW.js} +1 -1
  238. package/storybook-static/assets/{TimePanel-x3TlepfZ.js → TimePanel-BFAQJ1bI.js} +1 -1
  239. package/storybook-static/assets/{TimePanel.stories-DaZB0D5G.js → TimePanel.stories-CUhGDlm7.js} +1 -1
  240. package/storybook-static/assets/{Toggle-BC4e-JyH.js → Toggle-DVOO4tBr.js} +1 -1
  241. package/storybook-static/assets/{Toggle-FZ3jr9eC.js → Toggle-DtSDY2EH.js} +1 -1
  242. package/storybook-static/assets/{Toggle.stories-bBbcFQPg.js → Toggle.stories-CovKjNNa.js} +1 -1
  243. package/storybook-static/assets/{TreeMultiSelect-BsA8SRFS.js → TreeMultiSelect-CTy2vKDl.js} +1 -1
  244. package/storybook-static/assets/{TreeMultiSelect-BY0kKT3J.js → TreeMultiSelect-C_-6fD0U.js} +1 -1
  245. package/storybook-static/assets/{TreeMultiSelect.stories-CuYZx8Ye.js → TreeMultiSelect.stories-BlO667QL.js} +1 -1
  246. package/storybook-static/assets/TreePickerBase-C-i24HIU.js +76 -0
  247. package/storybook-static/assets/{TreeSelect-DFQ3bXsn.js → TreeSelect-DF6r0bgV.js} +1 -1
  248. package/storybook-static/assets/{TreeSelect-CurHAVQd.js → TreeSelect-De7cNaat.js} +1 -1
  249. package/storybook-static/assets/{TreeSelect.stories-CWIRI6gz.js → TreeSelect.stories-BxwiUwJ2.js} +1 -1
  250. package/storybook-static/assets/{TreeTable-cuDoXkMK.js → TreeTable-nptjywjg.js} +1 -1
  251. package/storybook-static/assets/TreeTable.stories-DsYX5mJ-.js +138 -0
  252. package/storybook-static/assets/{blocks-Bc4j9MF9.js → blocks-Cwytla0s.js} +3 -3
  253. package/storybook-static/assets/{check-BgL33jfp.js → check-Dj2DWtl2.js} +1 -1
  254. package/storybook-static/assets/{chevron-down-R3Jdqzrn.js → chevron-down-m0P0EdBN.js} +1 -1
  255. package/storybook-static/assets/{chevron-left-mLWJvyEZ.js → chevron-left-DW4SDuDX.js} +1 -1
  256. package/storybook-static/assets/{chevron-right-CPZF-d1L.js → chevron-right-e_i1Rck4.js} +1 -1
  257. package/storybook-static/assets/{chunk-W22LQPXL-C62lx28p.js → chunk-W22LQPXL-C2LnR3e-.js} +1 -1
  258. package/storybook-static/assets/{circle-alert-F3LNsip3.js → circle-alert-BNDiZKnw.js} +1 -1
  259. package/storybook-static/assets/{circle-check-B-PCEcP6.js → circle-check-B6srYcn_.js} +1 -1
  260. package/storybook-static/assets/{components-EKvM9m9t.js → components-tHsatYT-.js} +3 -3
  261. package/storybook-static/assets/{contextMenu-DXU_cSyO.js → contextMenu-CpPvJBva.js} +1 -1
  262. package/storybook-static/assets/{download-_gpfOcUw.js → download-KWzg2zqy.js} +1 -1
  263. package/storybook-static/assets/{floating-ui.react-DWG5_l50.js → floating-ui.react-CjiPL5a6.js} +1 -1
  264. package/storybook-static/assets/{foundationApi-Bf1RvCy6.js → foundationApi-CLxcCnvf.js} +1 -1
  265. package/storybook-static/assets/{foundationLib-BqFATCRV.js → foundationLib-DgxJv4Jl.js} +1 -1
  266. package/storybook-static/assets/{hooks-CVQS96HT.js → hooks-CVpzpZQk.js} +1 -1
  267. package/storybook-static/assets/{iframe-DB62bexO.js → iframe-DhaBiZWQ.js} +4 -4
  268. package/storybook-static/assets/iframe-DhmTKnLw.js +1 -0
  269. package/storybook-static/assets/{info-_jHhDMxQ.js → info-C4afqn1I.js} +1 -1
  270. package/storybook-static/assets/{odata-CSE2o56k.js → odata-BOF0ce_Y.js} +1 -1
  271. package/storybook-static/assets/{odataStoryFixtures-CnD5g3U7.js → odataStoryFixtures-DA_Hfm0X.js} +1 -1
  272. package/storybook-static/assets/react-CrorOkzN.js +9 -0
  273. package/storybook-static/assets/{refresh-cw-gwn6yl4E.js → refresh-cw-Bxr1O2kj.js} +1 -1
  274. package/storybook-static/assets/{settings-2-CI-uItnb.js → settings-2-DnEl3XDa.js} +1 -1
  275. package/storybook-static/assets/{sortable-D9YLnSq2.js → sortable-CHijVtYk.js} +1 -1
  276. package/storybook-static/assets/{syntaxhighlighter-QEQV7K2Y-D1Qwwr3j.js → syntaxhighlighter-QEQV7K2Y-rSGLtIgQ.js} +1 -1
  277. package/storybook-static/assets/{trash-2-C8HzUkes.js → trash-2-DtRryQRr.js} +1 -1
  278. package/storybook-static/assets/{triangle-alert-CiqmLtau.js → triangle-alert-YJECENS1.js} +1 -1
  279. package/storybook-static/assets/{useODataSelectBase-CIQ0s0Kh.js → useODataSelectBase-BXlViAjV.js} +1 -1
  280. package/storybook-static/assets/{useODataTreeData-DrVyNvfl.js → useODataTreeData-CNceXy5R.js} +1 -1
  281. package/storybook-static/assets/usePickerQuery-_QGEmwCx.js +1 -0
  282. package/storybook-static/assets/usePickerTriggerController-CHg5GzEW.js +6 -0
  283. package/storybook-static/assets/{x-fspKtNh2.js → x-DxGUdYeK.js} +1 -1
  284. package/storybook-static/assets/zxing_reader-BxB2YfIY.wasm +0 -0
  285. package/storybook-static/iframe.html +2 -2
  286. package/storybook-static/index.json +1 -1
  287. package/storybook-static/project.json +1 -1
  288. package/dist/chunks/picker-DO9HFqJV.js.map +0 -1
  289. package/dist/chunks/select-3jk0ljU1.js.map +0 -1
  290. package/storybook-static/assets/FormattedTableCell-_E06deOh.js +0 -15
  291. package/storybook-static/assets/LayoutPicker-CbOMOuPf.js +0 -376
  292. package/storybook-static/assets/ModalManagerProvider-41HvR5kw.js +0 -1
  293. package/storybook-static/assets/Select-7gK0WOKA.js +0 -12
  294. package/storybook-static/assets/TreePickerBase-Cy2h0kPW.js +0 -76
  295. package/storybook-static/assets/TreeTable.stories-C2QEYgml.js +0 -138
  296. package/storybook-static/assets/iframe-C-PXkEVa.js +0 -1
  297. package/storybook-static/assets/react-CKPG354p.js +0 -9
  298. package/storybook-static/assets/usePickerQuery-DgtD9ozg.js +0 -1
  299. package/storybook-static/assets/usePickerTriggerController-CeQZVvq6.js +0 -6
  300. /package/storybook-static/assets/{ModalManagerProvider-CTRpBlaO.css → Modal-CTRpBlaO.css} +0 -0
@@ -1,138 +0,0 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r,t as i}from"./chevron-down-R3Jdqzrn.js";import{n as a,t as o}from"./chevron-right-CPZF-d1L.js";import{n as s}from"./iframe-DB62bexO.js";import{$ as c,J as l,Q as u,X as d,Z as f,_ as ee,a as te,b as ne,g as re,h as ie,i as ae,y as oe}from"./odata-CSE2o56k.js";import{a as se,i as ce}from"./utils-tg3ibbzi.js";import{i as le,y as ue}from"./formatters-D33Uh3si-Df97arf9.js";import{n as de,t as p}from"./createControlledStoryRender-BouhvX-R.js";import{_ as fe,a as pe,b as me,c as he,d as ge,f as _e,g as ve,h as ye,i as be,l as xe,m as Se,n as Ce,o as we,p as Te,r as Ee,s as De,t as Oe,u as ke,v as Ae,x as je,y as m}from"./FormattedTableCell-_E06deOh.js";function Me(e,t,n){let r=e.get(t);if(r){r.push(n);return}e.set(t,[n])}function h(e){return Array.from(new Set(e))}function Ne(e,t){let n=new Map,r=new Map,i=new Map,a=[],o=[],s=[],c=[];for(let o of e){let e=t.getRowId(o);if(n.has(e)){a.push(e);continue}let s=t.getParentRowId(o)??null;n.set(e,o),r.set(e,s),c.push(e),s!==null&&s!==e&&Me(i,s,e)}let l=[];for(let e of c){let t=r.get(e)??null;if(t===null){l.push(e);continue}if(t===e){s.push(e),l.push(e);continue}n.has(t)||(o.push(e),l.push(e))}let u=new Set,d=(e,t)=>{let r=n.get(e);if(!r)throw Error(`Не удалось построить дерево: строка "${e}" отсутствует в индексе.`);u.add(e);let a=new Set(t);a.add(e);let o={...r},c=i.get(e)??[],l=[];for(let e of c){if(a.has(e)){s.push(e);continue}u.has(e)||l.push(d(e,a))}return l.length>0&&(o.children=l),o},f=[],ee=[];for(let e of l)u.has(e)||(f.push(d(e,new Set)),ee.push(e));for(let e of c)u.has(e)||(s.push(e),f.push(d(e,new Set)),ee.push(e));return{rows:f,rowById:n,allRowIds:c,rootRowIds:h(ee),orphanRowIds:h(o),duplicateRowIds:h(a),cyclicRowIds:h(s)}}function Pe(){return(Pe=e((()=>{})))()}var Fe,g,_,Ie,v,y,b,x;function S(){return(S=e((()=>{Fe=`jOS9rT`,g=`zHOAf7`,_=`j48cXg`,Ie=`mf4-Kr`,v=`p8pb0F`,y=`KIudLf`,b=`bJsPGU`,x={treeColumnCell:Fe,selectedIndicatorCell:g,treeCell:_,treeCellContent:Ie,expanderButton:v,expanderSpacer:y,sentinel:b}})))()}function Le(e){return Object.fromEntries(e.map(e=>[e,!0]))}function Re(e){return typeof e==`boolean`?[]:Object.keys(e).filter(t=>e[t])}function ze(e,t){return t.get(e.id)??e.original}function Be(e,t,n,r){return e.cell.column.id===n?(0,T.jsxs)(`div`,{className:x.treeCell,style:{paddingInlineStart:`calc(${e.row.depth} * ${oe(r)??`0em`})`},children:[e.row.getCanExpand()?(0,T.jsx)(`button`,{type:`button`,className:x.expanderButton,"aria-label":e.row.getIsExpanded()?`Свернуть строку`:`Развернуть строку`,"data-tree-table-interactive":`true`,"data-ui":`tree-table-expander`,"data-action":e.row.getIsExpanded()?`collapse-tree-table-row`:`expand-tree-table-row`,onClick:t=>{t.stopPropagation(),e.row.toggleExpanded()},children:e.row.getIsExpanded()?(0,T.jsx)(i,{size:16}):(0,T.jsx)(o,{size:16})}):(0,T.jsx)(`span`,{className:x.expanderSpacer,"aria-hidden":`true`}),(0,T.jsx)(`div`,{className:x.treeCellContent,children:t})]}):t}function C({title:e,isLoading:t,isFetching:n,data:r,columns:i,hierarchy:a,selectionMode:o=`none`,expandFirstLevel:s=!1,defaultExpandedRowIds:c,treeColumnId:l,indentSize:u=1,className:d,tableClassName:f,columnVisibility:te,defaultColumnVisibility:ne,columnOrder:ie,defaultColumnOrder:ae,columnSizing:oe,defaultColumnSizing:ce,columnPinning:ue,defaultColumnPinning:de,enableColumnResizing:p=!1,enableColumnReordering:pe=!1,columnResizeMinWidth:me,onColumnVisibilityChange:ge,onColumnOrderChange:ve,onColumnSizingChange:be,onColumnPinningChange:xe,onRowClick:Se,onRowSelectionChange:Ce,onExpandedRowIdsChange:De,onReachEnd:m,getRowCanSelect:Me,getRowClassName:h,renderHeaderContextMenu:Pe,renderCellContent:Fe}){let g=(0,w.useMemo)(()=>Ne(r??[],a),[r,a]),_=(0,w.useMemo)(()=>ye(i),[i]),Ie=(0,w.useMemo)(()=>{let e=new Set(c??[]);if(s)for(let t of g.rootRowIds)e.add(t);return Array.from(e)},[c,s,g.rootRowIds]),[v,y]=(0,w.useState)({}),b=(0,w.useRef)(!1),S=(0,w.useRef)(null),C=(0,w.useRef)(null),{rowSelection:Ve,activateRowSelection:He}=re({availableRowIds:g.allRowIds,rowById:g.rowById,selectionMode:o,onRowSelectionChange:Ce}),{columnVisibility:Ue,onColumnVisibilityChange:E}=we({columnVisibility:te,defaultColumnVisibility:ne,onColumnVisibilityChange:ge}),{columnOrder:D,onColumnOrderChange:We}=_e({columnOrder:ie,defaultColumnOrder:ae,onColumnOrderChange:ve}),{columnSizing:O,onColumnSizingChange:k}=he({columnSizing:oe,defaultColumnSizing:ce,columnResizeMinWidth:me,onColumnSizingChange:be}),{columnPinning:A,onColumnPinningChange:Ge}=ke({columnPinning:ue,defaultColumnPinning:de,onColumnPinningChange:xe}),Ke=(0,w.useMemo)(()=>({columnOrder:D,columnPinning:A,columnSizing:O,columnVisibility:Ue}),[D,A,O,Ue]),qe=(0,w.useEffectEvent)((e,t)=>{if(e.length===0){b.current=!1,y({});return}let n=new Set(e);y(e=>{let r=Re(e).filter(e=>n.has(e));return b.current?Le(r):(b.current=!0,Le(Array.from(new Set([...r,...t.filter(e=>n.has(e))]))))})}),j=(0,w.useEffectEvent)(e=>{De?.(Re(e))}),Je=(0,w.useEffectEvent)(()=>{m?.()});(0,w.useEffect)(()=>{qe(g.allRowIds,Ie)},[Ie,g.allRowIds]),(0,w.useEffect)(()=>{j(v)},[v]),(0,w.useEffect)(()=>{if(!m||!S.current||!C.current||t)return;let e=new IntersectionObserver(e=>{e[0]?.isIntersecting&&Je()},{root:S.current,threshold:.1});return e.observe(C.current),()=>e.disconnect()},[t,m,g.rows.length]);let M=je({features:ee,data:g.rows,columns:i,state:{columnOrder:D,columnPinning:A,columnSizing:O,columnVisibility:Ue,expanded:v,rowSelection:Ve},getRowId:e=>a.getRowId(e),getSubRows:e=>e.children,onColumnOrderChange:We,onColumnPinningChange:Ge,onColumnSizingChange:k,onColumnVisibilityChange:E,onExpandedChange:y,enableMultiRowSelection:o===`multi`,enableRowSelection:e=>{if(o===`none`)return!1;let t=ze(e,g.rowById);return!Me||Me(t)}}),N=Ae(M,Ke),P=l??N[0]?.id,Ye=M.getRowModel().rows,Xe=(0,w.useMemo)(()=>Te({rows:Ye,columns:N,resolveRowBoundaryKey:e=>e.depth,excludeColumnIds:P?new Set([P]):void 0}),[Ye,N,P]);return(0,T.jsx)(Ee,{table:M,columnState:Ke,title:e,isLoading:t,isFetching:n,className:d,tableClassName:f,selectionMode:o,scrollableRef:S,interactiveElementSelector:`[data-tree-table-interactive="true"]`,onActivateRow:o!==`none`||Se?e=>{let t=ze(e,g.rowById);He(e.id,e.getCanSelect()),Se?.(t)}:void 0,isRowInteractive:e=>!!(Se||o!==`none`&&e.getCanSelect()),getRowClassName:e=>{let t=ze(e,g.rowById);return h?.(t)},getCellClassName:({row:e,cell:t})=>se(t.column.id===P&&x.treeColumnCell,t.column.id===P&&e.getIsSelected()&&x.selectedIndicatorCell),getCellLayout:({cell:e})=>Xe.get(e.id),renderHeaderContextMenu:Pe,enableColumnResizing:p,enableColumnReordering:pe,columnResizeMinWidth:me,renderCellContent:e=>{let t=ze(e.row,g.rowById),n=le({field:_.runtimeByColumnId[e.cell.column.id],rawValue:e.cell.getValue(),rowData:t,rowKind:`tree`}),r=fe({columnId:e.cell.column.id,runtimeByColumnId:_.runtimeByColumnId,customCellColumnIds:_.customCellColumnIds})?(0,T.jsx)(Oe,{displayValue:n,align:e.columnMeta?.align}):e.defaultContent;return Be(e,Fe?Fe({...e,defaultContent:r,displayValue:n}):r,P,u)},afterTableContent:m?(0,T.jsx)(`div`,{ref:C,className:x.sentinel,"aria-hidden":`true`}):null})}var w,T;function Ve(){return(Ve=e((()=>{w=n(),ue(),ne(),Pe(),ce(),me(),r(),a(),be(),Se(),ve(),Ce(),m(),ge(),xe(),De(),pe(),S(),T=s(),C.__docgenInfo={description:`Древовидная таблица на базе TanStack Table для плоских OData-данных.`,methods:[],displayName:`TreeTable`,props:{title:{required:!1,tsType:{name:`string`},description:`Необязательный заголовок над таблицей.`},isLoading:{required:!1,tsType:{name:`boolean`},description:`Признак первичной загрузки.`},isFetching:{required:!1,tsType:{name:`boolean`},description:`Признак фоновой догрузки или обновления данных.`},data:{required:!0,tsType:{name:`union`,raw:`readonly TData[] | undefined | null`,elements:[{name:`unknown`},{name:`undefined`},{name:`null`}]},description:`Плоский источник строк.`},columns:{required:!0,tsType:{name:`unknown`},description:`Описание колонок через исходный тип строки.`},hierarchy:{required:!0,tsType:{name:`TreeTableFlatHierarchy`,elements:[{name:`TData`}],raw:`TreeTableFlatHierarchy<TData>`},description:`Правила восстановления дерева из плоского списка.`},selectionMode:{required:!1,tsType:{name:`TableSelectionMode`},description:`Режим выбора строк.`,defaultValue:{value:`"none"`,computed:!1}},expandFirstLevel:{required:!1,tsType:{name:`boolean`},description:"Если `true`, при первом появлении данных раскрывает корневой уровень.",defaultValue:{value:`false`,computed:!1}},defaultExpandedRowIds:{required:!1,tsType:{name:`unknown`},description:`Дополнительные строки, которые должны быть раскрыты при первой инициализации.`},treeColumnId:{required:!1,tsType:{name:`string`},description:`Идентификатор колонки, в которой нужно рисовать tree-toggle и отступы.
2
-
3
- Если не указан, используется первая видимая колонка.`},indentSize:{required:!1,tsType:{name:`union`,raw:`string | number`,elements:[{name:`string`},{name:`number`}]},description:`Отступ на один уровень вложенности.
4
-
5
- Числовое значение трактуется как \`em\`.`,defaultValue:{value:`1`,computed:!1}},className:{required:!1,tsType:{name:`string`},description:`Дополнительный CSS-класс корневого контейнера.`},tableClassName:{required:!1,tsType:{name:`string`},description:"Дополнительный CSS-класс тега `table`."},columnVisibility:{required:!1,tsType:{name:`TableColumnVisibilityState`},description:`Внешнее controlled-состояние видимости колонок.`},defaultColumnVisibility:{required:!1,tsType:{name:`TableColumnVisibilityState`},description:`Стартовое uncontrolled-состояние видимости колонок.`},columnOrder:{required:!1,tsType:{name:`unknown`},description:`Внешнее controlled-состояние порядка колонок.`},defaultColumnOrder:{required:!1,tsType:{name:`unknown`},description:`Стартовое uncontrolled-состояние порядка колонок.`},columnSizing:{required:!1,tsType:{name:`TableColumnSizingState`},description:`Внешнее controlled-состояние ширин колонок в px.`},defaultColumnSizing:{required:!1,tsType:{name:`TableColumnSizingState`},description:`Стартовое uncontrolled-состояние ширин колонок в px.`},columnPinning:{required:!1,tsType:{name:`TableColumnPinningState`},description:`Внешнее controlled-состояние start-pinning для колонок.`},defaultColumnPinning:{required:!1,tsType:{name:`TableColumnPinningState`},description:`Стартовое uncontrolled-состояние start-pinning для колонок.`},enableColumnResizing:{required:!1,tsType:{name:`boolean`},description:`Включает изменение ширины колонок через header-handle.`,defaultValue:{value:`false`,computed:!1}},enableColumnReordering:{required:!1,tsType:{name:`boolean`},description:`Включает изменение порядка колонок через drag&drop заголовков.`,defaultValue:{value:`false`,computed:!1}},columnResizeMinWidth:{required:!1,tsType:{name:`number`},description:`Минимальная ширина колонки при resize в px.`},onColumnVisibilityChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(state: TableColumnVisibilityState) => void`,signature:{arguments:[{type:{name:`TableColumnVisibilityState`},name:`state`}],return:{name:`void`}}},description:`Вызывается после изменения видимости колонок.`},onColumnOrderChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(state: TableColumnOrderState) => void`,signature:{arguments:[{type:{name:`TableColumnOrderState`},name:`state`}],return:{name:`void`}}},description:`Вызывается после изменения порядка колонок.`},onColumnSizingChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(state: TableColumnSizingState) => void`,signature:{arguments:[{type:{name:`TableColumnSizingState`},name:`state`}],return:{name:`void`}}},description:`Вызывается после изменения ширины колонок.`},onColumnPinningChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(state: TableColumnPinningState) => void`,signature:{arguments:[{type:{name:`TableColumnPinningState`},name:`state`}],return:{name:`void`}}},description:`Вызывается после изменения start-pinning state.`},onRowClick:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(row: TData) => void`,signature:{arguments:[{type:{name:`TData`},name:`row`}],return:{name:`void`}}},description:`Вызывается при активации строки кликом или клавиатурой.`},onRowSelectionChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(rows: TData[]) => void`,signature:{arguments:[{type:{name:`Array`,elements:[{name:`TData`}],raw:`TData[]`},name:`rows`}],return:{name:`void`}}},description:`Вызывается после изменения выбранных строк.`},onExpandedRowIdsChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(rowIds: string[]) => void`,signature:{arguments:[{type:{name:`Array`,elements:[{name:`string`}],raw:`string[]`},name:`rowIds`}],return:{name:`void`}}},description:`Вызывается после изменения раскрытых узлов.`},onReachEnd:{required:!1,tsType:{name:`signature`,type:`function`,raw:`() => void`,signature:{arguments:[],return:{name:`void`}}},description:`Вызывается при достижении конца таблицы внутри scroll-контейнера.`},getRowCanSelect:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(row: TData) => boolean`,signature:{arguments:[{type:{name:`TData`},name:`row`}],return:{name:`boolean`}}},description:`Позволяет запретить выбор отдельных строк.`},getRowClassName:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(row: TData) => string | undefined`,signature:{arguments:[{type:{name:`TData`},name:`row`}],return:{name:`union`,raw:`string | undefined`,elements:[{name:`string`},{name:`undefined`}]}}},description:`Позволяет добавить CSS-класс для конкретной строки.`},renderHeaderContextMenu:{required:!1,tsType:{name:`BaseTableProps["renderHeaderContextMenu"]`,raw:`BaseTableProps<TreeTableRuntimeRow<TData>>["renderHeaderContextMenu"]`},description:`Контекстное меню заголовка колонки. Получает runtime-строки дерева,
6
- потому что BaseTable работает уже после сборки flat hierarchy.`},renderCellContent:{required:!1,tsType:{name:`BaseTableProps["renderCellContent"]`,raw:`BaseTableProps<TreeTableRuntimeRow<TData>>["renderCellContent"]`},description:`Точка расширения содержимого ячейки после общего форматирования.
7
-
8
- Для tree-column в \`defaultContent\` передается только содержимое ячейки:
9
- TreeTable сам добавит expander и отступ после выполнения слота.`}}}})))()}var He=t({Basic:()=>z,CollapsedByDefault:()=>V,Empty:()=>G,Fetching:()=>W,Loading:()=>K,MultiSelect:()=>B,WithDefaultExpandedBranch:()=>H,WithDisabledRows:()=>U,WithFormattedTreeColumn:()=>J,WithFormulaColumn:()=>q,WithHiddenZero:()=>Y,WithMergedDuplicates:()=>X,WithODataMetadataAdapter:()=>Z,WithUseODataTableColumnsBuildHook:()=>Q,WithUseODataTableColumnsEnrichHook:()=>$,__namedExportsOrder:()=>it,default:()=>nt});function Ue(){return{version:1,plan:{steps:[{id:`state`,type:`resolveValueState`,config:{resolver:{kind:`threshold`,thresholds:[100],states:[`success`,`warning`],invalidState:`none`},icon:{enabled:!0,showValue:!0,position:`right`}}},{id:`typed`,type:`typedValueFormat`}]}}}function E({args:e,updateArgs:t}){return(0,A.jsx)(C,{...e,onColumnVisibilityChange:n=>{e.onColumnVisibilityChange?.(n),t({columnVisibility:n})},onColumnOrderChange:n=>{e.onColumnOrderChange?.(n),t({columnOrder:n})},onColumnSizingChange:n=>{e.onColumnSizingChange?.(n),t({columnSizing:n})},onColumnPinningChange:n=>{e.onColumnPinningChange?.(n),t({columnPinning:n})}})}function D({args:e,updateArgs:t}){let{columns:n,metadata:r,isLoading:i}=ae({service:F,target:I,mode:`build`});return(0,A.jsxs)(`div`,{style:{display:`grid`,gap:`0.75em`},children:[(0,A.jsxs)(`div`,{children:[`Режим build: hook собрал `,n.length,` колонки из metadata`,r?` для сущности «${r.title}».`:`.`]}),(0,A.jsx)(E,{args:{...e,columns:n,isLoading:e.isLoading??i},updateArgs:t})]})}function We({args:e,updateArgs:t}){let{columns:n,metadata:r,isLoading:i}=ae({service:F,target:I,mode:`enrich`,columns:[{id:`label`,accessorKey:`label`,header:`Статья`,meta:{width:16}},{id:`createdAt`,accessorKey:`createdAt`,header:`Создано`,meta:{width:12}},{id:`totalAmount`,accessorKey:`totalAmount`,header:`Итог`,meta:{width:10,align:`right`}}]});return(0,A.jsxs)(`div`,{style:{display:`grid`,gap:`0.75em`},children:[(0,A.jsxs)(`div`,{children:[`Режим enrich: hook сохранил ручные tree-колонки и дополнил их formatting-контекстом`,r?` из metadata «${r.title}».`:`.`]}),(0,A.jsx)(E,{args:{...e,columns:n,isLoading:e.isLoading??i},updateArgs:t})]})}function O({args:e,updateArgs:t,intro:n}){let[r,i]=(0,k.useState)([]);return(0,A.jsxs)(`div`,{style:{display:`grid`,gap:`0.75em`},children:[n?(0,A.jsx)(`div`,{children:n}):null,(0,A.jsxs)(`div`,{children:[`Выбрано: `,r.length>0?r.join(`, `):`ничего`]}),(0,A.jsx)(E,{args:{...e,onRowSelectionChange:t=>{e.onRowSelectionChange?.(t),i(t.map(e=>e.label))}},updateArgs:t})]})}var k,A,Ge,Ke,qe,j,Je,M,N,P,Ye,Xe,Ze,Qe,$e,F,I,et,tt,nt,L,R,rt,z,B,V,H,U,W,G,K,q,J,Y,X,Z,Q,$,it;function at(){return(at=e((()=>{k=n(),te(),f(),ne(),c(),de(),Ve(),A=s(),Ge=[{id:`revenue`,parentId:null,label:`Выручка`,jan:`1 240`,feb:`1 320`,mar:`1 410`,apr:`1 505`},{id:`revenue_clients`,parentId:`revenue`,label:`Клиентский сегмент`,jan:`920`,feb:`960`,mar:`1 020`,apr:`1 080`},{id:`revenue_exports`,parentId:`revenue`,label:`Экспорт`,jan:`320`,feb:`360`,mar:`390`,apr:`425`},{id:`margin`,parentId:null,label:`Маржинальность`,jan:`18%`,feb:`19%`,mar:`21%`,apr:`20%`},{id:`margin_sales`,parentId:`margin`,label:`Продажи`,jan:`12%`,feb:`13%`,mar:`14%`,apr:`14%`},{id:`margin_logistics`,parentId:`margin`,label:`Логистика`,jan:`6%`,feb:`6%`,mar:`7%`,apr:`6%`},{id:`margin_logistics_local`,parentId:`margin_logistics`,label:`Локальная логистика`,jan:`4%`,feb:`4%`,mar:`5%`,apr:`4%`},{id:`margin_logistics_export`,parentId:`margin_logistics`,label:`Экспортная логистика`,jan:`2%`,feb:`2%`,mar:`2%`,apr:`2%`,isLocked:!0},{id:`orphan_costs`,parentId:`missing_parent`,label:`Прочие расходы без родителя`,jan:`30`,feb:`28`,mar:`31`,apr:`35`}],Ke=[{id:`label`,accessorKey:`label`,header:`Показатель`,meta:{width:18,align:`left`}},{id:`jan`,accessorKey:`jan`,header:`янв`,meta:{width:8,align:`right`}},{id:`feb`,accessorKey:`feb`,header:`фев`,meta:{width:8,align:`right`}},{id:`mar`,accessorKey:`mar`,header:`мар`,meta:{width:8,align:`right`}},{id:`apr`,accessorKey:`apr`,header:`апр`,meta:{width:8,align:`right`}}],qe={getRowId:e=>e.id,getParentRowId:e=>e.parentId},j={getRowId:e=>e.id,getParentRowId:e=>e.parentId},Je={getRowId:e=>e.id,getParentRowId:e=>e.parentId},M=[{id:`revenue`,parentId:null,label:`Выручка`,purchasePrice:80,salePrice:125,healthScore:40,pendingAmount:0,createdAt:`2026-03-18T09:15:00.000Z`,totalAmount:1820},{id:`revenue_domestic`,parentId:`revenue`,label:`Внутренний рынок`,purchasePrice:82,salePrice:129,healthScore:120,pendingAmount:250,createdAt:`2026-03-18T10:00:00.000Z`,totalAmount:980},{id:`revenue_export`,parentId:`revenue`,label:`Экспорт`,purchasePrice:75,salePrice:118,healthScore:95,pendingAmount:0,createdAt:`2026-03-19T08:25:00.000Z`,totalAmount:840},{id:`margin`,parentId:null,label:`Маржинальность`,purchasePrice:60,salePrice:90,healthScore:70,pendingAmount:0,createdAt:`2026-03-20T07:05:00.000Z`,totalAmount:640}],N=[{id:`div-root-1`,parentId:null,label:`Корень 1`,division:`ДВД`},{id:`div-root-2`,parentId:null,label:`Корень 2`,division:`ДВД`},{id:`div-root-3`,parentId:null,label:`Корень 3`,division:`УД`},{id:`div-child-1`,parentId:`div-root-3`,label:`Дочерний узел`,division:`УД`}],P=[{id:`label`,accessorKey:`label`,header:`Показатель`,meta:{width:14}},{id:`division`,accessorKey:`division`,header:`Дивизион`,meta:{width:10,mergeDuplicates:!0}}],Ye=[{id:`label`,accessorKey:`label`,header:`Показатель`,meta:{width:16}},{id:`purchasePrice`,accessorKey:`purchasePrice`,header:`Закупка`,meta:{width:8,align:`right`,formatting:{role:`measure`,type:`decimal`}}},{id:`salePrice`,accessorKey:`salePrice`,header:`Продажа`,meta:{width:8,align:`right`,formatting:{role:`measure`,type:`decimal`}}},{id:`markup`,accessorFn:()=>void 0,header:`Наценка`,meta:{width:8,align:`right`,formatting:{role:`measure`,type:`decimal`,formulaId:`markup`,formulaDependencies:[`purchasePrice`,`salePrice`],purelyDerived:!0}}}],Xe=[{id:`totalAmount`,accessorKey:`totalAmount`,header:`Сумма в дереве`,meta:{width:12,align:`right`,formatting:{role:`measure`,type:`decimal`,formattersPipeline:Ue()}}},{id:`label`,accessorKey:`label`,header:`Показатель`,meta:{width:14}}],Ze=[{id:`label`,accessorKey:`label`,header:`Показатель`,meta:{width:16}},{id:`pendingAmount`,accessorKey:`pendingAmount`,header:`Резерв`,meta:{width:8,align:`right`,formatting:{role:`measure`,type:`decimal`,emptyWhenZero:!0}}}],Qe=[{id:`label`,type:`string`,originalType:`Edm.String`,label:`Показатель`,semanticType:`none`,sortable:!0,filterable:!0,role:`dimension`},{id:`createdAt`,type:`datetime`,originalType:`Edm.DateTime`,label:`Дата создания`,semanticType:`none`,sortable:!0,filterable:!0,role:`dimension`},{id:`totalAmount`,type:`decimal`,originalType:`Edm.Decimal`,label:`Сумма`,semanticType:`none`,sortable:!0,filterable:!0,role:`measure`}],$e=ie(Qe),F=`ZDEMO_FINANCE_SRV`,I=`FinanceSet`,et={title:`Финансовая иерархия`,columns:Qe},tt=(e,t)=>{let n=(0,k.useMemo)(()=>{let e=d({}),n=t.parameters.odataService,r=t.parameters.odataEntity,i=t.parameters.odataMetadata;return n&&r&&i&&e.setQueryData(l({service:n}).queryKey,{entities:{[r]:i},functionImports:{}}),e},[t.parameters.odataEntity,t.parameters.odataMetadata,t.parameters.odataService]);return(0,A.jsx)(u,{client:n,children:e()})},nt={title:`UI/TreeTable`,component:C,args:{title:`Финансовые показатели`,data:Ge,columns:Ke,hierarchy:qe,selectionMode:`single`,expandFirstLevel:!0,indentSize:1},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{title:{description:`Заголовок таблицы.`,control:`text`},isLoading:{description:`Показывает состояние первичной загрузки.`,control:`boolean`},isFetching:{description:`Показывает фоновое обновление без очистки дерева.`,control:`boolean`},data:{description:`Плоский источник данных OData.`,control:!1},columns:{description:`Колонки TreeTable.`,control:!1},hierarchy:{description:`Функции получения id строки и id родителя.`,control:!1},selectionMode:{description:`Режим выбора строк.`,control:`inline-radio`,options:[`none`,`single`,`multi`]},expandFirstLevel:{description:`Автоматически раскрывает корневой уровень при первой инициализации.`,control:`boolean`},defaultExpandedRowIds:{description:`Дополнительные строки, которые должны быть раскрыты при первой инициализации.`,control:!1},treeColumnId:{description:`Колонка, в которой рисуется дерево.`,control:`text`},indentSize:{description:`Отступ на уровень вложенности; число трактуется как em.`,control:`number`},columnVisibility:{description:`Controlled-состояние видимости колонок.`,control:!1},defaultColumnVisibility:{description:`Стартовое uncontrolled-состояние видимости колонок.`,control:!1},columnOrder:{description:`Controlled-порядок идентификаторов колонок.`,control:!1},defaultColumnOrder:{description:`Стартовый uncontrolled-порядок колонок.`,control:!1},columnSizing:{description:`Controlled-ширины колонок в px.`,control:!1},defaultColumnSizing:{description:`Стартовые uncontrolled-ширины колонок.`,control:!1},columnPinning:{description:`Controlled-состояние закрепления колонок слева.`,control:!1},defaultColumnPinning:{description:`Стартовое uncontrolled-состояние закрепления колонок слева.`,control:!1},enableColumnResizing:{description:`Включает изменение ширины колонок через header-handle.`,control:`boolean`},enableColumnReordering:{description:`Включает перетаскивание заголовков для изменения порядка колонок.`,control:`boolean`},columnResizeMinWidth:{description:`Минимальная ширина колонки при resize в px.`,control:`number`},onColumnVisibilityChange:{description:`Вызывается после изменения видимости колонок.`,control:!1},onColumnOrderChange:{description:`Вызывается после изменения порядка колонок.`,control:!1},onColumnSizingChange:{description:`Вызывается после изменения ширины колонок.`,control:!1},onColumnPinningChange:{description:`Вызывается после изменения закрепления колонок слева.`,control:!1},getRowCanSelect:{description:`Позволяет запретить выбор отдельных строк.`,control:!1},getRowClassName:{description:`Позволяет назначить CSS-класс конкретной строке.`,control:!1},onRowClick:{description:`Вызывается при активации строки.`,control:!1},onRowSelectionChange:{description:`Вызывается после изменения выбранных строк.`,control:!1},onExpandedRowIdsChange:{description:`Вызывается после изменения раскрытых строк.`,control:!1},onReachEnd:{description:`Вызывается при достижении конца дерева внутри scroll-контейнера.`,control:!1},renderHeaderContextMenu:{description:`Слот контекстного меню заголовка колонки.`,control:!1},renderCellContent:{description:`Слот содержимого ячейки поверх стандартного formatting-runtime.`,control:!1}}},L=p((e,t)=>(0,A.jsx)(E,{args:e,updateArgs:t})),R=p((e,t)=>(0,A.jsx)(E,{args:e,updateArgs:t})),rt=p((e,t)=>(0,A.jsx)(E,{args:e,updateArgs:t})),z={render:L},B={args:{selectionMode:`multi`},render:p((e,t)=>(0,A.jsx)(O,{args:e,updateArgs:t}))},V={args:{expandFirstLevel:!1},render:L},H={args:{expandFirstLevel:!1,defaultExpandedRowIds:[`margin`,`margin_logistics`]},render:L},U={args:{selectionMode:`multi`,getRowCanSelect:e=>!e.isLocked},render:p((e,t)=>(0,A.jsx)(O,{args:e,updateArgs:t,intro:`Строка «Экспортная логистика» остаётся в дереве, но не участвует в выборе.`}))},W={args:{isFetching:!0},render:L},G={args:{data:[]},render:L},K={args:{isLoading:!0},render:L},q={args:{title:`Формула в дереве`,data:M,columns:Ye,hierarchy:j,selectionMode:`none`,expandFirstLevel:!0,indentSize:1},render:R},J={args:{title:`Форматирование tree-колонки`,data:M,columns:Xe,hierarchy:j,treeColumnId:`totalAmount`,selectionMode:`none`,expandFirstLevel:!0,indentSize:1},render:R},Y={args:{title:`Скрытие нулей в дереве`,data:M,columns:Ze,hierarchy:j,selectionMode:`none`,expandFirstLevel:!0,indentSize:1},render:R},X={args:{title:`Слияние дубликатов в дереве`,data:N,columns:P,hierarchy:Je,selectionMode:`none`,expandFirstLevel:!0,indentSize:1},render:rt},Z={args:{title:`OData metadata adapter`,data:M,columns:$e,hierarchy:j,selectionMode:`none`,expandFirstLevel:!0,indentSize:1},render:R},Q={args:{title:`useODataTableColumns: build`,data:M,columns:[],hierarchy:j,selectionMode:`none`,expandFirstLevel:!0,indentSize:1},decorators:[tt],parameters:{odataService:F,odataEntity:I,odataMetadata:et},render:p((e,t)=>(0,A.jsx)(D,{args:e,updateArgs:t}))},$={args:{title:`useODataTableColumns: enrich`,data:M,columns:[],hierarchy:j,selectionMode:`none`,expandFirstLevel:!0,indentSize:1},decorators:[tt],parameters:{odataService:F,odataEntity:I,odataMetadata:et},render:p((e,t)=>(0,A.jsx)(We,{args:e,updateArgs:t}))},z.parameters={...z.parameters,docs:{...z.parameters?.docs,source:{originalSource:`{
10
- render: renderFinancialTreeTableStory
11
- }`,...z.parameters?.docs?.source},description:{story:`Базовый сценарий дерева с раскрытием первого уровня.`,...z.parameters?.docs?.description}}},B.parameters={...B.parameters,docs:{...B.parameters?.docs,source:{originalSource:`{
12
- args: {
13
- selectionMode: "multi"
14
- },
15
- render: createControlledStoryRender<TreeTableProps<FinancialRow>>((args, updateArgs) => <SelectionTreeTableCanvas args={args} updateArgs={updateArgs} />)
16
- }`,...B.parameters?.docs?.source},description:{story:`Множественный выбор с отображением текущего результата.`,...B.parameters?.docs?.description}}},V.parameters={...V.parameters,docs:{...V.parameters?.docs,source:{originalSource:`{
17
- args: {
18
- expandFirstLevel: false
19
- },
20
- render: renderFinancialTreeTableStory
21
- }`,...V.parameters?.docs?.source},description:{story:`Дерево остаётся свёрнутым до взаимодействия пользователя.`,...V.parameters?.docs?.description}}},H.parameters={...H.parameters,docs:{...H.parameters?.docs,source:{originalSource:`{
22
- args: {
23
- expandFirstLevel: false,
24
- defaultExpandedRowIds: ["margin", "margin_logistics"]
25
- },
26
- render: renderFinancialTreeTableStory
27
- }`,...H.parameters?.docs?.source},description:{story:`Дополнительно раскрывает конкретную ветку при первой инициализации.`,...H.parameters?.docs?.description}}},U.parameters={...U.parameters,docs:{...U.parameters?.docs,source:{originalSource:`{
28
- args: {
29
- selectionMode: "multi",
30
- getRowCanSelect: row => !row.isLocked
31
- },
32
- render: createControlledStoryRender<TreeTableProps<FinancialRow>>((args, updateArgs) => <SelectionTreeTableCanvas args={args} updateArgs={updateArgs} intro="Строка «Экспортная логистика» остаётся в дереве, но не участвует в выборе." />)
33
- }`,...U.parameters?.docs?.source},description:{story:`Часть строк можно показать, но запретить выбирать.`,...U.parameters?.docs?.description}}},W.parameters={...W.parameters,docs:{...W.parameters?.docs,source:{originalSource:`{
34
- args: {
35
- isFetching: true
36
- },
37
- render: renderFinancialTreeTableStory
38
- }`,...W.parameters?.docs?.source},description:{story:`Сценарий фонового обновления данных без очистки дерева.`,...W.parameters?.docs?.description}}},G.parameters={...G.parameters,docs:{...G.parameters?.docs,source:{originalSource:`{
39
- args: {
40
- data: []
41
- },
42
- render: renderFinancialTreeTableStory
43
- }`,...G.parameters?.docs?.source},description:{story:`Пустой источник данных.`,...G.parameters?.docs?.description}}},K.parameters={...K.parameters,docs:{...K.parameters?.docs,source:{originalSource:`{
44
- args: {
45
- isLoading: true
46
- },
47
- render: renderFinancialTreeTableStory
48
- }`,...K.parameters?.docs?.source},description:{story:`Состояние первичной загрузки.`,...K.parameters?.docs?.description}}},q.parameters={...q.parameters,docs:{...q.parameters?.docs,source:{originalSource:`{
49
- args: {
50
- title: "Формула в дереве",
51
- data: formattingRows,
52
- columns: formulaColumns,
53
- hierarchy: formattingHierarchy,
54
- selectionMode: "none",
55
- expandFirstLevel: true,
56
- indentSize: 1
57
- },
58
- render: renderFormattingTreeTableStory
59
- }`,...q.parameters?.docs?.source},description:{story:`Сценарий с formula-based колонкой в древовидной таблице.`,...q.parameters?.docs?.description}}},J.parameters={...J.parameters,docs:{...J.parameters?.docs,source:{originalSource:`{
60
- args: {
61
- title: "Форматирование tree-колонки",
62
- data: formattingRows,
63
- columns: treeFormattedColumns,
64
- hierarchy: formattingHierarchy,
65
- treeColumnId: "totalAmount",
66
- selectionMode: "none",
67
- expandFirstLevel: true,
68
- indentSize: 1
69
- },
70
- render: renderFormattingTreeTableStory
71
- }`,...J.parameters?.docs?.source},description:{story:`Сценарий, где formatting применяется прямо в tree-колонке.`,...J.parameters?.docs?.description}}},Y.parameters={...Y.parameters,docs:{...Y.parameters?.docs,source:{originalSource:`{
72
- args: {
73
- title: "Скрытие нулей в дереве",
74
- data: formattingRows,
75
- columns: hiddenZeroColumns,
76
- hierarchy: formattingHierarchy,
77
- selectionMode: "none",
78
- expandFirstLevel: true,
79
- indentSize: 1
80
- },
81
- render: renderFormattingTreeTableStory
82
- }`,...Y.parameters?.docs?.source},description:{story:`Сценарий со скрытием нулевых значений в дереве.`,...Y.parameters?.docs?.description}}},X.parameters={...X.parameters,docs:{...X.parameters?.docs,source:{originalSource:`{
83
- args: {
84
- title: "Слияние дубликатов в дереве",
85
- data: divisionTreeRows,
86
- columns: divisionTreeColumns,
87
- hierarchy: divisionTreeHierarchy,
88
- selectionMode: "none",
89
- expandFirstLevel: true,
90
- indentSize: 1
91
- },
92
- render: renderDivisionTreeTableStory
93
- }`,...X.parameters?.docs?.source},description:{story:"Сценарий со слиянием дубликатов на одной глубине в `TreeTable`.",...X.parameters?.docs?.description}}},Z.parameters={...Z.parameters,docs:{...Z.parameters?.docs,source:{originalSource:`{
94
- args: {
95
- title: "OData metadata adapter",
96
- data: formattingRows,
97
- columns: adapterColumns,
98
- hierarchy: formattingHierarchy,
99
- selectionMode: "none",
100
- expandFirstLevel: true,
101
- indentSize: 1
102
- },
103
- render: renderFormattingTreeTableStory
104
- }`,...Z.parameters?.docs?.source},description:{story:`Сценарий со статическим OData metadata adapter в build-режиме.`,...Z.parameters?.docs?.description}}},Q.parameters={...Q.parameters,docs:{...Q.parameters?.docs,source:{originalSource:`{
105
- args: {
106
- title: "useODataTableColumns: build",
107
- data: formattingRows,
108
- columns: [],
109
- hierarchy: formattingHierarchy,
110
- selectionMode: "none",
111
- expandFirstLevel: true,
112
- indentSize: 1
113
- },
114
- decorators: [withMockedHookODataMetadata],
115
- parameters: {
116
- odataService: HOOK_ODATA_SERVICE,
117
- odataEntity: HOOK_ODATA_ENTITY,
118
- odataMetadata: hookMetadata
119
- },
120
- render: createControlledStoryRender<TreeTableProps<FinancialFormattingRow>>((args, updateArgs) => <HookBuildTreeTableStory args={args} updateArgs={updateArgs} />)
121
- }`,...Q.parameters?.docs?.source},description:{story:"Реальный hook-сценарий `useODataTableColumns(...)` в режиме build для TreeTable.",...Q.parameters?.docs?.description}}},$.parameters={...$.parameters,docs:{...$.parameters?.docs,source:{originalSource:`{
122
- args: {
123
- title: "useODataTableColumns: enrich",
124
- data: formattingRows,
125
- columns: [],
126
- hierarchy: formattingHierarchy,
127
- selectionMode: "none",
128
- expandFirstLevel: true,
129
- indentSize: 1
130
- },
131
- decorators: [withMockedHookODataMetadata],
132
- parameters: {
133
- odataService: HOOK_ODATA_SERVICE,
134
- odataEntity: HOOK_ODATA_ENTITY,
135
- odataMetadata: hookMetadata
136
- },
137
- render: createControlledStoryRender<TreeTableProps<FinancialFormattingRow>>((args, updateArgs) => <HookEnrichTreeTableStory args={args} updateArgs={updateArgs} />)
138
- }`,...$.parameters?.docs?.source},description:{story:"Реальный hook-сценарий `useODataTableColumns(...)` в режиме enrich для TreeTable.",...$.parameters?.docs?.description}}},it=[`Basic`,`MultiSelect`,`CollapsedByDefault`,`WithDefaultExpandedBranch`,`WithDisabledRows`,`Fetching`,`Empty`,`Loading`,`WithFormulaColumn`,`WithFormattedTreeColumn`,`WithHiddenZero`,`WithMergedDuplicates`,`WithODataMetadataAdapter`,`WithUseODataTableColumnsBuildHook`,`WithUseODataTableColumnsEnrichHook`]})))()}export{at as _,K as a,H as c,q as d,Y as f,$ as g,Q as h,W as i,U as l,Z as m,V as n,B as o,X as p,G as r,He as s,z as t,J as u};
@@ -1 +0,0 @@
1
- import{t as e}from"./iframe-DB62bexO.js";e();
@@ -1,9 +0,0 @@
1
- import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-DB62bexO.js";import{c as i}from"./ModalManagerProvider-41HvR5kw.js";var a,o;function s(){return(s=t((()=>{a=n(),o=(0,a.createContext)({})})))()}function c(e){let t=(0,l.useRef)(null);return t.current===null&&(t.current=e()),t.current}var l;function u(){return(u=t((()=>{l=n()})))()}var d;function f(){return(f=t((()=>{d=typeof window<`u`})))()}var p,m;function h(){return(h=t((()=>{p=n(),f(),m=d?p.useLayoutEffect:p.useEffect})))()}var g,_;function v(){return(v=t((()=>{g=n(),_=(0,g.createContext)(null)})))()}function y(e,t){e.indexOf(t)===-1&&e.push(t)}function b(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var x;function S(){return(S=t((()=>{x=(e,t,n)=>n>t?t:n<e?e:n})))()}var C,w;function T(){return(T=t((()=>{C=()=>{},w=()=>{}})))()}var E;function ee(){return(ee=t((()=>{E={}})))()}var te;function ne(){return(ne=t((()=>{te=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)})))()}var re;function ie(){return(ie=t((()=>{re=e=>typeof e==`object`&&!!e})))()}var ae;function oe(){return(oe=t((()=>{ae=e=>/^0[^.\s]+$/u.test(e)})))()}function se(e){let t;return()=>(t===void 0&&(t=e()),t)}var D;function O(){return(O=t((()=>{D=e=>e})))()}var ce;function le(){return(le=t((()=>{ce=(...e)=>e.reduce((e,t)=>n=>t(e(n)))})))()}var ue;function de(){return(de=t((()=>{ue=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1}})))()}var fe;function pe(){return(pe=t((()=>{fe=class{constructor(){this.subscriptions=[]}add(e){return y(this.subscriptions,e),()=>b(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}}})))()}var k,A;function me(){return(me=t((()=>{k=e=>e*1e3,A=e=>e/1e3})))()}var he;function ge(){return(ge=t((()=>{he=(e,t)=>t?1e3/t*e:0})))()}function _e(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ye(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>be&&++s<xe);return o}function ve(e,t,n,r){if(e===t&&n===r)return D;let i=t=>_e(t,0,1,e,n);return e=>e===0||e===1?e:ye(i(e),t,r)}var ye,be,xe;function Se(){return(Se=t((()=>{O(),ye=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,be=1e-7,xe=12})))()}var Ce;function we(){return(we=t((()=>{Ce=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2})))()}var Te;function Ee(){return(Ee=t((()=>{Te=e=>t=>1-e(1-t)})))()}var De,Oe,ke;function Ae(){return(Ae=t((()=>{Se(),we(),Ee(),De=ve(.33,1.53,.69,.99),Oe=Te(De),ke=Ce(Oe)})))()}var je;function Me(){return(Me=t((()=>{Ae(),je=e=>e>=1?1:(e*=2)<1?.5*Oe(e):.5*(2-2**(-10*(e-1)))})))()}var Ne,Pe,Fe;function Ie(){return(Ie=t((()=>{we(),Ee(),Ne=e=>1-Math.sin(Math.acos(e)),Pe=Te(Ne),Fe=Ce(Ne)})))()}var Le,Re,ze;function Be(){return(Be=t((()=>{Se(),Le=ve(.42,0,1,1),Re=ve(0,0,.58,1),ze=ve(.42,0,.58,1)})))()}var Ve;function He(){return(He=t((()=>{Ve=e=>Array.isArray(e)&&typeof e[0]!=`number`})))()}var Ue;function We(){return(We=t((()=>{Ue=e=>Array.isArray(e)&&typeof e[0]==`number`})))()}var Ge,Ke,qe;function Je(){return(Je=t((()=>{T(),O(),Me(),Ae(),Ie(),Se(),Be(),We(),Ge={linear:D,easeIn:Le,easeInOut:ze,easeOut:Re,circIn:Ne,circInOut:Fe,circOut:Pe,backIn:Oe,backInOut:ke,backOut:De,anticipate:je},Ke=e=>typeof e==`string`,qe=e=>{if(Ue(e)){w(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return ve(t,n,r,i)}return Ke(e)?(w(Ge[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Ge[e]):e}})))()}var Ye;function Xe(){return(Xe=t((()=>{Ye=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`]})))()}function Ze(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?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}function Qe(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ye.reduce((e,t)=>(e[t]=Ze(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=E.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,$e),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ye.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ye.length;t++)o[Ye[t]].cancel(e)},state:i,steps:o}}var $e;function et(){return(et=t((()=>{ee(),Xe(),$e=40})))()}var j,tt,M,nt;function N(){return(N=t((()=>{O(),et(),{schedule:j,cancel:tt,state:M,steps:nt}=Qe(typeof requestAnimationFrame<`u`?requestAnimationFrame:D,!0)})))()}function rt(){it=void 0}var it,P;function at(){return(at=t((()=>{ee(),N(),P={now:()=>(it===void 0&&P.set(M.isProcessing||E.useManualTiming?M.timestamp:performance.now()),it),set:e=>{it=e,queueMicrotask(rt)}}})))()}function ot(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var st,ct,lt,ut,dt;function ft(){return(ft=t((()=>{st=e=>t=>typeof t==`string`&&t.startsWith(e),ct=st(`--`),lt=st(`var(--`),ut=e=>lt(e)?dt.test(e.split(`/*`)[0].trim()):!1,dt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu})))()}var pt,mt,ht;function gt(){return(gt=t((()=>{S(),pt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},mt={...pt,transform:e=>x(0,1,e)},ht={...pt,default:1}})))()}var _t;function vt(){return(vt=t((()=>{_t=e=>Math.round(e*1e5)/1e5})))()}var yt;function bt(){return(bt=t((()=>{yt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu})))()}function xt(e){return e==null}var St;function Ct(){return(Ct=t((()=>{St=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu})))()}var wt,Tt;function Et(){return(Et=t((()=>{bt(),Ct(),wt=(e,t)=>n=>!!(typeof n==`string`&&St.test(n)&&n.startsWith(e)||t&&!xt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(yt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}}})))()}var Dt,Ot,kt;function At(){return(At=t((()=>{S(),gt(),vt(),Et(),Dt=e=>x(0,255,e),Ot={...pt,transform:e=>Math.round(Dt(e))},kt={test:wt(`rgb`,`red`),parse:Tt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ot.transform(e)+`, `+Ot.transform(t)+`, `+Ot.transform(n)+`, `+_t(mt.transform(r))+`)`}})))()}function jt(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}}var Mt;function Nt(){return(Nt=t((()=>{At(),Et(),Mt={test:wt(`#`),parse:jt,transform:kt.transform}})))()}var Pt,F,I,L,Ft,It,Lt;function R(){return(R=t((()=>{Pt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=Pt(`deg`),I=Pt(`%`),L=Pt(`px`),Ft=Pt(`vh`),It=Pt(`vw`),Lt={...I,parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)}})))()}var Rt;function zt(){return(zt=t((()=>{gt(),R(),vt(),Et(),Rt={test:wt(`hsl`,`hue`),parse:Tt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(_t(t))+`, `+I.transform(_t(n))+`, `+_t(mt.transform(r))+`)`}})))()}var z;function Bt(){return(Bt=t((()=>{Nt(),zt(),At(),z={test:e=>kt.test(e)||Mt.test(e)||Rt.test(e),parse:e=>kt.test(e)?kt.parse(e):Rt.test(e)?Rt.parse(e):Mt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?kt.transform(e):Rt.transform(e),getAnimatableNone:e=>{let t=z.parse(e);return t.alpha=0,z.transform(t)}}})))()}var Vt;function Ht(){return(Ht=t((()=>{Vt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu})))()}function Ut(e){return isNaN(e)&&typeof e==`string`&&(e.match(yt)?.length||0)+(e.match(Vt)?.length||0)>0}function Wt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(en,e=>(z.test(e)?(r.color.push(a),i.push(Xt),n.push(z.parse(e))):e.startsWith(Qt)?(r.var.push(a),i.push(Zt),n.push(e)):(r.number.push(a),i.push(Yt),n.push(parseFloat(e))),++a,$t)).split($t),indexes:r,types:i}}function Gt(e){return Wt(e).values}function Kt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Yt?_t(r[a]):e===Xt?z.transform(r[a]):r[a]}return i}}function qt(e){return Kt(Wt(e))}function Jt(e){let t=Wt(e);return Kt(t)(t.values.map((e,n)=>nn(e,t.split[n])))}var Yt,Xt,Zt,Qt,$t,en,tn,nn,B;function V(){return(V=t((()=>{Bt(),Ht(),bt(),vt(),Yt=`number`,Xt=`color`,Zt=`var`,Qt=`var(`,$t="${}",en=/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,tn=e=>typeof e==`number`?0:z.test(e)?z.getAnimatableNone(e):e,nn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:tn(e),B={test:Ut,parse:Gt,createTransformer:qt,getAnimatableNone:Jt}})))()}function rn(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 an({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=rn(s,r,e+1/3),a=rn(s,r,e),o=rn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function on(e,t){return n=>n>0?t:e}var H;function U(){return(U=t((()=>{H=(e,t,n)=>e+(t-e)*n})))()}function sn(e){let t=un(e);if(C(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===Rt&&(n=an(n)),n}var cn,ln,un,dn;function fn(){return(fn=t((()=>{T(),Nt(),zt(),At(),U(),cn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ln=[Mt,kt,Rt],un=e=>ln.find(t=>t.test(e)),dn=(e,t)=>{let n=sn(e),r=sn(t);if(!n||!r)return on(e,t);let i={...n};return e=>(i.red=cn(n.red,r.red,e),i.green=cn(n.green,r.green,e),i.blue=cn(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),kt.transform(i))}})))()}function pn(e,t){return mn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}var mn;function hn(){return(hn=t((()=>{mn=new Set([`none`,`hidden`])})))()}function gn(e,t){return n=>H(e,t,n)}function _n(e){return typeof e==`number`?gn:typeof e==`string`?ut(e)?on:z.test(e)?dn:xn:Array.isArray(e)?vn:typeof e==`object`?z.test(e)?dn:yn:on}function vn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>_n(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function yn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=_n(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function bn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var xn;function Sn(){return(Sn=t((()=>{le(),T(),ft(),Bt(),V(),fn(),U(),hn(),xn=(e,t)=>{let n=B.createTransformer(t),r=Wt(e),i=Wt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?mn.has(e)&&!i.values.length||mn.has(t)&&!r.values.length?pn(e,t):ce(vn(bn(r,i),i.values),n):(C(!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.`,`complex-values-different`),on(e,t))}})))()}function Cn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?H(e,t,n):_n(e)(e,t)}function wn(){return(wn=t((()=>{Sn(),U()})))()}var Tn;function En(){return(En=t((()=>{at(),N(),Tn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>j.update(t,e),stop:()=>tt(t),now:()=>M.isProcessing?M.timestamp:P.now()}}})))()}var Dn;function On(){return(On=t((()=>{Dn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`}})))()}function kn(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}var An;function jn(){return(jn=t((()=>{An=2e4})))()}function Mn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(kn(r),An);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:A(i)}}function Nn(){return(Nn=t((()=>{me(),jn()})))()}function Pn(e,t){return e*Math.sqrt(1-t*t)}function Fn(e,t,n){let r=n;for(let n=1;n<Bn;n++)r-=e(r)/t(r);return r}function In({duration:e=W.duration,bounce:t=W.bounce,velocity:n=W.velocity,mass:r=W.mass}){let i,a;C(e<=k(W.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=x(W.minDamping,W.maxDamping,o),e=x(W.minDuration,W.maxDuration,A(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Pn(t,o),c=Math.exp(-i);return Vn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Pn(t**2,o);return(-i(t)+Vn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Fn(i,a,s);if(e=k(e),isNaN(c))return{stiffness:W.stiffness,damping:W.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function Ln(e,t){return t.some(t=>e[t]!==void 0)}function Rn(e){let t={velocity:W.velocity,stiffness:W.stiffness,damping:W.damping,mass:W.mass,isResolvedFromDuration:!1,...e};if(!Ln(e,Un)&&Ln(e,Hn)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*x(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:W.mass,stiffness:i,damping:a}}else{let n=In({...e,velocity:0});t={...t,...n,mass:W.mass},t.isResolvedFromDuration=!0}}return t}function zn(e=W.visualDuration,t=W.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}=Rn({...n,velocity:-A(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=A(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?W.restSpeed.granular:W.restSpeed.default,i||=v?W.restDelta.granular:W.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Pn(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}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 t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>k(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=k(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=k(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(kn(T),An),t=Dn(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}var W,Bn,Vn,Hn,Un;function Wn(){return(Wn=t((()=>{me(),S(),T(),On(),jn(),Nn(),W={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},Bn=12,Vn=.001,Hn=[`duration`,`bounce`],Un=[`stiffness`,`damping`,`mass`],zn.applyToOptions=e=>{let t=Mn(e,100,zn);return e.ease=t.ease,e.duration=k(t.duration),e.type=`keyframes`,e}})))()}function Gn(e,t,n){let r=Math.max(t-Kn,0);return he(n-e(r),t-r)}var Kn;function qn(){return(qn=t((()=>{ge(),Kn=5})))()}function Jn({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=zn({keyframes:[f.value,m(f.value)],velocity:Gn(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)}}}function Yn(){return(Yn=t((()=>{Wn(),qn()})))()}function Xn(e,t,n){let r=[],i=n||E.mix||Cn,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]||D:t;a=ce(e,a)}r.push(a)}return r}function Zn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(w(a===t.length,`Both input and output ranges must be the same length`,`range-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=Xn(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=ue(e[r],e[r+1],n);return s[r](i)};return n?t=>l(x(e[0],e[a-1],t)):l}function Qn(){return(Qn=t((()=>{T(),S(),ee(),O(),le(),de(),wn()})))()}function $n(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ue(0,t,r);e.push(H(n,1,i))}}function er(){return(er=t((()=>{de(),U()})))()}function tr(e){let t=[0];return $n(t,e.length-1),t}function nr(){return(nr=t((()=>{er()})))()}function rr(e,t){return e.map(e=>e*t)}function ir(e,t){return e.map(()=>t||ze).splice(0,e.length-1)}function ar({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ve(r)?r.map(qe):qe(r),a={done:!1,value:t[0]},o=Zn(rr(n&&n.length===t.length?n:tr(t),e),t,{ease:Array.isArray(i)?i:ir(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}function or(){return(or=t((()=>{Be(),He(),Je(),Qn(),nr()})))()}function sr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(cr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var cr;function lr(){return(lr=t((()=>{cr=e=>e!==null})))()}function ur(e){typeof e.type==`string`&&(e.type=dr[e.type])}var dr;function fr(){return(fr=t((()=>{Yn(),or(),Wn(),dr={decay:Jn,inertia:Jn,tween:ar,keyframes:ar,spring:zn}})))()}var pr;function mr(){return(mr=t((()=>{pr=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}})))()}var hr,gr;function _r(){return(_r=t((()=>{le(),S(),me(),at(),wn(),En(),Yn(),or(),jn(),qn(),lr(),fr(),mr(),hr=e=>e/100,gr=class extends pr{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;ur(e);let{type:t=ar,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ar;s!==ar&&typeof o[0]!=`number`&&(this.mixKeyframes=ce(hr,Cn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=kn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=x(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:S}=b;!_&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&p!==Jn&&(b.value=sr(l,this.options,h,this.speed)),m&&m(b.value),C&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Gn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(P.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=A(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(P.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}}})))()}function vr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}function yr(e){return+!!e.includes(`scale`)}function br(e,t){if(!e||e===`none`)return yr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=kr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wr,i=t}if(!i)return yr(t);let a=r[t],o=i[1].split(`,`).map(xr);return typeof a==`function`?a(o):o[a]}function xr(e){return parseFloat(e.trim())}var Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar;function jr(){return(jr=t((()=>{Sr=e=>e*180/Math.PI,Cr=e=>{let t=Sr(Math.atan2(e[1],e[0]));return Tr(t)},wr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Cr,rotateZ:Cr,skewX:e=>Sr(Math.atan(e[1])),skewY:e=>Sr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Tr=e=>(e%=360,e<0&&(e+=360),e),Er=Cr,Dr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Or=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dr,scaleY:Or,scale:e=>(Dr(e)+Or(e))/2,rotateX:e=>Tr(Sr(Math.atan2(e[6],e[5]))),rotateY:e=>Tr(Sr(Math.atan2(-e[2],e[0]))),rotateZ:Er,rotate:Er,skewX:e=>Sr(Math.atan(e[4])),skewY:e=>Sr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2},Ar=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return br(n,t)}})))()}var Mr,Nr;function G(){return(G=t((()=>{Mr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Nr=new Set([...Mr,`pathRotation`])})))()}function Pr(e){let t=[];return Lr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Fr,Ir,Lr,Rr;function zr(){return(zr=t((()=>{jr(),G(),gt(),R(),Fr=e=>e===pt||e===L,Ir=new Set([`x`,`y`,`z`]),Lr=Mr.filter(e=>!Ir.has(e)),Rr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-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:(e,{transform:t})=>br(t,`x`),y:(e,{transform:t})=>br(t,`y`)},Rr.translateX=Rr.x,Rr.translateY=Rr.y})))()}function Br(){if(Gr){let e=Array.from(Ur).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Pr(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])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Gr=!1,Wr=!1,Ur.forEach(e=>e.complete(Kr)),Ur.clear()}function Vr(){Ur.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gr=!0)})}function Hr(){Kr=!0,Vr(),Br(),Kr=!1}var Ur,Wr,Gr,Kr,qr;function Jr(){return(Jr=t((()=>{zr(),N(),Ur=new Set,Wr=!1,Gr=!1,Kr=!1,qr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Ur.add(this),Wr||(Wr=!0,j.read(Vr),j.resolveKeyframes(Br))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){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])}vr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ur.delete(this)}cancel(){this.state===`scheduled`&&(Ur.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}}})))()}var Yr;function Xr(){return(Xr=t((()=>{Yr=e=>e.startsWith(`--`)})))()}function Zr(e,t,n){Yr(t)?e.style.setProperty(t,n):e.style[t]=n}function Qr(){return(Qr=t((()=>{Xr()})))()}var $r;function ei(){return(ei=t((()=>{$r={}})))()}function ti(e,t){let n=se(e);return()=>$r[t]??n()}function ni(){return(ni=t((()=>{ei()})))()}var ri;function ii(){return(ii=t((()=>{ni(),ri=ti(()=>window.ScrollTimeline!==void 0,`scrollTimeline`)})))()}var ai;function oi(){return(oi=t((()=>{ni(),ai=ti(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`)})))()}var si;function ci(){return(ci=t((()=>{si=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`})))()}var li;function ui(){return(ui=t((()=>{ci(),li={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:si([0,.65,.55,1]),circOut:si([.55,0,1,.45]),backIn:si([.31,.01,.66,-.59]),backOut:si([.33,1.53,.69,.99])}})))()}function di(e,t){if(e)return typeof e==`function`?ai()?Dn(e,t):`ease-out`:Ue(e)?si(e):Array.isArray(e)?e.map(e=>di(e,t)||li.easeOut):li[e]}function fi(){return(fi=t((()=>{We(),oi(),On(),ci(),ui()})))()}function pi(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=di(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function mi(){return(mi=t((()=>{fi()})))()}function hi(e){return typeof e==`function`&&`applyToOptions`in e}function gi({type:e,...t}){return hi(e)&&ai()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}function _i(){return(_i=t((()=>{oi()})))()}var vi;function yi(){return(yi=t((()=>{T(),me(),O(),Qr(),ii(),lr(),mr(),mi(),_i(),vi=class extends pr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,w(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=gi(e);this.animation=pi(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=sr(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Zr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return A(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&ri()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),D):r(this)}}})))()}function bi(e){return e in Si}function xi(e){typeof e.ease==`string`&&bi(e.ease)&&(e.ease=Si[e.ease])}var Si;function Ci(){return(Ci=t((()=>{Ie(),Ae(),Me(),Si={anticipate:je,backInOut:ke,circInOut:Fe}})))()}var wi,Ti;function Ei(){return(Ei=t((()=>{S(),at(),Qr(),_r(),yi(),fr(),Ci(),wi=10,Ti=class extends vi{constructor(e){xi(e),ur(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new gr({...a,autoplay:!1}),s=Math.max(wi,P.now()-this.startTime),c=x(0,wi,s-wi),l=o.sample(s).value,{name:u}=this.options;i&&u&&Zr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}}})))()}var Di;function Oi(){return(Oi=t((()=>{V(),Di=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(B.test(e)||e===`0`)&&!e.startsWith(`url(`))})))()}function ki(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 Ai(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=Di(i,t),s=Di(a,t);return C(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:ki(e)||(n===`spring`||hi(n))&&r}function ji(){return(ji=t((()=>{T(),Oi()})))()}function Mi(e){e.duration=0,e.type=`keyframes`}var Ni;function Pi(){return(Pi=t((()=>{Ni=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`])})))()}function Fi(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ii.test(e[t]))return!0;return!1}var Ii;function Li(){return(Li=t((()=>{Ii=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/})))()}function Ri(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Bi()&&n&&(Ni.has(n)||zi.has(n)&&Fi(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var zi,Bi;function Vi(){return(Vi=t((()=>{Pi(),Li(),zi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Bi=se(()=>Object.hasOwnProperty.call(Element.prototype,`animate`))})))()}var Hi,Ui;function Wi(){return(Wi=t((()=>{ee(),O(),at(),_r(),lr(),Jr(),Ei(),ji(),mr(),Vi(),Hi=40,Ui=class extends pr{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||qr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=P.now();let u=!0;Ai(e,i,a,o)||(u=!1,(E.instantAnimations||!s)&&l?.(sr(e,n,t)),e[0]=e[e.length-1],Mi(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Hi?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Ri(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Ti({...d,element:p})}catch{m=new gr(d)}else m=new gr(d);m.finished.then(()=>{this.notifyFinished()}).catch(D),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}})))()}function Gi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function Ki(e,t){return new Xi(e,t)}var qi,Ji,Yi,Xi;function Zi(){return(Zi=t((()=>{pe(),ge(),at(),N(),qi=30,Ji=e=>!isNaN(parseFloat(e)),Yi={current:void 0},Xi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=P.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=P.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ji(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 fe);let n=this.events[e].add(t);return e===`change`?()=>{n(),j.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){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Yi.current&&Yi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>qi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,qi);return he(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}})))()}function Qi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function $i(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Qi(n,e)}function ea(){return(ea=t((()=>{})))()}var ta,na,ra,ia,aa;function oa(){return(oa=t((()=>{G(),ta={type:`spring`,stiffness:500,damping:25,restSpeed:10},na=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ra={type:`keyframes`,duration:.8},ia={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},aa=(e,{keyframes:t})=>t.length>2?ra:Nr.has(e)?e.startsWith(`scale`)?na(t[1]):ta:ia})))()}function sa(e){for(let t in e)if(!ca.has(t))return!0;return!1}var ca;function la(){return(la=t((()=>{ca=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`])})))()}var ua;function da(){return(da=t((()=>{me(),ee(),Wi(),_r(),ea(),oa(),lr(),la(),N(),ua=(e,t,n,r={},i,a)=>o=>{let s=$i(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=k(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};sa(s)||Object.assign(u,aa(e,u)),u.duration&&=k(u.duration),u.repeatDelay&&=k(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Mi(u),u.delay===0&&(d=!0)),(E.instantAnimations||E.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Mi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=sr(u.keyframes,s);if(e!==void 0){j.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new gr(u):new Ui(u)}})))()}function fa(e){let t=ma.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function pa(e,t,n=1){w(n<=ha,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=fa(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return te(e)?parseFloat(e):e}return ut(i)?pa(i,t,n+1):i}var ma,ha;function ga(){return(ga=t((()=>{T(),ne(),ft(),ma=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ha=4})))()}function _a(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function va(e,t,n,r){if(typeof t==`function`){let[i,a]=_a(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]=_a(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ya(e,t,n){let r=e.getProps();return va(r,t,n===void 0?r.custom:n,e)}function ba(){return(ba=t((()=>{})))()}var xa;function Sa(){return(Sa=t((()=>{G(),xa=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Mr])})))()}var Ca;function wa(){return(wa=t((()=>{Ca=e=>Array.isArray(e)})))()}function Ta(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ki(n))}function Ea(e){return Ca(e)?e[e.length-1]||0:e}function Da(e,t){let{transitionEnd:n={},transition:r={},...i}=ya(e,t)||{};i={...i,...n};for(let t in i)Ta(e,t,Ea(i[t]))}function Oa(){return(Oa=t((()=>{Zi(),ba(),wa()})))()}var K;function q(){return(q=t((()=>{K=e=>!!(e&&e.getVelocity)})))()}function ka(e){return!!(K(e)&&e.add)}function Aa(){return(Aa=t((()=>{q()})))()}function ja(e,t){let n=e.getValue(`willChange`);if(ka(n))return n.add(t);if(!n&&E.WillChange){let n=new E.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ma(){return(Ma=t((()=>{ee(),Aa()})))()}function Na(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Pa,Fa;function Ia(){return(Ia=t((()=>{Pa=`framerAppearId`,Fa=`data-`+Na(Pa)})))()}function La(e){return e.props[Fa]}function Ra(){return(Ra=t((()=>{Ia()})))()}function za({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ba(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Qi(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&za(f,t))continue;let o={delay:n,...$i(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){j.update(()=>r.set(i));continue}let p=!1;if(Va&&window.MotionHandoffAnimation){let n=La(e);if(n){let e=window.MotionHandoffAnimation(n,t,j);e!==null&&(o.startTime=e,p=!0)}}ja(e,t);let m=l??e.shouldReduceMotion;r.start(ua(t,r,i,m&&xa.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>j.update(()=>{o&&Da(e,o)});d.length?Promise.all(d).then(t):t()}return d}var Va;function Ha(){return(Ha=t((()=>{ea(),Sa(),Oa(),Ma(),Ra(),da(),N(),Va=typeof window<`u`})))()}function Ua(e,t,n={}){let r=ya(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Ba(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Wa(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function Wa(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Ua(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Gi(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Ga(){return(Ga=t((()=>{ba(),Ha()})))()}function Ka(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Ua(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Ua(e,t,n);else{let i=typeof t==`function`?ya(e,t,n.custom):t;r=Promise.all(Ba(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function qa(){return(qa=t((()=>{ba(),Ha(),Ga()})))()}var Ja;function Ya(){return(Ya=t((()=>{Ja={test:e=>e===`auto`,parse:e=>e}})))()}var Xa;function Za(){return(Za=t((()=>{Xa=e=>t=>t.test(e)})))()}var Qa,$a;function eo(){return(eo=t((()=>{Ya(),gt(),R(),Za(),Qa=[pt,L,I,F,It,Ft,Ja],$a=e=>Qa.find(Xa(e))})))()}function to(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ae(e)}function no(){return(no=t((()=>{oe()})))()}function ro(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(yt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!io.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var io,ao,oo;function so(){return(so=t((()=>{V(),bt(),io=new Set([`brightness`,`contrast`,`saturate`,`opacity`]),ao=/\b([a-z-]*)\(.*?\)/gu,oo={...B,getAnimatableNone:e=>{let t=e.match(ao);return t?t.map(ro).join(` `):e}}})))()}var co;function lo(){return(lo=t((()=>{V(),co={...B,getAnimatableNone:e=>{let t=B.parse(e);return B.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}}})))()}var uo;function fo(){return(fo=t((()=>{gt(),uo={...pt,transform:Math.round}})))()}var po;function mo(){return(mo=t((()=>{gt(),R(),po={rotate:F,pathRotation:F,rotateX:F,rotateY:F,rotateZ:F,scale:ht,scaleX:ht,scaleY:ht,scaleZ:ht,skew:F,skewX:F,skewY:F,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:mt,originX:Lt,originY:Lt,originZ:L}})))()}var ho;function go(){return(go=t((()=>{fo(),gt(),R(),mo(),ho={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,...po,zIndex:uo,fillOpacity:mt,strokeOpacity:mt,numOctaves:uo}})))()}var _o,vo;function yo(){return(yo=t((()=>{Bt(),so(),lo(),go(),_o={...ho,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:oo,WebkitFilter:oo,mask:co,WebkitMask:co},vo=e=>_o[e]})))()}function bo(e,t){let n=vo(e);return xo.has(n)||(n=B),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var xo;function So(){return(So=t((()=>{V(),so(),lo(),yo(),xo=new Set([oo,co])})))()}function Co(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!wo.has(t)&&Wt(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=bo(n,i)}var wo;function To(){return(To=t((()=>{V(),So(),wo=new Set([`auto`,`none`,`0`])})))()}var Eo;function Do(){return(Do=t((()=>{Sa(),eo(),ga(),ft(),Jr(),no(),To(),zr(),Eo=class extends qr{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(),ut(r))){let i=pa(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!xa.has(n)||e.length!==2)return;let[r,i]=e,a=$a(r),o=$a(i);if(ot(r)!==ot(i)&&Rr[n]){this.needsMeasurement=!0;return}if(a!==o){if(Fr(a)&&Fr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Rr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||to(e[t]))&&n.push(t);n.length&&Co(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=Rr[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(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Rr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}})))()}var Oo;function ko(){return(ko=t((()=>{Oo=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`]})))()}function Ao(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var jo;function Mo(){return(Mo=t((()=>{jo=(e,t)=>t&&typeof e==`number`?t.transform(e):e})))()}function No(e){return re(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Po(){return(Po=t((()=>{ie()})))()}var Fo,Io;function Lo(){return(Lo=t((()=>{et(),{schedule:Fo,cancel:Io}=Qe(queueMicrotask,!1)})))()}function Ro(){return J.x||J.y}var J;function zo(){return(zo=t((()=>{J={x:!1,y:!1}})))()}function Bo(e){return e===`x`||e===`y`?J[e]?null:(J[e]=!0,()=>{J[e]=!1}):J.x||J.y?null:(J.x=J.y=!0,()=>{J.x=J.y=!1})}function Vo(){return(Vo=t((()=>{zo()})))()}function Ho(e,t){let n=Ao(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Uo(){return(Uo=t((()=>{})))()}function Wo(e){return!(e.pointerType===`touch`||Ro())}function Go(e,t,n={}){let[r,i,a]=Ho(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Wo(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}function Ko(){return(Ko=t((()=>{zo(),Uo()})))()}var qo;function Jo(){return(Jo=t((()=>{qo=(e,t)=>t?e===t||qo(e,t.parentElement):!1})))()}var Yo;function Xo(){return(Xo=t((()=>{Yo=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1})))()}function Zo(e){return $o.has(e.tagName)||e.isContentEditable===!0}function Qo(e){return es.has(e.tagName)||e.isContentEditable===!0}var $o,es;function ts(){return(ts=t((()=>{$o=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]),es=new Set([`INPUT`,`SELECT`,`TEXTAREA`])})))()}var ns;function rs(){return(rs=t((()=>{ns=new WeakSet})))()}function is(e){return t=>{t.key===`Enter`&&e(t)}}function as(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var os;function ss(){return(ss=t((()=>{rs(),os=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=is(()=>{if(ns.has(n))return;as(n,`down`);let e=is(()=>{as(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>as(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)}})))()}function cs(e){return Yo(e)&&!Ro()}function ls(e,t,n={}){let[r,i,a]=Ho(e,n),o=e=>{let r=e.currentTarget;if(!cs(e)||us.has(e))return;ns.add(r),n.stopPropagation&&us.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),ns.has(r)&&ns.delete(r),cs(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||qo(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),No(e)&&(e.addEventListener(`focus`,e=>os(e,i)),!Zo(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var us;function ds(){return(ds=t((()=>{Po(),zo(),Jo(),Xo(),Uo(),ts(),ss(),rs(),us=new WeakSet})))()}function fs(e){return re(e)&&`ownerSVGElement`in e}function ps(){return(ps=t((()=>{ie()})))()}function ms({target:e,borderBoxSize:t}){vs.get(e)?.forEach(n=>{n(e,{get width(){return xs(e,t)},get height(){return Ss(e,t)}})})}function hs(e){e.forEach(ms)}function gs(){typeof ResizeObserver>`u`||(ys=new ResizeObserver(hs))}function _s(e,t){ys||gs();let n=Ao(e);return n.forEach(e=>{let n=vs.get(e);n||(n=new Set,vs.set(e,n)),n.add(t),ys?.observe(e)}),()=>{n.forEach(e=>{let n=vs.get(e);n?.delete(t),n?.size||ys?.unobserve(e)})}}var vs,ys,bs,xs,Ss;function Cs(){return(Cs=t((()=>{ps(),vs=new WeakMap,bs=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:fs(r)&&`getBBox`in r?r.getBBox()[t]:r[n],xs=bs(`inline`,`width`,`offsetWidth`),Ss=bs(`block`,`height`,`offsetHeight`)})))()}function ws(){Ds=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Es.forEach(t=>t(e))},window.addEventListener(`resize`,Ds)}function Ts(e){return Es.add(e),Ds||ws(),()=>{Es.delete(e),!Es.size&&typeof Ds==`function`&&(window.removeEventListener(`resize`,Ds),Ds=void 0)}}var Es,Ds;function Os(){return(Os=t((()=>{Es=new Set})))()}function ks(e,t){return typeof e==`function`?Ts(e):_s(e,t)}function As(){return(As=t((()=>{Cs(),Os()})))()}var js;function Ms(){return(Ms=t((()=>{js={value:null,addProjectionMetrics:null}})))()}function Ns(e){return fs(e)&&e.tagName===`svg`}function Ps(){return(Ps=t((()=>{ps()})))()}var Fs,Is;function Ls(){return(Ls=t((()=>{Bt(),V(),eo(),Za(),Fs=[...Qa,z,B],Is=e=>Fs.find(Xa(e))})))()}var Rs,zs,Bs,Y;function Vs(){return(Vs=t((()=>{Rs=()=>({translate:0,scale:1,origin:0,originPoint:0}),zs=()=>({x:Rs(),y:Rs()}),Bs=()=>({min:0,max:0}),Y=()=>({x:Bs(),y:Bs()})})))()}var Hs;function Us(){return(Us=t((()=>{Hs=new WeakMap})))()}function Ws(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Gs(e){return typeof e==`string`||Array.isArray(e)}var Ks,qs;function Js(){return(Js=t((()=>{Ks=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],qs=[`initial`,...Ks]})))()}function Ys(e){return Ws(e.animate)||qs.some(t=>Gs(e[t]))}function Xs(e){return!!(Ys(e)||e.variants)}function Zs(){return(Zs=t((()=>{Js()})))()}function Qs(e,t,n){for(let r in t){let i=t[r],a=n[r];if(K(i))e.addValue(r,i);else if(K(a))e.addValue(r,Ki(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,Ki(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}function $s(){return($s=t((()=>{Zi(),q()})))()}var ec,tc;function nc(){return(nc=t((()=>{ec={current:null},tc={current:!1}})))()}function rc(){if(tc.current=!0,ic){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ec.current=e.matches;e.addEventListener(`change`,t),t()}else ec.current=!1}}var ic;function ac(){return(ac=t((()=>{nc(),ic=typeof window<`u`})))()}function oc(e){lc=e}function sc(){return lc}var cc,lc,uc;function dc(){return(dc=t((()=>{me(),ne(),oe(),pe(),Jr(),yi(),Pi(),Lo(),at(),Vs(),Zi(),V(),So(),Ls(),q(),Us(),Zs(),G(),$s(),ac(),nc(),N(),cc=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],lc={},uc=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=qr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=P.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,j.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Ys(t),this.isVariantNode=Xs(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];c[e]!==void 0&&K(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Hs.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(tc.current||rc(),this.shouldReduceMotion=ec.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Ni.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new vi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:k(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Nr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&j.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 lc){let t=lc[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):Y()}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<cc.length;t++){let n=cc[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Qs(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=Ki(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(te(n)||ae(n))?n=parseFloat(n):!Is(n)&&B.test(t)&&(n=bo(e,t)),this.setBaseTarget(e,K(n)?n.get():n)),K(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=va(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!K(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new fe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Fo.render(this.render)}}})))()}var fc;function pc(){return(pc=t((()=>{q(),Do(),dc(),fc=class extends uc{constructor(){super(...arguments),this.KeyframeResolver=Eo}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[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;K(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}}})))()}var mc;function hc(){return(hc=t((()=>{mc=class{constructor(e){this.isMounted=!1,this.node=e}update(){}}})))()}function gc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _c({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function vc(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 yc(e){return e===void 0||e===1}function bc({scale:e,scaleX:t,scaleY:n}){return!yc(e)||!yc(t)||!yc(n)}function xc(e){return bc(e)||Sc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sc(e){return Cc(e.x)||Cc(e.y)}function Cc(e){return e&&e!==`0%`}function wc(e,t,n){return n+t*(e-n)}function Tc(e,t,n,r,i){return i!==void 0&&(e=wc(e,i,r)),wc(e,n,r)+t}function Ec(e,t=0,n=1,r,i){e.min=Tc(e.min,t,n,r,i),e.max=Tc(e.max,t,n,r,i)}function Dc(e,{x:t,y:n}){Ec(e.x,t.translate,t.scale,t.originPoint),Ec(e.y,n.translate,n.scale,n.originPoint)}function Oc(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&&(X(e.x,-a.scroll.offset.x),X(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Dc(e,o)),r&&xc(a.latestValues)&&jc(e,a.latestValues,a.layout?.layoutBox))}t.x<Nc&&t.x>Mc&&(t.x=1),t.y<Nc&&t.y>Mc&&(t.y=1)}function X(e,t){e.min+=t,e.max+=t}function kc(e,t,n,r,i=.5){Ec(e,t,n,H(e.min,e.max,i),r)}function Ac(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function jc(e,t,n){let r=n??e;kc(e.x,Ac(t.x,r.x),t.scaleX,t.scale,t.originX),kc(e.y,Ac(t.y,r.y),t.scaleY,t.scale,t.originY)}var Mc,Nc;function Pc(){return(Pc=t((()=>{U(),Mc=.999999999999,Nc=1.0000000000001})))()}function Fc(e,t){return gc(vc(e.getBoundingClientRect(),t))}function Ic(e,t,n){let r=Fc(e,n),{scroll:i}=t;return i&&(X(r.x,i.offset.x),X(r.y,i.offset.y)),r}function Lc(){return(Lc=t((()=>{Pc()})))()}function Rc(e,t,n){let r=``,i=!0;for(let a=0;a<Bc;a++){let o=Mr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=jo(s,ho[o]);if(!c){i=!1;let t=zc[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${jo(a,ho.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var zc,Bc;function Vc(){return(Vc=t((()=>{Mo(),go(),G(),zc={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Bc=Mr.length})))()}function Hc(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(Nr.has(e)){o=!0;continue}if(ct(e)){i[e]=n;continue}{let t=jo(n,ho[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Rc(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Uc(){return(Uc=t((()=>{Mo(),go(),G(),ft(),Vc()})))()}function Wc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Gc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Kc;function qc(){return(qc=t((()=>{R(),Kc={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(L.test(e))e=parseFloat(e);else return e}return`${Gc(e,t.target.x)}% ${Gc(e,t.target.y)}%`}}})))()}var Jc;function Yc(){return(Yc=t((()=>{V(),U(),Jc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=B.parse(e);if(i.length>5)return r;let a=B.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 Xc;function Zc(){return(Zc=t((()=>{ko(),qc(),Yc(),Xc={borderRadius:{...Kc,applyTo:[...Oo]},borderTopLeftRadius:Kc,borderTopRightRadius:Kc,borderBottomLeftRadius:Kc,borderBottomRightRadius:Kc,boxShadow:Jc}})))()}function Qc(e,{layout:t,layoutId:n}){return Nr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Xc[e]||e===`opacity`)}function $c(){return($c=t((()=>{G(),Zc()})))()}function el(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(K(r[t])||i&&K(i[t])||Qc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function tl(){return(tl=t((()=>{q(),$c()})))()}function nl(e){return window.getComputedStyle(e)}var rl;function il(){return(il=t((()=>{T(),ft(),G(),jr(),Lc(),pc(),Uc(),tl(),rl=class extends fc{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Wc}mount(e){w(!!e.style,`motion.create() components must forward their ref to a HTML or SVG element`,`custom-component-ref`),super.mount(e)}readValueFromInstance(e,t){if(Nr.has(t))return this.projection?.isProjecting?yr(t):Ar(e,t);{let n=nl(e),r=(ct(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Fc(e,t)}build(e,t,n){Hc(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return el(e,t,n)}}})))()}function al(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ol:sl;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ol,sl;function cl(){return(cl=t((()=>{ol={offset:`stroke-dashoffset`,array:`stroke-dasharray`},sl={offset:`strokeDashoffset`,array:`strokeDasharray`}})))()}function ll(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Hc(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of ul)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&al(d,i,a,o,!1)}var ul;function dl(){return(dl=t((()=>{Uc(),cl(),ul=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`]})))()}var fl;function pl(){return(pl=t((()=>{fl=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`])})))()}var ml;function hl(){return(hl=t((()=>{ml=e=>typeof e==`string`&&e.toLowerCase()===`svg`})))()}function gl(e,t,n,r){Wc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(fl.has(n)?n:Na(n),t.attrs[n])}function _l(){return(_l=t((()=>{pl()})))()}function vl(e,t,n){let r=el(e,t,n);for(let n in e)if(K(e[n])||K(t[n])){let t=Mr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}function yl(){return(yl=t((()=>{q(),G(),tl()})))()}var bl;function xl(){return(xl=t((()=>{G(),yo(),Vs(),pc(),dl(),pl(),hl(),_l(),yl(),bl=class extends fc{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Nr.has(t)){let e=vo(t);return e&&e.default||0}if(ul.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=fl.has(t)?t:Na(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return vl(e,t,n)}build(e,t,n){ll(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){gl(e,t,n,r)}mount(e){this.isSVGTag=ml(e.tagName),super.mount(e)}}})))()}function Sl(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Sl(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Cl;n++){let r=qs[n],i=e.props[r];(Gs(i)||i===!1)&&(t[r]=i)}return t}var Cl;function wl(){return(wl=t((()=>{Js(),Cl=qs.length})))()}function Tl(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 El(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Ka(e,t,n)))}function Dl(e){let t=El(e),n=Al(),r=!0,i=!1,a=t=>(n,r)=>{let i=ya(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Sl(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Ml;t++){let p=jl[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Gs(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Ws(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Ol(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Ca(t)&&Ca(n)?!Tl(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ee=v&&y;b&&(!ee||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ya(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Gi(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ya(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Al(),i=!0}}}function Ol(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Tl(t,e):!1}function kl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Al(){return{animate:kl(!0),whileInView:kl(),whileHover:kl(),whileTap:kl(),whileDrag:kl(),whileFocus:kl(),exit:kl()}}var jl,Ml;function Nl(){return(Nl=t((()=>{qa(),wl(),wa(),ba(),Js(),jl=[...Ks].reverse(),Ml=Ks.length})))()}function Pl(e,t){e.min=t.min,e.max=t.max}function Z(e,t){Pl(e.x,t.x),Pl(e.y,t.y)}function Fl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Q(e){return e.max-e.min}function Il(e,t,n){return Math.abs(e-t)<=n}function Ll(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ul&&e.scale<=Wl||isNaN(e.scale))&&(e.scale=1),(e.translate>=Gl&&e.translate<=Kl||isNaN(e.translate))&&(e.translate=0)}function Rl(e,t,n,r){Ll(e.x,t.x,n.x,r?r.originX:void 0),Ll(e.y,t.y,n.y,r?r.originY:void 0)}function zl(e,t,n,r=0){e.min=(r?H(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function Bl(e,t,n,r){zl(e.x,t.x,n.x,r?.x),zl(e.y,t.y,n.y,r?.y)}function Vl(e,t,n,r=0){let i=r?H(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function Hl(e,t,n,r){Vl(e.x,t.x,n.x,r?.x),Vl(e.y,t.y,n.y,r?.y)}var Ul,Wl,Gl,Kl;function ql(){return(ql=t((()=>{U(),Ul=.9999,Wl=1.0001,Gl=-.01,Kl=.01})))()}function Jl(e,t,n,r,i){return e-=t,e=wc(e,1/n,r),i!==void 0&&(e=wc(e,1/i,r)),e}function Yl(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=H(a.min,a.max,r);e===a&&(s-=t),e.min=Jl(e.min,t,n,s,i),e.max=Jl(e.max,t,n,s,i)}function Xl(e,t,[n,r,i],a,o){Yl(e,t[n],t[r],t[i],t.scale,a,o)}function Zl(e,t,n,r){Xl(e.x,t,Ql,n?n.x:void 0,r?r.x:void 0),Xl(e.y,t,$l,n?n.y:void 0,r?r.y:void 0)}var Ql,$l;function eu(){return(eu=t((()=>{U(),R(),Pc(),Ql=[`x`,`scaleX`,`originX`],$l=[`y`,`scaleY`,`originY`]})))()}function tu(e){return e.translate===0&&e.scale===1}function nu(e){return tu(e.x)&&tu(e.y)}function ru(e,t){return e.min===t.min&&e.max===t.max}function iu(e,t){return ru(e.x,t.x)&&ru(e.y,t.y)}function au(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ou(e,t){return au(e.x,t.x)&&au(e.y,t.y)}function su(e){return Q(e.x)/Q(e.y)}function cu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function lu(){return(lu=t((()=>{ql()})))()}function uu(e){return[e(`x`),e(`y`)]}function du(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,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}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`}function fu(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity??1,vu(r)),e.opacityExit=H(t.opacity??1,0,yu(r))):a&&(e.opacity=H(t.opacity??1,n.opacity??1,r));for(let i=0;i<hu;i++){let a=Oo[i],o=pu(t,a),s=pu(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||_u(o)===_u(s)?(e[a]=Math.max(H(gu(o),gu(s),r),0),(I.test(s)||I.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function pu(e,t){return e[t]===void 0?e.borderRadius:e[t]}function mu(e,t,n){return r=>r<e?0:r>t?1:n(ue(e,t,r))}var hu,gu,_u,vu,yu;function bu(){return(bu=t((()=>{U(),R(),de(),Ie(),O(),ko(),hu=Oo.length,gu=e=>typeof e==`string`?parseFloat(e):e,_u=e=>typeof e==`number`||L.test(e),vu=mu(0,.5,Pe),yu=mu(.5,.95,D)})))()}function xu(e,t,n){let r=K(e)?e:Ki(e);return r.start(ua(``,r,t,n)),r.animation}function Su(){return(Su=t((()=>{da(),Zi(),q()})))()}function Cu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var wu;function Tu(){return(Tu=t((()=>{wu=(e,t)=>e.depth-t.depth})))()}var Eu;function Du(){return(Du=t((()=>{Tu(),Eu=class{constructor(){this.children=[],this.isDirty=!1}add(e){y(this.children,e),this.isDirty=!0}remove(e){b(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(wu),this.isDirty=!1,this.children.forEach(e)}}})))()}function Ou(e,t){let n=P.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(tt(r),e(a-t))};return j.setup(r,!0),()=>tt(r)}function ku(){return(ku=t((()=>{at(),N()})))()}function Au(e){return K(e)?e.get():e}function ju(){return(ju=t((()=>{q()})))()}var Mu;function Nu(){return(Nu=t((()=>{Mu=class{constructor(){this.members=[]}add(e){y(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(b(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(b(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){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}})))()}var Pu;function Fu(){return(Fu=t((()=>{Pu={hasAnimatedSinceResize:!0,hasEverUpdated:!1}})))()}function Iu(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Lu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=La(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,j,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Lu(r)}function Ru({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=dd++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,js.value&&(cd.nodes=cd.calculatedTargetDeltas=cd.calculatedProjections=0),this.nodes.forEach(Vu),this.nodes.forEach(Xu),this.nodes.forEach(Zu),this.nodes.forEach(Hu),js.addProjectionMetrics&&js.addProjectionMetrics(cd)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 Eu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new fe),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){if(this.instance)return;this.isSVG=fs(t)&&!Ns(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;j.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Ou(i,250),Pu.hasAnimatedSinceResize&&(Pu.hasAnimatedSinceResize=!1,this.nodes.forEach(Yu)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||fd,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ou(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...$i(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Yu(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,this.eventHandlers.clear(),tt(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(Qu),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&&Lu(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,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!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(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Gu),this.nodes.forEach(Wu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ku);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qu),this.nodes.forEach(Ju),this.nodes.forEach(zu),this.nodes.forEach(Bu)):this.nodes.forEach(Ku),this.clearAllSnapshots();let e=P.now();M.delta=x(0,1e3/60,e-M.timestamp),M.timestamp=e,M.isProcessing=!0,nt.update.process(M),nt.preRender.process(M),nt.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Uu),this.sharedNodes.forEach($u)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}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++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Y(),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&&this.instance){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&&!nu(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||xc(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)),ad(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sd))){let{scroll:e}=this.root;e&&(X(t.x,e.offset.x),X(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),X(t.x,i.offset.x),X(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Y();Z(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(X(r.x,-n.scroll.offset.x),X(r.y,-n.scroll.offset.y)),xc(n.latestValues)&&jc(r,n.latestValues,n.layout?.layoutBox)}return xc(this.latestValues)&&jc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Y();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!xc(n.latestValues))continue;let r;n.instance&&(bc(n.latestValues)&&n.updateSnapshot(),r=Y(),Z(r,n.measurePageBox())),Zl(t,n.latestValues,n.snapshot?.layoutBox,r)}return xc(this.latestValues)&&Zl(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||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!==M.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=M.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Bl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),Dc(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),js.value&&cd.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||bc(this.parent.latestValues)||Sc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),Hl(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===M.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Oc(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fl(this.prevProjectionDelta.x,this.projectionDelta.x),Fl(this.prevProjectionDelta.y,this.projectionDelta.y)),Rl(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!cu(this.projectionDelta.x,this.prevProjectionDelta.x)||!cu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),js.value&&cd.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zs(),this.projectionDelta=zs(),this.projectionDeltaWithTransform=zs()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=zs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Y(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(rd));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=H(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=H(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(ed(o.x,e.x,n),ed(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hl(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),nd(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&iu(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Y(),Z(f,this.relativeTarget)),c&&(this.animationValues=a,fu(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(tt(this.pendingAnimation),void 0),this.pendingAnimation=j.update(()=>{Pu.hasAnimatedSinceResize=!0,this.motionValue||=Ki(0),this.motionValue.jump(0,!1),this.currentAnimation=xu(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,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(ud),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&&od(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Y();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),jc(t,i),Rl(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Mu),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return 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&&Iu(`z`,e,r,this.animationValues);for(let t=0;t<ld.length;t++)Iu(`rotate${ld[t]}`,e,r,this.animationValues),Iu(`skew${ld[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Au(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Au(t?.pointerEvents)||``),this.hasProjected&&!xc(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=du(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Xc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Xc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Au(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Wu),this.root.sharedNodes.clear()}}}function zu(e){e.updateLayout()}function Bu(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)uu(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Pl(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else od(i,t.layoutBox,n)&&uu(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=zs();Rl(o,n,t.layoutBox);let s=zs();a?Rl(s,e.applyTransform(r,!0),t.measuredBox):Rl(s,n,t.layoutBox);let c=!nu(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=e.options.layoutAnchor||void 0,s=Y();Hl(s,t.layoutBox,i.layoutBox,o);let c=Y();Hl(c,n,a.layoutBox,o),ou(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Vu(e){js.value&&cd.nodes++,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 Hu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Uu(e){e.clearSnapshot()}function Wu(e){e.clearMeasurements()}function Gu(e){e.isLayoutDirty=!0,e.updateLayout()}function Ku(e){e.isLayoutDirty=!1}function qu(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Ju(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Yu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Xu(e){e.resolveTargetDelta()}function Zu(e){e.calcProjection()}function Qu(e){e.resetSkewAndRotation()}function $u(e){e.removeLeadSnapshot()}function ed(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 td(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function nd(e,t,n,r){td(e.x,t.x,n.x,r),td(e.y,t.y,n.y,r)}function rd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}function id(e){e.min=md(e.min),e.max=md(e.max)}function ad(e){id(e.x),id(e.y)}function od(e,t,n){return e===`position`||e===`preserve-aspect`&&!Il(su(t),su(n),.2)}function sd(e){return e!==e.root&&e.scroll?.wasRoot}var cd,ld,ud,dd,fd,pd,md;function hd(){return(hd=t((()=>{pe(),S(),O(),Su(),Ra(),ea(),Lo(),at(),Zc(),Ms(),ku(),ps(),Ps(),U(),Zi(),ju(),bu(),Pc(),ql(),eu(),Vs(),lu(),Nu(),Du(),Fu(),N(),cd={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ld=[``,`X`,`Y`,`Z`],ud=1e3,dd=0,fd={duration:.45,ease:[.4,0,.1,1]},pd=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),md=pd(`applewebkit/`)&&!pd(`chrome/`)?Math.round:D})))()}var gd;function _d(){return(_d=t((()=>{hd(),gd=Ru({attachResizeListener:(e,t)=>Cu(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0})})))()}var vd,yd;function bd(){return(bd=t((()=>{hd(),_d(),vd={current:void 0},yd=Ru({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vd.current){let e=new gd({});e.mount(window),e.setOptions({layoutScroll:!0}),vd.current=e}return vd.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`})})))()}var xd,Sd;function Cd(){return(Cd=t((()=>{xd=n(),Sd=(0,xd.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`})})))()}function wd(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Td(...e){return t=>{let n=!1,r=e.map(e=>{let r=wd(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():wd(e[t],null)}}}}function Ed(...e){return Dd.useCallback(Td(...e),e)}var Dd;function Od(){return(Od=t((()=>{Dd=e(n(),1)})))()}function kd({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,Md.useId)(),s=(0,Md.useRef)(null),c=(0,Md.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,Md.useContext)(Sd),u=Ed(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,Md.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
2
- [data-motion-pop-id="${o}"] {
3
- position: absolute !important;
4
- width: ${e}px !important;
5
- height: ${u}px !important;
6
- ${_}px !important;
7
- ${v}px !important;
8
- }
9
- `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,Ad.jsx)(Nd,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:jd.cloneElement(e,{ref:u})})}var Ad,jd,Md,Nd;function Pd(){return(Pd=t((()=>{Ad=r(),Po(),jd=e(n(),1),Md=n(),Cd(),Od(),Nd=class extends jd.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(No(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=No(e)&&e.offsetWidth||0,r=No(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}})))()}function Fd(){return new Map}var Id,Ld,Rd,zd;function Bd(){return(Bd=t((()=>{Id=r(),Ld=e(n(),1),Rd=n(),v(),u(),h(),Pd(),zd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:l,root:u})=>{let d=c(Fd),f=(0,Rd.useId)(),p=(0,Rd.useRef)(n),h=(0,Rd.useRef)(r);m(()=>{p.current=n,h.current=r});let g=!0,v=(0,Rd.useMemo)(()=>(g=!1,{id:f,initial:t,isPresent:n,custom:i,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>{d.delete(e),!p.current&&!d.size&&h.current?.()})}),[n,d,r]);return a&&g&&(v={...v}),(0,Rd.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),Ld.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=(0,Id.jsx)(kd,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:l,root:u,children:e}),(0,Id.jsx)(_.Provider,{value:v,children:e})}})))()}function Vd(e=!0){let t=(0,Hd.useContext)(_);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,Hd.useId)();(0,Hd.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,Hd.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Hd;function Ud(){return(Ud=t((()=>{Hd=n(),v()})))()}function Wd(e){let t=[];return Gd.Children.forEach(e,e=>{(0,Gd.isValidElement)(e)&&t.push(e)}),t}var Gd,Kd;function qd(){return(qd=t((()=>{Gd=n(),Kd=e=>e.key||``})))()}var Jd,Yd,Xd;function Zd(){return(Zd=t((()=>{Jd=r(),Yd=n(),s(),u(),h(),Bd(),Ud(),qd(),Xd=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:s=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=Vd(s),h=(0,Yd.useMemo)(()=>Wd(e),[e]),g=s&&!f?[]:h.map(Kd),_=(0,Yd.useRef)(!0),v=(0,Yd.useRef)(h),y=c(()=>new Map),b=(0,Yd.useRef)(new Set),[x,S]=(0,Yd.useState)(h),[C,w]=(0,Yd.useState)(h);m(()=>{s&&!f&&!C.length&&p?.()},[f,s,C.length,p]),m(()=>{_.current=!1,v.current=h;for(let e=0;e<C.length;e++){let t=Kd(C[e]);g.includes(t)?(y.delete(t),b.current.delete(t)):y.get(t)!==!0&&y.set(t,!1)}},[C,g.length,g.join(`-`)]);let T=[];if(h!==x){let e=[...h],t=0;for(let n of C){let r=g.indexOf(Kd(n));r===-1?(e.splice(t++,0,n),T.push(n)):t=r+T.length+1}return a===`wait`&&T.length&&(e=T),w(Wd(e)),S(h),null}let{forceRender:E}=(0,Yd.useContext)(o);return(0,Jd.jsx)(Jd.Fragment,{children:C.map(e=>{let o=Kd(e),c=s&&!f?!1:h===C||g.includes(o);return(0,Jd.jsx)(zd,{isPresent:c,initial:!_.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:d,onExitComplete:c?void 0:()=>{if(b.current.has(o))return;if(y.has(o))b.current.add(o),y.set(o,!0);else return;let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(E?.(),w(v.current),s&&p?.(),r&&r())},anchorX:l,anchorY:u,children:e},o)})})}})))()}var Qd,$d;function ef(){return(ef=t((()=>{Qd=n(),$d=(0,Qd.createContext)({strict:!1})})))()}function tf(){if(af)return;let e={};for(let t in rf)e[t]={isEnabled:e=>rf[t].some(t=>!!e[t])};oc(e),af=!0}function nf(){return tf(),sc()}var rf,af;function of(){return(of=t((()=>{dc(),rf={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`]},af=!1})))()}function sf(e){let t=nf();for(let n in e)t[n]={...t[n],...e[n]};oc(t)}function cf(){return(cf=t((()=>{dc(),of()})))()}var lf,uf;function df(){return(df=t((()=>{lf=n(),uf=(0,lf.createContext)({})})))()}function ff(e,t){if(Ys(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Gs(t)?t:void 0,animate:Gs(n)?n:void 0}}return e.inherit===!1?{}:t}function pf(){return(pf=t((()=>{Zs()})))()}function mf(e){let{initial:t,animate:n}=ff(e,(0,gf.useContext)(uf));return(0,gf.useMemo)(()=>({initial:t,animate:n}),[hf(t),hf(n)])}function hf(e){return Array.isArray(e)?e.join(` `):e}var gf;function _f(){return(_f=t((()=>{gf=n(),df(),pf()})))()}var vf;function yf(){return(yf=t((()=>{vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}})})))()}function bf(e,t,n){for(let r in t)!K(t[r])&&!Qc(r,n)&&(e[r]=t[r])}function xf({transformTemplate:e},t){return(0,wf.useMemo)(()=>{let n=vf();return Hc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Sf(e,t){let n=e.style||{},r={};return bf(r,n,e),Object.assign(r,xf(e,t)),r}function Cf(e,t){let n={},r=Sf(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}var wf;function Tf(){return(Tf=t((()=>{q(),$c(),Uc(),wf=n(),yf()})))()}var Ef;function Df(){return(Df=t((()=>{yf(),Ef=()=>({...vf(),attrs:{}})})))()}function Of(e,t,n,r){let i=(0,kf.useMemo)(()=>{let n=Ef();return ll(n,t,ml(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};bf(t,e.style,e),i.style={...t,...i.style}}return i}var kf;function Af(){return(Af=t((()=>{dl(),hl(),kf=n(),Tf(),Df()})))()}function jf(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Mf.has(e)}var Mf;function Nf(){return(Nf=t((()=>{Mf=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.propagate.ignoreStrict.viewport`.split(`.`))})))()}function Pf(e,t){return e.startsWith(`on`)?!jf(e):t?.(e)??!jf(e)}function Ff(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(K(e[a])||(Pf(a,r)||n===!0&&jf(a)||!t&&!jf(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}function If(){return(If=t((()=>{q(),Nf()})))()}var Lf;function Rf(){return(Rf=t((()=>{Lf=[`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 zf(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Lf.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bf(){return(Bf=t((()=>{Rf()})))()}function Vf(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??zf(e)?Of:Cf)(t,r,i,e),l=Ff(t,typeof e==`string`,a,s),u=e===Hf.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,Hf.useMemo)(()=>K(d)?d.get():d,[d]);return(0,Hf.createElement)(e,{...u,children:f})}var Hf;function Uf(){return(Uf=t((()=>{q(),Hf=n(),Tf(),Af(),If(),Bf()})))()}function Wf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Gf(n,r,i,e),renderState:t()}}function Gf(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Au(a[e]);let{initial:o,animate:s}=e,c=Ys(e),l=Xs(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`&&!Ws(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=va(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}var Kf,qf;function Jf(){return(Jf=t((()=>{ju(),Zs(),Kf=n(),df(),v(),u(),qf=e=>(t,n)=>{let r=(0,Kf.useContext)(uf),i=(0,Kf.useContext)(_),a=()=>Wf(e,t,r,i);return n?a():c(a)}})))()}var Yf;function Xf(){return(Xf=t((()=>{tl(),Jf(),yf(),Yf=qf({scrapeMotionValuesFromProps:el,createRenderState:vf})})))()}var Zf;function Qf(){return(Qf=t((()=>{yl(),Jf(),Df(),Zf=qf({scrapeMotionValuesFromProps:vl,createRenderState:Ef})})))()}var $f;function ep(){return(ep=t((()=>{$f=Symbol.for(`motionComponentSymbol`)})))()}function tp(e,t,n){let r=(0,np.useRef)(n);(0,np.useInsertionEffect)(()=>{r.current=n});let i=(0,np.useRef)(null);return(0,np.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var np;function rp(){return(rp=t((()=>{np=n()})))()}var ip,ap;function op(){return(op=t((()=>{ip=n(),ap=(0,ip.createContext)({})})))()}function sp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function cp(e,t,n,r,i,a){let{visualElement:o}=(0,$.useContext)(uf),s=(0,$.useContext)($d),c=(0,$.useContext)(_),l=(0,$.useContext)(Sd),u=l.reducedMotion,d=l.skipAnimations,f=(0,$.useRef)(null),p=(0,$.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,g=(0,$.useContext)(ap);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&lp(f.current,n,i,g);let v=(0,$.useRef)(!1);(0,$.useInsertionEffect)(()=>{h&&v.current&&h.update(n,c)});let y=n[Fa],b=(0,$.useRef)(!!y&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return m(()=>{p.current=!0,h&&(v.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),(0,$.useEffect)(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),!1),h.enteringChildren=void 0)}),h}function lp(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:up(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&sp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function up(e){if(e)return e.options.allowProjection===!1?up(e.parent):e.projection}var $;function dp(){return(dp=t((()=>{Ia(),$=n(),ef(),Cd(),df(),v(),op(),h()})))()}function fp(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&sf(r);let a=n?n===`svg`:zf(e),o=a?Zf:Yf;function s(n,s){let c,l={...(0,_p.useContext)(Sd),...n,layoutId:pp(n)},{isStatic:u,isValidProp:d}=l,f=mf(n),p=o(n,u);if(!u&&typeof window<`u`){mp(l,r);let t=hp(l);c=t.MeasureLayout,f.visualElement=cp(e,p,l,i,t.ProjectionNode,a)}return(0,gp.jsxs)(uf.Provider,{value:f,children:[c&&f.visualElement?(0,gp.jsx)(c,{visualElement:f.visualElement,...l}):null,Vf(e,n,tp(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,_p.forwardRef)(s);return c[$f]=e,c}function pp({layoutId:e}){let t=(0,_p.useContext)(o).id;return t&&e!==void 0?t+`-`+e:e}function mp(e,t){(0,_p.useContext)($d).strict}function hp(e){let{drag:t,layout:n}=nf();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var gp,_p;function vp(){return(vp=t((()=>{gp=r(),_p=n(),s(),ef(),Cd(),df(),_f(),Uf(),Bf(),Xf(),Qf(),of(),cf(),ep(),rp(),dp()})))()}function yp(e,t){if(typeof Proxy>`u`)return fp;let n=new Map,r=(n,r)=>fp(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,fp(a,void 0,e,t)),n.get(a))})}function bp(){return(bp=t((()=>{vp()})))()}var xp,Sp;function Cp(){return(Cp=t((()=>{xl(),il(),xp=n(),Bf(),Sp=(e,t)=>t.isSVG??zf(e)?new bl(t):new rl(t,{allowProjection:e!==xp.Fragment})})))()}var wp;function Tp(){return(Tp=t((()=>{hc(),Nl(),wp=class extends mc{constructor(e){super(e),e.animationState||=Dl(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ws(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(){this.node.animationState.reset(),this.unmountControls?.()}}})))()}var Ep,Dp;function Op(){return(Op=t((()=>{hc(),ba(),Ep=0,Dp=class extends mc{constructor(){super(...arguments),this.id=Ep++,this.isExitComplete=!1}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;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=ya(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}})))()}var kp;function Ap(){return(Ap=t((()=>{Tp(),Op(),kp={animation:{Feature:wp},exit:{Feature:Dp}}})))()}function jp(e){return{point:{x:e.pageX,y:e.pageY}}}var Mp;function Np(){return(Np=t((()=>{Xo(),Mp=e=>t=>Yo(t)&&e(t,jp(t))})))()}function Pp(e,t,n,r){return Cu(e,t,Mp(n),r)}function Fp(){return(Fp=t((()=>{Np()})))()}var Ip;function Lp(){return(Lp=t((()=>{Ip=({current:e})=>e?e.ownerDocument.defaultView:null})))()}function Rp(e,t){let n=zp(e.x,t.x),r=zp(e.y,t.y);return Math.sqrt(n**2+r**2)}var zp;function Bp(){return(Bp=t((()=>{zp=(e,t)=>Math.abs(e-t)})))()}function Vp(e,t){return t?{point:t(e.point)}:e}function Hp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Up({point:e},t){return{point:e,delta:Hp(e,Gp(t)),offset:Hp(e,Wp(t)),velocity:Kp(t,.1)}}function Wp(e){return e[0]}function Gp(e){return e[e.length-1]}function Kp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Gp(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>k(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>k(t)*2&&(r=e[1]);let a=A(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}var qp,Jp;function Yp(){return(Yp=t((()=>{N(),Xo(),le(),me(),Fp(),Np(),Bp(),qp=new Set([`auto`,`scroll`]),Jp=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Vp(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Up(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Rp(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=M;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.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Vp(t,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Up(e.type===`pointercancel`?this.lastMoveEventInfo:Vp(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Yo(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Vp(jp(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=M;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Up(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=ce(Pp(this.contextWindow,`pointermove`,this.handlePointerMove,d),Pp(this.contextWindow,`pointerup`,this.handlePointerUp,d),Pp(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(qp.has(e.overflowX)||qp.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),j.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tt(this.updatePoint)}}})))()}function Xp(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 Zp(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 Qp(e,{top:t,left:n,bottom:r,right:i}){return{x:Zp(e.x,n,i),y:Zp(e.y,t,r)}}function $p(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 em(e,t){return{x:$p(e.x,t.x),y:$p(e.y,t.y)}}function tm(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=ue(t.min,t.max-r,e.min):r>i&&(n=ue(e.min,e.max-i,t.min)),x(0,1,n)}function nm(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}function rm(e=om){return e===!1?e=0:e===!0&&(e=om),{x:im(e,`left`,`right`),y:im(e,`top`,`bottom`)}}function im(e,t,n){return{min:am(e,t),max:am(e,n)}}function am(e,t){return typeof e==`number`?e:e[t]||0}var om;function sm(){return(sm=t((()=>{U(),ql(),de(),S(),om=.35})))()}function cm(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function lm(e,t,n){let r=ks(e,cm(n)),i=ks(t,cm(n));return()=>{r(),i()}}function um(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dm(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var fm,pm;function mm(){return(mm=t((()=>{Vs(),N(),Lc(),Ma(),da(),U(),Vo(),R(),ql(),As(),ts(),T(),Fp(),Np(),Lp(),Yp(),sm(),fm=new WeakMap,pm=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=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(jp(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bo(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),uu(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&j.update(()=>i(e,t),!1,!0),ja(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=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=dm(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&&j.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Jp(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Ip(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&j.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!um(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Xp(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&sp(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Qp(n.layoutBox,e):!1,this.elastic=rm(t),r!==this.constraints&&!sp(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&uu(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=nm(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!sp(e))return!1;let n=e.current;w(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ic(n,r.root,this.visualElement.getTransformPagePoint()),a=em(r.layout.layoutBox,i);if(t){let e=t(_c(a));this.hasMutatedConstraints=!!e,e&&(a=gc(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=uu(o=>{if(!um(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(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 ja(this.visualElement,e),n.start(ua(e,n,0,t,this.visualElement,!1))}stopAnimation(){uu(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){uu(t=>{let{drag:n}=this.getProps();if(!um(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],o=i.get()||0;i.set(e[t]-H(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!sp(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};uu(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=tm({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.constraints=!1,this.resolveConstraints(),uu(t=>{if(!um(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(H(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;fm.set(this.visualElement,this);let e=this.visualElement.current,t=Pp(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Qo(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();sp(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=lm(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.read(r);let o=Cu(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(uu(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=om,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}}})))()}var hm;function gm(){return(gm=t((()=>{hc(),O(),mm(),hm=class extends mc{constructor(e){super(e),this.removeGroupControls=D,this.removeListeners=D,this.controls=new pm(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}})))()}var _m,vm;function ym(){return(ym=t((()=>{hc(),N(),O(),Fp(),Lp(),Yp(),_m=e=>(t,n)=>{e&&j.update(()=>e(t,n),!1,!0)},vm=class extends mc{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(e){this.session=new Jp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ip(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:_m(e),onStart:_m(t),onMove:_m(n),onEnd:(e,t)=>{delete this.session,r&&j.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Pp(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}})))()}function bm(e){let[t,n]=Vd(),r=(0,Sm.useContext)(o);return(0,xm.jsx)(wm,{...e,layoutGroup:r,switchLayoutGroup:(0,Sm.useContext)(ap),isPresent:t,safeToRemove:n})}var xm,Sm,Cm,wm;function Tm(){return(Tm=t((()=>{xm=r(),Fu(),N(),Lo(),Sm=n(),Ud(),s(),op(),Cm=!1,wm=class extends Sm.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Cm&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Pu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Cm=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||j.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Fo.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Cm=!0,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}}})))()}var Em;function Dm(){return(Dm=t((()=>{gm(),ym(),Tm(),bd(),Em={pan:{Feature:vm},drag:{Feature:hm,ProjectionNode:yd,MeasureLayout:bm}}})))()}function Om(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&j.postRender(()=>i(t,jp(t)))}var km;function Am(){return(Am=t((()=>{hc(),Ko(),N(),Np(),km=class extends mc{mount(){let{current:e}=this.node;e&&(this.unmount=Go(e,(e,t)=>(Om(this.node,t,`Start`),e=>Om(this.node,e,`End`))))}unmount(){}}})))()}var jm;function Mm(){return(Mm=t((()=>{hc(),le(),jm=class extends mc{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=ce(Cu(this.node.current,`focus`,()=>this.onFocus()),Cu(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}}})))()}function Nm(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&j.postRender(()=>i(t,jp(t)))}var Pm;function Fm(){return(Fm=t((()=>{hc(),ds(),N(),Np(),Pm=class extends mc{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=ls(e,(e,t)=>(Nm(this.node,t,`Start`),(e,{success:t})=>Nm(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}})))()}function Im({root:e,...t}){let n=e||document;zm.has(n)||zm.set(n,{});let r=zm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Vm,{root:e,...t})),r[i]}function Lm(e,t,n){let r=Im(t);return Rm.set(e,n),r.observe(e),()=>{Rm.delete(e),r.unobserve(e)}}var Rm,zm,Bm,Vm;function Hm(){return(Hm=t((()=>{Rm=new WeakMap,zm=new WeakMap,Bm=e=>{let t=Rm.get(e.target);t&&t(e)},Vm=e=>{e.forEach(Bm)}})))()}function Um({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Wm,Gm;function Km(){return(Km=t((()=>{hc(),Hm(),Wm={some:0,all:1},Gm=class extends mc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();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:Wm[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)};this.stopObserver=Lm(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Um(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}})))()}var qm;function Jm(){return(Jm=t((()=>{Am(),Mm(),Fm(),Km(),qm={inView:{Feature:Gm},tap:{Feature:Pm},focus:{Feature:jm},hover:{Feature:km}}})))()}var Ym;function Xm(){return(Xm=t((()=>{bd(),Tm(),Ym={layout:{ProjectionNode:yd,MeasureLayout:bm}}})))()}var Zm;function Qm(){return(Qm=t((()=>{Ap(),Dm(),Jm(),Xm(),Zm={...kp,...qm,...Em,...Ym}})))()}var $m;function eh(){return(eh=t((()=>{Cp(),bp(),Qm(),$m=yp(Zm,Sp)})))()}var th;function nh(){return(nh=t((()=>{eh(),Zd(),i(),th=$m})))()}export{rc as a,nc as c,Zd as i,ec as l,th as n,ac as o,Xd as r,tc as s,nh as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-DB62bexO.js";import{a as r,i}from"./utils-tg3ibbzi.js";import{n as a,t as o}from"./ui.module-31LPbZGK.js";import{a as s}from"./usePickerTriggerController-CeQZVvq6.js";import{c,s as l}from"./Option-BALI2Izw.js";function u({emptyState:e,errorState:t}){let n=t??e;return n==null?null:(0,d.jsx)(`div`,{className:r(a.uiPopupOption,l.status,t!==void 0&&l.statusError),"aria-disabled":!0,children:n})}var d;function f(){return(f=e((()=>{i(),o(),c(),d=n(),u.__docgenInfo={description:``,methods:[],displayName:`PickerStatus`,props:{emptyState:{required:!1,tsType:{name:`ReactNode`},description:``},errorState:{required:!1,tsType:{name:`ReactNode`},description:``}}}})))()}function p({query:e,defaultQuery:t,onQuery:n,resetOnClose:r,triggerMode:i}){let a=e!==void 0,[o,c]=(0,m.useState)(t??``),l=a?e??``:o,u=r??(!i||s(i).resetQueryOnClose),d=e=>{a||c(e),n?.(e)};return{query:l,setQuery:d,clearQuery:()=>d(``),resetQueryOnClose:u}}var m;function h(){return(h=e((()=>{m=t()})))()}export{f as i,p as n,u as r,h as t};
@@ -1,6 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n,t as r}from"./x-fspKtNh2.js";import{n as i}from"./iframe-DB62bexO.js";import{a,i as o}from"./utils-tg3ibbzi.js";import{n as s,r as c,t as l}from"./floating-ui.react-DWG5_l50.js";import{n as u,t as d}from"./ui.module-31LPbZGK.js";import{n as f,r as p,t as m}from"./react-CKPG354p.js";import{d as h,i as g,l as _,r as v,s as y,u as b}from"./Input-aN_k-nwG.js";import{c as x,i as S,r as ee,s as C}from"./Option-BALI2Izw.js";import{n as w,t as T}from"./PickerTriggerActions-CouIkvlG.js";import{n as E,t as D}from"./hooks-CVQS96HT.js";function O({id:e,label:t,description:n,disabled:r,size:i,className:a,error:o,children:s}){let{controlId:c,labelId:l,descriptionId:u,errorId:d,describedBy:f}=h({id:e,hasLabel:t!=null,hasDescription:!!n,hasError:!!o});return(0,k.jsx)(y,{label:t,description:n,disabled:r,size:i,className:a,error:o,controlId:c,labelId:l,descriptionId:u,errorId:d,children:s({controlId:c,labelId:l,descriptionId:u,errorId:d,describedBy:f})})}var k;function A(){return(A=e((()=>{_(),b(),k=i(),O.__docgenInfo={description:``,methods:[],displayName:`PickerField`,props:{id:{required:!1,tsType:{name:`string`},description:``},className:{required:!1,tsType:{name:`string`},description:``},error:{required:!1,tsType:{name:`string`},description:``},children:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(context: PickerFieldContext) => ReactNode`,signature:{arguments:[{type:{name:`PickerFieldContext`},name:`context`}],return:{name:`ReactNode`}}},description:``}},composes:[`Omit`]}})))()}function j({disabled:e,ariaLabel:t=`Очистить выбор`,onClear:n}){let i=e=>{e.preventDefault(),e.stopPropagation()};return(0,M.jsx)(`button`,{type:`button`,disabled:e,className:u.uiClearButton,"data-ui":`picker-clear-button`,"data-action":`clear-picker`,onMouseDown:i,onClick:e=>{i(e),n()},"aria-label":t,children:(0,M.jsx)(r,{})})}var M;function N(){return(N=e((()=>{n(),d(),M=i(),j.__docgenInfo={description:`Единое действие очистки выбранного значения во всех clearable picker-компонентах.`,methods:[],displayName:`PickerClearButton`,props:{disabled:{required:!1,tsType:{name:`boolean`},description:``},ariaLabel:{required:!1,tsType:{name:`string`},description:``,defaultValue:{value:`"Очистить выбор"`,computed:!1}},onClear:{required:!0,tsType:{name:`signature`,type:`function`,raw:`() => void`,signature:{arguments:[],return:{name:`void`}}},description:``}}}})))()}function P(e){if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e)){let t=e.map(P).filter(e=>!!e).map(e=>e.trim()).filter(Boolean);return t.length?t.join(` `):void 0}if((0,F.isValidElement)(e))return typeof e.props.searchText==`string`?e.props.searchText:P(e.props.children)}var F;function I(){return(I=e((()=>{F=t()})))()}function te({placeholder:e,label:t,optionCount:n,fallback:r=`Выберите значение`}){let i=P(t);return`${e??i??r} <${n}>`}function L(){return(L=e((()=>{I()})))()}function ne(e){e.stopPropagation()}function R({open:e,context:t,floatingStyles:n,listId:r,labelId:i,popupAriaLabel:a,descriptionId:o,activeOptionId:c,ariaMultiselectable:u,popupRole:d=`listbox`,setFloating:m,getFloatingProps:h,onKeyDown:g,initialFocus:_=-1,returnFocus:v=!1,tabIndex:y=0,className:b,maxWidth:x,layoutClassName:S,bodyClassName:w,toolbar:T,selectionActions:E,children:D}){return(0,z.jsx)(p,{children:e&&(0,z.jsx)(s,{children:(0,z.jsx)(l,{context:t,modal:!1,initialFocus:_,returnFocus:v,children:(0,z.jsx)(f.div,{ref:m,style:{...n,maxWidth:x},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},...h({id:r,role:d,tabIndex:y,"aria-labelledby":i,"aria-label":i?void 0:a,"aria-describedby":o,"aria-activedescendant":c,"aria-multiselectable":u||void 0,onMouseDown:ne,onKeyDown:g,className:C.popupPositioner}),children:(0,z.jsx)(ee,{className:b,layoutClassName:S,bodyClassName:w,toolbar:T,selectionActions:E,scrollable:!1,children:D})})})})})}var z;function B(){return(B=e((()=>{c(),m(),x(),S(),z=i(),R.__docgenInfo={description:``,methods:[],displayName:`PickerPopup`,props:{open:{required:!0,tsType:{name:`boolean`},description:``},context:{required:!0,tsType:{name:`FloatingContext`},description:``},floatingStyles:{required:!0,tsType:{name:`CSSProperties`},description:``},listId:{required:!0,tsType:{name:`string`},description:``},labelId:{required:!1,tsType:{name:`string`},description:``},popupAriaLabel:{required:!1,tsType:{name:`string`},description:``},descriptionId:{required:!1,tsType:{name:`string`},description:``},activeOptionId:{required:!1,tsType:{name:`string`},description:``},ariaMultiselectable:{required:!1,tsType:{name:`boolean`},description:``},popupRole:{required:!1,tsType:{name:`union`,raw:`"listbox" | "dialog"`,elements:[{name:`literal`,value:`"listbox"`},{name:`literal`,value:`"dialog"`}]},description:``,defaultValue:{value:`"listbox"`,computed:!1}},setFloating:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(node: HTMLElement | null) => void`,signature:{arguments:[{type:{name:`union`,raw:`HTMLElement | null`,elements:[{name:`HTMLElement`},{name:`null`}]},name:`node`}],return:{name:`void`}}},description:``},getFloatingProps:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(userProps?: Record<string, unknown>) => Record<string, unknown>`,signature:{arguments:[{type:{name:`Record`,elements:[{name:`string`},{name:`unknown`}],raw:`Record<string, unknown>`},name:`userProps`}],return:{name:`Record`,elements:[{name:`string`},{name:`unknown`}],raw:`Record<string, unknown>`}}},description:``},onKeyDown:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(event: KeyboardEvent<HTMLElement>) => void`,signature:{arguments:[{type:{name:`KeyboardEvent`,elements:[{name:`HTMLElement`}],raw:`KeyboardEvent<HTMLElement>`},name:`event`}],return:{name:`void`}}},description:``},initialFocus:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`-1`,computed:!1}},returnFocus:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}},tabIndex:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`0`,computed:!1}},className:{required:!1,tsType:{name:`string`},description:``},maxWidth:{required:!1,tsType:{name:`CSSProperties["maxWidth"]`,raw:`CSSProperties["maxWidth"]`},description:``},layoutClassName:{required:!1,tsType:{name:`string`},description:``},bodyClassName:{required:!1,tsType:{name:`string`},description:``},toolbar:{required:!1,tsType:{name:`union`,raw:`ReactNode | false`,elements:[{name:`ReactNode`},{name:`literal`,value:`false`}]},description:``},selectionActions:{required:!1,tsType:{name:`signature`,type:`object`,raw:`{
2
- onSelectAll: () => void;
3
- onDeselectAll: () => void;
4
- selectAllButtonRef?: Ref<HTMLButtonElement>;
5
- }`,signature:{properties:[{key:`onSelectAll`,value:{name:`signature`,type:`function`,raw:`() => void`,signature:{arguments:[],return:{name:`void`}},required:!0}},{key:`onDeselectAll`,value:{name:`signature`,type:`function`,raw:`() => void`,signature:{arguments:[],return:{name:`void`}},required:!0}},{key:`selectAllButtonRef`,value:{name:`Ref`,elements:[{name:`HTMLButtonElement`}],raw:`Ref<HTMLButtonElement>`,required:!1}}]}},description:``},children:{required:!0,tsType:{name:`ReactNode`},description:``}}}})))()}function V({children:e,className:t,...n}){return(0,H.jsx)(`span`,{...n,className:a(C.selectedToken,t),"data-ui":`picker-selected-token`,children:(0,H.jsx)(`span`,{className:C.selectedTokenText,children:e})})}var H;function U(){return(U=e((()=>{o(),x(),H=i(),V.__docgenInfo={description:`Единое визуальное представление выбранного значения внутри picker-trigger.`,methods:[],displayName:`PickerSelectedToken`,props:{children:{required:!0,tsType:{name:`ReactNode`},description:``}},composes:[`Omit`]}})))()}var W,G,K;function q(){return(q=e((()=>{W=t(),o(),_(),d(),x(),G=i(),K=(0,W.forwardRef)(({rootRef:e,endAdornment:t,overlay:n,rootClassName:r,inputClassName:i,isLoading:o,...s},c)=>{let l=n!=null;return(0,G.jsx)(`div`,{ref:e,className:a(u.uiInputContainer,C.triggerContainer,r),"data-has-overlay":l||void 0,children:o?(0,G.jsx)(g,{}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(v,{endAdornment:t,children:({controlClassName:e})=>(0,G.jsx)(`input`,{...s,ref:c,className:a(u.uiInputWithToggle,e,i)})}),l?n:null]})})}),K.displayName=`PickerTriggerInput`,K.__docgenInfo={description:``,methods:[],displayName:`PickerTriggerInput`,props:{rootRef:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(node: HTMLDivElement | null) => void`,signature:{arguments:[{type:{name:`union`,raw:`HTMLDivElement | null`,elements:[{name:`HTMLDivElement`},{name:`null`}]},name:`node`}],return:{name:`void`}}},description:``},endAdornment:{required:!1,tsType:{name:`ReactNode`},description:``},overlay:{required:!1,tsType:{name:`ReactNode`},description:``},rootClassName:{required:!1,tsType:{name:`string`},description:``},inputClassName:{required:!1,tsType:{name:`string`},description:``},isLoading:{required:!1,tsType:{name:`boolean`},description:``}},composes:[`Omit`]}})))()}function J({ref:e,open:t,optionCount:n,placeholder:r,label:i,placeholderFallback:a,selectedValue:o,hasSelection:s,showSelectedValue:c=o!=null,clearable:l=!1,onClear:u,clearAriaLabel:d,onToggleMouseDown:f,onToggleClick:p,openAriaLabel:m,closeAriaLabel:h,disabled:g,inputClassName:_,...v}){let y=l&&(s??o!=null)&&u!==void 0&&!g;return(0,Y.jsx)(K,{...v,ref:e,disabled:g,placeholder:c?void 0:te({placeholder:r,label:i,optionCount:n,fallback:a}),inputClassName:_,rootClassName:l?C.triggerHasClear:void 0,overlay:c?(0,Y.jsx)(V,{children:o}):void 0,endAdornment:(0,Y.jsx)(T,{open:t,disabled:g,onToggleMouseDown:f,onToggleClick:p,openAriaLabel:m,closeAriaLabel:h,children:y?(0,Y.jsx)(j,{ariaLabel:d,onClear:u}):null})})}var Y;function X(){return(X=e((()=>{x(),N(),L(),U(),w(),q(),Y=i(),J.__docgenInfo={description:`Общая композиция picker-trigger: input, выбранное значение, очистка и кнопка
6
- открытия. Владельцы picker-моделей передают только состояние и обработчики.`,methods:[],displayName:`PickerTrigger`,props:{ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLInputElement`}],raw:`Ref<HTMLInputElement>`},description:``},open:{required:!0,tsType:{name:`boolean`},description:``},optionCount:{required:!0,tsType:{name:`number`},description:``},placeholder:{required:!1,tsType:{name:`string`},description:``},label:{required:!1,tsType:{name:`ReactNode`},description:``},placeholderFallback:{required:!1,tsType:{name:`string`},description:``},selectedValue:{required:!1,tsType:{name:`ReactNode`},description:``},hasSelection:{required:!1,tsType:{name:`boolean`},description:``},showSelectedValue:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`selectedValue !== undefined && selectedValue !== null`,computed:!1}},clearable:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}},onClear:{required:!1,tsType:{name:`signature`,type:`function`,raw:`() => void`,signature:{arguments:[],return:{name:`void`}}},description:``},clearAriaLabel:{required:!1,tsType:{name:`string`},description:``},onToggleMouseDown:{required:!1,tsType:{name:`Parameters[0]["onToggleMouseDown"]`,raw:`PickerTriggerActionsProps["onToggleMouseDown"]`},description:``},onToggleClick:{required:!0,tsType:{name:`Parameters[0]["onToggleClick"]`,raw:`PickerTriggerActionsProps["onToggleClick"]`},description:``},openAriaLabel:{required:!1,tsType:{name:`string`},description:``},closeAriaLabel:{required:!1,tsType:{name:`string`},description:``}},composes:[`Omit`]}})))()}function Z(e){switch(e){case`search-single`:return{focusFloatingOnOpen:!1,restoreFocusOnClose:!1,resetQueryOnClose:!0,shouldOpenOnTriggerClick:()=>!1,shouldOpenOnInputChange:e=>!e,shouldFocusReferenceOnToggle:e=>!e,shouldSelectTriggerTextOnFocus:({open:e,currentQuery:t,hasDisplayValue:n})=>!e&&t.length===0&&n};case`search-multi`:return{focusFloatingOnOpen:!1,restoreFocusOnClose:!1,resetQueryOnClose:!0,shouldOpenOnTriggerClick:()=>!1,shouldOpenOnInputChange:e=>!e,shouldFocusReferenceOnToggle:e=>!e,shouldSelectTriggerTextOnFocus:()=>!1};default:return{focusFloatingOnOpen:!0,restoreFocusOnClose:!0,resetQueryOnClose:!1,shouldOpenOnTriggerClick:e=>!e,shouldOpenOnInputChange:()=>!1,shouldFocusReferenceOnToggle:()=>!1,shouldSelectTriggerTextOnFocus:()=>!1}}}function Q(){return(Q=e((()=>{})))()}function re(e){let t=e.triggerMode?Z(e.triggerMode):void 0;return D({...e,focusFloatingOnOpen:e.focusFloatingOnOpen??t?.focusFloatingOnOpen,restoreFocusOnClose:e.restoreFocusOnClose??t?.restoreFocusOnClose})}function $(){return($=e((()=>{E()})))()}function ie(e){requestAnimationFrame(()=>{e.current?.focus()})}function ae({mode:e,open:t,currentQuery:n,hasDisplayValue:r,inputRef:i,setQuery:a,openList:o,close:s,toggleOpen:c,onBeforeOpen:l}){let u=Z(e),d=()=>{if(l?.(),o){o();return}c?.()},f=()=>{if(s){s();return}c?.()},p=()=>{t?f():d(),u.shouldFocusReferenceOnToggle(t)&&ie(i)};return{policy:u,handleTriggerInputChange:e=>{a?.(e),u.shouldOpenOnInputChange(t)&&d()},handleTriggerClick:()=>{u.shouldOpenOnTriggerClick(t)&&d()},handleTriggerFocus:e=>{u.shouldSelectTriggerTextOnFocus({open:t,currentQuery:n,hasDisplayValue:r})&&requestAnimationFrame(()=>{e.select()})},handleToggleMouseDown:e=>{e.preventDefault()},handleToggleClick:()=>{p()},handleTriggerKeyDown:({event:e,onActivateWhenOpen:n,enableSpaceActivation:r=!1,enableClosedArrowDownOpen:i=!1,suppressClosedArrowUp:a=!1})=>{if(!t&&a&&e.key===`ArrowUp`){e.preventDefault();return}if(!t&&i&&e.key===`ArrowDown`){e.preventDefault(),p();return}if(e.key===`Enter`){e.preventDefault(),t?n?.():p();return}r&&e.key===` `&&(e.preventDefault(),t?n?.():p())},toggleTrigger:p}}function oe(){return(oe=e((()=>{})))()}export{Z as a,X as c,P as d,I as f,re as i,R as l,A as m,ae as n,Q as o,O as p,$ as r,J as s,oe as t,B as u};