ivt 0.2.9 → 0.3.1

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 (166) hide show
  1. package/dist/accordion/index.mjs +1 -1
  2. package/dist/alert/index.mjs +1 -1
  3. package/dist/alert-dialog/index.mjs +1 -1
  4. package/dist/avatar/index.mjs +1 -1
  5. package/dist/badge/index.d.ts +2 -1
  6. package/dist/badge/index.mjs +1 -1
  7. package/dist/base/index.mjs +1 -1
  8. package/dist/base/index.mjs.map +1 -1
  9. package/dist/button/index.mjs +1 -1
  10. package/dist/calendar/index.mjs +1 -1
  11. package/dist/card/index.mjs +1 -1
  12. package/dist/chart/index.mjs +1 -1
  13. package/dist/checkbox/index.mjs +1 -1
  14. package/dist/chunks/{_commonjsHelpers-Bjj-JKBe.mjs → _commonjsHelpers-6qLFzZa5.mjs} +1 -1
  15. package/dist/chunks/_commonjsHelpers-6qLFzZa5.mjs.map +1 -0
  16. package/dist/chunks/{accordion-Dl9OR3bi.mjs → accordion-CdshDFZC.mjs} +2 -2
  17. package/dist/chunks/{accordion-Dl9OR3bi.mjs.map → accordion-CdshDFZC.mjs.map} +1 -1
  18. package/dist/chunks/badge-BYqshEmA.mjs +2 -0
  19. package/dist/chunks/badge-BYqshEmA.mjs.map +1 -0
  20. package/dist/chunks/{bundle-mjs-DRUwh-0R.mjs → bundle-mjs-9BXytT_r.mjs} +1 -1
  21. package/dist/chunks/{bundle-mjs-DRUwh-0R.mjs.map → bundle-mjs-9BXytT_r.mjs.map} +1 -1
  22. package/dist/chunks/{button-Dhe5fFAk.mjs → button-DrFZXJ7z.mjs} +2 -2
  23. package/dist/chunks/{button-Dhe5fFAk.mjs.map → button-DrFZXJ7z.mjs.map} +1 -1
  24. package/dist/chunks/{calendar-CvUHWFGI.mjs → calendar-BY6t8wdJ.mjs} +2 -2
  25. package/dist/chunks/{calendar-CvUHWFGI.mjs.map → calendar-BY6t8wdJ.mjs.map} +1 -1
  26. package/dist/chunks/check-CimnOyD7.mjs +2 -0
  27. package/dist/chunks/{check-CTdDPXjk.mjs.map → check-CimnOyD7.mjs.map} +1 -1
  28. package/dist/chunks/chevron-down-D3fvbjxE.mjs +2 -0
  29. package/dist/chunks/{chevron-down-DDHw_qmV.mjs.map → chevron-down-D3fvbjxE.mjs.map} +1 -1
  30. package/dist/chunks/chevron-left-CrN7DlXg.mjs +2 -0
  31. package/dist/chunks/{chevron-left-CjUEKmgQ.mjs.map → chevron-left-CrN7DlXg.mjs.map} +1 -1
  32. package/dist/chunks/chevron-right-BMSCuDGK.mjs +2 -0
  33. package/dist/chunks/{chevron-right-BaRUY2Lm.mjs.map → chevron-right-BMSCuDGK.mjs.map} +1 -1
  34. package/dist/chunks/chevrons-up-down-DBgvRkZm.mjs +2 -0
  35. package/dist/chunks/chevrons-up-down-DBgvRkZm.mjs.map +1 -0
  36. package/dist/chunks/circle-CGqt18Bd.mjs +2 -0
  37. package/dist/chunks/{circle-B6AT9LZB.mjs.map → circle-CGqt18Bd.mjs.map} +1 -1
  38. package/dist/chunks/{command-B20MmNTS.mjs → command-C6ON-ciq.mjs} +2 -2
  39. package/dist/chunks/{command-B20MmNTS.mjs.map → command-C6ON-ciq.mjs.map} +1 -1
  40. package/dist/chunks/{createLucideIcon-Bub0IDlo.mjs → createLucideIcon-L-tld2uc.mjs} +1 -1
  41. package/dist/chunks/{createLucideIcon-Bub0IDlo.mjs.map → createLucideIcon-L-tld2uc.mjs.map} +1 -1
  42. package/dist/chunks/{dialog-DvFOk-pv.mjs → dialog-36eqHzT3.mjs} +2 -2
  43. package/dist/chunks/{dialog-DvFOk-pv.mjs.map → dialog-36eqHzT3.mjs.map} +1 -1
  44. package/dist/chunks/{hover-card-D8uFTCNm.mjs → hover-card-Cnd58du6.mjs} +2 -2
  45. package/dist/chunks/{hover-card-D8uFTCNm.mjs.map → hover-card-Cnd58du6.mjs.map} +1 -1
  46. package/dist/chunks/{index-Bv09gbbz.mjs → index-B4QsDzeM.mjs} +1 -1
  47. package/dist/chunks/{index-Bv09gbbz.mjs.map → index-B4QsDzeM.mjs.map} +1 -1
  48. package/dist/chunks/{index-B7nzlBcT.mjs → index-BdpYc58_.mjs} +2 -2
  49. package/dist/chunks/{index-B7nzlBcT.mjs.map → index-BdpYc58_.mjs.map} +1 -1
  50. package/dist/chunks/{index-DBp_Gx1M.mjs → index-CCcl327A.mjs} +1 -1
  51. package/dist/chunks/{index-DBp_Gx1M.mjs.map → index-CCcl327A.mjs.map} +1 -1
  52. package/dist/chunks/{index-DZgHf-gI.mjs → index-CLtWFQL5.mjs} +1 -1
  53. package/dist/chunks/{index-DZgHf-gI.mjs.map → index-CLtWFQL5.mjs.map} +1 -1
  54. package/dist/chunks/{index-DmBXPUeL.mjs → index-COvW87ew.mjs} +1 -1
  55. package/dist/chunks/{index-DmBXPUeL.mjs.map → index-COvW87ew.mjs.map} +1 -1
  56. package/dist/chunks/{index-ZCQr-O7f.mjs → index-CRxQlsb9.mjs} +2 -2
  57. package/dist/chunks/{index-ZCQr-O7f.mjs.map → index-CRxQlsb9.mjs.map} +1 -1
  58. package/dist/chunks/{index-Bt73Afz2.mjs → index-CU_y1XAz.mjs} +1 -1
  59. package/dist/chunks/{index-Bt73Afz2.mjs.map → index-CU_y1XAz.mjs.map} +1 -1
  60. package/dist/chunks/{index-Cu6LwID6.mjs → index-CXszXOf_.mjs} +1 -1
  61. package/dist/chunks/{index-Cu6LwID6.mjs.map → index-CXszXOf_.mjs.map} +1 -1
  62. package/dist/chunks/{index-CaYe_hNP.mjs → index-CdJCOoFA.mjs} +1 -1
  63. package/dist/chunks/{index-CaYe_hNP.mjs.map → index-CdJCOoFA.mjs.map} +1 -1
  64. package/dist/chunks/{index-DheYAHt3.mjs → index-Cpq7N5Ej.mjs} +1 -1
  65. package/dist/chunks/{index-DheYAHt3.mjs.map → index-Cpq7N5Ej.mjs.map} +1 -1
  66. package/dist/chunks/{index-VuwFoF4R.mjs → index-CybgQKpz.mjs} +2 -2
  67. package/dist/chunks/{index-VuwFoF4R.mjs.map → index-CybgQKpz.mjs.map} +1 -1
  68. package/dist/chunks/{index-C4C3l5WF.mjs → index-D2sZp5OP.mjs} +2 -2
  69. package/dist/chunks/{index-C4C3l5WF.mjs.map → index-D2sZp5OP.mjs.map} +1 -1
  70. package/dist/chunks/{index-Bo9g9ZHj.mjs → index-DOyt-JEx.mjs} +2 -2
  71. package/dist/chunks/{index-Bo9g9ZHj.mjs.map → index-DOyt-JEx.mjs.map} +1 -1
  72. package/dist/chunks/{index-BOWDavn2.mjs → index-DUNcuWJE.mjs} +2 -2
  73. package/dist/chunks/{index-BOWDavn2.mjs.map → index-DUNcuWJE.mjs.map} +1 -1
  74. package/dist/chunks/{index-czDftnY4.mjs → index-DZHMFdr0.mjs} +2 -2
  75. package/dist/chunks/{index-czDftnY4.mjs.map → index-DZHMFdr0.mjs.map} +1 -1
  76. package/dist/chunks/{index-0ahJ1Q21.mjs → index-LvOFIVGz.mjs} +2 -2
  77. package/dist/chunks/{index-0ahJ1Q21.mjs.map → index-LvOFIVGz.mjs.map} +1 -1
  78. package/dist/chunks/{index-CzTsDkbO.mjs → index-lvPXnk5F.mjs} +2 -2
  79. package/dist/chunks/{index-CzTsDkbO.mjs.map → index-lvPXnk5F.mjs.map} +1 -1
  80. package/dist/chunks/{index-gfwlB8lL.mjs → index-vmPXTidH.mjs} +2 -2
  81. package/dist/chunks/{index-gfwlB8lL.mjs.map → index-vmPXTidH.mjs.map} +1 -1
  82. package/dist/chunks/{index-DuDVR7ID.mjs → index-w9bxia3O.mjs} +1 -1
  83. package/dist/chunks/{index-DuDVR7ID.mjs.map → index-w9bxia3O.mjs.map} +1 -1
  84. package/dist/chunks/{index-GOFmxCuq.mjs → index-xew3kygQ.mjs} +2 -2
  85. package/dist/chunks/{index-GOFmxCuq.mjs.map → index-xew3kygQ.mjs.map} +1 -1
  86. package/dist/chunks/{input-DnILT0JB.mjs → input-85UFztMJ.mjs} +2 -2
  87. package/dist/chunks/{input-DnILT0JB.mjs.map → input-85UFztMJ.mjs.map} +1 -1
  88. package/dist/chunks/{label-C4MbS7O2.mjs → label-CICFzZIt.mjs} +2 -2
  89. package/dist/chunks/{label-C4MbS7O2.mjs.map → label-CICFzZIt.mjs.map} +1 -1
  90. package/dist/chunks/{pagination-BvnQsAX6.mjs → pagination-CReDQes6.mjs} +2 -2
  91. package/dist/chunks/{pagination-BvnQsAX6.mjs.map → pagination-CReDQes6.mjs.map} +1 -1
  92. package/dist/chunks/{popover-CLYjD1Mz.mjs → popover-Cn2ZTvKd.mjs} +2 -2
  93. package/dist/chunks/{popover-CLYjD1Mz.mjs.map → popover-Cn2ZTvKd.mjs.map} +1 -1
  94. package/dist/chunks/{progress-B7e979vj.mjs → progress-CSxQH6-f.mjs} +2 -2
  95. package/dist/chunks/{progress-B7e979vj.mjs.map → progress-CSxQH6-f.mjs.map} +1 -1
  96. package/dist/chunks/{scroll-area-DeP5Jei7.mjs → scroll-area-CvCz7cL_.mjs} +2 -2
  97. package/dist/chunks/{scroll-area-DeP5Jei7.mjs.map → scroll-area-CvCz7cL_.mjs.map} +1 -1
  98. package/dist/chunks/select-BR6_N_Yo.mjs +2 -0
  99. package/dist/chunks/select-BR6_N_Yo.mjs.map +1 -0
  100. package/dist/chunks/{separator-DbIrm4r-.mjs → separator-BB6-E9Z1.mjs} +2 -2
  101. package/dist/chunks/{separator-DbIrm4r-.mjs.map → separator-BB6-E9Z1.mjs.map} +1 -1
  102. package/dist/chunks/{skeleton-j85jApz0.mjs → skeleton-XPWWiaac.mjs} +2 -2
  103. package/dist/chunks/{skeleton-j85jApz0.mjs.map → skeleton-XPWWiaac.mjs.map} +1 -1
  104. package/dist/chunks/{sortable-D6tXnjgL.mjs → sortable-CqPFGn8Q.mjs} +2 -2
  105. package/dist/chunks/{sortable-D6tXnjgL.mjs.map → sortable-CqPFGn8Q.mjs.map} +1 -1
  106. package/dist/chunks/{table-BsrKQPpM.mjs → table-LQIHzPHi.mjs} +2 -2
  107. package/dist/chunks/{table-BsrKQPpM.mjs.map → table-LQIHzPHi.mjs.map} +1 -1
  108. package/dist/chunks/{toggle-DFi2H45K.mjs → toggle-Co72WXGd.mjs} +2 -2
  109. package/dist/chunks/{toggle-DFi2H45K.mjs.map → toggle-Co72WXGd.mjs.map} +1 -1
  110. package/dist/chunks/tooltip-qX2HjdJP.mjs +2 -0
  111. package/dist/chunks/tooltip-qX2HjdJP.mjs.map +1 -0
  112. package/dist/chunks/{tslib.es6-mR5Ag05r.mjs → tslib.es6-cMGqxriw.mjs} +1 -1
  113. package/dist/chunks/{tslib.es6-mR5Ag05r.mjs.map → tslib.es6-cMGqxriw.mjs.map} +1 -1
  114. package/dist/chunks/{utils-C1EKaz-p.mjs → utils-BctauAA9.mjs} +2 -2
  115. package/dist/chunks/{utils-C1EKaz-p.mjs.map → utils-BctauAA9.mjs.map} +1 -1
  116. package/dist/chunks/x-BNLl0E-E.mjs +2 -0
  117. package/dist/chunks/{x-B1PdcxpA.mjs.map → x-BNLl0E-E.mjs.map} +1 -1
  118. package/dist/combobox/index.mjs +1 -1
  119. package/dist/combobox/index.mjs.map +1 -1
  120. package/dist/command/index.mjs +1 -1
  121. package/dist/data-table/index.mjs +1 -1
  122. package/dist/dialog/index.mjs +1 -1
  123. package/dist/dropdown-menu/index.mjs +1 -1
  124. package/dist/dropzone/index.mjs +1 -1
  125. package/dist/form/index.mjs +1 -1
  126. package/dist/hover-card/index.mjs +1 -1
  127. package/dist/icon/index.mjs +1 -1
  128. package/dist/index.css +1 -1
  129. package/dist/input/index.mjs +1 -1
  130. package/dist/ivt.css +1 -1
  131. package/dist/label/index.mjs +1 -1
  132. package/dist/menubar/index.mjs +1 -1
  133. package/dist/multi-select/index.d.ts +5 -1
  134. package/dist/multi-select/index.mjs +1 -1
  135. package/dist/multi-select/index.mjs.map +1 -1
  136. package/dist/pagination/index.mjs +1 -1
  137. package/dist/popover/index.mjs +1 -1
  138. package/dist/progress/index.mjs +1 -1
  139. package/dist/radio-group/index.mjs +1 -1
  140. package/dist/scroll-area/index.mjs +1 -1
  141. package/dist/select/index.d.ts +13 -11
  142. package/dist/select/index.mjs +1 -1
  143. package/dist/separator/index.mjs +1 -1
  144. package/dist/sheet/index.mjs +1 -1
  145. package/dist/skeleton/index.mjs +1 -1
  146. package/dist/sortable/index.mjs +1 -1
  147. package/dist/table/index.mjs +1 -1
  148. package/dist/tabs/index.mjs +1 -1
  149. package/dist/textarea/index.mjs +1 -1
  150. package/dist/toast/index.mjs +1 -1
  151. package/dist/toggle/index.mjs +1 -1
  152. package/dist/toggle-group/index.mjs +1 -1
  153. package/dist/tooltip/index.mjs +1 -1
  154. package/dist/tooltip/index.mjs.map +1 -1
  155. package/package.json +3 -3
  156. package/dist/chunks/_commonjsHelpers-Bjj-JKBe.mjs.map +0 -1
  157. package/dist/chunks/badge-CPhxsSVZ.mjs +0 -2
  158. package/dist/chunks/badge-CPhxsSVZ.mjs.map +0 -1
  159. package/dist/chunks/check-CTdDPXjk.mjs +0 -2
  160. package/dist/chunks/chevron-down-DDHw_qmV.mjs +0 -2
  161. package/dist/chunks/chevron-left-CjUEKmgQ.mjs +0 -2
  162. package/dist/chunks/chevron-right-BaRUY2Lm.mjs +0 -2
  163. package/dist/chunks/circle-B6AT9LZB.mjs +0 -2
  164. package/dist/chunks/select-BdrpNh7G.mjs +0 -2
  165. package/dist/chunks/select-BdrpNh7G.mjs.map +0 -1
  166. package/dist/chunks/x-B1PdcxpA.mjs +0 -2
@@ -1,2 +1,2 @@
1
1
  import*as e from"react";function r(r){const u=e.useRef({value:r,previous:r});return e.useMemo(()=>(u.current.value!==r&&(u.current.previous=u.current.value,u.current.value=r),u.current.previous),[r])}export{r as u};
2
- //# sourceMappingURL=index-Bv09gbbz.mjs.map
2
+ //# sourceMappingURL=index-B4QsDzeM.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-Bv09gbbz.mjs","sources":["../../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React","useRef","previous","useMemo","current"],"mappings":"wBAEA,SAASA,EAAeC,GACtB,MAAMC,EAAYC,EAAAC,OAAO,CAAEH,QAAOI,SAAUJ,IAK5C,OAAaE,EAAAG,QAAQ,KACfJ,EAAIK,QAAQN,QAAUA,IACxBC,EAAIK,QAAQF,SAAWH,EAAIK,QAAQN,MACnCC,EAAIK,QAAQN,MAAQA,GAEfC,EAAIK,QAAQF,UAClB,CAACJ,GACN","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-B4QsDzeM.mjs","sources":["../../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React","useRef","previous","useMemo","current"],"mappings":"wBAEA,SAASA,EAAeC,GACtB,MAAMC,EAAYC,EAAAC,OAAO,CAAEH,QAAOI,SAAUJ,IAK5C,OAAaE,EAAAG,QAAQ,KACfJ,EAAIK,QAAQN,QAAUA,IACxBC,EAAIK,QAAQF,SAAWH,EAAIK,QAAQN,MACnCC,EAAIK,QAAQN,MAAQA,GAEfC,EAAIK,QAAQF,UAClB,CAACJ,GACN","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{u as n}from"./index-DmBXPUeL.mjs";import{u as t}from"./index-DZgHf-gI.mjs";var r=r=>{const{present:o,children:u}=r,s=function(n){const[r,o]=e.useState(),u=e.useRef(null),s=e.useRef(n),a=e.useRef("none"),c=n?"mounted":"unmounted",[m,d]=function(n,t){return e.useReducer((e,n)=>t[e][n]??e,n)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=i(u.current);a.current="mounted"===m?e:"none"},[m]),t(()=>{const e=u.current,t=s.current;if(t!==n){const r=a.current,o=i(e);if(n)d("MOUNT");else if("none"===o||"none"===e?.display)d("UNMOUNT");else{d(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=n}},[n,d]),t(()=>{if(r){let e;const n=r.ownerDocument.defaultView??window,t=t=>{const o=i(u.current).includes(t.animationName);if(t.target===r&&o&&(d("ANIMATION_END"),!s.current)){const t=r.style.animationFillMode;r.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=t)})}},o=e=>{e.target===r&&(a.current=i(u.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{n.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:e.useCallback(e=>{u.current=e?getComputedStyle(e):null,o(e)},[])}}(o),a="function"==typeof u?u({present:s.isPresent}):e.Children.only(u),c=n(s.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof u||s.isPresent?e.cloneElement(a,{ref:c}):null};function i(e){return e?.animationName||"none"}r.displayName="Presence";export{r as P};
2
- //# sourceMappingURL=index-B7nzlBcT.mjs.map
1
+ import*as e from"react";import{u as n}from"./index-COvW87ew.mjs";import{u as t}from"./index-CLtWFQL5.mjs";var r=r=>{const{present:o,children:u}=r,s=function(n){const[r,o]=e.useState(),u=e.useRef(null),s=e.useRef(n),a=e.useRef("none"),c=n?"mounted":"unmounted",[m,d]=function(n,t){return e.useReducer((e,n)=>t[e][n]??e,n)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=i(u.current);a.current="mounted"===m?e:"none"},[m]),t(()=>{const e=u.current,t=s.current;if(t!==n){const r=a.current,o=i(e);if(n)d("MOUNT");else if("none"===o||"none"===e?.display)d("UNMOUNT");else{d(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=n}},[n,d]),t(()=>{if(r){let e;const n=r.ownerDocument.defaultView??window,t=t=>{const o=i(u.current).includes(t.animationName);if(t.target===r&&o&&(d("ANIMATION_END"),!s.current)){const t=r.style.animationFillMode;r.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=t)})}},o=e=>{e.target===r&&(a.current=i(u.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{n.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:e.useCallback(e=>{u.current=e?getComputedStyle(e):null,o(e)},[])}}(o),a="function"==typeof u?u({present:s.isPresent}):e.Children.only(u),c=n(s.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof u||s.isPresent?e.cloneElement(a,{ref:c}):null};function i(e){return e?.animationName||"none"}r.displayName="Presence";export{r as P};
2
+ //# sourceMappingURL=index-BdpYc58_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-B7nzlBcT.mjs","sources":["../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Presence","props","present","children","presence","node","setNode","React2","useState","stylesRef","useRef","prevPresentRef","prevAnimationNameRef","initialState","state","send","useStateMachine","mounted","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","useEffect","currentAnimationName","getAnimationName","current","useLayoutEffect","styles","wasPresent","prevAnimationName","display","timeoutId","ownerWindow","ownerDocument","defaultView","window","handleAnimationEnd","event","isCurrentAnimation","includes","animationName","target","currentFillMode","style","animationFillMode","setTimeout","handleAnimationStart","addEventListener","clearTimeout","removeEventListener","isPresent","ref","useCallback","getComputedStyle","usePresence","child","Children","only","useComposedRefs","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","cloneElement","displayName"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-BdpYc58_.mjs","sources":["../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Presence","props","present","children","presence","node","setNode","React2","useState","stylesRef","useRef","prevPresentRef","prevAnimationNameRef","initialState","state","send","useStateMachine","mounted","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","useEffect","currentAnimationName","getAnimationName","current","useLayoutEffect","styles","wasPresent","prevAnimationName","display","timeoutId","ownerWindow","ownerDocument","defaultView","window","handleAnimationEnd","event","isCurrentAnimation","includes","animationName","target","currentFillMode","style","animationFillMode","setTimeout","handleAnimationStart","addEventListener","clearTimeout","removeEventListener","isPresent","ref","useCallback","getComputedStyle","usePresence","child","Children","only","useComposedRefs","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","cloneElement","displayName"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  import*as e from"react";import{jsx as t}from"react/jsx-runtime";function r(r,n){const o=e.createContext(n),c=r=>{const{children:n,...c}=r,s=e.useMemo(()=>c,Object.values(c));return t(o.Provider,{value:s,children:n})};return c.displayName=r+"Provider",[c,function(t){const c=e.useContext(o);if(c)return c;if(void 0!==n)return n;throw new Error(`\`${t}\` must be used within \`${r}\``)}]}function n(r,n=[]){let c=[];const s=()=>{const t=c.map(t=>e.createContext(t));return function(n){const o=n?.[r]||t;return e.useMemo(()=>({[`__scope${r}`]:{...n,[r]:o}}),[n,o])}};return s.scopeName=r,[function(n,o){const s=e.createContext(o),u=c.length;c=[...c,o];const i=n=>{const{scope:o,children:c,...i}=n,a=o?.[r]?.[u]||s,m=e.useMemo(()=>i,Object.values(i));return t(a.Provider,{value:m,children:c})};return i.displayName=n+"Provider",[i,function(t,c){const i=c?.[r]?.[u]||s,a=e.useContext(i);if(a)return a;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},o(s,...n)]}function o(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=n.reduce((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]}),{});return e.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}export{r as a,n as c};
2
- //# sourceMappingURL=index-DBp_Gx1M.mjs.map
2
+ //# sourceMappingURL=index-CCcl327A.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DBp_Gx1M.mjs","sources":["../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","useMemo","Object","values","jsx","displayName","consumerName","useContext","Error","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","scope","contexts","BaseContext","index","length","composeContextScopes","scopes","baseScope","scopeHooks","useScope","overrideScopes","nextScopes","reduce"],"mappings":"gEAEA,SAASA,EACPC,EACAC,GAEA,MAAMC,EAAgBC,EAAAJ,cAA4CE,GAE5DG,EAAwEC,IAC5E,MAAMC,SAAEA,KAAaC,GAAYF,EAG3BG,EAAcL,EAAAM,QAAQ,IAAMF,EAASG,OAAOC,OAAOJ,IACzD,OAAOK,EAACV,EAAQE,SAAR,CAAiBI,QAAeF,cAa1C,OAVAF,EAASS,YAAcb,EAAoB,WAUpC,CAACI,EARR,SAAoBU,GAClB,MAAMP,EAAgBJ,EAAAY,WAAWb,GACjC,GAAIK,EAAS,OAAOA,EACpB,QAAuB,IAAnBN,EAA8B,OAAOA,EAEzC,MAAM,IAAIe,MAAM,KAAKF,6BAAwCd,MAC/D,EAGF,CAaA,SAASiB,EAAmBC,EAAmBC,EAAwC,IACrF,IAAIC,EAAyB,GA2C7B,MAAMC,EAA2B,KAC/B,MAAMC,EAAgBF,EAAgBG,IAAKtB,GAC5BE,EAAAJ,cAAcE,IAE7B,OAAO,SAAkBuB,GACvB,MAAMC,EAAWD,IAAQN,IAAcI,EACvC,OAAanB,EAAAM,QACX,KAAA,CAAS,CAAC,UAAUS,KAAc,IAAKM,EAAON,CAACA,GAAYO,KAC3D,CAACD,EAAOC,GAEZ,GAIF,OADAJ,EAAYH,UAAYA,EACjB,CAnDP,SACElB,EACAC,GAEA,MAAMyB,EAAoBvB,EAAAJ,cAA4CE,GAChE0B,EAAQP,EAAgBQ,OAC9BR,EAAkB,IAAIA,EAAiBnB,GAEvC,MAAMG,EAEDC,IACH,MAAMmB,MAAEA,EAAAlB,SAAOA,KAAaC,GAAYF,EAClCH,EAAUsB,IAAQN,KAAaS,IAAUD,EAGzClB,EAAcL,EAAAM,QAAQ,IAAMF,EAASG,OAAOC,OAAOJ,IACzD,OAAOK,EAACV,EAAQE,SAAR,CAAiBI,QAAeF,cAc1C,OAXAF,EAASS,YAAcb,EAAoB,WAWpC,CAACI,EATR,SAAoBU,EAAsBU,GACxC,MAAMtB,EAAUsB,IAAQN,KAAaS,IAAUD,EACzCnB,EAAgBJ,EAAAY,WAAWb,GACjC,GAAIK,EAAS,OAAOA,EACpB,QAAuB,IAAnBN,EAA8B,OAAOA,EAEzC,MAAM,IAAIe,MAAM,KAAKF,6BAAwCd,MAC/D,EAGF,EAoBuB6B,EAAqBR,KAAgBF,GAC9D,CAMA,SAASU,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOF,OAAc,OAAOG,EAEhC,MAAMV,EAA2B,KAC/B,MAAMW,EAAaF,EAAOP,IAAKF,IAAAA,CAC7BY,SAAUZ,IACVH,UAAWG,EAAYH,aAGzB,OAAO,SAA2BgB,GAChC,MAAMC,EAAaH,EAAWI,OAAO,CAACD,GAAcF,WAAUf,gBAMrD,IAAKiB,KAFOF,EAASC,GACI,UAAUhB,OAEzC,CAAA,GAEH,OAAaf,EAAAM,QAAQ,KAAA,CAAS,CAAC,UAAUsB,EAAUb,aAAciB,IAAe,CAACA,GACnF,GAIF,OADAd,EAAYH,UAAYa,EAAUb,UAC3BG,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-CCcl327A.mjs","sources":["../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","useMemo","Object","values","jsx","displayName","consumerName","useContext","Error","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","scope","contexts","BaseContext","index","length","composeContextScopes","scopes","baseScope","scopeHooks","useScope","overrideScopes","nextScopes","reduce"],"mappings":"gEAEA,SAASA,EACPC,EACAC,GAEA,MAAMC,EAAgBC,EAAAJ,cAA4CE,GAE5DG,EAAwEC,IAC5E,MAAMC,SAAEA,KAAaC,GAAYF,EAG3BG,EAAcL,EAAAM,QAAQ,IAAMF,EAASG,OAAOC,OAAOJ,IACzD,OAAOK,EAACV,EAAQE,SAAR,CAAiBI,QAAeF,cAa1C,OAVAF,EAASS,YAAcb,EAAoB,WAUpC,CAACI,EARR,SAAoBU,GAClB,MAAMP,EAAgBJ,EAAAY,WAAWb,GACjC,GAAIK,EAAS,OAAOA,EACpB,QAAuB,IAAnBN,EAA8B,OAAOA,EAEzC,MAAM,IAAIe,MAAM,KAAKF,6BAAwCd,MAC/D,EAGF,CAaA,SAASiB,EAAmBC,EAAmBC,EAAwC,IACrF,IAAIC,EAAyB,GA2C7B,MAAMC,EAA2B,KAC/B,MAAMC,EAAgBF,EAAgBG,IAAKtB,GAC5BE,EAAAJ,cAAcE,IAE7B,OAAO,SAAkBuB,GACvB,MAAMC,EAAWD,IAAQN,IAAcI,EACvC,OAAanB,EAAAM,QACX,KAAA,CAAS,CAAC,UAAUS,KAAc,IAAKM,EAAON,CAACA,GAAYO,KAC3D,CAACD,EAAOC,GAEZ,GAIF,OADAJ,EAAYH,UAAYA,EACjB,CAnDP,SACElB,EACAC,GAEA,MAAMyB,EAAoBvB,EAAAJ,cAA4CE,GAChE0B,EAAQP,EAAgBQ,OAC9BR,EAAkB,IAAIA,EAAiBnB,GAEvC,MAAMG,EAEDC,IACH,MAAMmB,MAAEA,EAAAlB,SAAOA,KAAaC,GAAYF,EAClCH,EAAUsB,IAAQN,KAAaS,IAAUD,EAGzClB,EAAcL,EAAAM,QAAQ,IAAMF,EAASG,OAAOC,OAAOJ,IACzD,OAAOK,EAACV,EAAQE,SAAR,CAAiBI,QAAeF,cAc1C,OAXAF,EAASS,YAAcb,EAAoB,WAWpC,CAACI,EATR,SAAoBU,EAAsBU,GACxC,MAAMtB,EAAUsB,IAAQN,KAAaS,IAAUD,EACzCnB,EAAgBJ,EAAAY,WAAWb,GACjC,GAAIK,EAAS,OAAOA,EACpB,QAAuB,IAAnBN,EAA8B,OAAOA,EAEzC,MAAM,IAAIe,MAAM,KAAKF,6BAAwCd,MAC/D,EAGF,EAoBuB6B,EAAqBR,KAAgBF,GAC9D,CAMA,SAASU,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOF,OAAc,OAAOG,EAEhC,MAAMV,EAA2B,KAC/B,MAAMW,EAAaF,EAAOP,IAAKF,IAAAA,CAC7BY,SAAUZ,IACVH,UAAWG,EAAYH,aAGzB,OAAO,SAA2BgB,GAChC,MAAMC,EAAaH,EAAWI,OAAO,CAACD,GAAcF,WAAUf,gBAMrD,IAAKiB,KAFOF,EAASC,GACI,UAAUhB,OAEzC,CAAA,GAEH,OAAaf,EAAAM,QAAQ,KAAA,CAAS,CAAC,UAAUsB,EAAUb,aAAciB,IAAe,CAACA,GACnF,GAIF,OADAd,EAAYH,UAAYa,EAAUb,UAC3BG,CACT","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  import*as a from"react";var o=globalThis?.document?a.useLayoutEffect:()=>{};export{o as u};
2
- //# sourceMappingURL=index-DZgHf-gI.mjs.map
2
+ //# sourceMappingURL=index-CLtWFQL5.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DZgHf-gI.mjs","sources":["../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect","globalThis","document","React"],"mappings":"wBASA,IAAMA,EAAkBC,YAAYC,SAAiBC,EAAAH,gBAAkB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-CLtWFQL5.mjs","sources":["../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect","globalThis","document","React"],"mappings":"wBASA,IAAMA,EAAkBC,YAAYC,SAAiBC,EAAAH,gBAAkB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  import*as n from"react";function t(n,t){if("function"==typeof n)return n(t);null!=n&&(n.current=t)}function r(...n){return r=>{let o=!1;const u=n.map(n=>{const u=t(n,r);return o||"function"!=typeof u||(o=!0),u});if(o)return()=>{for(let r=0;r<u.length;r++){const o=u[r];"function"==typeof o?o():t(n[r],null)}}}}function o(...t){return n.useCallback(r(...t),t)}export{r as c,o as u};
2
- //# sourceMappingURL=index-DmBXPUeL.mjs.map
2
+ //# sourceMappingURL=index-COvW87ew.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DmBXPUeL.mjs","sources":["../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","i","length","useComposedRefs","React","useCallback"],"mappings":"wBAQA,SAASA,EAAUC,EAAqBC,GACtC,GAAmB,mBAARD,EACT,OAAOA,EAAIC,GACFD,UACTA,EAAIE,QAAUD,EAElB,CAMA,SAASE,KAAkBC,GACzB,OAAQC,IACN,IAAIC,GAAa,EACjB,MAAMC,EAAWH,EAAKI,IAAKR,IACzB,MAAMS,EAAUV,EAAOC,EAAKK,GAI5B,OAHKC,GAAgC,mBAAXG,IACxBH,GAAa,GAERG,IAOT,GAAIH,EACF,MAAO,KACL,IAAA,IAASI,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAAK,CACxC,MAAMD,EAAUF,EAASG,GACH,mBAAXD,EACTA,IAEAV,EAAOK,EAAKM,GAAI,KAEpB,GAIR,CAMA,SAASE,KAAsBR,GAE7B,OAAaS,EAAAC,YAAYX,KAAeC,GAAOA,EACjD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-COvW87ew.mjs","sources":["../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","i","length","useComposedRefs","React","useCallback"],"mappings":"wBAQA,SAASA,EAAUC,EAAqBC,GACtC,GAAmB,mBAARD,EACT,OAAOA,EAAIC,GACFD,UACTA,EAAIE,QAAUD,EAElB,CAMA,SAASE,KAAkBC,GACzB,OAAQC,IACN,IAAIC,GAAa,EACjB,MAAMC,EAAWH,EAAKI,IAAKR,IACzB,MAAMS,EAAUV,EAAOC,EAAKK,GAI5B,OAHKC,GAAgC,mBAAXG,IACxBH,GAAa,GAERG,IAOT,GAAIH,EACF,MAAO,KACL,IAAA,IAASI,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAAK,CACxC,MAAMD,EAAUF,EAASG,GACH,mBAAXD,EACTA,IAEAV,EAAOK,EAAKM,GAAI,KAEpB,GAIR,CAMA,SAASE,KAAsBR,GAE7B,OAAaS,EAAAC,YAAYX,KAAeC,GAAOA,EACjD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import*as r from"react";import{u as t}from"./index-DZgHf-gI.mjs";var i=r[" useId ".trim().toString()]||(()=>{}),o=0;function a(a){const[e,n]=r.useState(i());return t(()=>{n(r=>r??String(o++))},[a]),e?`radix-${e}`:""}export{a as u};
2
- //# sourceMappingURL=index-ZCQr-O7f.mjs.map
1
+ import*as r from"react";import{u as t}from"./index-CLtWFQL5.mjs";var i=r[" useId ".trim().toString()]||(()=>{}),o=0;function a(a){const[e,n]=r.useState(i());return t(()=>{n(r=>r??String(o++))},[a]),e?`radix-${e}`:""}export{a as u};
2
+ //# sourceMappingURL=index-CRxQlsb9.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-ZCQr-O7f.mjs","sources":["../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","trim","toString","count","useId","deterministicId","id","setId","useState","useLayoutEffect","reactId","String"],"mappings":"iEAIA,IAAMA,EAAcC,EAAc,UAAUC,OAAOC,aAAU,MAAY,GACrEC,EAAQ,EAEZ,SAASC,EAAMC,GACb,MAAOC,EAAIC,GAAeP,EAAAQ,SAA6BT,KAKvD,OAHAU,EAAgB,KACQF,EAAOG,GAAYA,GAAWC,OAAOR,OAC1D,CAACE,IACuBC,EAAK,SAASA,IAAO,EAClD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-CRxQlsb9.mjs","sources":["../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","trim","toString","count","useId","deterministicId","id","setId","useState","useLayoutEffect","reactId","String"],"mappings":"iEAIA,IAAMA,EAAcC,EAAc,UAAUC,OAAOC,aAAU,MAAY,GACrEC,EAAQ,EAEZ,SAASC,EAAMC,GACb,MAAOC,EAAIC,GAAeP,EAAAQ,SAA6BT,KAKvD,OAHAU,EAAgB,KACQF,EAAOG,GAAYA,GAAWC,OAAOR,OAC1D,CAACE,IACuBC,EAAK,SAASA,IAAO,EAClD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  import*as t from"react";import"react/jsx-runtime";var r=t.createContext(void 0);function e(e){const o=t.useContext(r);return e||o||"ltr"}export{e as u};
2
- //# sourceMappingURL=index-Bt73Afz2.mjs.map
2
+ //# sourceMappingURL=index-CU_y1XAz.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-Bt73Afz2.mjs","sources":["../../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","createContext","useDirection","localDir","globalDir","useContext"],"mappings":"kDAGA,IAAMA,EAAyBC,EAAAC,mBAAqC,GAiBpE,SAASC,EAAaC,GACpB,MAAMC,EAAkBJ,EAAAK,WAAWN,GACnC,OAAOI,GAAYC,GAAa,KAClC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-CU_y1XAz.mjs","sources":["../../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","createContext","useDirection","localDir","globalDir","useContext"],"mappings":"kDAGA,IAAMA,EAAyBC,EAAAC,mBAAqC,GAiBpE,SAASC,EAAaC,GACpB,MAAMC,EAAkBJ,EAAAK,WAAWN,GACnC,OAAOI,GAAYC,GAAa,KAClC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  import*as e from"react";function r(r){const t=e.useRef(r);return e.useEffect(()=>{t.current=r}),e.useMemo(()=>(...e)=>t.current?.(...e),[])}export{r as u};
2
- //# sourceMappingURL=index-Cu6LwID6.mjs.map
2
+ //# sourceMappingURL=index-CXszXOf_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-Cu6LwID6.mjs","sources":["../../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","useRef","useEffect","current","useMemo","args"],"mappings":"wBAMA,SAASA,EAAkDC,GACzD,MAAMC,EAAoBC,EAAAC,OAAOH,GAOjC,OALME,EAAAE,UAAU,KACdH,EAAYI,QAAUL,IAIXE,EAAAI,QAAQ,IAAO,IAAIC,IAASN,EAAYI,aAAaE,GAAa,GACjF","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-CXszXOf_.mjs","sources":["../../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","useRef","useEffect","current","useMemo","args"],"mappings":"wBAMA,SAASA,EAAkDC,GACzD,MAAMC,EAAoBC,EAAAC,OAAOH,GAOjC,OALME,EAAAE,UAAU,KACdH,EAAYI,QAAUL,IAIXE,EAAAI,QAAQ,IAAO,IAAIC,IAASN,EAAYI,aAAaE,GAAa,GACjF","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  function e(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}export{e as c};
2
- //# sourceMappingURL=index-CaYe_hNP.mjs.map
2
+ //# sourceMappingURL=index-CdJCOoFA.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-CaYe_hNP.mjs","sources":["../../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event","defaultPrevented"],"mappings":"AAAA,SAASA,EACPC,EACAC,GACAC,yBAAEA,GAA2B,GAAS,IAEtC,OAAO,SAAqBC,GAG1B,GAFAH,IAAuBG,IAEU,IAA7BD,IAAuCC,EAAMC,iBAC/C,OAAOH,IAAkBE,EAE7B,CACF","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-CdJCOoFA.mjs","sources":["../../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event","defaultPrevented"],"mappings":"AAAA,SAASA,EACPC,EACAC,GACAC,yBAAEA,GAA2B,GAAS,IAEtC,OAAO,SAAqBC,GAG1B,GAFAH,IAAuBG,IAEU,IAA7BD,IAAuCC,EAAMC,iBAC/C,OAAOH,IAAkBE,EAE7B,CACF","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  import t from"react";var e,n={exports:{}},r={};var o,u,i={};function a(){return u||(u=1,"production"===process.env.NODE_ENV?n.exports=function(){if(e)return r;e=1;var n=t,o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=n.useState,i=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=u({inst:{value:n,getSnapshot:e}}),o=r[0].inst,f=r[1];return a(function(){o.value=n,o.getSnapshot=e,s(o)&&f({inst:o})},[t,n,e]),i(function(){return s(o)&&f({inst:o}),t(function(){s(o)&&f({inst:o})})},[t]),c(n),n};return r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f,r}():n.exports=(o||(o=1,"production"!==process.env.NODE_ENV&&function(){function e(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!r(t,n)}catch(t){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=t,r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=n.useState,u=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue,s=!1,f=!1,_="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,i){s||void 0===n.startTransition||(s=!0);var _=i();if(!f){var O=i();r(_,O)||(f=!0)}var d=(O=o({inst:{value:_,getSnapshot:i}}))[0].inst,E=O[1];return a(function(){d.value=_,d.getSnapshot=i,e(d)&&E({inst:d})},[t,_,i]),u(function(){return e(d)&&E({inst:d}),t(function(){e(d)&&E({inst:d})})},[t]),c(_),_};i.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:_,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),i)),n.exports}export{a as r};
2
- //# sourceMappingURL=index-DheYAHt3.mjs.map
2
+ //# sourceMappingURL=index-Cpq7N5Ej.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DheYAHt3.mjs","sources":["../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["process","env","NODE_ENV","shimModule","exports","React","require$$0","objectIs","Object","is","x","y","useState","useEffect","useLayoutEffect","useDebugValue","checkIfSnapshotChanged","inst","latestGetSnapshot","getSnapshot","value","nextValue","error","shim","window","document","createElement","subscribe","_useState","forceUpdate","useSyncExternalStoreShim_production","useSyncExternalStore","__REACT_DEVTOOLS_GLOBAL_HOOK__","registerInternalModuleStart","Error","didWarnOld18Alpha","didWarnUncachedGetSnapshot","startTransition","cachedValue","useSyncExternalStoreShim_development","registerInternalModuleStop"],"mappings":"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","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"index-Cpq7N5Ej.mjs","sources":["../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["process","env","NODE_ENV","shimModule","exports","React","require$$0","objectIs","Object","is","x","y","useState","useEffect","useLayoutEffect","useDebugValue","checkIfSnapshotChanged","inst","latestGetSnapshot","getSnapshot","value","nextValue","error","shim","window","document","createElement","subscribe","_useState","forceUpdate","useSyncExternalStoreShim_production","useSyncExternalStore","__REACT_DEVTOOLS_GLOBAL_HOOK__","registerInternalModuleStart","Error","didWarnOld18Alpha","didWarnUncachedGetSnapshot","startTransition","cachedValue","useSyncExternalStoreShim_development","registerInternalModuleStop"],"mappings":"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","x_google_ignoreList":[0,1,2]}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{u as t}from"./index-DZgHf-gI.mjs";var r=e[" useInsertionEffect ".trim().toString()]||t;function n({prop:t,defaultProp:n,onChange:o=()=>{},caller:u}){const[c,f,s]=function({defaultProp:t,onChange:n}){const[o,u]=e.useState(t),c=e.useRef(o),f=e.useRef(n);return r(()=>{f.current=n},[n]),e.useEffect(()=>{c.current!==o&&(f.current?.(o),c.current=o)},[o,c]),[o,u,f]}({defaultProp:n,onChange:o}),a=void 0!==t,i=a?t:c;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==a){}r.current=a},[a,u])}const p=e.useCallback(e=>{if(a){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else f(e)},[a,t,f,s]);return[i,p]}export{n as u};
2
- //# sourceMappingURL=index-VuwFoF4R.mjs.map
1
+ import*as e from"react";import{u as t}from"./index-CLtWFQL5.mjs";var r=e[" useInsertionEffect ".trim().toString()]||t;function n({prop:t,defaultProp:n,onChange:o=()=>{},caller:u}){const[c,f,s]=function({defaultProp:t,onChange:n}){const[o,u]=e.useState(t),c=e.useRef(o),f=e.useRef(n);return r(()=>{f.current=n},[n]),e.useEffect(()=>{c.current!==o&&(f.current?.(o),c.current=o)},[o,c]),[o,u,f]}({defaultProp:n,onChange:o}),a=void 0!==t,i=a?t:c;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==a){}r.current=a},[a,u])}const p=e.useCallback(e=>{if(a){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else f(e)},[a,t,f,s]);return[i,p]}export{n as u};
2
+ //# sourceMappingURL=index-CybgQKpz.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-VuwFoF4R.mjs","sources":["../../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useInsertionEffect = React[\" useInsertionEffect \".trim().toString()] || useLayoutEffect;\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n },\n caller\n}) {\n const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n if (true) {\n const isControlledRef = React.useRef(prop !== void 0);\n React.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;\n if (value2 !== prop) {\n onChangeRef.current?.(value2);\n }\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, onChangeRef]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const [value, setValue] = React.useState(defaultProp);\n const prevValueRef = React.useRef(value);\n const onChangeRef = React.useRef(onChange);\n useInsertionEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n onChangeRef.current?.(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef]);\n return [value, setValue, onChangeRef];\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\n// src/use-controllable-state-reducer.tsx\nimport * as React2 from \"react\";\nimport { useEffectEvent } from \"@radix-ui/react-use-effect-event\";\nvar SYNC_STATE = Symbol(\"RADIX:SYNC_STATE\");\nfunction useControllableStateReducer(reducer, userArgs, initialArg, init) {\n const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;\n const isControlled = controlledState !== void 0;\n const onChange = useEffectEvent(onChangeProp);\n if (true) {\n const isControlledRef = React2.useRef(controlledState !== void 0);\n React2.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const args = [{ ...initialArg, state: defaultProp }];\n if (init) {\n args.push(init);\n }\n const [internalState, dispatch] = React2.useReducer(\n (state2, action) => {\n if (action.type === SYNC_STATE) {\n return { ...state2, state: action.state };\n }\n const next = reducer(state2, action);\n if (isControlled && !Object.is(next.state, state2.state)) {\n onChange(next.state);\n }\n return next;\n },\n ...args\n );\n const uncontrolledState = internalState.state;\n const prevValueRef = React2.useRef(uncontrolledState);\n React2.useEffect(() => {\n if (prevValueRef.current !== uncontrolledState) {\n prevValueRef.current = uncontrolledState;\n if (!isControlled) {\n onChange(uncontrolledState);\n }\n }\n }, [onChange, uncontrolledState, prevValueRef, isControlled]);\n const state = React2.useMemo(() => {\n const isControlled2 = controlledState !== void 0;\n if (isControlled2) {\n return { ...internalState, state: controlledState };\n }\n return internalState;\n }, [internalState, controlledState]);\n React2.useEffect(() => {\n if (isControlled && !Object.is(controlledState, internalState.state)) {\n dispatch({ type: SYNC_STATE, state: controlledState });\n }\n }, [controlledState, internalState.state, isControlled]);\n return [state, dispatch];\n}\nexport {\n useControllableState,\n useControllableStateReducer\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useInsertionEffect","React","trim","toString","useLayoutEffect","useControllableState","prop","defaultProp","onChange","caller","uncontrolledProp","setUncontrolledProp","onChangeRef","value","setValue","useState","prevValueRef","useRef","current","useEffect","useUncontrolledState","isControlled","isControlledRef","wasControlled","useCallback","nextValue","isFunction"],"mappings":"iEAIA,IAAMA,EACHC,EAAc,uBAAuBC,OAAOC,aAAeC,EAYvD,SAASC,GAAwBC,KACtCA,EAAAC,YACAA,EAAAC,SACAA,EAAW,OAAMC,OACjBA,IAEA,MAAOC,EAAkBC,EAAqBC,GA4ChD,UAAiCL,YAC/BA,EAAAC,SACAA,IAMA,MAAOK,EAAOC,GAAkBb,EAAAc,SAASR,GACnCS,EAAqBf,EAAAgB,OAAOJ,GAE5BD,EAAoBX,EAAAgB,OAAOT,GAYjC,OAXAR,EAAmB,KACjBY,EAAYM,QAAUV,GACrB,CAACA,IAEEP,EAAAkB,UAAU,KACVH,EAAaE,UAAYL,IAC3BD,EAAYM,UAAUL,GACtBG,EAAaE,QAAUL,IAExB,CAACA,EAAOG,IAEJ,CAACH,EAAOC,EAAUF,EAC3B,CApE+DQ,CAAqB,CAChFb,cACAC,aAEIa,OAAwB,IAATf,EACfO,EAAQQ,EAAef,EAAOI,EAMO,CACzC,MAAMY,EAAwBrB,EAAAgB,YAAgB,IAATX,GAC/BL,EAAAkB,UAAU,KACd,MAAMI,EAAgBD,EAAgBJ,QACtC,GAAIK,IAAkBF,EAAc,CAMpC,CACAC,EAAgBJ,QAAUG,GACzB,CAACA,EAAcZ,GACpB,CAGA,MAAMK,EAAiBb,EAAAuB,YACpBC,IACC,GAAIJ,EAAc,CAChB,MAAMR,EAwCd,SAAoBA,GAClB,MAAwB,mBAAVA,CAChB,CA1CsBa,CAAWD,GAAaA,EAAUnB,GAAQmB,EACpDZ,IAAUP,GACZM,EAAYM,UAAUL,EAE1B,MACEF,EAAoBc,IAGxB,CAACJ,EAAcf,EAAMK,EAAqBC,IAG5C,MAAO,CAACC,EAAOC,EACjB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-CybgQKpz.mjs","sources":["../../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useInsertionEffect = React[\" useInsertionEffect \".trim().toString()] || useLayoutEffect;\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n },\n caller\n}) {\n const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n if (true) {\n const isControlledRef = React.useRef(prop !== void 0);\n React.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;\n if (value2 !== prop) {\n onChangeRef.current?.(value2);\n }\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, onChangeRef]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const [value, setValue] = React.useState(defaultProp);\n const prevValueRef = React.useRef(value);\n const onChangeRef = React.useRef(onChange);\n useInsertionEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n onChangeRef.current?.(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef]);\n return [value, setValue, onChangeRef];\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\n// src/use-controllable-state-reducer.tsx\nimport * as React2 from \"react\";\nimport { useEffectEvent } from \"@radix-ui/react-use-effect-event\";\nvar SYNC_STATE = Symbol(\"RADIX:SYNC_STATE\");\nfunction useControllableStateReducer(reducer, userArgs, initialArg, init) {\n const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;\n const isControlled = controlledState !== void 0;\n const onChange = useEffectEvent(onChangeProp);\n if (true) {\n const isControlledRef = React2.useRef(controlledState !== void 0);\n React2.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const args = [{ ...initialArg, state: defaultProp }];\n if (init) {\n args.push(init);\n }\n const [internalState, dispatch] = React2.useReducer(\n (state2, action) => {\n if (action.type === SYNC_STATE) {\n return { ...state2, state: action.state };\n }\n const next = reducer(state2, action);\n if (isControlled && !Object.is(next.state, state2.state)) {\n onChange(next.state);\n }\n return next;\n },\n ...args\n );\n const uncontrolledState = internalState.state;\n const prevValueRef = React2.useRef(uncontrolledState);\n React2.useEffect(() => {\n if (prevValueRef.current !== uncontrolledState) {\n prevValueRef.current = uncontrolledState;\n if (!isControlled) {\n onChange(uncontrolledState);\n }\n }\n }, [onChange, uncontrolledState, prevValueRef, isControlled]);\n const state = React2.useMemo(() => {\n const isControlled2 = controlledState !== void 0;\n if (isControlled2) {\n return { ...internalState, state: controlledState };\n }\n return internalState;\n }, [internalState, controlledState]);\n React2.useEffect(() => {\n if (isControlled && !Object.is(controlledState, internalState.state)) {\n dispatch({ type: SYNC_STATE, state: controlledState });\n }\n }, [controlledState, internalState.state, isControlled]);\n return [state, dispatch];\n}\nexport {\n useControllableState,\n useControllableStateReducer\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useInsertionEffect","React","trim","toString","useLayoutEffect","useControllableState","prop","defaultProp","onChange","caller","uncontrolledProp","setUncontrolledProp","onChangeRef","value","setValue","useState","prevValueRef","useRef","current","useEffect","useUncontrolledState","isControlled","isControlledRef","wasControlled","useCallback","nextValue","isFunction"],"mappings":"iEAIA,IAAMA,EACHC,EAAc,uBAAuBC,OAAOC,aAAeC,EAYvD,SAASC,GAAwBC,KACtCA,EAAAC,YACAA,EAAAC,SACAA,EAAW,OAAMC,OACjBA,IAEA,MAAOC,EAAkBC,EAAqBC,GA4ChD,UAAiCL,YAC/BA,EAAAC,SACAA,IAMA,MAAOK,EAAOC,GAAkBb,EAAAc,SAASR,GACnCS,EAAqBf,EAAAgB,OAAOJ,GAE5BD,EAAoBX,EAAAgB,OAAOT,GAYjC,OAXAR,EAAmB,KACjBY,EAAYM,QAAUV,GACrB,CAACA,IAEEP,EAAAkB,UAAU,KACVH,EAAaE,UAAYL,IAC3BD,EAAYM,UAAUL,GACtBG,EAAaE,QAAUL,IAExB,CAACA,EAAOG,IAEJ,CAACH,EAAOC,EAAUF,EAC3B,CApE+DQ,CAAqB,CAChFb,cACAC,aAEIa,OAAwB,IAATf,EACfO,EAAQQ,EAAef,EAAOI,EAMO,CACzC,MAAMY,EAAwBrB,EAAAgB,YAAgB,IAATX,GAC/BL,EAAAkB,UAAU,KACd,MAAMI,EAAgBD,EAAgBJ,QACtC,GAAIK,IAAkBF,EAAc,CAMpC,CACAC,EAAgBJ,QAAUG,GACzB,CAACA,EAAcZ,GACpB,CAGA,MAAMK,EAAiBb,EAAAuB,YACpBC,IACC,GAAIJ,EAAc,CAChB,MAAMR,EAwCd,SAAoBA,GAClB,MAAwB,mBAAVA,CAChB,CA1CsBa,CAAWD,GAAaA,EAAUnB,GAAQmB,EACpDZ,IAAUP,GACZM,EAAYM,UAAUL,EAE1B,MACEF,EAAoBc,IAGxB,CAACJ,EAAcf,EAAMK,EAAqBC,IAG5C,MAAO,CAACC,EAAOC,EACjB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import*as r from"react";import{P as e}from"./index-DuDVR7ID.mjs";import{jsx as a}from"react/jsx-runtime";var i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),o=r.forwardRef((r,o)=>a(e.span,{...r,ref:o,style:{...i,...r.style}}));o.displayName="VisuallyHidden";var t=o;export{t as R,o as V};
2
- //# sourceMappingURL=index-C4C3l5WF.mjs.map
1
+ import*as r from"react";import{P as e}from"./index-w9bxia3O.mjs";import{jsx as a}from"react/jsx-runtime";var i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),o=r.forwardRef((r,o)=>a(e.span,{...r,ref:o,style:{...i,...r.style}}));o.displayName="VisuallyHidden";var t=o;export{t as R,o as V};
2
+ //# sourceMappingURL=index-D2sZp5OP.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-C4C3l5WF.mjs","sources":["../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs"],"sourcesContent":["// src/visually-hidden.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar VISUALLY_HIDDEN_STYLES = Object.freeze({\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: \"absolute\",\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n});\nvar NAME = \"VisuallyHidden\";\nvar VisuallyHidden = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...props,\n ref: forwardedRef,\n style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }\n }\n );\n }\n);\nVisuallyHidden.displayName = NAME;\nvar Root = VisuallyHidden;\nexport {\n Root,\n VISUALLY_HIDDEN_STYLES,\n VisuallyHidden\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["VISUALLY_HIDDEN_STYLES","Object","freeze","position","border","width","height","padding","margin","overflow","clip","whiteSpace","wordWrap","VisuallyHidden","React","forwardRef","props","forwardedRef","jsx","Primitive","span","ref","style","displayName","Root"],"mappings":"yGAOA,IAAMA,EAAyBC,OAAOC,OAAO,CAE3CC,SAAU,WACVC,OAAQ,EACRC,MAAO,EACPC,OAAQ,EACRC,QAAS,EACTC,QAAQ,EACRC,SAAU,SACVC,KAAM,mBACNC,WAAY,SACZC,SAAU,WASNC,EAAuBC,EAAAC,WAC3B,CAACC,EAAOC,IAEJC,EAACC,EAAUC,KAAV,IACKJ,EACJK,IAAKJ,EACLK,MAAO,IAAKtB,KAA2BgB,EAAMM,UAMrDT,EAAeU,YAlBF,iBAsBb,IAAMC,EAAOX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-D2sZp5OP.mjs","sources":["../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs"],"sourcesContent":["// src/visually-hidden.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar VISUALLY_HIDDEN_STYLES = Object.freeze({\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: \"absolute\",\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n});\nvar NAME = \"VisuallyHidden\";\nvar VisuallyHidden = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...props,\n ref: forwardedRef,\n style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }\n }\n );\n }\n);\nVisuallyHidden.displayName = NAME;\nvar Root = VisuallyHidden;\nexport {\n Root,\n VISUALLY_HIDDEN_STYLES,\n VisuallyHidden\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["VISUALLY_HIDDEN_STYLES","Object","freeze","position","border","width","height","padding","margin","overflow","clip","whiteSpace","wordWrap","VisuallyHidden","React","forwardRef","props","forwardedRef","jsx","Primitive","span","ref","style","displayName","Root"],"mappings":"yGAOA,IAAMA,EAAyBC,OAAOC,OAAO,CAE3CC,SAAU,WACVC,OAAQ,EACRC,MAAO,EACPC,OAAQ,EACRC,QAAS,EACTC,QAAQ,EACRC,SAAU,SACVC,KAAM,mBACNC,WAAY,SACZC,SAAU,WASNC,EAAuBC,EAAAC,WAC3B,CAACC,EAAOC,IAEJC,EAACC,EAAUC,KAAV,IACKJ,EACJK,IAAKJ,EACLK,MAAO,IAAKtB,KAA2BgB,EAAMM,UAMrDT,EAAeU,YAlBF,iBAsBb,IAAMC,EAAOX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import*as t from"react";import{useLayoutEffect as e}from"react";import*as n from"react-dom";import{P as o}from"./index-DuDVR7ID.mjs";import{jsx as r}from"react/jsx-runtime";import{u as i}from"./index-DmBXPUeL.mjs";import{c as a}from"./index-DBp_Gx1M.mjs";import{u as l}from"./index-Cu6LwID6.mjs";import{u as s}from"./index-DZgHf-gI.mjs";import{u as c}from"./index-gfwlB8lL.mjs";const f=["top","right","bottom","left"],u=Math.min,d=Math.max,p=Math.round,m=Math.floor,h=t=>({x:t,y:t}),g={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function w(t,e,n){return d(t,u(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function R(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}const P=new Set(["top","bottom"]);function S(t){return P.has(v(t))?"y":"x"}function O(t){return R(S(t))}function T(t){return t.replace(/start|end/g,t=>y[t])}const L=["left","right"],C=["right","left"],E=["top","bottom"],D=["bottom","top"];function H(t,e,n,o){const r=b(t);let i=function(t,e,n){switch(t){case"top":case"bottom":return n?e?C:L:e?L:C;case"left":case"right":return e?E:D;default:return[]}}(v(t),"start"===n,o);return r&&(i=i.map(t=>t+"-"+r),e&&(i=i.concat(i.map(T)))),i}function k(t){return t.replace(/left|right|bottom|top/g,t=>g[t])}function F(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function W(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function B(t,e,n){let{reference:o,floating:r}=t;const i=S(e),a=O(e),l=A(a),s=v(e),c="y"===i,f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(s){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-r.width,y:u};break;default:p={x:o.x,y:o.y}}switch(b(e)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1)}return p}async function M(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=x(e,t),m=F(p),h=l[d?"floating"===u?"reference":"floating":u],g=W(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:s})),y="floating"===u?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=W(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:s}):y);return{top:(g.top-b.top+m.top)/v.y,bottom:(b.bottom-g.bottom+m.bottom)/v.y,left:(g.left-b.left+m.left)/v.x,right:(b.right-g.right+m.right)/v.x}}function $(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function j(t){return f.some(e=>t[e]>=0)}const N=new Set(["left","top"]);function _(){return"undefined"!=typeof window}function z(t){return X(t)?(t.nodeName||"").toLowerCase():"#document"}function V(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Y(t){var e;return null==(e=(X(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function X(t){return!!_()&&(t instanceof Node||t instanceof V(t).Node)}function I(t){return!!_()&&(t instanceof Element||t instanceof V(t).Element)}function q(t){return!!_()&&(t instanceof HTMLElement||t instanceof V(t).HTMLElement)}function G(t){return!(!_()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof V(t).ShadowRoot)}const J=new Set(["inline","contents"]);function K(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=st(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!J.has(r)}const Q=new Set(["table","td","th"]);function U(t){return Q.has(z(t))}const Z=[":popover-open",":modal"];function tt(t){return Z.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const et=["transform","translate","scale","rotate","perspective"],nt=["transform","translate","scale","rotate","perspective","filter"],ot=["paint","layout","strict","content"];function rt(t){const e=it(),n=I(t)?st(t):t;return et.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||nt.some(t=>(n.willChange||"").includes(t))||ot.some(t=>(n.contain||"").includes(t))}function it(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const at=new Set(["html","body","#document"]);function lt(t){return at.has(z(t))}function st(t){return V(t).getComputedStyle(t)}function ct(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if("html"===z(t))return t;const e=t.assignedSlot||t.parentNode||G(t)&&t.host||Y(t);return G(e)?e.host:e}function ut(t){const e=ft(t);return lt(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&K(e)?e:ut(e)}function dt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=ut(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=V(r);if(i){const t=pt(a);return e.concat(a,a.visualViewport||[],K(r)?r:[],t&&n?dt(t):[])}return e.concat(r,dt(r,[],n))}function pt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mt(t){const e=st(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=q(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=p(n)!==i||p(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function ht(t){return I(t)?t:t.contextElement}function gt(t){const e=ht(t);if(!q(e))return h(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=mt(e);let a=(i?p(n.width):n.width)/o,l=(i?p(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const yt=h(0);function wt(t){const e=V(t);return it()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yt}function xt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=ht(t);let a=h(1);e&&(o?I(o)&&(a=gt(o)):a=gt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==V(t))&&e}(i,n,o)?wt(i):h(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,f=r.width/a.x,u=r.height/a.y;if(i){const t=V(i),e=o&&I(o)?V(o):o;let n=t,r=pt(n);for(;r&&o&&e!==n;){const t=gt(r),e=r.getBoundingClientRect(),o=st(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,u*=t.y,s+=i,c+=a,n=V(r),r=pt(n)}}return W({width:f,height:u,x:s,y:c})}function vt(t,e){const n=ct(t).scrollLeft;return e?e.left+n:xt(Y(t)).left+n}function bt(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:vt(t,o)),y:o.top+e.scrollTop}}const Rt=new Set(["absolute","fixed"]);function At(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=V(t),o=Y(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=it();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,n);else if("document"===e)o=function(t){const e=Y(t),n=ct(t),o=t.ownerDocument.body,r=d(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=d(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+vt(t);const l=-n.scrollTop;return"rtl"===st(o).direction&&(a+=d(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(Y(t));else if(I(e))o=function(t,e){const n=xt(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=q(t)?gt(t):h(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=wt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return W(o)}function Pt(t,e){const n=ft(t);return!(n===e||!I(n)||lt(n))&&("fixed"===st(n).position||Pt(n,e))}function St(t,e,n){const o=q(e),r=Y(e),i="fixed"===n,a=xt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const s=h(0);function c(){s.x=vt(r)}if(o||!o&&!i)if(("body"!==z(e)||K(r))&&(l=ct(e)),o){const t=xt(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else r&&c();i&&!o&&r&&c();const f=!r||o||i?h(0):bt(r,l);return{x:a.left+l.scrollLeft-s.x-f.x,y:a.top+l.scrollTop-s.y-f.y,width:a.width,height:a.height}}function Ot(t){return"static"===st(t).position}function Tt(t,e){if(!q(t)||"fixed"===st(t).position)return null;if(e)return e(t);let n=t.offsetParent;return Y(t)===n&&(n=n.ownerDocument.body),n}function Lt(t,e){const n=V(t);if(tt(t))return n;if(!q(t)){let e=ft(t);for(;e&&!lt(e);){if(I(e)&&!Ot(e))return e;e=ft(e)}return n}let o=Tt(t,e);for(;o&&U(o)&&Ot(o);)o=Tt(o,e);return o&&lt(o)&&Ot(o)&&!rt(o)?n:o||function(t){let e=ft(t);for(;q(e)&&!lt(e);){if(rt(e))return e;if(tt(e))return null;e=ft(e)}return null}(t)||n}const Ct={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,a=Y(o),l=!!e&&tt(e.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1);const f=h(0),u=q(o);if((u||!u&&!i)&&(("body"!==z(o)||K(a))&&(s=ct(o)),q(o))){const t=xt(o);c=gt(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const d=!a||u||i?h(0):bt(a,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+d.x,y:n.y*c.y-s.scrollTop*c.y+f.y+d.y}},getDocumentElement:Y,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?tt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=dt(t,[],!1).filter(t=>I(t)&&"body"!==z(t)),r=null;const i="fixed"===st(t).position;let a=i?ft(t):t;for(;I(a)&&!lt(a);){const e=st(a),n=rt(a);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&Rt.has(r.position)||K(a)&&!n&&Pt(t,a))?o=o.filter(t=>t!==a):r=e,a=ft(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],a=i[0],l=i.reduce((t,n)=>{const o=At(e,n,r);return t.top=d(o.top,t.top),t.right=u(o.right,t.right),t.bottom=u(o.bottom,t.bottom),t.left=d(o.left,t.left),t},At(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Lt,getElementRects:async function(t){const e=this.getOffsetParent||Lt,n=this.getDimensions,o=await n(t.floating);return{reference:St(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=mt(t);return{width:e,height:n}},getScale:gt,isElement:I,isRTL:function(t){return"rtl"===st(t).direction}};function Et(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Dt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=ht(t),f=r||i?[...c?dt(c):[],...dt(e)]:[];f.forEach(t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)});const p=c&&l?function(t,e){let n,o=null;const r=Y(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const c=t.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=c;if(l||e(),!h||!g)return;const y={rootMargin:-m(p)+"px "+-m(r.clientWidth-(f+h))+"px "+-m(r.clientHeight-(p+g))+"px "+-m(f)+"px",threshold:d(0,u(1,s))||1};let w=!0;function x(e){const o=e[0].intersectionRatio;if(o!==s){if(!w)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==o||Et(c,t.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(x,{...y,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,y)}o.observe(t)}(!0),i}(c,n):null;let h,g=-1,y=null;a&&(y=new ResizeObserver(t=>{let[o]=t;o&&o.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),c&&!s&&y.observe(c),y.observe(e));let w=s?xt(t):null;return s&&function e(){const o=xt(t);w&&!Et(w,o)&&n();w=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach(t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)}),null==p||p(),null==(t=y)||t.disconnect(),y=null,s&&cancelAnimationFrame(h)}}const Ht=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=e,s=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=v(n),l=b(n),s="y"===S(n),c=N.has(a)?-1:1,f=i&&s?-1:1,u=x(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*f,y:d*c}:{x:d*c,y:p*f}}(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},kt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=x(t,e),c={x:n,y:o},f=await M(e,s),u=S(v(r)),d=R(u);let p=c[d],m=c[u];if(i){const t="y"===d?"bottom":"right";p=w(p+f["y"===d?"top":"left"],p,p-f[t])}if(a){const t="y"===u?"bottom":"right";m=w(m+f["y"===u?"top":"left"],m,m-f[t])}const h=l.fn({...e,[d]:p,[u]:m});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[d]:i,[u]:a}}}}}},Ft=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=x(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=v(r),w=S(l),R=v(l)===l,P=await(null==s.isRTL?void 0:s.isRTL(c.floating)),L=d||(R||!h?[k(l)]:function(t){const e=k(t);return[T(t),e,T(e)]}(l)),C="none"!==m;!d&&C&&L.push(...H(l,h,m,P));const E=[l,...L],D=await M(e,g),F=[];let W=(null==(o=i.flip)?void 0:o.overflows)||[];if(f&&F.push(D[y]),u){const t=function(t,e,n){void 0===n&&(n=!1);const o=b(t),r=O(t),i=A(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=k(a)),[a,k(a)]}(r,a,P);F.push(D[t[0]],D[t[1]])}if(W=[...W,{placement:r,overflows:F}],!F.every(t=>t<=0)){var B,$;const t=((null==(B=i.flip)?void 0:B.index)||0)+1,e=E[t];if(e){if(!("alignment"===u&&w!==S(e))||W.every(t=>t.overflows[0]>0&&S(t.placement)===w))return{data:{index:t,overflows:W},reset:{placement:e}}}let n=null==($=W.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:$.placement;if(!n)switch(p){case"bestFit":{var j;const t=null==(j=W.filter(t=>{if(C){const e=S(t.placement);return e===w||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:j[0];t&&(n=t);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},Wt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:a,elements:l}=e,{apply:s=()=>{},...c}=x(t,e),f=await M(e,c),p=v(r),m=b(r),h="y"===S(r),{width:g,height:y}=i.floating;let w,R;"top"===p||"bottom"===p?(w=p,R=m===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(R=p,w="end"===m?"top":"bottom");const A=y-f.top-f.bottom,P=g-f.left-f.right,O=u(y-f[w],A),T=u(g-f[R],P),L=!e.middlewareData.shift;let C=O,E=T;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(E=P),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(C=A),L&&!m){const t=d(f.left,0),e=d(f.right,0),n=d(f.top,0),o=d(f.bottom,0);h?E=g-2*(0!==t||0!==e?t+e:d(f.left,f.right)):C=y-2*(0!==n||0!==o?n+o:d(f.top,f.bottom))}await s({...e,availableWidth:E,availableHeight:C});const D=await a.getDimensions(l.floating);return g!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}},Bt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=x(t,e);switch(o){case"referenceHidden":{const t=$(await M(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=$(await M(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}},Mt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:a,elements:l,middlewareData:s}=e,{element:c,padding:f=0}=x(t,e)||{};if(null==c)return{};const d=F(f),p={x:n,y:o},m=O(r),h=A(m),g=await a.getDimensions(c),y="y"===m,v=y?"top":"left",R=y?"bottom":"right",P=y?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[m]-p[m]-i.floating[h],T=p[m]-i.reference[m],L=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=L?L[P]:0;C&&await(null==a.isElement?void 0:a.isElement(L))||(C=l.floating[P]||i.floating[h]);const E=S/2-T/2,D=C/2-g[h]/2-1,H=u(d[v],D),k=u(d[R],D),W=H,B=C-g[h]-k,M=C/2-g[h]/2+E,$=w(W,M,B),j=!s.arrow&&null!=b(r)&&M!==$&&i.reference[h]/2-(M<W?H:k)-g[h]/2<0,N=j?M<W?M-W:M-B:0;return{[m]:p[m]+N,data:{[m]:$,centerOffset:M-$-N,...j&&{alignmentOffset:N}},reset:j}}}),$t=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=x(t,e),f={x:n,y:o},u=S(r),d=R(u);let p=f[d],m=f[u];const h=x(l,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const t="y"===d?"height":"width",e=i.reference[d]-i.floating[t]+g.mainAxis,n=i.reference[d]+i.reference[t]-g.mainAxis;p<e?p=e:p>n&&(p=n)}if(c){var y,w;const t="y"===d?"width":"height",e=N.has(v(r)),n=i.reference[u]-i.floating[t]+(e&&(null==(y=a.offset)?void 0:y[u])||0)+(e?0:g.crossAxis),o=i.reference[u]+i.reference[t]+(e?0:(null==(w=a.offset)?void 0:w[u])||0)-(e?g.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[d]:p,[u]:m}}}},jt=(t,e,n)=>{const o=new Map,r={platform:Ct,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=B(c,o,s),d=o,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:g,y:y,data:w,reset:x}=await h({x:f,y:u,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[i]:{...p[i],...w}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:f,y:u}=B(c,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:r,middlewareData:p}})(t,e,{...r,platform:i})};var Nt="undefined"!=typeof document?e:function(){};function _t(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;0!==o--;)if(!_t(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;0!==o--;){const n=r[o];if(("_owner"!==n||!t.$$typeof)&&!_t(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function zt(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vt(t,e){const n=zt(t);return Math.round(e*n)/n}function Yt(e){const n=t.useRef(e);return Nt(()=>{n.current=e}),n}const Xt=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:o}="function"==typeof t?t(e):t;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?Mt({element:n.current,padding:o}).fn(e):{}:n?Mt({element:n,padding:o}).fn(e):{};var r}}),It=(t,e)=>({...kt(t),options:[t,e]}),qt=(t,e)=>({...$t(t),options:[t,e]}),Gt=(t,e)=>({...Ft(t),options:[t,e]}),Jt=(t,e)=>({...Wt(t),options:[t,e]}),Kt=(t,e)=>({...Bt(t),options:[t,e]}),Qt=(t,e)=>({...Xt(t),options:[t,e]});var Ut=t.forwardRef((t,e)=>{const{children:n,width:i=10,height:a=5,...l}=t;return r(o.svg,{...l,ref:e,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:r("polygon",{points:"0,0 30,0 15,10"})})});Ut.displayName="Arrow";var Zt=Ut,te="Popper",[ee,ne]=a(te),[oe,re]=ee(te),ie=e=>{const{__scopePopper:n,children:o}=e,[i,a]=t.useState(null);return r(oe,{scope:n,anchor:i,onAnchorChange:a,children:o})};ie.displayName=te;var ae="PopperAnchor",le=t.forwardRef((e,n)=>{const{__scopePopper:a,virtualRef:l,...s}=e,c=re(ae,a),f=t.useRef(null),u=i(n,f);return t.useEffect(()=>{c.onAnchorChange(l?.current||f.current)}),l?null:r(o.div,{...s,ref:u})});le.displayName=ae;var se="PopperContent",[ce,fe]=ee(se),ue=t.forwardRef((e,a)=>{const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:R,...A}=e,P=re(se,f),[S,O]=t.useState(null),T=i(a,t=>O(t)),[L,C]=t.useState(null),E=c(L),D=E?.width??0,H=E?.height??0,k=u+("center"!==p?"-"+p:""),F="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},W=Array.isArray(y)?y:[y],B=W.length>0,M={padding:F,boundary:W.filter(he),altBoundary:B},{refs:$,floatingStyles:j,placement:N,isPositioned:_,middlewareData:z}=function(e){void 0===e&&(e={});const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:s}={},transform:c=!0,whileElementsMounted:f,open:u}=e,[d,p]=t.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[m,h]=t.useState(i);_t(m,i)||h(i);const[g,y]=t.useState(null),[w,x]=t.useState(null),v=t.useCallback(t=>{t!==P.current&&(P.current=t,y(t))},[]),b=t.useCallback(t=>{t!==S.current&&(S.current=t,x(t))},[]),R=l||g,A=s||w,P=t.useRef(null),S=t.useRef(null),O=t.useRef(d),T=null!=f,L=Yt(f),C=Yt(a),E=Yt(u),D=t.useCallback(()=>{if(!P.current||!S.current)return;const t={placement:o,strategy:r,middleware:m};C.current&&(t.platform=C.current),jt(P.current,S.current,t).then(t=>{const e={...t,isPositioned:!1!==E.current};H.current&&!_t(O.current,e)&&(O.current=e,n.flushSync(()=>{p(e)}))})},[m,o,r,C,E]);Nt(()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p(t=>({...t,isPositioned:!1})))},[u]);const H=t.useRef(!1);Nt(()=>(H.current=!0,()=>{H.current=!1}),[]),Nt(()=>{if(R&&(P.current=R),A&&(S.current=A),R&&A){if(L.current)return L.current(R,A,D);D()}},[R,A,D,L,T]);const k=t.useMemo(()=>({reference:P,floating:S,setReference:v,setFloating:b}),[v,b]),F=t.useMemo(()=>({reference:R,floating:A}),[R,A]),W=t.useMemo(()=>{const t={position:r,left:0,top:0};if(!F.floating)return t;const e=Vt(F.floating,d.x),n=Vt(F.floating,d.y);return c?{...t,transform:"translate("+e+"px, "+n+"px)",...zt(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:e,top:n}},[r,c,F.floating,d.x,d.y]);return t.useMemo(()=>({...d,update:D,refs:k,elements:F,floatingStyles:W}),[d,D,k,F,W])}({strategy:"fixed",placement:k,whileElementsMounted:(...t)=>Dt(...t,{animationFrame:"always"===b}),elements:{reference:P.anchor},middleware:[(V={mainAxis:d+H,alignmentAxis:m},{...Ht(V),options:[V,Y]}),g&&It({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?qt():void 0,...M}),g&&Gt({...M}),Jt({...M,apply:({elements:t,rects:e,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=e.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${o}px`),a.setProperty("--radix-popper-anchor-width",`${r}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),L&&Qt({element:L,padding:h}),ge({arrowWidth:D,arrowHeight:H}),v&&Kt({strategy:"referenceHidden",...M})]});var V,Y;const[X,I]=ye(N),q=l(R);s(()=>{_&&q?.()},[_,q]);const G=z.arrow?.x,J=z.arrow?.y,K=0!==z.arrow?.centerOffset,[Q,U]=t.useState();return s(()=>{S&&U(window.getComputedStyle(S).zIndex)},[S]),r("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:_?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r(ce,{scope:f,placedSide:X,onArrowChange:C,arrowX:G,arrowY:J,shouldHideArrow:K,children:r(o.div,{"data-side":X,"data-align":I,...A,ref:T,style:{...A.style,animation:_?void 0:"none"}})})})});ue.displayName=se;var de="PopperArrow",pe={top:"bottom",right:"left",bottom:"top",left:"right"},me=t.forwardRef(function(t,e){const{__scopePopper:n,...o}=t,i=fe(de,n),a=pe[i.placedSide];return r("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:r(Zt,{...o,ref:e,style:{...o.style,display:"block"}})})});function he(t){return null!==t}me.displayName=de;var ge=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,i=0!==r.arrow?.centerOffset,a=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[s,c]=ye(n),f={start:"0%",center:"50%",end:"100%"}[c],u=(r.arrow?.x??0)+a/2,d=(r.arrow?.y??0)+l/2;let p="",m="";return"bottom"===s?(p=i?f:`${u}px`,m=-l+"px"):"top"===s?(p=i?f:`${u}px`,m=`${o.floating.height+l}px`):"right"===s?(p=-l+"px",m=i?f:`${d}px`):"left"===s&&(p=`${o.floating.width+l}px`,m=i?f:`${d}px`),{data:{x:p,y:m}}}});function ye(t){const[e,n="center"]=t.split("-");return[e,n]}var we=ie,xe=le,ve=ue,be=me;export{xe as A,ve as C,we as R,be as a,ne as c};
2
- //# sourceMappingURL=index-Bo9g9ZHj.mjs.map
1
+ import*as t from"react";import{useLayoutEffect as e}from"react";import*as n from"react-dom";import{P as o}from"./index-w9bxia3O.mjs";import{jsx as r}from"react/jsx-runtime";import{u as i}from"./index-COvW87ew.mjs";import{c as a}from"./index-CCcl327A.mjs";import{u as l}from"./index-CXszXOf_.mjs";import{u as s}from"./index-CLtWFQL5.mjs";import{u as c}from"./index-vmPXTidH.mjs";const f=["top","right","bottom","left"],u=Math.min,d=Math.max,p=Math.round,m=Math.floor,h=t=>({x:t,y:t}),g={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function w(t,e,n){return d(t,u(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function R(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}const P=new Set(["top","bottom"]);function S(t){return P.has(v(t))?"y":"x"}function O(t){return R(S(t))}function T(t){return t.replace(/start|end/g,t=>y[t])}const L=["left","right"],C=["right","left"],E=["top","bottom"],D=["bottom","top"];function H(t,e,n,o){const r=b(t);let i=function(t,e,n){switch(t){case"top":case"bottom":return n?e?C:L:e?L:C;case"left":case"right":return e?E:D;default:return[]}}(v(t),"start"===n,o);return r&&(i=i.map(t=>t+"-"+r),e&&(i=i.concat(i.map(T)))),i}function k(t){return t.replace(/left|right|bottom|top/g,t=>g[t])}function F(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function W(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function B(t,e,n){let{reference:o,floating:r}=t;const i=S(e),a=O(e),l=A(a),s=v(e),c="y"===i,f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(s){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-r.width,y:u};break;default:p={x:o.x,y:o.y}}switch(b(e)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1)}return p}async function M(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=x(e,t),m=F(p),h=l[d?"floating"===u?"reference":"floating":u],g=W(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:s})),y="floating"===u?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=W(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:s}):y);return{top:(g.top-b.top+m.top)/v.y,bottom:(b.bottom-g.bottom+m.bottom)/v.y,left:(g.left-b.left+m.left)/v.x,right:(b.right-g.right+m.right)/v.x}}function $(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function j(t){return f.some(e=>t[e]>=0)}const N=new Set(["left","top"]);function _(){return"undefined"!=typeof window}function z(t){return X(t)?(t.nodeName||"").toLowerCase():"#document"}function V(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Y(t){var e;return null==(e=(X(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function X(t){return!!_()&&(t instanceof Node||t instanceof V(t).Node)}function I(t){return!!_()&&(t instanceof Element||t instanceof V(t).Element)}function q(t){return!!_()&&(t instanceof HTMLElement||t instanceof V(t).HTMLElement)}function G(t){return!(!_()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof V(t).ShadowRoot)}const J=new Set(["inline","contents"]);function K(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=st(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!J.has(r)}const Q=new Set(["table","td","th"]);function U(t){return Q.has(z(t))}const Z=[":popover-open",":modal"];function tt(t){return Z.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const et=["transform","translate","scale","rotate","perspective"],nt=["transform","translate","scale","rotate","perspective","filter"],ot=["paint","layout","strict","content"];function rt(t){const e=it(),n=I(t)?st(t):t;return et.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||nt.some(t=>(n.willChange||"").includes(t))||ot.some(t=>(n.contain||"").includes(t))}function it(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const at=new Set(["html","body","#document"]);function lt(t){return at.has(z(t))}function st(t){return V(t).getComputedStyle(t)}function ct(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if("html"===z(t))return t;const e=t.assignedSlot||t.parentNode||G(t)&&t.host||Y(t);return G(e)?e.host:e}function ut(t){const e=ft(t);return lt(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&K(e)?e:ut(e)}function dt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=ut(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=V(r);if(i){const t=pt(a);return e.concat(a,a.visualViewport||[],K(r)?r:[],t&&n?dt(t):[])}return e.concat(r,dt(r,[],n))}function pt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mt(t){const e=st(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=q(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=p(n)!==i||p(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function ht(t){return I(t)?t:t.contextElement}function gt(t){const e=ht(t);if(!q(e))return h(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=mt(e);let a=(i?p(n.width):n.width)/o,l=(i?p(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const yt=h(0);function wt(t){const e=V(t);return it()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yt}function xt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=ht(t);let a=h(1);e&&(o?I(o)&&(a=gt(o)):a=gt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==V(t))&&e}(i,n,o)?wt(i):h(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,f=r.width/a.x,u=r.height/a.y;if(i){const t=V(i),e=o&&I(o)?V(o):o;let n=t,r=pt(n);for(;r&&o&&e!==n;){const t=gt(r),e=r.getBoundingClientRect(),o=st(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,u*=t.y,s+=i,c+=a,n=V(r),r=pt(n)}}return W({width:f,height:u,x:s,y:c})}function vt(t,e){const n=ct(t).scrollLeft;return e?e.left+n:xt(Y(t)).left+n}function bt(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:vt(t,o)),y:o.top+e.scrollTop}}const Rt=new Set(["absolute","fixed"]);function At(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=V(t),o=Y(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=it();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,n);else if("document"===e)o=function(t){const e=Y(t),n=ct(t),o=t.ownerDocument.body,r=d(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=d(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+vt(t);const l=-n.scrollTop;return"rtl"===st(o).direction&&(a+=d(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(Y(t));else if(I(e))o=function(t,e){const n=xt(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=q(t)?gt(t):h(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=wt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return W(o)}function Pt(t,e){const n=ft(t);return!(n===e||!I(n)||lt(n))&&("fixed"===st(n).position||Pt(n,e))}function St(t,e,n){const o=q(e),r=Y(e),i="fixed"===n,a=xt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const s=h(0);function c(){s.x=vt(r)}if(o||!o&&!i)if(("body"!==z(e)||K(r))&&(l=ct(e)),o){const t=xt(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else r&&c();i&&!o&&r&&c();const f=!r||o||i?h(0):bt(r,l);return{x:a.left+l.scrollLeft-s.x-f.x,y:a.top+l.scrollTop-s.y-f.y,width:a.width,height:a.height}}function Ot(t){return"static"===st(t).position}function Tt(t,e){if(!q(t)||"fixed"===st(t).position)return null;if(e)return e(t);let n=t.offsetParent;return Y(t)===n&&(n=n.ownerDocument.body),n}function Lt(t,e){const n=V(t);if(tt(t))return n;if(!q(t)){let e=ft(t);for(;e&&!lt(e);){if(I(e)&&!Ot(e))return e;e=ft(e)}return n}let o=Tt(t,e);for(;o&&U(o)&&Ot(o);)o=Tt(o,e);return o&&lt(o)&&Ot(o)&&!rt(o)?n:o||function(t){let e=ft(t);for(;q(e)&&!lt(e);){if(rt(e))return e;if(tt(e))return null;e=ft(e)}return null}(t)||n}const Ct={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,a=Y(o),l=!!e&&tt(e.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1);const f=h(0),u=q(o);if((u||!u&&!i)&&(("body"!==z(o)||K(a))&&(s=ct(o)),q(o))){const t=xt(o);c=gt(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const d=!a||u||i?h(0):bt(a,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+d.x,y:n.y*c.y-s.scrollTop*c.y+f.y+d.y}},getDocumentElement:Y,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?tt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=dt(t,[],!1).filter(t=>I(t)&&"body"!==z(t)),r=null;const i="fixed"===st(t).position;let a=i?ft(t):t;for(;I(a)&&!lt(a);){const e=st(a),n=rt(a);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&Rt.has(r.position)||K(a)&&!n&&Pt(t,a))?o=o.filter(t=>t!==a):r=e,a=ft(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],a=i[0],l=i.reduce((t,n)=>{const o=At(e,n,r);return t.top=d(o.top,t.top),t.right=u(o.right,t.right),t.bottom=u(o.bottom,t.bottom),t.left=d(o.left,t.left),t},At(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Lt,getElementRects:async function(t){const e=this.getOffsetParent||Lt,n=this.getDimensions,o=await n(t.floating);return{reference:St(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=mt(t);return{width:e,height:n}},getScale:gt,isElement:I,isRTL:function(t){return"rtl"===st(t).direction}};function Et(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Dt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=ht(t),f=r||i?[...c?dt(c):[],...dt(e)]:[];f.forEach(t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)});const p=c&&l?function(t,e){let n,o=null;const r=Y(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const c=t.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=c;if(l||e(),!h||!g)return;const y={rootMargin:-m(p)+"px "+-m(r.clientWidth-(f+h))+"px "+-m(r.clientHeight-(p+g))+"px "+-m(f)+"px",threshold:d(0,u(1,s))||1};let w=!0;function x(e){const o=e[0].intersectionRatio;if(o!==s){if(!w)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==o||Et(c,t.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(x,{...y,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,y)}o.observe(t)}(!0),i}(c,n):null;let h,g=-1,y=null;a&&(y=new ResizeObserver(t=>{let[o]=t;o&&o.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),c&&!s&&y.observe(c),y.observe(e));let w=s?xt(t):null;return s&&function e(){const o=xt(t);w&&!Et(w,o)&&n();w=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach(t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)}),null==p||p(),null==(t=y)||t.disconnect(),y=null,s&&cancelAnimationFrame(h)}}const Ht=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=e,s=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=v(n),l=b(n),s="y"===S(n),c=N.has(a)?-1:1,f=i&&s?-1:1,u=x(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*f,y:d*c}:{x:d*c,y:p*f}}(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},kt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=x(t,e),c={x:n,y:o},f=await M(e,s),u=S(v(r)),d=R(u);let p=c[d],m=c[u];if(i){const t="y"===d?"bottom":"right";p=w(p+f["y"===d?"top":"left"],p,p-f[t])}if(a){const t="y"===u?"bottom":"right";m=w(m+f["y"===u?"top":"left"],m,m-f[t])}const h=l.fn({...e,[d]:p,[u]:m});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[d]:i,[u]:a}}}}}},Ft=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=x(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=v(r),w=S(l),R=v(l)===l,P=await(null==s.isRTL?void 0:s.isRTL(c.floating)),L=d||(R||!h?[k(l)]:function(t){const e=k(t);return[T(t),e,T(e)]}(l)),C="none"!==m;!d&&C&&L.push(...H(l,h,m,P));const E=[l,...L],D=await M(e,g),F=[];let W=(null==(o=i.flip)?void 0:o.overflows)||[];if(f&&F.push(D[y]),u){const t=function(t,e,n){void 0===n&&(n=!1);const o=b(t),r=O(t),i=A(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=k(a)),[a,k(a)]}(r,a,P);F.push(D[t[0]],D[t[1]])}if(W=[...W,{placement:r,overflows:F}],!F.every(t=>t<=0)){var B,$;const t=((null==(B=i.flip)?void 0:B.index)||0)+1,e=E[t];if(e){if(!("alignment"===u&&w!==S(e))||W.every(t=>t.overflows[0]>0&&S(t.placement)===w))return{data:{index:t,overflows:W},reset:{placement:e}}}let n=null==($=W.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:$.placement;if(!n)switch(p){case"bestFit":{var j;const t=null==(j=W.filter(t=>{if(C){const e=S(t.placement);return e===w||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:j[0];t&&(n=t);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},Wt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:a,elements:l}=e,{apply:s=()=>{},...c}=x(t,e),f=await M(e,c),p=v(r),m=b(r),h="y"===S(r),{width:g,height:y}=i.floating;let w,R;"top"===p||"bottom"===p?(w=p,R=m===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(R=p,w="end"===m?"top":"bottom");const A=y-f.top-f.bottom,P=g-f.left-f.right,O=u(y-f[w],A),T=u(g-f[R],P),L=!e.middlewareData.shift;let C=O,E=T;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(E=P),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(C=A),L&&!m){const t=d(f.left,0),e=d(f.right,0),n=d(f.top,0),o=d(f.bottom,0);h?E=g-2*(0!==t||0!==e?t+e:d(f.left,f.right)):C=y-2*(0!==n||0!==o?n+o:d(f.top,f.bottom))}await s({...e,availableWidth:E,availableHeight:C});const D=await a.getDimensions(l.floating);return g!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}},Bt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=x(t,e);switch(o){case"referenceHidden":{const t=$(await M(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=$(await M(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}},Mt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:a,elements:l,middlewareData:s}=e,{element:c,padding:f=0}=x(t,e)||{};if(null==c)return{};const d=F(f),p={x:n,y:o},m=O(r),h=A(m),g=await a.getDimensions(c),y="y"===m,v=y?"top":"left",R=y?"bottom":"right",P=y?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[m]-p[m]-i.floating[h],T=p[m]-i.reference[m],L=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=L?L[P]:0;C&&await(null==a.isElement?void 0:a.isElement(L))||(C=l.floating[P]||i.floating[h]);const E=S/2-T/2,D=C/2-g[h]/2-1,H=u(d[v],D),k=u(d[R],D),W=H,B=C-g[h]-k,M=C/2-g[h]/2+E,$=w(W,M,B),j=!s.arrow&&null!=b(r)&&M!==$&&i.reference[h]/2-(M<W?H:k)-g[h]/2<0,N=j?M<W?M-W:M-B:0;return{[m]:p[m]+N,data:{[m]:$,centerOffset:M-$-N,...j&&{alignmentOffset:N}},reset:j}}}),$t=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=x(t,e),f={x:n,y:o},u=S(r),d=R(u);let p=f[d],m=f[u];const h=x(l,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const t="y"===d?"height":"width",e=i.reference[d]-i.floating[t]+g.mainAxis,n=i.reference[d]+i.reference[t]-g.mainAxis;p<e?p=e:p>n&&(p=n)}if(c){var y,w;const t="y"===d?"width":"height",e=N.has(v(r)),n=i.reference[u]-i.floating[t]+(e&&(null==(y=a.offset)?void 0:y[u])||0)+(e?0:g.crossAxis),o=i.reference[u]+i.reference[t]+(e?0:(null==(w=a.offset)?void 0:w[u])||0)-(e?g.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[d]:p,[u]:m}}}},jt=(t,e,n)=>{const o=new Map,r={platform:Ct,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=B(c,o,s),d=o,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:g,y:y,data:w,reset:x}=await h({x:f,y:u,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[i]:{...p[i],...w}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:f,y:u}=B(c,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:r,middlewareData:p}})(t,e,{...r,platform:i})};var Nt="undefined"!=typeof document?e:function(){};function _t(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;0!==o--;)if(!_t(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;0!==o--;){const n=r[o];if(("_owner"!==n||!t.$$typeof)&&!_t(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function zt(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vt(t,e){const n=zt(t);return Math.round(e*n)/n}function Yt(e){const n=t.useRef(e);return Nt(()=>{n.current=e}),n}const Xt=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:o}="function"==typeof t?t(e):t;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?Mt({element:n.current,padding:o}).fn(e):{}:n?Mt({element:n,padding:o}).fn(e):{};var r}}),It=(t,e)=>({...kt(t),options:[t,e]}),qt=(t,e)=>({...$t(t),options:[t,e]}),Gt=(t,e)=>({...Ft(t),options:[t,e]}),Jt=(t,e)=>({...Wt(t),options:[t,e]}),Kt=(t,e)=>({...Bt(t),options:[t,e]}),Qt=(t,e)=>({...Xt(t),options:[t,e]});var Ut=t.forwardRef((t,e)=>{const{children:n,width:i=10,height:a=5,...l}=t;return r(o.svg,{...l,ref:e,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:r("polygon",{points:"0,0 30,0 15,10"})})});Ut.displayName="Arrow";var Zt=Ut,te="Popper",[ee,ne]=a(te),[oe,re]=ee(te),ie=e=>{const{__scopePopper:n,children:o}=e,[i,a]=t.useState(null);return r(oe,{scope:n,anchor:i,onAnchorChange:a,children:o})};ie.displayName=te;var ae="PopperAnchor",le=t.forwardRef((e,n)=>{const{__scopePopper:a,virtualRef:l,...s}=e,c=re(ae,a),f=t.useRef(null),u=i(n,f);return t.useEffect(()=>{c.onAnchorChange(l?.current||f.current)}),l?null:r(o.div,{...s,ref:u})});le.displayName=ae;var se="PopperContent",[ce,fe]=ee(se),ue=t.forwardRef((e,a)=>{const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:R,...A}=e,P=re(se,f),[S,O]=t.useState(null),T=i(a,t=>O(t)),[L,C]=t.useState(null),E=c(L),D=E?.width??0,H=E?.height??0,k=u+("center"!==p?"-"+p:""),F="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},W=Array.isArray(y)?y:[y],B=W.length>0,M={padding:F,boundary:W.filter(he),altBoundary:B},{refs:$,floatingStyles:j,placement:N,isPositioned:_,middlewareData:z}=function(e){void 0===e&&(e={});const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:s}={},transform:c=!0,whileElementsMounted:f,open:u}=e,[d,p]=t.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[m,h]=t.useState(i);_t(m,i)||h(i);const[g,y]=t.useState(null),[w,x]=t.useState(null),v=t.useCallback(t=>{t!==P.current&&(P.current=t,y(t))},[]),b=t.useCallback(t=>{t!==S.current&&(S.current=t,x(t))},[]),R=l||g,A=s||w,P=t.useRef(null),S=t.useRef(null),O=t.useRef(d),T=null!=f,L=Yt(f),C=Yt(a),E=Yt(u),D=t.useCallback(()=>{if(!P.current||!S.current)return;const t={placement:o,strategy:r,middleware:m};C.current&&(t.platform=C.current),jt(P.current,S.current,t).then(t=>{const e={...t,isPositioned:!1!==E.current};H.current&&!_t(O.current,e)&&(O.current=e,n.flushSync(()=>{p(e)}))})},[m,o,r,C,E]);Nt(()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p(t=>({...t,isPositioned:!1})))},[u]);const H=t.useRef(!1);Nt(()=>(H.current=!0,()=>{H.current=!1}),[]),Nt(()=>{if(R&&(P.current=R),A&&(S.current=A),R&&A){if(L.current)return L.current(R,A,D);D()}},[R,A,D,L,T]);const k=t.useMemo(()=>({reference:P,floating:S,setReference:v,setFloating:b}),[v,b]),F=t.useMemo(()=>({reference:R,floating:A}),[R,A]),W=t.useMemo(()=>{const t={position:r,left:0,top:0};if(!F.floating)return t;const e=Vt(F.floating,d.x),n=Vt(F.floating,d.y);return c?{...t,transform:"translate("+e+"px, "+n+"px)",...zt(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:e,top:n}},[r,c,F.floating,d.x,d.y]);return t.useMemo(()=>({...d,update:D,refs:k,elements:F,floatingStyles:W}),[d,D,k,F,W])}({strategy:"fixed",placement:k,whileElementsMounted:(...t)=>Dt(...t,{animationFrame:"always"===b}),elements:{reference:P.anchor},middleware:[(V={mainAxis:d+H,alignmentAxis:m},{...Ht(V),options:[V,Y]}),g&&It({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?qt():void 0,...M}),g&&Gt({...M}),Jt({...M,apply:({elements:t,rects:e,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=e.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${o}px`),a.setProperty("--radix-popper-anchor-width",`${r}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),L&&Qt({element:L,padding:h}),ge({arrowWidth:D,arrowHeight:H}),v&&Kt({strategy:"referenceHidden",...M})]});var V,Y;const[X,I]=ye(N),q=l(R);s(()=>{_&&q?.()},[_,q]);const G=z.arrow?.x,J=z.arrow?.y,K=0!==z.arrow?.centerOffset,[Q,U]=t.useState();return s(()=>{S&&U(window.getComputedStyle(S).zIndex)},[S]),r("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:_?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r(ce,{scope:f,placedSide:X,onArrowChange:C,arrowX:G,arrowY:J,shouldHideArrow:K,children:r(o.div,{"data-side":X,"data-align":I,...A,ref:T,style:{...A.style,animation:_?void 0:"none"}})})})});ue.displayName=se;var de="PopperArrow",pe={top:"bottom",right:"left",bottom:"top",left:"right"},me=t.forwardRef(function(t,e){const{__scopePopper:n,...o}=t,i=fe(de,n),a=pe[i.placedSide];return r("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:r(Zt,{...o,ref:e,style:{...o.style,display:"block"}})})});function he(t){return null!==t}me.displayName=de;var ge=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,i=0!==r.arrow?.centerOffset,a=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[s,c]=ye(n),f={start:"0%",center:"50%",end:"100%"}[c],u=(r.arrow?.x??0)+a/2,d=(r.arrow?.y??0)+l/2;let p="",m="";return"bottom"===s?(p=i?f:`${u}px`,m=-l+"px"):"top"===s?(p=i?f:`${u}px`,m=`${o.floating.height+l}px`):"right"===s?(p=-l+"px",m=i?f:`${d}px`):"left"===s&&(p=`${o.floating.width+l}px`,m=i?f:`${d}px`),{data:{x:p,y:m}}}});function ye(t){const[e,n="center"]=t.split("-");return[e,n]}var we=ie,xe=le,ve=ue,be=me;export{xe as A,ve as C,we as R,be as a,ne as c};
2
+ //# sourceMappingURL=index-DOyt-JEx.mjs.map