@anoki/fse-ui 1.0.0-beta1.48.13 → 1.0.0-beta1.48.14

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 (636) hide show
  1. package/dist/components/ui/CommunicationSeach/CommunicationSearch.css +1 -1
  2. package/dist/index.cjs10.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.cjs177.js +1 -1
  25. package/dist/index.cjs178.js +1 -1
  26. package/dist/index.cjs182.js +1 -1
  27. package/dist/index.cjs183.js +1 -1
  28. package/dist/index.cjs184.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.cjs193.js +1 -1
  37. package/dist/index.cjs194.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.cjs201.js +1 -1
  44. package/dist/index.cjs202.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.cjs211.js +1 -1
  52. package/dist/index.cjs212.js +1 -1
  53. package/dist/index.cjs213.js +1 -1
  54. package/dist/index.cjs214.js +1 -1
  55. package/dist/index.cjs220.js +1 -1
  56. package/dist/index.cjs222.js +1 -1
  57. package/dist/index.cjs223.js +1 -1
  58. package/dist/index.cjs24.js +1 -1
  59. package/dist/index.cjs261.js +1 -1
  60. package/dist/index.cjs262.js +1 -1
  61. package/dist/index.cjs263.js +1 -1
  62. package/dist/index.cjs273.js +1 -1
  63. package/dist/index.cjs273.js.map +1 -1
  64. package/dist/index.cjs274.js +2 -0
  65. package/dist/index.cjs274.js.map +1 -0
  66. package/dist/index.cjs28.js +1 -1
  67. package/dist/index.cjs283.js +1 -1
  68. package/dist/index.cjs292.js +1 -1
  69. package/dist/index.cjs295.js +1 -1
  70. package/dist/index.cjs297.js +1 -1
  71. package/dist/index.cjs305.js +1 -1
  72. package/dist/index.cjs316.js +1 -1
  73. package/dist/index.cjs321.js +1 -1
  74. package/dist/index.cjs323.js +1 -1
  75. package/dist/index.cjs352.js +1 -1
  76. package/dist/index.cjs353.js +1 -1
  77. package/dist/index.cjs354.js +1 -1
  78. package/dist/index.cjs372.js +1 -1
  79. package/dist/index.cjs373.js +1 -1
  80. package/dist/index.cjs395.js +1 -1
  81. package/dist/index.cjs401.js +1 -1
  82. package/dist/index.cjs413.js +1 -1
  83. package/dist/index.cjs453.js +1 -1
  84. package/dist/index.cjs454.js +1 -1
  85. package/dist/index.cjs460.js +1 -1
  86. package/dist/index.cjs463.js +2 -0
  87. package/dist/index.cjs463.js.map +1 -0
  88. package/dist/index.cjs464.js +1 -1
  89. package/dist/index.cjs464.js.map +1 -1
  90. package/dist/index.cjs465.js +1 -1
  91. package/dist/index.cjs465.js.map +1 -1
  92. package/dist/index.cjs466.js +1 -1
  93. package/dist/index.cjs466.js.map +1 -1
  94. package/dist/index.cjs467.js +1 -1
  95. package/dist/index.cjs467.js.map +1 -1
  96. package/dist/index.cjs468.js +1 -1
  97. package/dist/index.cjs468.js.map +1 -1
  98. package/dist/index.cjs469.js +1 -1
  99. package/dist/index.cjs469.js.map +1 -1
  100. package/dist/index.cjs470.js +1 -1
  101. package/dist/index.cjs470.js.map +1 -1
  102. package/dist/index.cjs471.js +1 -1
  103. package/dist/index.cjs471.js.map +1 -1
  104. package/dist/index.cjs472.js +1 -1
  105. package/dist/index.cjs472.js.map +1 -1
  106. package/dist/index.cjs473.js +1 -1
  107. package/dist/index.cjs473.js.map +1 -1
  108. package/dist/index.cjs474.js +1 -1
  109. package/dist/index.cjs474.js.map +1 -1
  110. package/dist/index.cjs475.js +2 -0
  111. package/dist/index.cjs475.js.map +1 -0
  112. package/dist/index.cjs477.js +1 -1
  113. package/dist/index.cjs477.js.map +1 -1
  114. package/dist/index.cjs478.js +1 -1
  115. package/dist/index.cjs478.js.map +1 -1
  116. package/dist/index.cjs479.js +1 -1
  117. package/dist/index.cjs479.js.map +1 -1
  118. package/dist/index.cjs480.js +1 -1
  119. package/dist/index.cjs480.js.map +1 -1
  120. package/dist/index.cjs481.js +1 -1
  121. package/dist/index.cjs481.js.map +1 -1
  122. package/dist/index.cjs482.js +1 -1
  123. package/dist/index.cjs482.js.map +1 -1
  124. package/dist/index.cjs483.js +1 -1
  125. package/dist/index.cjs483.js.map +1 -1
  126. package/dist/index.cjs484.js +1 -1
  127. package/dist/index.cjs484.js.map +1 -1
  128. package/dist/index.cjs485.js +1 -1
  129. package/dist/index.cjs485.js.map +1 -1
  130. package/dist/index.cjs486.js +1 -1
  131. package/dist/index.cjs486.js.map +1 -1
  132. package/dist/index.cjs487.js +1 -1
  133. package/dist/index.cjs487.js.map +1 -1
  134. package/dist/index.cjs488.js +1 -1
  135. package/dist/index.cjs488.js.map +1 -1
  136. package/dist/index.cjs489.js +1 -1
  137. package/dist/index.cjs489.js.map +1 -1
  138. package/dist/index.cjs490.js +1 -1
  139. package/dist/index.cjs490.js.map +1 -1
  140. package/dist/index.cjs491.js +2 -0
  141. package/dist/index.cjs491.js.map +1 -0
  142. package/dist/index.cjs494.js +2 -0
  143. package/dist/index.cjs494.js.map +1 -0
  144. package/dist/index.cjs495.js +2 -0
  145. package/dist/index.cjs495.js.map +1 -0
  146. package/dist/{index.cjs517.js → index.cjs496.js} +2 -2
  147. package/dist/{index.cjs517.js.map → index.cjs496.js.map} +1 -1
  148. package/dist/index.cjs497.js +2 -0
  149. package/dist/index.cjs497.js.map +1 -0
  150. package/dist/{index.cjs518.js → index.cjs498.js} +2 -2
  151. package/dist/{index.cjs518.js.map → index.cjs498.js.map} +1 -1
  152. package/dist/index.cjs499.js +2 -0
  153. package/dist/index.cjs499.js.map +1 -0
  154. package/dist/{index.cjs519.js → index.cjs500.js} +1 -1
  155. package/dist/{index.cjs519.js.map → index.cjs500.js.map} +1 -1
  156. package/dist/index.cjs501.js +1 -1
  157. package/dist/index.cjs501.js.map +1 -1
  158. package/dist/index.cjs502.js +1 -1
  159. package/dist/index.cjs502.js.map +1 -1
  160. package/dist/index.cjs503.js +1 -1
  161. package/dist/index.cjs503.js.map +1 -1
  162. package/dist/index.cjs504.js +1 -1
  163. package/dist/index.cjs504.js.map +1 -1
  164. package/dist/index.cjs505.js +1 -1
  165. package/dist/index.cjs505.js.map +1 -1
  166. package/dist/index.cjs506.js +4 -1
  167. package/dist/index.cjs506.js.map +1 -1
  168. package/dist/index.cjs507.js +2 -0
  169. package/dist/index.cjs507.js.map +1 -0
  170. package/dist/{index.cjs527.js → index.cjs508.js} +2 -2
  171. package/dist/{index.cjs527.js.map → index.cjs508.js.map} +1 -1
  172. package/dist/{index.cjs528.js → index.cjs509.js} +1 -1
  173. package/dist/{index.cjs528.js.map → index.cjs509.js.map} +1 -1
  174. package/dist/{index.cjs529.js → index.cjs510.js} +1 -1
  175. package/dist/{index.cjs529.js.map → index.cjs510.js.map} +1 -1
  176. package/dist/index.cjs511.js +2 -0
  177. package/dist/index.cjs511.js.map +1 -0
  178. package/dist/{index.cjs530.js → index.cjs512.js} +2 -2
  179. package/dist/{index.cjs530.js.map → index.cjs512.js.map} +1 -1
  180. package/dist/{index.cjs531.js → index.cjs513.js} +2 -2
  181. package/dist/{index.cjs531.js.map → index.cjs513.js.map} +1 -1
  182. package/dist/{index.cjs532.js → index.cjs514.js} +1 -1
  183. package/dist/{index.cjs532.js.map → index.cjs514.js.map} +1 -1
  184. package/dist/index.cjs515.js +1 -1
  185. package/dist/index.cjs515.js.map +1 -1
  186. package/dist/index.cjs516.js +1 -1
  187. package/dist/index.cjs516.js.map +1 -1
  188. package/dist/index.cjs525.js +1 -4
  189. package/dist/index.cjs525.js.map +1 -1
  190. package/dist/index.cjs526.js +1 -1
  191. package/dist/index.cjs526.js.map +1 -1
  192. package/dist/index.cjs537.js +1 -1
  193. package/dist/index.cjs537.js.map +1 -1
  194. package/dist/index.cjs538.js +1 -1
  195. package/dist/index.cjs538.js.map +1 -1
  196. package/dist/index.cjs539.js +1 -1
  197. package/dist/index.cjs539.js.map +1 -1
  198. package/dist/index.cjs540.js +1 -1
  199. package/dist/index.cjs540.js.map +1 -1
  200. package/dist/index.cjs541.js +1 -1
  201. package/dist/index.cjs541.js.map +1 -1
  202. package/dist/index.cjs542.js +1 -1
  203. package/dist/index.cjs542.js.map +1 -1
  204. package/dist/index.cjs543.js +1 -1
  205. package/dist/index.cjs543.js.map +1 -1
  206. package/dist/index.cjs544.js +1 -1
  207. package/dist/index.cjs544.js.map +1 -1
  208. package/dist/index.cjs545.js +1 -1
  209. package/dist/index.cjs545.js.map +1 -1
  210. package/dist/index.cjs546.js +1 -1
  211. package/dist/index.cjs546.js.map +1 -1
  212. package/dist/index.cjs547.js +1 -1
  213. package/dist/index.cjs547.js.map +1 -1
  214. package/dist/index.cjs548.js +1 -1
  215. package/dist/index.cjs548.js.map +1 -1
  216. package/dist/index.cjs549.js +1 -1
  217. package/dist/index.cjs549.js.map +1 -1
  218. package/dist/index.cjs550.js +1 -1
  219. package/dist/index.cjs550.js.map +1 -1
  220. package/dist/index.cjs551.js +1 -1
  221. package/dist/index.cjs551.js.map +1 -1
  222. package/dist/index.cjs552.js +1 -1
  223. package/dist/index.cjs552.js.map +1 -1
  224. package/dist/index.cjs553.js +1 -1
  225. package/dist/index.cjs553.js.map +1 -1
  226. package/dist/index.cjs554.js +1 -1
  227. package/dist/index.cjs554.js.map +1 -1
  228. package/dist/index.cjs555.js +1 -1
  229. package/dist/index.cjs555.js.map +1 -1
  230. package/dist/index.cjs556.js +1 -1
  231. package/dist/index.cjs556.js.map +1 -1
  232. package/dist/index.cjs557.js +1 -1
  233. package/dist/index.cjs557.js.map +1 -1
  234. package/dist/index.cjs558.js +1 -1
  235. package/dist/index.cjs558.js.map +1 -1
  236. package/dist/index.cjs559.js +1 -1
  237. package/dist/index.cjs559.js.map +1 -1
  238. package/dist/index.cjs560.js +1 -1
  239. package/dist/index.cjs560.js.map +1 -1
  240. package/dist/index.cjs561.js +1 -1
  241. package/dist/index.cjs561.js.map +1 -1
  242. package/dist/index.cjs562.js +1 -1
  243. package/dist/index.cjs562.js.map +1 -1
  244. package/dist/index.cjs563.js +1 -5
  245. package/dist/index.cjs563.js.map +1 -1
  246. package/dist/index.cjs564.js +1 -1
  247. package/dist/index.cjs564.js.map +1 -1
  248. package/dist/index.cjs565.js +1 -1
  249. package/dist/index.cjs565.js.map +1 -1
  250. package/dist/index.cjs566.js +1 -1
  251. package/dist/index.cjs566.js.map +1 -1
  252. package/dist/index.cjs567.js +5 -1
  253. package/dist/index.cjs567.js.map +1 -1
  254. package/dist/index.cjs568.js +1 -1
  255. package/dist/index.cjs568.js.map +1 -1
  256. package/dist/index.cjs569.js +1 -1
  257. package/dist/index.cjs569.js.map +1 -1
  258. package/dist/index.cjs571.js +1 -1
  259. package/dist/index.cjs571.js.map +1 -1
  260. package/dist/index.cjs572.js +1 -1
  261. package/dist/index.cjs572.js.map +1 -1
  262. package/dist/index.cjs573.js +1 -1
  263. package/dist/index.cjs573.js.map +1 -1
  264. package/dist/index.cjs574.js +1 -1
  265. package/dist/index.cjs574.js.map +1 -1
  266. package/dist/index.cjs575.js +1 -1
  267. package/dist/index.cjs575.js.map +1 -1
  268. package/dist/index.cjs576.js +2 -0
  269. package/dist/index.cjs576.js.map +1 -0
  270. package/dist/index.cjs577.js +2 -0
  271. package/dist/index.cjs577.js.map +1 -0
  272. package/dist/index.cjs578.js +2 -0
  273. package/dist/index.cjs578.js.map +1 -0
  274. package/dist/index.cjs579.js +2 -0
  275. package/dist/index.cjs579.js.map +1 -0
  276. package/dist/{index.cjs587.js → index.cjs580.js} +1 -1
  277. package/dist/{index.cjs587.js.map → index.cjs580.js.map} +1 -1
  278. package/dist/index.cjs581.js +1 -1
  279. package/dist/index.cjs581.js.map +1 -1
  280. package/dist/index.cjs582.js +1 -1
  281. package/dist/index.cjs582.js.map +1 -1
  282. package/dist/index.cjs585.js +1 -1
  283. package/dist/index.cjs585.js.map +1 -1
  284. package/dist/index.cjs586.js +1 -1
  285. package/dist/index.cjs586.js.map +1 -1
  286. package/dist/index.cjs6.js +1 -1
  287. package/dist/index.cjs64.js +1 -1
  288. package/dist/index.cjs7.js +1 -1
  289. package/dist/index.cjs8.js +1 -1
  290. package/dist/index.cjs9.js +1 -1
  291. package/dist/index.es10.js +2 -2
  292. package/dist/index.es156.js +1 -1
  293. package/dist/index.es157.js +1 -1
  294. package/dist/index.es158.js +1 -1
  295. package/dist/index.es159.js +1 -1
  296. package/dist/index.es160.js +1 -1
  297. package/dist/index.es161.js +1 -1
  298. package/dist/index.es162.js +1 -1
  299. package/dist/index.es163.js +1 -1
  300. package/dist/index.es164.js +1 -1
  301. package/dist/index.es165.js +1 -1
  302. package/dist/index.es166.js +1 -1
  303. package/dist/index.es167.js +1 -1
  304. package/dist/index.es168.js +1 -1
  305. package/dist/index.es169.js +1 -1
  306. package/dist/index.es170.js +1 -1
  307. package/dist/index.es171.js +1 -1
  308. package/dist/index.es172.js +1 -1
  309. package/dist/index.es173.js +1 -1
  310. package/dist/index.es174.js +1 -1
  311. package/dist/index.es175.js +1 -1
  312. package/dist/index.es176.js +1 -1
  313. package/dist/index.es177.js +1 -1
  314. package/dist/index.es178.js +1 -1
  315. package/dist/index.es182.js +1 -1
  316. package/dist/index.es183.js +1 -1
  317. package/dist/index.es184.js +1 -1
  318. package/dist/index.es186.js +1 -1
  319. package/dist/index.es187.js +1 -1
  320. package/dist/index.es188.js +1 -1
  321. package/dist/index.es189.js +1 -1
  322. package/dist/index.es190.js +1 -1
  323. package/dist/index.es191.js +1 -1
  324. package/dist/index.es192.js +1 -1
  325. package/dist/index.es193.js +1 -1
  326. package/dist/index.es194.js +1 -1
  327. package/dist/index.es196.js +1 -1
  328. package/dist/index.es197.js +1 -1
  329. package/dist/index.es198.js +1 -1
  330. package/dist/index.es199.js +1 -1
  331. package/dist/index.es200.js +1 -1
  332. package/dist/index.es201.js +1 -1
  333. package/dist/index.es202.js +1 -1
  334. package/dist/index.es205.js +1 -1
  335. package/dist/index.es206.js +1 -1
  336. package/dist/index.es207.js +1 -1
  337. package/dist/index.es208.js +1 -1
  338. package/dist/index.es209.js +1 -1
  339. package/dist/index.es210.js +1 -1
  340. package/dist/index.es211.js +1 -1
  341. package/dist/index.es212.js +1 -1
  342. package/dist/index.es213.js +1 -1
  343. package/dist/index.es214.js +1 -1
  344. package/dist/index.es220.js +1 -1
  345. package/dist/index.es222.js +1 -1
  346. package/dist/index.es223.js +1 -1
  347. package/dist/index.es24.js +1 -1
  348. package/dist/index.es261.js +2 -2
  349. package/dist/index.es262.js +3 -3
  350. package/dist/index.es263.js +3 -3
  351. package/dist/index.es273.js +2 -27
  352. package/dist/index.es273.js.map +1 -1
  353. package/dist/index.es274.js +30 -0
  354. package/dist/index.es274.js.map +1 -0
  355. package/dist/index.es28.js +1 -1
  356. package/dist/index.es283.js +1 -1
  357. package/dist/index.es292.js +7 -7
  358. package/dist/index.es295.js +1 -1
  359. package/dist/index.es297.js +1 -1
  360. package/dist/index.es305.js +8 -8
  361. package/dist/index.es316.js +1 -1
  362. package/dist/index.es321.js +1 -1
  363. package/dist/index.es323.js +14 -14
  364. package/dist/index.es352.js +1 -1
  365. package/dist/index.es353.js +1 -1
  366. package/dist/index.es354.js +7 -7
  367. package/dist/index.es372.js +6 -6
  368. package/dist/index.es373.js +2 -2
  369. package/dist/index.es395.js +4 -4
  370. package/dist/index.es401.js +1 -1
  371. package/dist/index.es413.js +8 -8
  372. package/dist/index.es453.js +1 -1
  373. package/dist/index.es454.js +1 -1
  374. package/dist/index.es460.js +2 -2
  375. package/dist/index.es463.js +5 -0
  376. package/dist/index.es463.js.map +1 -0
  377. package/dist/index.es464.js +2 -27
  378. package/dist/index.es464.js.map +1 -1
  379. package/dist/index.es465.js +8 -66
  380. package/dist/index.es465.js.map +1 -1
  381. package/dist/index.es466.js +176 -5
  382. package/dist/index.es466.js.map +1 -1
  383. package/dist/index.es467.js +3 -29
  384. package/dist/index.es467.js.map +1 -1
  385. package/dist/index.es468.js +132 -5
  386. package/dist/index.es468.js.map +1 -1
  387. package/dist/index.es469.js +6 -24
  388. package/dist/index.es469.js.map +1 -1
  389. package/dist/index.es470.js +21 -63
  390. package/dist/index.es470.js.map +1 -1
  391. package/dist/index.es471.js +67 -32
  392. package/dist/index.es471.js.map +1 -1
  393. package/dist/index.es472.js +27 -619
  394. package/dist/index.es472.js.map +1 -1
  395. package/dist/index.es473.js +32 -10
  396. package/dist/index.es473.js.map +1 -1
  397. package/dist/index.es474.js +620 -13
  398. package/dist/index.es474.js.map +1 -1
  399. package/dist/index.es475.js +14 -0
  400. package/dist/index.es475.js.map +1 -0
  401. package/dist/index.es477.js +11 -2
  402. package/dist/index.es477.js.map +1 -1
  403. package/dist/index.es478.js +56 -2
  404. package/dist/index.es478.js.map +1 -1
  405. package/dist/index.es479.js +44 -13
  406. package/dist/index.es479.js.map +1 -1
  407. package/dist/index.es480.js +13 -9
  408. package/dist/index.es480.js.map +1 -1
  409. package/dist/index.es481.js +118 -171
  410. package/dist/index.es481.js.map +1 -1
  411. package/dist/index.es482.js +14 -3
  412. package/dist/index.es482.js.map +1 -1
  413. package/dist/index.es483.js +127 -125
  414. package/dist/index.es483.js.map +1 -1
  415. package/dist/index.es484.js +206 -113
  416. package/dist/index.es484.js.map +1 -1
  417. package/dist/index.es485.js +13 -134
  418. package/dist/index.es485.js.map +1 -1
  419. package/dist/index.es486.js +69 -14
  420. package/dist/index.es486.js.map +1 -1
  421. package/dist/index.es487.js +176 -13
  422. package/dist/index.es487.js.map +1 -1
  423. package/dist/index.es488.js +50 -9
  424. package/dist/index.es488.js.map +1 -1
  425. package/dist/index.es489.js +9 -50
  426. package/dist/index.es489.js.map +1 -1
  427. package/dist/index.es490.js +4 -56
  428. package/dist/index.es490.js.map +1 -1
  429. package/dist/index.es491.js +18 -0
  430. package/dist/index.es491.js.map +1 -0
  431. package/dist/index.es494.js +15 -0
  432. package/dist/index.es494.js.map +1 -0
  433. package/dist/index.es495.js +208 -0
  434. package/dist/index.es495.js.map +1 -0
  435. package/dist/{index.es517.js → index.es496.js} +2 -2
  436. package/dist/{index.es517.js.map → index.es496.js.map} +1 -1
  437. package/dist/index.es497.js +28 -0
  438. package/dist/index.es497.js.map +1 -0
  439. package/dist/{index.es518.js → index.es498.js} +4 -4
  440. package/dist/{index.es518.js.map → index.es498.js.map} +1 -1
  441. package/dist/index.es499.js +9 -0
  442. package/dist/index.es499.js.map +1 -0
  443. package/dist/{index.es519.js → index.es500.js} +1 -1
  444. package/dist/{index.es519.js.map → index.es500.js.map} +1 -1
  445. package/dist/index.es501.js +29 -11
  446. package/dist/index.es501.js.map +1 -1
  447. package/dist/index.es502.js +5 -4
  448. package/dist/index.es502.js.map +1 -1
  449. package/dist/index.es503.js +5 -46
  450. package/dist/index.es503.js.map +1 -1
  451. package/dist/index.es504.js +3 -14
  452. package/dist/index.es504.js.map +1 -1
  453. package/dist/index.es505.js +23 -217
  454. package/dist/index.es505.js.map +1 -1
  455. package/dist/index.es506.js +106 -174
  456. package/dist/index.es506.js.map +1 -1
  457. package/dist/index.es507.js +19 -0
  458. package/dist/index.es507.js.map +1 -0
  459. package/dist/{index.es527.js → index.es508.js} +2 -2
  460. package/dist/{index.es527.js.map → index.es508.js.map} +1 -1
  461. package/dist/{index.es528.js → index.es509.js} +1 -1
  462. package/dist/{index.es528.js.map → index.es509.js.map} +1 -1
  463. package/dist/{index.es529.js → index.es510.js} +1 -1
  464. package/dist/{index.es529.js.map → index.es510.js.map} +1 -1
  465. package/dist/index.es511.js +18 -0
  466. package/dist/index.es511.js.map +1 -0
  467. package/dist/{index.es530.js → index.es512.js} +4 -4
  468. package/dist/{index.es530.js.map → index.es512.js.map} +1 -1
  469. package/dist/{index.es531.js → index.es513.js} +2 -2
  470. package/dist/{index.es531.js.map → index.es513.js.map} +1 -1
  471. package/dist/{index.es532.js → index.es514.js} +1 -1
  472. package/dist/{index.es532.js.map → index.es514.js.map} +1 -1
  473. package/dist/index.es515.js +62 -12
  474. package/dist/index.es515.js.map +1 -1
  475. package/dist/index.es516.js +60 -200
  476. package/dist/index.es516.js.map +1 -1
  477. package/dist/index.es525.js +3 -109
  478. package/dist/index.es525.js.map +1 -1
  479. package/dist/index.es526.js +22 -15
  480. package/dist/index.es526.js.map +1 -1
  481. package/dist/index.es537.js +23 -13
  482. package/dist/index.es537.js.map +1 -1
  483. package/dist/index.es538.js +13 -36
  484. package/dist/index.es538.js.map +1 -1
  485. package/dist/index.es539.js +28 -5
  486. package/dist/index.es539.js.map +1 -1
  487. package/dist/index.es540.js +5 -2
  488. package/dist/index.es540.js.map +1 -1
  489. package/dist/index.es541.js +5 -3
  490. package/dist/index.es541.js.map +1 -1
  491. package/dist/index.es542.js +16 -7
  492. package/dist/index.es542.js.map +1 -1
  493. package/dist/index.es543.js +12 -5
  494. package/dist/index.es543.js.map +1 -1
  495. package/dist/index.es544.js +36 -5
  496. package/dist/index.es544.js.map +1 -1
  497. package/dist/index.es545.js +5 -32
  498. package/dist/index.es545.js.map +1 -1
  499. package/dist/index.es546.js +2 -242
  500. package/dist/index.es546.js.map +1 -1
  501. package/dist/index.es547.js +3 -4
  502. package/dist/index.es547.js.map +1 -1
  503. package/dist/index.es548.js +6 -4
  504. package/dist/index.es548.js.map +1 -1
  505. package/dist/index.es549.js +6 -10
  506. package/dist/index.es549.js.map +1 -1
  507. package/dist/index.es550.js +5 -56
  508. package/dist/index.es550.js.map +1 -1
  509. package/dist/index.es551.js +32 -8
  510. package/dist/index.es551.js.map +1 -1
  511. package/dist/index.es552.js +241 -5
  512. package/dist/index.es552.js.map +1 -1
  513. package/dist/index.es553.js +4 -533
  514. package/dist/index.es553.js.map +1 -1
  515. package/dist/index.es554.js +5 -14
  516. package/dist/index.es554.js.map +1 -1
  517. package/dist/index.es555.js +10 -2
  518. package/dist/index.es555.js.map +1 -1
  519. package/dist/index.es556.js +54 -35
  520. package/dist/index.es556.js.map +1 -1
  521. package/dist/index.es557.js +8 -2
  522. package/dist/index.es557.js.map +1 -1
  523. package/dist/index.es558.js +5 -272
  524. package/dist/index.es558.js.map +1 -1
  525. package/dist/index.es559.js +533 -3
  526. package/dist/index.es559.js.map +1 -1
  527. package/dist/index.es560.js +14 -30
  528. package/dist/index.es560.js.map +1 -1
  529. package/dist/index.es561.js +2 -4
  530. package/dist/index.es561.js.map +1 -1
  531. package/dist/index.es562.js +36 -22
  532. package/dist/index.es562.js.map +1 -1
  533. package/dist/index.es563.js +2 -40
  534. package/dist/index.es563.js.map +1 -1
  535. package/dist/index.es564.js +273 -2
  536. package/dist/index.es564.js.map +1 -1
  537. package/dist/index.es565.js +3 -5
  538. package/dist/index.es565.js.map +1 -1
  539. package/dist/index.es566.js +30 -2
  540. package/dist/index.es566.js.map +1 -1
  541. package/dist/index.es567.js +40 -2
  542. package/dist/index.es567.js.map +1 -1
  543. package/dist/index.es568.js +2 -2
  544. package/dist/index.es568.js.map +1 -1
  545. package/dist/index.es569.js +5 -6
  546. package/dist/index.es569.js.map +1 -1
  547. package/dist/index.es571.js +2 -2
  548. package/dist/index.es571.js.map +1 -1
  549. package/dist/index.es572.js +2 -2
  550. package/dist/index.es572.js.map +1 -1
  551. package/dist/index.es573.js +2 -3
  552. package/dist/index.es573.js.map +1 -1
  553. package/dist/index.es574.js +6 -2
  554. package/dist/index.es574.js.map +1 -1
  555. package/dist/index.es575.js +2 -4
  556. package/dist/index.es575.js.map +1 -1
  557. package/dist/index.es576.js +5 -0
  558. package/dist/index.es576.js.map +1 -0
  559. package/dist/index.es577.js +6 -0
  560. package/dist/index.es577.js.map +1 -0
  561. package/dist/index.es578.js +5 -0
  562. package/dist/index.es578.js.map +1 -0
  563. package/dist/index.es579.js +7 -0
  564. package/dist/index.es579.js.map +1 -0
  565. package/dist/{index.es587.js → index.es580.js} +1 -1
  566. package/dist/{index.es587.js.map → index.es580.js.map} +1 -1
  567. package/dist/index.es581.js +3 -74
  568. package/dist/index.es581.js.map +1 -1
  569. package/dist/index.es582.js +2 -2
  570. package/dist/index.es582.js.map +1 -1
  571. package/dist/index.es585.js +73 -27
  572. package/dist/index.es585.js.map +1 -1
  573. package/dist/index.es586.js +2 -5
  574. package/dist/index.es586.js.map +1 -1
  575. package/dist/index.es6.js +1 -1
  576. package/dist/index.es64.js +1 -1
  577. package/dist/index.es7.js +1 -1
  578. package/dist/index.es8.js +1 -1
  579. package/dist/index.es9.js +2 -2
  580. package/package.json +1 -1
  581. package/dist/index.cjs275.js +0 -2
  582. package/dist/index.cjs275.js.map +0 -1
  583. package/dist/index.cjs520.js +0 -2
  584. package/dist/index.cjs520.js.map +0 -1
  585. package/dist/index.cjs521.js +0 -2
  586. package/dist/index.cjs521.js.map +0 -1
  587. package/dist/index.cjs522.js +0 -2
  588. package/dist/index.cjs522.js.map +0 -1
  589. package/dist/index.cjs523.js +0 -2
  590. package/dist/index.cjs523.js.map +0 -1
  591. package/dist/index.cjs524.js +0 -2
  592. package/dist/index.cjs524.js.map +0 -1
  593. package/dist/index.cjs533.js +0 -2
  594. package/dist/index.cjs533.js.map +0 -1
  595. package/dist/index.cjs534.js +0 -2
  596. package/dist/index.cjs534.js.map +0 -1
  597. package/dist/index.cjs535.js +0 -2
  598. package/dist/index.cjs535.js.map +0 -1
  599. package/dist/index.cjs536.js +0 -2
  600. package/dist/index.cjs536.js.map +0 -1
  601. package/dist/index.cjs583.js +0 -2
  602. package/dist/index.cjs583.js.map +0 -1
  603. package/dist/index.cjs584.js +0 -2
  604. package/dist/index.cjs584.js.map +0 -1
  605. package/dist/index.cjs588.js +0 -2
  606. package/dist/index.cjs588.js.map +0 -1
  607. package/dist/index.cjs589.js +0 -2
  608. package/dist/index.cjs589.js.map +0 -1
  609. package/dist/index.es275.js +0 -5
  610. package/dist/index.es275.js.map +0 -1
  611. package/dist/index.es520.js +0 -32
  612. package/dist/index.es520.js.map +0 -1
  613. package/dist/index.es521.js +0 -8
  614. package/dist/index.es521.js.map +0 -1
  615. package/dist/index.es522.js +0 -8
  616. package/dist/index.es522.js.map +0 -1
  617. package/dist/index.es523.js +0 -6
  618. package/dist/index.es523.js.map +0 -1
  619. package/dist/index.es524.js +0 -27
  620. package/dist/index.es524.js.map +0 -1
  621. package/dist/index.es533.js +0 -65
  622. package/dist/index.es533.js.map +0 -1
  623. package/dist/index.es534.js +0 -68
  624. package/dist/index.es534.js.map +0 -1
  625. package/dist/index.es535.js +0 -8
  626. package/dist/index.es535.js.map +0 -1
  627. package/dist/index.es536.js +0 -19
  628. package/dist/index.es536.js.map +0 -1
  629. package/dist/index.es583.js +0 -26
  630. package/dist/index.es583.js.map +0 -1
  631. package/dist/index.es584.js +0 -16
  632. package/dist/index.es584.js.map +0 -1
  633. package/dist/index.es588.js +0 -6
  634. package/dist/index.es588.js.map +0 -1
  635. package/dist/index.es589.js +0 -5
  636. package/dist/index.es589.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es511.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,IACR,SAAQC,GAAO;AACd,qBAAQ,KAAK,eAAeA,CAAK,GACjCL,EAAc,IAAI,GACX;AAAA,IACb;AAAA,EACG,GAAE,EAAE;AACL,SAAO,CAACD,GAAYG,CAAI;AAC1B;","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
1
  import * as d from "react";
2
- import { styleSingleton as f } from "./index.es531.js";
3
- import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.es522.js";
4
- import { getGapWidth as m } from "./index.es583.js";
2
+ import { styleSingleton as f } from "./index.es513.js";
3
+ import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.es503.js";
4
+ import { getGapWidth as m } from "./index.es537.js";
5
5
  var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
6
6
  var r = n.left, i = n.top, s = n.right, c = n.gap;
7
7
  return o === void 0 && (o = "margin"), `
@@ -69,4 +69,4 @@ export {
69
69
  e as lockAttribute,
70
70
  x as useLockAttribute
71
71
  };
72
- //# sourceMappingURL=index.es530.js.map
72
+ //# sourceMappingURL=index.es512.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es530.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":";;;;AAIA,IAAIA,IAAQC,EAAgB,GACjBC,IAAgB,sBAIvBC,IAAY,SAAUC,GAAIC,GAAeC,GAASC,GAAW;AAC7D,MAAIC,IAAOJ,EAAG,MAAMK,IAAML,EAAG,KAAKM,IAAQN,EAAG,OAAOO,IAAMP,EAAG;AAC7D,SAAIE,MAAY,WAAUA,IAAU,WAC7B;AAAA,KAAQ,OAAOM,GAAuB;AAAA,qBAA0B,EAAE,OAAOL,GAAW;AAAA,mBAAuB,EAAE,OAAOI,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA,QAAiB,EAAE,OAAOL,GAAe;AAAA,sBAA4B,EAAE,OAAOK,GAAW;AAAA;AAAA,KAA4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AAC1C,MAAII,KAAc,IACd,SAAS,KAAK,gBAAgBlB,CAAa,IAG3C,SAAS,KAAK,aAAaA,GAAekB,EAAW,SAAQ,CAAE;AAAA,IAEtE;AAAA,EACJ,GAAE,EAAE;AACT,GAIWC,IAAkB,SAAUjB,GAAI;AACvC,MAAIkB,IAAalB,EAAG,YAAYmB,IAAcnB,EAAG,aAAaoB,IAAKpB,EAAG,SAASE,IAAUkB,MAAO,SAAS,WAAWA;AACpH,EAAAN,EAAkB;AAMlB,MAAIP,IAAMQ,EAAM,QAAQ,WAAY;AAAE,WAAOM,EAAYnB,CAAO;AAAA,EAAE,GAAI,CAACA,CAAO,CAAC;AAC/E,SAAOa,EAAM,cAAcnB,GAAO,EAAE,QAAQG,EAAUQ,GAAK,CAACW,GAAYhB,GAAUiB,IAA6B,KAAf,YAAiB,EAAC,CAAE;AACxH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es512.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":";;;;AAIA,IAAIA,IAAQC,EAAgB,GACjBC,IAAgB,sBAIvBC,IAAY,SAAUC,GAAIC,GAAeC,GAASC,GAAW;AAC7D,MAAIC,IAAOJ,EAAG,MAAMK,IAAML,EAAG,KAAKM,IAAQN,EAAG,OAAOO,IAAMP,EAAG;AAC7D,SAAIE,MAAY,WAAUA,IAAU,WAC7B;AAAA,KAAQ,OAAOM,GAAuB;AAAA,qBAA0B,EAAE,OAAOL,GAAW;AAAA,mBAAuB,EAAE,OAAOI,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA,QAAiB,EAAE,OAAOL,GAAe;AAAA,sBAA4B,EAAE,OAAOK,GAAW;AAAA;AAAA,KAA4C,EAAE,OAAO;AAAA,IACnSF,KAAiB,sBAAsB,OAAOE,GAAW,GAAG;AAAA,IAC5DD,MAAY,YACR;AAAA,oBAAuB,OAAOE,GAAM;AAAA,kBAAwB,EAAE,OAAOC,GAAK;AAAA,oBAA0B,EAAE,OAAOC,GAAO;AAAA;AAAA;AAAA,mBAAgE,EAAE,OAAOC,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA,KAAS;AAAA,IACxOD,MAAY,aAAa,kBAAkB,OAAOK,GAAK,KAAK,EAAE,OAAOJ,GAAW,GAAG;AAAA,EAC3F,EACS,OAAO,OAAO,EACd,KAAK,EAAE,GAAG;AAAA;AAAA;AAAA,IAAgB,EAAE,OAAOM,GAAoB;AAAA,YAAiB,EAAE,OAAOF,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB;AAAA,mBAAwB,EAAE,OAAOH,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOM,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,cAAmB,EAAE,OAAON,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,qBAA0B,EAAE,OAAOP,GAAW;AAAA;AAAA;AAAA,QAAqB,EAAE,OAAOL,GAAe;AAAA,KAAW,EAAE,OAAOa,GAAwB,IAAI,EAAE,OAAOJ,GAAK;AAAA;AAAA,CAAY;AAC/kB,GACIK,IAAuB,WAAY;AACnC,MAAIC,IAAU,SAAS,SAAS,KAAK,aAAaf,CAAa,KAAK,KAAK,EAAE;AAC3E,SAAO,SAASe,CAAO,IAAIA,IAAU;AACzC,GACWC,IAAmB,WAAY;AACtC,EAAAC,EAAM,UAAU,WAAY;AACxB,oBAAS,KAAK,aAAajB,IAAgBc,MAAyB,GAAG,UAAU,GAC1E,WAAY;AACf,UAAII,IAAaJ,EAAoB,IAAK;AAC1C,MAAII,KAAc,IACd,SAAS,KAAK,gBAAgBlB,CAAa,IAG3C,SAAS,KAAK,aAAaA,GAAekB,EAAW,SAAQ,CAAE;AAAA,IAEtE;AAAA,EACJ,GAAE,EAAE;AACT,GAIWC,IAAkB,SAAUjB,GAAI;AACvC,MAAIkB,IAAalB,EAAG,YAAYmB,IAAcnB,EAAG,aAAaoB,IAAKpB,EAAG,SAASE,IAAUkB,MAAO,SAAS,WAAWA;AACpH,EAAAN,EAAkB;AAMlB,MAAIP,IAAMQ,EAAM,QAAQ,WAAY;AAAE,WAAOM,EAAYnB,CAAO;AAAA,EAAE,GAAI,CAACA,CAAO,CAAC;AAC/E,SAAOa,EAAM,cAAcnB,GAAO,EAAE,QAAQG,EAAUQ,GAAK,CAACW,GAAYhB,GAAUiB,IAA6B,KAAf,YAAiB,EAAC,CAAE;AACxH;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { styleHookSingleton as o } from "./index.es584.js";
1
+ import { styleHookSingleton as o } from "./index.es538.js";
2
2
  var s = function() {
3
3
  var e = o(), n = function(t) {
4
4
  var r = t.styles, l = t.dynamic;
@@ -9,4 +9,4 @@ var s = function() {
9
9
  export {
10
10
  s as styleSingleton
11
11
  };
12
- //# sourceMappingURL=index.es531.js.map
12
+ //# sourceMappingURL=index.es513.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es531.js","sources":["../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":";AAOU,IAACA,IAAiB,WAAY;AACpC,MAAIC,IAAWC,EAAoB,GAC/BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACV;AACD,SAAOH;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es513.js","sources":["../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":";AAOU,IAACA,IAAiB,WAAY;AACpC,MAAIC,IAAWC,EAAoB,GAC/BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACV;AACD,SAAOH;AACX;","x_google_ignoreList":[0]}
@@ -14,4 +14,4 @@ var a = r ? { passive: !1 } : !1;
14
14
  export {
15
15
  a as nonPassive
16
16
  };
17
- //# sourceMappingURL=index.es532.js.map
17
+ //# sourceMappingURL=index.es514.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es532.js","sources":["../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"AAAA,IAAIA,IAAmB;AACvB,IAAI,OAAO,SAAW;AAClB,MAAI;AACA,QAAIC,IAAU,OAAO,eAAe,CAAA,GAAI,WAAW;AAAA,MAC/C,KAAK,WAAY;AACb,eAAAD,IAAmB,IACZ;AAAA,MACV;AAAA,IACb,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EAC3D,QACgB;AACR,IAAAD,IAAmB;AAAA,EAC3B;AAEU,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es514.js","sources":["../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"AAAA,IAAIA,IAAmB;AACvB,IAAI,OAAO,SAAW;AAClB,MAAI;AACA,QAAIC,IAAU,OAAO,eAAe,CAAA,GAAI,WAAW;AAAA,MAC/C,KAAK,WAAY;AACb,eAAAD,IAAmB,IACZ;AAAA,MACV;AAAA,IACb,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EAC3D,QACgB;AACR,IAAAD,IAAmB;AAAA,EAC3B;AAEU,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
@@ -1,15 +1,65 @@
1
- import * as r from "react";
2
- import { useCallbackRef as s } from "./index.es501.js";
3
- function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
- const t = s(n);
5
- r.useEffect(() => {
6
- const o = (a) => {
7
- a.key === "Escape" && t(a);
8
- };
9
- return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
10
- }, [t, e]);
11
- }
1
+ var p = function(e) {
2
+ return e.tagName === "TEXTAREA";
3
+ }, w = function(e, r) {
4
+ if (!(e instanceof Element))
5
+ return !1;
6
+ var o = window.getComputedStyle(e);
7
+ return (
8
+ // not-not-scrollable
9
+ o[r] !== "hidden" && // contains scroll inside self
10
+ !(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
11
+ );
12
+ }, y = function(e) {
13
+ return w(e, "overflowY");
14
+ }, H = function(e) {
15
+ return w(e, "overflowX");
16
+ }, R = function(e, r) {
17
+ var o = r.ownerDocument, t = r;
18
+ do {
19
+ typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
20
+ var v = g(e, t);
21
+ if (v) {
22
+ var n = b(e, t), a = n[1], l = n[2];
23
+ if (a > l)
24
+ return !0;
25
+ }
26
+ t = t.parentNode;
27
+ } while (t && t !== o.body);
28
+ return !1;
29
+ }, B = function(e) {
30
+ var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
31
+ return [
32
+ r,
33
+ o,
34
+ t
35
+ ];
36
+ }, V = function(e) {
37
+ var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
38
+ return [
39
+ r,
40
+ o,
41
+ t
42
+ ];
43
+ }, g = function(e, r) {
44
+ return e === "v" ? y(r) : H(r);
45
+ }, b = function(e, r) {
46
+ return e === "v" ? B(r) : V(r);
47
+ }, D = function(e, r) {
48
+ return e === "h" && r === "rtl" ? -1 : 1;
49
+ }, W = function(e, r, o, t, v) {
50
+ var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
51
+ do {
52
+ var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
53
+ (u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
54
+ } while (
55
+ // portaled content
56
+ !f && l !== document.body || // self content
57
+ f && (r.contains(l) || r === l)
58
+ );
59
+ return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
60
+ };
12
61
  export {
13
- p as useEscapeKeydown
62
+ W as handleScroll,
63
+ R as locationCouldBeScrolled
14
64
  };
15
65
  //# sourceMappingURL=index.es515.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es515.js","sources":["../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":";;AAGA,SAASA,EAAiBC,GAAqBC,IAAgB,yCAAY,UAAU;AACnF,QAAMC,IAAkBC,EAAeH,CAAmB;AAC1D,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAgB,CAACC,MAAU;AAC/B,MAAIA,EAAM,QAAQ,YAChBJ,EAAgBI,CAAK;AAAA,IAExB;AACD,WAAAL,EAAc,iBAAiB,WAAWI,GAAe,EAAE,SAAS,IAAM,GACnE,MAAMJ,EAAc,oBAAoB,WAAWI,GAAe,EAAE,SAAS,IAAM;AAAA,EAC9F,GAAK,CAACH,GAAiBD,CAAa,CAAC;AACrC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es515.js","sources":["../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll"],"mappings":"AAAA,IAAIA,IAAuB,SAAUC,GAAM;AAEvC,SAAOA,EAAK,YAAY;AAC5B,GACIC,IAAuB,SAAUD,GAAME,GAAU;AACjD,MAAI,EAAEF,aAAgB;AAClB,WAAO;AAEX,MAAIG,IAAS,OAAO,iBAAiBH,CAAI;AACzC;AAAA;AAAA,IAEAG,EAAOD,CAAQ,MAAM;AAAA,IAEjB,EAAEC,EAAO,cAAcA,EAAO,aAAa,CAACJ,EAAqBC,CAAI,KAAKG,EAAOD,CAAQ,MAAM;AAAA;AACvG,GACIE,IAA0B,SAAUJ,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GAC7FK,IAA0B,SAAUL,GAAM;AAAE,SA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D,IAAkBF,GAE1BI,IAASL,EAAM,QACfM,IAAeP,EAAU,SAASM,CAAM,GACxCE,IAAqB,IACrBC,IAAkBJ,IAAQ,GAC1BK,IAAkB,GAClBC,IAAqB;AACzB,KAAG;AACC,QAAIxB,IAAKC,EAAmBN,GAAMwB,CAAM,GAAGM,IAAWzB,EAAG,CAAC,GAAG0B,IAAW1B,EAAG,CAAC,GAAG2B,IAAW3B,EAAG,CAAC,GAC1F4B,IAAgBF,IAAWC,IAAWV,IAAkBQ;AAC5D,KAAIA,KAAYG,MACR7B,EAAuBJ,GAAMwB,CAAM,MACnCI,KAAmBK,GACnBJ,KAAsBC,IAG1BN,aAAkB,aAClBA,IAASA,EAAO,OAGhBA,IAASA,EAAO;AAAA,EAEvB;AAAA;AAAA,IAEA,CAACC,KAAgBD,MAAW,SAAS;AAAA,IAEjCC,MAAiBP,EAAU,SAASM,CAAM,KAAKN,MAAcM;AAAA;AAElE,UAAIG,KACkB,KAAK,IAAIC,CAAe,IAAI,KAGzC,CAACD,KACY,KAAK,IAAIE,CAAkB,IAAI,OACjDH,IAAqB,KAElBA;AACX;","x_google_ignoreList":[0]}
@@ -1,208 +1,68 @@
1
- import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as L } from "./index.es518.js";
2
- import { autoUpdate as me, platform as pe } from "./index.es518.js";
3
- import * as f from "react";
4
- import { useLayoutEffect as Y, useEffect as Z } from "react";
5
- import * as b from "react-dom";
6
- var w = typeof document < "u" ? Y : Z;
7
- function R(e, t) {
8
- if (e === t)
9
- return !0;
10
- if (typeof e != typeof t)
11
- return !1;
12
- if (typeof e == "function" && e.toString() === t.toString())
13
- return !0;
14
- let n, r, s;
15
- if (e && t && typeof e == "object") {
16
- if (Array.isArray(e)) {
17
- if (n = e.length, n !== t.length) return !1;
18
- for (r = n; r-- !== 0; )
19
- if (!R(e[r], t[r]))
20
- return !1;
21
- return !0;
22
- }
23
- if (s = Object.keys(e), n = s.length, n !== Object.keys(t).length)
24
- return !1;
25
- for (r = n; r-- !== 0; )
26
- if (!{}.hasOwnProperty.call(t, s[r]))
27
- return !1;
28
- for (r = n; r-- !== 0; ) {
29
- const p = s[r];
30
- if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
31
- return !1;
32
- }
33
- return !0;
34
- }
35
- return e !== e && t !== t;
36
- }
37
- function A(e) {
38
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
39
- }
40
- function v(e, t) {
41
- const n = A(e);
42
- return Math.round(t * n) / n;
1
+ import { __assign as d } from "./index.es500.js";
2
+ function l(r) {
3
+ return r;
43
4
  }
44
- function E(e) {
45
- const t = f.useRef(e);
46
- return w(() => {
47
- t.current = e;
48
- }), t;
49
- }
50
- function re(e) {
51
- e === void 0 && (e = {});
52
- const {
53
- placement: t = "bottom",
54
- strategy: n = "absolute",
55
- middleware: r = [],
56
- platform: s,
57
- elements: {
58
- reference: p,
59
- floating: q
60
- } = {},
61
- transform: k = !0,
62
- whileElementsMounted: D,
63
- open: x
64
- } = e, [i, O] = f.useState({
65
- x: 0,
66
- y: 0,
67
- strategy: n,
68
- placement: t,
69
- middlewareData: {},
70
- isPositioned: !1
71
- }), [M, B] = f.useState(r);
72
- R(M, r) || B(r);
73
- const [U, V] = f.useState(null), [W, G] = f.useState(null), _ = f.useCallback((o) => {
74
- o !== a.current && (a.current = o, V(o));
75
- }, []), C = f.useCallback((o) => {
76
- o !== d.current && (d.current = o, G(o));
77
- }, []), u = p || U, l = q || W, a = f.useRef(null), d = f.useRef(null), y = f.useRef(i), H = D != null, S = E(D), P = E(s), F = E(x), g = f.useCallback(() => {
78
- if (!a.current || !d.current)
79
- return;
80
- const o = {
81
- placement: t,
82
- strategy: n,
83
- middleware: M
84
- };
85
- P.current && (o.platform = P.current), I(a.current, d.current, o).then((h) => {
86
- const m = {
87
- ...h,
88
- // The floating element's position may be recomputed while it's closed
89
- // but still mounted (such as when transitioning out). To ensure
90
- // `isPositioned` will be `false` initially on the next open, avoid
91
- // setting it to `true` when `open === false` (must be specified).
92
- isPositioned: F.current !== !1
5
+ function h(r, t) {
6
+ t === void 0 && (t = l);
7
+ var e = [], o = !1, c = {
8
+ read: function() {
9
+ if (o)
10
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
11
+ return e.length ? e[e.length - 1] : r;
12
+ },
13
+ useMedium: function(u) {
14
+ var n = t(u, o);
15
+ return e.push(n), function() {
16
+ e = e.filter(function(i) {
17
+ return i !== n;
18
+ });
93
19
  };
94
- $.current && !R(y.current, m) && (y.current = m, b.flushSync(() => {
95
- O(m);
96
- }));
97
- });
98
- }, [M, t, n, P, F]);
99
- w(() => {
100
- x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((o) => ({
101
- ...o,
102
- isPositioned: !1
103
- })));
104
- }, [x]);
105
- const $ = f.useRef(!1);
106
- w(() => ($.current = !0, () => {
107
- $.current = !1;
108
- }), []), w(() => {
109
- if (u && (a.current = u), l && (d.current = l), u && l) {
110
- if (S.current)
111
- return S.current(u, l, g);
112
- g();
113
- }
114
- }, [u, l, g, S, H]);
115
- const j = f.useMemo(() => ({
116
- reference: a,
117
- floating: d,
118
- setReference: _,
119
- setFloating: C
120
- }), [_, C]), c = f.useMemo(() => ({
121
- reference: u,
122
- floating: l
123
- }), [u, l]), z = f.useMemo(() => {
124
- const o = {
125
- position: n,
126
- left: 0,
127
- top: 0
128
- };
129
- if (!c.floating)
130
- return o;
131
- const h = v(c.floating, i.x), m = v(c.floating, i.y);
132
- return k ? {
133
- ...o,
134
- transform: "translate(" + h + "px, " + m + "px)",
135
- ...A(c.floating) >= 1.5 && {
136
- willChange: "transform"
20
+ },
21
+ assignSyncMedium: function(u) {
22
+ for (o = !0; e.length; ) {
23
+ var n = e;
24
+ e = [], n.forEach(u);
137
25
  }
138
- } : {
139
- position: n,
140
- left: h,
141
- top: m
142
- };
143
- }, [n, k, c.floating, i.x, i.y]);
144
- return f.useMemo(() => ({
145
- ...i,
146
- update: g,
147
- refs: j,
148
- elements: c,
149
- floatingStyles: z
150
- }), [i, g, j, c, z]);
151
- }
152
- const ee = (e) => {
153
- function t(n) {
154
- return {}.hasOwnProperty.call(n, "current");
155
- }
156
- return {
157
- name: "arrow",
158
- options: e,
159
- fn(n) {
160
- const {
161
- element: r,
162
- padding: s
163
- } = typeof e == "function" ? e(n) : e;
164
- return r && t(r) ? r.current != null ? L({
165
- element: r.current,
166
- padding: s
167
- }).fn(n) : {} : r ? L({
168
- element: r,
169
- padding: s
170
- }).fn(n) : {};
26
+ e = {
27
+ push: function(i) {
28
+ return u(i);
29
+ },
30
+ filter: function() {
31
+ return e;
32
+ }
33
+ };
34
+ },
35
+ assignMedium: function(u) {
36
+ o = !0;
37
+ var n = [];
38
+ if (e.length) {
39
+ var i = e;
40
+ e = [], i.forEach(u), n = e;
41
+ }
42
+ var s = function() {
43
+ var f = n;
44
+ n = [], f.forEach(u);
45
+ }, a = function() {
46
+ return Promise.resolve().then(s);
47
+ };
48
+ a(), e = {
49
+ push: function(f) {
50
+ n.push(f), a();
51
+ },
52
+ filter: function(f) {
53
+ return n = n.filter(f), e;
54
+ }
55
+ };
171
56
  }
172
57
  };
173
- }, fe = (e, t) => ({
174
- ...J(e),
175
- options: [e, t]
176
- }), oe = (e, t) => ({
177
- ...K(e),
178
- options: [e, t]
179
- }), se = (e, t) => ({
180
- ...X(e),
181
- options: [e, t]
182
- }), ie = (e, t) => ({
183
- ...N(e),
184
- options: [e, t]
185
- }), ue = (e, t) => ({
186
- ...Q(e),
187
- options: [e, t]
188
- }), le = (e, t) => ({
189
- ...T(e),
190
- options: [e, t]
191
- }), ce = (e, t) => ({
192
- ...ee(e),
193
- options: [e, t]
194
- });
58
+ return c;
59
+ }
60
+ function v(r) {
61
+ r === void 0 && (r = {});
62
+ var t = h(null);
63
+ return t.options = d({ async: !0, ssr: !1 }, r), t;
64
+ }
195
65
  export {
196
- ce as arrow,
197
- me as autoUpdate,
198
- I as computePosition,
199
- ie as flip,
200
- le as hide,
201
- se as limitShift,
202
- fe as offset,
203
- pe as platform,
204
- oe as shift,
205
- ue as size,
206
- re as useFloating
66
+ v as createSidecarMedium
207
67
  };
208
68
  //# sourceMappingURL=index.es516.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es516.js","sources":["../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, offset as offset$1, shift as shift$1, limitShift as limitShift$1, flip as flip$1, size as size$1, autoPlacement as autoPlacement$1, hide as hide$1, inline as inline$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["index","useLayoutEffect","useEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","arrow$1","isRef","state","padding","arrow$2","offset","deps","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1","arrow"],"mappings":";;;;;AAMA,IAAIA,IAAQ,OAAO,WAAa,MAAcC,IAAkBC;AAIhE,SAASC,EAAUC,GAAGC,GAAG;AACvB,MAAID,MAAMC;AACR,WAAO;AAET,MAAI,OAAOD,KAAM,OAAOC;AACtB,WAAO;AAET,MAAI,OAAOD,KAAM,cAAcA,EAAE,eAAeC,EAAE;AAChD,WAAO;AAET,MAAIC,GACAC,GACAC;AACJ,MAAIJ,KAAKC,KAAK,OAAOD,KAAM,UAAU;AACnC,QAAI,MAAM,QAAQA,CAAC,GAAG;AAEpB,UADAE,IAASF,EAAE,QACPE,MAAWD,EAAE,OAAQ,QAAO;AAChC,WAAKE,IAAID,G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nD,CAAO,IACtBA,EAAQ,WAAW,OACdsD,EAAQ;AAAA,QACb,SAAStD,EAAQ;AAAA,QACjB,SAAAqD;AAAA,MACZ,CAAW,EAAE,GAAGD,CAAK,IAEN,CAAE,IAEPpD,IACKsD,EAAQ;AAAA,QACb,SAAAtD;AAAA,QACA,SAAAqD;AAAA,MACV,CAAS,EAAE,GAAGD,CAAK,IAEN,CAAE;AAAA,IACf;AAAA,EACG;AACH,GASMG,KAAS,CAAC/C,GAASgD,OAAU;AAAA,EACjC,GAAGC,EAASjD,CAAO;AAAA,EACnB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAOME,KAAQ,CAAClD,GAASgD,OAAU;AAAA,EAChC,GAAGG,EAAQnD,CAAO;AAAA,EAClB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAKMI,KAAa,CAACpD,GAASgD,OAAU;AAAA,EACrC,GAAGK,EAAarD,CAAO;AAAA,EACvB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAQMM,KAAO,CAACtD,GAASgD,OAAU;AAAA,EAC/B,GAAGO,EAAOvD,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAQMQ,KAAO,CAACxD,GAASgD,OAAU;AAAA,EAC/B,GAAGS,EAAOzD,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAkBMU,KAAO,CAAC1D,GAASgD,OAAU;AAAA,EAC/B,GAAGW,EAAO3D,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAkBMY,KAAQ,CAAC5D,GAASgD,OAAU;AAAA,EAChC,GAAGN,GAAQ1C,CAAO;AAAA,EAClB,SAAS,CAACA,GAASgD,CAAI;AACzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es516.js","sources":["../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAE,GACXC,IAAW,IACXC,IAAS;AAAA,IAC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