@boxcustodia/library 1.7.11 → 1.7.12

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 (644) hide show
  1. package/dist/index.es100.js +1 -1
  2. package/dist/index.es101.js +1 -1
  3. package/dist/index.es102.js +4 -15
  4. package/dist/index.es103.js +12 -2746
  5. package/dist/index.es104.js +2748 -3
  6. package/dist/index.es105.js +1 -1
  7. package/dist/index.es106.js +3 -22
  8. package/dist/index.es107.js +8 -20
  9. package/dist/index.es108.js +22 -3
  10. package/dist/index.es109.js +18 -3
  11. package/dist/index.es11.js +1 -1
  12. package/dist/index.es110.js +36 -15
  13. package/dist/index.es111.js +309 -4
  14. package/dist/index.es112.js +13 -57
  15. package/dist/index.es113.js +27 -12
  16. package/dist/index.es114.js +55 -257
  17. package/dist/index.es115.js +18 -13
  18. package/dist/index.es116.js +36 -306
  19. package/dist/index.es117.js +55 -13
  20. package/dist/index.es118.js +59 -56
  21. package/dist/index.es119.js +110 -1145
  22. package/dist/index.es120.js +43 -4
  23. package/dist/index.es121.js +24 -4
  24. package/dist/index.es122.js +30 -55
  25. package/dist/index.es123.js +10 -61
  26. package/dist/index.es124.js +4 -113
  27. package/dist/index.es125.js +15 -43
  28. package/dist/index.es126.js +5 -24
  29. package/dist/index.es127.js +57 -30
  30. package/dist/index.es128.js +13 -27
  31. package/dist/index.es129.js +258 -50
  32. package/dist/index.es130.js +7 -8
  33. package/dist/index.es131.js +24 -38
  34. package/dist/index.es132.js +224 -16
  35. package/dist/index.es133.js +10 -40
  36. package/dist/index.es134.js +4 -7
  37. package/dist/index.es135.js +41 -10
  38. package/dist/index.es136.js +26 -6
  39. package/dist/index.es137.js +67 -20
  40. package/dist/index.es138.js +22 -10
  41. package/dist/index.es139.js +10 -860
  42. package/dist/index.es140.js +52 -10
  43. package/dist/index.es141.js +7 -3
  44. package/dist/index.es142.js +3 -12
  45. package/dist/index.es143.js +4 -21
  46. package/dist/index.es144.js +240 -32
  47. package/dist/index.es145.js +17 -224
  48. package/dist/index.es146.js +21 -4
  49. package/dist/index.es147.js +18 -10
  50. package/dist/index.es148.js +43 -40
  51. package/dist/index.es149.js +19 -68
  52. package/dist/index.es150.js +1148 -4
  53. package/dist/index.es151.js +3 -3
  54. package/dist/index.es152.js +4 -21
  55. package/dist/index.es153.js +21 -13
  56. package/dist/index.es154.js +7 -4
  57. package/dist/index.es155.js +2 -5
  58. package/dist/index.es156.js +13 -18
  59. package/dist/index.es157.js +857 -41
  60. package/dist/index.es158.js +76 -239
  61. package/dist/index.es159.js +87 -73
  62. package/dist/index.es16.js +1 -1
  63. package/dist/index.es160.js +344 -84
  64. package/dist/index.es161.js +114 -342
  65. package/dist/index.es162.js +4 -124
  66. package/dist/index.es163.js +208 -330
  67. package/dist/index.es164.js +5 -215
  68. package/dist/index.es165.js +336 -15
  69. package/dist/index.es166.js +17 -14
  70. package/dist/index.es167.js +5 -4
  71. package/dist/index.es168.js +6 -7
  72. package/dist/index.es169.js +14 -8
  73. package/dist/index.es170.js +4 -8
  74. package/dist/index.es171.js +33 -2
  75. package/dist/index.es172.js +3672 -30
  76. package/dist/index.es173.js +5 -244
  77. package/dist/index.es174.js +2 -19
  78. package/dist/index.es175.js +7 -35
  79. package/dist/index.es176.js +2 -3675
  80. package/dist/index.es177.js +32 -5
  81. package/dist/index.es178.js +245 -2
  82. package/dist/index.es179.js +13 -43
  83. package/dist/index.es18.js +1 -1
  84. package/dist/index.es180.js +254 -14
  85. package/dist/index.es181.js +31 -253
  86. package/dist/index.es182.js +10 -32
  87. package/dist/index.es183.js +26 -10
  88. package/dist/index.es184.js +204 -26
  89. package/dist/index.es185.js +19 -5
  90. package/dist/index.es186.js +35 -66
  91. package/dist/index.es187.js +9 -123
  92. package/dist/index.es188.js +5 -133
  93. package/dist/index.es189.js +68 -14
  94. package/dist/index.es190.js +1 -1
  95. package/dist/index.es191.js +646 -11
  96. package/dist/index.es192.js +124 -8
  97. package/dist/index.es193.js +15 -50
  98. package/dist/index.es194.js +127 -40
  99. package/dist/index.es195.js +218 -20
  100. package/dist/index.es196.js +14 -37
  101. package/dist/index.es197.js +30 -11
  102. package/dist/index.es198.js +45 -202
  103. package/dist/index.es199.js +50 -4
  104. package/dist/index.es2.js +1 -1
  105. package/dist/index.es200.js +9 -46
  106. package/dist/index.es201.js +30 -8
  107. package/dist/index.es202.js +45 -216
  108. package/dist/index.es203.js +45 -30
  109. package/dist/index.es204.js +23 -45
  110. package/dist/index.es205.js +2498 -10
  111. package/dist/index.es206.js +3 -5
  112. package/dist/index.es207.js +45 -29
  113. package/dist/index.es208.js +8 -30
  114. package/dist/index.es209.js +30 -650
  115. package/dist/index.es210.js +47 -29
  116. package/dist/index.es211.js +10 -47
  117. package/dist/index.es212.js +5 -25
  118. package/dist/index.es213.js +30 -2499
  119. package/dist/index.es214.js +2 -30
  120. package/dist/index.es215.js +2 -54
  121. package/dist/index.es216.js +1 -1
  122. package/dist/index.es217.js +1 -1
  123. package/dist/index.es218.js +5 -5
  124. package/dist/index.es219.js +35 -2
  125. package/dist/index.es22.js +1 -1
  126. package/dist/index.es220.js +118 -2
  127. package/dist/index.es221.js +30 -35
  128. package/dist/index.es222.js +52 -116
  129. package/dist/index.es223.js +14 -24
  130. package/dist/index.es224.js +3 -22
  131. package/dist/index.es225.js +7 -38
  132. package/dist/index.es226.js +6 -18
  133. package/dist/index.es227.js +5 -7
  134. package/dist/index.es228.js +17 -5
  135. package/dist/index.es229.js +5 -5
  136. package/dist/index.es230.js +7 -18
  137. package/dist/index.es231.js +5 -5
  138. package/dist/index.es232.js +14 -7
  139. package/dist/index.es233.js +15 -5
  140. package/dist/index.es234.js +8 -13
  141. package/dist/index.es235.js +6 -15
  142. package/dist/index.es236.js +14 -8
  143. package/dist/index.es237.js +5 -6
  144. package/dist/index.es238.js +14 -14
  145. package/dist/index.es239.js +6 -5
  146. package/dist/index.es24.js +1 -1
  147. package/dist/index.es240.js +6 -14
  148. package/dist/index.es241.js +6 -6
  149. package/dist/index.es242.js +4 -6
  150. package/dist/index.es243.js +580 -6
  151. package/dist/index.es244.js +50 -5
  152. package/dist/index.es245.js +15 -578
  153. package/dist/index.es246.js +7 -50
  154. package/dist/index.es247.js +19 -18
  155. package/dist/index.es248.js +8 -6
  156. package/dist/index.es249.js +7 -19
  157. package/dist/index.es250.js +7 -8
  158. package/dist/index.es251.js +5 -6
  159. package/dist/index.es252.js +6 -7
  160. package/dist/index.es253.js +9 -5
  161. package/dist/index.es254.js +5 -6
  162. package/dist/index.es255.js +8 -9
  163. package/dist/index.es256.js +12 -5
  164. package/dist/index.es257.js +9 -8
  165. package/dist/index.es258.js +8 -12
  166. package/dist/index.es259.js +10 -9
  167. package/dist/index.es26.js +2 -2
  168. package/dist/index.es260.js +14 -8
  169. package/dist/index.es261.js +5 -10
  170. package/dist/index.es262.js +11 -14
  171. package/dist/index.es263.js +10 -5
  172. package/dist/index.es264.js +9 -10
  173. package/dist/index.es265.js +6 -10
  174. package/dist/index.es266.js +9 -10
  175. package/dist/index.es267.js +83 -6
  176. package/dist/index.es268.js +38 -9
  177. package/dist/index.es269.js +65 -84
  178. package/dist/index.es270.js +9 -38
  179. package/dist/index.es271.js +9 -65
  180. package/dist/index.es272.js +7 -9
  181. package/dist/index.es273.js +10 -8
  182. package/dist/index.es274.js +6 -6
  183. package/dist/index.es275.js +7 -10
  184. package/dist/index.es276.js +6 -7
  185. package/dist/index.es277.js +5 -7
  186. package/dist/index.es278.js +15 -6
  187. package/dist/index.es279.js +6 -5
  188. package/dist/index.es28.js +2 -2
  189. package/dist/index.es280.js +28 -14
  190. package/dist/index.es281.js +123 -32
  191. package/dist/index.es282.js +134 -11
  192. package/dist/index.es283.js +13 -29
  193. package/dist/index.es284.js +68 -29
  194. package/dist/index.es285.js +14 -6
  195. package/dist/index.es286.js +24 -29
  196. package/dist/index.es287.js +22 -125
  197. package/dist/index.es288.js +38 -134
  198. package/dist/index.es289.js +18 -14
  199. package/dist/index.es290.js +42 -63
  200. package/dist/index.es291.js +33 -14
  201. package/dist/index.es292.js +178 -28
  202. package/dist/index.es293.js +1 -1
  203. package/dist/index.es294.js +1 -1
  204. package/dist/index.es295.js +11 -180
  205. package/dist/index.es296.js +29 -47
  206. package/dist/index.es298.js +1 -1
  207. package/dist/index.es299.js +1 -1
  208. package/dist/index.es30.js +1 -1
  209. package/dist/index.es300.js +1 -1
  210. package/dist/index.es301.js +3 -3
  211. package/dist/index.es302.js +30 -19
  212. package/dist/index.es303.js +18 -51
  213. package/dist/index.es304.js +52 -16
  214. package/dist/index.es305.js +15 -47
  215. package/dist/index.es306.js +8 -30
  216. package/dist/index.es307.js +3 -8
  217. package/dist/index.es308.js +45 -3
  218. package/dist/index.es309.js +27 -43
  219. package/dist/index.es310.js +54 -26
  220. package/dist/index.es311.js +18 -55
  221. package/dist/index.es312.js +21 -19
  222. package/dist/index.es313.js +44 -21
  223. package/dist/index.es314.js +29 -42
  224. package/dist/index.es315.js +80 -28
  225. package/dist/index.es316.js +5 -82
  226. package/dist/index.es317.js +14 -6
  227. package/dist/index.es318.js +41 -12
  228. package/dist/index.es319.js +32 -42
  229. package/dist/index.es32.js +1 -1
  230. package/dist/index.es320.js +24 -30
  231. package/dist/index.es321.js +25 -27
  232. package/dist/index.es322.js +6 -24
  233. package/dist/index.es323.js +419 -6
  234. package/dist/index.es324.js +9 -417
  235. package/dist/index.es325.js +33 -11
  236. package/dist/index.es326.js +46 -33
  237. package/dist/index.es327.js +30 -8
  238. package/dist/index.es328.js +8 -2
  239. package/dist/index.es329.js +2 -23
  240. package/dist/index.es33.js +3 -3
  241. package/dist/index.es330.js +11 -11
  242. package/dist/index.es331.js +22 -20
  243. package/dist/index.es332.js +21 -2
  244. package/dist/index.es333.js +2 -9406
  245. package/dist/index.es334.js +8970 -14876
  246. package/dist/index.es335.js +15312 -3
  247. package/dist/index.es336.js +3 -61
  248. package/dist/index.es337.js +59 -8
  249. package/dist/index.es338.js +10 -3
  250. package/dist/index.es339.js +3 -5
  251. package/dist/index.es34.js +6 -6
  252. package/dist/index.es340.js +5 -15
  253. package/dist/index.es341.js +31 -3
  254. package/dist/index.es347.js +2 -2
  255. package/dist/index.es348.js +2 -2
  256. package/dist/index.es354.js +2 -2
  257. package/dist/index.es355.js +2 -2
  258. package/dist/index.es358.js +1 -1
  259. package/dist/index.es359.js +1 -1
  260. package/dist/index.es360.js +1 -1
  261. package/dist/index.es361.js +1 -1
  262. package/dist/index.es372.js +2 -2
  263. package/dist/index.es373.js +2 -2
  264. package/dist/index.es374.js +1 -1
  265. package/dist/index.es375.js +1 -1
  266. package/dist/index.es379.js +1 -1
  267. package/dist/index.es38.js +1 -1
  268. package/dist/index.es380.js +29 -47
  269. package/dist/index.es381.js +1 -1
  270. package/dist/index.es382.js +46 -8
  271. package/dist/index.es383.js +30 -10
  272. package/dist/index.es384.js +47 -4
  273. package/dist/index.es385.js +10 -5
  274. package/dist/index.es386.js +9 -4
  275. package/dist/index.es387.js +4 -6
  276. package/dist/index.es388.js +5 -334
  277. package/dist/index.es389.js +5 -19
  278. package/dist/index.es39.js +62 -58
  279. package/dist/index.es390.js +7 -4
  280. package/dist/index.es391.js +333 -4
  281. package/dist/index.es392.js +19 -3
  282. package/dist/index.es393.js +4 -72
  283. package/dist/index.es394.js +5 -4
  284. package/dist/index.es395.js +3 -30
  285. package/dist/index.es396.js +67 -43
  286. package/dist/index.es397.js +4 -30
  287. package/dist/index.es398.js +127 -44
  288. package/dist/index.es399.js +217 -2
  289. package/dist/index.es40.js +5 -5
  290. package/dist/index.es400.js +30 -2
  291. package/dist/index.es401.js +44 -127
  292. package/dist/index.es402.js +4 -217
  293. package/dist/index.es403.js +3 -30
  294. package/dist/index.es404.js +2 -48
  295. package/dist/index.es405.js +2 -4
  296. package/dist/index.es406.js +2 -3
  297. package/dist/index.es407.js +8 -2
  298. package/dist/index.es408.js +2 -8
  299. package/dist/index.es409.js +48 -2
  300. package/dist/index.es41.js +2 -2
  301. package/dist/index.es412.js +1 -1
  302. package/dist/index.es413.js +1 -1
  303. package/dist/index.es414.js +1 -1
  304. package/dist/index.es415.js +2 -2
  305. package/dist/index.es416.js +1 -1
  306. package/dist/index.es417.js +2 -2
  307. package/dist/index.es418.js +1 -1
  308. package/dist/index.es419.js +3 -3
  309. package/dist/index.es420.js +2 -2
  310. package/dist/index.es423.js +2 -2
  311. package/dist/index.es424.js +2 -2
  312. package/dist/index.es425.js +6 -6
  313. package/dist/index.es426.js +3 -3
  314. package/dist/index.es427.js +2 -2
  315. package/dist/index.es435.js +1 -1
  316. package/dist/index.es436.js +1 -1
  317. package/dist/index.es439.js +1 -1
  318. package/dist/index.es44.js +3 -3
  319. package/dist/index.es441.js +4 -4
  320. package/dist/index.es443.js +47 -5
  321. package/dist/index.es444.js +522 -14
  322. package/dist/index.es445.js +127 -2
  323. package/dist/index.es446.js +128 -7
  324. package/dist/index.es447.js +45 -324
  325. package/dist/index.es448.js +5 -49
  326. package/dist/index.es449.js +14 -3
  327. package/dist/index.es45.js +1 -1
  328. package/dist/index.es450.js +2 -523
  329. package/dist/index.es451.js +7 -126
  330. package/dist/index.es452.js +321 -123
  331. package/dist/index.es453.js +47 -45
  332. package/dist/index.es454.js +3 -47
  333. package/dist/index.es460.js +1 -1
  334. package/dist/index.es47.js +1 -1
  335. package/dist/index.es471.js +1 -1
  336. package/dist/index.es473.js +1 -1
  337. package/dist/index.es474.js +1 -1
  338. package/dist/index.es478.js +1 -1
  339. package/dist/index.es480.js +1 -1
  340. package/dist/index.es487.js +1 -1
  341. package/dist/index.es488.js +1 -1
  342. package/dist/index.es49.js +5 -5
  343. package/dist/index.es492.js +1 -1
  344. package/dist/index.es498.js +1 -1
  345. package/dist/index.es50.js +2 -2
  346. package/dist/index.es500.js +1 -1
  347. package/dist/index.es505.js +2 -2
  348. package/dist/index.es507.js +7 -7
  349. package/dist/index.es508.js +34 -2
  350. package/dist/index.es509.js +20 -52
  351. package/dist/index.es51.js +3 -3
  352. package/dist/index.es510.js +43 -63
  353. package/dist/index.es511.js +29 -7
  354. package/dist/index.es512.js +8 -33
  355. package/dist/index.es513.js +56 -20
  356. package/dist/index.es514.js +11 -43
  357. package/dist/index.es515.js +21 -29
  358. package/dist/index.es516.js +59 -8
  359. package/dist/index.es517.js +31 -54
  360. package/dist/index.es518.js +170 -11
  361. package/dist/index.es519.js +120 -20
  362. package/dist/index.es52.js +1 -1
  363. package/dist/index.es520.js +17 -57
  364. package/dist/index.es521.js +228 -30
  365. package/dist/index.es522.js +20 -170
  366. package/dist/index.es523.js +23 -115
  367. package/dist/index.es524.js +117 -18
  368. package/dist/index.es525.js +35 -229
  369. package/dist/index.es526.js +72 -22
  370. package/dist/index.es527.js +7 -29
  371. package/dist/index.es528.js +2 -119
  372. package/dist/index.es529.js +48 -33
  373. package/dist/index.es530.js +65 -72
  374. package/dist/index.es531.js +21 -2
  375. package/dist/index.es532.js +156 -219
  376. package/dist/index.es533.js +49 -233
  377. package/dist/index.es534.js +2 -21
  378. package/dist/index.es535.js +219 -156
  379. package/dist/index.es536.js +233 -49
  380. package/dist/index.es537.js +2 -2
  381. package/dist/index.es538.js +2 -28
  382. package/dist/index.es539.js +2 -2
  383. package/dist/index.es54.js +1 -1
  384. package/dist/index.es541.js +10 -26
  385. package/dist/index.es542.js +2 -98
  386. package/dist/index.es543.js +2 -54
  387. package/dist/index.es544.js +45 -15
  388. package/dist/index.es545.js +2 -2
  389. package/dist/index.es546.js +2 -29
  390. package/dist/index.es547.js +8 -2
  391. package/dist/index.es548.js +2 -2
  392. package/dist/index.es549.js +2 -2
  393. package/dist/index.es550.js +28 -2
  394. package/dist/index.es551.js +2 -2
  395. package/dist/index.es552.js +2 -11
  396. package/dist/index.es553.js +27 -2
  397. package/dist/index.es554.js +98 -2
  398. package/dist/index.es555.js +50 -44
  399. package/dist/index.es556.js +18 -2
  400. package/dist/index.es558.js +28 -7
  401. package/dist/index.es56.js +2 -2
  402. package/dist/index.es567.js +69 -65
  403. package/dist/index.es568.js +9 -2
  404. package/dist/index.es569.js +12 -74
  405. package/dist/index.es57.js +4 -4
  406. package/dist/index.es570.js +61 -92
  407. package/dist/index.es571.js +62 -49
  408. package/dist/index.es572.js +2 -8
  409. package/dist/index.es573.js +75 -4
  410. package/dist/index.es574.js +89 -48
  411. package/dist/index.es575.js +50 -67
  412. package/dist/index.es576.js +8 -9
  413. package/dist/index.es577.js +5 -14
  414. package/dist/index.es578.js +51 -61
  415. package/dist/index.es58.js +1 -1
  416. package/dist/index.es583.js +42 -2
  417. package/dist/index.es584.js +72 -2
  418. package/dist/index.es585.js +2 -42
  419. package/dist/index.es586.js +2 -72
  420. package/dist/index.es587.js +6 -2
  421. package/dist/index.es588.js +6 -2
  422. package/dist/index.es589.js +2 -2
  423. package/dist/index.es59.js +5 -5
  424. package/dist/index.es590.js +5 -5
  425. package/dist/index.es591.js +5 -5
  426. package/dist/index.es592.js +5 -5
  427. package/dist/index.es593.js +5 -5
  428. package/dist/index.es594.js +5 -5
  429. package/dist/index.es595.js +2 -2
  430. package/dist/index.es596.js +2 -2
  431. package/dist/index.es597.js +5 -5
  432. package/dist/index.es598.js +5 -5
  433. package/dist/index.es599.js +5 -5
  434. package/dist/index.es60.js +3 -3
  435. package/dist/index.es600.js +5 -5
  436. package/dist/index.es601.js +2 -2
  437. package/dist/index.es602.js +2 -2
  438. package/dist/index.es603.js +5 -5
  439. package/dist/index.es604.js +2 -2
  440. package/dist/index.es605.js +5 -5
  441. package/dist/index.es606.js +5 -5
  442. package/dist/index.es607.js +2 -2
  443. package/dist/index.es608.js +2 -2
  444. package/dist/index.es609.js +5 -5
  445. package/dist/index.es61.js +5 -5
  446. package/dist/index.es610.js +2 -2
  447. package/dist/index.es611.js +2 -2
  448. package/dist/index.es612.js +5 -5
  449. package/dist/index.es613.js +5 -5
  450. package/dist/index.es614.js +5 -5
  451. package/dist/index.es615.js +2 -2
  452. package/dist/index.es616.js +5 -5
  453. package/dist/index.es617.js +2 -2
  454. package/dist/index.es618.js +5 -5
  455. package/dist/index.es619.js +2 -2
  456. package/dist/index.es62.js +2 -2
  457. package/dist/index.es620.js +5 -5
  458. package/dist/index.es621.js +2 -6
  459. package/dist/index.es622.js +1 -5
  460. package/dist/index.es624.js +10 -28
  461. package/dist/index.es625.js +2 -2
  462. package/dist/index.es626.js +78 -24
  463. package/dist/index.es627.js +95 -27
  464. package/dist/index.es628.js +2 -32
  465. package/dist/index.es629.js +29 -23
  466. package/dist/index.es63.js +1 -1
  467. package/dist/index.es630.js +2 -29
  468. package/dist/index.es631.js +13 -41
  469. package/dist/index.es632.js +10 -22
  470. package/dist/index.es633.js +14 -7
  471. package/dist/index.es634.js +8 -10
  472. package/dist/index.es635.js +13 -9
  473. package/dist/index.es636.js +38 -10
  474. package/dist/index.es637.js +25 -12
  475. package/dist/index.es638.js +25 -2
  476. package/dist/index.es639.js +9 -15
  477. package/dist/index.es640.js +10 -15
  478. package/dist/index.es641.js +12 -23
  479. package/dist/index.es642.js +10 -16
  480. package/dist/index.es643.js +2 -31
  481. package/dist/index.es644.js +12 -9
  482. package/dist/index.es645.js +14 -60
  483. package/dist/index.es646.js +22 -16
  484. package/dist/index.es647.js +10 -13
  485. package/dist/index.es648.js +14 -31
  486. package/dist/index.es649.js +6 -6
  487. package/dist/index.es650.js +47 -21
  488. package/dist/index.es651.js +18 -115
  489. package/dist/index.es652.js +21 -35
  490. package/dist/index.es653.js +31 -14
  491. package/dist/index.es654.js +9 -9
  492. package/dist/index.es655.js +29 -9
  493. package/dist/index.es656.js +110 -13
  494. package/dist/index.es657.js +34 -11
  495. package/dist/index.es658.js +4 -7
  496. package/dist/index.es659.js +9 -9
  497. package/dist/index.es66.js +4 -4
  498. package/dist/index.es660.js +13 -8
  499. package/dist/index.es661.js +9 -9
  500. package/dist/index.es662.js +5 -30
  501. package/dist/index.es663.js +14 -102
  502. package/dist/index.es664.js +18 -16
  503. package/dist/index.es665.js +13 -28
  504. package/dist/index.es666.js +8 -26
  505. package/dist/index.es667.js +26 -33
  506. package/dist/index.es668.js +100 -26
  507. package/dist/index.es669.js +13 -15
  508. package/dist/index.es67.js +2 -2
  509. package/dist/index.es670.js +15 -22
  510. package/dist/index.es671.js +19 -11
  511. package/dist/index.es672.js +28 -35
  512. package/dist/index.es673.js +30 -22
  513. package/dist/index.es674.js +15 -12
  514. package/dist/index.es675.js +28 -11
  515. package/dist/index.es676.js +20 -14
  516. package/dist/index.es677.js +53 -12
  517. package/dist/index.es678.js +21 -11
  518. package/dist/index.es679.js +10 -30
  519. package/dist/index.es680.js +10 -12
  520. package/dist/index.es681.js +14 -26
  521. package/dist/index.es682.js +12 -19
  522. package/dist/index.es683.js +14 -16
  523. package/dist/index.es684.js +28 -17
  524. package/dist/index.es685.js +12 -10
  525. package/dist/index.es686.js +34 -13
  526. package/dist/index.es687.js +18 -11
  527. package/dist/index.es688.js +7 -22
  528. package/dist/index.es689.js +20 -14
  529. package/dist/index.es690.js +10 -14
  530. package/dist/index.es691.js +10 -22
  531. package/dist/index.es692.js +12 -27
  532. package/dist/index.es693.js +28 -16
  533. package/dist/index.es694.js +11 -28
  534. package/dist/index.es695.js +18 -22
  535. package/dist/index.es696.js +19 -22
  536. package/dist/index.es697.js +18 -23
  537. package/dist/index.es698.js +21 -20
  538. package/dist/index.es699.js +30 -8
  539. package/dist/index.es70.js +1 -1
  540. package/dist/index.es700.js +22 -22
  541. package/dist/index.es701.js +22 -19
  542. package/dist/index.es702.js +25 -25
  543. package/dist/index.es703.js +16 -23
  544. package/dist/index.es704.js +7 -15
  545. package/dist/index.es705.js +18 -10
  546. package/dist/index.es706.js +19 -12
  547. package/dist/index.es707.js +29 -14
  548. package/dist/index.es708.js +23 -14
  549. package/dist/index.es709.js +17 -16
  550. package/dist/index.es710.js +10 -13
  551. package/dist/index.es711.js +11 -15
  552. package/dist/index.es712.js +14 -9
  553. package/dist/index.es713.js +12 -15
  554. package/dist/index.es714.js +21 -99
  555. package/dist/index.es715.js +13 -10
  556. package/dist/index.es716.js +18 -9
  557. package/dist/index.es717.js +8 -15
  558. package/dist/index.es718.js +14 -4
  559. package/dist/index.es719.js +93 -14
  560. package/dist/index.es72.js +1 -1
  561. package/dist/index.es720.js +12 -7
  562. package/dist/index.es721.js +10 -15
  563. package/dist/index.es722.js +32 -2
  564. package/dist/index.es723.js +10 -21
  565. package/dist/index.es724.js +14 -19
  566. package/dist/index.es725.js +10 -21
  567. package/dist/index.es726.js +14 -20
  568. package/dist/index.es727.js +2 -33
  569. package/dist/index.es728.js +9 -9
  570. package/dist/index.es729.js +7 -7
  571. package/dist/index.es730.js +13 -10
  572. package/dist/index.es731.js +6 -6
  573. package/dist/index.es732.js +13 -16
  574. package/dist/index.es733.js +10 -10
  575. package/dist/index.es734.js +6 -6
  576. package/dist/index.es735.js +10 -13
  577. package/dist/index.es736.js +2 -2
  578. package/dist/index.es737.js +8 -8
  579. package/dist/index.es738.js +5 -5
  580. package/dist/index.es739.js +4 -4
  581. package/dist/index.es74.js +2 -2
  582. package/dist/index.es740.js +6 -6
  583. package/dist/index.es741.js +6 -6
  584. package/dist/index.es742.js +7 -7
  585. package/dist/index.es743.js +15 -10
  586. package/dist/index.es744.js +12 -12
  587. package/dist/index.es745.js +8 -8
  588. package/dist/index.es746.js +7 -7
  589. package/dist/index.es747.js +13 -10
  590. package/dist/index.es748.js +7 -12
  591. package/dist/index.es749.js +11 -11
  592. package/dist/index.es750.js +12 -9
  593. package/dist/index.es751.js +9 -9
  594. package/dist/index.es752.js +10 -12
  595. package/dist/index.es753.js +6 -6
  596. package/dist/index.es754.js +8 -8
  597. package/dist/index.es755.js +10 -13
  598. package/dist/index.es756.js +5 -5
  599. package/dist/index.es757.js +16 -11
  600. package/dist/index.es758.js +7 -7
  601. package/dist/index.es759.js +6 -6
  602. package/dist/index.es76.js +1 -1
  603. package/dist/index.es760.js +5 -5
  604. package/dist/index.es761.js +8 -8
  605. package/dist/index.es762.js +30 -2
  606. package/dist/index.es763.js +8 -18
  607. package/dist/index.es764.js +11 -25
  608. package/dist/index.es765.js +14 -9
  609. package/dist/index.es766.js +36 -2
  610. package/dist/index.es767.js +2 -2
  611. package/dist/index.es768.js +41 -8
  612. package/dist/index.es769.js +50 -2
  613. package/dist/index.es77.js +1 -1
  614. package/dist/index.es770.js +30 -78
  615. package/dist/index.es771.js +2 -96
  616. package/dist/index.es78.js +1 -1
  617. package/dist/index.es80.js +1 -1
  618. package/dist/index.es81.js +1 -1
  619. package/dist/index.es812.js +2 -2
  620. package/dist/index.es813.js +2 -2
  621. package/dist/index.es814.js +2 -2
  622. package/dist/index.es815.js +2 -2
  623. package/dist/index.es816.js +2 -2
  624. package/dist/index.es817.js +2 -2
  625. package/dist/index.es819.js +2 -2
  626. package/dist/index.es82.js +2 -2
  627. package/dist/index.es822.js +2 -2
  628. package/dist/index.es824.js +2 -2
  629. package/dist/index.es825.js +2 -2
  630. package/dist/index.es83.js +1 -1
  631. package/dist/index.es85.js +4 -4
  632. package/dist/index.es86.js +1 -1
  633. package/dist/index.es87.js +1 -1
  634. package/dist/index.es89.js +8 -8
  635. package/dist/index.es90.js +5 -5
  636. package/dist/index.es91.js +1 -1
  637. package/dist/index.es92.js +2 -2
  638. package/dist/index.es950.js +2 -2
  639. package/dist/index.es952.js +2 -2
  640. package/dist/index.es953.js +21 -11
  641. package/dist/index.es954.js +11 -26
  642. package/dist/index.es955.js +27 -4
  643. package/dist/index.es956.js +4 -22
  644. package/package.json +1 -1
@@ -1,50 +1,133 @@
1
- import * as l from "react";
2
- import { composeRefs as m } from "./index.es184.js";
3
- import { j as u } from "./index.es105.js";
4
- // @__NO_SIDE_EFFECTS__
5
- function x(e) {
6
- const n = /* @__PURE__ */ y(e), o = l.forwardRef((t, r) => {
7
- const { children: i, ...c } = t, s = l.Children.toArray(i), a = s.find(g);
8
- if (a) {
9
- const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
10
- return /* @__PURE__ */ u.jsx(n, { ...c, ref: r, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
11
- }
12
- return /* @__PURE__ */ u.jsx(n, { ...c, ref: r, children: i });
13
- });
14
- return o.displayName = `${e}.Slot`, o;
1
+ class a {
2
+ get childNodes() {
3
+ throw new Error("childNodes is not supported");
4
+ }
5
+ clone() {
6
+ let t = new a(this.type, this.key);
7
+ return t.value = this.value, t.level = this.level, t.hasChildNodes = this.hasChildNodes, t.rendered = this.rendered, t.textValue = this.textValue, t["aria-label"] = this["aria-label"], t.index = this.index, t.parentKey = this.parentKey, t.prevKey = this.prevKey, t.nextKey = this.nextKey, t.firstChildKey = this.firstChildKey, t.lastChildKey = this.lastChildKey, t.props = this.props, t.render = this.render, t.colSpan = this.colSpan, t.colIndex = this.colIndex, t;
8
+ }
9
+ constructor(t, e) {
10
+ this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = t, this.key = e;
11
+ }
15
12
  }
16
- // @__NO_SIDE_EFFECTS__
17
- function y(e) {
18
- const n = l.forwardRef((o, t) => {
19
- const { children: r, ...i } = o;
20
- if (l.isValidElement(r)) {
21
- const c = R(r), s = C(i, r.props);
22
- return r.type !== l.Fragment && (s.ref = t ? m(t, c) : c), l.cloneElement(r, s);
13
+ class d {
14
+ get size() {
15
+ return this.keyMap.size;
16
+ }
17
+ getKeys() {
18
+ return this.keyMap.keys();
19
+ }
20
+ *[Symbol.iterator]() {
21
+ let t = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
22
+ for (; t; )
23
+ yield t, t = t.nextKey != null ? this.keyMap.get(t.nextKey) : void 0;
24
+ }
25
+ getChildren(t) {
26
+ let e = this.keyMap;
27
+ return {
28
+ *[Symbol.iterator]() {
29
+ let l = e.get(t), n = (l == null ? void 0 : l.firstChildKey) != null ? e.get(l.firstChildKey) : null;
30
+ for (; n; )
31
+ yield n, n = n.nextKey != null ? e.get(n.nextKey) : void 0;
32
+ }
33
+ };
34
+ }
35
+ getKeyBefore(t) {
36
+ let e = this.keyMap.get(t);
37
+ if (!e) return null;
38
+ if (e.prevKey != null) {
39
+ for (e = this.keyMap.get(e.prevKey); e && e.type !== "item" && e.lastChildKey != null; ) e = this.keyMap.get(e.lastChildKey);
40
+ var l;
41
+ return (l = e == null ? void 0 : e.key) !== null && l !== void 0 ? l : null;
23
42
  }
24
- return l.Children.count(r) > 1 ? l.Children.only(null) : null;
25
- });
26
- return n.displayName = `${e}.SlotClone`, n;
27
- }
28
- var E = Symbol("radix.slottable");
29
- function g(e) {
30
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
31
- }
32
- function C(e, n) {
33
- const o = { ...n };
34
- for (const t in n) {
35
- const r = e[t], i = n[t];
36
- /^on[A-Z]/.test(t) ? r && i ? o[t] = (...s) => {
37
- const a = i(...s);
38
- return r(...s), a;
39
- } : r && (o[t] = r) : t === "style" ? o[t] = { ...r, ...i } : t === "className" && (o[t] = [r, i].filter(Boolean).join(" "));
40
- }
41
- return { ...e, ...o };
43
+ return e.parentKey;
44
+ }
45
+ getKeyAfter(t) {
46
+ let e = this.keyMap.get(t);
47
+ if (!e) return null;
48
+ if (e.type !== "item" && e.firstChildKey != null) return e.firstChildKey;
49
+ for (; e; ) {
50
+ if (e.nextKey != null) return e.nextKey;
51
+ if (e.parentKey != null) e = this.keyMap.get(e.parentKey);
52
+ else return null;
53
+ }
54
+ return null;
55
+ }
56
+ getFirstKey() {
57
+ return this.firstKey;
58
+ }
59
+ getLastKey() {
60
+ let t = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
61
+ for (; (t == null ? void 0 : t.lastChildKey) != null; ) t = this.keyMap.get(t.lastChildKey);
62
+ var e;
63
+ return (e = t == null ? void 0 : t.key) !== null && e !== void 0 ? e : null;
64
+ }
65
+ getItem(t) {
66
+ var e;
67
+ return (e = this.keyMap.get(t)) !== null && e !== void 0 ? e : null;
68
+ }
69
+ at() {
70
+ throw new Error("Not implemented");
71
+ }
72
+ clone() {
73
+ let t = this.constructor, e = new t();
74
+ return e.keyMap = new Map(this.keyMap), e.firstKey = this.firstKey, e.lastKey = this.lastKey, e;
75
+ }
76
+ addNode(t) {
77
+ if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
78
+ this.keyMap.set(t.key, t);
79
+ }
80
+ removeNode(t) {
81
+ if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
82
+ this.keyMap.delete(t);
83
+ }
84
+ commit(t, e, l = !1) {
85
+ if (this.frozen) throw new Error("Cannot commit a frozen collection");
86
+ this.firstKey = t, this.lastKey = e, this.frozen = !l;
87
+ }
88
+ // TODO: this is pretty specific to menu, will need to check if it is generic enough
89
+ // Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
90
+ // TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
91
+ // to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
92
+ UNSTABLE_filter(t) {
93
+ let e = new d(), l = null;
94
+ for (let n of this)
95
+ if (n.type === "section" && n.hasChildNodes) {
96
+ let i = n.clone(), r = null;
97
+ for (let o of this.getChildren(n.key)) if (h(o, t, this, e)) {
98
+ let s = o.clone();
99
+ r == null && (i.firstChildKey = s.key), e.firstKey == null && (e.firstKey = i.key), r && r.parentKey === s.parentKey ? (r.nextKey = s.key, s.prevKey = r.key) : s.prevKey = null, s.nextKey = null, e.addNode(s), r = s;
100
+ }
101
+ r && (r.type !== "header" ? (i.lastChildKey = r.key, l == null ? i.prevKey = null : (l.type === "section" || l.type === "separator") && (l.nextKey = i.key, i.prevKey = l.key), i.nextKey = null, l = i, e.addNode(i)) : (e.firstKey === i.key && (e.firstKey = null), e.removeNode(r.key)));
102
+ } else if (n.type === "separator") {
103
+ let i = n.clone();
104
+ i.nextKey = null, (l == null ? void 0 : l.type) === "section" && (l.nextKey = i.key, i.prevKey = l.key, l = i, e.addNode(i));
105
+ } else {
106
+ let i = n.clone();
107
+ h(i, t, this, e) && (e.firstKey == null && (e.firstKey = i.key), l != null && l.type !== "section" && l.type !== "separator" && l.parentKey === i.parentKey ? (l.nextKey = i.key, i.prevKey = l.key) : i.prevKey = null, i.nextKey = null, e.addNode(i), l = i);
108
+ }
109
+ if ((l == null ? void 0 : l.type) === "separator" && l.nextKey === null) {
110
+ let n;
111
+ l.prevKey != null && (n = e.getItem(l.prevKey), n.nextKey = null), e.removeNode(l.key), l = n;
112
+ }
113
+ return e.lastKey = (l == null ? void 0 : l.key) || null, e;
114
+ }
115
+ constructor() {
116
+ this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1;
117
+ }
42
118
  }
43
- function R(e) {
44
- var t, r;
45
- let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = n && "isReactWarning" in n && n.isReactWarning;
46
- return o ? e.ref : (n = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
119
+ function h(y, t, e, l) {
120
+ if (y.type === "subdialogtrigger" || y.type === "submenutrigger") {
121
+ let n = [
122
+ ...e.getChildren(y.key)
123
+ ][0];
124
+ if (n && t(n.textValue)) {
125
+ let i = n.clone();
126
+ return l.addNode(i), !0;
127
+ } else return !1;
128
+ } else return y.type === "header" ? !0 : t(y.textValue);
47
129
  }
48
130
  export {
49
- x as createSlot
131
+ d as BaseCollection,
132
+ a as CollectionNode
50
133
  };
@@ -1,4 +1,219 @@
1
- var t = {};
1
+ import { CollectionNode as S } from "./index.es398.js";
2
+ class b {
3
+ *[Symbol.iterator]() {
4
+ let i = this.firstChild;
5
+ for (; i; )
6
+ yield i, i = i.nextSibling;
7
+ }
8
+ get firstChild() {
9
+ return this._firstChild;
10
+ }
11
+ set firstChild(i) {
12
+ this._firstChild = i, this.ownerDocument.markDirty(this);
13
+ }
14
+ get lastChild() {
15
+ return this._lastChild;
16
+ }
17
+ set lastChild(i) {
18
+ this._lastChild = i, this.ownerDocument.markDirty(this);
19
+ }
20
+ get previousSibling() {
21
+ return this._previousSibling;
22
+ }
23
+ set previousSibling(i) {
24
+ this._previousSibling = i, this.ownerDocument.markDirty(this);
25
+ }
26
+ get nextSibling() {
27
+ return this._nextSibling;
28
+ }
29
+ set nextSibling(i) {
30
+ this._nextSibling = i, this.ownerDocument.markDirty(this);
31
+ }
32
+ get parentNode() {
33
+ return this._parentNode;
34
+ }
35
+ set parentNode(i) {
36
+ this._parentNode = i, this.ownerDocument.markDirty(this);
37
+ }
38
+ get isConnected() {
39
+ var i;
40
+ return ((i = this.parentNode) === null || i === void 0 ? void 0 : i.isConnected) || !1;
41
+ }
42
+ invalidateChildIndices(i) {
43
+ (this._minInvalidChildIndex == null || i.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = i);
44
+ }
45
+ updateChildIndices() {
46
+ let i = this._minInvalidChildIndex;
47
+ for (; i; )
48
+ i.index = i.previousSibling ? i.previousSibling.index + 1 : 0, i = i.nextSibling;
49
+ this._minInvalidChildIndex = null;
50
+ }
51
+ appendChild(i) {
52
+ i.parentNode && i.parentNode.removeChild(i), this.firstChild == null && (this.firstChild = i), this.lastChild ? (this.lastChild.nextSibling = i, i.index = this.lastChild.index + 1, i.previousSibling = this.lastChild) : (i.previousSibling = null, i.index = 0), i.parentNode = this, i.nextSibling = null, this.lastChild = i, this.ownerDocument.markDirty(this), this.ownerDocument.queueUpdate();
53
+ }
54
+ insertBefore(i, t) {
55
+ if (t == null) return this.appendChild(i);
56
+ i.parentNode && i.parentNode.removeChild(i), i.nextSibling = t, i.previousSibling = t.previousSibling, i.index = t.index, this.firstChild === t ? this.firstChild = i : t.previousSibling && (t.previousSibling.nextSibling = i), t.previousSibling = i, i.parentNode = t.parentNode, this.invalidateChildIndices(t), this.ownerDocument.queueUpdate();
57
+ }
58
+ removeChild(i) {
59
+ i.parentNode !== this || !this.ownerDocument.isMounted || (i.nextSibling && (this.invalidateChildIndices(i.nextSibling), i.nextSibling.previousSibling = i.previousSibling), i.previousSibling && (i.previousSibling.nextSibling = i.nextSibling), this.firstChild === i && (this.firstChild = i.nextSibling), this.lastChild === i && (this.lastChild = i.previousSibling), i.parentNode = null, i.nextSibling = null, i.previousSibling = null, i.index = 0, this.ownerDocument.markDirty(i), this.ownerDocument.queueUpdate());
60
+ }
61
+ addEventListener() {
62
+ }
63
+ removeEventListener() {
64
+ }
65
+ get previousVisibleSibling() {
66
+ let i = this.previousSibling;
67
+ for (; i && i.isHidden; ) i = i.previousSibling;
68
+ return i;
69
+ }
70
+ get nextVisibleSibling() {
71
+ let i = this.nextSibling;
72
+ for (; i && i.isHidden; ) i = i.nextSibling;
73
+ return i;
74
+ }
75
+ get firstVisibleChild() {
76
+ let i = this.firstChild;
77
+ for (; i && i.isHidden; ) i = i.nextSibling;
78
+ return i;
79
+ }
80
+ get lastVisibleChild() {
81
+ let i = this.lastChild;
82
+ for (; i && i.isHidden; ) i = i.previousSibling;
83
+ return i;
84
+ }
85
+ constructor(i) {
86
+ this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = i;
87
+ }
88
+ }
89
+ class h extends b {
90
+ get index() {
91
+ return this._index;
92
+ }
93
+ set index(i) {
94
+ this._index = i, this.ownerDocument.markDirty(this);
95
+ }
96
+ get level() {
97
+ return this.parentNode instanceof h ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
98
+ }
99
+ /**
100
+ * Lazily gets a mutable instance of a Node. If the node has already
101
+ * been cloned during this update cycle, it just returns the existing one.
102
+ */
103
+ getMutableNode() {
104
+ return this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node;
105
+ }
106
+ updateNode() {
107
+ var i, t, n;
108
+ let s = this.nextVisibleSibling, e = this.getMutableNode();
109
+ e.index = this.index, e.level = this.level, e.parentKey = this.parentNode instanceof h ? this.parentNode.node.key : null;
110
+ var o;
111
+ e.prevKey = (o = (i = this.previousVisibleSibling) === null || i === void 0 ? void 0 : i.node.key) !== null && o !== void 0 ? o : null;
112
+ var r;
113
+ e.nextKey = (r = s == null ? void 0 : s.node.key) !== null && r !== void 0 ? r : null, e.hasChildNodes = !!this.firstChild;
114
+ var d;
115
+ e.firstChildKey = (d = (t = this.firstVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && d !== void 0 ? d : null;
116
+ var l;
117
+ if (e.lastChildKey = (l = (n = this.lastVisibleChild) === null || n === void 0 ? void 0 : n.node.key) !== null && l !== void 0 ? l : null, (e.colSpan != null || e.colIndex != null) && s) {
118
+ var u, a;
119
+ let p = ((u = e.colIndex) !== null && u !== void 0 ? u : e.index) + ((a = e.colSpan) !== null && a !== void 0 ? a : 1);
120
+ if (p !== s.node.colIndex) {
121
+ let g = s.getMutableNode();
122
+ g.colIndex = p;
123
+ }
124
+ }
125
+ }
126
+ setProps(i, t, n, s) {
127
+ let e = this.getMutableNode(), { value: o, textValue: r, id: d, ...l } = i;
128
+ if (l.ref = t, e.props = l, e.rendered = n, e.render = s, e.value = o, e.textValue = r || (typeof l.children == "string" ? l.children : "") || i["aria-label"] || "", d != null && d !== e.key) {
129
+ if (this.hasSetProps) throw new Error("Cannot change the id of an item");
130
+ e.key = d;
131
+ }
132
+ l.colSpan != null && (e.colSpan = l.colSpan), this.hasSetProps = !0, this.ownerDocument.queueUpdate();
133
+ }
134
+ get style() {
135
+ let i = this;
136
+ return {
137
+ get display() {
138
+ return i.isHidden ? "none" : "";
139
+ },
140
+ set display(t) {
141
+ let n = t === "none";
142
+ if (i.isHidden !== n) {
143
+ var s, e;
144
+ (((s = i.parentNode) === null || s === void 0 ? void 0 : s.firstVisibleChild) === i || ((e = i.parentNode) === null || e === void 0 ? void 0 : e.lastVisibleChild) === i) && i.ownerDocument.markDirty(i.parentNode);
145
+ let o = i.previousVisibleSibling, r = i.nextVisibleSibling;
146
+ o && i.ownerDocument.markDirty(o), r && i.ownerDocument.markDirty(r), i.isHidden = n, i.ownerDocument.markDirty(i);
147
+ }
148
+ }
149
+ };
150
+ }
151
+ hasAttribute() {
152
+ }
153
+ setAttribute() {
154
+ }
155
+ setAttributeNS() {
156
+ }
157
+ removeAttribute() {
158
+ }
159
+ constructor(i, t) {
160
+ super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.hasSetProps = !1, this.isHidden = !1, this.node = new S(i, `react-aria-${++t.nodeId}`);
161
+ }
162
+ }
163
+ class C extends b {
164
+ get isConnected() {
165
+ return this.isMounted;
166
+ }
167
+ createElement(i) {
168
+ return new h(i, this);
169
+ }
170
+ getMutableCollection() {
171
+ return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection;
172
+ }
173
+ markDirty(i) {
174
+ this.dirtyNodes.add(i);
175
+ }
176
+ addNode(i) {
177
+ if (i.isHidden) return;
178
+ let t = this.getMutableCollection();
179
+ if (!t.getItem(i.node.key)) for (let n of i) this.addNode(n);
180
+ t.addNode(i.node);
181
+ }
182
+ removeNode(i) {
183
+ for (let n of i) this.removeNode(n);
184
+ this.getMutableCollection().removeNode(i.node.key);
185
+ }
186
+ /** Finalizes the collection update, updating all nodes and freezing the collection. */
187
+ getCollection() {
188
+ return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection);
189
+ }
190
+ updateCollection() {
191
+ for (let e of this.dirtyNodes) e instanceof h && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
192
+ for (let e of this.dirtyNodes) e instanceof h && (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.isMutated = !1);
193
+ if (this.dirtyNodes.clear(), this.nextCollection) {
194
+ var i, t, n, s;
195
+ this.nextCollection.commit((n = (i = this.firstVisibleChild) === null || i === void 0 ? void 0 : i.node.key) !== null && n !== void 0 ? n : null, (s = (t = this.lastVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && s !== void 0 ? s : null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null);
196
+ }
197
+ }
198
+ queueUpdate() {
199
+ if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
200
+ this.queuedRender = !0, this.inSubscription = !0;
201
+ for (let i of this.subscriptions) i();
202
+ this.inSubscription = !1;
203
+ }
204
+ }
205
+ subscribe(i) {
206
+ return this.subscriptions.add(i), () => this.subscriptions.delete(i);
207
+ }
208
+ resetAfterSSR() {
209
+ this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
210
+ }
211
+ constructor(i) {
212
+ super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = !0, this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = i, this.nextCollection = i;
213
+ }
214
+ }
2
215
  export {
3
- t as __exports
216
+ b as BaseNode,
217
+ C as Document,
218
+ h as ElementNode
4
219
  };
@@ -1,14 +1,14 @@
1
1
  import { j as t } from "./index.es105.js";
2
2
  import { useControllableState as M } from "./index.es91.js";
3
- import { l as H } from "./index.es108.js";
3
+ import { l as H } from "./index.es106.js";
4
4
  import { useMemo as T } from "react";
5
- import { isDateRange as f } from "./index.es109.js";
6
- import $ from "./index.es110.js";
5
+ import { isDateRange as f } from "./index.es124.js";
6
+ import $ from "./index.es125.js";
7
7
  import { Calendar as B } from "./index.es34.js";
8
- import { isDate as i } from "./index.es111.js";
8
+ import { isDate as i } from "./index.es126.js";
9
9
  import { PopoverRoot as S, PopoverTrigger as A, PopoverContent as O } from "./index.es63.js";
10
10
  import { cn as q } from "./index.es92.js";
11
- import { formatDate as z } from "./index.es112.js";
11
+ import { formatDate as z } from "./index.es127.js";
12
12
  import { Button as j } from "./index.es32.js";
13
13
  const ee = (m) => {
14
14
  const {
@@ -1,4 +1,32 @@
1
- var e = {};
1
+ import { focusSafely as d } from "./index.es499.js";
2
+ import { useFocus as n } from "./index.es486.js";
3
+ import { useKeyboard as $ } from "./index.es490.js";
4
+ import { mergeProps as c } from "./index.es311.js";
5
+ import { useSyncRef as l } from "./index.es474.js";
6
+ import i, { useRef as x, useEffect as p, useContext as m } from "react";
7
+ let P = /* @__PURE__ */ i.createContext(null);
8
+ function F(e) {
9
+ let t = m(P) || {};
10
+ l(t, e);
11
+ let { ref: o, ...r } = t;
12
+ return r;
13
+ }
14
+ function S(e, t) {
15
+ let { focusProps: o } = n(e), { keyboardProps: r } = $(e), s = c(o, r), u = F(t), b = e.isDisabled ? {} : u, f = x(e.autoFocus);
16
+ p(() => {
17
+ f.current && t.current && d(t.current), f.current = !1;
18
+ }, [
19
+ t
20
+ ]);
21
+ let a = e.excludeFromTabOrder ? -1 : 0;
22
+ return e.isDisabled && (a = void 0), {
23
+ focusableProps: c({
24
+ ...s,
25
+ tabIndex: a
26
+ }, b)
27
+ };
28
+ }
2
29
  export {
3
- e as __exports
30
+ P as FocusableContext,
31
+ S as useFocusable
4
32
  };
@@ -1,133 +1,50 @@
1
- class a {
2
- get childNodes() {
3
- throw new Error("childNodes is not supported");
4
- }
5
- clone() {
6
- let t = new a(this.type, this.key);
7
- return t.value = this.value, t.level = this.level, t.hasChildNodes = this.hasChildNodes, t.rendered = this.rendered, t.textValue = this.textValue, t["aria-label"] = this["aria-label"], t.index = this.index, t.parentKey = this.parentKey, t.prevKey = this.prevKey, t.nextKey = this.nextKey, t.firstChildKey = this.firstChildKey, t.lastChildKey = this.lastChildKey, t.props = this.props, t.render = this.render, t.colSpan = this.colSpan, t.colIndex = this.colIndex, t;
8
- }
9
- constructor(t, e) {
10
- this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = t, this.key = e;
11
- }
12
- }
13
- class d {
14
- get size() {
15
- return this.keyMap.size;
16
- }
17
- getKeys() {
18
- return this.keyMap.keys();
19
- }
20
- *[Symbol.iterator]() {
21
- let t = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
22
- for (; t; )
23
- yield t, t = t.nextKey != null ? this.keyMap.get(t.nextKey) : void 0;
24
- }
25
- getChildren(t) {
26
- let e = this.keyMap;
27
- return {
28
- *[Symbol.iterator]() {
29
- let l = e.get(t), n = (l == null ? void 0 : l.firstChildKey) != null ? e.get(l.firstChildKey) : null;
30
- for (; n; )
31
- yield n, n = n.nextKey != null ? e.get(n.nextKey) : void 0;
32
- }
33
- };
34
- }
35
- getKeyBefore(t) {
36
- let e = this.keyMap.get(t);
37
- if (!e) return null;
38
- if (e.prevKey != null) {
39
- for (e = this.keyMap.get(e.prevKey); e && e.type !== "item" && e.lastChildKey != null; ) e = this.keyMap.get(e.lastChildKey);
40
- var l;
41
- return (l = e == null ? void 0 : e.key) !== null && l !== void 0 ? l : null;
42
- }
43
- return e.parentKey;
44
- }
45
- getKeyAfter(t) {
46
- let e = this.keyMap.get(t);
47
- if (!e) return null;
48
- if (e.type !== "item" && e.firstChildKey != null) return e.firstChildKey;
49
- for (; e; ) {
50
- if (e.nextKey != null) return e.nextKey;
51
- if (e.parentKey != null) e = this.keyMap.get(e.parentKey);
52
- else return null;
53
- }
54
- return null;
55
- }
56
- getFirstKey() {
57
- return this.firstKey;
58
- }
59
- getLastKey() {
60
- let t = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
61
- for (; (t == null ? void 0 : t.lastChildKey) != null; ) t = this.keyMap.get(t.lastChildKey);
62
- var e;
63
- return (e = t == null ? void 0 : t.key) !== null && e !== void 0 ? e : null;
64
- }
65
- getItem(t) {
66
- var e;
67
- return (e = this.keyMap.get(t)) !== null && e !== void 0 ? e : null;
68
- }
69
- at() {
70
- throw new Error("Not implemented");
71
- }
72
- clone() {
73
- let t = this.constructor, e = new t();
74
- return e.keyMap = new Map(this.keyMap), e.firstKey = this.firstKey, e.lastKey = this.lastKey, e;
75
- }
76
- addNode(t) {
77
- if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
78
- this.keyMap.set(t.key, t);
79
- }
80
- removeNode(t) {
81
- if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
82
- this.keyMap.delete(t);
83
- }
84
- commit(t, e, l = !1) {
85
- if (this.frozen) throw new Error("Cannot commit a frozen collection");
86
- this.firstKey = t, this.lastKey = e, this.frozen = !l;
87
- }
88
- // TODO: this is pretty specific to menu, will need to check if it is generic enough
89
- // Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
90
- // TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
91
- // to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
92
- UNSTABLE_filter(t) {
93
- let e = new d(), l = null;
94
- for (let n of this)
95
- if (n.type === "section" && n.hasChildNodes) {
96
- let i = n.clone(), r = null;
97
- for (let o of this.getChildren(n.key)) if (h(o, t, this, e)) {
98
- let s = o.clone();
99
- r == null && (i.firstChildKey = s.key), e.firstKey == null && (e.firstKey = i.key), r && r.parentKey === s.parentKey ? (r.nextKey = s.key, s.prevKey = r.key) : s.prevKey = null, s.nextKey = null, e.addNode(s), r = s;
100
- }
101
- r && (r.type !== "header" ? (i.lastChildKey = r.key, l == null ? i.prevKey = null : (l.type === "section" || l.type === "separator") && (l.nextKey = i.key, i.prevKey = l.key), i.nextKey = null, l = i, e.addNode(i)) : (e.firstKey === i.key && (e.firstKey = null), e.removeNode(r.key)));
102
- } else if (n.type === "separator") {
103
- let i = n.clone();
104
- i.nextKey = null, (l == null ? void 0 : l.type) === "section" && (l.nextKey = i.key, i.prevKey = l.key, l = i, e.addNode(i));
105
- } else {
106
- let i = n.clone();
107
- h(i, t, this, e) && (e.firstKey == null && (e.firstKey = i.key), l != null && l.type !== "section" && l.type !== "separator" && l.parentKey === i.parentKey ? (l.nextKey = i.key, i.prevKey = l.key) : i.prevKey = null, i.nextKey = null, e.addNode(i), l = i);
108
- }
109
- if ((l == null ? void 0 : l.type) === "separator" && l.nextKey === null) {
110
- let n;
111
- l.prevKey != null && (n = e.getItem(l.prevKey), n.nextKey = null), e.removeNode(l.key), l = n;
1
+ import a, { useState as f, useContext as d, useRef as l } from "react";
2
+ const c = {
3
+ prefix: String(Math.round(Math.random() * 1e10)),
4
+ current: 0
5
+ }, $ = /* @__PURE__ */ a.createContext(c), p = /* @__PURE__ */ a.createContext(!1);
6
+ let v = !!(typeof window < "u" && window.document && window.document.createElement), s = /* @__PURE__ */ new WeakMap();
7
+ function S(t = !1) {
8
+ let e = d($), r = l(null);
9
+ if (r.current === null && !t) {
10
+ var n, u;
11
+ let o = (u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || u === void 0 || (n = u.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
12
+ if (o) {
13
+ let i = s.get(o);
14
+ i == null ? s.set(o, {
15
+ id: e.current,
16
+ state: o.memoizedState
17
+ }) : o.memoizedState !== i.state && (e.current = i.id, s.delete(o));
112
18
  }
113
- return e.lastKey = (l == null ? void 0 : l.key) || null, e;
114
- }
115
- constructor() {
116
- this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1;
19
+ r.current = ++e.current;
117
20
  }
21
+ return r.current;
22
+ }
23
+ function b(t) {
24
+ let e = d($);
25
+ e === c && !v && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
26
+ let r = S(!!t), n = e === c && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
27
+ return t || `${n}-${r}`;
28
+ }
29
+ function x(t) {
30
+ let e = a.useId(), [r] = f(y()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${c.prefix}`;
31
+ return t || `${n}-${e}`;
32
+ }
33
+ const C = typeof a.useId == "function" ? x : b;
34
+ function m() {
35
+ return !1;
36
+ }
37
+ function w() {
38
+ return !0;
39
+ }
40
+ function g(t) {
41
+ return () => {
42
+ };
118
43
  }
119
- function h(y, t, e, l) {
120
- if (y.type === "subdialogtrigger" || y.type === "submenutrigger") {
121
- let n = [
122
- ...e.getChildren(y.key)
123
- ][0];
124
- if (n && t(n.textValue)) {
125
- let i = n.clone();
126
- return l.addNode(i), !0;
127
- } else return !1;
128
- } else return y.type === "header" ? !0 : t(y.textValue);
44
+ function y() {
45
+ return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(g, m, w) : d(p);
129
46
  }
130
47
  export {
131
- d as BaseCollection,
132
- a as CollectionNode
48
+ y as useIsSSR,
49
+ C as useSSRSafeId
133
50
  };