@anoki/fse-ui 1.0.0-beta1.48.27 → 1.0.0-beta1.48.29

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 (286) hide show
  1. package/dist/index.cjs16.js +1 -1
  2. package/dist/index.cjs16.js.map +1 -1
  3. package/dist/index.cjs164.js +1 -1
  4. package/dist/index.cjs164.js.map +1 -1
  5. package/dist/index.cjs165.js +1 -1
  6. package/dist/index.cjs165.js.map +1 -1
  7. package/dist/index.cjs166.js +1 -1
  8. package/dist/index.cjs166.js.map +1 -1
  9. package/dist/index.cjs168.js +1 -1
  10. package/dist/index.cjs168.js.map +1 -1
  11. package/dist/index.cjs169.js +1 -1
  12. package/dist/index.cjs169.js.map +1 -1
  13. package/dist/index.cjs292.js +1 -1
  14. package/dist/index.cjs297.js +1 -1
  15. package/dist/index.cjs305.js +1 -1
  16. package/dist/index.cjs316.js +1 -1
  17. package/dist/index.cjs32.js +1 -1
  18. package/dist/index.cjs323.js +1 -1
  19. package/dist/index.cjs33.js +1 -1
  20. package/dist/index.cjs354.js +1 -1
  21. package/dist/index.cjs395.js +1 -1
  22. package/dist/index.cjs401.js +1 -1
  23. package/dist/index.cjs469.js +2 -0
  24. package/dist/index.cjs469.js.map +1 -0
  25. package/dist/index.cjs470.js +1 -1
  26. package/dist/index.cjs470.js.map +1 -1
  27. package/dist/index.cjs471.js +1 -1
  28. package/dist/index.cjs471.js.map +1 -1
  29. package/dist/index.cjs472.js +1 -1
  30. package/dist/index.cjs472.js.map +1 -1
  31. package/dist/index.cjs473.js +1 -1
  32. package/dist/index.cjs473.js.map +1 -1
  33. package/dist/index.cjs474.js +1 -1
  34. package/dist/index.cjs474.js.map +1 -1
  35. package/dist/index.cjs475.js +1 -1
  36. package/dist/index.cjs475.js.map +1 -1
  37. package/dist/index.cjs478.js +1 -1
  38. package/dist/index.cjs479.js +1 -1
  39. package/dist/index.cjs481.js +1 -1
  40. package/dist/index.cjs483.js +1 -1
  41. package/dist/index.cjs484.js +1 -1
  42. package/dist/index.cjs485.js +1 -1
  43. package/dist/index.cjs486.js +1 -1
  44. package/dist/index.cjs487.js +1 -1
  45. package/dist/index.cjs490.js +1 -1
  46. package/dist/index.cjs491.js +1 -1
  47. package/dist/index.cjs491.js.map +1 -1
  48. package/dist/index.cjs492.js +2 -0
  49. package/dist/index.cjs492.js.map +1 -0
  50. package/dist/index.cjs493.js +2 -0
  51. package/dist/index.cjs493.js.map +1 -0
  52. package/dist/index.cjs494.js +1 -1
  53. package/dist/index.cjs494.js.map +1 -1
  54. package/dist/index.cjs495.js +1 -1
  55. package/dist/index.cjs495.js.map +1 -1
  56. package/dist/index.cjs496.js +1 -1
  57. package/dist/index.cjs496.js.map +1 -1
  58. package/dist/index.cjs497.js +1 -1
  59. package/dist/index.cjs497.js.map +1 -1
  60. package/dist/index.cjs498.js +1 -1
  61. package/dist/index.cjs498.js.map +1 -1
  62. package/dist/index.cjs499.js +1 -1
  63. package/dist/index.cjs499.js.map +1 -1
  64. package/dist/index.cjs500.js +1 -1
  65. package/dist/index.cjs500.js.map +1 -1
  66. package/dist/index.cjs501.js +1 -1
  67. package/dist/index.cjs501.js.map +1 -1
  68. package/dist/index.cjs502.js +1 -1
  69. package/dist/index.cjs502.js.map +1 -1
  70. package/dist/index.cjs503.js +1 -1
  71. package/dist/index.cjs503.js.map +1 -1
  72. package/dist/index.cjs504.js +4 -1
  73. package/dist/index.cjs504.js.map +1 -1
  74. package/dist/index.cjs505.js +1 -1
  75. package/dist/index.cjs505.js.map +1 -1
  76. package/dist/index.cjs506.js +1 -4
  77. package/dist/index.cjs506.js.map +1 -1
  78. package/dist/index.cjs507.js +1 -1
  79. package/dist/index.cjs507.js.map +1 -1
  80. package/dist/index.cjs508.js +1 -1
  81. package/dist/index.cjs508.js.map +1 -1
  82. package/dist/index.cjs511.js +1 -1
  83. package/dist/index.cjs511.js.map +1 -1
  84. package/dist/index.cjs514.js +1 -1
  85. package/dist/index.cjs514.js.map +1 -1
  86. package/dist/index.cjs515.js +38 -1
  87. package/dist/index.cjs515.js.map +1 -1
  88. package/dist/index.cjs516.js +1 -1
  89. package/dist/index.cjs516.js.map +1 -1
  90. package/dist/index.cjs517.js +2 -0
  91. package/dist/index.cjs517.js.map +1 -0
  92. package/dist/index.cjs518.js +2 -0
  93. package/dist/index.cjs518.js.map +1 -0
  94. package/dist/{index.cjs525.js → index.cjs531.js} +1 -1
  95. package/dist/{index.cjs525.js.map → index.cjs531.js.map} +1 -1
  96. package/dist/{index.cjs526.js → index.cjs532.js} +1 -1
  97. package/dist/{index.cjs526.js.map → index.cjs532.js.map} +1 -1
  98. package/dist/index.cjs537.js +1 -1
  99. package/dist/index.cjs537.js.map +1 -1
  100. package/dist/index.cjs538.js +1 -1
  101. package/dist/index.cjs538.js.map +1 -1
  102. package/dist/index.cjs539.js +1 -1
  103. package/dist/index.cjs539.js.map +1 -1
  104. package/dist/index.cjs540.js +1 -1
  105. package/dist/index.cjs540.js.map +1 -1
  106. package/dist/index.cjs542.js +1 -1
  107. package/dist/index.cjs545.js +1 -1
  108. package/dist/index.cjs550.js +1 -1
  109. package/dist/index.cjs552.js +1 -1
  110. package/dist/index.cjs559.js +1 -1
  111. package/dist/index.cjs564.js +1 -1
  112. package/dist/index.cjs566.js +1 -1
  113. package/dist/index.cjs570.js +1 -1
  114. package/dist/index.cjs570.js.map +1 -1
  115. package/dist/index.cjs571.js +1 -1
  116. package/dist/index.cjs571.js.map +1 -1
  117. package/dist/index.cjs572.js +1 -1
  118. package/dist/index.cjs572.js.map +1 -1
  119. package/dist/index.cjs573.js +1 -1
  120. package/dist/index.cjs573.js.map +1 -1
  121. package/dist/index.cjs574.js +1 -1
  122. package/dist/{index.cjs583.js → index.cjs585.js} +2 -2
  123. package/dist/{index.cjs583.js.map → index.cjs585.js.map} +1 -1
  124. package/dist/{index.cjs584.js → index.cjs586.js} +1 -1
  125. package/dist/index.cjs586.js.map +1 -0
  126. package/dist/{index.cjs580.js → index.cjs587.js} +1 -1
  127. package/dist/{index.cjs580.js.map → index.cjs587.js.map} +1 -1
  128. package/dist/{index.cjs581.js → index.cjs588.js} +1 -1
  129. package/dist/{index.cjs581.js.map → index.cjs588.js.map} +1 -1
  130. package/dist/{index.cjs582.js → index.cjs589.js} +1 -1
  131. package/dist/{index.cjs582.js.map → index.cjs589.js.map} +1 -1
  132. package/dist/index.es16.js +3 -4
  133. package/dist/index.es16.js.map +1 -1
  134. package/dist/index.es164.js +1 -0
  135. package/dist/index.es164.js.map +1 -1
  136. package/dist/index.es165.js +7 -6
  137. package/dist/index.es165.js.map +1 -1
  138. package/dist/index.es166.js +1 -0
  139. package/dist/index.es166.js.map +1 -1
  140. package/dist/index.es168.js +1 -0
  141. package/dist/index.es168.js.map +1 -1
  142. package/dist/index.es169.js +1 -0
  143. package/dist/index.es169.js.map +1 -1
  144. package/dist/index.es292.js +7 -7
  145. package/dist/index.es297.js +1 -1
  146. package/dist/index.es305.js +7 -7
  147. package/dist/index.es316.js +1 -1
  148. package/dist/index.es32.js +1 -1
  149. package/dist/index.es323.js +6 -6
  150. package/dist/index.es33.js +1 -1
  151. package/dist/index.es354.js +7 -7
  152. package/dist/index.es395.js +3 -3
  153. package/dist/index.es401.js +1 -1
  154. package/dist/index.es469.js +10 -0
  155. package/dist/index.es469.js.map +1 -0
  156. package/dist/index.es470.js +25 -5
  157. package/dist/index.es470.js.map +1 -1
  158. package/dist/index.es471.js +64 -23
  159. package/dist/index.es471.js.map +1 -1
  160. package/dist/index.es472.js +48 -64
  161. package/dist/index.es472.js.map +1 -1
  162. package/dist/index.es473.js +33 -51
  163. package/dist/index.es473.js.map +1 -1
  164. package/dist/index.es474.js +620 -32
  165. package/dist/index.es474.js.map +1 -1
  166. package/dist/index.es475.js +10 -621
  167. package/dist/index.es475.js.map +1 -1
  168. package/dist/index.es478.js +1 -1
  169. package/dist/index.es479.js +2 -2
  170. package/dist/index.es481.js +4 -4
  171. package/dist/index.es483.js +2 -2
  172. package/dist/index.es484.js +7 -7
  173. package/dist/index.es485.js +1 -1
  174. package/dist/index.es486.js +1 -1
  175. package/dist/index.es487.js +6 -6
  176. package/dist/index.es490.js +3 -3
  177. package/dist/index.es491.js +11 -14
  178. package/dist/index.es491.js.map +1 -1
  179. package/dist/index.es492.js +208 -0
  180. package/dist/index.es492.js.map +1 -0
  181. package/dist/index.es493.js +25 -0
  182. package/dist/index.es493.js.map +1 -0
  183. package/dist/index.es494.js +24 -11
  184. package/dist/index.es494.js.map +1 -1
  185. package/dist/index.es495.js +385 -193
  186. package/dist/index.es495.js.map +1 -1
  187. package/dist/index.es496.js +14 -21
  188. package/dist/index.es496.js.map +1 -1
  189. package/dist/index.es497.js +5 -24
  190. package/dist/index.es497.js.map +1 -1
  191. package/dist/index.es498.js +22 -394
  192. package/dist/index.es498.js.map +1 -1
  193. package/dist/index.es499.js +29 -6
  194. package/dist/index.es499.js.map +1 -1
  195. package/dist/index.es500.js +5 -25
  196. package/dist/index.es500.js.map +1 -1
  197. package/dist/index.es501.js +5 -29
  198. package/dist/index.es501.js.map +1 -1
  199. package/dist/index.es502.js +3 -5
  200. package/dist/index.es502.js.map +1 -1
  201. package/dist/index.es503.js +24 -5
  202. package/dist/index.es503.js.map +1 -1
  203. package/dist/index.es504.js +110 -3
  204. package/dist/index.es504.js.map +1 -1
  205. package/dist/index.es505.js +15 -23
  206. package/dist/index.es505.js.map +1 -1
  207. package/dist/index.es506.js +521 -104
  208. package/dist/index.es506.js.map +1 -1
  209. package/dist/index.es507.js +125 -14
  210. package/dist/index.es507.js.map +1 -1
  211. package/dist/index.es508.js +120 -518
  212. package/dist/index.es508.js.map +1 -1
  213. package/dist/index.es511.js +15 -15
  214. package/dist/index.es511.js.map +1 -1
  215. package/dist/index.es514.js +64 -8
  216. package/dist/index.es514.js.map +1 -1
  217. package/dist/index.es515.js +68 -13
  218. package/dist/index.es515.js.map +1 -1
  219. package/dist/index.es516.js +8 -61
  220. package/dist/index.es516.js.map +1 -1
  221. package/dist/index.es517.js +17 -0
  222. package/dist/index.es517.js.map +1 -0
  223. package/dist/index.es518.js +65 -0
  224. package/dist/index.es518.js.map +1 -0
  225. package/dist/{index.es525.js → index.es531.js} +1 -1
  226. package/dist/{index.es525.js.map → index.es531.js.map} +1 -1
  227. package/dist/{index.es526.js → index.es532.js} +1 -1
  228. package/dist/{index.es526.js.map → index.es532.js.map} +1 -1
  229. package/dist/index.es537.js +11 -21
  230. package/dist/index.es537.js.map +1 -1
  231. package/dist/index.es538.js +26 -11
  232. package/dist/index.es538.js.map +1 -1
  233. package/dist/index.es539.js +4 -27
  234. package/dist/index.es539.js.map +1 -1
  235. package/dist/index.es540.js +22 -4
  236. package/dist/index.es540.js.map +1 -1
  237. package/dist/index.es542.js +1 -1
  238. package/dist/index.es545.js +3 -3
  239. package/dist/index.es550.js +2 -2
  240. package/dist/index.es552.js +6 -6
  241. package/dist/index.es559.js +5 -5
  242. package/dist/index.es564.js +4 -4
  243. package/dist/index.es566.js +1 -1
  244. package/dist/index.es570.js +2 -16
  245. package/dist/index.es570.js.map +1 -1
  246. package/dist/index.es571.js +2 -2
  247. package/dist/index.es571.js.map +1 -1
  248. package/dist/index.es572.js +2 -2
  249. package/dist/index.es572.js.map +1 -1
  250. package/dist/index.es573.js +16 -2
  251. package/dist/index.es573.js.map +1 -1
  252. package/dist/index.es574.js +2 -2
  253. package/dist/{index.es583.js → index.es585.js} +2 -2
  254. package/dist/{index.es583.js.map → index.es585.js.map} +1 -1
  255. package/dist/{index.es584.js → index.es586.js} +1 -1
  256. package/dist/index.es586.js.map +1 -0
  257. package/dist/{index.es580.js → index.es587.js} +1 -1
  258. package/dist/{index.es580.js.map → index.es587.js.map} +1 -1
  259. package/dist/{index.es581.js → index.es588.js} +1 -1
  260. package/dist/{index.es581.js.map → index.es588.js.map} +1 -1
  261. package/dist/{index.es582.js → index.es589.js} +1 -1
  262. package/dist/{index.es582.js.map → index.es589.js.map} +1 -1
  263. package/package.json +1 -1
  264. package/dist/index.cjs476.js +0 -2
  265. package/dist/index.cjs476.js.map +0 -1
  266. package/dist/index.cjs509.js +0 -2
  267. package/dist/index.cjs509.js.map +0 -1
  268. package/dist/index.cjs510.js +0 -2
  269. package/dist/index.cjs510.js.map +0 -1
  270. package/dist/index.cjs512.js +0 -2
  271. package/dist/index.cjs512.js.map +0 -1
  272. package/dist/index.cjs513.js +0 -39
  273. package/dist/index.cjs513.js.map +0 -1
  274. package/dist/index.cjs584.js.map +0 -1
  275. package/dist/index.es476.js +0 -14
  276. package/dist/index.es476.js.map +0 -1
  277. package/dist/index.es509.js +0 -130
  278. package/dist/index.es509.js.map +0 -1
  279. package/dist/index.es510.js +0 -132
  280. package/dist/index.es510.js.map +0 -1
  281. package/dist/index.es512.js +0 -68
  282. package/dist/index.es512.js.map +0 -1
  283. package/dist/index.es513.js +0 -72
  284. package/dist/index.es513.js.map +0 -1
  285. package/dist/index.es584.js.map +0 -1
  286. /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
@@ -1,15 +1,28 @@
1
- import * as r from "react";
2
- import { useCallbackRef as s } from "./index.es488.js";
3
- function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
- const t = s(n);
5
- r.useEffect(() => {
6
- const o = (a) => {
7
- a.key === "Escape" && t(a);
8
- };
9
- return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
10
- }, [t, e]);
1
+ import * as h from "react";
2
+ import { useLayoutEffect as z } from "./index.es477.js";
3
+ function c(r) {
4
+ const [d, e] = h.useState(void 0);
5
+ return z(() => {
6
+ if (r) {
7
+ e({ width: r.offsetWidth, height: r.offsetHeight });
8
+ const f = new ResizeObserver((i) => {
9
+ if (!Array.isArray(i) || !i.length)
10
+ return;
11
+ const b = i[0];
12
+ let o, t;
13
+ if ("borderBoxSize" in b) {
14
+ const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
+ o = u.inlineSize, t = u.blockSize;
16
+ } else
17
+ o = r.offsetWidth, t = r.offsetHeight;
18
+ e({ width: o, height: t });
19
+ });
20
+ return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
+ } else
22
+ e(void 0);
23
+ }, [r]), d;
11
24
  }
12
25
  export {
13
- p as useEscapeKeydown
26
+ c as useSize
14
27
  };
15
28
  //# sourceMappingURL=index.es494.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es494.js","sources":["../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":";;AAGA,SAASA,EAAiBC,GAAqBC,IAAgB,yCAAY,UAAU;AACnF,QAAMC,IAAkBC,EAAeH,CAAmB;AAC1D,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAgB,CAACC,MAAU;AAC/B,MAAIA,EAAM,QAAQ,YAChBJ,EAAgBI,CAAK;AAAA,IAExB;AACD,WAAAL,EAAc,iBAAiB,WAAWI,GAAe,EAAE,SAAS,IAAM,GACnE,MAAMJ,EAAc,oBAAoB,WAAWI,GAAe,EAAE,SAAS,IAAM;AAAA,EAC9F,GAAK,CAACH,GAAiBD,CAAa,CAAC;AACrC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es494.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":";;AAGA,SAASA,EAAQC,GAAS;AACxB,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,MAAM;AAC7CC,SAAAA,EAAgB,MAAM;AACpB,QAAIJ,GAAS;AACX,MAAAE,EAAQ,EAAE,OAAOF,EAAQ,aAAa,QAAQA,EAAQ,cAAc;AACpE,YAAMK,IAAiB,IAAI,eAAe,CAACC,MAAY;AAIrD,YAHI,CAAC,MAAM,QAAQA,CAAO,KAGtB,CAACA,EAAQ;AACX;AAEF,cAAMC,IAAQD,EAAQ,CAAC;AACvB,YAAIE,GACAC;AACJ,YAAI,mBAAmBF,GAAO;AAC5B,gBAAMG,IAAkBH,EAAM,eACxBI,IAAa,MAAM,QAAQD,CAAe,IAAIA,EAAgB,CAAC,IAAIA;AACzE,UAAAF,IAAQG,EAAW,YACnBF,IAASE,EAAW;AAAA,QAC9B;AACU,UAAAH,IAAQR,EAAQ,aAChBS,IAAST,EAAQ;AAEnB,QAAAE,EAAQ,EAAE,OAAAM,GAAO,QAAAC,GAAQ;AAAA,MACjC,CAAO;AACD,aAAAJ,EAAe,QAAQL,GAAS,EAAE,KAAK,aAAY,CAAE,GAC9C,MAAMK,EAAe,UAAUL,CAAO;AAAA,IACnD;AACM,MAAAE,EAAQ,MAAM;AAAA,EAEpB,GAAK,CAACF,CAAO,CAAC,GACLC;AACT;","x_google_ignoreList":[0]}
@@ -1,208 +1,400 @@
1
- import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as L } from "./index.es498.js";
2
- import { autoUpdate as me, platform as pe } from "./index.es498.js";
3
- import * as f from "react";
4
- import { useLayoutEffect as Y, useEffect as Z } from "react";
5
- import * as b from "react-dom";
6
- var w = typeof document < "u" ? Y : Z;
7
- function R(e, t) {
8
- if (e === t)
9
- return !0;
10
- if (typeof e != typeof t)
11
- return !1;
12
- if (typeof e == "function" && e.toString() === t.toString())
13
- return !0;
14
- let n, r, s;
15
- if (e && t && typeof e == "object") {
16
- if (Array.isArray(e)) {
17
- if (n = e.length, n !== t.length) return !1;
18
- for (r = n; r-- !== 0; )
19
- if (!R(e[r], t[r]))
20
- return !1;
21
- return !0;
22
- }
23
- if (s = Object.keys(e), n = s.length, n !== Object.keys(t).length)
24
- return !1;
25
- for (r = n; r-- !== 0; )
26
- if (!{}.hasOwnProperty.call(t, s[r]))
27
- return !1;
28
- for (r = n; r-- !== 0; ) {
29
- const p = s[r];
30
- if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
31
- return !1;
1
+ import { offset as ot, shift as st, flip as rt, size as ct, hide as lt, limitShift as ft, computePosition as ut, arrow as ht } from "./index.es506.js";
2
+ import { createCoords as m, round as A, max as E, min as V, rectToClientRect as J, floor as D } from "./index.es507.js";
3
+ import { isElement as v, getDocumentElement as O, getOverflowAncestors as $, getComputedStyle as R, isHTMLElement as b, getWindow as L, isTopLayer as S, getParentNode as W, isLastTraversableNode as H, isTableElement as at, isContainingBlock as Q, getContainingBlock as dt, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getFrameElement as K, isWebKit as Y } from "./index.es508.js";
4
+ function Z(t) {
5
+ const e = R(t);
6
+ let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
7
+ const o = b(t), r = o ? t.offsetWidth : i, s = o ? t.offsetHeight : n, c = A(i) !== r || A(n) !== s;
8
+ return c && (i = r, n = s), {
9
+ width: i,
10
+ height: n,
11
+ $: c
12
+ };
13
+ }
14
+ function q(t) {
15
+ return v(t) ? t : t.contextElement;
16
+ }
17
+ function F(t) {
18
+ const e = q(t);
19
+ if (!b(e))
20
+ return m(1);
21
+ const i = e.getBoundingClientRect(), {
22
+ width: n,
23
+ height: o,
24
+ $: r
25
+ } = Z(e);
26
+ let s = (r ? A(i.width) : i.width) / n, c = (r ? A(i.height) : i.height) / o;
27
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
28
+ x: s,
29
+ y: c
30
+ };
31
+ }
32
+ const gt = /* @__PURE__ */ m(0);
33
+ function X(t) {
34
+ const e = L(t);
35
+ return !Y() || !e.visualViewport ? gt : {
36
+ x: e.visualViewport.offsetLeft,
37
+ y: e.visualViewport.offsetTop
38
+ };
39
+ }
40
+ function pt(t, e, i) {
41
+ return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
42
+ }
43
+ function T(t, e, i, n) {
44
+ e === void 0 && (e = !1), i === void 0 && (i = !1);
45
+ const o = t.getBoundingClientRect(), r = q(t);
46
+ let s = m(1);
47
+ e && (n ? v(n) && (s = F(n)) : s = F(t));
48
+ const c = pt(r, i, n) ? X(r) : m(0);
49
+ let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
50
+ if (r) {
51
+ const p = L(r), a = n && v(n) ? L(n) : n;
52
+ let y = p, g = K(y);
53
+ for (; g && n && a !== y; ) {
54
+ const w = F(g), d = g.getBoundingClientRect(), x = R(g), C = d.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, B = d.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
55
+ l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, y = L(g), g = K(y);
32
56
  }
33
- return !0;
34
57
  }
35
- return e !== e && t !== t;
58
+ return J({
59
+ width: u,
60
+ height: h,
61
+ x: l,
62
+ y: f
63
+ });
36
64
  }
37
- function A(e) {
38
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
65
+ function k(t, e) {
66
+ const i = N(t).scrollLeft;
67
+ return e ? e.left + i : T(O(t)).left + i;
39
68
  }
40
- function v(e, t) {
41
- const n = A(e);
42
- return Math.round(t * n) / n;
69
+ function tt(t, e, i) {
70
+ i === void 0 && (i = !1);
71
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
72
+ // RTL <body> scrollbar.
73
+ k(t, n)
74
+ )), r = n.top + e.scrollTop;
75
+ return {
76
+ x: o,
77
+ y: r
78
+ };
79
+ }
80
+ function wt(t) {
81
+ let {
82
+ elements: e,
83
+ rect: i,
84
+ offsetParent: n,
85
+ strategy: o
86
+ } = t;
87
+ const r = o === "fixed", s = O(n), c = e ? S(e.floating) : !1;
88
+ if (n === s || c && r)
89
+ return i;
90
+ let l = {
91
+ scrollLeft: 0,
92
+ scrollTop: 0
93
+ }, f = m(1);
94
+ const u = m(0), h = b(n);
95
+ if ((h || !h && !r) && ((M(n) !== "body" || _(s)) && (l = N(n)), b(n))) {
96
+ const a = T(n);
97
+ f = F(n), u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
98
+ }
99
+ const p = s && !h && !r ? tt(s, l, !0) : m(0);
100
+ return {
101
+ width: i.width * f.x,
102
+ height: i.height * f.y,
103
+ x: i.x * f.x - l.scrollLeft * f.x + u.x + p.x,
104
+ y: i.y * f.y - l.scrollTop * f.y + u.y + p.y
105
+ };
43
106
  }
44
- function E(e) {
45
- const t = f.useRef(e);
46
- return w(() => {
47
- t.current = e;
48
- }), t;
107
+ function mt(t) {
108
+ return Array.from(t.getClientRects());
49
109
  }
50
- function re(e) {
51
- e === void 0 && (e = {});
52
- const {
53
- placement: t = "bottom",
54
- strategy: n = "absolute",
55
- middleware: r = [],
56
- platform: s,
57
- elements: {
58
- reference: p,
59
- floating: q
60
- } = {},
61
- transform: k = !0,
62
- whileElementsMounted: D,
63
- open: x
64
- } = e, [i, O] = f.useState({
65
- x: 0,
66
- y: 0,
67
- strategy: n,
68
- placement: t,
69
- middlewareData: {},
70
- isPositioned: !1
71
- }), [M, B] = f.useState(r);
72
- R(M, r) || B(r);
73
- const [U, V] = f.useState(null), [W, G] = f.useState(null), _ = f.useCallback((o) => {
74
- o !== a.current && (a.current = o, V(o));
75
- }, []), C = f.useCallback((o) => {
76
- o !== d.current && (d.current = o, G(o));
77
- }, []), u = p || U, l = q || W, a = f.useRef(null), d = f.useRef(null), y = f.useRef(i), H = D != null, S = E(D), P = E(s), F = E(x), g = f.useCallback(() => {
78
- if (!a.current || !d.current)
79
- return;
80
- const o = {
81
- placement: t,
82
- strategy: n,
83
- middleware: M
110
+ function yt(t) {
111
+ const e = O(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
112
+ let s = -i.scrollLeft + k(t);
113
+ const c = -i.scrollTop;
114
+ return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
115
+ width: o,
116
+ height: r,
117
+ x: s,
118
+ y: c
119
+ };
120
+ }
121
+ function xt(t, e) {
122
+ const i = L(t), n = O(t), o = i.visualViewport;
123
+ let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
124
+ if (o) {
125
+ r = o.width, s = o.height;
126
+ const f = Y();
127
+ (!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
128
+ }
129
+ return {
130
+ width: r,
131
+ height: s,
132
+ x: c,
133
+ y: l
134
+ };
135
+ }
136
+ function vt(t, e) {
137
+ const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = b(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
138
+ return {
139
+ width: s,
140
+ height: c,
141
+ x: l,
142
+ y: f
143
+ };
144
+ }
145
+ function j(t, e, i) {
146
+ let n;
147
+ if (e === "viewport")
148
+ n = xt(t, i);
149
+ else if (e === "document")
150
+ n = yt(O(t));
151
+ else if (v(e))
152
+ n = vt(e, i);
153
+ else {
154
+ const o = X(t);
155
+ n = {
156
+ x: e.x - o.x,
157
+ y: e.y - o.y,
158
+ width: e.width,
159
+ height: e.height
84
160
  };
85
- P.current && (o.platform = P.current), I(a.current, d.current, o).then((h) => {
86
- const m = {
87
- ...h,
88
- // The floating element's position may be recomputed while it's closed
89
- // but still mounted (such as when transitioning out). To ensure
90
- // `isPositioned` will be `false` initially on the next open, avoid
91
- // setting it to `true` when `open === false` (must be specified).
92
- isPositioned: F.current !== !1
93
- };
94
- $.current && !R(y.current, m) && (y.current = m, b.flushSync(() => {
95
- O(m);
96
- }));
97
- });
98
- }, [M, t, n, P, F]);
99
- w(() => {
100
- x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((o) => ({
101
- ...o,
102
- isPositioned: !1
103
- })));
104
- }, [x]);
105
- const $ = f.useRef(!1);
106
- w(() => ($.current = !0, () => {
107
- $.current = !1;
108
- }), []), w(() => {
109
- if (u && (a.current = u), l && (d.current = l), u && l) {
110
- if (S.current)
111
- return S.current(u, l, g);
112
- g();
161
+ }
162
+ return J(n);
163
+ }
164
+ function et(t, e) {
165
+ const i = W(t);
166
+ return i === e || !v(i) || H(i) ? !1 : R(i).position === "fixed" || et(i, e);
167
+ }
168
+ function Rt(t, e) {
169
+ const i = e.get(t);
170
+ if (i)
171
+ return i;
172
+ let n = $(t, [], !1).filter((c) => v(c) && M(c) !== "body"), o = null;
173
+ const r = R(t).position === "fixed";
174
+ let s = r ? W(t) : t;
175
+ for (; v(s) && !H(s); ) {
176
+ const c = R(s), l = Q(s);
177
+ !l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && et(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
178
+ }
179
+ return e.set(t, n), n;
180
+ }
181
+ function Ot(t) {
182
+ let {
183
+ element: e,
184
+ boundary: i,
185
+ rootBoundary: n,
186
+ strategy: o
187
+ } = t;
188
+ const s = [...i === "clippingAncestors" ? S(e) ? [] : Rt(e, this._c) : [].concat(i), n], c = s[0], l = s.reduce((f, u) => {
189
+ const h = j(e, u, o);
190
+ return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
191
+ }, j(e, c, o));
192
+ return {
193
+ width: l.right - l.left,
194
+ height: l.bottom - l.top,
195
+ x: l.left,
196
+ y: l.top
197
+ };
198
+ }
199
+ function bt(t) {
200
+ const {
201
+ width: e,
202
+ height: i
203
+ } = Z(t);
204
+ return {
205
+ width: e,
206
+ height: i
207
+ };
208
+ }
209
+ function Ct(t, e, i) {
210
+ const n = b(e), o = O(e), r = i === "fixed", s = T(t, !0, r, e);
211
+ let c = {
212
+ scrollLeft: 0,
213
+ scrollTop: 0
214
+ };
215
+ const l = m(0);
216
+ function f() {
217
+ l.x = k(o);
218
+ }
219
+ if (n || !n && !r)
220
+ if ((M(e) !== "body" || _(o)) && (c = N(e)), n) {
221
+ const a = T(e, !0, r, e);
222
+ l.x = a.x + e.clientLeft, l.y = a.y + e.clientTop;
223
+ } else o && f();
224
+ r && !n && o && f();
225
+ const u = o && !n && !r ? tt(o, c) : m(0), h = s.left + c.scrollLeft - l.x - u.x, p = s.top + c.scrollTop - l.y - u.y;
226
+ return {
227
+ x: h,
228
+ y: p,
229
+ width: s.width,
230
+ height: s.height
231
+ };
232
+ }
233
+ function I(t) {
234
+ return R(t).position === "static";
235
+ }
236
+ function G(t, e) {
237
+ if (!b(t) || R(t).position === "fixed")
238
+ return null;
239
+ if (e)
240
+ return e(t);
241
+ let i = t.offsetParent;
242
+ return O(t) === i && (i = i.ownerDocument.body), i;
243
+ }
244
+ function it(t, e) {
245
+ const i = L(t);
246
+ if (S(t))
247
+ return i;
248
+ if (!b(t)) {
249
+ let o = W(t);
250
+ for (; o && !H(o); ) {
251
+ if (v(o) && !I(o))
252
+ return o;
253
+ o = W(o);
113
254
  }
114
- }, [u, l, g, S, H]);
115
- const j = f.useMemo(() => ({
116
- reference: a,
117
- floating: d,
118
- setReference: _,
119
- setFloating: C
120
- }), [_, C]), c = f.useMemo(() => ({
121
- reference: u,
122
- floating: l
123
- }), [u, l]), z = f.useMemo(() => {
124
- const o = {
125
- position: n,
126
- left: 0,
127
- top: 0
128
- };
129
- if (!c.floating)
130
- return o;
131
- const h = v(c.floating, i.x), m = v(c.floating, i.y);
132
- return k ? {
133
- ...o,
134
- transform: "translate(" + h + "px, " + m + "px)",
135
- ...A(c.floating) >= 1.5 && {
136
- willChange: "transform"
137
- }
138
- } : {
139
- position: n,
140
- left: h,
141
- top: m
142
- };
143
- }, [n, k, c.floating, i.x, i.y]);
144
- return f.useMemo(() => ({
145
- ...i,
146
- update: g,
147
- refs: j,
148
- elements: c,
149
- floatingStyles: z
150
- }), [i, g, j, c, z]);
151
- }
152
- const ee = (e) => {
153
- function t(n) {
154
- return {}.hasOwnProperty.call(n, "current");
255
+ return i;
155
256
  }
257
+ let n = G(t, e);
258
+ for (; n && at(n) && I(n); )
259
+ n = G(n, e);
260
+ return n && H(n) && I(n) && !Q(n) ? i : n || dt(t) || i;
261
+ }
262
+ const Lt = async function(t) {
263
+ const e = this.getOffsetParent || it, i = this.getDimensions, n = await i(t.floating);
156
264
  return {
157
- name: "arrow",
158
- options: e,
159
- fn(n) {
160
- const {
161
- element: r,
162
- padding: s
163
- } = typeof e == "function" ? e(n) : e;
164
- return r && t(r) ? r.current != null ? L({
165
- element: r.current,
166
- padding: s
167
- }).fn(n) : {} : r ? L({
168
- element: r,
169
- padding: s
170
- }).fn(n) : {};
265
+ reference: Ct(t.reference, await e(t.floating), t.strategy),
266
+ floating: {
267
+ x: 0,
268
+ y: 0,
269
+ width: n.width,
270
+ height: n.height
171
271
  }
172
272
  };
173
- }, fe = (e, t) => ({
174
- ...J(e),
175
- options: [e, t]
176
- }), oe = (e, t) => ({
177
- ...K(e),
178
- options: [e, t]
179
- }), se = (e, t) => ({
180
- ...X(e),
181
- options: [e, t]
182
- }), ie = (e, t) => ({
183
- ...N(e),
184
- options: [e, t]
185
- }), ue = (e, t) => ({
186
- ...Q(e),
187
- options: [e, t]
188
- }), le = (e, t) => ({
189
- ...T(e),
190
- options: [e, t]
191
- }), ce = (e, t) => ({
192
- ...ee(e),
193
- options: [e, t]
194
- });
273
+ };
274
+ function Tt(t) {
275
+ return R(t).direction === "rtl";
276
+ }
277
+ const Et = {
278
+ convertOffsetParentRelativeRectToViewportRelativeRect: wt,
279
+ getDocumentElement: O,
280
+ getClippingRect: Ot,
281
+ getOffsetParent: it,
282
+ getElementRects: Lt,
283
+ getClientRects: mt,
284
+ getDimensions: bt,
285
+ getScale: F,
286
+ isElement: v,
287
+ isRTL: Tt
288
+ };
289
+ function nt(t, e) {
290
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
291
+ }
292
+ function Ft(t, e) {
293
+ let i = null, n;
294
+ const o = O(t);
295
+ function r() {
296
+ var c;
297
+ clearTimeout(n), (c = i) == null || c.disconnect(), i = null;
298
+ }
299
+ function s(c, l) {
300
+ c === void 0 && (c = !1), l === void 0 && (l = 1), r();
301
+ const f = t.getBoundingClientRect(), {
302
+ left: u,
303
+ top: h,
304
+ width: p,
305
+ height: a
306
+ } = f;
307
+ if (c || e(), !p || !a)
308
+ return;
309
+ const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + a)), d = D(u), C = {
310
+ rootMargin: -y + "px " + -g + "px " + -w + "px " + -d + "px",
311
+ threshold: E(0, V(1, l)) || 1
312
+ };
313
+ let B = !0;
314
+ function P(U) {
315
+ const z = U[0].intersectionRatio;
316
+ if (z !== l) {
317
+ if (!B)
318
+ return s();
319
+ z ? s(!1, z) : n = setTimeout(() => {
320
+ s(!1, 1e-7);
321
+ }, 1e3);
322
+ }
323
+ z === 1 && !nt(f, t.getBoundingClientRect()) && s(), B = !1;
324
+ }
325
+ try {
326
+ i = new IntersectionObserver(P, {
327
+ ...C,
328
+ // Handle <iframe>s
329
+ root: o.ownerDocument
330
+ });
331
+ } catch {
332
+ i = new IntersectionObserver(P, C);
333
+ }
334
+ i.observe(t);
335
+ }
336
+ return s(!0), r;
337
+ }
338
+ function Dt(t, e, i, n) {
339
+ n === void 0 && (n = {});
340
+ const {
341
+ ancestorScroll: o = !0,
342
+ ancestorResize: r = !0,
343
+ elementResize: s = typeof ResizeObserver == "function",
344
+ layoutShift: c = typeof IntersectionObserver == "function",
345
+ animationFrame: l = !1
346
+ } = n, f = q(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
347
+ u.forEach((d) => {
348
+ o && d.addEventListener("scroll", i, {
349
+ passive: !0
350
+ }), r && d.addEventListener("resize", i);
351
+ });
352
+ const h = f && c ? Ft(f, i) : null;
353
+ let p = -1, a = null;
354
+ s && (a = new ResizeObserver((d) => {
355
+ let [x] = d;
356
+ x && x.target === f && a && (a.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
357
+ var C;
358
+ (C = a) == null || C.observe(e);
359
+ })), i();
360
+ }), f && !l && a.observe(f), a.observe(e));
361
+ let y, g = l ? T(t) : null;
362
+ l && w();
363
+ function w() {
364
+ const d = T(t);
365
+ g && !nt(g, d) && i(), g = d, y = requestAnimationFrame(w);
366
+ }
367
+ return i(), () => {
368
+ var d;
369
+ u.forEach((x) => {
370
+ o && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
371
+ }), h == null || h(), (d = a) == null || d.disconnect(), a = null, l && cancelAnimationFrame(y);
372
+ };
373
+ }
374
+ const At = ot, Ht = st, Nt = rt, It = ct, Vt = lt, $t = ht, St = ft, Mt = (t, e, i) => {
375
+ const n = /* @__PURE__ */ new Map(), o = {
376
+ platform: Et,
377
+ ...i
378
+ }, r = {
379
+ ...o.platform,
380
+ _c: n
381
+ };
382
+ return ut(t, e, {
383
+ ...o,
384
+ platform: r
385
+ });
386
+ };
195
387
  export {
196
- ce as arrow,
197
- me as autoUpdate,
198
- I as computePosition,
199
- ie as flip,
200
- le as hide,
201
- se as limitShift,
202
- fe as offset,
203
- pe as platform,
204
- oe as shift,
205
- ue as size,
206
- re as useFloating
388
+ $t as arrow,
389
+ Dt as autoUpdate,
390
+ Mt as computePosition,
391
+ Nt as flip,
392
+ $ as getOverflowAncestors,
393
+ Vt as hide,
394
+ St as limitShift,
395
+ At as offset,
396
+ Et as platform,
397
+ Ht as shift,
398
+ It as size
207
399
  };
208
400
  //# sourceMappingURL=index.es495.js.map