@anoki/fse-ui 1.0.0-beta1.46 → 1.0.0-beta1.47

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 (557) hide show
  1. package/dist/index.cjs154.js +1 -1
  2. package/dist/index.cjs155.js +1 -1
  3. package/dist/index.cjs156.js +1 -1
  4. package/dist/index.cjs157.js +1 -1
  5. package/dist/index.cjs158.js +1 -1
  6. package/dist/index.cjs159.js +1 -1
  7. package/dist/index.cjs160.js +1 -1
  8. package/dist/index.cjs161.js +1 -1
  9. package/dist/index.cjs162.js +1 -1
  10. package/dist/index.cjs163.js +1 -1
  11. package/dist/index.cjs164.js +1 -1
  12. package/dist/index.cjs165.js +1 -1
  13. package/dist/index.cjs166.js +1 -1
  14. package/dist/index.cjs167.js +1 -1
  15. package/dist/index.cjs168.js +1 -1
  16. package/dist/index.cjs169.js +1 -1
  17. package/dist/index.cjs170.js +1 -1
  18. package/dist/index.cjs171.js +1 -1
  19. package/dist/index.cjs172.js +1 -1
  20. package/dist/index.cjs173.js +1 -1
  21. package/dist/index.cjs174.js +1 -1
  22. package/dist/index.cjs175.js +1 -1
  23. package/dist/index.cjs176.js +1 -1
  24. package/dist/index.cjs180.js +1 -1
  25. package/dist/index.cjs181.js +1 -1
  26. package/dist/index.cjs182.js +1 -1
  27. package/dist/index.cjs184.js +1 -1
  28. package/dist/index.cjs185.js +1 -1
  29. package/dist/index.cjs186.js +1 -1
  30. package/dist/index.cjs187.js +1 -1
  31. package/dist/index.cjs188.js +1 -1
  32. package/dist/index.cjs189.js +1 -1
  33. package/dist/index.cjs190.js +1 -1
  34. package/dist/index.cjs191.js +1 -1
  35. package/dist/index.cjs192.js +1 -1
  36. package/dist/index.cjs194.js +1 -1
  37. package/dist/index.cjs195.js +1 -1
  38. package/dist/index.cjs196.js +1 -1
  39. package/dist/index.cjs197.js +1 -1
  40. package/dist/index.cjs198.js +1 -1
  41. package/dist/index.cjs199.js +1 -1
  42. package/dist/index.cjs200.js +1 -1
  43. package/dist/index.cjs203.js +1 -1
  44. package/dist/index.cjs204.js +1 -1
  45. package/dist/index.cjs205.js +1 -1
  46. package/dist/index.cjs206.js +1 -1
  47. package/dist/index.cjs207.js +1 -1
  48. package/dist/index.cjs208.js +1 -1
  49. package/dist/index.cjs209.js +1 -1
  50. package/dist/index.cjs210.js +1 -1
  51. package/dist/index.cjs216.js +1 -1
  52. package/dist/index.cjs218.js +1 -1
  53. package/dist/index.cjs219.js +1 -1
  54. package/dist/index.cjs22.js +1 -1
  55. package/dist/index.cjs222.js +1 -1
  56. package/dist/index.cjs222.js.map +1 -1
  57. package/dist/index.cjs224.js +2 -0
  58. package/dist/index.cjs224.js.map +1 -0
  59. package/dist/index.cjs232.js +1 -1
  60. package/dist/index.cjs241.js +1 -1
  61. package/dist/index.cjs244.js +1 -1
  62. package/dist/index.cjs254.js +1 -1
  63. package/dist/index.cjs26.js +1 -1
  64. package/dist/index.cjs265.js +1 -1
  65. package/dist/index.cjs270.js +1 -1
  66. package/dist/index.cjs272.js +1 -1
  67. package/dist/index.cjs279.js +1 -1
  68. package/dist/index.cjs280.js +1 -1
  69. package/dist/index.cjs284.js +1 -1
  70. package/dist/index.cjs293.js +1 -1
  71. package/dist/index.cjs295.js +1 -1
  72. package/dist/index.cjs301.js +1 -1
  73. package/dist/index.cjs302.js +1 -1
  74. package/dist/index.cjs303.js +1 -1
  75. package/dist/index.cjs345.js +1 -1
  76. package/dist/index.cjs351.js +1 -1
  77. package/dist/index.cjs379.js +1 -1
  78. package/dist/index.cjs380.js +1 -1
  79. package/dist/index.cjs381.js +1 -1
  80. package/dist/index.cjs391.js +1 -1
  81. package/dist/index.cjs4.js +1 -1
  82. package/dist/index.cjs420.js +1 -1
  83. package/dist/index.cjs438.js +2 -0
  84. package/dist/index.cjs438.js.map +1 -0
  85. package/dist/index.cjs439.js +2 -0
  86. package/dist/index.cjs439.js.map +1 -0
  87. package/dist/index.cjs440.js +1 -1
  88. package/dist/index.cjs440.js.map +1 -1
  89. package/dist/index.cjs441.js +1 -1
  90. package/dist/index.cjs441.js.map +1 -1
  91. package/dist/index.cjs442.js +1 -1
  92. package/dist/index.cjs442.js.map +1 -1
  93. package/dist/index.cjs443.js +1 -1
  94. package/dist/index.cjs443.js.map +1 -1
  95. package/dist/index.cjs444.js +1 -1
  96. package/dist/index.cjs444.js.map +1 -1
  97. package/dist/index.cjs445.js +1 -1
  98. package/dist/index.cjs445.js.map +1 -1
  99. package/dist/index.cjs446.js +1 -1
  100. package/dist/index.cjs446.js.map +1 -1
  101. package/dist/index.cjs447.js +1 -1
  102. package/dist/index.cjs447.js.map +1 -1
  103. package/dist/index.cjs448.js +1 -1
  104. package/dist/index.cjs448.js.map +1 -1
  105. package/dist/index.cjs449.js +1 -1
  106. package/dist/index.cjs449.js.map +1 -1
  107. package/dist/index.cjs450.js +1 -1
  108. package/dist/index.cjs450.js.map +1 -1
  109. package/dist/index.cjs451.js +1 -1
  110. package/dist/index.cjs451.js.map +1 -1
  111. package/dist/index.cjs452.js +1 -1
  112. package/dist/index.cjs452.js.map +1 -1
  113. package/dist/index.cjs453.js +1 -1
  114. package/dist/index.cjs453.js.map +1 -1
  115. package/dist/index.cjs454.js +1 -1
  116. package/dist/index.cjs454.js.map +1 -1
  117. package/dist/index.cjs455.js +1 -1
  118. package/dist/index.cjs455.js.map +1 -1
  119. package/dist/index.cjs456.js +1 -1
  120. package/dist/index.cjs456.js.map +1 -1
  121. package/dist/index.cjs457.js +1 -1
  122. package/dist/index.cjs457.js.map +1 -1
  123. package/dist/index.cjs458.js +1 -1
  124. package/dist/index.cjs458.js.map +1 -1
  125. package/dist/index.cjs459.js +1 -1
  126. package/dist/index.cjs459.js.map +1 -1
  127. package/dist/index.cjs460.js +1 -1
  128. package/dist/index.cjs460.js.map +1 -1
  129. package/dist/index.cjs461.js +1 -1
  130. package/dist/index.cjs461.js.map +1 -1
  131. package/dist/index.cjs462.js +1 -1
  132. package/dist/index.cjs462.js.map +1 -1
  133. package/dist/index.cjs463.js +1 -1
  134. package/dist/index.cjs463.js.map +1 -1
  135. package/dist/index.cjs464.js +1 -1
  136. package/dist/index.cjs464.js.map +1 -1
  137. package/dist/index.cjs465.js +1 -1
  138. package/dist/index.cjs465.js.map +1 -1
  139. package/dist/index.cjs466.js +1 -1
  140. package/dist/index.cjs466.js.map +1 -1
  141. package/dist/index.cjs467.js +1 -1
  142. package/dist/index.cjs467.js.map +1 -1
  143. package/dist/index.cjs469.js +1 -1
  144. package/dist/index.cjs469.js.map +1 -1
  145. package/dist/index.cjs470.js +1 -1
  146. package/dist/index.cjs470.js.map +1 -1
  147. package/dist/{index.cjs482.js → index.cjs471.js} +2 -2
  148. package/dist/{index.cjs482.js.map → index.cjs471.js.map} +1 -1
  149. package/dist/{index.cjs483.js → index.cjs472.js} +2 -2
  150. package/dist/{index.cjs483.js.map → index.cjs472.js.map} +1 -1
  151. package/dist/index.cjs473.js +2 -0
  152. package/dist/index.cjs473.js.map +1 -0
  153. package/dist/index.cjs474.js +2 -0
  154. package/dist/index.cjs474.js.map +1 -0
  155. package/dist/index.cjs475.js +2 -0
  156. package/dist/index.cjs475.js.map +1 -0
  157. package/dist/index.cjs479.js +2 -0
  158. package/dist/index.cjs479.js.map +1 -0
  159. package/dist/index.cjs486.js +2 -0
  160. package/dist/index.cjs486.js.map +1 -0
  161. package/dist/index.cjs487.js +1 -1
  162. package/dist/index.cjs487.js.map +1 -1
  163. package/dist/index.cjs488.js +1 -1
  164. package/dist/index.cjs488.js.map +1 -1
  165. package/dist/index.cjs489.js +4 -1
  166. package/dist/index.cjs489.js.map +1 -1
  167. package/dist/{index.cjs497.js → index.cjs490.js} +2 -2
  168. package/dist/{index.cjs497.js.map → index.cjs490.js.map} +1 -1
  169. package/dist/index.cjs493.js +1 -1
  170. package/dist/index.cjs493.js.map +1 -1
  171. package/dist/index.cjs494.js +1 -1
  172. package/dist/index.cjs494.js.map +1 -1
  173. package/dist/index.cjs495.js +1 -1
  174. package/dist/index.cjs495.js.map +1 -1
  175. package/dist/index.cjs5.js +1 -1
  176. package/dist/index.cjs502.js +39 -0
  177. package/dist/index.cjs502.js.map +1 -0
  178. package/dist/index.cjs503.js +1 -1
  179. package/dist/index.cjs503.js.map +1 -1
  180. package/dist/index.cjs504.js +1 -38
  181. package/dist/index.cjs504.js.map +1 -1
  182. package/dist/index.cjs505.js +1 -1
  183. package/dist/index.cjs505.js.map +1 -1
  184. package/dist/index.cjs506.js +1 -1
  185. package/dist/index.cjs506.js.map +1 -1
  186. package/dist/index.cjs507.js +1 -1
  187. package/dist/index.cjs507.js.map +1 -1
  188. package/dist/index.cjs508.js +1 -1
  189. package/dist/index.cjs508.js.map +1 -1
  190. package/dist/index.cjs510.js +1 -1
  191. package/dist/index.cjs510.js.map +1 -1
  192. package/dist/index.cjs511.js +1 -1
  193. package/dist/index.cjs511.js.map +1 -1
  194. package/dist/index.cjs512.js +1 -1
  195. package/dist/index.cjs512.js.map +1 -1
  196. package/dist/index.cjs513.js +1 -1
  197. package/dist/index.cjs513.js.map +1 -1
  198. package/dist/index.cjs514.js +1 -1
  199. package/dist/index.cjs515.js +1 -1
  200. package/dist/index.cjs517.js +1 -1
  201. package/dist/index.cjs518.js +1 -1
  202. package/dist/index.cjs520.js +1 -1
  203. package/dist/index.cjs521.js +1 -1
  204. package/dist/index.cjs523.js +1 -1
  205. package/dist/index.cjs524.js +1 -1
  206. package/dist/index.cjs525.js +1 -1
  207. package/dist/index.cjs526.js +1 -1
  208. package/dist/index.cjs529.js +1 -1
  209. package/dist/index.cjs532.js +1 -1
  210. package/dist/index.cjs537.js +1 -1
  211. package/dist/index.cjs539.js +1 -1
  212. package/dist/index.cjs540.js +6 -0
  213. package/dist/index.cjs540.js.map +1 -0
  214. package/dist/index.cjs541.js +1 -1
  215. package/dist/index.cjs541.js.map +1 -1
  216. package/dist/index.cjs542.js +1 -1
  217. package/dist/index.cjs542.js.map +1 -1
  218. package/dist/index.cjs543.js +2 -0
  219. package/dist/index.cjs543.js.map +1 -0
  220. package/dist/index.cjs544.js +1 -5
  221. package/dist/index.cjs544.js.map +1 -1
  222. package/dist/index.cjs545.js +1 -1
  223. package/dist/index.cjs545.js.map +1 -1
  224. package/dist/index.cjs546.js +1 -1
  225. package/dist/index.cjs546.js.map +1 -1
  226. package/dist/index.cjs547.js +1 -1
  227. package/dist/index.cjs547.js.map +1 -1
  228. package/dist/index.cjs548.js +1 -1
  229. package/dist/index.cjs548.js.map +1 -1
  230. package/dist/index.cjs549.js +1 -1
  231. package/dist/index.cjs549.js.map +1 -1
  232. package/dist/index.cjs550.js +1 -1
  233. package/dist/index.cjs550.js.map +1 -1
  234. package/dist/index.cjs551.js +1 -1
  235. package/dist/index.cjs551.js.map +1 -1
  236. package/dist/index.cjs552.js +1 -1
  237. package/dist/index.cjs552.js.map +1 -1
  238. package/dist/index.cjs553.js +1 -1
  239. package/dist/index.cjs553.js.map +1 -1
  240. package/dist/index.cjs554.js +1 -1
  241. package/dist/index.cjs554.js.map +1 -1
  242. package/dist/index.cjs555.js +1 -1
  243. package/dist/index.cjs555.js.map +1 -1
  244. package/dist/index.cjs556.js +1 -1
  245. package/dist/index.cjs556.js.map +1 -1
  246. package/dist/index.cjs557.js +2 -0
  247. package/dist/index.cjs557.js.map +1 -0
  248. package/dist/index.cjs6.js +1 -1
  249. package/dist/index.cjs62.js +1 -1
  250. package/dist/index.cjs65.js +1 -1
  251. package/dist/index.cjs65.js.map +1 -1
  252. package/dist/index.cjs7.js +1 -1
  253. package/dist/index.cjs8.js +1 -1
  254. package/dist/index.es154.js +1 -1
  255. package/dist/index.es155.js +1 -1
  256. package/dist/index.es156.js +1 -1
  257. package/dist/index.es157.js +1 -1
  258. package/dist/index.es158.js +1 -1
  259. package/dist/index.es159.js +1 -1
  260. package/dist/index.es160.js +1 -1
  261. package/dist/index.es161.js +1 -1
  262. package/dist/index.es162.js +1 -1
  263. package/dist/index.es163.js +1 -1
  264. package/dist/index.es164.js +1 -1
  265. package/dist/index.es165.js +1 -1
  266. package/dist/index.es166.js +1 -1
  267. package/dist/index.es167.js +1 -1
  268. package/dist/index.es168.js +1 -1
  269. package/dist/index.es169.js +1 -1
  270. package/dist/index.es170.js +1 -1
  271. package/dist/index.es171.js +1 -1
  272. package/dist/index.es172.js +1 -1
  273. package/dist/index.es173.js +1 -1
  274. package/dist/index.es174.js +1 -1
  275. package/dist/index.es175.js +1 -1
  276. package/dist/index.es176.js +1 -1
  277. package/dist/index.es180.js +1 -1
  278. package/dist/index.es181.js +1 -1
  279. package/dist/index.es182.js +1 -1
  280. package/dist/index.es184.js +1 -1
  281. package/dist/index.es185.js +1 -1
  282. package/dist/index.es186.js +1 -1
  283. package/dist/index.es187.js +1 -1
  284. package/dist/index.es188.js +1 -1
  285. package/dist/index.es189.js +1 -1
  286. package/dist/index.es190.js +1 -1
  287. package/dist/index.es191.js +1 -1
  288. package/dist/index.es192.js +1 -1
  289. package/dist/index.es194.js +1 -1
  290. package/dist/index.es195.js +1 -1
  291. package/dist/index.es196.js +1 -1
  292. package/dist/index.es197.js +1 -1
  293. package/dist/index.es198.js +1 -1
  294. package/dist/index.es199.js +1 -1
  295. package/dist/index.es200.js +1 -1
  296. package/dist/index.es203.js +1 -1
  297. package/dist/index.es204.js +1 -1
  298. package/dist/index.es205.js +1 -1
  299. package/dist/index.es206.js +1 -1
  300. package/dist/index.es207.js +1 -1
  301. package/dist/index.es208.js +1 -1
  302. package/dist/index.es209.js +1 -1
  303. package/dist/index.es210.js +1 -1
  304. package/dist/index.es216.js +1 -1
  305. package/dist/index.es218.js +1 -1
  306. package/dist/index.es219.js +1 -1
  307. package/dist/index.es22.js +1 -1
  308. package/dist/index.es222.js +27 -2
  309. package/dist/index.es222.js.map +1 -1
  310. package/dist/index.es224.js +5 -0
  311. package/dist/index.es224.js.map +1 -0
  312. package/dist/index.es232.js +1 -1
  313. package/dist/index.es241.js +7 -7
  314. package/dist/index.es244.js +1 -1
  315. package/dist/index.es254.js +8 -8
  316. package/dist/index.es26.js +1 -1
  317. package/dist/index.es265.js +1 -1
  318. package/dist/index.es270.js +1 -1
  319. package/dist/index.es272.js +14 -14
  320. package/dist/index.es279.js +1 -1
  321. package/dist/index.es280.js +1 -1
  322. package/dist/index.es284.js +1 -1
  323. package/dist/index.es293.js +1 -1
  324. package/dist/index.es295.js +1 -1
  325. package/dist/index.es301.js +1 -1
  326. package/dist/index.es302.js +1 -1
  327. package/dist/index.es303.js +7 -7
  328. package/dist/index.es345.js +4 -4
  329. package/dist/index.es351.js +1 -1
  330. package/dist/index.es379.js +3 -3
  331. package/dist/index.es380.js +2 -2
  332. package/dist/index.es381.js +3 -3
  333. package/dist/index.es391.js +1 -1
  334. package/dist/index.es4.js +1 -1
  335. package/dist/index.es420.js +3 -3
  336. package/dist/index.es438.js +2037 -0
  337. package/dist/index.es438.js.map +1 -0
  338. package/dist/index.es439.js +63 -0
  339. package/dist/index.es439.js.map +1 -0
  340. package/dist/index.es440.js +175 -2019
  341. package/dist/index.es440.js.map +1 -1
  342. package/dist/index.es441.js +9 -59
  343. package/dist/index.es441.js.map +1 -1
  344. package/dist/index.es442.js +173 -179
  345. package/dist/index.es442.js.map +1 -1
  346. package/dist/index.es443.js +3 -14
  347. package/dist/index.es443.js.map +1 -1
  348. package/dist/index.es444.js +132 -6
  349. package/dist/index.es444.js.map +1 -1
  350. package/dist/index.es445.js +5 -25
  351. package/dist/index.es445.js.map +1 -1
  352. package/dist/index.es446.js +23 -64
  353. package/dist/index.es446.js.map +1 -1
  354. package/dist/index.es447.js +64 -48
  355. package/dist/index.es447.js.map +1 -1
  356. package/dist/index.es448.js +51 -33
  357. package/dist/index.es448.js.map +1 -1
  358. package/dist/index.es449.js +32 -620
  359. package/dist/index.es449.js.map +1 -1
  360. package/dist/index.es450.js +621 -10
  361. package/dist/index.es450.js.map +1 -1
  362. package/dist/index.es451.js +10 -5
  363. package/dist/index.es451.js.map +1 -1
  364. package/dist/index.es452.js +5 -24
  365. package/dist/index.es452.js.map +1 -1
  366. package/dist/index.es453.js +23 -67
  367. package/dist/index.es453.js.map +1 -1
  368. package/dist/index.es454.js +67 -8
  369. package/dist/index.es454.js.map +1 -1
  370. package/dist/index.es455.js +4 -184
  371. package/dist/index.es455.js.map +1 -1
  372. package/dist/index.es456.js +56 -3
  373. package/dist/index.es456.js.map +1 -1
  374. package/dist/index.es457.js +43 -130
  375. package/dist/index.es457.js.map +1 -1
  376. package/dist/index.es458.js +13 -3
  377. package/dist/index.es458.js.map +1 -1
  378. package/dist/index.es459.js +120 -52
  379. package/dist/index.es459.js.map +1 -1
  380. package/dist/index.es460.js +14 -45
  381. package/dist/index.es460.js.map +1 -1
  382. package/dist/index.es461.js +134 -13
  383. package/dist/index.es461.js.map +1 -1
  384. package/dist/index.es462.js +207 -113
  385. package/dist/index.es462.js.map +1 -1
  386. package/dist/index.es463.js +13 -14
  387. package/dist/index.es463.js.map +1 -1
  388. package/dist/index.es464.js +173 -127
  389. package/dist/index.es464.js.map +1 -1
  390. package/dist/index.es465.js +10 -218
  391. package/dist/index.es465.js.map +1 -1
  392. package/dist/index.es466.js +50 -14
  393. package/dist/index.es466.js.map +1 -1
  394. package/dist/index.es467.js +9 -181
  395. package/dist/index.es467.js.map +1 -1
  396. package/dist/index.es469.js +12 -50
  397. package/dist/index.es469.js.map +1 -1
  398. package/dist/index.es470.js +205 -8
  399. package/dist/index.es470.js.map +1 -1
  400. package/dist/{index.es482.js → index.es471.js} +2 -2
  401. package/dist/{index.es482.js.map → index.es471.js.map} +1 -1
  402. package/dist/{index.es483.js → index.es472.js} +4 -4
  403. package/dist/{index.es483.js.map → index.es472.js.map} +1 -1
  404. package/dist/index.es473.js +28 -0
  405. package/dist/index.es473.js.map +1 -0
  406. package/dist/index.es474.js +32 -0
  407. package/dist/index.es474.js.map +1 -0
  408. package/dist/index.es475.js +8 -0
  409. package/dist/index.es475.js.map +1 -0
  410. package/dist/index.es479.js +18 -0
  411. package/dist/index.es479.js.map +1 -0
  412. package/dist/index.es486.js +8 -0
  413. package/dist/index.es486.js.map +1 -0
  414. package/dist/index.es487.js +3 -25
  415. package/dist/index.es487.js.map +1 -1
  416. package/dist/index.es488.js +24 -29
  417. package/dist/index.es488.js.map +1 -1
  418. package/dist/index.es489.js +110 -5
  419. package/dist/index.es489.js.map +1 -1
  420. package/dist/{index.es497.js → index.es490.js} +2 -2
  421. package/dist/{index.es497.js.map → index.es490.js.map} +1 -1
  422. package/dist/index.es493.js +525 -5
  423. package/dist/index.es493.js.map +1 -1
  424. package/dist/index.es494.js +128 -3
  425. package/dist/index.es494.js.map +1 -1
  426. package/dist/index.es495.js +132 -22
  427. package/dist/index.es495.js.map +1 -1
  428. package/dist/index.es5.js +1 -1
  429. package/dist/index.es502.js +72 -0
  430. package/dist/index.es502.js.map +1 -0
  431. package/dist/index.es503.js +8 -64
  432. package/dist/index.es503.js.map +1 -1
  433. package/dist/index.es504.js +13 -68
  434. package/dist/index.es504.js.map +1 -1
  435. package/dist/index.es505.js +65 -8
  436. package/dist/index.es505.js.map +1 -1
  437. package/dist/index.es506.js +64 -13
  438. package/dist/index.es506.js.map +1 -1
  439. package/dist/index.es507.js +4 -66
  440. package/dist/index.es507.js.map +1 -1
  441. package/dist/index.es508.js +22 -3
  442. package/dist/index.es508.js.map +1 -1
  443. package/dist/index.es510.js +21 -11
  444. package/dist/index.es510.js.map +1 -1
  445. package/dist/index.es511.js +11 -26
  446. package/dist/index.es511.js.map +1 -1
  447. package/dist/index.es512.js +27 -4
  448. package/dist/index.es512.js.map +1 -1
  449. package/dist/index.es513.js +4 -22
  450. package/dist/index.es513.js.map +1 -1
  451. package/dist/index.es514.js +1 -1
  452. package/dist/index.es515.js +3 -3
  453. package/dist/index.es517.js +1 -1
  454. package/dist/index.es518.js +3 -3
  455. package/dist/index.es520.js +1 -1
  456. package/dist/index.es521.js +2 -2
  457. package/dist/index.es523.js +3 -3
  458. package/dist/index.es524.js +2 -2
  459. package/dist/index.es525.js +15 -15
  460. package/dist/index.es526.js +2 -2
  461. package/dist/index.es529.js +3 -3
  462. package/dist/index.es532.js +9 -9
  463. package/dist/index.es537.js +8 -8
  464. package/dist/index.es539.js +1 -1
  465. package/dist/index.es540.js +43 -0
  466. package/dist/index.es540.js.map +1 -0
  467. package/dist/index.es541.js +2 -74
  468. package/dist/index.es541.js.map +1 -1
  469. package/dist/index.es542.js +5 -2
  470. package/dist/index.es542.js.map +1 -1
  471. package/dist/index.es543.js +5 -0
  472. package/dist/index.es543.js.map +1 -0
  473. package/dist/index.es544.js +2 -40
  474. package/dist/index.es544.js.map +1 -1
  475. package/dist/index.es545.js +2 -2
  476. package/dist/index.es545.js.map +1 -1
  477. package/dist/index.es546.js +6 -5
  478. package/dist/index.es546.js.map +1 -1
  479. package/dist/index.es547.js +16 -6
  480. package/dist/index.es547.js.map +1 -1
  481. package/dist/index.es548.js +2 -16
  482. package/dist/index.es548.js.map +1 -1
  483. package/dist/index.es549.js +2 -2
  484. package/dist/index.es549.js.map +1 -1
  485. package/dist/index.es550.js +3 -2
  486. package/dist/index.es550.js.map +1 -1
  487. package/dist/index.es551.js +2 -2
  488. package/dist/index.es551.js.map +1 -1
  489. package/dist/index.es552.js +4 -2
  490. package/dist/index.es552.js.map +1 -1
  491. package/dist/index.es553.js +4 -2
  492. package/dist/index.es553.js.map +1 -1
  493. package/dist/index.es554.js +3 -3
  494. package/dist/index.es554.js.map +1 -1
  495. package/dist/index.es555.js +2 -2
  496. package/dist/index.es555.js.map +1 -1
  497. package/dist/index.es556.js +73 -3
  498. package/dist/index.es556.js.map +1 -1
  499. package/dist/index.es557.js +5 -0
  500. package/dist/index.es557.js.map +1 -0
  501. package/dist/index.es6.js +1 -1
  502. package/dist/index.es62.js +1 -1
  503. package/dist/index.es65.js +41 -50
  504. package/dist/index.es65.js.map +1 -1
  505. package/dist/index.es7.js +2 -2
  506. package/dist/index.es8.js +2 -2
  507. package/package.json +1 -1
  508. package/dist/index.cjs223.js +0 -2
  509. package/dist/index.cjs223.js.map +0 -1
  510. package/dist/index.cjs468.js +0 -2
  511. package/dist/index.cjs468.js.map +0 -1
  512. package/dist/index.cjs480.js +0 -2
  513. package/dist/index.cjs480.js.map +0 -1
  514. package/dist/index.cjs481.js +0 -2
  515. package/dist/index.cjs481.js.map +0 -1
  516. package/dist/index.cjs496.js +0 -5
  517. package/dist/index.cjs496.js.map +0 -1
  518. package/dist/index.cjs498.js +0 -2
  519. package/dist/index.cjs498.js.map +0 -1
  520. package/dist/index.cjs499.js +0 -2
  521. package/dist/index.cjs499.js.map +0 -1
  522. package/dist/index.cjs500.js +0 -2
  523. package/dist/index.cjs500.js.map +0 -1
  524. package/dist/index.cjs509.js +0 -2
  525. package/dist/index.cjs509.js.map +0 -1
  526. package/dist/index.cjs560.js +0 -2
  527. package/dist/index.cjs560.js.map +0 -1
  528. package/dist/index.cjs561.js +0 -2
  529. package/dist/index.cjs561.js.map +0 -1
  530. package/dist/index.cjs562.js +0 -2
  531. package/dist/index.cjs562.js.map +0 -1
  532. package/dist/index.es223.js +0 -30
  533. package/dist/index.es223.js.map +0 -1
  534. package/dist/index.es468.js +0 -14
  535. package/dist/index.es468.js.map +0 -1
  536. package/dist/index.es480.js +0 -15
  537. package/dist/index.es480.js.map +0 -1
  538. package/dist/index.es481.js +0 -209
  539. package/dist/index.es481.js.map +0 -1
  540. package/dist/index.es496.js +0 -113
  541. package/dist/index.es496.js.map +0 -1
  542. package/dist/index.es498.js +0 -528
  543. package/dist/index.es498.js.map +0 -1
  544. package/dist/index.es499.js +0 -131
  545. package/dist/index.es499.js.map +0 -1
  546. package/dist/index.es500.js +0 -137
  547. package/dist/index.es500.js.map +0 -1
  548. package/dist/index.es509.js +0 -26
  549. package/dist/index.es509.js.map +0 -1
  550. package/dist/index.es560.js +0 -7
  551. package/dist/index.es560.js.map +0 -1
  552. package/dist/index.es561.js +0 -6
  553. package/dist/index.es561.js.map +0 -1
  554. package/dist/index.es562.js +0 -5
  555. package/dist/index.es562.js.map +0 -1
  556. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
  557. /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.es443.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error"],"mappings":";;AAgDA,SAASA,IAAqB;AAC5B,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,IAAI,GAC3CC,IAAOC,EAAY,OAAOC,MAAS;AACvC,QAAI,EAAE,aAAa,QAAgB,UAAU;AAC3C,qBAAQ,KAAK,yBAAyB,GAC/B;AAET,QAAI;AACF,mBAAM,UAAU,UAAU,UAAUA,CAAI,GACxCJ,EAAcI,CAAI,GACX;AAAA,IACT,SAASC,GAAO;AACd,qBAAQ,KAAK,eAAeA,CAAK,GACjCL,EAAc,IAAI,GACX;AAAA,IACT;AAAA,EACF,GAAG,CAAA,CAAE;AACL,SAAO,CAACD,GAAYG,CAAI;AAC1B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es443.js","sources":["../node_modules/swiper/shared/classes-to-selector.mjs"],"sourcesContent":["function classesToSelector(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return `.${classes.trim().replace(/([\\.:!+\\/()[\\]])/g, '\\\\$1') // eslint-disable-line\n .replace(/ /g, '.')}`;\n}\n\nexport { classesToSelector as c };\n"],"names":["classesToSelector","classes"],"mappings":"AAAA,SAASA,EAAkBC,GAAS;AAClC,SAAIA,MAAY,WACdA,IAAU,KAEL,IAAIA,EAAQ,KAAI,EAAG,QAAQ,qBAAqB,MAAM,EAC5D,QAAQ,MAAM,GAAG,CAAC;AACrB;","x_google_ignoreList":[0]}
@@ -1,10 +1,136 @@
1
- function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
- return function(s) {
3
- if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
- return c == null ? void 0 : c(s);
5
- };
1
+ function r(e) {
2
+ return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
3
+ }
4
+ function o(e, n) {
5
+ e === void 0 && (e = {}), n === void 0 && (n = {});
6
+ const u = ["__proto__", "constructor", "prototype"];
7
+ Object.keys(n).filter((t) => u.indexOf(t) < 0).forEach((t) => {
8
+ typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
9
+ });
10
+ }
11
+ const i = {
12
+ body: {},
13
+ addEventListener() {
14
+ },
15
+ removeEventListener() {
16
+ },
17
+ activeElement: {
18
+ blur() {
19
+ },
20
+ nodeName: ""
21
+ },
22
+ querySelector() {
23
+ return null;
24
+ },
25
+ querySelectorAll() {
26
+ return [];
27
+ },
28
+ getElementById() {
29
+ return null;
30
+ },
31
+ createEvent() {
32
+ return {
33
+ initEvent() {
34
+ }
35
+ };
36
+ },
37
+ createElement() {
38
+ return {
39
+ children: [],
40
+ childNodes: [],
41
+ style: {},
42
+ setAttribute() {
43
+ },
44
+ getElementsByTagName() {
45
+ return [];
46
+ }
47
+ };
48
+ },
49
+ createElementNS() {
50
+ return {};
51
+ },
52
+ importNode() {
53
+ return null;
54
+ },
55
+ location: {
56
+ hash: "",
57
+ host: "",
58
+ hostname: "",
59
+ href: "",
60
+ origin: "",
61
+ pathname: "",
62
+ protocol: "",
63
+ search: ""
64
+ }
65
+ };
66
+ function s() {
67
+ const e = typeof document < "u" ? document : {};
68
+ return o(e, i), e;
69
+ }
70
+ const c = {
71
+ document: i,
72
+ navigator: {
73
+ userAgent: ""
74
+ },
75
+ location: {
76
+ hash: "",
77
+ host: "",
78
+ hostname: "",
79
+ href: "",
80
+ origin: "",
81
+ pathname: "",
82
+ protocol: "",
83
+ search: ""
84
+ },
85
+ history: {
86
+ replaceState() {
87
+ },
88
+ pushState() {
89
+ },
90
+ go() {
91
+ },
92
+ back() {
93
+ }
94
+ },
95
+ CustomEvent: function() {
96
+ return this;
97
+ },
98
+ addEventListener() {
99
+ },
100
+ removeEventListener() {
101
+ },
102
+ getComputedStyle() {
103
+ return {
104
+ getPropertyValue() {
105
+ return "";
106
+ }
107
+ };
108
+ },
109
+ Image() {
110
+ },
111
+ Date() {
112
+ },
113
+ screen: {},
114
+ setTimeout() {
115
+ },
116
+ clearTimeout() {
117
+ },
118
+ matchMedia() {
119
+ return {};
120
+ },
121
+ requestAnimationFrame(e) {
122
+ return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
123
+ },
124
+ cancelAnimationFrame(e) {
125
+ typeof setTimeout > "u" || clearTimeout(e);
126
+ }
127
+ };
128
+ function a() {
129
+ const e = typeof window < "u" ? window : {};
130
+ return o(e, c), e;
6
131
  }
7
132
  export {
8
- h as composeEventHandlers
133
+ a,
134
+ s as g
9
135
  };
10
136
  //# sourceMappingURL=index.es444.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es444.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\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}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AAEA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAI,IAAK,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE7B;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es444.js","sources":["../node_modules/swiper/shared/ssr-window.esm.mjs"],"sourcesContent":["/**\n * SSR Window 5.0.1\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2025, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: June 27, 2025\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n if (target === void 0) {\n target = {};\n }\n if (src === void 0) {\n src = {};\n }\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n Object.keys(src).filter(key => noExtend.indexOf(key) < 0).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { getWindow as a, getDocument as g };\n"],"names":["isObject","obj","extend","target","src","noExtend","key","ssrDocument","getDocument","doc","ssrWindow","callback","id","getWindow","win"],"mappings":"AAYA,SAASA,EAASC,GAAK;AACrB,SAAOA,MAAQ,QAAQ,OAAOA,KAAQ,YAAY,iBAAiBA,KAAOA,EAAI,gBAAgB;AAChG;AACA,SAASC,EAAOC,GAAQC,GAAK;AAC3B,EAAID,MAAW,WACbA,IAAS,CAAA,IAEPC,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rD,SAAAZ,EAAOY,GAAKJ,CAAS,GACdI;AACT;","x_google_ignoreList":[0]}
@@ -1,30 +1,10 @@
1
- import * as f from "react";
2
- function l(n, o) {
3
- if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
6
- }
7
- function i(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = l(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
13
- });
14
- if (u)
15
- return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : l(n[t], null);
19
- }
20
- };
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
21
5
  };
22
6
  }
23
- function s(...n) {
24
- return f.useCallback(i(...n), n);
25
- }
26
7
  export {
27
- i as composeRefs,
28
- s as useComposedRefs
8
+ h as composeEventHandlers
29
9
  };
30
10
  //# sourceMappingURL=index.es445.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es445.js","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","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACT,CAAC;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAO,IAEPR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAExB;AAAA,MACF;AAAA,EAEJ;AACF;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es445.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\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}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AAEA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAI,IAAK,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE7B;AACF;","x_google_ignoreList":[0]}
@@ -1,71 +1,30 @@
1
- import * as u from "react";
2
- import { j as h } from "./index.es220.js";
3
- function j(e, c) {
4
- const o = u.createContext(c), a = (r) => {
5
- const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
- return /* @__PURE__ */ h.jsx(o.Provider, { value: s, children: t });
7
- };
8
- a.displayName = e + "Provider";
9
- function i(r) {
10
- const t = u.useContext(o);
11
- if (t) return t;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${e}\``);
14
- }
15
- return [a, i];
1
+ import * as f from "react";
2
+ function l(n, o) {
3
+ if (typeof n == "function")
4
+ return n(o);
5
+ n != null && (n.current = o);
16
6
  }
17
- function w(e, c = []) {
18
- let o = [];
19
- function a(r, t) {
20
- const n = u.createContext(t), s = o.length;
21
- o = [...o, t];
22
- const d = (m) => {
23
- var S;
24
- const { scope: x, children: C, ...p } = m, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => p, Object.values(p));
25
- return /* @__PURE__ */ h.jsx(v.Provider, { value: P, children: C });
26
- };
27
- d.displayName = r + "Provider";
28
- function f(m, x) {
29
- var v;
30
- const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, p = u.useContext(C);
31
- if (p) return p;
32
- if (t !== void 0) return t;
33
- throw new Error(`\`${m}\` must be used within \`${r}\``);
34
- }
35
- return [d, f];
36
- }
37
- const i = () => {
38
- const r = o.map((t) => u.createContext(t));
39
- return function(n) {
40
- const s = (n == null ? void 0 : n[e]) || r;
41
- return u.useMemo(
42
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
- [n, s]
44
- );
45
- };
7
+ function i(...n) {
8
+ return (o) => {
9
+ let u = !1;
10
+ const c = n.map((t) => {
11
+ const e = l(t, o);
12
+ return !u && typeof e == "function" && (u = !0), e;
13
+ });
14
+ if (u)
15
+ return () => {
16
+ for (let t = 0; t < c.length; t++) {
17
+ const e = c[t];
18
+ typeof e == "function" ? e() : l(n[t], null);
19
+ }
20
+ };
46
21
  };
47
- return i.scopeName = e, [a, l(i, ...c)];
48
22
  }
49
- function l(...e) {
50
- const c = e[0];
51
- if (e.length === 1) return c;
52
- const o = () => {
53
- const a = e.map((i) => ({
54
- useScope: i(),
55
- scopeName: i.scopeName
56
- }));
57
- return function(r) {
58
- const t = a.reduce((n, { useScope: s, scopeName: d }) => {
59
- const m = s(r)[`__scope${d}`];
60
- return { ...n, ...m };
61
- }, {});
62
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
- };
64
- };
65
- return o.scopeName = c.scopeName, o;
23
+ function s(...n) {
24
+ return f.useCallback(i(...n), n);
66
25
  }
67
26
  export {
68
- j as createContext,
69
- w as createContextScope
27
+ i as composeRefs,
28
+ s as useComposedRefs
70
29
  };
71
30
  //# sourceMappingURL=index.es446.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es446.js","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":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAGA,SAASA,EAAeC,GAAmBC,GAAgB;AACzD,QAAMC,IAAUC,EAAM,cAAcF,CAAc,GAC5CG,IAAW,CAACC,MAAU;AAC1B,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAO,IAAKF,GAC3BG,IAAQL,EAAM,QAAQ,MAAMI,GAAS,OAAO,OAAOA,CAAO,CAAC;AACjE,WAAuBE,gBAAAA,EAAAA,IAAIP,EAAQ,UAAU,EAAE,OAAAM,GAAO,UAAAF,EAAQ,CAAE;AAAA,EAClE;AACA,EAAAF,EAAS,cAAcJ,IAAoB;AAC3C,WAASU,EAAYC,GAAc;AACjC,UAAMJ,IAAUJ,EAAM,WAAWD,CAAO;AACxC,QAAIK,EAAS,QAAOA;AACpB,QAAIN,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,aAAOnB,EAAM;AAAA,QACX,OAAO,EAAE,CAAC,UAAUU,CAAS,EAAE,GAAG,EAAE,GAAGM,GAAO,CAACN,CAAS,GAAGU,EAAQ;QACnE,CAACJ,GAAOI,CAAQ;AAAA,MACxB;AAAA,IACI;AAAA,EACF;AACA,SAAAF,EAAY,YAAYR,GACjB,CAACG,GAAgBQ,EAAqBH,GAAa,GAAGP,CAAsB,CAAC;AACtF;AACA,SAASU,KAAwBC,GAAQ;AACvC,QAAMC,IAAYD,EAAO,CAAC;AAC1B,MAAIA,EAAO,WAAW,EAAG,QAAOC;AAChC,QAAML,IAAc,MAAM;AACxB,UAAMM,IAAaF,EAAO,IAAI,CAACG,OAAkB;AAAA,MAC/C,UAAUA,EAAY;AAAA,MACtB,WAAWA,EAAa;AAAA,IAC9B,EAAM;AACF,WAAO,SAA2BC,GAAgB;AAChD,YAAMC,IAAaH,EAAW,OAAO,CAACI,GAAa,EAAE,UAAAC,GAAU,WAAAnB,QAAgB;AAE7E,cAAMoB,IADaD,EAASH,CAAc,EACV,UAAUhB,CAAS,EAAE;AACrD,eAAO,EAAE,GAAGkB,GAAa,GAAGE,EAAY;AAAA,MAC1C,GAAG,CAAA,CAAE;AACL,aAAO9B,EAAM,QAAQ,OAAO,EAAE,CAAC,UAAUuB,EAAU,SAAS,EAAE,GAAGI,EAAU,IAAK,CAACA,CAAU,CAAC;AAAA,IAC9F;AAAA,EACF;AACA,SAAAT,EAAY,YAAYK,EAAU,WAC3BL;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es446.js","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","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACT,CAAC;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAO,IAEPR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAExB;AAAA,MACF;AAAA,EAEJ;AACF;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
@@ -1,55 +1,71 @@
1
- import * as n from "react";
2
- import { useLayoutEffect as v } from "./index.es458.js";
3
- var E = n[" useInsertionEffect ".trim().toString()] || v;
4
- function y({
5
- prop: t,
6
- defaultProp: u,
7
- onChange: o = () => {
8
- },
9
- caller: i
10
- }) {
11
- const [l, e, r] = w({
12
- defaultProp: u,
13
- onChange: o
14
- }), c = t !== void 0, a = c ? t : l;
15
- {
16
- const s = n.useRef(t !== void 0);
17
- n.useEffect(() => {
18
- const f = s.current;
19
- f !== c && console.warn(
20
- `${i} is changing from ${f ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. 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.`
21
- ), s.current = c;
22
- }, [c, i]);
1
+ import * as u from "react";
2
+ import { j as h } from "./index.es220.js";
3
+ function j(e, c) {
4
+ const o = u.createContext(c), a = (r) => {
5
+ const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
+ return /* @__PURE__ */ h.jsx(o.Provider, { value: s, children: t });
7
+ };
8
+ a.displayName = e + "Provider";
9
+ function i(r) {
10
+ const t = u.useContext(o);
11
+ if (t) return t;
12
+ if (c !== void 0) return c;
13
+ throw new Error(`\`${r}\` must be used within \`${e}\``);
23
14
  }
24
- const m = n.useCallback(
25
- (s) => {
26
- var f;
27
- if (c) {
28
- const d = R(s) ? s(t) : s;
29
- d !== t && ((f = r.current) == null || f.call(r, d));
30
- } else
31
- e(s);
32
- },
33
- [c, t, e, r]
34
- );
35
- return [a, m];
15
+ return [a, i];
36
16
  }
37
- function w({
38
- defaultProp: t,
39
- onChange: u
40
- }) {
41
- const [o, i] = n.useState(t), l = n.useRef(o), e = n.useRef(u);
42
- return E(() => {
43
- e.current = u;
44
- }, [u]), n.useEffect(() => {
45
- var r;
46
- l.current !== o && ((r = e.current) == null || r.call(e, o), l.current = o);
47
- }, [o, l]), [o, i, e];
17
+ function w(e, c = []) {
18
+ let o = [];
19
+ function a(r, t) {
20
+ const n = u.createContext(t), s = o.length;
21
+ o = [...o, t];
22
+ const d = (m) => {
23
+ var S;
24
+ const { scope: x, children: C, ...p } = m, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => p, Object.values(p));
25
+ return /* @__PURE__ */ h.jsx(v.Provider, { value: P, children: C });
26
+ };
27
+ d.displayName = r + "Provider";
28
+ function f(m, x) {
29
+ var v;
30
+ const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, p = u.useContext(C);
31
+ if (p) return p;
32
+ if (t !== void 0) return t;
33
+ throw new Error(`\`${m}\` must be used within \`${r}\``);
34
+ }
35
+ return [d, f];
36
+ }
37
+ const i = () => {
38
+ const r = o.map((t) => u.createContext(t));
39
+ return function(n) {
40
+ const s = (n == null ? void 0 : n[e]) || r;
41
+ return u.useMemo(
42
+ () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
+ [n, s]
44
+ );
45
+ };
46
+ };
47
+ return i.scopeName = e, [a, l(i, ...c)];
48
48
  }
49
- function R(t) {
50
- return typeof t == "function";
49
+ function l(...e) {
50
+ const c = e[0];
51
+ if (e.length === 1) return c;
52
+ const o = () => {
53
+ const a = e.map((i) => ({
54
+ useScope: i(),
55
+ scopeName: i.scopeName
56
+ }));
57
+ return function(r) {
58
+ const t = a.reduce((n, { useScope: s, scopeName: d }) => {
59
+ const m = s(r)[`__scope${d}`];
60
+ return { ...n, ...m };
61
+ }, {});
62
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
+ };
64
+ };
65
+ return o.scopeName = c.scopeName, o;
51
66
  }
52
67
  export {
53
- y as useControllableState
68
+ j as createContext,
69
+ w as createContextScope
54
70
  };
55
71
  //# sourceMappingURL=index.es447.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es447.js","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","useLayoutEffect","useControllableState","prop","defaultProp","onChange","caller","uncontrolledProp","setUncontrolledProp","onChangeRef","useUncontrolledState","isControlled","value","isControlledRef","wasControlled","setValue","nextValue","value2","isFunction","_a","prevValueRef"],"mappings":";;AAGA,IAAIA,IAAqBC,EAAM,uBAAuB,KAAI,EAAG,SAAQ,CAAE,KAAKC;AAC5E,SAASC,E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AC,GACbL,EAAM,UAAU,MAAM;;AACpB,IAAIoB,EAAa,YAAYR,OAC3BO,IAAAV,EAAY,YAAZ,QAAAU,EAAA,KAAAV,GAAsBG,IACtBQ,EAAa,UAAUR;AAAA,EAE3B,GAAG,CAACA,GAAOQ,CAAY,CAAC,GACjB,CAACR,GAAOG,GAAUN,CAAW;AACtC;AACA,SAASS,EAAWN,GAAO;AACzB,SAAO,OAAOA,KAAU;AAC1B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es447.js","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":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAGA,SAASA,EAAeC,GAAmBC,GAAgB;AACzD,QAAMC,IAAUC,EAAM,cAAcF,CAAc,GAC5CG,IAAW,CAACC,MAAU;AAC1B,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAO,IAAKF,GAC3BG,IAAQL,EAAM,QAAQ,MAAMI,GAAS,OAAO,OAAOA,CAAO,CAAC;AACjE,WAAuBE,gBAAAA,EAAAA,IAAIP,EAAQ,UAAU,EAAE,OAA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