@lanaco/lnc-react-ui 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/bundle-visualization.html +4842 -0
  2. package/dist/Accordion.cjs +1 -1
  3. package/dist/Accordion.js +55 -50
  4. package/dist/AccordionDetails.cjs +1 -1
  5. package/dist/AccordionDetails.js +15 -15
  6. package/dist/AccordionSummary.cjs +1 -1
  7. package/dist/AccordionSummary.js +11 -11
  8. package/dist/ActionsToolbar.cjs +2 -2
  9. package/dist/ActionsToolbar.js +16 -16
  10. package/dist/Alert.cjs +1 -1
  11. package/dist/Alert.js +23 -23
  12. package/dist/Avatar.cjs +2 -2
  13. package/dist/Avatar.js +23 -25
  14. package/dist/Badge.cjs +1 -1
  15. package/dist/Badge.js +21 -14
  16. package/dist/Breadcrumbs.cjs +1 -1
  17. package/dist/Breadcrumbs.js +28 -28
  18. package/dist/Button.cjs +1 -1
  19. package/dist/Button.js +21 -21
  20. package/dist/ButtonGroup.cjs +1 -1
  21. package/dist/ButtonGroup.js +10 -6
  22. package/dist/CheckBoxInput.cjs +1 -1
  23. package/dist/CheckBoxInput.js +4 -4
  24. package/dist/Chip.cjs +1 -1
  25. package/dist/Chip.js +9 -9
  26. package/dist/ColorInput.cjs +1 -1
  27. package/dist/ColorInput.js +5 -5
  28. package/dist/ConfirmationForm.cjs +5 -5
  29. package/dist/ConfirmationForm.js +59 -59
  30. package/dist/Content.cjs +1 -1
  31. package/dist/Content.js +8 -8
  32. package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
  33. package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
  34. package/dist/DataView.cjs +1 -1
  35. package/dist/DataView.js +2 -2
  36. package/dist/DateInput.cjs +4 -4
  37. package/dist/DateInput.js +491 -491
  38. package/dist/DecimalInput.cjs +1 -1
  39. package/dist/DecimalInput.js +5 -5
  40. package/dist/DetailsView.cjs +4 -4
  41. package/dist/DetailsView.js +40 -40
  42. package/dist/DoubleRangeSlider.cjs +1 -1
  43. package/dist/DoubleRangeSlider.js +4 -4
  44. package/dist/DragAndDropFile.cjs +1 -1
  45. package/dist/DragAndDropFile.js +6 -6
  46. package/dist/DragDropFiles.cjs +1 -1
  47. package/dist/DragDropFiles.js +4 -4
  48. package/dist/Drawer.cjs +1 -1
  49. package/dist/Drawer.js +15 -15
  50. package/dist/Dropdown.cjs +1 -1
  51. package/dist/Dropdown.js +6 -6
  52. package/dist/DropdownItem.cjs +1 -1
  53. package/dist/DropdownItem.js +4 -4
  54. package/dist/DropdownLookup.cjs +1 -1
  55. package/dist/DropdownLookup.js +6 -6
  56. package/dist/DropdownMenu.cjs +7 -1
  57. package/dist/DropdownMenu.js +192 -10
  58. package/dist/EditableTable.cjs +1 -1
  59. package/dist/EditableTable.js +4 -4
  60. package/dist/FileInput.cjs +1 -1
  61. package/dist/FileInput.js +4 -4
  62. package/dist/FlexBox.cjs +1 -1
  63. package/dist/FlexBox.js +14 -14
  64. package/dist/FlexGrid.cjs +1 -1
  65. package/dist/FlexGrid.js +30 -30
  66. package/dist/FlexGridItem.cjs +1 -1
  67. package/dist/FlexGridItem.js +3 -3
  68. package/dist/Footer.cjs +1 -1
  69. package/dist/Footer.js +5 -5
  70. package/dist/FormField.cjs +1 -1
  71. package/dist/FormField.js +8 -9
  72. package/dist/FormView.cjs +1 -1
  73. package/dist/FormView.js +31 -31
  74. package/dist/Grid.cjs +1 -1
  75. package/dist/Grid.js +2 -2
  76. package/dist/GridItem.cjs +1 -1
  77. package/dist/GridItem.js +2 -2
  78. package/dist/Header.cjs +1 -1
  79. package/dist/Header.js +7 -7
  80. package/dist/Icon.cjs +1 -1
  81. package/dist/Icon.js +33 -10
  82. package/dist/IconButton.cjs +5 -5
  83. package/dist/IconButton.js +33 -33
  84. package/dist/Kanban.cjs +12 -12
  85. package/dist/Kanban.js +948 -936
  86. package/dist/KanbanActionsToolbar.cjs +2 -2
  87. package/dist/KanbanActionsToolbar.js +28 -28
  88. package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
  89. package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
  90. package/dist/KanbanCard.cjs +1 -1
  91. package/dist/KanbanCard.js +5 -5
  92. package/dist/KanbanFooter.cjs +1 -1
  93. package/dist/KanbanFooter.js +40 -40
  94. package/dist/KanbanHeader.cjs +2 -2
  95. package/dist/KanbanHeader.js +46 -46
  96. package/dist/KanbanView.cjs +1 -1
  97. package/dist/KanbanView.js +27 -27
  98. package/dist/Link.cjs +1 -1
  99. package/dist/Link.js +9 -9
  100. package/dist/MenuItem.cjs +1 -1
  101. package/dist/MenuItem.js +11 -11
  102. package/dist/Modal.cjs +1 -1
  103. package/dist/Modal.js +7 -7
  104. package/dist/MultiSelectDropdown.cjs +1 -1
  105. package/dist/MultiSelectDropdown.js +4 -4
  106. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  107. package/dist/MultiSelectDropdownLookup.js +4 -4
  108. package/dist/NestedDropdownItem.cjs +1 -1
  109. package/dist/NestedDropdownItem.js +18 -18
  110. package/dist/NestedMenuItem.cjs +1 -1
  111. package/dist/NestedMenuItem.js +9 -9
  112. package/dist/Notification.cjs +1 -83
  113. package/dist/Notification.js +3 -1077
  114. package/dist/NotificationContainer.cjs +37 -0
  115. package/dist/NotificationContainer.js +162 -0
  116. package/dist/NotificationMessage.cjs +47 -0
  117. package/dist/NotificationMessage.js +133 -0
  118. package/dist/NumberInput.cjs +1 -1
  119. package/dist/NumberInput.js +5 -5
  120. package/dist/PageLayout.cjs +2 -2
  121. package/dist/PageLayout.js +27 -27
  122. package/dist/Pagination.cjs +12 -0
  123. package/dist/Pagination.js +248 -0
  124. package/dist/PasswordInput.cjs +1 -1
  125. package/dist/PasswordInput.js +14 -14
  126. package/dist/Popover.cjs +1 -0
  127. package/dist/Popover.js +36 -0
  128. package/dist/PopoverClose.cjs +1 -0
  129. package/dist/PopoverClose.js +15 -0
  130. package/dist/PopoverContent.cjs +10 -0
  131. package/dist/PopoverContent.js +68 -0
  132. package/dist/PopoverContext.cjs +1 -0
  133. package/dist/PopoverContext.js +5 -0
  134. package/dist/PopoverDescription.cjs +1 -0
  135. package/dist/PopoverDescription.js +16 -0
  136. package/dist/PopoverHeading.cjs +1 -0
  137. package/dist/PopoverHeading.js +16 -0
  138. package/dist/PopoverTrigger.cjs +1 -0
  139. package/dist/PopoverTrigger.js +38 -0
  140. package/dist/ProgressBar.cjs +1 -1
  141. package/dist/ProgressBar.js +35 -24
  142. package/dist/RadioGroup.cjs +1 -1
  143. package/dist/RadioGroup.js +3 -3
  144. package/dist/RadioInput.cjs +1 -1
  145. package/dist/RadioInput.js +4 -4
  146. package/dist/RangeSlider.cjs +1 -1
  147. package/dist/RangeSlider.js +4 -4
  148. package/dist/SearchBar.cjs +1 -1
  149. package/dist/SearchBar.js +6 -6
  150. package/dist/Separator.cjs +1 -1
  151. package/dist/Separator.js +9 -9
  152. package/dist/Sidebar.cjs +1 -1
  153. package/dist/Sidebar.js +4 -4
  154. package/dist/Spinner.cjs +1 -1
  155. package/dist/Spinner.js +25 -20
  156. package/dist/Surface.cjs +2 -2
  157. package/dist/Surface.js +14 -15
  158. package/dist/SwipeableDrawer.cjs +1 -1
  159. package/dist/SwipeableDrawer.js +4 -4
  160. package/dist/TabItem.cjs +26 -0
  161. package/dist/TabItem.js +210 -0
  162. package/dist/Table.cjs +20 -20
  163. package/dist/Table.js +13 -12
  164. package/dist/TableView.cjs +8 -1
  165. package/dist/TableView.js +238 -9
  166. package/dist/Tabs.cjs +1 -1
  167. package/dist/Tabs.js +3 -3
  168. package/dist/TextAreaInput.cjs +1 -1
  169. package/dist/TextAreaInput.js +5 -5
  170. package/dist/TextInput.cjs +1 -1
  171. package/dist/TextInput.js +5 -5
  172. package/dist/ThemeProvider.cjs +1 -1
  173. package/dist/ThemeProvider.js +5 -5
  174. package/dist/TimeInput.cjs +1 -1
  175. package/dist/TimeInput.js +9 -9
  176. package/dist/Toggle.cjs +1 -1
  177. package/dist/Toggle.js +4 -4
  178. package/dist/TreeMenu.cjs +1 -1
  179. package/dist/TreeMenu.js +2 -2
  180. package/dist/TreeMenuSeparator.cjs +3 -3
  181. package/dist/TreeMenuSeparator.js +11 -11
  182. package/dist/UploadedFile.cjs +1 -1
  183. package/dist/UploadedFile.js +29 -29
  184. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  185. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  186. package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
  187. package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
  188. package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
  189. package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
  190. package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
  191. package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
  192. package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
  193. package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
  194. package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
  195. package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
  196. package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
  197. package/dist/index-BIlhCoy2.cjs +20 -0
  198. package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
  199. package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
  200. package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
  201. package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
  202. package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
  203. package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
  204. package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
  205. package/dist/index-DAOBjHnD.cjs +1 -0
  206. package/dist/index-DBXXH_TD.cjs +1 -0
  207. package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
  208. package/dist/index-DaiUAQVF.cjs +1 -0
  209. package/dist/index.cjs +1 -26
  210. package/dist/index.js +180 -376
  211. package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
  212. package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
  213. package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
  214. package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
  215. package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
  216. package/dist/usePopover.cjs +1 -0
  217. package/dist/usePopover.js +44 -0
  218. package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
  219. package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
  220. package/package.json +17 -5
  221. package/vite.config.js +16 -0
  222. package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
  223. package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
  224. package/dist/KanbanCard-ConTmu3w.cjs +0 -30
  225. package/dist/TableView-Cj5_fbSR.js +0 -481
  226. package/dist/TableView-D8ex512p.cjs +0 -19
  227. package/dist/index-BjdOz5Ok.cjs +0 -1
  228. package/dist/index-DXnSjbfJ.cjs +0 -20
  229. package/dist/index-Dzkd2i4n.cjs +0 -1
  230. package/dist/index-P-naJISQ.cjs +0 -1
package/dist/Kanban.cjs CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";const Y=require("react/jsx-runtime"),u=require("react"),wt=require("./index-C29T0m2a.cjs"),K=require("./index-DXnSjbfJ.cjs"),ue=require("./utils-hdRGTsQ7.cjs"),rr=require("./index-IO9v6o0I.cjs"),At=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),Pn=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),xr=require("./KanbanCard-ConTmu3w.cjs"),ri=require("./index-Dzkd2i4n.cjs"),oi=require("./KanbanHeader.cjs"),ii=require("./useUpdateEffect-BtMgpgIV.cjs");var si=function(e){u.useEffect(e,[])};function ai(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>o=>{t.forEach(i=>i(o))},t)}const fn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Tt(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ln(e){return"nodeType"in e}function xe(e){var t,n;return e?Tt(e)?e:Ln(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function $n(e){const{Document:t}=xe(e);return e instanceof t}function jt(e){return Tt(e)?!1:e instanceof xe(e).HTMLElement}function wr(e){return e instanceof xe(e).SVGElement}function _t(e){return e?Tt(e)?e.document:Ln(e)?$n(e)?e:jt(e)||wr(e)?e.ownerDocument:document:document:document}const je=fn?u.useLayoutEffect:u.useEffect;function gn(e){const t=u.useRef(e);return je(()=>{t.current=e}),u.useCallback(function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t.current==null?void 0:t.current(...o)},[])}function li(){const e=u.useRef(null),t=u.useCallback((o,i)=>{e.current=setInterval(o,i)},[]),n=u.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Bt(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return je(()=>{n.current!==e&&(n.current=e)},t),n}function zt(e,t){const n=u.useRef();return u.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function on(e){const t=gn(e),n=u.useRef(null),o=u.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,o]}function sn(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let Cn={};function Ft(e,t){return u.useMemo(()=>{if(t)return t;const n=Cn[e]==null?0:Cn[e]+1;return Cn[e]=n,e+"-"+n},[e,t])}function Cr(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((a,l)=>{const c=Object.entries(l);for(const[f,d]of c){const p=a[f];p!=null&&(a[f]=p+e*d)}return a},{...t})}}const Rt=Cr(1),an=Cr(-1);function ci(e){return"clientX"in e&&"clientY"in e}function hn(e){if(!e)return!1;const{KeyboardEvent:t}=xe(e.target);return t&&e instanceof t}function ui(e){if(!e)return!1;const{TouchEvent:t}=xe(e.target);return t&&e instanceof t}function ln(e){if(ui(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ci(e)?{x:e.clientX,y:e.clientY}:null}const ft=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ft.Translate.toString(e),ft.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),or="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function di(e){return e.matches(or)?e:e.querySelector(or)}const fi={display:"none"};function gi(e){let{id:t,value:n}=e;return u.createElement("div",{id:t,style:fi},n)}function hi(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const i={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return u.createElement("div",{id:t,style:i,role:"status","aria-live":o,"aria-atomic":!0},n)}function pi(){const[e,t]=u.useState("");return{announce:u.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const Sr=u.createContext(null);function vi(e){const t=u.useContext(Sr);u.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function bi(){const[e]=u.useState(()=>new Set),t=u.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[u.useCallback(o=>{let{type:i,event:a}=o;e.forEach(l=>{var c;return(c=l[i])==null?void 0:c.call(l,a)})},[e]),t]}const yi={draggable:`
1
+ "use strict";const Y=require("react/jsx-runtime"),u=require("react"),Et=require("./index-Ct1N7fF4.cjs"),U=require("./index-BIlhCoy2.cjs"),ce=require("./utils-DTAPpJXU.cjs"),or=require("./index-CSXL784P.cjs"),_t=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),Ln=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),Cr=require("./KanbanCard-DV3VnSUi.cjs"),oi=require("./index-DBXXH_TD.cjs"),Pt=require("./_commonjsHelpers-DKOUU3wS.cjs"),ii=require("./KanbanHeader.cjs"),si=require("./useUpdateEffect-BtMgpgIV.cjs");var ai=function(e){u.useEffect(e,[])};function li(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>o=>{t.forEach(i=>i(o))},t)}const hn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function It(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function $n(e){return"nodeType"in e}function we(e){var t,n;return e?It(e)?e:$n(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Bn(e){const{Document:t}=we(e);return e instanceof t}function Ft(e){return It(e)?!1:e instanceof we(e).HTMLElement}function Sr(e){return e instanceof we(e).SVGElement}function Ot(e){return e?It(e)?e.document:$n(e)?Bn(e)?e:Ft(e)||Sr(e)?e.ownerDocument:document:document:document}const Xe=hn?u.useLayoutEffect:u.useEffect;function pn(e){const t=u.useRef(e);return Xe(()=>{t.current=e}),u.useCallback(function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t.current==null?void 0:t.current(...o)},[])}function ci(){const e=u.useRef(null),t=u.useCallback((o,i)=>{e.current=setInterval(o,i)},[]),n=u.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function zt(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return Xe(()=>{n.current!==e&&(n.current=e)},t),n}function Kt(e,t){const n=u.useRef();return u.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function an(e){const t=pn(e),n=u.useRef(null),o=u.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,o]}function ln(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let Dn={};function kt(e,t){return u.useMemo(()=>{if(t)return t;const n=Dn[e]==null?0:Dn[e]+1;return Dn[e]=n,e+"-"+n},[e,t])}function Dr(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((a,l)=>{const c=Object.entries(l);for(const[f,d]of c){const p=a[f];p!=null&&(a[f]=p+e*d)}return a},{...t})}}const At=Dr(1),cn=Dr(-1);function ui(e){return"clientX"in e&&"clientY"in e}function vn(e){if(!e)return!1;const{KeyboardEvent:t}=we(e.target);return t&&e instanceof t}function di(e){if(!e)return!1;const{TouchEvent:t}=we(e.target);return t&&e instanceof t}function un(e){if(di(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ui(e)?{x:e.clientX,y:e.clientY}:null}const gt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[gt.Translate.toString(e),gt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),ir="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function fi(e){return e.matches(ir)?e:e.querySelector(ir)}const gi={display:"none"};function hi(e){let{id:t,value:n}=e;return u.createElement("div",{id:t,style:gi},n)}function pi(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return u.createElement("div",{id:t,style:i,role:"status","aria-live":o,"aria-atomic":!0},n)}function vi(){const[e,t]=u.useState("");return{announce:u.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const Rr=u.createContext(null);function bi(e){const t=u.useContext(Rr);u.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function yi(){const[e]=u.useState(()=>new Set),t=u.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[u.useCallback(o=>{let{type:i,event:a}=o;e.forEach(l=>{var c;return(c=l[i])==null?void 0:c.call(l,a)})},[e]),t]}const mi={draggable:`
2
2
  To pick up a draggable item, press the space bar.
3
3
  While dragging, use the arrow keys to move the item.
4
4
  Press space again to drop the item in its new position, or press escape to cancel.
5
- `},mi={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function xi(e){let{announcements:t=mi,container:n,hiddenTextDescribedById:o,screenReaderInstructions:i=yi}=e;const{announce:a,announcement:l}=pi(),c=Ft("DndLiveRegion"),[f,d]=u.useState(!1);if(u.useEffect(()=>{d(!0)},[]),vi(u.useMemo(()=>({onDragStart(h){let{active:w}=h;a(t.onDragStart({active:w}))},onDragMove(h){let{active:w,over:y}=h;t.onDragMove&&a(t.onDragMove({active:w,over:y}))},onDragOver(h){let{active:w,over:y}=h;a(t.onDragOver({active:w,over:y}))},onDragEnd(h){let{active:w,over:y}=h;a(t.onDragEnd({active:w,over:y}))},onDragCancel(h){let{active:w,over:y}=h;a(t.onDragCancel({active:w,over:y}))}}),[a,t])),!f)return null;const p=u.createElement(u.Fragment,null,u.createElement(gi,{id:o,value:i.draggable}),u.createElement(hi,{id:c,announcement:l}));return n?wt.reactDomExports.createPortal(p,n):p}var ie;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ie||(ie={}));function cn(){}function Sn(e,t){return u.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function wi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const Ge=Object.freeze({x:0,y:0});function Bn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ci(e,t){const n=ln(e);if(!n)return"0 0";const o={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function jn(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function Si(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Tn(e){let{left:t,top:n,height:o,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+o},{x:t+i,y:n+o}]}function zn(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function ir(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const sr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const i=ir(t,t.left,t.top),a=[];for(const l of o){const{id:c}=l,f=n.get(c);if(f){const d=Bn(ir(f),i);a.push({id:c,data:{droppableContainer:l,value:d}})}}return a.sort(jn)},Di=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const i=Tn(t),a=[];for(const l of o){const{id:c}=l,f=n.get(c);if(f){const d=Tn(f),p=i.reduce((w,y,A)=>w+Bn(d[A],y),0),h=Number((p/4).toFixed(4));a.push({id:c,data:{droppableContainer:l,value:h}})}}return a.sort(jn)};function Ri(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),l=i-o,c=a-n;if(o<i&&n<a){const f=t.width*t.height,d=e.width*e.height,p=l*c,h=p/(f+d-p);return Number(h.toFixed(4))}return 0}const Dr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const i=[];for(const a of o){const{id:l}=a,c=n.get(l);if(c){const f=Ri(c,t);f>0&&i.push({id:l,data:{droppableContainer:a,value:f}})}}return i.sort(Si)};function Ei(e,t){const{top:n,left:o,bottom:i,right:a}=t;return n<=e.y&&e.y<=i&&o<=e.x&&e.x<=a}const Ai=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:o}=e;if(!o)return[];const i=[];for(const a of t){const{id:l}=a,c=n.get(l);if(c&&Ei(o,c)){const d=Tn(c).reduce((h,w)=>h+Bn(o,w),0),p=Number((d/4).toFixed(4));i.push({id:l,data:{droppableContainer:a,value:p}})}}return i.sort(jn)};function Ti(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Rr(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ge}function _i(e){return function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return i.reduce((l,c)=>({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const Ii=_i(1);function Er(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Oi(e,t,n){const o=Er(t);if(!o)return e;const{scaleX:i,scaleY:a,x:l,y:c}=o,f=e.left-l-(1-i)*parseFloat(n),d=e.top-c-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),p=i?e.width/i:e.width,h=a?e.height/a:e.height;return{width:p,height:h,top:d,right:f+p,bottom:d+h,left:f}}const Mi={ignoreTransform:!1};function It(e,t){t===void 0&&(t=Mi);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:p}=xe(e).getComputedStyle(e);d&&(n=Oi(n,d,p))}const{top:o,left:i,width:a,height:l,bottom:c,right:f}=n;return{top:o,left:i,width:a,height:l,bottom:c,right:f}}function ar(e){return It(e,{ignoreTransform:!0})}function Ni(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Pi(e,t){return t===void 0&&(t=xe(e).getComputedStyle(e)),t.position==="fixed"}function Li(e,t){t===void 0&&(t=xe(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?n.test(a):!1})}function Fn(e,t){const n=[];function o(i){if(t!=null&&n.length>=t||!i)return n;if($n(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!jt(i)||wr(i)||n.includes(i))return n;const a=xe(e).getComputedStyle(i);return i!==e&&Li(i,a)&&n.push(i),Pi(i,a)?n:o(i.parentNode)}return e?o(e):n}function Ar(e){const[t]=Fn(e,1);return t??null}function Dn(e){return!fn||!e?null:Tt(e)?e:Ln(e)?$n(e)||e===_t(e).scrollingElement?window:jt(e)?e:null:null}function Tr(e){return Tt(e)?e.scrollX:e.scrollLeft}function _r(e){return Tt(e)?e.scrollY:e.scrollTop}function _n(e){return{x:Tr(e),y:_r(e)}}var de;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(de||(de={}));function Ir(e){return!fn||!e?!1:e===document.scrollingElement}function Or(e){const t={x:0,y:0},n=Ir(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,l=e.scrollTop>=o.y,c=e.scrollLeft>=o.x;return{isTop:i,isLeft:a,isBottom:l,isRight:c,maxScroll:o,minScroll:t}}const $i={x:.2,y:.2};function Bi(e,t,n,o,i){let{top:a,left:l,right:c,bottom:f}=n;o===void 0&&(o=10),i===void 0&&(i=$i);const{isTop:d,isBottom:p,isLeft:h,isRight:w}=Or(e),y={x:0,y:0},A={x:0,y:0},b={height:t.height*i.y,width:t.width*i.x};return!d&&a<=t.top+b.height?(y.y=de.Backward,A.y=o*Math.abs((t.top+b.height-a)/b.height)):!p&&f>=t.bottom-b.height&&(y.y=de.Forward,A.y=o*Math.abs((t.bottom-b.height-f)/b.height)),!w&&c>=t.right-b.width?(y.x=de.Forward,A.x=o*Math.abs((t.right-b.width-c)/b.width)):!h&&l<=t.left+b.width&&(y.x=de.Backward,A.x=o*Math.abs((t.left+b.width-l)/b.width)),{direction:y,speed:A}}function ji(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:l}=window;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}const{top:t,left:n,right:o,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Mr(e){return e.reduce((t,n)=>Rt(t,_n(n)),Ge)}function zi(e){return e.reduce((t,n)=>t+Tr(n),0)}function Fi(e){return e.reduce((t,n)=>t+_r(n),0)}function Nr(e,t){if(t===void 0&&(t=It),!e)return;const{top:n,left:o,bottom:i,right:a}=t(e);Ar(e)&&(i<=0||a<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Ki=[["x",["left","right"],zi],["y",["top","bottom"],Fi]];class Kn{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=Fn(n),i=Mr(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,l,c]of Ki)for(const f of l)Object.defineProperty(this,f,{get:()=>{const d=c(o),p=i[a]-d;return this.rect[f]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Nt{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var i;(i=this.target)==null||i.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function ki(e){const{EventTarget:t}=xe(e);return e instanceof t?e:_t(e)}function Rn(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var Be;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Be||(Be={}));function lr(e){e.preventDefault()}function Hi(e){e.stopPropagation()}var L;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(L||(L={}));const Pr={start:[L.Space,L.Enter],cancel:[L.Esc],end:[L.Space,L.Enter]},Ui=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case L.Right:return{...n,x:n.x+25};case L.Left:return{...n,x:n.x-25};case L.Down:return{...n,y:n.y+25};case L.Up:return{...n,y:n.y-25}}};class kn{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Nt(_t(n)),this.windowListeners=new Nt(xe(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Be.Resize,this.handleCancel),this.windowListeners.add(Be.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Be.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&Nr(o),n(Ge)}handleKeyDown(t){if(hn(t)){const{active:n,context:o,options:i}=this.props,{keyboardCodes:a=Pr,coordinateGetter:l=Ui,scrollBehavior:c="smooth"}=i,{code:f}=t;if(a.end.includes(f)){this.handleEnd(t);return}if(a.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:d}=o.current,p=d?{x:d.left,y:d.top}:Ge;this.referenceCoordinates||(this.referenceCoordinates=p);const h=l(t,{active:n,context:o.current,currentCoordinates:p});if(h){const w=an(h,p),y={x:0,y:0},{scrollableAncestors:A}=o.current;for(const b of A){const C=t.code,{isTop:R,isRight:T,isLeft:D,isBottom:E,maxScroll:M,minScroll:_}=Or(b),O=ji(b),P={x:Math.min(C===L.Right?O.right-O.width/2:O.right,Math.max(C===L.Right?O.left:O.left+O.width/2,h.x)),y:Math.min(C===L.Down?O.bottom-O.height/2:O.bottom,Math.max(C===L.Down?O.top:O.top+O.height/2,h.y))},k=C===L.Right&&!T||C===L.Left&&!D,H=C===L.Down&&!E||C===L.Up&&!R;if(k&&P.x!==h.x){const j=b.scrollLeft+w.x,te=C===L.Right&&j<=M.x||C===L.Left&&j>=_.x;if(te&&!w.y){b.scrollTo({left:j,behavior:c});return}te?y.x=b.scrollLeft-j:y.x=C===L.Right?b.scrollLeft-M.x:b.scrollLeft-_.x,y.x&&b.scrollBy({left:-y.x,behavior:c});break}else if(H&&P.y!==h.y){const j=b.scrollTop+w.y,te=C===L.Down&&j<=M.y||C===L.Up&&j>=_.y;if(te&&!w.x){b.scrollTo({top:j,behavior:c});return}te?y.y=b.scrollTop-j:y.y=C===L.Down?b.scrollTop-M.y:b.scrollTop-_.y,y.y&&b.scrollBy({top:-y.y,behavior:c});break}}this.handleMove(t,Rt(an(h,this.referenceCoordinates),y))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}kn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Pr,onActivation:i}=t,{active:a}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const c=a.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function cr(e){return!!(e&&"distance"in e)}function ur(e){return!!(e&&"delay"in e)}class Hn{constructor(t,n,o){var i;o===void 0&&(o=ki(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:l}=a;this.props=t,this.events=n,this.document=_t(l),this.documentListeners=new Nt(this.document),this.listeners=new Nt(o),this.windowListeners=new Nt(xe(l)),this.initialCoordinates=(i=ln(a))!=null?i:Ge,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Be.Resize,this.handleCancel),this.windowListeners.add(Be.DragStart,lr),this.windowListeners.add(Be.VisibilityChange,this.handleCancel),this.windowListeners.add(Be.ContextMenu,lr),this.documentListeners.add(Be.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ur(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(cr(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Be.Click,Hi,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Be.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:i,props:a}=this,{onMove:l,options:{activationConstraint:c}}=a;if(!i)return;const f=(n=ln(t))!=null?n:Ge,d=an(i,f);if(!o&&c){if(cr(c)){if(c.tolerance!=null&&Rn(d,c.tolerance))return this.handleCancel();if(Rn(d,c.distance))return this.handleStart()}return ur(c)&&Rn(d,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),l(f)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===L.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Xi={move:{name:"pointermove"},end:{name:"pointerup"}};class Lr extends Hn{constructor(t){const{event:n}=t,o=_t(n.target);super(t,Xi,o)}}Lr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o==null||o({event:n}),!0)}}];const Gi={move:{name:"mousemove"},end:{name:"mouseup"}};var In;(function(e){e[e.RightClick=2]="RightClick"})(In||(In={}));class $r extends Hn{constructor(t){super(t,Gi,_t(t.event.target))}}$r.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===In.RightClick?!1:(o==null||o({event:n}),!0)}}];const En={move:{name:"touchmove"},end:{name:"touchend"}};class Br extends Hn{constructor(t){super(t,En)}static setup(){return window.addEventListener(En.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(En.move.name,t)};function t(){}}}Br.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:i}=n;return i.length>1?!1:(o==null||o({event:n}),!0)}}];var Pt;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Pt||(Pt={}));var un;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(un||(un={}));function Yi(e){let{acceleration:t,activator:n=Pt.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:l=5,order:c=un.TreeOrder,pointerCoordinates:f,scrollableAncestors:d,scrollableAncestorRects:p,delta:h,threshold:w}=e;const y=qi({delta:h,disabled:!a}),[A,b]=li(),C=u.useRef({x:0,y:0}),R=u.useRef({x:0,y:0}),T=u.useMemo(()=>{switch(n){case Pt.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Pt.DraggableRect:return i}},[n,i,f]),D=u.useRef(null),E=u.useCallback(()=>{const _=D.current;if(!_)return;const O=C.current.x*R.current.x,P=C.current.y*R.current.y;_.scrollBy(O,P)},[]),M=u.useMemo(()=>c===un.TreeOrder?[...d].reverse():d,[c,d]);u.useEffect(()=>{if(!a||!d.length||!T){b();return}for(const _ of M){if((o==null?void 0:o(_))===!1)continue;const O=d.indexOf(_),P=p[O];if(!P)continue;const{direction:k,speed:H}=Bi(_,P,T,t,w);for(const j of["x","y"])y[j][k[j]]||(H[j]=0,k[j]=0);if(H.x>0||H.y>0){b(),D.current=_,A(E,l),C.current=H,R.current=k;return}}C.current={x:0,y:0},R.current={x:0,y:0},b()},[t,E,o,b,a,l,JSON.stringify(T),JSON.stringify(y),A,d,M,p,JSON.stringify(w)])}const Wi={x:{[de.Backward]:!1,[de.Forward]:!1},y:{[de.Backward]:!1,[de.Forward]:!1}};function qi(e){let{delta:t,disabled:n}=e;const o=sn(t);return zt(i=>{if(n||!o||!i)return Wi;const a={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[de.Backward]:i.x[de.Backward]||a.x===-1,[de.Forward]:i.x[de.Forward]||a.x===1},y:{[de.Backward]:i.y[de.Backward]||a.y===-1,[de.Forward]:i.y[de.Forward]||a.y===1}}},[n,t,o])}function Ji(e,t){const n=t!==null?e.get(t):void 0,o=n?n.node.current:null;return zt(i=>{var a;return t===null?null:(a=o??i)!=null?a:null},[o,t])}function Vi(e,t){return u.useMemo(()=>e.reduce((n,o)=>{const{sensor:i}=o,a=i.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,o)}));return[...n,...a]},[]),[e,t])}var Et;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Et||(Et={}));var On;(function(e){e.Optimized="optimized"})(On||(On={}));const dr=new Map;function Qi(e,t){let{dragging:n,dependencies:o,config:i}=t;const[a,l]=u.useState(null),{frequency:c,measure:f,strategy:d}=i,p=u.useRef(e),h=C(),w=Bt(h),y=u.useCallback(function(R){R===void 0&&(R=[]),!w.current&&l(T=>T===null?R:T.concat(R.filter(D=>!T.includes(D))))},[w]),A=u.useRef(null),b=zt(R=>{if(h&&!n)return dr;if(!R||R===dr||p.current!==e||a!=null){const T=new Map;for(let D of e){if(!D)continue;if(a&&a.length>0&&!a.includes(D.id)&&D.rect.current){T.set(D.id,D.rect.current);continue}const E=D.node.current,M=E?new Kn(f(E),E):null;D.rect.current=M,M&&T.set(D.id,M)}return T}return R},[e,a,n,h,f]);return u.useEffect(()=>{p.current=e},[e]),u.useEffect(()=>{h||y()},[n,h]),u.useEffect(()=>{a&&a.length>0&&l(null)},[JSON.stringify(a)]),u.useEffect(()=>{h||typeof c!="number"||A.current!==null||(A.current=setTimeout(()=>{y(),A.current=null},c))},[c,h,y,...o]),{droppableRects:b,measureDroppableContainers:y,measuringScheduled:a!=null};function C(){switch(d){case Et.Always:return!1;case Et.BeforeDragging:return n;default:return!n}}}function Un(e,t){return zt(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Zi(e,t){return Un(e,t)}function es(e){let{callback:t,disabled:n}=e;const o=gn(t),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(o)},[o,n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function pn(e){let{callback:t,disabled:n}=e;const o=gn(t),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(o)},[n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function ts(e){return new Kn(It(e),e)}function fr(e,t,n){t===void 0&&(t=ts);const[o,i]=u.useReducer(c,null),a=es({callback(f){if(e)for(const d of f){const{type:p,target:h}=d;if(p==="childList"&&h instanceof HTMLElement&&h.contains(e)){i();break}}}}),l=pn({callback:i});return je(()=>{i(),e?(l==null||l.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),a==null||a.disconnect())},[e]),o;function c(f){if(!e)return null;if(e.isConnected===!1){var d;return(d=f??n)!=null?d:null}const p=t(e);return JSON.stringify(f)===JSON.stringify(p)?f:p}}function ns(e){const t=Un(e);return Rr(e,t)}const gr=[];function rs(e){const t=u.useRef(e),n=zt(o=>e?o&&o!==gr&&e&&t.current&&e.parentNode===t.current.parentNode?o:Fn(e):gr,[e]);return u.useEffect(()=>{t.current=e},[e]),n}function os(e){const[t,n]=u.useState(null),o=u.useRef(e),i=u.useCallback(a=>{const l=Dn(a.target);l&&n(c=>c?(c.set(l,_n(l)),new Map(c)):null)},[]);return u.useEffect(()=>{const a=o.current;if(e!==a){l(a);const c=e.map(f=>{const d=Dn(f);return d?(d.addEventListener("scroll",i,{passive:!0}),[d,_n(d)]):null}).filter(f=>f!=null);n(c.length?new Map(c):null),o.current=e}return()=>{l(e),l(a)};function l(c){c.forEach(f=>{const d=Dn(f);d==null||d.removeEventListener("scroll",i)})}},[i,e]),u.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,l)=>Rt(a,l),Ge):Mr(e):Ge,[e,t])}function hr(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const o=e!==Ge;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?an(e,n.current):Ge}function is(e){u.useEffect(()=>{if(!fn)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function ss(e,t){return u.useMemo(()=>e.reduce((n,o)=>{let{eventName:i,handler:a}=o;return n[i]=l=>{a(l,t)},n},{}),[e,t])}function jr(e){return u.useMemo(()=>e?Ni(e):null,[e])}const An=[];function as(e,t){t===void 0&&(t=It);const[n]=e,o=jr(n?xe(n):null),[i,a]=u.useReducer(c,An),l=pn({callback:a});return e.length>0&&i===An&&a(),je(()=>{e.length?e.forEach(f=>l==null?void 0:l.observe(f)):(l==null||l.disconnect(),a())},[e]),i;function c(){return e.length?e.map(f=>Ir(f)?o:new Kn(t(f),f)):An}}function zr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return jt(t)?t:e}function ls(e){let{measure:t}=e;const[n,o]=u.useState(null),i=u.useCallback(d=>{for(const{target:p}of d)if(jt(p)){o(h=>{const w=t(p);return h?{...h,width:w.width,height:w.height}:w});break}},[t]),a=pn({callback:i}),l=u.useCallback(d=>{const p=zr(d);a==null||a.disconnect(),p&&(a==null||a.observe(p)),o(p?t(p):null)},[t,a]),[c,f]=on(l);return u.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const cs=[{sensor:Lr,options:{}},{sensor:kn,options:{}}],us={current:{}},rn={draggable:{measure:ar},droppable:{measure:ar,strategy:Et.WhileDragging,frequency:On.Optimized},dragOverlay:{measure:It}};class Lt extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const ds={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Lt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:cn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:rn,measureDroppableContainers:cn,windowRect:null,measuringScheduled:!1},Fr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:cn,draggableNodes:new Map,over:null,measureDroppableContainers:cn},Kt=u.createContext(Fr),Kr=u.createContext(ds);function fs(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Lt}}}function gs(e,t){switch(t.type){case ie.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ie.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case ie.DragEnd:case ie.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ie.RegisterDroppable:{const{element:n}=t,{id:o}=n,i=new Lt(e.droppable.containers);return i.set(o,n),{...e,droppable:{...e.droppable,containers:i}}}case ie.SetDroppableDisabled:{const{id:n,key:o,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||o!==a.key)return e;const l=new Lt(e.droppable.containers);return l.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:l}}}case ie.UnregisterDroppable:{const{id:n,key:o}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const a=new Lt(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function hs(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:i}=u.useContext(Kt),a=sn(o),l=sn(n==null?void 0:n.id);return u.useEffect(()=>{if(!t&&!o&&a&&l!=null){if(!hn(a)||document.activeElement===a.target)return;const c=i.get(l);if(!c)return;const{activatorNode:f,node:d}=c;if(!f.current&&!d.current)return;requestAnimationFrame(()=>{for(const p of[f.current,d.current]){if(!p)continue;const h=di(p);if(h){h.focus();break}}})}},[o,t,i,l,a]),null}function kr(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...o}),n):n}function ps(e){return u.useMemo(()=>({draggable:{...rn.draggable,...e==null?void 0:e.draggable},droppable:{...rn.droppable,...e==null?void 0:e.droppable},dragOverlay:{...rn.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function vs(e){let{activeNode:t,measure:n,initialRect:o,config:i=!0}=e;const a=u.useRef(!1),{x:l,y:c}=typeof i=="boolean"?{x:i,y:i}:i;je(()=>{if(!l&&!c||!t){a.current=!1;return}if(a.current||!o)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const p=n(d),h=Rr(p,o);if(l||(h.x=0),c||(h.y=0),a.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const w=Ar(d);w&&w.scrollBy({top:h.y,left:h.x})}},[t,l,c,o,n])}const vn=u.createContext({...Ge,scaleX:1,scaleY:1});var dt;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(dt||(dt={}));const bs=u.memo(function(t){var n,o,i,a;let{id:l,accessibility:c,autoScroll:f=!0,children:d,sensors:p=cs,collisionDetection:h=Dr,measuring:w,modifiers:y,...A}=t;const b=u.useReducer(gs,void 0,fs),[C,R]=b,[T,D]=bi(),[E,M]=u.useState(dt.Uninitialized),_=E===dt.Initialized,{draggable:{active:O,nodes:P,translate:k},droppable:{containers:H}}=C,j=O?P.get(O):null,te=u.useRef({initial:null,translated:null}),J=u.useMemo(()=>{var U;return O!=null?{id:O,data:(U=j==null?void 0:j.data)!=null?U:us,rect:te}:null},[O,j]),we=u.useRef(null),[ze,F]=u.useState(null),[W,Ie]=u.useState(null),Ee=Bt(A,Object.values(A)),se=Ft("DndDescribedBy",l),Oe=u.useMemo(()=>H.getEnabled(),[H]),q=ps(w),{droppableRects:ve,measureDroppableContainers:Fe,measuringScheduled:Ve}=Qi(Oe,{dragging:_,dependencies:[k.x,k.y],config:q.droppable}),V=Ji(P,O),Qe=u.useMemo(()=>W?ln(W):null,[W]),Me=Ht(),ae=Zi(V,q.draggable.measure);vs({activeNode:O?P.get(O):null,config:Me.layoutShiftCompensation,initialRect:ae,measure:q.draggable.measure});const B=fr(V,q.draggable.measure,ae),Ze=fr(V?V.parentElement:null),Ce=u.useRef({activatorEvent:null,active:null,activeNode:V,collisionRect:null,collisions:null,droppableRects:ve,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:H,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ye=H.getNodeFor((n=Ce.current.over)==null?void 0:n.id),$=ls({measure:q.dragOverlay.measure}),We=(o=$.nodeRef.current)!=null?o:V,Ke=_?(i=$.rect)!=null?i:B:null,gt=!!($.nodeRef.current&&$.rect),Se=ns(gt?null:B),qe=jr(We?xe(We):null),v=rs(_?Ye??V:null),x=as(v),N=kr(y,{transform:{x:k.x-Se.x,y:k.y-Se.y,scaleX:1,scaleY:1},activatorEvent:W,active:J,activeNodeRect:B,containerNodeRect:Ze,draggingNodeRect:Ke,over:Ce.current.over,overlayNodeRect:$.rect,scrollableAncestors:v,scrollableAncestorRects:x,windowRect:qe}),G=Qe?Rt(Qe,k):null,X=os(v),le=hr(X),Q=hr(X,[B]),ne=Rt(N,le),fe=Ke?Ii(Ke,N):null,he=J&&fe?h({active:J,collisionRect:fe,droppableRects:ve,droppableContainers:Oe,pointerCoordinates:G}):null,et=zn(he,"id"),[Z,Ae]=u.useState(null),ht=gt?N:Rt(N,Q),re=Ti(ht,(a=Z==null?void 0:Z.rect)!=null?a:null,B),ce=u.useCallback((U,ee)=>{let{sensor:be,options:ke}=ee;if(we.current==null)return;const ye=P.get(we.current);if(!ye)return;const Te=U.nativeEvent,Pe=new be({active:we.current,activeNode:ye,event:Te,options:ke,context:Ce,onStart(_e){const tt=we.current;if(tt==null)return;const He=P.get(tt);if(!He)return;const{onDragStart:at}=Ee.current,lt={active:{id:tt,data:He.data,rect:te}};wt.reactDomExports.unstable_batchedUpdates(()=>{at==null||at(lt),M(dt.Initializing),R({type:ie.DragStart,initialCoordinates:_e,active:tt}),T({type:"onDragStart",event:lt})})},onMove(_e){R({type:ie.DragMove,coordinates:_e})},onEnd:st(ie.DragEnd),onCancel:st(ie.DragCancel)});wt.reactDomExports.unstable_batchedUpdates(()=>{F(Pe),Ie(U.nativeEvent)});function st(_e){return async function(){const{active:He,collisions:at,over:lt,scrollAdjustedTranslate:Ct}=Ce.current;let Ue=null;if(He&&Ct){const{cancelDrop:pt}=Ee.current;Ue={activatorEvent:Te,active:He,collisions:at,delta:Ct,over:lt},_e===ie.DragEnd&&typeof pt=="function"&&await Promise.resolve(pt(Ue))&&(_e=ie.DragCancel)}we.current=null,wt.reactDomExports.unstable_batchedUpdates(()=>{R({type:_e}),M(dt.Uninitialized),Ae(null),F(null),Ie(null);const pt=_e===ie.DragEnd?"onDragEnd":"onDragCancel";if(Ue){const Mt=Ee.current[pt];Mt==null||Mt(Ue),T({type:pt,event:Ue})}})}}},[P]),Ne=u.useCallback((U,ee)=>(be,ke)=>{const ye=be.nativeEvent,Te=P.get(ke);if(we.current!==null||!Te||ye.dndKit||ye.defaultPrevented)return;const Pe={active:Te};U(be,ee.options,Pe)===!0&&(ye.dndKit={capturedBy:ee.sensor},we.current=ke,ce(be,ee))},[P,ce]),Je=Vi(p,Ne);is(p),je(()=>{B&&E===dt.Initializing&&M(dt.Initialized)},[B,E]),u.useEffect(()=>{const{onDragMove:U}=Ee.current,{active:ee,activatorEvent:be,collisions:ke,over:ye}=Ce.current;if(!ee||!be)return;const Te={active:ee,activatorEvent:be,collisions:ke,delta:{x:ne.x,y:ne.y},over:ye};wt.reactDomExports.unstable_batchedUpdates(()=>{U==null||U(Te),T({type:"onDragMove",event:Te})})},[ne.x,ne.y]),u.useEffect(()=>{const{active:U,activatorEvent:ee,collisions:be,droppableContainers:ke,scrollAdjustedTranslate:ye}=Ce.current;if(!U||we.current==null||!ee||!ye)return;const{onDragOver:Te}=Ee.current,Pe=ke.get(et),st=Pe&&Pe.rect.current?{id:Pe.id,rect:Pe.rect.current,data:Pe.data,disabled:Pe.disabled}:null,_e={active:U,activatorEvent:ee,collisions:be,delta:{x:ye.x,y:ye.y},over:st};wt.reactDomExports.unstable_batchedUpdates(()=>{Ae(st),Te==null||Te(_e),T({type:"onDragOver",event:_e})})},[et]),je(()=>{Ce.current={activatorEvent:W,active:J,activeNode:V,collisionRect:fe,collisions:he,droppableRects:ve,draggableNodes:P,draggingNode:We,draggingNodeRect:Ke,droppableContainers:H,over:Z,scrollableAncestors:v,scrollAdjustedTranslate:ne},te.current={initial:Ke,translated:fe}},[J,V,he,fe,P,We,Ke,ve,H,Z,v,ne]),Yi({...Me,delta:k,draggingRect:fe,pointerCoordinates:G,scrollableAncestors:v,scrollableAncestorRects:x});const Ot=u.useMemo(()=>({active:J,activeNode:V,activeNodeRect:B,activatorEvent:W,collisions:he,containerNodeRect:Ze,dragOverlay:$,draggableNodes:P,droppableContainers:H,droppableRects:ve,over:Z,measureDroppableContainers:Fe,scrollableAncestors:v,scrollableAncestorRects:x,measuringConfiguration:q,measuringScheduled:Ve,windowRect:qe}),[J,V,B,W,he,Ze,$,P,H,ve,Z,Fe,v,x,q,Ve,qe]),kt=u.useMemo(()=>({activatorEvent:W,activators:Je,active:J,activeNodeRect:B,ariaDescribedById:{draggable:se},dispatch:R,draggableNodes:P,over:Z,measureDroppableContainers:Fe}),[W,Je,J,B,R,se,P,Z,Fe]);return u.createElement(Sr.Provider,{value:D},u.createElement(Kt.Provider,{value:kt},u.createElement(Kr.Provider,{value:Ot},u.createElement(vn.Provider,{value:re},d)),u.createElement(hs,{disabled:(c==null?void 0:c.restoreFocus)===!1})),u.createElement(xi,{...c,hiddenTextDescribedById:se}));function Ht(){const U=(ze==null?void 0:ze.autoScrollEnabled)===!1,ee=typeof f=="object"?f.enabled===!1:f===!1,be=_&&!U&&!ee;return typeof f=="object"?{...f,enabled:be}:{enabled:be}}}),ys=u.createContext(null),pr="button",ms="Droppable";function xs(e){let{id:t,data:n,disabled:o=!1,attributes:i}=e;const a=Ft(ms),{activators:l,activatorEvent:c,active:f,activeNodeRect:d,ariaDescribedById:p,draggableNodes:h,over:w}=u.useContext(Kt),{role:y=pr,roleDescription:A="draggable",tabIndex:b=0}=i??{},C=(f==null?void 0:f.id)===t,R=u.useContext(C?vn:ys),[T,D]=on(),[E,M]=on(),_=ss(l,t),O=Bt(n);je(()=>(h.set(t,{id:t,key:a,node:T,activatorNode:E,data:O}),()=>{const k=h.get(t);k&&k.key===a&&h.delete(t)}),[h,t]);const P=u.useMemo(()=>({role:y,tabIndex:b,"aria-disabled":o,"aria-pressed":C&&y===pr?!0:void 0,"aria-roledescription":A,"aria-describedby":p.draggable}),[o,y,b,C,A,p.draggable]);return{active:f,activatorEvent:c,activeNodeRect:d,attributes:P,isDragging:C,listeners:o?void 0:_,node:T,over:w,setNodeRef:D,setActivatorNodeRef:M,transform:R}}function Hr(){return u.useContext(Kr)}const ws="Droppable",Cs={timeout:25};function Ss(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:i}=e;const a=Ft(ws),{active:l,dispatch:c,over:f,measureDroppableContainers:d}=u.useContext(Kt),p=u.useRef({disabled:n}),h=u.useRef(!1),w=u.useRef(null),y=u.useRef(null),{disabled:A,updateMeasurementsFor:b,timeout:C}={...Cs,...i},R=Bt(b??o),T=u.useCallback(()=>{if(!h.current){h.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{d(Array.isArray(R.current)?R.current:[R.current]),y.current=null},C)},[C]),D=pn({callback:T,disabled:A||!l}),E=u.useCallback((P,k)=>{D&&(k&&(D.unobserve(k),h.current=!1),P&&D.observe(P))},[D]),[M,_]=on(E),O=Bt(t);return u.useEffect(()=>{!D||!M.current||(D.disconnect(),h.current=!1,D.observe(M.current))},[M,D]),je(()=>(c({type:ie.RegisterDroppable,element:{id:o,key:a,disabled:n,node:M,rect:w,data:O}}),()=>c({type:ie.UnregisterDroppable,key:a,id:o})),[o]),u.useEffect(()=>{n!==p.current.disabled&&(c({type:ie.SetDroppableDisabled,id:o,key:a,disabled:n}),p.current.disabled=n)},[o,a,n,c]),{active:l,rect:w,isOver:(f==null?void 0:f.id)===o,node:M,over:f,setNodeRef:_}}function Ds(e){let{animation:t,children:n}=e;const[o,i]=u.useState(null),[a,l]=u.useState(null),c=sn(n);return!n&&!o&&c&&i(c),je(()=>{if(!a)return;const f=o==null?void 0:o.key,d=o==null?void 0:o.props.id;if(f==null||d==null){i(null);return}Promise.resolve(t(d,a)).then(()=>{i(null)})},[t,o,a]),u.createElement(u.Fragment,null,n,o?u.cloneElement(o,{ref:l}):null)}const Rs={x:0,y:0,scaleX:1,scaleY:1};function Es(e){let{children:t}=e;return u.createElement(Kt.Provider,{value:Fr},u.createElement(vn.Provider,{value:Rs},t))}const As={position:"fixed",touchAction:"none"},Ts=e=>hn(e)?"transform 250ms ease":void 0,_s=u.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:i,children:a,className:l,rect:c,style:f,transform:d,transition:p=Ts}=e;if(!c)return null;const h=i?d:{...d,scaleX:1,scaleY:1},w={...As,width:c.width,height:c.height,top:c.top,left:c.left,transform:ft.Transform.toString(h),transformOrigin:i&&o?Ci(o,c):void 0,transition:typeof p=="function"?p(o):p,...f};return u.createElement(n,{className:l,style:w,ref:t},a)}),Ur=e=>t=>{let{active:n,dragOverlay:o}=t;const i={},{styles:a,className:l}=e;if(a!=null&&a.active)for(const[c,f]of Object.entries(a.active))f!==void 0&&(i[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,f));if(a!=null&&a.dragOverlay)for(const[c,f]of Object.entries(a.dragOverlay))f!==void 0&&o.node.style.setProperty(c,f);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&o.node.classList.add(l.dragOverlay),function(){for(const[f,d]of Object.entries(i))n.node.style.setProperty(f,d);l!=null&&l.active&&n.node.classList.remove(l.active)}},Is=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:ft.Transform.toString(t)},{transform:ft.Transform.toString(n)}]},Os={duration:250,easing:"ease",keyframes:Is,sideEffects:Ur({styles:{active:{opacity:"0"}}})};function Ms(e){let{config:t,draggableNodes:n,droppableContainers:o,measuringConfiguration:i}=e;return gn((a,l)=>{if(t===null)return;const c=n.get(a);if(!c)return;const f=c.node.current;if(!f)return;const d=zr(l);if(!d)return;const{transform:p}=xe(l).getComputedStyle(l),h=Er(p);if(!h)return;const w=typeof t=="function"?t:Ns(t);return Nr(f,i.draggable.measure),w({active:{id:a,data:c.data,node:f,rect:i.draggable.measure(f)},draggableNodes:n,dragOverlay:{node:l,rect:i.dragOverlay.measure(d)},droppableContainers:o,measuringConfiguration:i,transform:h})})}function Ns(e){const{duration:t,easing:n,sideEffects:o,keyframes:i}={...Os,...e};return a=>{let{active:l,dragOverlay:c,transform:f,...d}=a;if(!t)return;const p={x:c.rect.left-l.rect.left,y:c.rect.top-l.rect.top},h={scaleX:f.scaleX!==1?l.rect.width*f.scaleX/c.rect.width:1,scaleY:f.scaleY!==1?l.rect.height*f.scaleY/c.rect.height:1},w={x:f.x-p.x,y:f.y-p.y,...h},y=i({...d,active:l,dragOverlay:c,transform:{initial:f,final:w}}),[A]=y,b=y[y.length-1];if(JSON.stringify(A)===JSON.stringify(b))return;const C=o==null?void 0:o({active:l,dragOverlay:c,...d}),R=c.node.animate(y,{duration:t,easing:n,fill:"forwards"});return new Promise(T=>{R.onfinish=()=>{C==null||C(),T()}})}}let vr=0;function Ps(e){return u.useMemo(()=>{if(e!=null)return vr++,vr},[e])}const Ls=u.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:i,transition:a,modifiers:l,wrapperElement:c="div",className:f,zIndex:d=999}=e;const{activatorEvent:p,active:h,activeNodeRect:w,containerNodeRect:y,draggableNodes:A,droppableContainers:b,dragOverlay:C,over:R,measuringConfiguration:T,scrollableAncestors:D,scrollableAncestorRects:E,windowRect:M}=Hr(),_=u.useContext(vn),O=Ps(h==null?void 0:h.id),P=kr(l,{activatorEvent:p,active:h,activeNodeRect:w,containerNodeRect:y,draggingNodeRect:C.rect,over:R,overlayNodeRect:C.rect,scrollableAncestors:D,scrollableAncestorRects:E,transform:_,windowRect:M}),k=Un(w),H=Ms({config:o,draggableNodes:A,droppableContainers:b,measuringConfiguration:T}),j=k?C.setRef:void 0;return u.createElement(Es,null,u.createElement(Ds,{animation:H},h&&O?u.createElement(_s,{key:O,id:h.id,ref:j,as:c,activatorEvent:p,adjustScale:t,className:f,transition:a,rect:k,style:{zIndex:d,...i},transform:P},n):null))});function $t(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function $s(e,t){return e.reduce((n,o,i)=>{const a=t.get(o);return a&&(n[i]=a),n},Array(e.length))}function en(e){return e!==null&&e>=0}function Bs(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function js(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const tn={scaleX:1,scaleY:1},zs=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:i,overIndex:a,index:l}=e;const c=(t=n[i])!=null?t:o;if(!c)return null;const f=Fs(n,l,i);if(l===i){const d=n[a];return d?{x:i<a?d.left+d.width-(c.left+c.width):d.left-c.left,y:0,...tn}:null}return l>i&&l<=a?{x:-c.width-f,y:0,...tn}:l<i&&l>=a?{x:c.width+f,y:0,...tn}:{x:0,y:0,...tn}};function Fs(e,t,n){const o=e[t],i=e[t-1],a=e[t+1];return!o||!i&&!a?0:n<t?i?o.left-(i.left+i.width):a.left-(o.left+o.width):a?a.left-(o.left+o.width):o.left-(i.left+i.width)}const Xr=e=>{let{rects:t,activeIndex:n,overIndex:o,index:i}=e;const a=$t(t,o,n),l=t[i],c=a[i];return!c||!l?null:{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}},nn={scaleX:1,scaleY:1},br=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:i,rects:a,overIndex:l}=e;const c=(t=a[n])!=null?t:o;if(!c)return null;if(i===n){const d=a[l];return d?{x:0,y:n<l?d.top+d.height-(c.top+c.height):d.top-c.top,...nn}:null}const f=Ks(a,i,n);return i>n&&i<=l?{x:0,y:-c.height-f,...nn}:i<n&&i>=l?{x:0,y:c.height+f,...nn}:{x:0,y:0,...nn}};function Ks(e,t,n){const o=e[t],i=e[t-1],a=e[t+1];return o?n<t?i?o.top-(i.top+i.height):a?a.top-(o.top+o.height):0:a?a.top-(o.top+o.height):i?o.top-(i.top+i.height):0:0}const Gr="Sortable",Yr=u.createContext({activeIndex:-1,containerId:Gr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Xr,disabled:{draggable:!1,droppable:!1}});function yr(e){let{children:t,id:n,items:o,strategy:i=Xr,disabled:a=!1}=e;const{active:l,dragOverlay:c,droppableRects:f,over:d,measureDroppableContainers:p}=Hr(),h=Ft(Gr,n),w=c.rect!==null,y=u.useMemo(()=>o.map(_=>typeof _=="object"&&"id"in _?_.id:_),[o]),A=l!=null,b=l?y.indexOf(l.id):-1,C=d?y.indexOf(d.id):-1,R=u.useRef(y),T=!Bs(y,R.current),D=C!==-1&&b===-1||T,E=js(a);je(()=>{T&&A&&p(y)},[T,y,A,p]),u.useEffect(()=>{R.current=y},[y]);const M=u.useMemo(()=>({activeIndex:b,containerId:h,disabled:E,disableTransforms:D,items:y,overIndex:C,useDragOverlay:w,sortedRects:$s(y,f),strategy:i}),[b,h,E.draggable,E.droppable,D,y,C,f,w,i]);return u.createElement(Yr.Provider,{value:M},t)}const ks=e=>{let{id:t,items:n,activeIndex:o,overIndex:i}=e;return $t(n,o,i).indexOf(t)},Wr=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:i,items:a,newIndex:l,previousItems:c,previousContainerId:f,transition:d}=e;return!d||!o||c!==a&&i===l?!1:n?!0:l!==i&&t===f},Hs={duration:200,easing:"ease"},qr="transform",Us=ft.Transition.toString({property:qr,duration:0,easing:"linear"}),Xs={roleDescription:"sortable"};function Gs(e){let{disabled:t,index:n,node:o,rect:i}=e;const[a,l]=u.useState(null),c=u.useRef(n);return je(()=>{if(!t&&n!==c.current&&o.current){const f=i.current;if(f){const d=It(o.current,{ignoreTransform:!0}),p={x:f.left-d.left,y:f.top-d.top,scaleX:f.width/d.width,scaleY:f.height/d.height};(p.x||p.y)&&l(p)}}n!==c.current&&(c.current=n)},[t,n,o,i]),u.useEffect(()=>{a&&l(null)},[a]),a}function Jr(e){let{animateLayoutChanges:t=Wr,attributes:n,disabled:o,data:i,getNewIndex:a=ks,id:l,strategy:c,resizeObserverConfig:f,transition:d=Hs}=e;const{items:p,containerId:h,activeIndex:w,disabled:y,disableTransforms:A,sortedRects:b,overIndex:C,useDragOverlay:R,strategy:T}=u.useContext(Yr),D=Ys(o,y),E=p.indexOf(l),M=u.useMemo(()=>({sortable:{containerId:h,index:E,items:p},...i}),[h,i,E,p]),_=u.useMemo(()=>p.slice(p.indexOf(l)),[p,l]),{rect:O,node:P,isOver:k,setNodeRef:H}=Ss({id:l,data:M,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...f}}),{active:j,activatorEvent:te,activeNodeRect:J,attributes:we,setNodeRef:ze,listeners:F,isDragging:W,over:Ie,setActivatorNodeRef:Ee,transform:se}=xs({id:l,data:M,attributes:{...Xs,...n},disabled:D.draggable}),Oe=ai(H,ze),q=!!j,ve=q&&!A&&en(w)&&en(C),Fe=!R&&W,Ve=Fe&&ve?se:null,Qe=ve?Ve??(c??T)({rects:b,activeNodeRect:J,activeIndex:w,overIndex:C,index:E}):null,Me=en(w)&&en(C)?a({id:l,items:p,activeIndex:w,overIndex:C}):E,ae=j==null?void 0:j.id,B=u.useRef({activeId:ae,items:p,newIndex:Me,containerId:h}),Ze=p!==B.current.items,Ce=t({active:j,containerId:h,isDragging:W,isSorting:q,id:l,index:E,items:p,newIndex:B.current.newIndex,previousItems:B.current.items,previousContainerId:B.current.containerId,transition:d,wasDragging:B.current.activeId!=null}),Ye=Gs({disabled:!Ce,index:E,node:P,rect:O});return u.useEffect(()=>{q&&B.current.newIndex!==Me&&(B.current.newIndex=Me),h!==B.current.containerId&&(B.current.containerId=h),p!==B.current.items&&(B.current.items=p)},[q,Me,h,p]),u.useEffect(()=>{if(ae===B.current.activeId)return;if(ae&&!B.current.activeId){B.current.activeId=ae;return}const We=setTimeout(()=>{B.current.activeId=ae},50);return()=>clearTimeout(We)},[ae]),{active:j,activeIndex:w,attributes:we,data:M,rect:O,index:E,newIndex:Me,items:p,isOver:k,isSorting:q,isDragging:W,listeners:F,node:P,overIndex:C,over:Ie,setNodeRef:Oe,setActivatorNodeRef:Ee,setDroppableNodeRef:H,setDraggableNodeRef:ze,transform:Ye??Qe,transition:$()};function $(){if(Ye||Ze&&B.current.newIndex===E)return Us;if(!(Fe&&!hn(te)||!d)&&(q||Ce))return ft.Transition.toString({...d,property:qr})}}function Ys(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}L.Down,L.Right,L.Up,L.Left;const Ws=e=>e;function mr(e,t=Ws){return[...new Array(e)].map((n,o)=>t(o))}const qs=[L.Down,L.Right,L.Up,L.Left],Js=(e,{context:{active:t,droppableRects:n,droppableContainers:o,collisionRect:i}})=>{var a;if(qs.includes(e.code)){if(e.preventDefault(),!t||!i)return;const l=[];o.getEnabled().forEach(d=>{var w;if(!d||d!=null&&d.disabled)return;const p=n.get(d.id);if(!p)return;const h=d.data.current;if(h){const{type:y,children:A}=h;if(y==="container"&&(A==null?void 0:A.length)>0&&((w=t.data.current)==null?void 0:w.type)!=="container")return}switch(e.code){case L.Down:i.top<p.top&&l.push(d);break;case L.Up:i.top>p.top&&l.push(d);break;case L.Left:i.left>=p.left+p.width&&l.push(d);break;case L.Right:i.left+i.width<=p.left&&l.push(d);break}});const c=Di({active:t,collisionRect:i,droppableRects:n,droppableContainers:l,pointerCoordinates:null}),f=zn(c,"id");if(f!=null){const d=o.get(f),p=d==null?void 0:d.node.current,h=d==null?void 0:d.rect.current;if(p&&h)return d.id==="placeholder"?{x:h.left+(h.width-i.width)/2,y:h.top+(h.height-i.height)/2}:((a=d.data.current)==null?void 0:a.type)==="container"?{x:h.left+20,y:h.top+74}:{x:h.left,y:h.top}}}},Vs="_Wrapper_37o6x_33",Qs="_fadeIn_37o6x_41",Zs="_dragOverlay_37o6x_44",ea="_Item_37o6x_53",ta="_withHandle_37o6x_79",na="_dragging_37o6x_83",ra="_disabled_37o6x_91",oa="_pop_37o6x_1",ia="_color_37o6x_110",sa="_Remove_37o6x_123",aa="_Actions_37o6x_129",Xe={Wrapper:Vs,fadeIn:Qs,dragOverlay:Zs,Item:ea,withHandle:ta,dragging:na,disabled:ra,pop:oa,color:ia,Remove:sa,Actions:aa},la=At.newStyled.div`
5
+ `},xi={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function wi(e){let{announcements:t=xi,container:n,hiddenTextDescribedById:o,screenReaderInstructions:i=mi}=e;const{announce:a,announcement:l}=vi(),c=kt("DndLiveRegion"),[f,d]=u.useState(!1);if(u.useEffect(()=>{d(!0)},[]),bi(u.useMemo(()=>({onDragStart(h){let{active:w}=h;a(t.onDragStart({active:w}))},onDragMove(h){let{active:w,over:y}=h;t.onDragMove&&a(t.onDragMove({active:w,over:y}))},onDragOver(h){let{active:w,over:y}=h;a(t.onDragOver({active:w,over:y}))},onDragEnd(h){let{active:w,over:y}=h;a(t.onDragEnd({active:w,over:y}))},onDragCancel(h){let{active:w,over:y}=h;a(t.onDragCancel({active:w,over:y}))}}),[a,t])),!f)return null;const p=u.createElement(u.Fragment,null,u.createElement(hi,{id:o,value:i.draggable}),u.createElement(pi,{id:c,announcement:l}));return n?Et.reactDomExports.createPortal(p,n):p}var ie;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ie||(ie={}));function dn(){}function Rn(e,t){return u.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Ci(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const Ge=Object.freeze({x:0,y:0});function jn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Si(e,t){const n=un(e);if(!n)return"0 0";const o={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function zn(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function Di(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function _n(e){let{left:t,top:n,height:o,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+o},{x:t+i,y:n+o}]}function Fn(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function sr(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const ar=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const i=sr(t,t.left,t.top),a=[];for(const l of o){const{id:c}=l,f=n.get(c);if(f){const d=jn(sr(f),i);a.push({id:c,data:{droppableContainer:l,value:d}})}}return a.sort(zn)},Ri=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const i=_n(t),a=[];for(const l of o){const{id:c}=l,f=n.get(c);if(f){const d=_n(f),p=i.reduce((w,y,A)=>w+jn(d[A],y),0),h=Number((p/4).toFixed(4));a.push({id:c,data:{droppableContainer:l,value:h}})}}return a.sort(zn)};function Ei(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),l=i-o,c=a-n;if(o<i&&n<a){const f=t.width*t.height,d=e.width*e.height,p=l*c,h=p/(f+d-p);return Number(h.toFixed(4))}return 0}const Er=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const i=[];for(const a of o){const{id:l}=a,c=n.get(l);if(c){const f=Ei(c,t);f>0&&i.push({id:l,data:{droppableContainer:a,value:f}})}}return i.sort(Di)};function Ai(e,t){const{top:n,left:o,bottom:i,right:a}=t;return n<=e.y&&e.y<=i&&o<=e.x&&e.x<=a}const Ti=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:o}=e;if(!o)return[];const i=[];for(const a of t){const{id:l}=a,c=n.get(l);if(c&&Ai(o,c)){const d=_n(c).reduce((h,w)=>h+jn(o,w),0),p=Number((d/4).toFixed(4));i.push({id:l,data:{droppableContainer:a,value:p}})}}return i.sort(zn)};function _i(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Ar(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ge}function Ii(e){return function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return i.reduce((l,c)=>({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const Oi=Ii(1);function Tr(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Mi(e,t,n){const o=Tr(t);if(!o)return e;const{scaleX:i,scaleY:a,x:l,y:c}=o,f=e.left-l-(1-i)*parseFloat(n),d=e.top-c-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),p=i?e.width/i:e.width,h=a?e.height/a:e.height;return{width:p,height:h,top:d,right:f+p,bottom:d+h,left:f}}const Ni={ignoreTransform:!1};function Mt(e,t){t===void 0&&(t=Ni);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:p}=we(e).getComputedStyle(e);d&&(n=Mi(n,d,p))}const{top:o,left:i,width:a,height:l,bottom:c,right:f}=n;return{top:o,left:i,width:a,height:l,bottom:c,right:f}}function lr(e){return Mt(e,{ignoreTransform:!0})}function Pi(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Li(e,t){return t===void 0&&(t=we(e).getComputedStyle(e)),t.position==="fixed"}function $i(e,t){t===void 0&&(t=we(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?n.test(a):!1})}function Kn(e,t){const n=[];function o(i){if(t!=null&&n.length>=t||!i)return n;if(Bn(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Ft(i)||Sr(i)||n.includes(i))return n;const a=we(e).getComputedStyle(i);return i!==e&&$i(i,a)&&n.push(i),Li(i,a)?n:o(i.parentNode)}return e?o(e):n}function _r(e){const[t]=Kn(e,1);return t??null}function En(e){return!hn||!e?null:It(e)?e:$n(e)?Bn(e)||e===Ot(e).scrollingElement?window:Ft(e)?e:null:null}function Ir(e){return It(e)?e.scrollX:e.scrollLeft}function Or(e){return It(e)?e.scrollY:e.scrollTop}function In(e){return{x:Ir(e),y:Or(e)}}var ue;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ue||(ue={}));function Mr(e){return!hn||!e?!1:e===document.scrollingElement}function Nr(e){const t={x:0,y:0},n=Mr(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,l=e.scrollTop>=o.y,c=e.scrollLeft>=o.x;return{isTop:i,isLeft:a,isBottom:l,isRight:c,maxScroll:o,minScroll:t}}const Bi={x:.2,y:.2};function ji(e,t,n,o,i){let{top:a,left:l,right:c,bottom:f}=n;o===void 0&&(o=10),i===void 0&&(i=Bi);const{isTop:d,isBottom:p,isLeft:h,isRight:w}=Nr(e),y={x:0,y:0},A={x:0,y:0},b={height:t.height*i.y,width:t.width*i.x};return!d&&a<=t.top+b.height?(y.y=ue.Backward,A.y=o*Math.abs((t.top+b.height-a)/b.height)):!p&&f>=t.bottom-b.height&&(y.y=ue.Forward,A.y=o*Math.abs((t.bottom-b.height-f)/b.height)),!w&&c>=t.right-b.width?(y.x=ue.Forward,A.x=o*Math.abs((t.right-b.width-c)/b.width)):!h&&l<=t.left+b.width&&(y.x=ue.Backward,A.x=o*Math.abs((t.left+b.width-l)/b.width)),{direction:y,speed:A}}function zi(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:l}=window;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}const{top:t,left:n,right:o,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Pr(e){return e.reduce((t,n)=>At(t,In(n)),Ge)}function Fi(e){return e.reduce((t,n)=>t+Ir(n),0)}function Ki(e){return e.reduce((t,n)=>t+Or(n),0)}function Lr(e,t){if(t===void 0&&(t=Mt),!e)return;const{top:n,left:o,bottom:i,right:a}=t(e);_r(e)&&(i<=0||a<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const ki=[["x",["left","right"],Fi],["y",["top","bottom"],Ki]];class kn{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=Kn(n),i=Pr(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,l,c]of ki)for(const f of l)Object.defineProperty(this,f,{get:()=>{const d=c(o),p=i[a]-d;return this.rect[f]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Lt{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var i;(i=this.target)==null||i.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function Hi(e){const{EventTarget:t}=we(e);return e instanceof t?e:Ot(e)}function An(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var Be;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Be||(Be={}));function cr(e){e.preventDefault()}function Ui(e){e.stopPropagation()}var L;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(L||(L={}));const $r={start:[L.Space,L.Enter],cancel:[L.Esc],end:[L.Space,L.Enter]},Xi=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case L.Right:return{...n,x:n.x+25};case L.Left:return{...n,x:n.x-25};case L.Down:return{...n,y:n.y+25};case L.Up:return{...n,y:n.y-25}}};class Hn{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Lt(Ot(n)),this.windowListeners=new Lt(we(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Be.Resize,this.handleCancel),this.windowListeners.add(Be.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Be.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&Lr(o),n(Ge)}handleKeyDown(t){if(vn(t)){const{active:n,context:o,options:i}=this.props,{keyboardCodes:a=$r,coordinateGetter:l=Xi,scrollBehavior:c="smooth"}=i,{code:f}=t;if(a.end.includes(f)){this.handleEnd(t);return}if(a.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:d}=o.current,p=d?{x:d.left,y:d.top}:Ge;this.referenceCoordinates||(this.referenceCoordinates=p);const h=l(t,{active:n,context:o.current,currentCoordinates:p});if(h){const w=cn(h,p),y={x:0,y:0},{scrollableAncestors:A}=o.current;for(const b of A){const C=t.code,{isTop:R,isRight:T,isLeft:D,isBottom:E,maxScroll:M,minScroll:_}=Nr(b),O=zi(b),P={x:Math.min(C===L.Right?O.right-O.width/2:O.right,Math.max(C===L.Right?O.left:O.left+O.width/2,h.x)),y:Math.min(C===L.Down?O.bottom-O.height/2:O.bottom,Math.max(C===L.Down?O.top:O.top+O.height/2,h.y))},K=C===L.Right&&!T||C===L.Left&&!D,k=C===L.Down&&!E||C===L.Up&&!R;if(K&&P.x!==h.x){const j=b.scrollLeft+w.x,ee=C===L.Right&&j<=M.x||C===L.Left&&j>=_.x;if(ee&&!w.y){b.scrollTo({left:j,behavior:c});return}ee?y.x=b.scrollLeft-j:y.x=C===L.Right?b.scrollLeft-M.x:b.scrollLeft-_.x,y.x&&b.scrollBy({left:-y.x,behavior:c});break}else if(k&&P.y!==h.y){const j=b.scrollTop+w.y,ee=C===L.Down&&j<=M.y||C===L.Up&&j>=_.y;if(ee&&!w.x){b.scrollTo({top:j,behavior:c});return}ee?y.y=b.scrollTop-j:y.y=C===L.Down?b.scrollTop-M.y:b.scrollTop-_.y,y.y&&b.scrollBy({top:-y.y,behavior:c});break}}this.handleMove(t,At(cn(h,this.referenceCoordinates),y))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Hn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=$r,onActivation:i}=t,{active:a}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const c=a.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function ur(e){return!!(e&&"distance"in e)}function dr(e){return!!(e&&"delay"in e)}class Un{constructor(t,n,o){var i;o===void 0&&(o=Hi(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:l}=a;this.props=t,this.events=n,this.document=Ot(l),this.documentListeners=new Lt(this.document),this.listeners=new Lt(o),this.windowListeners=new Lt(we(l)),this.initialCoordinates=(i=un(a))!=null?i:Ge,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Be.Resize,this.handleCancel),this.windowListeners.add(Be.DragStart,cr),this.windowListeners.add(Be.VisibilityChange,this.handleCancel),this.windowListeners.add(Be.ContextMenu,cr),this.documentListeners.add(Be.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(dr(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(ur(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Be.Click,Ui,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Be.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:i,props:a}=this,{onMove:l,options:{activationConstraint:c}}=a;if(!i)return;const f=(n=un(t))!=null?n:Ge,d=cn(i,f);if(!o&&c){if(ur(c)){if(c.tolerance!=null&&An(d,c.tolerance))return this.handleCancel();if(An(d,c.distance))return this.handleStart()}return dr(c)&&An(d,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),l(f)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===L.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Gi={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Br extends Un{constructor(t){const{event:n}=t,o=Ot(n.target);super(t,Gi,o)}}Br.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o==null||o({event:n}),!0)}}];const Yi={move:{name:"mousemove"},end:{name:"mouseup"}};var On;(function(e){e[e.RightClick=2]="RightClick"})(On||(On={}));class jr extends Un{constructor(t){super(t,Yi,Ot(t.event.target))}}jr.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===On.RightClick?!1:(o==null||o({event:n}),!0)}}];const Tn={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class zr extends Un{constructor(t){super(t,Tn)}static setup(){return window.addEventListener(Tn.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Tn.move.name,t)};function t(){}}}zr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:i}=n;return i.length>1?!1:(o==null||o({event:n}),!0)}}];var $t;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})($t||($t={}));var fn;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(fn||(fn={}));function Wi(e){let{acceleration:t,activator:n=$t.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:l=5,order:c=fn.TreeOrder,pointerCoordinates:f,scrollableAncestors:d,scrollableAncestorRects:p,delta:h,threshold:w}=e;const y=Ji({delta:h,disabled:!a}),[A,b]=ci(),C=u.useRef({x:0,y:0}),R=u.useRef({x:0,y:0}),T=u.useMemo(()=>{switch(n){case $t.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case $t.DraggableRect:return i}},[n,i,f]),D=u.useRef(null),E=u.useCallback(()=>{const _=D.current;if(!_)return;const O=C.current.x*R.current.x,P=C.current.y*R.current.y;_.scrollBy(O,P)},[]),M=u.useMemo(()=>c===fn.TreeOrder?[...d].reverse():d,[c,d]);u.useEffect(()=>{if(!a||!d.length||!T){b();return}for(const _ of M){if((o==null?void 0:o(_))===!1)continue;const O=d.indexOf(_),P=p[O];if(!P)continue;const{direction:K,speed:k}=ji(_,P,T,t,w);for(const j of["x","y"])y[j][K[j]]||(k[j]=0,K[j]=0);if(k.x>0||k.y>0){b(),D.current=_,A(E,l),C.current=k,R.current=K;return}}C.current={x:0,y:0},R.current={x:0,y:0},b()},[t,E,o,b,a,l,JSON.stringify(T),JSON.stringify(y),A,d,M,p,JSON.stringify(w)])}const qi={x:{[ue.Backward]:!1,[ue.Forward]:!1},y:{[ue.Backward]:!1,[ue.Forward]:!1}};function Ji(e){let{delta:t,disabled:n}=e;const o=ln(t);return Kt(i=>{if(n||!o||!i)return qi;const a={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[ue.Backward]:i.x[ue.Backward]||a.x===-1,[ue.Forward]:i.x[ue.Forward]||a.x===1},y:{[ue.Backward]:i.y[ue.Backward]||a.y===-1,[ue.Forward]:i.y[ue.Forward]||a.y===1}}},[n,t,o])}function Vi(e,t){const n=t!=null?e.get(t):void 0,o=n?n.node.current:null;return Kt(i=>{var a;return t==null?null:(a=o??i)!=null?a:null},[o,t])}function Qi(e,t){return u.useMemo(()=>e.reduce((n,o)=>{const{sensor:i}=o,a=i.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,o)}));return[...n,...a]},[]),[e,t])}var Tt;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Tt||(Tt={}));var Mn;(function(e){e.Optimized="optimized"})(Mn||(Mn={}));const fr=new Map;function Zi(e,t){let{dragging:n,dependencies:o,config:i}=t;const[a,l]=u.useState(null),{frequency:c,measure:f,strategy:d}=i,p=u.useRef(e),h=C(),w=zt(h),y=u.useCallback(function(R){R===void 0&&(R=[]),!w.current&&l(T=>T===null?R:T.concat(R.filter(D=>!T.includes(D))))},[w]),A=u.useRef(null),b=Kt(R=>{if(h&&!n)return fr;if(!R||R===fr||p.current!==e||a!=null){const T=new Map;for(let D of e){if(!D)continue;if(a&&a.length>0&&!a.includes(D.id)&&D.rect.current){T.set(D.id,D.rect.current);continue}const E=D.node.current,M=E?new kn(f(E),E):null;D.rect.current=M,M&&T.set(D.id,M)}return T}return R},[e,a,n,h,f]);return u.useEffect(()=>{p.current=e},[e]),u.useEffect(()=>{h||y()},[n,h]),u.useEffect(()=>{a&&a.length>0&&l(null)},[JSON.stringify(a)]),u.useEffect(()=>{h||typeof c!="number"||A.current!==null||(A.current=setTimeout(()=>{y(),A.current=null},c))},[c,h,y,...o]),{droppableRects:b,measureDroppableContainers:y,measuringScheduled:a!=null};function C(){switch(d){case Tt.Always:return!1;case Tt.BeforeDragging:return n;default:return!n}}}function Xn(e,t){return Kt(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function es(e,t){return Xn(e,t)}function ts(e){let{callback:t,disabled:n}=e;const o=pn(t),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(o)},[o,n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function bn(e){let{callback:t,disabled:n}=e;const o=pn(t),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(o)},[n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function ns(e){return new kn(Mt(e),e)}function gr(e,t,n){t===void 0&&(t=ns);const[o,i]=u.useState(null);function a(){i(f=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=f??n)!=null?d:null}const p=t(e);return JSON.stringify(f)===JSON.stringify(p)?f:p})}const l=ts({callback(f){if(e)for(const d of f){const{type:p,target:h}=d;if(p==="childList"&&h instanceof HTMLElement&&h.contains(e)){a();break}}}}),c=bn({callback:a});return Xe(()=>{a(),e?(c==null||c.observe(e),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),l==null||l.disconnect())},[e]),o}function rs(e){const t=Xn(e);return Ar(e,t)}const hr=[];function os(e){const t=u.useRef(e),n=Kt(o=>e?o&&o!==hr&&e&&t.current&&e.parentNode===t.current.parentNode?o:Kn(e):hr,[e]);return u.useEffect(()=>{t.current=e},[e]),n}function is(e){const[t,n]=u.useState(null),o=u.useRef(e),i=u.useCallback(a=>{const l=En(a.target);l&&n(c=>c?(c.set(l,In(l)),new Map(c)):null)},[]);return u.useEffect(()=>{const a=o.current;if(e!==a){l(a);const c=e.map(f=>{const d=En(f);return d?(d.addEventListener("scroll",i,{passive:!0}),[d,In(d)]):null}).filter(f=>f!=null);n(c.length?new Map(c):null),o.current=e}return()=>{l(e),l(a)};function l(c){c.forEach(f=>{const d=En(f);d==null||d.removeEventListener("scroll",i)})}},[i,e]),u.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,l)=>At(a,l),Ge):Pr(e):Ge,[e,t])}function pr(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const o=e!==Ge;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?cn(e,n.current):Ge}function ss(e){u.useEffect(()=>{if(!hn)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function as(e,t){return u.useMemo(()=>e.reduce((n,o)=>{let{eventName:i,handler:a}=o;return n[i]=l=>{a(l,t)},n},{}),[e,t])}function Fr(e){return u.useMemo(()=>e?Pi(e):null,[e])}const vr=[];function ls(e,t){t===void 0&&(t=Mt);const[n]=e,o=Fr(n?we(n):null),[i,a]=u.useState(vr);function l(){a(()=>e.length?e.map(f=>Mr(f)?o:new kn(t(f),f)):vr)}const c=bn({callback:l});return Xe(()=>{c==null||c.disconnect(),l(),e.forEach(f=>c==null?void 0:c.observe(f))},[e]),i}function Kr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ft(t)?t:e}function cs(e){let{measure:t}=e;const[n,o]=u.useState(null),i=u.useCallback(d=>{for(const{target:p}of d)if(Ft(p)){o(h=>{const w=t(p);return h?{...h,width:w.width,height:w.height}:w});break}},[t]),a=bn({callback:i}),l=u.useCallback(d=>{const p=Kr(d);a==null||a.disconnect(),p&&(a==null||a.observe(p)),o(p?t(p):null)},[t,a]),[c,f]=an(l);return u.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const us=[{sensor:Br,options:{}},{sensor:Hn,options:{}}],ds={current:{}},sn={draggable:{measure:lr},droppable:{measure:lr,strategy:Tt.WhileDragging,frequency:Mn.Optimized},dragOverlay:{measure:Mt}};class Bt extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const fs={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Bt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:dn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:sn,measureDroppableContainers:dn,windowRect:null,measuringScheduled:!1},kr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:dn,draggableNodes:new Map,over:null,measureDroppableContainers:dn},Ht=u.createContext(kr),Hr=u.createContext(fs);function gs(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Bt}}}function hs(e,t){switch(t.type){case ie.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ie.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ie.DragEnd:case ie.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ie.RegisterDroppable:{const{element:n}=t,{id:o}=n,i=new Bt(e.droppable.containers);return i.set(o,n),{...e,droppable:{...e.droppable,containers:i}}}case ie.SetDroppableDisabled:{const{id:n,key:o,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||o!==a.key)return e;const l=new Bt(e.droppable.containers);return l.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:l}}}case ie.UnregisterDroppable:{const{id:n,key:o}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const a=new Bt(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function ps(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:i}=u.useContext(Ht),a=ln(o),l=ln(n==null?void 0:n.id);return u.useEffect(()=>{if(!t&&!o&&a&&l!=null){if(!vn(a)||document.activeElement===a.target)return;const c=i.get(l);if(!c)return;const{activatorNode:f,node:d}=c;if(!f.current&&!d.current)return;requestAnimationFrame(()=>{for(const p of[f.current,d.current]){if(!p)continue;const h=fi(p);if(h){h.focus();break}}})}},[o,t,i,l,a]),null}function Ur(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...o}),n):n}function vs(e){return u.useMemo(()=>({draggable:{...sn.draggable,...e==null?void 0:e.draggable},droppable:{...sn.droppable,...e==null?void 0:e.droppable},dragOverlay:{...sn.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function bs(e){let{activeNode:t,measure:n,initialRect:o,config:i=!0}=e;const a=u.useRef(!1),{x:l,y:c}=typeof i=="boolean"?{x:i,y:i}:i;Xe(()=>{if(!l&&!c||!t){a.current=!1;return}if(a.current||!o)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const p=n(d),h=Ar(p,o);if(l||(h.x=0),c||(h.y=0),a.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const w=_r(d);w&&w.scrollBy({top:h.y,left:h.x})}},[t,l,c,o,n])}const yn=u.createContext({...Ge,scaleX:1,scaleY:1});var ft;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ft||(ft={}));const ys=u.memo(function(t){var n,o,i,a;let{id:l,accessibility:c,autoScroll:f=!0,children:d,sensors:p=us,collisionDetection:h=Er,measuring:w,modifiers:y,...A}=t;const b=u.useReducer(hs,void 0,gs),[C,R]=b,[T,D]=yi(),[E,M]=u.useState(ft.Uninitialized),_=E===ft.Initialized,{draggable:{active:O,nodes:P,translate:K},droppable:{containers:k}}=C,j=O!=null?P.get(O):null,ee=u.useRef({initial:null,translated:null}),J=u.useMemo(()=>{var G;return O!=null?{id:O,data:(G=j==null?void 0:j.data)!=null?G:ds,rect:ee}:null},[O,j]),Ce=u.useRef(null),[je,F]=u.useState(null),[W,Oe]=u.useState(null),Te=zt(A,Object.values(A)),se=kt("DndDescribedBy",l),Me=u.useMemo(()=>k.getEnabled(),[k]),q=vs(w),{droppableRects:ve,measureDroppableContainers:ze,measuringScheduled:Je}=Zi(Me,{dragging:_,dependencies:[K.x,K.y],config:q.droppable}),V=Vi(P,O),Ve=u.useMemo(()=>W?un(W):null,[W]),Ne=Ke(),ae=es(V,q.draggable.measure);bs({activeNode:O!=null?P.get(O):null,config:Ne.layoutShiftCompensation,initialRect:ae,measure:q.draggable.measure});const B=gr(V,q.draggable.measure,ae),Qe=gr(V?V.parentElement:null),Se=u.useRef({activatorEvent:null,active:null,activeNode:V,collisionRect:null,collisions:null,droppableRects:ve,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ye=k.getNodeFor((n=Se.current.over)==null?void 0:n.id),$=cs({measure:q.dragOverlay.measure}),We=(o=$.nodeRef.current)!=null?o:V,Fe=_?(i=$.rect)!=null?i:B:null,ht=!!($.nodeRef.current&&$.rect),De=rs(ht?null:B),qe=Fr(We?we(We):null),v=os(_?Ye??V:null),x=ls(v),N=Ur(y,{transform:{x:K.x-De.x,y:K.y-De.y,scaleX:1,scaleY:1},activatorEvent:W,active:J,activeNodeRect:B,containerNodeRect:Qe,draggingNodeRect:Fe,over:Se.current.over,overlayNodeRect:$.rect,scrollableAncestors:v,scrollableAncestorRects:x,windowRect:qe}),X=Ve?At(Ve,K):null,H=is(v),le=pr(H),Q=pr(H,[B]),te=At(N,le),de=Fe?Oi(Fe,N):null,ge=J&&de?h({active:J,collisionRect:de,droppableRects:ve,droppableContainers:Me,pointerCoordinates:X}):null,Ze=Fn(ge,"id"),[Z,_e]=u.useState(null),pt=ht?N:At(N,Q),ne=_i(pt,(a=Z==null?void 0:Z.rect)!=null?a:null,B),re=u.useRef(null),Ie=u.useCallback((G,be)=>{let{sensor:he,options:ke}=be;if(Ce.current==null)return;const Re=P.get(Ce.current);if(!Re)return;const ye=G.nativeEvent,Pe=new he({active:Ce.current,activeNode:Re,event:ye,options:ke,context:Se,onStart(me){const He=Ce.current;if(He==null)return;const tt=P.get(He);if(!tt)return;const{onDragStart:at}=Te.current,lt={activatorEvent:ye,active:{id:He,data:tt.data,rect:ee}};Et.reactDomExports.unstable_batchedUpdates(()=>{at==null||at(lt),M(ft.Initializing),R({type:ie.DragStart,initialCoordinates:me,active:He}),T({type:"onDragStart",event:lt}),F(re.current),Oe(ye)})},onMove(me){R({type:ie.DragMove,coordinates:me})},onEnd:st(ie.DragEnd),onCancel:st(ie.DragCancel)});re.current=Pe;function st(me){return async function(){const{active:tt,collisions:at,over:lt,scrollAdjustedTranslate:ct}=Se.current;let vt=null;if(tt&&ct){const{cancelDrop:bt}=Te.current;vt={activatorEvent:ye,active:tt,collisions:at,delta:ct,over:lt},me===ie.DragEnd&&typeof bt=="function"&&await Promise.resolve(bt(vt))&&(me=ie.DragCancel)}Ce.current=null,Et.reactDomExports.unstable_batchedUpdates(()=>{R({type:me}),M(ft.Uninitialized),_e(null),F(null),Oe(null),re.current=null;const bt=me===ie.DragEnd?"onDragEnd":"onDragCancel";if(vt){const Nt=Te.current[bt];Nt==null||Nt(vt),T({type:bt,event:vt})}})}}},[P]),et=u.useCallback((G,be)=>(he,ke)=>{const Re=he.nativeEvent,ye=P.get(ke);if(Ce.current!==null||!ye||Re.dndKit||Re.defaultPrevented)return;const Pe={active:ye};G(he,be.options,Pe)===!0&&(Re.dndKit={capturedBy:be.sensor},Ce.current=ke,Ie(he,be))},[P,Ie]),St=Qi(p,et);ss(p),Xe(()=>{B&&E===ft.Initializing&&M(ft.Initialized)},[B,E]),u.useEffect(()=>{const{onDragMove:G}=Te.current,{active:be,activatorEvent:he,collisions:ke,over:Re}=Se.current;if(!be||!he)return;const ye={active:be,activatorEvent:he,collisions:ke,delta:{x:te.x,y:te.y},over:Re};Et.reactDomExports.unstable_batchedUpdates(()=>{G==null||G(ye),T({type:"onDragMove",event:ye})})},[te.x,te.y]),u.useEffect(()=>{const{active:G,activatorEvent:be,collisions:he,droppableContainers:ke,scrollAdjustedTranslate:Re}=Se.current;if(!G||Ce.current==null||!be||!Re)return;const{onDragOver:ye}=Te.current,Pe=ke.get(Ze),st=Pe&&Pe.rect.current?{id:Pe.id,rect:Pe.rect.current,data:Pe.data,disabled:Pe.disabled}:null,me={active:G,activatorEvent:be,collisions:he,delta:{x:Re.x,y:Re.y},over:st};Et.reactDomExports.unstable_batchedUpdates(()=>{_e(st),ye==null||ye(me),T({type:"onDragOver",event:me})})},[Ze]),Xe(()=>{Se.current={activatorEvent:W,active:J,activeNode:V,collisionRect:de,collisions:ge,droppableRects:ve,draggableNodes:P,draggingNode:We,draggingNodeRect:Fe,droppableContainers:k,over:Z,scrollableAncestors:v,scrollAdjustedTranslate:te},ee.current={initial:Fe,translated:de}},[J,V,ge,de,P,We,Fe,ve,k,Z,v,te]),Wi({...Ne,delta:K,draggingRect:de,pointerCoordinates:X,scrollableAncestors:v,scrollableAncestorRects:x});const Ut=u.useMemo(()=>({active:J,activeNode:V,activeNodeRect:B,activatorEvent:W,collisions:ge,containerNodeRect:Qe,dragOverlay:$,draggableNodes:P,droppableContainers:k,droppableRects:ve,over:Z,measureDroppableContainers:ze,scrollableAncestors:v,scrollableAncestorRects:x,measuringConfiguration:q,measuringScheduled:Je,windowRect:qe}),[J,V,B,W,ge,Qe,$,P,k,ve,Z,ze,v,x,q,Je,qe]),Xt=u.useMemo(()=>({activatorEvent:W,activators:St,active:J,activeNodeRect:B,ariaDescribedById:{draggable:se},dispatch:R,draggableNodes:P,over:Z,measureDroppableContainers:ze}),[W,St,J,B,R,se,P,Z,ze]);return u.createElement(Rr.Provider,{value:D},u.createElement(Ht.Provider,{value:Xt},u.createElement(Hr.Provider,{value:Ut},u.createElement(yn.Provider,{value:ne},d)),u.createElement(ps,{disabled:(c==null?void 0:c.restoreFocus)===!1})),u.createElement(wi,{...c,hiddenTextDescribedById:se}));function Ke(){const G=(je==null?void 0:je.autoScrollEnabled)===!1,be=typeof f=="object"?f.enabled===!1:f===!1,he=_&&!G&&!be;return typeof f=="object"?{...f,enabled:he}:{enabled:he}}}),ms=u.createContext(null),br="button",xs="Draggable";function ws(e){let{id:t,data:n,disabled:o=!1,attributes:i}=e;const a=kt(xs),{activators:l,activatorEvent:c,active:f,activeNodeRect:d,ariaDescribedById:p,draggableNodes:h,over:w}=u.useContext(Ht),{role:y=br,roleDescription:A="draggable",tabIndex:b=0}=i??{},C=(f==null?void 0:f.id)===t,R=u.useContext(C?yn:ms),[T,D]=an(),[E,M]=an(),_=as(l,t),O=zt(n);Xe(()=>(h.set(t,{id:t,key:a,node:T,activatorNode:E,data:O}),()=>{const K=h.get(t);K&&K.key===a&&h.delete(t)}),[h,t]);const P=u.useMemo(()=>({role:y,tabIndex:b,"aria-disabled":o,"aria-pressed":C&&y===br?!0:void 0,"aria-roledescription":A,"aria-describedby":p.draggable}),[o,y,b,C,A,p.draggable]);return{active:f,activatorEvent:c,activeNodeRect:d,attributes:P,isDragging:C,listeners:o?void 0:_,node:T,over:w,setNodeRef:D,setActivatorNodeRef:M,transform:R}}function Xr(){return u.useContext(Hr)}const Cs="Droppable",Ss={timeout:25};function Ds(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:i}=e;const a=kt(Cs),{active:l,dispatch:c,over:f,measureDroppableContainers:d}=u.useContext(Ht),p=u.useRef({disabled:n}),h=u.useRef(!1),w=u.useRef(null),y=u.useRef(null),{disabled:A,updateMeasurementsFor:b,timeout:C}={...Ss,...i},R=zt(b??o),T=u.useCallback(()=>{if(!h.current){h.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{d(Array.isArray(R.current)?R.current:[R.current]),y.current=null},C)},[C]),D=bn({callback:T,disabled:A||!l}),E=u.useCallback((P,K)=>{D&&(K&&(D.unobserve(K),h.current=!1),P&&D.observe(P))},[D]),[M,_]=an(E),O=zt(t);return u.useEffect(()=>{!D||!M.current||(D.disconnect(),h.current=!1,D.observe(M.current))},[M,D]),u.useEffect(()=>(c({type:ie.RegisterDroppable,element:{id:o,key:a,disabled:n,node:M,rect:w,data:O}}),()=>c({type:ie.UnregisterDroppable,key:a,id:o})),[o]),u.useEffect(()=>{n!==p.current.disabled&&(c({type:ie.SetDroppableDisabled,id:o,key:a,disabled:n}),p.current.disabled=n)},[o,a,n,c]),{active:l,rect:w,isOver:(f==null?void 0:f.id)===o,node:M,over:f,setNodeRef:_}}function Rs(e){let{animation:t,children:n}=e;const[o,i]=u.useState(null),[a,l]=u.useState(null),c=ln(n);return!n&&!o&&c&&i(c),Xe(()=>{if(!a)return;const f=o==null?void 0:o.key,d=o==null?void 0:o.props.id;if(f==null||d==null){i(null);return}Promise.resolve(t(d,a)).then(()=>{i(null)})},[t,o,a]),u.createElement(u.Fragment,null,n,o?u.cloneElement(o,{ref:l}):null)}const Es={x:0,y:0,scaleX:1,scaleY:1};function As(e){let{children:t}=e;return u.createElement(Ht.Provider,{value:kr},u.createElement(yn.Provider,{value:Es},t))}const Ts={position:"fixed",touchAction:"none"},_s=e=>vn(e)?"transform 250ms ease":void 0,Is=u.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:i,children:a,className:l,rect:c,style:f,transform:d,transition:p=_s}=e;if(!c)return null;const h=i?d:{...d,scaleX:1,scaleY:1},w={...Ts,width:c.width,height:c.height,top:c.top,left:c.left,transform:gt.Transform.toString(h),transformOrigin:i&&o?Si(o,c):void 0,transition:typeof p=="function"?p(o):p,...f};return u.createElement(n,{className:l,style:w,ref:t},a)}),Gr=e=>t=>{let{active:n,dragOverlay:o}=t;const i={},{styles:a,className:l}=e;if(a!=null&&a.active)for(const[c,f]of Object.entries(a.active))f!==void 0&&(i[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,f));if(a!=null&&a.dragOverlay)for(const[c,f]of Object.entries(a.dragOverlay))f!==void 0&&o.node.style.setProperty(c,f);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&o.node.classList.add(l.dragOverlay),function(){for(const[f,d]of Object.entries(i))n.node.style.setProperty(f,d);l!=null&&l.active&&n.node.classList.remove(l.active)}},Os=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:gt.Transform.toString(t)},{transform:gt.Transform.toString(n)}]},Ms={duration:250,easing:"ease",keyframes:Os,sideEffects:Gr({styles:{active:{opacity:"0"}}})};function Ns(e){let{config:t,draggableNodes:n,droppableContainers:o,measuringConfiguration:i}=e;return pn((a,l)=>{if(t===null)return;const c=n.get(a);if(!c)return;const f=c.node.current;if(!f)return;const d=Kr(l);if(!d)return;const{transform:p}=we(l).getComputedStyle(l),h=Tr(p);if(!h)return;const w=typeof t=="function"?t:Ps(t);return Lr(f,i.draggable.measure),w({active:{id:a,data:c.data,node:f,rect:i.draggable.measure(f)},draggableNodes:n,dragOverlay:{node:l,rect:i.dragOverlay.measure(d)},droppableContainers:o,measuringConfiguration:i,transform:h})})}function Ps(e){const{duration:t,easing:n,sideEffects:o,keyframes:i}={...Ms,...e};return a=>{let{active:l,dragOverlay:c,transform:f,...d}=a;if(!t)return;const p={x:c.rect.left-l.rect.left,y:c.rect.top-l.rect.top},h={scaleX:f.scaleX!==1?l.rect.width*f.scaleX/c.rect.width:1,scaleY:f.scaleY!==1?l.rect.height*f.scaleY/c.rect.height:1},w={x:f.x-p.x,y:f.y-p.y,...h},y=i({...d,active:l,dragOverlay:c,transform:{initial:f,final:w}}),[A]=y,b=y[y.length-1];if(JSON.stringify(A)===JSON.stringify(b))return;const C=o==null?void 0:o({active:l,dragOverlay:c,...d}),R=c.node.animate(y,{duration:t,easing:n,fill:"forwards"});return new Promise(T=>{R.onfinish=()=>{C==null||C(),T()}})}}let yr=0;function Ls(e){return u.useMemo(()=>{if(e!=null)return yr++,yr},[e])}const $s=u.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:i,transition:a,modifiers:l,wrapperElement:c="div",className:f,zIndex:d=999}=e;const{activatorEvent:p,active:h,activeNodeRect:w,containerNodeRect:y,draggableNodes:A,droppableContainers:b,dragOverlay:C,over:R,measuringConfiguration:T,scrollableAncestors:D,scrollableAncestorRects:E,windowRect:M}=Xr(),_=u.useContext(yn),O=Ls(h==null?void 0:h.id),P=Ur(l,{activatorEvent:p,active:h,activeNodeRect:w,containerNodeRect:y,draggingNodeRect:C.rect,over:R,overlayNodeRect:C.rect,scrollableAncestors:D,scrollableAncestorRects:E,transform:_,windowRect:M}),K=Xn(w),k=Ns({config:o,draggableNodes:A,droppableContainers:b,measuringConfiguration:T}),j=K?C.setRef:void 0;return u.createElement(As,null,u.createElement(Rs,{animation:k},h&&O?u.createElement(Is,{key:O,id:h.id,ref:j,as:c,activatorEvent:p,adjustScale:t,className:f,transition:a,rect:K,style:{zIndex:d,...i},transform:P},n):null))});function jt(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function Bs(e,t){return e.reduce((n,o,i)=>{const a=t.get(o);return a&&(n[i]=a),n},Array(e.length))}function nn(e){return e!==null&&e>=0}function js(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function zs(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const rn={scaleX:1,scaleY:1},Fs=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:i,overIndex:a,index:l}=e;const c=(t=n[i])!=null?t:o;if(!c)return null;const f=Ks(n,l,i);if(l===i){const d=n[a];return d?{x:i<a?d.left+d.width-(c.left+c.width):d.left-c.left,y:0,...rn}:null}return l>i&&l<=a?{x:-c.width-f,y:0,...rn}:l<i&&l>=a?{x:c.width+f,y:0,...rn}:{x:0,y:0,...rn}};function Ks(e,t,n){const o=e[t],i=e[t-1],a=e[t+1];return!o||!i&&!a?0:n<t?i?o.left-(i.left+i.width):a.left-(o.left+o.width):a?a.left-(o.left+o.width):o.left-(i.left+i.width)}const Yr=e=>{let{rects:t,activeIndex:n,overIndex:o,index:i}=e;const a=jt(t,o,n),l=t[i],c=a[i];return!c||!l?null:{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}},on={scaleX:1,scaleY:1},mr=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:i,rects:a,overIndex:l}=e;const c=(t=a[n])!=null?t:o;if(!c)return null;if(i===n){const d=a[l];return d?{x:0,y:n<l?d.top+d.height-(c.top+c.height):d.top-c.top,...on}:null}const f=ks(a,i,n);return i>n&&i<=l?{x:0,y:-c.height-f,...on}:i<n&&i>=l?{x:0,y:c.height+f,...on}:{x:0,y:0,...on}};function ks(e,t,n){const o=e[t],i=e[t-1],a=e[t+1];return o?n<t?i?o.top-(i.top+i.height):a?a.top-(o.top+o.height):0:a?a.top-(o.top+o.height):i?o.top-(i.top+i.height):0:0}const Wr="Sortable",qr=u.createContext({activeIndex:-1,containerId:Wr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Yr,disabled:{draggable:!1,droppable:!1}});function xr(e){let{children:t,id:n,items:o,strategy:i=Yr,disabled:a=!1}=e;const{active:l,dragOverlay:c,droppableRects:f,over:d,measureDroppableContainers:p}=Xr(),h=kt(Wr,n),w=c.rect!==null,y=u.useMemo(()=>o.map(_=>typeof _=="object"&&"id"in _?_.id:_),[o]),A=l!=null,b=l?y.indexOf(l.id):-1,C=d?y.indexOf(d.id):-1,R=u.useRef(y),T=!js(y,R.current),D=C!==-1&&b===-1||T,E=zs(a);Xe(()=>{T&&A&&p(y)},[T,y,A,p]),u.useEffect(()=>{R.current=y},[y]);const M=u.useMemo(()=>({activeIndex:b,containerId:h,disabled:E,disableTransforms:D,items:y,overIndex:C,useDragOverlay:w,sortedRects:Bs(y,f),strategy:i}),[b,h,E.draggable,E.droppable,D,y,C,f,w,i]);return u.createElement(qr.Provider,{value:M},t)}const Hs=e=>{let{id:t,items:n,activeIndex:o,overIndex:i}=e;return jt(n,o,i).indexOf(t)},Jr=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:i,items:a,newIndex:l,previousItems:c,previousContainerId:f,transition:d}=e;return!d||!o||c!==a&&i===l?!1:n?!0:l!==i&&t===f},Us={duration:200,easing:"ease"},Vr="transform",Xs=gt.Transition.toString({property:Vr,duration:0,easing:"linear"}),Gs={roleDescription:"sortable"};function Ys(e){let{disabled:t,index:n,node:o,rect:i}=e;const[a,l]=u.useState(null),c=u.useRef(n);return Xe(()=>{if(!t&&n!==c.current&&o.current){const f=i.current;if(f){const d=Mt(o.current,{ignoreTransform:!0}),p={x:f.left-d.left,y:f.top-d.top,scaleX:f.width/d.width,scaleY:f.height/d.height};(p.x||p.y)&&l(p)}}n!==c.current&&(c.current=n)},[t,n,o,i]),u.useEffect(()=>{a&&l(null)},[a]),a}function Qr(e){let{animateLayoutChanges:t=Jr,attributes:n,disabled:o,data:i,getNewIndex:a=Hs,id:l,strategy:c,resizeObserverConfig:f,transition:d=Us}=e;const{items:p,containerId:h,activeIndex:w,disabled:y,disableTransforms:A,sortedRects:b,overIndex:C,useDragOverlay:R,strategy:T}=u.useContext(qr),D=Ws(o,y),E=p.indexOf(l),M=u.useMemo(()=>({sortable:{containerId:h,index:E,items:p},...i}),[h,i,E,p]),_=u.useMemo(()=>p.slice(p.indexOf(l)),[p,l]),{rect:O,node:P,isOver:K,setNodeRef:k}=Ds({id:l,data:M,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...f}}),{active:j,activatorEvent:ee,activeNodeRect:J,attributes:Ce,setNodeRef:je,listeners:F,isDragging:W,over:Oe,setActivatorNodeRef:Te,transform:se}=ws({id:l,data:M,attributes:{...Gs,...n},disabled:D.draggable}),Me=li(k,je),q=!!j,ve=q&&!A&&nn(w)&&nn(C),ze=!R&&W,Je=ze&&ve?se:null,Ve=ve?Je??(c??T)({rects:b,activeNodeRect:J,activeIndex:w,overIndex:C,index:E}):null,Ne=nn(w)&&nn(C)?a({id:l,items:p,activeIndex:w,overIndex:C}):E,ae=j==null?void 0:j.id,B=u.useRef({activeId:ae,items:p,newIndex:Ne,containerId:h}),Qe=p!==B.current.items,Se=t({active:j,containerId:h,isDragging:W,isSorting:q,id:l,index:E,items:p,newIndex:B.current.newIndex,previousItems:B.current.items,previousContainerId:B.current.containerId,transition:d,wasDragging:B.current.activeId!=null}),Ye=Ys({disabled:!Se,index:E,node:P,rect:O});return u.useEffect(()=>{q&&B.current.newIndex!==Ne&&(B.current.newIndex=Ne),h!==B.current.containerId&&(B.current.containerId=h),p!==B.current.items&&(B.current.items=p)},[q,Ne,h,p]),u.useEffect(()=>{if(ae===B.current.activeId)return;if(ae&&!B.current.activeId){B.current.activeId=ae;return}const We=setTimeout(()=>{B.current.activeId=ae},50);return()=>clearTimeout(We)},[ae]),{active:j,activeIndex:w,attributes:Ce,data:M,rect:O,index:E,newIndex:Ne,items:p,isOver:K,isSorting:q,isDragging:W,listeners:F,node:P,overIndex:C,over:Oe,setNodeRef:Me,setActivatorNodeRef:Te,setDroppableNodeRef:k,setDraggableNodeRef:je,transform:Ye??Ve,transition:$()};function $(){if(Ye||Qe&&B.current.newIndex===E)return Xs;if(!(ze&&!vn(ee)||!d)&&(q||Se))return gt.Transition.toString({...d,property:Vr})}}function Ws(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}L.Down,L.Right,L.Up,L.Left;const qs=e=>e;function wr(e,t=qs){return[...new Array(e)].map((n,o)=>t(o))}const Js=[L.Down,L.Right,L.Up,L.Left],Vs=(e,{context:{active:t,droppableRects:n,droppableContainers:o,collisionRect:i}})=>{var a;if(Js.includes(e.code)){if(e.preventDefault(),!t||!i)return;const l=[];o.getEnabled().forEach(d=>{var w;if(!d||d!=null&&d.disabled)return;const p=n.get(d.id);if(!p)return;const h=d.data.current;if(h){const{type:y,children:A}=h;if(y==="container"&&(A==null?void 0:A.length)>0&&((w=t.data.current)==null?void 0:w.type)!=="container")return}switch(e.code){case L.Down:i.top<p.top&&l.push(d);break;case L.Up:i.top>p.top&&l.push(d);break;case L.Left:i.left>=p.left+p.width&&l.push(d);break;case L.Right:i.left+i.width<=p.left&&l.push(d);break}});const c=Ri({active:t,collisionRect:i,droppableRects:n,droppableContainers:l,pointerCoordinates:null}),f=Fn(c,"id");if(f!=null){const d=o.get(f),p=d==null?void 0:d.node.current,h=d==null?void 0:d.rect.current;if(p&&h)return d.id==="placeholder"?{x:h.left+(h.width-i.width)/2,y:h.top+(h.height-i.height)/2}:((a=d.data.current)==null?void 0:a.type)==="container"?{x:h.left+20,y:h.top+74}:{x:h.left,y:h.top}}}},Qs="_Wrapper_37o6x_33",Zs="_fadeIn_37o6x_41",ea="_dragOverlay_37o6x_44",ta="_Item_37o6x_53",na="_withHandle_37o6x_79",ra="_dragging_37o6x_83",oa="_disabled_37o6x_91",ia="_pop_37o6x_1",sa="_color_37o6x_110",aa="_Remove_37o6x_123",la="_Actions_37o6x_129",Ue={Wrapper:Qs,fadeIn:Zs,dragOverlay:ea,Item:ta,withHandle:na,dragging:ra,disabled:oa,pop:ia,color:sa,Remove:aa,Actions:la},ca=_t.newStyled.div`
6
6
  font-family: ${e=>{var t,n;return(n=(t=e.theme)==null?void 0:t.typography)==null?void 0:n.fontFamily}};
7
- background-color: ${e=>ue.getColorRgbaValue(e.theme,"KanbanCard",e.color?"primary":e.color,"enabled","background")};
8
- color: ${e=>ue.getColorRgbaValue(e.theme,"KanbanCard",e.color?"primary":e.color,"enabled","text")};
7
+ background-color: ${e=>ce.getColorRgbaValue(e.theme,"KanbanCard",e.color?"primary":e.color,"enabled","background")};
8
+ color: ${e=>ce.getColorRgbaValue(e.theme,"KanbanCard",e.color?"primary":e.color,"enabled","text")};
9
9
  &:hover .Actions > * {
10
10
  opacity: 1 !important;
11
11
  }
12
- `,Mn=u.memo(u.forwardRef(({cardProps:e,color:t,dragOverlay:n,dragging:o,disabled:i,fadeIn:a,handle:l,handleProps:c,height:f,index:d,listeners:p,onRemove:h,renderItem:w,sorting:y,transition:A,transform:b,value:C,wrapperStyle:R,className:T,style:D,children:E,...M},_)=>{const O=Pn.useTheme();return u.useEffect(()=>{if(n)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[n]),w?w({dragOverlay:!!n,dragging:!!o,sorting:!!y,index:d,fadeIn:!!a,listeners:p,ref:_,style:D,transform:b,transition:A,value:C}):Y.jsx("li",{className:rr.classNames(Xe.Wrapper,a&&Xe.fadeIn,y&&Xe.sorting,n&&Xe.dragOverlay),style:{...R,transition:[A,R==null?void 0:R.transition].filter(Boolean).join(", "),"--translate-x":b?`${Math.round(b.x)}px`:void 0,"--translate-y":b?`${Math.round(b.y)}px`:void 0,"--scale-x":b!=null&&b.scaleX?`${b.scaleX}`:void 0,"--scale-y":b!=null&&b.scaleY?`${b.scaleY}`:void 0,"--index":d,"--color":t},ref:_,children:Y.jsxs(la,{theme:O,color:t,className:rr.classNames(Xe.Item,o&&Xe.dragging,l&&Xe.withHandle,n&&Xe.dragOverlay,i&&Xe.disabled,t&&Xe.color)+" "+T,style:e==null?void 0:e.style,"data-cypress":"draggable-item",...l?void 0:p,...M,tabIndex:l?void 0:0,children:[E,Y.jsx("span",{className:Xe.Actions})]})})})),ca=At.newStyled.div`
12
+ `,Nn=u.memo(u.forwardRef(({cardProps:e,color:t,dragOverlay:n,dragging:o,disabled:i,fadeIn:a,handle:l,handleProps:c,height:f,index:d,listeners:p,onRemove:h,renderItem:w,sorting:y,transition:A,transform:b,value:C,wrapperStyle:R,className:T,style:D,children:E,...M},_)=>{const O=Ln.useTheme();return u.useEffect(()=>{if(n)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[n]),w?w({dragOverlay:!!n,dragging:!!o,sorting:!!y,index:d,fadeIn:!!a,listeners:p,ref:_,style:D,transform:b,transition:A,value:C}):Y.jsx("li",{className:or.classNames(Ue.Wrapper,a&&Ue.fadeIn,y&&Ue.sorting,n&&Ue.dragOverlay),style:{...R,transition:[A,R==null?void 0:R.transition].filter(Boolean).join(", "),"--translate-x":b?`${Math.round(b.x)}px`:void 0,"--translate-y":b?`${Math.round(b.y)}px`:void 0,"--scale-x":b!=null&&b.scaleX?`${b.scaleX}`:void 0,"--scale-y":b!=null&&b.scaleY?`${b.scaleY}`:void 0,"--index":d,"--color":t},ref:_,children:Y.jsxs(ca,{theme:O,color:t,className:or.classNames(Ue.Item,o&&Ue.dragging,l&&Ue.withHandle,n&&Ue.dragOverlay,i&&Ue.disabled,t&&Ue.color)+" "+T,style:e==null?void 0:e.style,"data-cypress":"draggable-item",...l?void 0:p,...M,tabIndex:l?void 0:0,children:[E,Y.jsx("span",{className:Ue.Actions})]})})})),ua=_t.newStyled.div`
13
13
  display: flex;
14
14
  flex: 1;
15
15
  flex-direction: column;
@@ -50,8 +50,8 @@
50
50
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0), 0 0px 0px 2px #4c9ffe;
51
51
  }
52
52
 
53
- background-color: ${e=>ue.getColorRgbaValue(e.theme,"Kanban",e.color,"enabled","background")};
54
- `,ua=At.newStyled.div`
53
+ background-color: ${e=>ce.getColorRgbaValue(e.theme,"Kanban",e.color,"enabled","background")};
54
+ `,da=_t.newStyled.div`
55
55
  display: flex;
56
56
  padding: 5px 20px;
57
57
  padding-left: 8px;
@@ -61,12 +61,12 @@
61
61
  border-top-left-radius: 5px;
62
62
  border-top-right-radius: 5px;
63
63
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
64
- background-color: ${e=>ue.getColorRgbaValue(e.theme,"KanbanHeader",e.color,"enabled","background")};
65
- color: ${e=>ue.getColorRgbaValue(e.theme,"KanbanHeader",e.color?"primary":e.color,"enabled","text")};
64
+ background-color: ${e=>ce.getColorRgbaValue(e.theme,"KanbanHeader",e.color,"enabled","background")};
65
+ color: ${e=>ce.getColorRgbaValue(e.theme,"KanbanHeader",e.color?"primary":e.color,"enabled","text")};
66
66
  &:hover .Actions > * {
67
67
  opacity: 1 !important;
68
68
  }
69
- `,da=At.newStyled.div`
69
+ `,fa=_t.newStyled.div`
70
70
  display: flex;
71
71
 
72
72
  & > *:first-of-type:not(:last-of-type) {
@@ -76,10 +76,10 @@
76
76
  & > *:first-of-type:not(:last-of-type):focus-visible {
77
77
  opacity: 1;
78
78
  }
79
- `,Vr=u.forwardRef((e,t)=>{const{children:n,containerId:o,renderFooterContent:i,columns:a=1,handleProps:l,horizontal:c,hover:f,onClick:d,onRemove:p,label:h,placeholder:w,maxContainerHeight:y,style:A,scrollable:b,shadow:C,unstyled:R,size:T,color:D,...E}=e,M=Pn.useTheme();return Y.jsxs(ca,{...E,ref:t,style:{...A,"--columns":a},unstyled:R,horizontal:c,hover:f,scrollable:b,shadow:C,onClick:d,tabIndex:d?0:void 0,maxContainerHeight:y,color:D,theme:M,children:[h?Y.jsxs(ua,{theme:M,color:D,children:[Y.jsx(da,{className:"Actions",children:Y.jsx(xr.Handle,{...l})}),h]}):null,Y.jsx("ul",{children:n}),i(o)]})});var dn={exports:{}};dn.exports;(function(e,t){var n=200,o="Expected a function",i="__lodash_hash_undefined__",a=1,l=2,c=1/0,f=9007199254740991,d=17976931348623157e292,p=NaN,h="[object Arguments]",w="[object Array]",y="[object Boolean]",A="[object Date]",b="[object Error]",C="[object Function]",R="[object GeneratorFunction]",T="[object Map]",D="[object Number]",E="[object Object]",M="[object Promise]",_="[object RegExp]",O="[object Set]",P="[object String]",k="[object Symbol]",H="[object WeakMap]",j="[object ArrayBuffer]",te="[object DataView]",J="[object Float32Array]",we="[object Float64Array]",ze="[object Int8Array]",F="[object Int16Array]",W="[object Int32Array]",Ie="[object Uint8Array]",Ee="[object Uint8ClampedArray]",se="[object Uint16Array]",Oe="[object Uint32Array]",q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ve=/^\w*$/,Fe=/^\./,Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,Qe=/^\s+|\s+$/g,Me=/\\(\\)?/g,ae=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,Ce=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,$={};$[J]=$[we]=$[ze]=$[F]=$[W]=$[Ie]=$[Ee]=$[se]=$[Oe]=!0,$[h]=$[w]=$[j]=$[y]=$[te]=$[A]=$[b]=$[C]=$[T]=$[D]=$[E]=$[_]=$[O]=$[P]=$[H]=!1;var We=parseInt,Ke=typeof K.commonjsGlobal=="object"&&K.commonjsGlobal&&K.commonjsGlobal.Object===Object&&K.commonjsGlobal,gt=typeof self=="object"&&self&&self.Object===Object&&self,Se=Ke||gt||Function("return this")(),qe=t&&!t.nodeType&&t,v=qe&&!0&&e&&!e.nodeType&&e,x=v&&v.exports===qe,N=x&&Ke.process,G=function(){try{return N&&N.binding("util")}catch{}}(),X=G&&G.isTypedArray;function le(r,s){for(var g=-1,m=r?r.length:0;++g<m;)if(s(r[g],g,r))return!0;return!1}function Q(r,s,g,m){for(var I=r.length,S=g+-1;++S<I;)if(s(r[S],S,r))return S;return-1}function ne(r){return function(s){return s==null?void 0:s[r]}}function fe(r,s){for(var g=-1,m=Array(r);++g<r;)m[g]=s(g);return m}function he(r){return function(s){return r(s)}}function et(r,s){return r==null?void 0:r[s]}function Z(r){var s=!1;if(r!=null&&typeof r.toString!="function")try{s=!!(r+"")}catch{}return s}function Ae(r){var s=-1,g=Array(r.size);return r.forEach(function(m,I){g[++s]=[I,m]}),g}function ht(r,s){return function(g){return r(s(g))}}function re(r){var s=-1,g=Array(r.size);return r.forEach(function(m){g[++s]=m}),g}var ce=Array.prototype,Ne=Function.prototype,Je=Object.prototype,Ot=Se["__core-js_shared__"],kt=function(){var r=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ht=Ne.toString,U=Je.hasOwnProperty,ee=Je.toString,be=RegExp("^"+Ht.call(U).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=Se.Symbol,ye=Se.Uint8Array,Te=Je.propertyIsEnumerable,Pe=ce.splice,st=ht(Object.keys,Object),_e=Math.max,tt=St(Se,"DataView"),He=St(Se,"Map"),at=St(Se,"Promise"),lt=St(Se,"Set"),Ct=St(Se,"WeakMap"),Ue=St(Object,"create"),pt=bt(tt),Mt=bt(He),Zr=bt(at),eo=bt(lt),to=bt(Ct),Ut=ke?ke.prototype:void 0,bn=Ut?Ut.valueOf:void 0,Xn=Ut?Ut.toString:void 0;function vt(r){var s=-1,g=r?r.length:0;for(this.clear();++s<g;){var m=r[s];this.set(m[0],m[1])}}function no(){this.__data__=Ue?Ue(null):{}}function ro(r){return this.has(r)&&delete this.__data__[r]}function oo(r){var s=this.__data__;if(Ue){var g=s[r];return g===i?void 0:g}return U.call(s,r)?s[r]:void 0}function io(r){var s=this.__data__;return Ue?s[r]!==void 0:U.call(s,r)}function so(r,s){var g=this.__data__;return g[r]=Ue&&s===void 0?i:s,this}vt.prototype.clear=no,vt.prototype.delete=ro,vt.prototype.get=oo,vt.prototype.has=io,vt.prototype.set=so;function nt(r){var s=-1,g=r?r.length:0;for(this.clear();++s<g;){var m=r[s];this.set(m[0],m[1])}}function ao(){this.__data__=[]}function lo(r){var s=this.__data__,g=Gt(s,r);if(g<0)return!1;var m=s.length-1;return g==m?s.pop():Pe.call(s,g,1),!0}function co(r){var s=this.__data__,g=Gt(s,r);return g<0?void 0:s[g][1]}function uo(r){return Gt(this.__data__,r)>-1}function fo(r,s){var g=this.__data__,m=Gt(g,r);return m<0?g.push([r,s]):g[m][1]=s,this}nt.prototype.clear=ao,nt.prototype.delete=lo,nt.prototype.get=co,nt.prototype.has=uo,nt.prototype.set=fo;function rt(r){var s=-1,g=r?r.length:0;for(this.clear();++s<g;){var m=r[s];this.set(m[0],m[1])}}function go(){this.__data__={hash:new vt,map:new(He||nt),string:new vt}}function ho(r){return Yt(this,r).delete(r)}function po(r){return Yt(this,r).get(r)}function vo(r){return Yt(this,r).has(r)}function bo(r,s){return Yt(this,r).set(r,s),this}rt.prototype.clear=go,rt.prototype.delete=ho,rt.prototype.get=po,rt.prototype.has=vo,rt.prototype.set=bo;function Xt(r){var s=-1,g=r?r.length:0;for(this.__data__=new rt;++s<g;)this.add(r[s])}function yo(r){return this.__data__.set(r,i),this}function mo(r){return this.__data__.has(r)}Xt.prototype.add=Xt.prototype.push=yo,Xt.prototype.has=mo;function ot(r){this.__data__=new nt(r)}function xo(){this.__data__=new nt}function wo(r){return this.__data__.delete(r)}function Co(r){return this.__data__.get(r)}function So(r){return this.__data__.has(r)}function Do(r,s){var g=this.__data__;if(g instanceof nt){var m=g.__data__;if(!He||m.length<n-1)return m.push([r,s]),this;g=this.__data__=new rt(m)}return g.set(r,s),this}ot.prototype.clear=xo,ot.prototype.delete=wo,ot.prototype.get=Co,ot.prototype.has=So,ot.prototype.set=Do;function Ro(r,s){var g=yt(r)||Zn(r)?fe(r.length,String):[],m=g.length,I=!!m;for(var S in r)U.call(r,S)&&!(I&&(S=="length"||qn(S,m)))&&g.push(S);return g}function Gt(r,s){for(var g=r.length;g--;)if(Qn(r[g][0],s))return g;return-1}function Gn(r,s){s=Wt(s,r)?[s]:Yn(s);for(var g=0,m=s.length;r!=null&&g<m;)r=r[qt(s[g++])];return g&&g==m?r:void 0}function Eo(r){return ee.call(r)}function Ao(r,s){return r!=null&&s in Object(r)}function yn(r,s,g,m,I){return r===s?!0:r==null||s==null||!Dt(r)&&!Jt(s)?r!==r&&s!==s:To(r,s,yn,g,m,I)}function To(r,s,g,m,I,S){var z=yt(r),ge=yt(s),oe=w,pe=w;z||(oe=ct(r),oe=oe==h?E:oe),ge||(pe=ct(s),pe=pe==h?E:pe);var De=oe==E&&!Z(r),Re=pe==E&&!Z(s),me=oe==pe;if(me&&!De)return S||(S=new ot),z||Wo(r)?Wn(r,s,g,m,I,S):jo(r,s,oe,g,m,I,S);if(!(I&l)){var Le=De&&U.call(r,"__wrapped__"),$e=Re&&U.call(s,"__wrapped__");if(Le||$e){var ut=Le?r.value():r,it=$e?s.value():s;return S||(S=new ot),g(ut,it,m,I,S)}}return me?(S||(S=new ot),zo(r,s,g,m,I,S)):!1}function _o(r,s,g,m){var I=g.length,S=I;if(r==null)return!S;for(r=Object(r);I--;){var z=g[I];if(z[2]?z[1]!==r[z[0]]:!(z[0]in r))return!1}for(;++I<S;){z=g[I];var ge=z[0],oe=r[ge],pe=z[1];if(z[2]){if(oe===void 0&&!(ge in r))return!1}else{var De=new ot,Re;if(!(Re===void 0?yn(pe,oe,m,a|l,De):Re))return!1}}return!0}function Io(r){if(!Dt(r)||Ho(r))return!1;var s=tr(r)||Z(r)?be:Ze;return s.test(bt(r))}function Oo(r){return Jt(r)&&xn(r.length)&&!!$[ee.call(r)]}function Mo(r){return typeof r=="function"?r:r==null?ti:typeof r=="object"?yt(r)?Lo(r[0],r[1]):Po(r):ni(r)}function No(r){if(!Uo(r))return st(r);var s=[];for(var g in Object(r))U.call(r,g)&&g!="constructor"&&s.push(g);return s}function Po(r){var s=Fo(r);return s.length==1&&s[0][2]?Vn(s[0][0],s[0][1]):function(g){return g===r||_o(g,r,s)}}function Lo(r,s){return Wt(r)&&Jn(s)?Vn(qt(r),s):function(g){var m=Zo(g,r);return m===void 0&&m===s?ei(g,r):yn(s,m,void 0,a|l)}}function $o(r){return function(s){return Gn(s,r)}}function Bo(r){if(typeof r=="string")return r;if(Vt(r))return Xn?Xn.call(r):"";var s=r+"";return s=="0"&&1/r==-c?"-0":s}function Yn(r){return yt(r)?r:Xo(r)}function Wn(r,s,g,m,I,S){var z=I&l,ge=r.length,oe=s.length;if(ge!=oe&&!(z&&oe>ge))return!1;var pe=S.get(r);if(pe&&S.get(s))return pe==s;var De=-1,Re=!0,me=I&a?new Xt:void 0;for(S.set(r,s),S.set(s,r);++De<ge;){var Le=r[De],$e=s[De];if(m)var ut=z?m($e,Le,De,s,r,S):m(Le,$e,De,r,s,S);if(ut!==void 0){if(ut)continue;Re=!1;break}if(me){if(!le(s,function(it,mt){if(!me.has(mt)&&(Le===it||g(Le,it,m,I,S)))return me.add(mt)})){Re=!1;break}}else if(!(Le===$e||g(Le,$e,m,I,S))){Re=!1;break}}return S.delete(r),S.delete(s),Re}function jo(r,s,g,m,I,S,z){switch(g){case te:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case j:return!(r.byteLength!=s.byteLength||!m(new ye(r),new ye(s)));case y:case A:case D:return Qn(+r,+s);case b:return r.name==s.name&&r.message==s.message;case _:case P:return r==s+"";case T:var ge=Ae;case O:var oe=S&l;if(ge||(ge=re),r.size!=s.size&&!oe)return!1;var pe=z.get(r);if(pe)return pe==s;S|=a,z.set(r,s);var De=Wn(ge(r),ge(s),m,I,S,z);return z.delete(r),De;case k:if(bn)return bn.call(r)==bn.call(s)}return!1}function zo(r,s,g,m,I,S){var z=I&l,ge=wn(r),oe=ge.length,pe=wn(s),De=pe.length;if(oe!=De&&!z)return!1;for(var Re=oe;Re--;){var me=ge[Re];if(!(z?me in s:U.call(s,me)))return!1}var Le=S.get(r);if(Le&&S.get(s))return Le==s;var $e=!0;S.set(r,s),S.set(s,r);for(var ut=z;++Re<oe;){me=ge[Re];var it=r[me],mt=s[me];if(m)var nr=z?m(mt,it,me,s,r,S):m(it,mt,me,r,s,S);if(!(nr===void 0?it===mt||g(it,mt,m,I,S):nr)){$e=!1;break}ut||(ut=me=="constructor")}if($e&&!ut){var Qt=r.constructor,Zt=s.constructor;Qt!=Zt&&"constructor"in r&&"constructor"in s&&!(typeof Qt=="function"&&Qt instanceof Qt&&typeof Zt=="function"&&Zt instanceof Zt)&&($e=!1)}return S.delete(r),S.delete(s),$e}function Yt(r,s){var g=r.__data__;return ko(s)?g[typeof s=="string"?"string":"hash"]:g.map}function Fo(r){for(var s=wn(r),g=s.length;g--;){var m=s[g],I=r[m];s[g]=[m,I,Jn(I)]}return s}function St(r,s){var g=et(r,s);return Io(g)?g:void 0}var ct=Eo;(tt&&ct(new tt(new ArrayBuffer(1)))!=te||He&&ct(new He)!=T||at&&ct(at.resolve())!=M||lt&&ct(new lt)!=O||Ct&&ct(new Ct)!=H)&&(ct=function(r){var s=ee.call(r),g=s==E?r.constructor:void 0,m=g?bt(g):void 0;if(m)switch(m){case pt:return te;case Mt:return T;case Zr:return M;case eo:return O;case to:return H}return s});function Ko(r,s,g){s=Wt(s,r)?[s]:Yn(s);for(var m,I=-1,z=s.length;++I<z;){var S=qt(s[I]);if(!(m=r!=null&&g(r,S)))break;r=r[S]}if(m)return m;var z=r?r.length:0;return!!z&&xn(z)&&qn(S,z)&&(yt(r)||Zn(r))}function qn(r,s){return s=s??f,!!s&&(typeof r=="number"||Ye.test(r))&&r>-1&&r%1==0&&r<s}function Wt(r,s){if(yt(r))return!1;var g=typeof r;return g=="number"||g=="symbol"||g=="boolean"||r==null||Vt(r)?!0:ve.test(r)||!q.test(r)||s!=null&&r in Object(s)}function ko(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Ho(r){return!!kt&&kt in r}function Uo(r){var s=r&&r.constructor,g=typeof s=="function"&&s.prototype||Je;return r===g}function Jn(r){return r===r&&!Dt(r)}function Vn(r,s){return function(g){return g==null?!1:g[r]===s&&(s!==void 0||r in Object(g))}}var Xo=mn(function(r){r=Qo(r);var s=[];return Fe.test(r)&&s.push(""),r.replace(Ve,function(g,m,I,S){s.push(I?S.replace(Me,"$1"):m||g)}),s});function qt(r){if(typeof r=="string"||Vt(r))return r;var s=r+"";return s=="0"&&1/r==-c?"-0":s}function bt(r){if(r!=null){try{return Ht.call(r)}catch{}try{return r+""}catch{}}return""}function Go(r,s,g){var m=r?r.length:0;if(!m)return-1;var I=g==null?0:Jo(g);return I<0&&(I=_e(m+I,0)),Q(r,Mo(s),I)}function mn(r,s){if(typeof r!="function"||s&&typeof s!="function")throw new TypeError(o);var g=function(){var m=arguments,I=s?s.apply(this,m):m[0],S=g.cache;if(S.has(I))return S.get(I);var z=r.apply(this,m);return g.cache=S.set(I,z),z};return g.cache=new(mn.Cache||rt),g}mn.Cache=rt;function Qn(r,s){return r===s||r!==r&&s!==s}function Zn(r){return Yo(r)&&U.call(r,"callee")&&(!Te.call(r,"callee")||ee.call(r)==h)}var yt=Array.isArray;function er(r){return r!=null&&xn(r.length)&&!tr(r)}function Yo(r){return Jt(r)&&er(r)}function tr(r){var s=Dt(r)?ee.call(r):"";return s==C||s==R}function xn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=f}function Dt(r){var s=typeof r;return!!r&&(s=="object"||s=="function")}function Jt(r){return!!r&&typeof r=="object"}function Vt(r){return typeof r=="symbol"||Jt(r)&&ee.call(r)==k}var Wo=X?he(X):Oo;function qo(r){if(!r)return r===0?r:0;if(r=Vo(r),r===c||r===-c){var s=r<0?-1:1;return s*d}return r===r?r:0}function Jo(r){var s=qo(r),g=s%1;return s===s?g?s-g:s:0}function Vo(r){if(typeof r=="number")return r;if(Vt(r))return p;if(Dt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=Dt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=r.replace(Qe,"");var g=B.test(r);return g||Ce.test(r)?We(r.slice(2),g?2:8):ae.test(r)?p:+r}function Qo(r){return r==null?"":Bo(r)}function Zo(r,s,g){var m=r==null?void 0:Gn(r,s);return m===void 0?g:m}function ei(r,s){return r!=null&&Ko(r,s,Ao)}function wn(r){return er(r)?Ro(r):No(r)}function ti(r){return r}function ni(r){return Wt(r)?ne(qt(r)):$o(r)}e.exports=Go})(dn,dn.exports);var fa=dn.exports;const xt=K.getDefaultExportFromCjs(fa),ga=At.newStyled.div``,ha=At.newStyled.div`
79
+ `,Zr=u.forwardRef((e,t)=>{const{children:n,containerId:o,renderFooterContent:i,columns:a=1,handleProps:l,horizontal:c,hover:f,onClick:d,onRemove:p,label:h,placeholder:w,maxContainerHeight:y,style:A,scrollable:b,shadow:C,unstyled:R,size:T,color:D,...E}=e,M=Ln.useTheme();return Y.jsxs(ua,{...E,ref:t,style:{...A,"--columns":a},unstyled:R,horizontal:c,hover:f,scrollable:b,shadow:C,onClick:d,tabIndex:d?0:void 0,maxContainerHeight:y,color:D,theme:M,children:[h?Y.jsxs(da,{theme:M,color:D,children:[Y.jsx(fa,{className:"Actions",children:Y.jsx(Cr.Handle,{...l})}),h]}):null,Y.jsx("ul",{children:n}),i(o)]})});var gn={exports:{}};gn.exports;(function(e,t){var n=200,o="Expected a function",i="__lodash_hash_undefined__",a=1,l=2,c=1/0,f=9007199254740991,d=17976931348623157e292,p=NaN,h="[object Arguments]",w="[object Array]",y="[object Boolean]",A="[object Date]",b="[object Error]",C="[object Function]",R="[object GeneratorFunction]",T="[object Map]",D="[object Number]",E="[object Object]",M="[object Promise]",_="[object RegExp]",O="[object Set]",P="[object String]",K="[object Symbol]",k="[object WeakMap]",j="[object ArrayBuffer]",ee="[object DataView]",J="[object Float32Array]",Ce="[object Float64Array]",je="[object Int8Array]",F="[object Int16Array]",W="[object Int32Array]",Oe="[object Uint8Array]",Te="[object Uint8ClampedArray]",se="[object Uint16Array]",Me="[object Uint32Array]",q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ve=/^\w*$/,ze=/^\./,Je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,Ve=/^\s+|\s+$/g,Ne=/\\(\\)?/g,ae=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,Qe=/^\[object .+?Constructor\]$/,Se=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,$={};$[J]=$[Ce]=$[je]=$[F]=$[W]=$[Oe]=$[Te]=$[se]=$[Me]=!0,$[h]=$[w]=$[j]=$[y]=$[ee]=$[A]=$[b]=$[C]=$[T]=$[D]=$[E]=$[_]=$[O]=$[P]=$[k]=!1;var We=parseInt,Fe=typeof Pt.commonjsGlobal=="object"&&Pt.commonjsGlobal&&Pt.commonjsGlobal.Object===Object&&Pt.commonjsGlobal,ht=typeof self=="object"&&self&&self.Object===Object&&self,De=Fe||ht||Function("return this")(),qe=t&&!t.nodeType&&t,v=qe&&!0&&e&&!e.nodeType&&e,x=v&&v.exports===qe,N=x&&Fe.process,X=function(){try{return N&&N.binding("util")}catch{}}(),H=X&&X.isTypedArray;function le(r,s){for(var g=-1,m=r?r.length:0;++g<m;)if(s(r[g],g,r))return!0;return!1}function Q(r,s,g,m){for(var I=r.length,S=g+-1;++S<I;)if(s(r[S],S,r))return S;return-1}function te(r){return function(s){return s==null?void 0:s[r]}}function de(r,s){for(var g=-1,m=Array(r);++g<r;)m[g]=s(g);return m}function ge(r){return function(s){return r(s)}}function Ze(r,s){return r==null?void 0:r[s]}function Z(r){var s=!1;if(r!=null&&typeof r.toString!="function")try{s=!!(r+"")}catch{}return s}function _e(r){var s=-1,g=Array(r.size);return r.forEach(function(m,I){g[++s]=[I,m]}),g}function pt(r,s){return function(g){return r(s(g))}}function ne(r){var s=-1,g=Array(r.size);return r.forEach(function(m){g[++s]=m}),g}var re=Array.prototype,Ie=Function.prototype,et=Object.prototype,St=De["__core-js_shared__"],Ut=function(){var r=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Xt=Ie.toString,Ke=et.hasOwnProperty,G=et.toString,be=RegExp("^"+Xt.call(Ke).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),he=De.Symbol,ke=De.Uint8Array,Re=et.propertyIsEnumerable,ye=re.splice,Pe=pt(Object.keys,Object),st=Math.max,me=Dt(De,"DataView"),He=Dt(De,"Map"),tt=Dt(De,"Promise"),at=Dt(De,"Set"),lt=Dt(De,"WeakMap"),ct=Dt(Object,"create"),vt=mt(me),bt=mt(He),Nt=mt(tt),to=mt(at),no=mt(lt),Gt=he?he.prototype:void 0,mn=Gt?Gt.valueOf:void 0,Gn=Gt?Gt.toString:void 0;function yt(r){var s=-1,g=r?r.length:0;for(this.clear();++s<g;){var m=r[s];this.set(m[0],m[1])}}function ro(){this.__data__=ct?ct(null):{}}function oo(r){return this.has(r)&&delete this.__data__[r]}function io(r){var s=this.__data__;if(ct){var g=s[r];return g===i?void 0:g}return Ke.call(s,r)?s[r]:void 0}function so(r){var s=this.__data__;return ct?s[r]!==void 0:Ke.call(s,r)}function ao(r,s){var g=this.__data__;return g[r]=ct&&s===void 0?i:s,this}yt.prototype.clear=ro,yt.prototype.delete=oo,yt.prototype.get=io,yt.prototype.has=so,yt.prototype.set=ao;function nt(r){var s=-1,g=r?r.length:0;for(this.clear();++s<g;){var m=r[s];this.set(m[0],m[1])}}function lo(){this.__data__=[]}function co(r){var s=this.__data__,g=Wt(s,r);if(g<0)return!1;var m=s.length-1;return g==m?s.pop():ye.call(s,g,1),!0}function uo(r){var s=this.__data__,g=Wt(s,r);return g<0?void 0:s[g][1]}function fo(r){return Wt(this.__data__,r)>-1}function go(r,s){var g=this.__data__,m=Wt(g,r);return m<0?g.push([r,s]):g[m][1]=s,this}nt.prototype.clear=lo,nt.prototype.delete=co,nt.prototype.get=uo,nt.prototype.has=fo,nt.prototype.set=go;function rt(r){var s=-1,g=r?r.length:0;for(this.clear();++s<g;){var m=r[s];this.set(m[0],m[1])}}function ho(){this.__data__={hash:new yt,map:new(He||nt),string:new yt}}function po(r){return qt(this,r).delete(r)}function vo(r){return qt(this,r).get(r)}function bo(r){return qt(this,r).has(r)}function yo(r,s){return qt(this,r).set(r,s),this}rt.prototype.clear=ho,rt.prototype.delete=po,rt.prototype.get=vo,rt.prototype.has=bo,rt.prototype.set=yo;function Yt(r){var s=-1,g=r?r.length:0;for(this.__data__=new rt;++s<g;)this.add(r[s])}function mo(r){return this.__data__.set(r,i),this}function xo(r){return this.__data__.has(r)}Yt.prototype.add=Yt.prototype.push=mo,Yt.prototype.has=xo;function ot(r){this.__data__=new nt(r)}function wo(){this.__data__=new nt}function Co(r){return this.__data__.delete(r)}function So(r){return this.__data__.get(r)}function Do(r){return this.__data__.has(r)}function Ro(r,s){var g=this.__data__;if(g instanceof nt){var m=g.__data__;if(!He||m.length<n-1)return m.push([r,s]),this;g=this.__data__=new rt(m)}return g.set(r,s),this}ot.prototype.clear=wo,ot.prototype.delete=Co,ot.prototype.get=So,ot.prototype.has=Do,ot.prototype.set=Ro;function Eo(r,s){var g=xt(r)||er(r)?de(r.length,String):[],m=g.length,I=!!m;for(var S in r)Ke.call(r,S)&&!(I&&(S=="length"||Jn(S,m)))&&g.push(S);return g}function Wt(r,s){for(var g=r.length;g--;)if(Zn(r[g][0],s))return g;return-1}function Yn(r,s){s=Jt(s,r)?[s]:Wn(s);for(var g=0,m=s.length;r!=null&&g<m;)r=r[Vt(s[g++])];return g&&g==m?r:void 0}function Ao(r){return G.call(r)}function To(r,s){return r!=null&&s in Object(r)}function xn(r,s,g,m,I){return r===s?!0:r==null||s==null||!Rt(r)&&!Qt(s)?r!==r&&s!==s:_o(r,s,xn,g,m,I)}function _o(r,s,g,m,I,S){var z=xt(r),fe=xt(s),oe=w,pe=w;z||(oe=ut(r),oe=oe==h?E:oe),fe||(pe=ut(s),pe=pe==h?E:pe);var Ee=oe==E&&!Z(r),Ae=pe==E&&!Z(s),xe=oe==pe;if(xe&&!Ee)return S||(S=new ot),z||qo(r)?qn(r,s,g,m,I,S):zo(r,s,oe,g,m,I,S);if(!(I&l)){var Le=Ee&&Ke.call(r,"__wrapped__"),$e=Ae&&Ke.call(s,"__wrapped__");if(Le||$e){var dt=Le?r.value():r,it=$e?s.value():s;return S||(S=new ot),g(dt,it,m,I,S)}}return xe?(S||(S=new ot),Fo(r,s,g,m,I,S)):!1}function Io(r,s,g,m){var I=g.length,S=I;if(r==null)return!S;for(r=Object(r);I--;){var z=g[I];if(z[2]?z[1]!==r[z[0]]:!(z[0]in r))return!1}for(;++I<S;){z=g[I];var fe=z[0],oe=r[fe],pe=z[1];if(z[2]){if(oe===void 0&&!(fe in r))return!1}else{var Ee=new ot,Ae;if(!(Ae===void 0?xn(pe,oe,m,a|l,Ee):Ae))return!1}}return!0}function Oo(r){if(!Rt(r)||Uo(r))return!1;var s=nr(r)||Z(r)?be:Qe;return s.test(mt(r))}function Mo(r){return Qt(r)&&Cn(r.length)&&!!$[G.call(r)]}function No(r){return typeof r=="function"?r:r==null?ni:typeof r=="object"?xt(r)?$o(r[0],r[1]):Lo(r):ri(r)}function Po(r){if(!Xo(r))return Pe(r);var s=[];for(var g in Object(r))Ke.call(r,g)&&g!="constructor"&&s.push(g);return s}function Lo(r){var s=Ko(r);return s.length==1&&s[0][2]?Qn(s[0][0],s[0][1]):function(g){return g===r||Io(g,r,s)}}function $o(r,s){return Jt(r)&&Vn(s)?Qn(Vt(r),s):function(g){var m=ei(g,r);return m===void 0&&m===s?ti(g,r):xn(s,m,void 0,a|l)}}function Bo(r){return function(s){return Yn(s,r)}}function jo(r){if(typeof r=="string")return r;if(Zt(r))return Gn?Gn.call(r):"";var s=r+"";return s=="0"&&1/r==-c?"-0":s}function Wn(r){return xt(r)?r:Go(r)}function qn(r,s,g,m,I,S){var z=I&l,fe=r.length,oe=s.length;if(fe!=oe&&!(z&&oe>fe))return!1;var pe=S.get(r);if(pe&&S.get(s))return pe==s;var Ee=-1,Ae=!0,xe=I&a?new Yt:void 0;for(S.set(r,s),S.set(s,r);++Ee<fe;){var Le=r[Ee],$e=s[Ee];if(m)var dt=z?m($e,Le,Ee,s,r,S):m(Le,$e,Ee,r,s,S);if(dt!==void 0){if(dt)continue;Ae=!1;break}if(xe){if(!le(s,function(it,wt){if(!xe.has(wt)&&(Le===it||g(Le,it,m,I,S)))return xe.add(wt)})){Ae=!1;break}}else if(!(Le===$e||g(Le,$e,m,I,S))){Ae=!1;break}}return S.delete(r),S.delete(s),Ae}function zo(r,s,g,m,I,S,z){switch(g){case ee:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case j:return!(r.byteLength!=s.byteLength||!m(new ke(r),new ke(s)));case y:case A:case D:return Zn(+r,+s);case b:return r.name==s.name&&r.message==s.message;case _:case P:return r==s+"";case T:var fe=_e;case O:var oe=S&l;if(fe||(fe=ne),r.size!=s.size&&!oe)return!1;var pe=z.get(r);if(pe)return pe==s;S|=a,z.set(r,s);var Ee=qn(fe(r),fe(s),m,I,S,z);return z.delete(r),Ee;case K:if(mn)return mn.call(r)==mn.call(s)}return!1}function Fo(r,s,g,m,I,S){var z=I&l,fe=Sn(r),oe=fe.length,pe=Sn(s),Ee=pe.length;if(oe!=Ee&&!z)return!1;for(var Ae=oe;Ae--;){var xe=fe[Ae];if(!(z?xe in s:Ke.call(s,xe)))return!1}var Le=S.get(r);if(Le&&S.get(s))return Le==s;var $e=!0;S.set(r,s),S.set(s,r);for(var dt=z;++Ae<oe;){xe=fe[Ae];var it=r[xe],wt=s[xe];if(m)var rr=z?m(wt,it,xe,s,r,S):m(it,wt,xe,r,s,S);if(!(rr===void 0?it===wt||g(it,wt,m,I,S):rr)){$e=!1;break}dt||(dt=xe=="constructor")}if($e&&!dt){var en=r.constructor,tn=s.constructor;en!=tn&&"constructor"in r&&"constructor"in s&&!(typeof en=="function"&&en instanceof en&&typeof tn=="function"&&tn instanceof tn)&&($e=!1)}return S.delete(r),S.delete(s),$e}function qt(r,s){var g=r.__data__;return Ho(s)?g[typeof s=="string"?"string":"hash"]:g.map}function Ko(r){for(var s=Sn(r),g=s.length;g--;){var m=s[g],I=r[m];s[g]=[m,I,Vn(I)]}return s}function Dt(r,s){var g=Ze(r,s);return Oo(g)?g:void 0}var ut=Ao;(me&&ut(new me(new ArrayBuffer(1)))!=ee||He&&ut(new He)!=T||tt&&ut(tt.resolve())!=M||at&&ut(new at)!=O||lt&&ut(new lt)!=k)&&(ut=function(r){var s=G.call(r),g=s==E?r.constructor:void 0,m=g?mt(g):void 0;if(m)switch(m){case vt:return ee;case bt:return T;case Nt:return M;case to:return O;case no:return k}return s});function ko(r,s,g){s=Jt(s,r)?[s]:Wn(s);for(var m,I=-1,z=s.length;++I<z;){var S=Vt(s[I]);if(!(m=r!=null&&g(r,S)))break;r=r[S]}if(m)return m;var z=r?r.length:0;return!!z&&Cn(z)&&Jn(S,z)&&(xt(r)||er(r))}function Jn(r,s){return s=s??f,!!s&&(typeof r=="number"||Ye.test(r))&&r>-1&&r%1==0&&r<s}function Jt(r,s){if(xt(r))return!1;var g=typeof r;return g=="number"||g=="symbol"||g=="boolean"||r==null||Zt(r)?!0:ve.test(r)||!q.test(r)||s!=null&&r in Object(s)}function Ho(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Uo(r){return!!Ut&&Ut in r}function Xo(r){var s=r&&r.constructor,g=typeof s=="function"&&s.prototype||et;return r===g}function Vn(r){return r===r&&!Rt(r)}function Qn(r,s){return function(g){return g==null?!1:g[r]===s&&(s!==void 0||r in Object(g))}}var Go=wn(function(r){r=Zo(r);var s=[];return ze.test(r)&&s.push(""),r.replace(Je,function(g,m,I,S){s.push(I?S.replace(Ne,"$1"):m||g)}),s});function Vt(r){if(typeof r=="string"||Zt(r))return r;var s=r+"";return s=="0"&&1/r==-c?"-0":s}function mt(r){if(r!=null){try{return Xt.call(r)}catch{}try{return r+""}catch{}}return""}function Yo(r,s,g){var m=r?r.length:0;if(!m)return-1;var I=g==null?0:Vo(g);return I<0&&(I=st(m+I,0)),Q(r,No(s),I)}function wn(r,s){if(typeof r!="function"||s&&typeof s!="function")throw new TypeError(o);var g=function(){var m=arguments,I=s?s.apply(this,m):m[0],S=g.cache;if(S.has(I))return S.get(I);var z=r.apply(this,m);return g.cache=S.set(I,z),z};return g.cache=new(wn.Cache||rt),g}wn.Cache=rt;function Zn(r,s){return r===s||r!==r&&s!==s}function er(r){return Wo(r)&&Ke.call(r,"callee")&&(!Re.call(r,"callee")||G.call(r)==h)}var xt=Array.isArray;function tr(r){return r!=null&&Cn(r.length)&&!nr(r)}function Wo(r){return Qt(r)&&tr(r)}function nr(r){var s=Rt(r)?G.call(r):"";return s==C||s==R}function Cn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=f}function Rt(r){var s=typeof r;return!!r&&(s=="object"||s=="function")}function Qt(r){return!!r&&typeof r=="object"}function Zt(r){return typeof r=="symbol"||Qt(r)&&G.call(r)==K}var qo=H?ge(H):Mo;function Jo(r){if(!r)return r===0?r:0;if(r=Qo(r),r===c||r===-c){var s=r<0?-1:1;return s*d}return r===r?r:0}function Vo(r){var s=Jo(r),g=s%1;return s===s?g?s-g:s:0}function Qo(r){if(typeof r=="number")return r;if(Zt(r))return p;if(Rt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=Rt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=r.replace(Ve,"");var g=B.test(r);return g||Se.test(r)?We(r.slice(2),g?2:8):ae.test(r)?p:+r}function Zo(r){return r==null?"":jo(r)}function ei(r,s,g){var m=r==null?void 0:Yn(r,s);return m===void 0?g:m}function ti(r,s){return r!=null&&ko(r,s,To)}function Sn(r){return tr(r)?Eo(r):Po(r)}function ni(r){return r}function ri(r){return Jt(r)?te(Vt(r)):Bo(r)}e.exports=Yo})(gn,gn.exports);var ga=gn.exports;const Ct=Pt.getDefaultExportFromCjs(ga),ha=_t.newStyled.div``,pa=_t.newStyled.div`
80
80
  box-sizing: border-box;
81
81
  display: flex;
82
82
  flex-direction: ${e=>e.verticalDisplay?"column":"row"};
83
83
  ${e=>e.horizontalDisplay==!1&&"flex-wrap: wrap;"}
84
84
  overflow: auto;
85
- `,pa=e=>Wr({...e,wasDragging:!0}),va={sideEffects:Ur({styles:{active:{opacity:"0.5"}}})},ba=()=>{const[e,t]=u.useState(!1);return u.useEffect(()=>{const n=setTimeout(()=>t(!0),500);return()=>clearTimeout(n)},[]),e},Nn=(e,t)=>{if(e)return ue.getColorRgbaValue(t,"KanbanCard",e,"enabled","highlight")},ya=({children:e,containerId:t,columns:n=1,disabled:o,id:i,items:a,className:l,renderFooterContent:c,maxContainerHeight:f,style:d,...p})=>{var E;const{active:h,attributes:w,isDragging:y,listeners:A,over:b,setNodeRef:C,transition:R,transform:T}=Jr({id:i,data:{type:"container",children:a},animateLayoutChanges:pa}),D=b?i===b.id&&((E=h==null?void 0:h.data.current)==null?void 0:E.type)!=="container"||a.includes(b.id):!1;return Y.jsx(Vr,{ref:o?void 0:C,style:{...d,transition:R,transform:ft.Translate.toString(T),opacity:y?.5:void 0},className:l,hover:D,handleProps:{...w,...A},containerId:t,renderFooterContent:c,maxContainerHeight:f,...p,children:e})},ma=({disabled:e,id:t,item:n,index:o,renderItem:i,style:a={},containerId:l,getIndex:c,wrapperStyle:f,cardProps:d,theme:p,renderContent:h,color:w})=>{const{setNodeRef:y,setActivatorNodeRef:A,listeners:b,isDragging:C,isSorting:R,over:T,overIndex:D,transform:E,transition:M,attributes:_}=Jr({id:t}),O=ba(),P=C&&!O;return Y.jsx(Mn,{ref:e?void 0:y,cardProps:d,value:t,dragging:C,sorting:R,handle:(d==null?void 0:d.handle)!==!1,handleProps:{..._,...b},index:o,wrapperStyle:f({index:o}),style:{...a,index:o,value:t,isDragging:C,isSorting:R,overIndex:T?c(T.id):D,containerId:l},color:Nn(n==null?void 0:n.color,p),transition:M,transform:E,fadeIn:P,listeners:b,renderItem:i,children:h(n==null?void 0:n.content,t,{...d,handleProps:{..._,...b},item:n,containerId:l})})},Qr=u.forwardRef((e,t)=>{const{horizontalDisplay:n=!1,verticalDisplay:o=!1,adjustScale:i=!1,itemCount:a=5,cancelDrop:l,columns:c,handle:f=!1,containerStyle:d,coordinateGetter:p=Js,getItemStyles:h=v=>({...v}),wrapperStyle:w=v=>({...v}),minimal:y=!1,modifiers:A,renderItem:b,strategy:C=br,scrollable:R,maxContainerHeight:T,cardProps:D,headerProps:E,footerProps:M,data:_=[],columnInfo:O={},onColumnMoved:P=()=>{},onCardMoved:k=()=>{},onCardChangedColumns:H=()=>{},color:j="primary",size:te="small",children:J,...we}=e,ze=Pn.useTheme(),[F,W]=u.useState(()=>_??{A:mr(a,v=>`A${v+1}`),B:mr(a,v=>`B${v+1}`)}),[Ie,Ee]=u.useState(Object.keys(_)),[se,Oe]=u.useState(null),q=u.useRef(null),ve=u.useRef(!1),Fe=se?Ie.includes(se):!1,Ve=u.useCallback(v=>{var X;if(se&&se in F)return sr({...v,droppableContainers:v.droppableContainers.filter(le=>le.id in F)});const x=Ai(v),N=x.length>0?x:Dr(v);let G=zn(N,"id");if(G!=null){if(G in F){const le=F[G];le.length>0&&(G=(X=sr({...v,droppableContainers:v.droppableContainers.filter(Q=>Q.id!==G&&le.map(ne=>ne.id).includes(Q.id))})[0])==null?void 0:X.id)}return q.current=G,[{id:G}]}return ve.current&&(q.current=se),q.current?[{id:q.current}]:[]},[se,F]),[V,Qe]=u.useState([]),Me=wi(Sn($r),Sn(Br),Sn(kn,{coordinateGetter:p}));si(()=>{W(_),Ee(Object.keys(_))}),ii.useUpdateEffect(()=>{W(_),Ee(Object.keys(_))},[_]),u.useEffect(()=>{requestAnimationFrame(()=>{ve.current=!1})},[F]);const ae=v=>v in F?v:Object.keys(F).find(x=>F[x].map(N=>N.id).includes(v)),B=v=>{const x=ae(v);return x?xt(F[x],N=>N.id==v):-1},Ze=()=>{V&&W(V),Oe(null),Qe(null)},Ce=v=>{Oe(v.active.id),Qe(F)},Ye=v=>{const{active:x,over:N}=v,G=N==null?void 0:N.id;if(G==null||x.id in F)return;const X=ae(G),le=ae(x.id);!X||!le||le!==X&&W(Q=>{const ne=Q[le],fe=Q[X],he=xt(fe,Ae=>Ae.id==G),et=xt(ne,Ae=>Ae.id==x.id);let Z;if(G in Q)Z=fe.length+1;else{const ht=N&&x.rect.current.translated&&x.rect.current.translated.top>N.rect.top+N.rect.height?1:0;Z=he>=0?he+ht:fe.length+1}return H(x.id),ve.current=!0,{...Q,[le]:Q[le].filter(Ae=>Ae.id!=x.id),[X]:[...Q[X].slice(0,Z),Q[le][et],...Q[X].slice(Z,Q[X].length)]}})},$=v=>{const{active:x,over:N}=v;var G=!1,X=ri.cloneDeep(F);x.id in F&&(N!=null&&N.id)&&Ee(re=>{G=!0;const ce=re.indexOf(x.id),Ne=re.indexOf(N.id);var Je=$t(re,ce,Ne);return x.id!==N.id&&P(v,Je),Je});const le=ae(x.id);if(!le){Oe(null);return}const Q=N==null?void 0:N.id;if(Q==null){Oe(null);return}const ne=ae(Q);if(ne){const re=xt(F[le],Ne=>Ne.id==x.id),ce=xt(F[ne],Ne=>Ne.id==Q);re!==ce&&(X={...X,[ne]:$t(X[ne],re,ce)},W(Ne=>({...Ne,[ne]:$t(Ne[ne],re,ce)})))}if(!G){var fe,he=null,et,Z=-1,Ae=Object.keys(V),ht=Object.keys(X);Ae.forEach(re=>{if(V[re].map(ce=>ce.id.toString()).includes(x.id.toString())){fe=re,et=xt(V[re],ce=>ce.id==x.id);return}}),ht.forEach(re=>{if(X[re].map(ce=>ce.id.toString()).includes(x.id.toString())){he=re,Z=xt(X[re],ce=>ce.id==x.id);return}}),fe===he&&et!==Z&&k(v,X,he),fe!==he&&H(v,X,he,fe)}Oe(null)},We=v=>{var x=null;return Ie.forEach(N=>{F[N].forEach(G=>{if(G.id==v){x=G;return}})}),Y.jsx(Mn,{value:v,handle:f,cardProps:D,style:h({containerId:ae(v),overIndex:-1,index:B(v),value:v,isSorting:!0,isDragging:!0,isDragOverlay:!0}),color:Nn(x==null?void 0:x.color,ze),wrapperStyle:w({index:0}),renderItem:b,dragOverlay:!0,children:qe(x==null?void 0:x.content,v,{...D,item:x})||{name:v}})},Ke=v=>Y.jsx(Vr,{label:gt(v),columns:c,style:{height:"100%"},shadow:!0,unstyled:!1,containerId:v,renderFooterContent:Se,children:F[v].map((x,N)=>Y.jsx(Mn,{cardProps:D,value:x.id,handle:f,style:h({containerId:v,overIndex:-1,index:B(x),value:x,isDragging:!1,isSorting:!1,isDragOverlay:!1}),color:Nn(x==null?void 0:x.color,ze),wrapperStyle:w({index:N}),renderItem:b,children:qe(x==null?void 0:x.content,x==null?void 0:x.id,{...D,item:x,containerId:v})},x.id))}),gt=v=>{let x=c==null?void 0:c.find(N=>N.id==(v==null?void 0:v.toString()));return ue.renderCustomElement(ue.getCustomRenderById("KANBAN_HEADER",v,J),{...E,item:{[v]:F[v]},column:x},x==null?void 0:x.header,!0)||ue.renderCustomElement(ue.getCustomRenderById("KANBAN_HEADER",null,J),{...E,item:{[v]:F[v]},column:x},x==null?void 0:x.header,!0)||Y.jsx(oi,{id:v,color:j,size:te,item:{[v]:F[v]},column:x,...E,children:x==null?void 0:x.header})},Se=v=>ue.renderCustomElement(ue.getCustomRenderById("KANBAN_FOOTER",v,J),{...M,id:v},null)||ue.renderCustomElement(ue.getCustomRenderById("KANBAN_FOOTER",null,J),{...M,id:v},null),qe=(v,x,N)=>ue.renderCustomElement(ue.getCustomRenderById("KANBAN_CARD",x,J),{...N},v,!0)||ue.renderCustomElement(ue.getCustomRenderById("KANBAN_CARD",null,J),{...N},v,!0)||Y.jsx(xr.KanbanCard,{color:j,size:te,...N,children:v});return Y.jsx(ga,{ref:t,...we,children:Y.jsxs(bs,{measuring:{droppable:{strategy:Et.Always}},sensors:Me,collisionDetection:Ve,modifiers:A,cancelDrop:l,onDragCancel:Ze,onDragStart:Ce,onDragOver:Ye,onDragEnd:$,children:[Y.jsx(ha,{horizontalDisplay:n,verticalDisplay:o,children:Y.jsx(yr,{items:[...Ie],strategy:o?br:zs,children:Ie.map(v=>Y.jsx(ya,{id:v,label:y?void 0:gt(v),items:F[v],color:j,scrollable:R,style:d,unstyled:y,containerId:v,renderFooterContent:Se,maxContainerHeight:T,...E,children:Y.jsx(yr,{items:F[v],strategy:C,children:F[v].map((x,N)=>Y.jsx(ma,{disabled:Fe||(x==null?void 0:x.disabled),id:x.id,item:x,index:N,style:h,wrapperStyle:w,renderItem:b,containerId:v,getIndex:B,cardProps:D,theme:ze,renderContent:qe},x.id))})},v))})}),wt.reactDomExports.createPortal(Y.jsx(Ls,{adjustScale:i,dropAnimation:va,children:se?Ie.includes(se)?Ke(se):We(se):null}),document.body)]})})});Qr.propTypes={horizontalDisplay:K.PropTypes.bool,verticalDisplay:K.PropTypes.bool,adjustScale:K.PropTypes.bool,itemCount:K.PropTypes.bool,cancelDrop:K.PropTypes.func,columns:K.PropTypes.array,handle:K.PropTypes.bool,getItemStyles:K.PropTypes.func,wrapperStyle:K.PropTypes.func,minimal:K.PropTypes.bool,renderItem:K.PropTypes.func,scrollable:K.PropTypes.bool,cardProps:K.PropTypes.any,headerProps:K.PropTypes.any,footerProps:K.PropTypes.any,data:K.PropTypes.object,columnInfo:K.PropTypes.object,onColumnMoved:K.PropTypes.func,onCardMoved:K.PropTypes.func,onCardChangedColumns:K.PropTypes.func,maxContainerHeight:K.PropTypes.string,className:K.PropTypes.string,style:K.PropTypes.object,color:K.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:K.PropTypes.oneOf(["small","medium","large"])};module.exports=Qr;
85
+ `,va=e=>Jr({...e,wasDragging:!0}),ba={sideEffects:Gr({styles:{active:{opacity:"0.5"}}})},ya=()=>{const[e,t]=u.useState(!1);return u.useEffect(()=>{const n=setTimeout(()=>t(!0),500);return()=>clearTimeout(n)},[]),e},Pn=(e,t)=>{if(e)return ce.getColorRgbaValue(t,"KanbanCard",e,"enabled","highlight")},ma=({children:e,containerId:t,columns:n=1,disabled:o,id:i,items:a,className:l,renderFooterContent:c,maxContainerHeight:f,style:d,...p})=>{var E;const{active:h,attributes:w,isDragging:y,listeners:A,over:b,setNodeRef:C,transition:R,transform:T}=Qr({id:i,data:{type:"container",children:a},animateLayoutChanges:va}),D=b?i===b.id&&((E=h==null?void 0:h.data.current)==null?void 0:E.type)!=="container"||a.includes(b.id):!1;return Y.jsx(Zr,{ref:o?void 0:C,style:{...d,transition:R,transform:gt.Translate.toString(T),opacity:y?.5:void 0},className:l,hover:D,handleProps:{...w,...A},containerId:t,renderFooterContent:c,maxContainerHeight:f,...p,children:e})},xa=({disabled:e,id:t,item:n,index:o,renderItem:i,style:a={},containerId:l,getIndex:c,wrapperStyle:f,cardProps:d,theme:p,renderContent:h,color:w})=>{const{setNodeRef:y,setActivatorNodeRef:A,listeners:b,isDragging:C,isSorting:R,over:T,overIndex:D,transform:E,transition:M,attributes:_}=Qr({id:t}),O=ya(),P=C&&!O;return Y.jsx(Nn,{ref:e?void 0:y,cardProps:d,value:t,dragging:C,sorting:R,handle:(d==null?void 0:d.handle)!==!1,handleProps:{..._,...b},index:o,wrapperStyle:f({index:o}),style:{...a,index:o,value:t,isDragging:C,isSorting:R,overIndex:T?c(T.id):D,containerId:l},color:Pn(n==null?void 0:n.color,p),transition:M,transform:E,fadeIn:P,listeners:b,renderItem:i,children:h(n==null?void 0:n.content,t,{...d,handleProps:{..._,...b},item:n,containerId:l})})},eo=u.forwardRef((e,t)=>{const{horizontalDisplay:n=!1,verticalDisplay:o=!1,adjustScale:i=!1,itemCount:a=5,cancelDrop:l,columns:c,handle:f=!1,containerStyle:d,coordinateGetter:p=Vs,getItemStyles:h=v=>({...v}),wrapperStyle:w=v=>({...v}),minimal:y=!1,modifiers:A,renderItem:b,strategy:C=mr,scrollable:R,maxContainerHeight:T,cardProps:D,headerProps:E,footerProps:M,data:_=[],columnInfo:O={},onColumnMoved:P=()=>{},onCardMoved:K=()=>{},onCardChangedColumns:k=()=>{},color:j="primary",size:ee="small",children:J,...Ce}=e,je=Ln.useTheme(),[F,W]=u.useState(()=>_??{A:wr(a,v=>`A${v+1}`),B:wr(a,v=>`B${v+1}`)}),[Oe,Te]=u.useState(Object.keys(_)),[se,Me]=u.useState(null),q=u.useRef(null),ve=u.useRef(!1),ze=se?Oe.includes(se):!1,Je=u.useCallback(v=>{var H;if(se&&se in F)return ar({...v,droppableContainers:v.droppableContainers.filter(le=>le.id in F)});const x=Ti(v),N=x.length>0?x:Er(v);let X=Fn(N,"id");if(X!=null){if(X in F){const le=F[X];le.length>0&&(X=(H=ar({...v,droppableContainers:v.droppableContainers.filter(Q=>Q.id!==X&&le.map(te=>te.id).includes(Q.id))})[0])==null?void 0:H.id)}return q.current=X,[{id:X}]}return ve.current&&(q.current=se),q.current?[{id:q.current}]:[]},[se,F]),[V,Ve]=u.useState([]),Ne=Ci(Rn(jr),Rn(zr),Rn(Hn,{coordinateGetter:p}));ai(()=>{W(_),Te(Object.keys(_))}),si.useUpdateEffect(()=>{W(_),Te(Object.keys(_))},[_]),u.useEffect(()=>{requestAnimationFrame(()=>{ve.current=!1})},[F]);const ae=v=>v in F?v:Object.keys(F).find(x=>F[x].map(N=>N.id).includes(v)),B=v=>{const x=ae(v);return x?Ct(F[x],N=>N.id==v):-1},Qe=()=>{V&&W(V),Me(null),Ve(null)},Se=v=>{Me(v.active.id),Ve(F)},Ye=v=>{const{active:x,over:N}=v,X=N==null?void 0:N.id;if(X==null||x.id in F)return;const H=ae(X),le=ae(x.id);!H||!le||le!==H&&W(Q=>{const te=Q[le],de=Q[H],ge=Ct(de,_e=>_e.id==X),Ze=Ct(te,_e=>_e.id==x.id);let Z;if(X in Q)Z=de.length+1;else{const pt=N&&x.rect.current.translated&&x.rect.current.translated.top>N.rect.top+N.rect.height?1:0;Z=ge>=0?ge+pt:de.length+1}return k(x.id),ve.current=!0,{...Q,[le]:Q[le].filter(_e=>_e.id!=x.id),[H]:[...Q[H].slice(0,Z),Q[le][Ze],...Q[H].slice(Z,Q[H].length)]}})},$=v=>{const{active:x,over:N}=v;var X=!1,H=oi.cloneDeep(F);x.id in F&&(N!=null&&N.id)&&Te(ne=>{X=!0;const re=ne.indexOf(x.id),Ie=ne.indexOf(N.id);var et=jt(ne,re,Ie);return x.id!==N.id&&P(v,et),et});const le=ae(x.id);if(!le){Me(null);return}const Q=N==null?void 0:N.id;if(Q==null){Me(null);return}const te=ae(Q);if(te){const ne=Ct(F[le],Ie=>Ie.id==x.id),re=Ct(F[te],Ie=>Ie.id==Q);ne!==re&&(H={...H,[te]:jt(H[te],ne,re)},W(Ie=>({...Ie,[te]:jt(Ie[te],ne,re)})))}if(!X){var de,ge=null,Ze,Z=-1,_e=Object.keys(V),pt=Object.keys(H);_e.forEach(ne=>{if(V[ne].map(re=>re.id.toString()).includes(x.id.toString())){de=ne,Ze=Ct(V[ne],re=>re.id==x.id);return}}),pt.forEach(ne=>{if(H[ne].map(re=>re.id.toString()).includes(x.id.toString())){ge=ne,Z=Ct(H[ne],re=>re.id==x.id);return}}),de===ge&&Ze!==Z&&K(v,H,ge),de!==ge&&k(v,H,ge,de)}Me(null)},We=v=>{var x=null;return Oe.forEach(N=>{F[N].forEach(X=>{if(X.id==v){x=X;return}})}),Y.jsx(Nn,{value:v,handle:f,cardProps:D,style:h({containerId:ae(v),overIndex:-1,index:B(v),value:v,isSorting:!0,isDragging:!0,isDragOverlay:!0}),color:Pn(x==null?void 0:x.color,je),wrapperStyle:w({index:0}),renderItem:b,dragOverlay:!0,children:qe(x==null?void 0:x.content,v,{...D,item:x})||{name:v}})},Fe=v=>Y.jsx(Zr,{label:ht(v),columns:c,style:{height:"100%"},shadow:!0,unstyled:!1,containerId:v,renderFooterContent:De,children:F[v].map((x,N)=>Y.jsx(Nn,{cardProps:D,value:x.id,handle:f,style:h({containerId:v,overIndex:-1,index:B(x),value:x,isDragging:!1,isSorting:!1,isDragOverlay:!1}),color:Pn(x==null?void 0:x.color,je),wrapperStyle:w({index:N}),renderItem:b,children:qe(x==null?void 0:x.content,x==null?void 0:x.id,{...D,item:x,containerId:v})},x.id))}),ht=v=>{let x=c==null?void 0:c.find(N=>N.id==(v==null?void 0:v.toString()));return ce.renderCustomElement(ce.getCustomRenderById("KANBAN_HEADER",v,J),{...E,item:{[v]:F[v]},column:x},x==null?void 0:x.header,!0)||ce.renderCustomElement(ce.getCustomRenderById("KANBAN_HEADER",null,J),{...E,item:{[v]:F[v]},column:x},x==null?void 0:x.header,!0)||Y.jsx(ii,{id:v,color:j,size:ee,item:{[v]:F[v]},column:x,...E,children:x==null?void 0:x.header})},De=v=>ce.renderCustomElement(ce.getCustomRenderById("KANBAN_FOOTER",v,J),{...M,id:v},null)||ce.renderCustomElement(ce.getCustomRenderById("KANBAN_FOOTER",null,J),{...M,id:v},null),qe=(v,x,N)=>ce.renderCustomElement(ce.getCustomRenderById("KANBAN_CARD",x,J),{...N},v,!0)||ce.renderCustomElement(ce.getCustomRenderById("KANBAN_CARD",null,J),{...N},v,!0)||Y.jsx(Cr.KanbanCard,{color:j,size:ee,...N,children:v});return Y.jsx(ha,{ref:t,...Ce,children:Y.jsxs(ys,{measuring:{droppable:{strategy:Tt.Always}},sensors:Ne,collisionDetection:Je,modifiers:A,cancelDrop:l,onDragCancel:Qe,onDragStart:Se,onDragOver:Ye,onDragEnd:$,children:[Y.jsx(pa,{horizontalDisplay:n,verticalDisplay:o,children:Y.jsx(xr,{items:[...Oe],strategy:o?mr:Fs,children:Oe.map(v=>Y.jsx(ma,{id:v,label:y?void 0:ht(v),items:F[v],color:j,scrollable:R,style:d,unstyled:y,containerId:v,renderFooterContent:De,maxContainerHeight:T,...E,children:Y.jsx(xr,{items:F[v],strategy:C,children:F[v].map((x,N)=>Y.jsx(xa,{disabled:ze||(x==null?void 0:x.disabled),id:x.id,item:x,index:N,style:h,wrapperStyle:w,renderItem:b,containerId:v,getIndex:B,cardProps:D,theme:je,renderContent:qe},x.id))})},v))})}),Et.reactDomExports.createPortal(Y.jsx($s,{adjustScale:i,dropAnimation:ba,children:se?Oe.includes(se)?Fe(se):We(se):null}),document.body)]})})});eo.propTypes={horizontalDisplay:U.PropTypes.bool,verticalDisplay:U.PropTypes.bool,adjustScale:U.PropTypes.bool,itemCount:U.PropTypes.bool,cancelDrop:U.PropTypes.func,columns:U.PropTypes.array,handle:U.PropTypes.bool,getItemStyles:U.PropTypes.func,wrapperStyle:U.PropTypes.func,minimal:U.PropTypes.bool,renderItem:U.PropTypes.func,scrollable:U.PropTypes.bool,cardProps:U.PropTypes.any,headerProps:U.PropTypes.any,footerProps:U.PropTypes.any,data:U.PropTypes.object,columnInfo:U.PropTypes.object,onColumnMoved:U.PropTypes.func,onCardMoved:U.PropTypes.func,onCardChangedColumns:U.PropTypes.func,maxContainerHeight:U.PropTypes.string,className:U.PropTypes.string,style:U.PropTypes.object,color:U.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:U.PropTypes.oneOf(["small","medium","large"])};module.exports=eo;