@baseline-ui/core 2.1.0 → 2.4.0

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 (525) hide show
  1. package/dist/Accordion.css +10 -0
  2. package/dist/Accordion.mjs +1 -0
  3. package/dist/ActionButton.css +10 -0
  4. package/dist/ActionButton.mjs +1 -0
  5. package/dist/ActionGroup.css +10 -0
  6. package/dist/ActionGroup.mjs +1 -0
  7. package/dist/ActionIconButton.css +10 -0
  8. package/dist/ActionIconButton.mjs +1 -0
  9. package/dist/Actionable.css +10 -0
  10. package/dist/Actionable.mjs +1 -0
  11. package/dist/AlertDialog.css +10 -0
  12. package/dist/AlertDialog.mjs +1 -0
  13. package/dist/AudioPlayer.css +10 -0
  14. package/dist/AudioPlayer.mjs +1 -0
  15. package/dist/Avatar.css +10 -0
  16. package/dist/Avatar.mjs +1 -0
  17. package/dist/Box.mjs +1 -0
  18. package/dist/ButtonSelect.css +10 -0
  19. package/dist/ButtonSelect.mjs +1 -0
  20. package/dist/Calendar.css +10 -0
  21. package/dist/Calendar.mjs +1 -0
  22. package/dist/Checkbox.css +10 -0
  23. package/dist/Checkbox.mjs +1 -0
  24. package/dist/Code.css +10 -0
  25. package/dist/Code.mjs +1 -0
  26. package/dist/ColorInput.css +10 -0
  27. package/dist/ColorInput.mjs +1 -0
  28. package/dist/ColorSwatch.css +10 -0
  29. package/dist/ColorSwatch.mjs +1 -0
  30. package/dist/ColorSwatchPicker.css +10 -0
  31. package/dist/ColorSwatchPicker.mjs +1 -0
  32. package/dist/ComboBox.css +10 -0
  33. package/dist/ComboBox.mjs +1 -0
  34. package/dist/DateField.css +10 -0
  35. package/dist/DateField.mjs +1 -0
  36. package/dist/DateFormat.mjs +1 -0
  37. package/dist/DeviceProvider.mjs +1 -0
  38. package/dist/Dialog.css +10 -0
  39. package/dist/Dialog.mjs +1 -0
  40. package/dist/Disclosure.css +10 -0
  41. package/dist/Disclosure.mjs +1 -0
  42. package/dist/DomNodeRenderer.mjs +1 -0
  43. package/dist/Drawer.css +10 -0
  44. package/dist/Drawer.mjs +1 -0
  45. package/dist/Editor.css +10 -0
  46. package/dist/Editor.mjs +1 -0
  47. package/dist/FileInput.css +10 -0
  48. package/dist/FileInput.mjs +1 -0
  49. package/dist/FileList.css +10 -0
  50. package/dist/FileList.mjs +1 -0
  51. package/dist/FileUploader.css +10 -0
  52. package/dist/FileUploader.mjs +1 -0
  53. package/dist/FrameProvider.mjs +1 -0
  54. package/dist/FreehandCanvas.css +10 -0
  55. package/dist/FreehandCanvas.mjs +1 -0
  56. package/dist/GridList.css +10 -0
  57. package/dist/GridList.mjs +1 -0
  58. package/dist/Group.mjs +1 -0
  59. package/dist/I18nProvider.mjs +1 -0
  60. package/dist/Icon.mjs +1 -0
  61. package/dist/ImageDropZone.css +10 -0
  62. package/dist/ImageDropZone.mjs +1 -0
  63. package/dist/ImageGallery.css +10 -0
  64. package/dist/ImageGallery.mjs +1 -0
  65. package/dist/InlineAlert.css +10 -0
  66. package/dist/InlineAlert.mjs +1 -0
  67. package/dist/InlineToolbar.css +10 -0
  68. package/dist/InlineToolbar.mjs +10 -0
  69. package/dist/Kbd.css +10 -0
  70. package/dist/Kbd.mjs +1 -0
  71. package/dist/Link.css +10 -0
  72. package/dist/Link.mjs +1 -0
  73. package/dist/ListBox.css +10 -0
  74. package/dist/ListBox.mjs +1 -0
  75. package/dist/Markdown.css +10 -0
  76. package/dist/Markdown.mjs +1 -0
  77. package/dist/Menu.css +10 -0
  78. package/dist/Menu.mjs +1 -0
  79. package/dist/MessageFormat.mjs +1 -0
  80. package/dist/Modal.css +10 -0
  81. package/dist/Modal.mjs +1 -0
  82. package/dist/NumberFormat.mjs +1 -0
  83. package/dist/NumberInput.css +10 -0
  84. package/dist/NumberInput.mjs +1 -0
  85. package/dist/Pagination.css +10 -0
  86. package/dist/Pagination.mjs +1 -0
  87. package/dist/Panel.css +10 -0
  88. package/dist/Panel.mjs +1 -0
  89. package/dist/PointPicker.css +10 -0
  90. package/dist/PointPicker.mjs +1 -0
  91. package/dist/Popover.css +10 -0
  92. package/dist/Popover.mjs +1 -0
  93. package/dist/Portal.css +10 -0
  94. package/dist/Portal.mjs +1 -0
  95. package/dist/PortalContainerProvider.mjs +1 -0
  96. package/dist/Preview.css +10 -0
  97. package/dist/Preview.mjs +1 -0
  98. package/dist/ProgressBar.css +10 -0
  99. package/dist/ProgressBar.mjs +1 -0
  100. package/dist/ProgressSpinner.css +10 -0
  101. package/dist/ProgressSpinner.mjs +1 -0
  102. package/dist/RadioGroup.css +10 -0
  103. package/dist/RadioGroup.mjs +1 -0
  104. package/dist/Reaction.css +10 -0
  105. package/dist/Reaction.mjs +1 -0
  106. package/dist/ScrollControlButton.css +10 -0
  107. package/dist/ScrollControlButton.mjs +1 -0
  108. package/dist/SearchInput.css +10 -0
  109. package/dist/SearchInput.mjs +1 -0
  110. package/dist/Select.css +10 -0
  111. package/dist/Select.mjs +1 -0
  112. package/dist/Separator.css +10 -0
  113. package/dist/Separator.mjs +1 -0
  114. package/dist/Skeleton.css +10 -0
  115. package/dist/Skeleton.mjs +1 -0
  116. package/dist/Slider.css +10 -0
  117. package/dist/Slider.mjs +1 -0
  118. package/dist/StatusCard.css +10 -0
  119. package/dist/StatusCard.mjs +1 -0
  120. package/dist/Stepper.css +10 -0
  121. package/dist/Stepper.mjs +1 -0
  122. package/dist/Switch.css +10 -0
  123. package/dist/Switch.mjs +1 -0
  124. package/dist/Table.css +10 -0
  125. package/dist/Table.mjs +1 -0
  126. package/dist/Tabs.css +10 -0
  127. package/dist/Tabs.mjs +1 -0
  128. package/dist/Tag.css +10 -0
  129. package/dist/Tag.mjs +1 -0
  130. package/dist/TagGroup.css +10 -0
  131. package/dist/TagGroup.mjs +1 -0
  132. package/dist/TaggedPagination.css +10 -0
  133. package/dist/TaggedPagination.mjs +1 -0
  134. package/dist/Text.css +10 -0
  135. package/dist/Text.mjs +1 -0
  136. package/dist/TextInput.css +10 -0
  137. package/dist/TextInput.mjs +1 -0
  138. package/dist/ThemeProvider.css +10 -0
  139. package/dist/ThemeProvider.mjs +1 -0
  140. package/dist/TimeField.css +10 -0
  141. package/dist/TimeField.mjs +1 -0
  142. package/dist/Toast.css +10 -0
  143. package/dist/Toast.mjs +1 -0
  144. package/dist/ToggleButton.css +10 -0
  145. package/dist/ToggleButton.mjs +1 -0
  146. package/dist/ToggleIconButton.css +10 -0
  147. package/dist/ToggleIconButton.mjs +1 -0
  148. package/dist/Toolbar.css +10 -0
  149. package/dist/Toolbar.mjs +1 -0
  150. package/dist/Tooltip.css +10 -0
  151. package/dist/Tooltip.mjs +1 -0
  152. package/dist/TreeView.css +10 -0
  153. package/dist/TreeView.mjs +1 -0
  154. package/dist/UNSAFE_ListBox.css +10 -0
  155. package/dist/UNSAFE_ListBox.mjs +1 -0
  156. package/dist/Virtualizer.mjs +1 -0
  157. package/dist/chunk-22BJMDCA.mjs +10 -0
  158. package/dist/chunk-246VHB32.mjs +10 -0
  159. package/dist/chunk-2CZ3OV4X.mjs +10 -0
  160. package/dist/chunk-2JANDORZ.mjs +11 -0
  161. package/dist/chunk-2MS356Q7.mjs +10 -0
  162. package/dist/chunk-2PH5GN2S.mjs +0 -0
  163. package/dist/chunk-2RCST7ET.mjs +10 -0
  164. package/dist/chunk-2UUKKXBD.mjs +10 -0
  165. package/dist/chunk-2VY4FAOY.mjs +10 -0
  166. package/dist/chunk-2WAKHFPS.mjs +10 -0
  167. package/dist/chunk-34TYNTXM.mjs +10 -0
  168. package/dist/chunk-3CWP2VCB.mjs +10 -0
  169. package/dist/chunk-3FYY26ED.mjs +10 -0
  170. package/dist/chunk-3HKG74G4.mjs +0 -0
  171. package/dist/chunk-3UH5CQQF.mjs +10 -0
  172. package/dist/chunk-3W6RWDIE.mjs +10 -0
  173. package/dist/chunk-44OUOGJ4.mjs +10 -0
  174. package/dist/chunk-4N6CLPAY.mjs +10 -0
  175. package/dist/chunk-4NYPVKDO.mjs +10 -0
  176. package/dist/chunk-4PYEGHW5.mjs +10 -0
  177. package/dist/chunk-4QEH5CGK.mjs +10 -0
  178. package/dist/chunk-4SW77SGW.mjs +10 -0
  179. package/dist/chunk-4WW2MVQN.mjs +0 -0
  180. package/dist/chunk-4ZJMZB5B.mjs +10 -0
  181. package/dist/chunk-545KDVGI.mjs +10 -0
  182. package/dist/chunk-54IAJ3RI.mjs +0 -0
  183. package/dist/chunk-566SP7NE.mjs +10 -0
  184. package/dist/chunk-5ANNWMLJ.mjs +0 -0
  185. package/dist/chunk-5BAHJXOI.mjs +10 -0
  186. package/dist/chunk-5HXTXIE5.mjs +10 -0
  187. package/dist/chunk-5IC46G5J.mjs +10 -0
  188. package/dist/chunk-5KD2MNNX.mjs +10 -0
  189. package/dist/chunk-5ODZPQL2.mjs +10 -0
  190. package/dist/chunk-5PQHOVGX.mjs +0 -0
  191. package/dist/chunk-5ULL6IBX.mjs +10 -0
  192. package/dist/chunk-5YHNHEDK.mjs +0 -0
  193. package/dist/chunk-63KRQW56.mjs +10 -0
  194. package/dist/chunk-66CUIXA6.mjs +10 -0
  195. package/dist/chunk-66NJ7EYY.mjs +10 -0
  196. package/dist/chunk-6F66XVOA.mjs +0 -0
  197. package/dist/chunk-6IRWW75G.mjs +10 -0
  198. package/dist/chunk-6IX6BM7C.mjs +0 -0
  199. package/dist/chunk-6XARU7F2.mjs +0 -0
  200. package/dist/chunk-6YQHZ5RZ.mjs +0 -0
  201. package/dist/chunk-6Z6HOW6T.mjs +10 -0
  202. package/dist/chunk-6ZFBX7C7.mjs +10 -0
  203. package/dist/chunk-6ZQE5SHE.mjs +10 -0
  204. package/dist/chunk-6ZV4UYEG.mjs +10 -0
  205. package/dist/chunk-77BAFSDX.mjs +10 -0
  206. package/dist/chunk-7AQAC6QK.mjs +10 -0
  207. package/dist/chunk-7AY6C5M5.mjs +10 -0
  208. package/dist/chunk-7PRJIPFA.mjs +10 -0
  209. package/dist/chunk-7ZYMMUDM.mjs +10 -0
  210. package/dist/chunk-A24DWFQ2.mjs +10 -0
  211. package/dist/chunk-A6ZQQSAX.mjs +10 -0
  212. package/dist/chunk-AC7OXVHA.mjs +10 -0
  213. package/dist/chunk-AGUSZG6K.mjs +0 -0
  214. package/dist/chunk-AGYQLGBZ.mjs +10 -0
  215. package/dist/chunk-AKES5B6C.mjs +10 -0
  216. package/dist/chunk-AMQX3KZR.mjs +10 -0
  217. package/dist/chunk-AMW7LGCF.mjs +10 -0
  218. package/dist/chunk-AMYRLAIC.mjs +10 -0
  219. package/dist/chunk-AQYBKDT2.mjs +16 -0
  220. package/dist/chunk-AUOQSTS5.mjs +10 -0
  221. package/dist/chunk-AV4ZP5SY.mjs +10 -0
  222. package/dist/chunk-AZRPXTYJ.mjs +10 -0
  223. package/dist/chunk-B7PSE5KC.mjs +10 -0
  224. package/dist/chunk-BED7T5CL.mjs +10 -0
  225. package/dist/chunk-BGMVPFYK.mjs +10 -0
  226. package/dist/chunk-BJVFZYUV.mjs +10 -0
  227. package/dist/chunk-BKDQLDOK.mjs +10 -0
  228. package/dist/chunk-BLHN7I5Z.mjs +0 -0
  229. package/dist/chunk-BTVDMO5C.mjs +10 -0
  230. package/dist/chunk-BU5H25MV.mjs +10 -0
  231. package/dist/chunk-C342HL26.mjs +0 -0
  232. package/dist/chunk-C5P23FUW.mjs +10 -0
  233. package/dist/chunk-C6OMLVIQ.mjs +0 -0
  234. package/dist/chunk-CAWUDHAE.mjs +10 -0
  235. package/dist/chunk-CFDKFUTO.mjs +10 -0
  236. package/dist/chunk-CFLEBB5T.mjs +10 -0
  237. package/dist/chunk-CFRTAJP2.mjs +0 -0
  238. package/dist/chunk-CGFLGZL4.mjs +10 -0
  239. package/dist/chunk-CHTLOFCT.mjs +10 -0
  240. package/dist/chunk-CPSUI4IW.mjs +10 -0
  241. package/dist/chunk-CSPZMYVG.mjs +10 -0
  242. package/dist/chunk-CV6JQGJ3.mjs +10 -0
  243. package/dist/chunk-CWPFUB7B.mjs +10 -0
  244. package/dist/chunk-D3IZ4HBL.mjs +10 -0
  245. package/dist/chunk-D5EEZT5J.mjs +10 -0
  246. package/dist/chunk-DD5FWULD.mjs +10 -0
  247. package/dist/chunk-DECHIERQ.mjs +10 -0
  248. package/dist/chunk-DIHILOKU.mjs +10 -0
  249. package/dist/chunk-DOL6RDMF.mjs +10 -0
  250. package/dist/chunk-DRYSJSKA.mjs +10 -0
  251. package/dist/chunk-DY6WY36N.mjs +0 -0
  252. package/dist/chunk-E3PFPOHX.mjs +0 -0
  253. package/dist/chunk-E6VOSF6Z.mjs +10 -0
  254. package/dist/chunk-EA6GA4WC.mjs +10 -0
  255. package/dist/chunk-EK3RIYMV.mjs +10 -0
  256. package/dist/chunk-ELXWR5TS.mjs +10 -0
  257. package/dist/chunk-EMCEJKBJ.mjs +10 -0
  258. package/dist/chunk-ENDOKA57.mjs +10 -0
  259. package/dist/chunk-EU75HMPG.mjs +10 -0
  260. package/dist/chunk-EX2LI2CV.mjs +10 -0
  261. package/dist/chunk-EZXMEGV7.mjs +0 -0
  262. package/dist/chunk-F2HESRBD.mjs +10 -0
  263. package/dist/chunk-F2X474RV.mjs +10 -0
  264. package/dist/chunk-F7PGMOQF.mjs +10 -0
  265. package/dist/chunk-FJ2JRD3H.mjs +10 -0
  266. package/dist/chunk-FKYHERP4.mjs +0 -0
  267. package/dist/chunk-FP5EWPOF.mjs +10 -0
  268. package/dist/chunk-FRZTJBLY.mjs +10 -0
  269. package/dist/chunk-FTYXFTJV.mjs +10 -0
  270. package/dist/chunk-FXCHST4Z.mjs +10 -0
  271. package/dist/chunk-GCZFXILF.mjs +10 -0
  272. package/dist/chunk-GEZGEZAP.mjs +10 -0
  273. package/dist/chunk-GFLVN5JQ.mjs +10 -0
  274. package/dist/chunk-GKODQS6E.mjs +10 -0
  275. package/dist/chunk-GOSLHCDP.mjs +0 -0
  276. package/dist/chunk-GXOXYPQQ.mjs +10 -0
  277. package/dist/chunk-H44PBNVX.mjs +10 -0
  278. package/dist/chunk-H7OUUCSA.mjs +10 -0
  279. package/dist/chunk-HBBRMEES.mjs +10 -0
  280. package/dist/chunk-HHI7CEUP.mjs +10 -0
  281. package/dist/chunk-HI44JQA7.mjs +10 -0
  282. package/dist/chunk-HLDCVJXD.mjs +10 -0
  283. package/dist/chunk-HONWMHMX.mjs +10 -0
  284. package/dist/chunk-HT55YHTN.mjs +10 -0
  285. package/dist/chunk-HWOMGFBL.mjs +10 -0
  286. package/dist/chunk-HXTAOYOD.mjs +10 -0
  287. package/dist/chunk-I3RGYL4B.mjs +10 -0
  288. package/dist/chunk-I3YGB2BE.mjs +10 -0
  289. package/dist/chunk-IB23KCIW.mjs +10 -0
  290. package/dist/chunk-IHLJTHGQ.mjs +10 -0
  291. package/dist/chunk-ILBAZFBL.mjs +0 -0
  292. package/dist/chunk-INDVRI57.mjs +10 -0
  293. package/dist/chunk-IUQOFRI3.mjs +10 -0
  294. package/dist/chunk-IVVZSESM.mjs +10 -0
  295. package/dist/chunk-IW4GXU75.mjs +10 -0
  296. package/dist/chunk-IYFTU6IC.mjs +10 -0
  297. package/dist/chunk-J3MJZQUJ.mjs +10 -0
  298. package/dist/chunk-J4NO4WYU.mjs +0 -0
  299. package/dist/chunk-J5YWAPLN.mjs +10 -0
  300. package/dist/chunk-J7EAQSKX.mjs +10 -0
  301. package/dist/chunk-J7K7I5U2.mjs +10 -0
  302. package/dist/chunk-JBXZ6ZHP.mjs +10 -0
  303. package/dist/chunk-JDLUGVXG.mjs +10 -0
  304. package/dist/chunk-JI4SJ53O.mjs +11 -0
  305. package/dist/chunk-JJG67M2S.mjs +10 -0
  306. package/dist/chunk-JJPCZOOI.mjs +10 -0
  307. package/dist/chunk-JQ4ZGZPV.mjs +15 -0
  308. package/dist/chunk-JUXBZ2ZN.mjs +10 -0
  309. package/dist/chunk-K6IQ4ALU.mjs +0 -0
  310. package/dist/chunk-K6X2BHPP.mjs +10 -0
  311. package/dist/chunk-KCHAWPUN.mjs +10 -0
  312. package/dist/chunk-KEVERVHK.mjs +10 -0
  313. package/dist/chunk-KG5PDPBK.mjs +10 -0
  314. package/dist/chunk-KKJ6XIU3.mjs +10 -0
  315. package/dist/chunk-KPEONVLU.mjs +10 -0
  316. package/dist/chunk-KUEDQO7P.mjs +10 -0
  317. package/dist/chunk-KY3JKXSX.mjs +10 -0
  318. package/dist/chunk-LQMEFFFM.mjs +10 -0
  319. package/dist/chunk-LZFTBNPW.mjs +10 -0
  320. package/dist/chunk-M5M3EPG5.mjs +10 -0
  321. package/dist/chunk-MEYMETYC.mjs +11 -0
  322. package/dist/chunk-MEZNZ5W6.mjs +10 -0
  323. package/dist/chunk-MFH2E2GU.mjs +10 -0
  324. package/dist/chunk-MI7DCFP2.mjs +10 -0
  325. package/dist/chunk-MIHIAPBG.mjs +10 -0
  326. package/dist/chunk-MLNPTVVX.mjs +10 -0
  327. package/dist/chunk-MRJFGHFW.mjs +10 -0
  328. package/dist/chunk-MUNFBB7D.mjs +0 -0
  329. package/dist/chunk-MVK5CB64.mjs +10 -0
  330. package/dist/chunk-MXKP7NQ4.mjs +10 -0
  331. package/dist/chunk-MZ4O6LWG.mjs +0 -0
  332. package/dist/chunk-N2XGJKZG.mjs +10 -0
  333. package/dist/chunk-N5RZGO7Y.mjs +10 -0
  334. package/dist/chunk-N7MTFSWR.mjs +10 -0
  335. package/dist/chunk-NA3IF43N.mjs +10 -0
  336. package/dist/chunk-NGZRN4SF.mjs +10 -0
  337. package/dist/chunk-NHM3H5JU.mjs +0 -0
  338. package/dist/chunk-NO55UIGK.mjs +0 -0
  339. package/dist/chunk-NRKHWSOP.mjs +0 -0
  340. package/dist/chunk-NSC53QWT.mjs +10 -0
  341. package/dist/chunk-NV7KQVPE.mjs +10 -0
  342. package/dist/chunk-O4VZ6XEP.mjs +10 -0
  343. package/dist/chunk-O57ZEY3V.mjs +0 -0
  344. package/dist/chunk-O66FNQSB.mjs +10 -0
  345. package/dist/chunk-O7XK2WIX.mjs +10 -0
  346. package/dist/chunk-OAY74XPB.mjs +10 -0
  347. package/dist/chunk-OC42IZG2.mjs +10 -0
  348. package/dist/chunk-OLJWK3LS.mjs +10 -0
  349. package/dist/chunk-OMT6ZWSV.mjs +11 -0
  350. package/dist/chunk-OO7BXL2N.mjs +10 -0
  351. package/dist/chunk-P44XZ4PV.mjs +10 -0
  352. package/dist/chunk-P5GO3XIS.mjs +10 -0
  353. package/dist/chunk-PAQQ7MQG.mjs +10 -0
  354. package/dist/chunk-PBFIKNYZ.mjs +10 -0
  355. package/dist/chunk-PBO4SFGS.mjs +10 -0
  356. package/dist/chunk-PF3OQKXP.mjs +10 -0
  357. package/dist/chunk-PHZZLBH3.mjs +10 -0
  358. package/dist/chunk-PZTVDABF.mjs +0 -0
  359. package/dist/chunk-Q5UMLFN3.mjs +10 -0
  360. package/dist/chunk-QAUEG3EX.mjs +0 -0
  361. package/dist/chunk-QBJDGBTU.mjs +0 -0
  362. package/dist/chunk-QMDDCVAF.mjs +10 -0
  363. package/dist/chunk-QNBBJ5HC.mjs +11 -0
  364. package/dist/chunk-R32OJDN2.mjs +10 -0
  365. package/dist/chunk-RC7QITNV.mjs +10 -0
  366. package/dist/chunk-RCBUNCHV.mjs +10 -0
  367. package/dist/chunk-RFTDIXEG.mjs +10 -0
  368. package/dist/chunk-RJC3HQDZ.mjs +10 -0
  369. package/dist/chunk-RJWPSJX2.mjs +10 -0
  370. package/dist/chunk-RMUV6NJJ.mjs +10 -0
  371. package/dist/chunk-ROHLZINC.mjs +10 -0
  372. package/dist/chunk-RSKKEGJZ.mjs +10 -0
  373. package/dist/chunk-RT4LMB6X.mjs +10 -0
  374. package/dist/chunk-RXSYDMT6.mjs +10 -0
  375. package/dist/chunk-S3V4OOC3.mjs +10 -0
  376. package/dist/chunk-SAZLJ66W.mjs +10 -0
  377. package/dist/chunk-SMAYNDQQ.mjs +10 -0
  378. package/dist/chunk-TAROK7TO.mjs +10 -0
  379. package/dist/chunk-TAYP2OGC.mjs +10 -0
  380. package/dist/chunk-TBSQUJ67.mjs +10 -0
  381. package/dist/chunk-TDXALNX3.mjs +10 -0
  382. package/dist/chunk-TEQE6WCH.mjs +10 -0
  383. package/dist/chunk-THRAJMLX.mjs +10 -0
  384. package/dist/chunk-TI5RR7KX.mjs +10 -0
  385. package/dist/chunk-TIHKHXTS.mjs +10 -0
  386. package/dist/chunk-TJEK54BW.mjs +10 -0
  387. package/dist/chunk-TK4QXU3W.mjs +10 -0
  388. package/dist/chunk-TKQOQVZD.mjs +10 -0
  389. package/dist/chunk-TO2TQ2LE.mjs +10 -0
  390. package/dist/chunk-TO6OQF2Y.mjs +10 -0
  391. package/dist/chunk-TZ4MVY4E.mjs +10 -0
  392. package/dist/chunk-U2ODAIZG.mjs +10 -0
  393. package/dist/chunk-U4K44ZHN.mjs +10 -0
  394. package/dist/chunk-UCNHDT36.mjs +10 -0
  395. package/dist/chunk-UCZZLAPB.mjs +10 -0
  396. package/dist/chunk-UQJGSVXP.mjs +10 -0
  397. package/dist/chunk-USMC34OO.mjs +10 -0
  398. package/dist/chunk-UTQ7AIPM.mjs +0 -0
  399. package/dist/chunk-UUBOEBYZ.mjs +10 -0
  400. package/dist/chunk-V3L4SVVF.mjs +10 -0
  401. package/dist/chunk-VCIX4HG7.mjs +0 -0
  402. package/dist/chunk-VDUFLHKK.mjs +10 -0
  403. package/dist/chunk-VG7J427T.mjs +10 -0
  404. package/dist/chunk-VHDXSFQC.mjs +10 -0
  405. package/dist/chunk-VLQ4S7XC.mjs +10 -0
  406. package/dist/chunk-VTX6R6KM.mjs +10 -0
  407. package/dist/chunk-VXB5SVQC.mjs +10 -0
  408. package/dist/chunk-W6QO7FPZ.mjs +10 -0
  409. package/dist/chunk-WAFYFWH4.mjs +0 -0
  410. package/dist/chunk-WAOWR7MR.mjs +10 -0
  411. package/dist/chunk-WL27JGVG.mjs +10 -0
  412. package/dist/chunk-WOVAT6U4.mjs +10 -0
  413. package/dist/chunk-WSCZ34XO.mjs +10 -0
  414. package/dist/chunk-WSQGB4ZE.mjs +0 -0
  415. package/dist/chunk-WWSGOGLA.mjs +10 -0
  416. package/dist/chunk-X3AXUU3H.mjs +10 -0
  417. package/dist/chunk-X3OCHEQM.mjs +12 -0
  418. package/dist/chunk-X7DI4I2U.mjs +10 -0
  419. package/dist/chunk-XB657BXX.mjs +10 -0
  420. package/dist/chunk-XBBPWSJI.mjs +0 -0
  421. package/dist/chunk-XJGQXVMR.mjs +10 -0
  422. package/dist/chunk-XPISSX5R.mjs +10 -0
  423. package/dist/chunk-XTH6B5FE.mjs +10 -0
  424. package/dist/chunk-XVBOKL6D.mjs +10 -0
  425. package/dist/chunk-XWLESSHN.mjs +10 -0
  426. package/dist/chunk-XXANV3FM.mjs +10 -0
  427. package/dist/chunk-XZ2VSOJD.mjs +29 -0
  428. package/dist/chunk-Y4DRSGEJ.mjs +10 -0
  429. package/dist/chunk-Y6XQJ4X2.mjs +10 -0
  430. package/dist/chunk-YB3KW7JC.mjs +10 -0
  431. package/dist/chunk-YCI6BEXQ.mjs +10 -0
  432. package/dist/chunk-YGSCHWU3.mjs +10 -0
  433. package/dist/chunk-YIGT3OP2.mjs +10 -0
  434. package/dist/chunk-YOBESAXG.mjs +10 -0
  435. package/dist/chunk-YS3Y5KGV.mjs +10 -0
  436. package/dist/chunk-YT36W3OS.mjs +10 -0
  437. package/dist/chunk-YV3WI6OV.mjs +10 -0
  438. package/dist/chunk-YV5CNDCW.mjs +0 -0
  439. package/dist/chunk-YVYMYKYN.mjs +10 -0
  440. package/dist/chunk-ZANUFNOL.mjs +0 -0
  441. package/dist/chunk-ZGRRD3TU.mjs +10 -0
  442. package/dist/chunk-ZLAY7NNY.mjs +10 -0
  443. package/dist/chunk-ZLDT2KDZ.mjs +10 -0
  444. package/dist/chunk-ZNN43VZV.mjs +10 -0
  445. package/dist/chunk-ZREX7XOO.mjs +10 -0
  446. package/dist/chunk-ZRWDMNNY.mjs +10 -0
  447. package/dist/chunk-ZVODDLGL.mjs +10 -0
  448. package/dist/hooks/useDevice.mjs +1 -0
  449. package/dist/hooks/useI18n.mjs +1 -0
  450. package/dist/hooks/useImage.mjs +1 -0
  451. package/dist/hooks/useIntersectionObserver.mjs +1 -0
  452. package/dist/hooks/useIsFirstRender.mjs +1 -0
  453. package/dist/hooks/useIsTouchDevice.mjs +1 -0
  454. package/dist/hooks/useLiveInteractionModality.mjs +1 -0
  455. package/dist/hooks/useLocalStorage.mjs +1 -0
  456. package/dist/hooks/useMedia.mjs +1 -0
  457. package/dist/hooks/useMutationObserver.mjs +1 -0
  458. package/dist/hooks/usePortalContainer.mjs +1 -0
  459. package/dist/hooks/usePreventFocus.mjs +1 -0
  460. package/dist/hooks/useResizeObserver.mjs +1 -0
  461. package/dist/hooks/useTextSelection.mjs +1 -0
  462. package/dist/hooks/useUndoRedo.mjs +1 -0
  463. package/dist/index.d.ts +811 -70
  464. package/dist/index.js +21 -21
  465. package/dist/index.mjs +1 -43
  466. package/dist/messageIds.mjs +1 -0
  467. package/dist/react-aria.d.ts +133 -133
  468. package/dist/react-aria.mjs +1 -0
  469. package/dist/react-stately.d.ts +82 -82
  470. package/dist/react-stately.mjs +1 -0
  471. package/dist/utils/a11y.mjs +1 -0
  472. package/dist/utils/classNames.mjs +1 -0
  473. package/dist/utils/colors.mjs +1 -0
  474. package/dist/utils/constants.mjs +10 -0
  475. package/dist/utils/devWarn.mjs +1 -0
  476. package/dist/utils/dom.mjs +1 -0
  477. package/dist/utils/invariant.mjs +1 -0
  478. package/dist/utils/isInIframe.mjs +1 -0
  479. package/dist/utils/isInShadowDOM.mjs +1 -0
  480. package/dist/utils/isRect.mjs +1 -0
  481. package/dist/utils/keyboards.mjs +1 -0
  482. package/dist/utils/math.mjs +1 -0
  483. package/dist/utils/objects.mjs +1 -0
  484. package/dist/utils/onDropOrPaste.mjs +1 -0
  485. package/dist/utils/overlays.mjs +1 -0
  486. package/dist/utils/reactAriaCompat.mjs +1 -0
  487. package/dist/utils/reactAriaComponentsCompat.mjs +1 -0
  488. package/dist/utils/resolveAriaLabelAttrs.mjs +1 -0
  489. package/dist/utils/resolvePublicUrl.mjs +10 -0
  490. package/dist/utils/strings.mjs +1 -0
  491. package/dist/utils/style.mjs +1 -0
  492. package/dist/utils/svgs.mjs +1 -0
  493. package/dist/utils/validations.mjs +1 -0
  494. package/intl/ar.json +2 -2
  495. package/intl/cs.json +2 -2
  496. package/intl/cy.json +4 -4
  497. package/intl/da.json +3 -3
  498. package/intl/de.json +3 -3
  499. package/intl/el.json +2 -2
  500. package/intl/en-GB.json +2 -2
  501. package/intl/en.json +2 -2
  502. package/intl/fi.json +3 -3
  503. package/intl/fr-CA.json +1 -1
  504. package/intl/fr.json +2 -2
  505. package/intl/he.json +3 -3
  506. package/intl/hr.json +3 -3
  507. package/intl/id.json +3 -3
  508. package/intl/ja.json +2 -2
  509. package/intl/ko.json +1 -1
  510. package/intl/ms.json +2 -2
  511. package/intl/nb-NO.json +3 -3
  512. package/intl/nl.json +4 -4
  513. package/intl/pt-PT.json +1 -1
  514. package/intl/pt.json +3 -3
  515. package/intl/ru.json +2 -2
  516. package/intl/sk.json +2 -2
  517. package/intl/sl.json +4 -4
  518. package/intl/sv.json +3 -3
  519. package/intl/th.json +1 -1
  520. package/intl/tr.json +3 -3
  521. package/intl/uk.json +1 -1
  522. package/intl/zh-Hant.json +2 -2
  523. package/messages.json +2 -2
  524. package/package.json +8 -5
  525. package/sbom.json +6 -6
@@ -0,0 +1,10 @@
1
+ import {a as a$d}from'./chunk-5BAHJXOI.mjs';import {a as a$c}from'./chunk-RFTDIXEG.mjs';import {a as a$2}from'./chunk-SAZLJ66W.mjs';import {a as a$5}from'./chunk-M5M3EPG5.mjs';import {d}from'./chunk-W6QO7FPZ.mjs';import {a as a$a}from'./chunk-O7XK2WIX.mjs';import {a as a$8,b as b$4}from'./chunk-KPEONVLU.mjs';import {e,d as d$2}from'./chunk-KUEDQO7P.mjs';import {b as b$1,a as a$i}from'./chunk-WL27JGVG.mjs';import {a,b as b$3}from'./chunk-2RCST7ET.mjs';import {a as a$b}from'./chunk-CV6JQGJ3.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {e as e$2,b as b$5}from'./chunk-MVK5CB64.mjs';import {a as a$3}from'./chunk-XWLESSHN.mjs';import {a as a$h}from'./chunk-D3IZ4HBL.mjs';import {a as a$f}from'./chunk-RXSYDMT6.mjs';import {a as a$7}from'./chunk-X3AXUU3H.mjs';import {a as a$4}from'./chunk-545KDVGI.mjs';import {a as a$9}from'./chunk-K6X2BHPP.mjs';import {b}from'./chunk-YB3KW7JC.mjs';import {d as d$1}from'./chunk-AQYBKDT2.mjs';import {g as g$1,d as d$3}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$6}from'./chunk-KEVERVHK.mjs';import {a as a$g,c as c$1}from'./chunk-JDLUGVXG.mjs';import {g,a as a$e,e as e$1,f}from'./chunk-AUOQSTS5.mjs';import {a as a$1}from'./chunk-FXCHST4Z.mjs';import pa,{useRef,useMemo,useEffect,useState}from'react';import {DateFormatter,isEqualCalendar,toCalendar,GregorianCalendar,CalendarDate,now,getLocalTimeZone,toCalendarDate,toCalendarDateTime}from'@internationalized/date';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var re={"ar-AE":{calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",selectedDateDescription:e=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${e.date}`,selectedRangeDescription:e=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.startDate} \u0625\u0644\u0649 ${e.endDate}`,selectedTimeDescription:e=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"},"bg-BG":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.startDate} \u0434\u043E ${e.endDate}`,selectedTimeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${e.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"},"cs-CZ":{calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:e=>`Vybran\xE9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xE9 obdob\xED: ${e.startDate} a\u017E ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xFD \u010Das: ${e.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xE4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xE4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xE4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF",selectedDateDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${e.date}`,selectedRangeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${e.startDate} \u03AD\u03C9\u03C2 ${e.endDate}`,selectedTimeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${e.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"},"et-EE":{calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xE4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xE4li: ${e.startDate} \u2013 ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xE9lectionn\xE9e\xA0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xE9lectionn\xE9e\xA0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xA0: ${e.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"},"he-IL":{calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:e=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${e.date}`,selectedRangeDescription:e=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${e.startDate} \u05E2\u05D3 ${e.endDate}`,selectedTimeDescription:e=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${e.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:e=>`Kijel\xF6lt d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xF6lt tartom\xE1ny: ${e.startDate}\u2013${e.endDate}`,selectedTimeDescription:e=>`Kijel\xF6lt id\u0151: ${e.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${e.date}`,selectedRangeDescription:e=>`\u9078\u629E\u7BC4\u56F2 : ${e.startDate} \u304B\u3089 ${e.endDate}`,selectedTimeDescription:e=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${e.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"},"ko-KR":{calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:e=>`\uC120\uD0DD \uC77C\uC790: ${e.date}`,selectedRangeDescription:e=>`\uC120\uD0DD \uBC94\uC704: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\uC120\uD0DD \uC2DC\uAC04: ${e.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"},"lv-LV":{calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:e=>`Atlas\u012Btais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u012Btais diapazons: no ${e.startDate} l\u012Bdz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u012Btais laiks: ${e.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xE5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"},"pt-BR":{calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:e=>`Dat\u0103 selectat\u0103: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xE2n\u0103 la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u0103: ${e.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"},"ru-RU":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: \u0441 ${e.startDate} \u043F\u043E ${e.endDate}`,selectedTimeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${e.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"},"sk-SK":{calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xFD d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xFD rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xFD \u010Das: ${e.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u010Dje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u010Das: ${e.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"},"tr-TR":{calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xE7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xE7ilen Aral\u0131k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xE7ilen Zaman: ${e.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"},"uk-UA":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${e.startDate} \u2014 ${e.endDate}`,selectedTimeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${e.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"},"zh-CN":{calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${e.startDate} \u81F3 ${e.endDate}`,selectedTimeDescription:e=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${e.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"},"zh-TW":{calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${e.startDate} \u81F3 ${e.endDate}`,selectedTimeDescription:e=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${e.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"}};function Ye(e$2,a,t){let{direction:r}=b$2(),l=useMemo(()=>e(a),[a]),n=o=>{if(e$1(o.currentTarget,g(o))&&(o.altKey&&(o.key==="ArrowDown"||o.key==="ArrowUp")&&"setOpen"in e$2&&(o.preventDefault(),o.stopPropagation(),e$2.setOpen(true)),!t))switch(o.key){case "ArrowLeft":if(o.preventDefault(),o.stopPropagation(),r==="rtl"){if(a.current){let c=g(o),m=qe(a.current,c.getBoundingClientRect().left,-1);m&&m.focus();}}else l.focusPrevious();break;case "ArrowRight":if(o.preventDefault(),o.stopPropagation(),r==="rtl"){if(a.current){let c=g(o),m=qe(a.current,c.getBoundingClientRect().left,1);m&&m.focus();}}else l.focusNext();break}},u=o=>{if(!a.current)return;let c=d$2(a.current,{tabbable:true});if(o&&(c.currentNode=o,o=c.previousNode()),!o){let m;do m=c.lastChild(),m&&(o=m);while(m)}for(;o?.hasAttribute("data-placeholder");){let m=c.previousNode();if(m&&m.hasAttribute("data-placeholder"))o=m;else break}o&&o.focus();},{pressProps:s}=d$1({preventFocusOnPress:true,allowTextSelectionOnPress:true});return c(s,{onKeyDown:n,onPointerDown(o){o.pointerType==="mouse"&&u(g(o));},onPointerUp(o){(o.pointerType==="touch"||o.pointerType==="pen")&&u(g(o));},onMouseDown(o){typeof PointerEvent>"u"&&u(g(o));},onTouchEnd(o){typeof PointerEvent>"u"&&u(g(o));}})}function qe(e,a,t){let r=d$2(e,{tabbable:true}),l=r.nextNode(),n=null,u=1/0;for(;l;){let o=l.getBoundingClientRect().left-a,c=Math.abs(o);Math.sign(o)===t&&c<u&&(n=l,u=c),l=r.nextNode();}return n}var De=new WeakMap,ye="__reactAriaDateFieldRole",ma="__reactAriaDateFieldFocusManager";function Qe(e$1,a,t){let{isInvalid:r,validationErrors:l,validationDetails:n}=a.displayValidation,{labelProps:u,fieldProps:s,descriptionProps:o,errorMessageProps:c$1}=a$2({...e$1,labelElementType:"span",isInvalid:r,errorMessage:e$1.errorMessage||l,ref:t}),m=useRef(null),{focusWithinProps:f}=b({...e$1,onFocusWithin($){m.current=a.value,e$1.onFocus?.($);},onBlurWithin:$=>{a.confirmPlaceholder(),a.value!==m.current&&a.commitValidation(),e$1.onBlur?.($);},onFocusWithinChange:e$1.onFocusChange}),h=b$1(re,"@react-aria/datepicker"),D=a.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",y=a.maxGranularity==="hour"?"time":"date",b$2=a.value?h.format(D,{[y]:a.formatValue({month:"long"})}):"",P=a$3(b$2,t),S=e$1[ye]==="presentation"?s["aria-describedby"]:[P["aria-describedby"],s["aria-describedby"]].filter(Boolean).join(" ")||void 0,F=e$1[ma],g=useMemo(()=>F||e(t),[F,t]),v=Ye(a,t,e$1[ye]==="presentation");De.set(a,{ariaLabel:e$1["aria-label"],ariaLabelledBy:[u.id,e$1["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:S,focusManager:g});let w=useRef(e$1.autoFocus),R;e$1[ye]==="presentation"?R={role:"presentation"}:R=c(s,{role:"group","aria-disabled":e$1.isDisabled||void 0,"aria-describedby":S}),useEffect(()=>{w.current&&g.focusFirst(),w.current=false;},[g]),a$4(e$1.inputRef,a.defaultValue,a.setValue),a$5({...e$1,focus(){g.focusFirst();}},a,e$1.inputRef);let T={type:"hidden",name:e$1.name,form:e$1.form,value:a.value?.toString()||"",disabled:e$1.isDisabled};e$1.validationBehavior==="native"&&(T.type="text",T.hidden=true,T.required=e$1.isRequired,T.onChange=()=>{});let L=a$6(e$1);return {labelProps:{...u,onClick:()=>{g.focusFirst();}},fieldProps:c(L,R,v,f,{onKeyDown($){e$1.onKeyDown&&e$1.onKeyDown($);},onKeyUp($){e$1.onKeyUp&&e$1.onKeyUp($);},style:{unicodeBidi:"isolate"}}),inputProps:T,descriptionProps:o,errorMessageProps:c$1,isInvalid:r,validationErrors:l,validationDetails:n}}function ot(e,a,t){let r=Qe(e,a,t);return r.inputProps.value=a.timeValue?.toString()||"",r}function Xe(){let{locale:e}=b$2(),a=a$i(re,"@react-aria/datepicker");return useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new pe(e,a)}},[e,a])}var pe=class{locale;dictionary;constructor(a,t){this.locale=a,this.dictionary=t;}of(a){return this.dictionary.getStringForLocale(a,this.locale)}};function he(e,a,t){let r=useRef(""),{locale:l,direction:n}=b$2(),u=Xe(),{ariaLabel:s,ariaLabelledBy:o,ariaDescribedBy:c$2,focusManager:m}=De.get(a),[f$1,h]=useState(null),D=e.isPlaceholder?"":e.text,y=useMemo(()=>a.dateFormatter.resolvedOptions(),[a.dateFormatter]),b=a$b({month:"long",timeZone:y.timeZone}),P=a$b({hour:"numeric",hour12:y.hour12,timeZone:y.timeZone});if(e.type==="month"&&!e.isPlaceholder){let i=b.format(a.dateValue);D=i!==D?`${D} \u2013 ${i}`:i;}else e.type==="hour"&&!e.isPlaceholder&&(D=P.format(a.dateValue));let{spinButtonProps:S}=a$c({value:e.value??void 0,textValue:D,minValue:e.minValue,maxValue:e.maxValue,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly||!e.isEditable,isRequired:a.isRequired,onIncrement:()=>{r.current="",a.increment(e.type);},onDecrement:()=>{r.current="",a.decrement(e.type);},onIncrementPage:()=>{r.current="",a.incrementPage(e.type);},onDecrementPage:()=>{r.current="",a.decrementPage(e.type);},onIncrementToMax:()=>{r.current="",a.incrementToMax(e.type);},onDecrementToMin:()=>{r.current="",a.decrementToMin(e.type);}}),F=useMemo(()=>new b$4(l,{maximumFractionDigits:0}),[l]),g=()=>{if(e.text===e.placeholder&&m.focusPrevious(),F.isValidPartialNumber(e.text)&&!a.isReadOnly&&!e.isPlaceholder){let i=e.text.slice(0,-1),V=F.parse(i);i=V===0?"":i,i.length===0||V===0?a.clearSegment(e.type):a.setSegment(e.type,V),r.current=i;}else (e.type==="dayPeriod"||e.type==="era")&&a.clearSegment(e.type);},v=i=>{if(i.key==="a"&&(d$3()?i.metaKey:i.ctrlKey)&&i.preventDefault(),!(i.ctrlKey||i.metaKey||i.shiftKey||i.altKey))switch(i.key){case "Backspace":case "Delete":{i.preventDefault(),i.stopPropagation(),g();break}}},{startsWith:w}=a$d({sensitivity:"base"}),R=a$b({hour:"numeric",hour12:true}),T=useMemo(()=>{let i=new Date;return i.setHours(0),R.formatToParts(i).find(V=>V.type==="dayPeriod").value},[R]),L=useMemo(()=>{let i=new Date;return i.setHours(12),R.formatToParts(i).find(V=>V.type==="dayPeriod").value},[R]),$=a$b({year:"numeric",era:"narrow",timeZone:"UTC"}),J=useMemo(()=>{if(e.type!=="era")return [];let i=toCalendar(new CalendarDate(1,1,1),a.calendar),V=a.calendar.getEras().map(x=>{let de=i.set({year:1,month:1,day:1,era:x}).toDate("UTC"),p=$.formatToParts(de).find(E=>E.type==="era").value;return {era:x,formatted:p}}),k=ga(V.map(x=>x.formatted));if(k)for(let x of V)x.formatted=x.formatted.slice(k);return V},[$,a.calendar,e.type]),O=i=>{if(a.isDisabled||a.isReadOnly)return;let V=r.current+i;switch(e.type){case "dayPeriod":if(w(T,i))a.setSegment("dayPeriod",0);else if(w(L,i))a.setSegment("dayPeriod",1);else break;m.focusNext();break;case "era":{let k=J.find(x=>w(x.formatted,i));k&&(a.setSegment("era",k.era),m.focusNext());break}case "day":case "hour":case "minute":case "second":case "month":case "year":{if(!F.isValidPartialNumber(V))return;let k=F.parse(V),x=k;if(e.maxValue!==void 0&&k>e.maxValue&&(x=F.parse(i)),isNaN(k))return;a.setSegment(e.type,x),e.maxValue!==void 0&&(+(k+"0")>e.maxValue||V.length>=String(e.maxValue).length)?(r.current="",m.focusNext()):r.current=V;break}}};useEffect(()=>{h(a$e(t.current));},[t]);let N=()=>{r.current="",t.current&&e$2(t.current,{containingElement:b$5(t.current)}),f$1?.defaultView?.getSelection()?.collapse(t.current);},Q=useRef(typeof document<"u"?document:null);Q.current=f$1,a$f(Q,"selectionchange",()=>{let i=f$1?.defaultView?.getSelection();i?.anchorNode&&e$1(t.current,i?.anchorNode)&&i.collapse(t.current);});let X=useRef("");a$f(t,"beforeinput",i=>{if(t.current)switch(i.preventDefault(),i.inputType){case "deleteContentBackward":case "deleteContentForward":F.isValidPartialNumber(e.text)&&!a.isReadOnly&&g();break;case "insertCompositionText":X.current=t.current.textContent,t.current.textContent=t.current.textContent;break;default:i.data!=null&&O(i.data);break}}),a$f(t,"input",i=>{let{inputType:V,data:k}=i;V==="insertCompositionText"&&(t.current&&(t.current.textContent=X.current),k!=null&&(w(T,k)||w(L,k))&&O(k));}),a$g(()=>{let i=t.current;return ()=>{f(a$e(i))===i&&(m.focusPrevious()||m.focusNext());}},[t,m]);let ie=g$1()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},oe=useMemo(()=>a.segments.find(i=>i.isEditable),[a.segments]);e!==oe&&!a.isInvalid&&(c$2=void 0);let le=c$1(),z=!a.isDisabled&&!a.isReadOnly&&e.isEditable,I=e.type==="literal"?"":u.of(e.type),U=a$h({"aria-label":`${I}${s?`, ${s}`:""}${o?", ":""}`,"aria-labelledby":o});if(e.type==="literal")return {segmentProps:{"aria-hidden":true}};let B={caretColor:"transparent"};if(n==="rtl"){B.unicodeBidi="embed";let i=y[e.type];(i==="numeric"||i==="2-digit")&&(B.direction="ltr");}return {segmentProps:c(S,U,{id:le,...ie,"aria-invalid":a.isInvalid?"true":void 0,"aria-describedby":c$2,"aria-readonly":a.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:z,suppressContentEditableWarning:z,spellCheck:z?"false":void 0,autoCorrect:z?"off":void 0,[parseInt(pa.version,10)>=17?"enterKeyHint":"enterkeyhint"]:z?"next":void 0,inputMode:a.isDisabled||e.type==="dayPeriod"||e.type==="era"||!z?void 0:"numeric",tabIndex:a.isDisabled?void 0:0,onKeyDown:v,onFocus:N,style:B,onPointerDown(i){i.stopPropagation();},onMouseDown(i){i.stopPropagation();}})}}function ga(e){e.sort();let a=e[0],t=e[e.length-1];for(let r=0;r<a.length;r++)if(a[r]!==t[r])return r;return 0}var ea={"ar-AE":{rangeOverflow:e=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${e.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:e=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${e.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."},"bg-BG":{rangeOverflow:e=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${e.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:e=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${e.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xED b\xFDt ${e.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:e=>`Hodnota mus\xED b\xFDt ${e.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."},"da-DK":{rangeOverflow:e=>`V\xE6rdien skal v\xE6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:e=>`V\xE6rdien skal v\xE6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."},"el-GR":{rangeOverflow:e=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${e.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:e=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${e.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xE4\xE4rtus peab olema ${e.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:e=>`V\xE4\xE4rtus peab olema ${e.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xEAtre ${e.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xEAtre ${e.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."},"he-IL":{rangeOverflow:e=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${e.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:e=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${e.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xE9rt\xE9knek ${e.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:e=>`Az \xE9rt\xE9knek ${e.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u5024\u306F ${e.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:e=>`\u5024\u306F ${e.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"},"ko-KR":{rangeOverflow:e=>`\uAC12\uC740 ${e.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:e=>`\uAC12\uC740 ${e.minValue} \uC774\uD6C4\uC5EC\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},"lt-LT":{rangeOverflow:e=>`Reik\u0161m\u0117 turi b\u016Bti ${e.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:e=>`Reik\u0161m\u0117 turi b\u016Bti ${e.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${e.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:e=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${e.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xE5 v\xE6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xE5 v\xE6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${e.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:e=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${e.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u0103 fie ${e.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:e=>`Valoarea trebuie s\u0103 fie ${e.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."},"ru-RU":{rangeOverflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${e.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${e.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xED by\u0165 ${e.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:e=>`Hodnota mus\xED by\u0165 ${e.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xE4rdet m\xE5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:e=>`V\xE4rdet m\xE5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u011Fer, ${e.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:e=>`De\u011Fer, ${e.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."},"uk-UA":{rangeOverflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${e.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${e.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."},"zh-CN":{rangeOverflow:e=>`\u503C\u5FC5\u987B\u662F ${e.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:e=>`\u503C\u5FC5\u987B\u662F ${e.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"},"zh-TW":{rangeOverflow:e=>`\u503C\u5FC5\u9808\u662F ${e.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:e=>`\u503C\u5FC5\u9808\u662F ${e.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"}};var wa=new a(ea);function Ta(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return e}function ta(e,a$1,t,r,l){let n=e!=null&&t!=null&&e.compare(t)>0,u=e!=null&&a$1!=null&&e.compare(a$1)<0,s=e!=null&&r?.(e)||false,o=n||u||s,c=[];if(o){let m=Ta(),f=a.getGlobalDictionaryForPackage("@react-stately/datepicker")||wa,h=new b$3(m,f),D=new DateFormatter(m,q({},l)),y=D.resolvedOptions().timeZone;u&&a$1!=null&&c.push(h.format("rangeUnderflow",{minValue:D.format(a$1.toDate(y))})),n&&t!=null&&c.push(h.format("rangeOverflow",{maxValue:D.format(t.toDate(y))})),s&&c.push(h.format("unavailableDate"));}return {isInvalid:o,validationErrors:c,validationDetails:{badInput:s,customError:false,patternMismatch:false,rangeOverflow:n,rangeUnderflow:u,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:false,valid:!o}}}var xa={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Sa={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function q(e,a){e={...a.shouldForceLeadingZeros?Sa:xa,...e};let r=a.granularity||"minute",l=Object.keys(e),n=l.indexOf(a.maxGranularity??"year");n<0&&(n=0);let u=l.indexOf(r);if(u<0&&(u=2),n>u)throw new Error("maxGranularity must be greater than granularity");let s=l.slice(n,u+1).reduce((c,m)=>(c[m]=e[m],c),{});return a.hourCycle!=null&&(s.hour12=a.hourCycle===12),s.timeZone=a.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&a.timeZone&&!a.hideTimeZone&&(s.timeZoneName="short"),a.showEra&&n===0&&(s.era="short"),s}function ge(e,a){if(e===null)return null;if(e)return toCalendar(e,a)}function ra(e,a,t,r){if(e)return ge(e,t);let l=toCalendar(now(r??getLocalTimeZone()).set({hour:0,minute:0,second:0,millisecond:0}),t);return a==="year"||a==="month"||a==="day"?toCalendarDate(l):r?l:toCalendarDateTime(l)}function na(e,a){let t=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&a&&!(a in e))throw new Error("Invalid granularity "+a+" for value "+e.toString());let[l,n]=useState([r,t]);e&&(l[0]!==r||l[1]!==t)&&n([r,t]),a||(a=e?r:l[0]);let u=e?t:l[1];return [a,u]}var Fa=new a({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"\xE1\xE1\xE1\xE1",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function ia(e,a,t){return e==="era"||e==="dayPeriod"?a:e==="year"||e==="month"||e==="day"?Fa.getStringForLocale(e,t):"\u2013\u2013"}var C=class e{calendar;era;year;month;day;hour;hourCycle;dayPeriod;minute;second;millisecond;offset;constructor(a,t,r){if(this.era=r?.era??null,this.calendar=a,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,this.hour!=null){let[l,n]=H(this.hour,t);this.dayPeriod=l,this.hour=n;}}copy(){let a=new e(this.calendar,this.hourCycle);return a.era=this.era,a.year=this.year,a.month=this.month,a.day=this.day,a.hour=this.hour,a.dayPeriod=this.dayPeriod,a.minute=this.minute,a.second=this.second,a.millisecond=this.millisecond,a.offset=this.offset,a}isComplete(a){return a.every(t=>this[t]!=null)}validate(a,t){return t.every(r=>{if((r==="hour"||r==="dayPeriod")&&"hour"in a){let[l,n]=H(a.hour,this.hourCycle);return this.dayPeriod===l&&this.hour===n}return this[r]===a[r]})}isCleared(a){return a.every(t=>this[t]===null)}set(a,t,r){let l=this.copy();return l[a]=t,a==="hour"&&l.dayPeriod==null&&"hour"in r&&(l.dayPeriod=H(r.hour,this.hourCycle)[0]),a==="year"&&l.era==null&&(l.era=r.era),a!=="second"&&a!=="literal"&&a!=="timeZoneName"&&(l.offset=null),l}clear(a){let t=this.copy();return t[a]=null,a==="year"&&(t.era=null),t.offset=null,t}cycle(a,t,r,l){let n=this.copy();if(n[a]==null&&a!=="dayPeriod"&&a!=="era"){if(a==="hour"&&"hour"in r){let[u,s]=H(r.hour,this.hourCycle);n.dayPeriod=u,n.hour=s;}else n[a]=r[a];return a==="year"&&n.era==null&&(n.era=r.era),n}switch(a){case "era":{let u=this.calendar.getEras(),s=u.indexOf(n.era);s=Z(s,t,0,u.length-1),n.era=u[s];break}case "year":{let u=new CalendarDate(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);u=u.cycle(a,t,{round:a==="year"}),n.era=u.era,n.year=u.year;break}case "month":n.month=Z(n.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case "day":n.day=Z(n.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case "hour":{let u=l.some(s=>["year","month","day"].includes(s));if("timeZone"in r&&(!u||n.year!=null&&n.month!=null&&n.day!=null)){let s=this.toValue(r);s=s.cycle("hour",t,{hourCycle:this.hourCycle==="h12"?12:24,round:false});let[o,c]=H(s.hour,this.hourCycle);n.hour=c,n.dayPeriod=o,n.offset=s.offset;}else {let s=n.hour??0,o=this.getSegmentLimits("hour");n.hour=Z(s,t,o.minValue,o.maxValue),n.dayPeriod==null&&"hour"in r&&(n.dayPeriod=H(r.hour,this.hourCycle)[0]);}break}case "dayPeriod":n.dayPeriod=Z(n.dayPeriod??0,t,0,1);break;case "minute":n.minute=Z(n.minute??0,t,0,59,true);break;case "second":n.second=Z(n.second??0,t,0,59,true);break}return n}toValue(a){if("hour"in a){let t=this.hour;t!=null?t=Oa(t,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(t=this.dayPeriod===1?12:0);let r=a.set({era:this.era??a.era,year:this.year??a.year,month:this.month??a.month,day:this.day??a.day,hour:t??a.hour,minute:this.minute??a.minute,second:this.second??a.second,millisecond:this.millisecond??a.millisecond});return "offset"in r&&this.offset!=null&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}else return a.set({era:this.era??a.era,year:this.year??a.year,month:this.month??a.month,day:this.day??a.day})}getSegmentLimits(a){switch(a){case "era":{let t=this.calendar.getEras();return {value:this.era!=null?t.indexOf(this.era):t.length-1,minValue:0,maxValue:t.length-1}}case "year":return {value:this.year,minValue:1,maxValue:9999};case "month":return {value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case "day":return {value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case "dayPeriod":return {value:this.dayPeriod,minValue:0,maxValue:1};case "hour":{let t=0,r=23;return this.hourCycle==="h12"?(t=1,r=12):this.hourCycle==="h11"&&(t=0,r=11),{value:this.hour,minValue:t,maxValue:r}}case "minute":return {value:this.minute,minValue:0,maxValue:59};case "second":return {value:this.second,minValue:0,maxValue:59}}}};function Z(e,a,t,r,l=false){if(l){e+=Math.sign(a),e<t&&(e=r);let n=Math.abs(a);a>0?e=Math.ceil(e/n)*n:e=Math.floor(e/n)*n,e>r&&(e=t);}else e+=a,e<t?e=r-(t-e-1):e>r&&(e=t+(e-r-1));return e}function H(e,a){let t=e>=12?1:0;switch(a){case "h11":e>=12&&(e-=12);break;case "h12":e===0?e=12:e>12&&(e-=12);break;case "h23":t=null;break;case "h24":e+=1,t=null;}return [t,e]}function Oa(e,a,t){switch(t){case "h11":a===1&&(e+=12);break;case "h12":e===12&&(e=0),a===1&&(e+=12);break;case "h24":e-=1;break}return e}var Ve={year:true,month:true,day:true,hour:true,minute:true,second:true,dayPeriod:true,era:true},oa={year:5,month:2,day:7,hour:2,minute:15,second:15},Ma={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function mr(e){let{locale:a,createCalendar:t,hideTimeZone:r,isDisabled:l=false,isReadOnly:n=false,isRequired:u=false,minValue:s,maxValue:o,isDateUnavailable:c}=e,m=e.value||e.defaultValue||e.placeholderValue||null,[f,h]=na(m,e.granularity),D=h||"UTC";if(m&&!(f in m))throw new Error("Invalid granularity "+f+" for value "+m.toString());let[y,b]=useMemo(()=>{let p=new DateFormatter(a,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return [t(p.calendar),p.hourCycle]},[a,e.hourCycle,t]),[P,S]=a$7(e.value,e.defaultValue??null,e.onChange),[F]=useState(P),g=useMemo(()=>ge(P,y)??null,[P,y]),[v,w]=useState(()=>new C(y,b,g)),R=y.identifier==="gregory"&&v.era==="BC",T=useMemo(()=>({granularity:f,maxGranularity:e.maxGranularity??"year",timeZone:h,hideTimeZone:r,hourCycle:e.hourCycle,showEra:R,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,h,r,R]),L=useMemo(()=>q({},T),[T]),$=useMemo(()=>new DateFormatter(a,L),[a,L]),J=useMemo(()=>$.resolvedOptions(),[$]),O=useMemo(()=>ra(e.placeholderValue,f,y,h),[e.placeholderValue,f,y,h]),N=useMemo(()=>{let d=b==="h11"||b==="h12",p=["era","year","month","day","hour",...d?["dayPeriod"]:[],"minute","second"],E=p.indexOf(e.maxGranularity||"era"),se=p.indexOf(f==="hour"&&d?"dayPeriod":f);return p.slice(E,se+1)},[e.maxGranularity,f,b]),[Q,X]=useState(g),[ie,oe]=useState(y),[le,z]=useState(b);(g!==Q||b!==le||!isEqualCalendar(y,ie))&&(v=new C(y,b,g),X(g),oe(y),z(b),w(v));let I=d=>{if(!(e.isDisabled||e.isReadOnly))if(d==null||d instanceof C&&d.isCleared(N))w(new C(y,b,g)),S(null);else if(!(d instanceof C))d=toCalendar(d,m?.calendar||new GregorianCalendar),w(new C(y,b,g)),S(d);else {if(d.isComplete(N)){let p=d.toValue(g??O);if(d.validate(p,N)){let E=toCalendar(p,m?.calendar||new GregorianCalendar);if(!P||E.compare(P)!==0){w(new C(y,b,g)),S(E);return}}}w(d);}},U=useMemo(()=>v.toValue(g??O).toDate(D),[v,D,g,O]),B=useMemo(()=>Ea(U,v,$,J,y,a,f),[U,$,J,v,y,a,f]),i=(d,p)=>{I(v.cycle(d,p,O,N));},V=useMemo(()=>ta(P,s,o,c,T),[P,s,o,c,T]),k=d({...e,value:P,builtinValidation:V}),x=k.displayValidation.isInvalid,de=e.validationState||(x?"invalid":null);return {...k,value:g,defaultValue:e.defaultValue??F,dateValue:U,calendar:y,setValue:I,segments:B,dateFormatter:$,validationState:de,isInvalid:x,granularity:f,maxGranularity:e.maxGranularity??"year",isDisabled:l,isReadOnly:n,isRequired:u,increment(d){i(d,1);},decrement(d){i(d,-1);},incrementPage(d){i(d,oa[d]||1);},decrementPage(d){i(d,-(oa[d]||1));},incrementToMax(d){let p=d==="hour"&&b==="h12"?11:v.getSegmentLimits(d).maxValue;I(v.set(d,p,O));},decrementToMin(d){let p=d==="hour"&&b==="h12"?12:v.getSegmentLimits(d).minValue;I(v.set(d,p,O));},setSegment(d,p){I(v.set(d,p,O));},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&v.isComplete(N)){let d=v.toValue(g??O),p=toCalendar(d,m?.calendar||new GregorianCalendar);(!P||p.compare(P)!==0)&&S(p),w(new C(y,b,g));}},clearSegment(d){let p=v;d!=="timeZoneName"&&d!=="literal"&&(p=v.clear(d)),I(p);},formatValue(d){if(!g)return "";let p=q(d,T);return new DateFormatter(a,p).format(U)},getDateFormatter(d,p){let E={...T,...p},se=q({},E);return new DateFormatter(d,se)}}}function Ea(e,a,t,r,l,n,u){let s=["hour","minute","second"],o=t.formatToParts(e),c=new a$8(n,{useGrouping:false}),m=new a$8(n,{useGrouping:false,minimumIntegerDigits:2});for(let h of o)if(h.type==="year"||h.type==="month"||h.type==="day"||h.type==="hour"){let D=a[h.type]??0;r[h.type]==="2-digit"?h.value=m.format(D):h.value=c.format(D);}let f=[];for(let h of o){let D=Ma[h.type]||h.type,y=Ve[D];D==="era"&&l.getEras().length===1&&(y=false);let b=Ve[D]&&a[h.type]==null,P=Ve[D]?ia(D,h.value,n):null,S={type:D,text:b?P:h.value,...a.getSegmentLimits(D),isPlaceholder:b,placeholder:P,isEditable:y};D==="hour"?(f.push({type:"literal",text:"\u2066",isPlaceholder:false,placeholder:"",isEditable:false}),f.push(S),D===u&&f.push({type:"literal",text:"\u2069",isPlaceholder:false,placeholder:"",isEditable:false})):s.includes(D)&&D===u?(f.push(S),f.push({type:"literal",text:"\u2069",isPlaceholder:false,placeholder:"",isEditable:false})):f.push(S);}return f}var la=a$1({defaultClassName:"_1lrwegk0",variantClassNames:{isSeparator:{true:"_1yep5z610y"}},defaultVariants:{},compoundVariants:[]}),hr="_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6kj _1yep5z6kk _1yep5z6kl";var ke="\u2013";function wr({segment:e,state:a}){let t=pa.useRef(null),{segmentProps:r}=he(e,a,t),{focusProps:l,isFocused:n}=a$9(),u=useMemo(()=>{let{text:s,type:o}=e;switch(o){case "hour":return s.replaceAll(ke,"H");case "minute":return s.replaceAll(ke,"M");case "second":return s.replaceAll(ke,"S");default:return s}},[e]);return jsx(a$a,{...c(r,l),typography:"label.md.medium",color:e.isPlaceholder?"text.placeholder":"text.primary",backgroundColor:n?"support.info.subtle":void 0,ref:t,marginLeft:e.type==="timeZoneName"?"xs":void 0,className:la({isSeparator:e.text===":"||e.text==="/"}),children:e.isPlaceholder?u:e.text})}export{Qe as a,ot as b,mr as c,hr as d,wr as e};
@@ -0,0 +1,10 @@
1
+ import {a as a$4,d as d$1,c as c$3,b as b$4}from'./chunk-I3YGB2BE.mjs';import {b as b$3}from'./chunk-WL27JGVG.mjs';import {d,g,b}from'./chunk-B7PSE5KC.mjs';import {b as b$2,a as a$7,e as e$1}from'./chunk-6IRWW75G.mjs';import {a as a$6}from'./chunk-D3IZ4HBL.mjs';import {a as a$5}from'./chunk-RXSYDMT6.mjs';import {a}from'./chunk-X3AXUU3H.mjs';import {c as c$2,e}from'./chunk-Y4DRSGEJ.mjs';import {a as a$3}from'./chunk-RT4LMB6X.mjs';import {g as g$1,k,t}from'./chunk-MRJFGHFW.mjs';import {c,b as b$1}from'./chunk-TZ4MVY4E.mjs';import {c as c$1,a as a$2}from'./chunk-JDLUGVXG.mjs';import {f,a as a$1,g as g$2,h}from'./chunk-AUOQSTS5.mjs';import {createContext,useRef,useState,useEffect,useCallback,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var ie={"ar-AE":{collectionLabel:"\u0645\u0642\u062A\u0631\u062D\u0627\u062A"},"bg-BG":{collectionLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},"cs-CZ":{collectionLabel:"N\xE1vrhy"},"da-DK":{collectionLabel:"Forslag"},"de-DE":{collectionLabel:"Empfehlungen"},"el-GR":{collectionLabel:"\u03A0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2"},"en-US":{collectionLabel:"Suggestions"},"es-ES":{collectionLabel:"Sugerencias"},"et-EE":{collectionLabel:"Soovitused"},"fi-FI":{collectionLabel:"Ehdotukset"},"fr-FR":{collectionLabel:"Suggestions"},"he-IL":{collectionLabel:"\u05D4\u05E6\u05E2\u05D5\u05EA"},"hr-HR":{collectionLabel:"Prijedlozi"},"hu-HU":{collectionLabel:"Javaslatok"},"it-IT":{collectionLabel:"Suggerimenti"},"ja-JP":{collectionLabel:"\u5019\u88DC"},"ko-KR":{collectionLabel:"\uC81C\uC548"},"lt-LT":{collectionLabel:"Pasi\u016Blymai"},"lv-LV":{collectionLabel:"Ieteikumi"},"nb-NO":{collectionLabel:"Forslag"},"nl-NL":{collectionLabel:"Suggesties"},"pl-PL":{collectionLabel:"Sugestie"},"pt-BR":{collectionLabel:"Sugest\xF5es"},"pt-PT":{collectionLabel:"Sugest\xF5es"},"ro-RO":{collectionLabel:"Sugestii"},"ru-RU":{collectionLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},"sk-SK":{collectionLabel:"N\xE1vrhy"},"sl-SI":{collectionLabel:"Predlogi"},"sr-SP":{collectionLabel:"Predlozi"},"sv-SE":{collectionLabel:"F\xF6rslag"},"tr-TR":{collectionLabel:"\xD6neriler"},"uk-UA":{collectionLabel:"\u041F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457"},"zh-CN":{collectionLabel:"\u5EFA\u8BAE"},"zh-TW":{collectionLabel:"\u5EFA\u8B70"}};function O(i,n){let{inputRef:l,collectionRef:o,filter:c$4,disableAutoFocusFirst:m=false,disableVirtualFocus:E=false}=i,b=c$1(),a=useRef(void 0),s=useRef(false),r=useRef(null),se=c$2()==="virtual"&&(g$1()||k()),[P,pe]=useState(!se&&!E),[D,K]=useState(false),[de,M]=useState(false);useEffect(()=>()=>clearTimeout(a.current),[]);let H=t(e$1=>{!e$1.isTrusted&&P&&l.current&&f(a$1(l.current))!==l.current&&e()!=="touch"&&l.current.focus();let t=g$2(e$1);e$1.isTrusted||!t||r.current===t.id||(clearTimeout(a.current),t!==o.current?s.current?(r.current=t.id,a.current=setTimeout(()=>{n.setFocusedNodeId(t.id);},500)):(r.current=t.id,n.setFocusedNodeId(t.id)):r.current&&!h(r.current,a$1(o.current))&&(r.current=null,n.setFocusedNodeId(null)),s.current=false);}),[F,fe]=useState(null),U=useCallback(e=>{fe(e),e!=null?(e.getAttribute("tabindex")!=null&&pe(false),K(true)):K(false);},[]);a$2(()=>(F?.addEventListener("focusin",H),()=>{F?.removeEventListener("focusin",H);}),[F]);let me=a$3(useMemo(()=>b$1(o,U),[o,U])),be=useCallback(()=>{if(!o.current){M(true);return}s.current=true,o.current?.dispatchEvent(new CustomEvent(b$2,{cancelable:true,bubbles:true,detail:{focusStrategy:"first"}}));},[o]),x=useCallback(e=>{M(false),a$4(f(a$1(l.current))),r.current=null,n.setFocusedNodeId(null);let t=new CustomEvent(a$7,{cancelable:true,bubbles:true,detail:{clearFocusKey:e}});clearTimeout(a.current),s.current=false,o.current?.dispatchEvent(t);},[o,n]),p=useRef("");a$5(l,"beforeinput",e=>{let{inputType:t}=e;p.current=t;});let ve=e=>{(p.current==="insertText"||p.current==="insertCompositionText"||p.current==="insertFromComposition")&&!m?be():p.current&&(p.current.includes("insert")||p.current.includes("delete")||p.current.includes("history"))&&(x(true),d$1(a$1(l.current))===l.current&&c$3(l.current,null)),n.setInputValue(e);},B=useRef(null),Ee=e=>{if(B.current=g$2(e.nativeEvent),e.nativeEvent.isComposing)return;let t=r.current;switch(t!==null&&a$1(l.current).getElementById(t)==null&&(r.current=null,t=null),e.key){case "a":if(e$1(e))return;break;case "Escape":if(e.isDefaultPrevented())return;break;case " ":return;case "Tab":"continuePropagation"in e&&e.continuePropagation();return;case "Home":case "End":case "PageDown":case "PageUp":case "ArrowUp":case "ArrowDown":case "ArrowRight":case "ArrowLeft":{if((e.key==="Home"||e.key==="End")&&t==null&&e.shiftKey)return;if(e.key==="ArrowRight"||e.key==="ArrowLeft"){if(t==null){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let A=new CustomEvent(b$2,{cancelable:true,bubbles:true});o.current?.dispatchEvent(A);break}}e.isPropagationStopped()||e.stopPropagation();let d=true;if(o.current!==null)if(t==null)d=o.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||false;else {let A=h(t,a$1(o.current));A&&(d=A?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||false);}if(d)switch(e.key){case "ArrowLeft":case "ArrowRight":{x();break}case "Enter":t!=null&&h(t,a$1(l.current))?.dispatchEvent(new PointerEvent("click",e.nativeEvent));break}else e.preventDefault();},S=t(e=>{if(g$2(e)===B.current){e.stopImmediatePropagation();let t=r.current;t==null?o.current?.dispatchEvent(new KeyboardEvent(e.type,e)):h(t,a$1(o.current))?.dispatchEvent(new KeyboardEvent(e.type,e));}});useEffect(()=>{let e=a$1(l.current);return e.addEventListener("keyup",S,true),()=>{e.removeEventListener("keyup",S,true);}},[S]);let Ae=b$3(ie,"@react-aria/autocomplete"),ge=a$6({id:b,"aria-label":Ae.format("collectionLabel")}),Pe=useCallback((e,t)=>c$4?c$4(e,n.inputValue,t):true,[n.inputValue,c$4]),Fe=e=>{if(!e.isTrusted)return;let t=r.current?h(r.current,a$1(l.current)):null;t&&b$4(t,e.relatedTarget);},Te=e=>{if(!e.isTrusted)return;if(r.current?h(r.current,a$1(l.current)):null){let d=g$2(e.nativeEvent);queueMicrotask(()=>{b$4(d,o.current),c$3(o.current,d);});}},Le=e=>{e.button!==0||e.pointerType==="touch"||r.current==null||l.current==null||g$2(e)===l.current&&x();},h$1={value:n.inputValue,onChange:ve},ye={onKeyDown:Ee,"aria-activedescendant":n.focusedNodeId??void 0,onBlur:Fe,onFocus:Te,onPointerDown:Le};return h$1={...h$1,...P&&D&&ye,enterKeyHint:"go","aria-controls":D?b:void 0,"aria-autocomplete":"list",autoCorrect:"off",spellCheck:"false",autoComplete:"off"},{inputProps:h$1,collectionProps:c(ge,{shouldUseVirtualFocus:P,disallowTypeAhead:P,autoFocus:de?"first":false}),collectionRef:me,filter:c$4!=null?Pe:void 0}}function w(i){let{onInputChange:n,inputValue:l,defaultInputValue:o=""}=i,c=s=>{n&&n(s);},[m,E]=useState(null),[b,a$1]=a(l,o,c);return {inputValue:b,setInputValue:a$1,focusedNodeId:m,setFocusedNodeId:E}}var Se=createContext(null),he=createContext(null),Ie=createContext(null),Ve=createContext(null);function Ft(i){let n=d(Se,i.slot);i=c(n,i);let{filter:l,disableAutoFocusFirst:o}=i,c$1=w(i),m=useRef(null),E=useRef(null),{inputProps:b$1,collectionProps:a,collectionRef:s,filter:r}=O({...g(i),filter:l,disableAutoFocusFirst:o,inputRef:m,collectionRef:E},c$1);return jsx(b,{values:[[he,c$1],[Ve,{...b$1,ref:m}],[Ie,{...a,filter:r,ref:s}]],children:i.children})}export{he as a,Ie as b,Ve as c,Ft as d};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var y=new Map,d=false;try{d=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero";}catch{}var g=false;try{g=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit";}catch{}var P={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}},u=class{numberFormatter;options;constructor(t,e={}){this.numberFormatter=V(t,e),this.options=e;}format(t){let e="";if(!d&&this.options.signDisplay!=null?e=z(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!g){let{unit:i,unitDisplay:n="short",locale:s}=this.resolvedOptions();if(!i)return e;let a=P[i]?.[n];e+=a[s]||a.default;}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return `${this.format(t)} \u2013 ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),n=this.numberFormatter.formatToParts(e);return [...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...n.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return !d&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!g&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}};function V(r,t={}){let{numberingSystem:e}=t;if(e&&r.includes("-nu-")&&(r.includes("-u-")||(r+="-u-"),r+=`-nu-${e}`),t.style==="unit"&&!g){let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!P[s]?.[a])throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"};}let i=r+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(y.has(i))return y.get(i);let n=new Intl.NumberFormat(r,t);return y.set(i,n),n}function z(r,t,e){if(t==="auto")return r.format(e);if(t==="never")return r.format(Math.abs(e));{let i=false;if(t==="always"?i=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):i=e>0),i){let n=r.format(-e),s=r.format(e),a=n.replace(s,"").replace(/\u200e|\u061C/,"");return [...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),n.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return r.format(e)}}var W=new RegExp("^.*\\(.*\\).*$"),_=["latn","arab","hanidec","deva","beng","fullwide"],f=class{locale;options;constructor(t,e={}){this.locale=t,this.options=e;}parse(t){return F(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,e,i){return F(this.locale,this.options,t).isValidPartialNumber(t,e,i)}getNumberingSystem(t){return F(this.locale,this.options,t).options.numberingSystem}},w=new Map;function F(r,t,e){let i=D(r,t);if(!r.includes("-nu-")&&!i.isValidPartialNumber(e)){for(let n of _)if(n!==i.options.numberingSystem){let s=D(r+(r.includes("-u-")?"-nu-":"-u-nu-")+n,t);if(s.isValidPartialNumber(e))return s}}return i}function D(r,t){let e=r+(t?Object.entries(t).sort((n,s)=>n[0]<s[0]?-1:1).join():""),i=w.get(e);return i||(i=new N(r,t),w.set(e,i)),i}var N=class{formatter;options;symbols;locale;constructor(t,e={}){this.locale=t,e.roundingIncrement!==1&&e.roundingIncrement!=null&&(e.maximumFractionDigits==null&&e.minimumFractionDigits==null?(e.maximumFractionDigits=0,e.minimumFractionDigits=0):e.maximumFractionDigits==null?e.maximumFractionDigits=e.minimumFractionDigits:e.minimumFractionDigits==null&&(e.minimumFractionDigits=e.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,e),this.options=this.formatter.resolvedOptions(),this.symbols=L(t,this.formatter,this.options,e),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");}parse(t){let e=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(t);if(!e&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let a=i.indexOf(".");a===-1&&(a=i.length),i=i.replace(".",""),a-2===0?i=`0.${i}`:a-2===-1?i=`0.0${i}`:a-2===-2?i="0.00":i=`${i.slice(0,a-2)}.${i.slice(a-2)}`,s>-1&&(i=`-${i}`);}let n=i?+i:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){let s={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new f(this.locale,s).parse(new u(this.locale,s).format(n))}return this.options.currencySign==="accounting"&&W.test(t)&&(n=-1*n),n}sanitize(t){let e=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(i=>i.unit===t)?this.symbols.noNumeralUnits.find(i=>i.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=l(t,",",this.symbols.decimal),t=l(t,"\u060C",this.symbols.decimal)),this.symbols.group&&e&&(t=l(t,".",this.symbols.group))),this.symbols.group==="\u2019"&&t.includes("'")&&e&&(t=l(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("\u2019")&&e&&(t=l(t,"\u2019",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&e&&(t=l(t," ",this.symbols.group),t=l(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,e=-1/0,i=1/0){let n=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&e<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&i>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?false:(this.symbols.group&&n&&(t=l(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}},I=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),R=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function L(r,t,e,i){let n=new Intl.NumberFormat(r,{...e,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:true}),s=n.formatToParts(-10000.111),a=n.formatToParts(10000.111),b=R.map(o=>n.formatToParts(o)),E=b.map((o,m)=>{let x=o.find(p=>p.type==="unit");return x&&!o.some(p=>p.type==="integer"||p.type==="fraction")?{unit:x.value,value:R[m]}:null}).filter(o=>!!o),$=s.find(o=>o.type==="minusSign")?.value??"-",c=a.find(o=>o.type==="plusSign")?.value;!c&&(i?.signDisplay==="exceptZero"||i?.signDisplay==="always")&&(c="+");let T=new Intl.NumberFormat(r,{...e,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(o=>o.type==="decimal")?.value,j=s.find(o=>o.type==="group")?.value,C=s.filter(o=>!I.has(o.type)).map(o=>O(o.value)),G=b.flatMap(o=>o.filter(m=>!I.has(m.type)).map(m=>O(m.value))),S=[...new Set([...C,...G])].sort((o,m)=>m.length-o.length),M=S.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${S.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),h=[...new Intl.NumberFormat(e.locale,{useGrouping:false}).format(9876543210)].reverse(),U=new Map(h.map((o,m)=>[o,m])),A=new RegExp(`[${h.join("")}]`,"g");return {minusSign:$,plusSign:c,decimal:T,group:j,literals:M,numeral:A,numerals:h,index:o=>String(U.get(o)),noNumeralUnits:E}}function l(r,t,e){return r.replaceAll?r.replaceAll(t,e):r.split(t).join(e)}function O(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}export{u as a,f as b};
@@ -0,0 +1,10 @@
1
+ import {a as a$2}from'./chunk-XTH6B5FE.mjs';import {i,c as c$1}from'./chunk-Y4DRSGEJ.mjs';import {c,b,k as k$1,j}from'./chunk-MRJFGHFW.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {e,f,a as a$1,g,b as b$1}from'./chunk-AUOQSTS5.mjs';import $,{useRef,useContext,useMemo,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var K=$.createContext(null),O="react-aria-focus-scope-restore",m=null;function he(e){let{children:t,contain:n,restoreFocus:r,autoFocus:s,ownerDocument:o}=e,f$1=useRef(null),l=useRef(null),i=useRef([]),{parentNode:a$2}=useContext(K)||{},c=useMemo(()=>new C({scopeRef:i}),[i]);a(()=>{let d=a$2||E.root;if(E.getTreeNode(d.scopeRef)&&m&&!k(m,d.scopeRef)){let p=E.getTreeNode(m);p&&(d=p);}d.addChild(c),E.addNode(c);},[c,a$2]),a(()=>{let d=E.getTreeNode(i);d&&(d.contain=!!n);},[n]),a(()=>{let d=f$1.current?.nextSibling,p=[],L=A=>A.stopPropagation();for(;d&&d!==l.current;)p.push(d),d.addEventListener(O,L),d=d.nextSibling;return i.current=p,()=>{for(let A of p)A.removeEventListener(O,L);}},[t]),ue(i,r,n),oe(i,n),ae(i,r,n,o),le(i,s),useEffect(()=>{let d=f(a$1(i.current?i.current[0]:void 0)),p=null;if(h(d,i.current)){for(let L of E.traverse())L.scopeRef&&h(d,L.scopeRef.current)&&(p=L);p===E.getTreeNode(i)&&(m=p.scopeRef);}},[i]),a(()=>()=>{let d=E.getTreeNode(i)?.parent?.scopeRef??null;(i===m||k(i,m))&&(!d||E.getTreeNode(d))&&(m=d),E.removeTreeNode(i);},[i]);let u=useMemo(()=>te(i),[]),b=useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return jsxs(K.Provider,{value:b,children:[jsx("span",{"data-focus-scope-start":true,hidden:true,ref:f$1}),t,jsx("span",{"data-focus-scope-end":true,hidden:true,ref:l})]})}function ge(){return useContext(K)?.focusManager}function te(e){return {focusNext(t={}){let n=e.current,{from:r,tabbable:s,wrap:o,accept:f$1}=t,l=r||f(a$1(n[0]??void 0)),i=n[0].previousElementSibling,a=R(n),c=v(a,{tabbable:s,accept:f$1},n);c.currentNode=h(l,n)?l:i;let u=c.nextNode();return !u&&o&&(c.currentNode=i,u=c.nextNode()),u&&T(u,true),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:s,wrap:o,accept:f$1}=t,l=r||f(a$1(n[0]??void 0)),i=n[n.length-1].nextElementSibling,a=R(n),c=v(a,{tabbable:s,accept:f$1},n);c.currentNode=h(l,n)?l:i;let u=c.previousNode();return !u&&o&&(c.currentNode=i,u=c.previousNode()),u&&T(u,true),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:s}=t,o=R(n),f=v(o,{tabbable:r,accept:s},n);f.currentNode=n[0].previousElementSibling;let l=f.nextNode();return l&&T(l,true),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:s}=t,o=R(n),f=v(o,{tabbable:r,accept:s},n);f.currentNode=n[n.length-1].nextElementSibling;let l=f.previousNode();return l&&T(l,true),l}}}function R(e){return e[0].parentElement}function x(e){let t=E.getTreeNode(m);for(;t&&t.scopeRef!==e;){if(t.contain)return false;t=t.parent;}return true}function ne(e){if(!e.form)return Array.from(a$1(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);let t=e.form.elements.namedItem(e.name),n=b$1(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function re(e){if(e.checked)return true;let t=ne(e);return t.length>0&&!t.some(n=>n.checked)}function oe(e,t){let n=useRef(void 0),r=useRef(void 0);a(()=>{let s=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let o=a$1(s?s[0]:void 0),f$1=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!x(e)||a.isComposing)return;let c=f(o),u=e.current;if(!u||!h(c,u))return;let b=R(u),d=v(b,{tabbable:true},u);if(!c)return;d.currentNode=c;let p=a.shiftKey?d.previousNode():d.nextNode();p||(d.currentNode=a.shiftKey?u[u.length-1].nextElementSibling:u[0].previousElementSibling,p=a.shiftKey?d.previousNode():d.nextNode()),a.preventDefault(),p&&(T(p,true),p instanceof b$1(p).HTMLInputElement&&p.select());},l=a=>{(!m||k(m,e))&&h(g(a),e.current)?(m=e,n.current=g(a)):x(e)&&!w(g(a),e)?n.current?n.current.focus():m&&m.current&&P(m.current):x(e)&&(n.current=g(a));},i=a=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=c$1(),u=(c==="virtual"||c===null)&&k$1()&&j(),b=f(o);if(!u&&b&&x(e)&&!w(b,e)){m=e;let d=g(a);d&&d.isConnected?(n.current=d,n.current?.focus()):m.current&&P(m.current);}});};return o.addEventListener("keydown",f$1,false),o.addEventListener("focusin",l,false),s?.forEach(a=>a.addEventListener("focusin",l,false)),s?.forEach(a=>a.addEventListener("focusout",i,false)),()=>{o.removeEventListener("keydown",f$1,false),o.removeEventListener("focusin",l,false),s?.forEach(a=>a.removeEventListener("focusin",l,false)),s?.forEach(a=>a.removeEventListener("focusout",i,false));}},[e,t]),a(()=>()=>{r.current&&cancelAnimationFrame(r.current);},[r]);}function Z(e){return w(e)}function h(e$1,t){return !e$1||!t?false:t.some(n=>e(n,e$1))}function w(e,t=null){if(e instanceof b$1(e).Element&&e.closest("[data-react-aria-top-layer]"))return true;for(let{scopeRef:n}of E.traverse(E.getTreeNode(t)))if(n&&h(e,n.current))return true;return false}function we(e){return w(e,m)}function k(e,t){let n=E.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return true;n=n.parent;}return false}function T(e,t=false){if(e!=null&&!t)try{i(e);}catch{}else if(e!=null)try{e.focus();}catch{}}function ee(e,t=true){let n=e[0].previousElementSibling,r=R(e),s=v(r,{tabbable:t},e);s.currentNode=n;let o=s.nextNode();return t&&!o&&(r=R(e),s=v(r,{tabbable:false},e),s.currentNode=n,o=s.nextNode()),o}function P(e,t=true){T(ee(e,t));}function le(e,t){let n=$.useRef(t);useEffect(()=>{if(n.current){m=e;let r=a$1(e.current?e.current[0]:void 0);!h(f(r),m.current)&&e.current&&P(e.current);}n.current=false;},[e]);}function ue(e,t,n){a(()=>{if(t||n)return;let r=e.current,s=a$1(r?r[0]:void 0),o=f=>{let l=g(f);h(l,e.current)?m=e:Z(l)||(m=null);};return s.addEventListener("focusin",o,false),r?.forEach(f=>f.addEventListener("focusin",o,false)),()=>{s.removeEventListener("focusin",o,false),r?.forEach(f=>f.removeEventListener("focusin",o,false));}},[e,t,n]);}function X(e){let t=E.getTreeNode(m);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return false;t=t.parent;}return t?.scopeRef===e}function ae(e,t,n,r){let s=useRef(typeof document<"u"?f(r??a$1(e.current?e.current[0]:void 0)):null);a(()=>{let o=e.current,f$1=a$1(o?o[0]:void 0);if(!t||n)return;let l=()=>{(!m||k(m,e))&&h(f(f$1),e.current)&&(m=e);};return f$1.addEventListener("focusin",l,false),o?.forEach(i=>i.addEventListener("focusin",l,false)),()=>{f$1.removeEventListener("focusin",l,false),o?.forEach(i=>i.removeEventListener("focusin",l,false));}},[e,n]),a(()=>{let o=a$1(e.current?e.current[0]:void 0);if(!t)return;let f$1=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!x(e)||l.isComposing)return;let i=f(o);if(!i||!w(i,e)||!X(e))return;let a=E.getTreeNode(e);if(!a)return;let c=a.nodeToRestore,u=v(o.body,{tabbable:true});u.currentNode=i;let b=l.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,a.nodeToRestore=void 0),(!b||!w(b,e))&&c){u.currentNode=c;do b=l.shiftKey?u.previousNode():u.nextNode();while(w(b,e));l.preventDefault(),l.stopPropagation(),b?T(b,true):Z(c)?T(c,true):i.blur();}};return n||o.addEventListener("keydown",f$1,true),()=>{n||o.removeEventListener("keydown",f$1,true);}},[e,t,n]),a(()=>{let o=a$1(e.current?e.current[0]:void 0);if(!t)return;let f$1=E.getTreeNode(e);if(f$1)return f$1.nodeToRestore=s.current??void 0,()=>{let l=E.getTreeNode(e);if(!l)return;let i=l.nodeToRestore,a=f(o);if(t&&i&&(a&&w(a,e)||a===o.body&&X(e))){let c=E.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let u=c.getTreeNode(e);for(;u;){if(u.nodeToRestore&&u.nodeToRestore.isConnected){B(u.nodeToRestore);return}u=u.parent;}for(u=c.getTreeNode(e);u;){if(u.scopeRef&&u.scopeRef.current&&E.getTreeNode(u.scopeRef)){let b=ee(u.scopeRef.current,true);B(b);return}u=u.parent;}}});}}},[e,t]);}function B(e){e.dispatchEvent(new CustomEvent(O,{bubbles:true,cancelable:true}))&&T(e);}function v(e$1,t,n){let r=t?.tabbable?c:b,s=e$1?.nodeType===Node.ELEMENT_NODE?e$1:null,o=a$1(s),f=a$2(o,e$1||o,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return e(t?.from,l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!re(l)||f.currentNode.tagName==="INPUT"&&f.currentNode.type==="radio"&&f.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:r(l)&&(!n||h(l,n))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(f.currentNode=t.from),f}function Se(e$1,t={}){return {focusNext(n={}){let r=e$1.current;if(!r)return null;let{from:s,tabbable:o=t.tabbable,wrap:f$1=t.wrap,accept:l=t.accept}=n,i=s||f(a$1(r)),a=v(r,{tabbable:o,accept:l});e(r,i)&&(a.currentNode=i);let c=a.nextNode();return !c&&f$1&&(a.currentNode=r,c=a.nextNode()),c&&T(c,true),c},focusPrevious(n=t){let r=e$1.current;if(!r)return null;let{from:s,tabbable:o=t.tabbable,wrap:f$1=t.wrap,accept:l=t.accept}=n,i=s||f(a$1(r)),a=v(r,{tabbable:o,accept:l});if(e(r,i))a.currentNode=i;else {let u=H(a);return u&&T(u,true),u??null}let c=a.previousNode();if(!c&&f$1){a.currentNode=r;let u=H(a);if(!u)return null;c=u;}return c&&T(c,true),c??null},focusFirst(n=t){let r=e$1.current;if(!r)return null;let{tabbable:s=t.tabbable,accept:o=t.accept}=n,l=v(r,{tabbable:s,accept:o}).nextNode();return l&&T(l,true),l},focusLast(n=t){let r=e$1.current;if(!r)return null;let{tabbable:s=t.tabbable,accept:o=t.accept}=n,f=v(r,{tabbable:s,accept:o}),l=H(f);return l&&T(l,true),l??null}}}function H(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}var W=class e{root;fastMap=new Map;constructor(){this.root=new C({scopeRef:null}),this.fastMap.set(null,this.root);}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let s=this.fastMap.get(n??null);if(!s)return;let o=new C({scopeRef:t});s.addChild(o),o.parent=s,this.fastMap.set(t,o),r&&(o.nodeToRestore=r);}addNode(t){this.fastMap.set(t.scopeRef,t);}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&h(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let s=n.children;r&&(r.removeChild(n),s.size>0&&s.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef);}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n);}clone(){let t=new e;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}},C=class{scopeRef;nodeToRestore;parent;children=new Set;contain=false;constructor(t){this.scopeRef=t.scopeRef;}addChild(t){this.children.add(t),t.parent=this;}removeChild(t){this.children.delete(t),t.parent=void 0;}},E=new W;export{he as a,ge as b,we as c,v as d,Se as e};
@@ -0,0 +1,10 @@
1
+ import {a as a$9}from'./chunk-UQJGSVXP.mjs';import {a as a$6}from'./chunk-RFTDIXEG.mjs';import {d,c as c$1}from'./chunk-W6QO7FPZ.mjs';import {a as a$5}from'./chunk-AV4ZP5SY.mjs';import {a as a$2,b as b$2}from'./chunk-KPEONVLU.mjs';import {a as a$7}from'./chunk-6Z6HOW6T.mjs';import {b as b$3}from'./chunk-WL27JGVG.mjs';import {a as a$3}from'./chunk-JJG67M2S.mjs';import {a,b as b$1}from'./chunk-2VY4FAOY.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {a as a$b}from'./chunk-545KDVGI.mjs';import {a as a$4,b as b$4}from'./chunk-YB3KW7JC.mjs';import {e,k,g}from'./chunk-MRJFGHFW.mjs';import {a as a$a,c as c$2}from'./chunk-TZ4MVY4E.mjs';import {a as a$8}from'./chunk-KEVERVHK.mjs';import {c,a as a$c}from'./chunk-JDLUGVXG.mjs';import {g as g$1,f,a as a$d}from'./chunk-AUOQSTS5.mjs';import {useCallback,useState,useMemo}from'react';import {flushSync}from'react-dom';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function Qe(e){let{minValue:i,maxValue:t,step:u,formatOptions:r,value:o,defaultValue:d$1=NaN,onChange:L,locale:l,isDisabled:F,isReadOnly:P,commitBehavior:S="snap"}=e;o===null&&(o=NaN);let E=useCallback(a$1=>u===void 0||isNaN(u)?a(a$1,i,t):b$1(a$1,i,t,u),[u,i,t]);o!==void 0&&!isNaN(o)&&S==="snap"&&(o=E(o)),!isNaN(d$1)&&S==="snap"&&(d$1=E(d$1));let[s,g]=a$1(o,isNaN(d$1)?NaN:d$1,L),[U]=useState(s),[h,N]=useState(()=>isNaN(s)?"":new a$2(l,r).format(s)),$=useMemo(()=>new b$2(l,r),[l,r]),k=useMemo(()=>$.getNumberingSystem(h),[$,h]),x=useMemo(()=>new a$2(l,{...r,numberingSystem:k}),[l,r,k]),Z=useMemo(()=>x.resolvedOptions(),[x]),V=useCallback(a=>isNaN(a)||a===null?"":x.format(a),[x]),v=d({...e,value:s}),c=u!==void 0&&!isNaN(u)?u:1;Z.style==="percent"&&(u===void 0||isNaN(u))&&(c=.01);let[B,G]=useState(s),[T,q]=useState(l),[y,H]=useState(r);(!Object.is(s,B)||l!==T||!_e(r,y))&&(N(V(s)),G(s),q(l),H(r));let m=useMemo(()=>$.parse(h),[$,h]),Y=a=>{let D=a===void 0?h:a,p=m;if(a!==void 0&&(p=$.parse(D)),!D.length){g(NaN),N(o===void 0?"":V(s));return}if(isNaN(p)){N(V(s));return}let f=S==="snap"?E(p):p;f=$.parse(V(f));let ee=f!==s;g(f),N(V(o===void 0?f:s)),ee&&v.commitValidation();},A=(a,D=0)=>{let p=m;if(isNaN(p)){let f=isNaN(D)?0:D;return b$1(f,i,t,c)}else {let f=b$1(p,i,t,c);return a==="+"&&f>p||a==="-"&&f<p?f:b$1(ae(a,p,c),i,t,c)}},J=()=>{let a=A("+",i);a===s&&N(V(a)),g(a),v.commitValidation();},j=()=>{let a=A("-",t);a===s&&N(V(a)),g(a),v.commitValidation();},X=()=>{t!=null&&(g(b$1(t,i,t,c)),v.commitValidation());},R=()=>{i!=null&&(g(i),v.commitValidation());},Q=useMemo(()=>!F&&!P&&(isNaN(m)||t===void 0||isNaN(t)||b$1(m,i,t,c)>m||ae("+",m,c)<=t),[F,P,i,t,c,m]),_=useMemo(()=>!F&&!P&&(isNaN(m)||i===void 0||isNaN(i)||b$1(m,i,t,c)<m||ae("-",m,c)>=i),[F,P,i,t,c,m]);return {...v,validate:a=>$.isValidPartialNumber(a,i,t),increment:J,incrementToMax:X,decrement:j,decrementToMin:R,canIncrement:Q,canDecrement:_,minValue:i,maxValue:t,numberValue:m,defaultNumberValue:isNaN(d$1)?U:d$1,setNumberValue:g,setInputValue:N,inputValue:h,commit:Y}}function _e(e,i){if(e===i)return true;if(!e||!i)return false;let t=Object.keys(e),u=Object.keys(i);if(t.length!==u.length)return false;for(let r of t)if(i[r]!==e[r])return false;return true}function ae(e,i,t){let u=e==="+"?i+t:i-t;if(i%1!==0||t%1!==0){let r=i.toString().split("."),o=t.toString().split("."),d=r[1]&&r[1].length||0,L=o[1]&&o[1].length||0,l=Math.pow(10,Math.max(d,L));i=Math.round(i*l),t=Math.round(t*l),u=e==="+"?i+t:i-t,u/=l;}return u}var je={"ar-AE":{decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"},"bg-BG":{decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"},"cs-CZ":{decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"},"et-EE":{decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"},"fi-FI":{decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"},"ko-KR":{decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"},"lt-LT":{decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"},"ro-RO":{decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"},"ru-RU":{decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"},"sk-SK":{decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"},"uk-UA":{decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"},"zh-CN":{decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"},"zh-TW":{decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"}};function ii(e$1,i,t){let{id:u,decrementAriaLabel:r,incrementAriaLabel:o,isDisabled:d,isReadOnly:L,isRequired:l,minValue:F,maxValue:P,autoFocus:S,label:E,formatOptions:s,onBlur:g$2=()=>{},onFocus:U,onFocusChange:h,onKeyDown:N,onKeyUp:$,description:k$1,errorMessage:x,isWheelDisabled:Z,...V}=e$1,{increment:v,incrementToMax:c$3,decrement:B,decrementToMin:G,numberValue:T,inputValue:q,commit:y,commitValidation:H}=i,m=b$3(je,"@react-aria/numberfield"),Y=useCallback(()=>{let n=t.current?.value??"";flushSync(()=>{y();}),t.current?.value!==n&&a$3(t.current?.value??"","assertive");},[y,t]),A=c(u),{focusProps:J}=a$4({onBlur(){Y();}}),j=a$5(s),X=useMemo(()=>j.resolvedOptions(),[j]),R=a$5({...s,currencySign:void 0}),Q=useMemo(()=>isNaN(T)?"":R.format(T),[R,T]),{spinButtonProps:_,incrementButtonProps:oe,decrementButtonProps:a}=a$6({isDisabled:d,isReadOnly:L,isRequired:l,maxValue:P,minValue:F,onIncrement:v,onIncrementToMax:c$3,onDecrement:B,onDecrementToMin:G,value:T,textValue:Q}),[D,p]=useState(false),{focusWithinProps:f$1}=b$4({isDisabled:d,onFocusWithinChange:p}),ee=useCallback(n=>{Math.abs(n.deltaY)<=Math.abs(n.deltaX)||(n.deltaY>0?v():n.deltaY<0&&B());},[B,v]);a$7({onScroll:ee,isDisabled:Z||d||L||!D},t);let ue=(X.maximumFractionDigits??0)>0,de=i.minValue===void 0||isNaN(i.minValue)||i.minValue<0,C="numeric";e()?de?C="text":ue&&(C="decimal"):k()&&(de?C="numeric":ue&&(C="decimal"));let We=n=>{i.validate(n)&&i.setInputValue(n);},ze=n=>{e$1.onPaste?.(n);let W=g$1(n);W&&(W.selectionEnd??-1)-(W.selectionStart??0)===W.value.length&&(n.preventDefault(),y(n.clipboardData?.getData?.("text/plain")?.trim()??""));},Ke=a$8(e$1),se=useCallback(n=>{n.nativeEvent.isComposing||(n.key==="Enter"?(flushSync(()=>{y();}),H()):n.continuePropagation());},[y,H]),{isInvalid:me,validationErrors:Ue,validationDetails:Ze}=i.displayValidation,{labelProps:be,inputProps:Ge,descriptionProps:qe,errorMessageProps:Ye}=a$9({...V,...Ke,name:void 0,form:void 0,label:E,autoFocus:S,isDisabled:d,isReadOnly:L,isRequired:l,validate:void 0,[c$1]:i,value:q,defaultValue:"!",autoComplete:"off","aria-label":e$1["aria-label"]||void 0,"aria-labelledby":e$1["aria-labelledby"]||void 0,id:A,type:"text",inputMode:C,onChange:We,onBlur:g$2,onFocus:U,onFocusChange:h,onKeyDown:useMemo(()=>a$a(se,N),[se,N]),onKeyUp:$,onPaste:ze,description:k$1,errorMessage:x},i,t);a$b(t,i.defaultNumberValue,i.setNumberValue),ti(i,e$1.validationBehavior,e$1.commitBehavior,t,i.minValue,i.maxValue,e$1.step,i.numberValue);let ce=c$2(_,J,Ge,{role:null,"aria-roledescription":g()?null:m.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e$1.validationBehavior==="native"&&(ce["aria-required"]=void 0);let fe=n=>{f(a$d(t.current))!==t.current&&(n.pointerType==="mouse"?t.current?.focus():n.target.focus());},ie=e$1["aria-label"]||(typeof e$1.label=="string"?e$1.label:""),I;ie||(I=e$1.label!=null?be.id:e$1["aria-labelledby"]);let pe=c(),Le=c(),Je=c$2(oe,{"aria-label":o||m.format("increase",{fieldLabel:ie}).trim(),id:I&&!o?pe:null,"aria-labelledby":I&&!o?`${pe} ${I}`:null,"aria-controls":A,excludeFromTabOrder:true,preventFocusOnPress:true,allowFocusWhenDisabled:true,isDisabled:!i.canIncrement,onPressStart:fe}),Xe=c$2(a,{"aria-label":r||m.format("decrease",{fieldLabel:ie}).trim(),id:I&&!r?Le:null,"aria-labelledby":I&&!r?`${Le} ${I}`:null,"aria-controls":A,excludeFromTabOrder:true,preventFocusOnPress:true,allowFocusWhenDisabled:true,isDisabled:!i.canDecrement,onPressStart:fe});return {groupProps:{...f$1,role:"group","aria-disabled":d,"aria-invalid":me?"true":void 0},labelProps:be,inputProps:ce,incrementButtonProps:Je,decrementButtonProps:Xe,errorMessageProps:Ye,descriptionProps:qe,isInvalid:me,validationErrors:Ue,validationDetails:Ze}}var b=null;function ti(e,i,t,u,r,o,d,L){a$c(()=>{let l=u.current;if(t!=="validate"||e.realtimeValidation.isInvalid||!l||l.disabled||(!b&&typeof document<"u"&&(b=document.createElement("input"),b.type="number"),!b))return;b.min=r!=null&&!isNaN(r)?String(r):"",b.max=o!=null&&!isNaN(o)?String(o):"",b.step=d!=null&&!isNaN(d)?String(d):"",b.value=L!=null&&!isNaN(L)?String(L):"";let F=l.validity.valid&&b.validity.valid,P=l.validationMessage||b.validationMessage,S={isInvalid:!F,validationErrors:P?[P]:[],validationDetails:{badInput:l.validity.badInput,customError:l.validity.customError,patternMismatch:l.validity.patternMismatch,rangeOverflow:b.validity.rangeOverflow,rangeUnderflow:b.validity.rangeUnderflow,stepMismatch:b.validity.stepMismatch,tooLong:l.validity.tooLong,tooShort:l.validity.tooShort,typeMismatch:l.validity.typeMismatch,valueMissing:l.validity.valueMissing,valid:F}};e.updateValidation(S),i==="native"&&!b.validity.valid&&l.setCustomValidity(b.validationMessage);});}export{Qe as a,ii as b};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-4QEH5CGK.mjs';import {createContext,forwardRef,useEffect,useImperativeHandle,useMemo,useContext}from'react';import {usePanelRef,Panel,useGroupRef,useDefaultLayout,Group,Separator}from'react-resizable-panels';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var y=createContext({});function h(){return useContext(y)}function f(r){return typeof r=="number"?`${r}%`:r}var I=forwardRef(({className:r,isCollapsible:e=false,id:a$1,onResize:s,defaultSize:m,minSize:c$1,maxSize:p,collapsedSize:u,...P},o)=>{let n=usePanelRef(),b=c(),d=a$1??b,{autoSaveId:l}=h();return useEffect(()=>{l&&!a$1&&console.warn("Panel: A stable `id` prop is required for size persistence to work correctly when `autoSaveId` is set on the parent `PanelGroup`. Without it, panel sizes will not be saved or restored.");},[l,a$1]),useImperativeHandle(o,()=>({resize:t=>n.current?.resize(t)})),jsx(Panel,{className:a("BaselineUI-Panel",r),collapsible:e,panelRef:n,id:d,defaultSize:f(m),minSize:f(c$1),maxSize:f(p),collapsedSize:f(u),onResize:s?t=>{s(t.asPercentage);}:void 0,...P})});I.displayName="Panel";var V=forwardRef(({className:r,autoSaveId:e,direction:a$1,onLayout:s,...m},c)=>{let p=useGroupRef();useImperativeHandle(c,()=>({setLayout:o=>{let n=p.current;if(!n)return;let b=n.getLayout(),d=Object.keys(b);if(d.length>0){let l={};for(let t of d)t in o&&(l[t]=o[t]);n.setLayout(l);}else n.setLayout(o);}}));let u=useDefaultLayout({id:e??"",storage:e?localStorage:void 0}),P=useMemo(()=>({autoSaveId:e}),[e]);return jsx(y.Provider,{value:P,children:jsx(Group,{className:a("BaselineUI-PanelGroup",r),groupRef:p,orientation:a$1,defaultLayout:e?u.defaultLayout:void 0,onLayoutChanged:o=>{e&&u.onLayoutChanged(o),s&&s(o);},...m})})});V.displayName="PanelGroup";var z="_6abhjk0";var A=({className:r,isDisabled:e=false,...a$1})=>jsx(Separator,{disabled:e,className:a(z,"BaselineUI-PanelResizeHandle",r),...a$1});A.displayName="PanelResizeHandle";export{I as a,V as b,A as c};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-CGFLGZL4.mjs';import {a as a$3}from'./chunk-AV4ZP5SY.mjs';import {a as a$2}from'./chunk-2VY4FAOY.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-KEVERVHK.mjs';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function c(a$4){let{value:r=0,minValue:e=0,maxValue:s=100,valueLabel:o,isIndeterminate:t,formatOptions:p={style:"percent"}}=a$4,u=a(a$4,{labelable:true}),{labelProps:g,fieldProps:B}=a$1({...a$4,labelElementType:"span"});r=a$2(r,e,s);let f=(r-e)/(s-e),b=a$3(p);if(!t&&!o){let x=p.style==="percent"?f:r;o=b.format(x);}return {progressBarProps:c$1(u,{...B,"aria-valuenow":t?void 0:r,"aria-valuemin":e,"aria-valuemax":s,"aria-valuetext":t?void 0:o,role:"progressbar"}),labelProps:g}}export{c as a};
@@ -0,0 +1,10 @@
1
+ import {d}from'./chunk-Y4DRSGEJ.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {b as b$1,g}from'./chunk-AUOQSTS5.mjs';import {useRef,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function S(n,e,t$1){let{validationBehavior:s,focus:m}=n;a(()=>{if(s==="native"&&t$1?.current&&"setCustomValidity"in t$1.current&&!t$1.current.disabled){let i=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t$1.current.setCustomValidity(i),t$1.current.hasAttribute("title")||(t$1.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(I(t$1.current));}});let r=useRef(false),u=t(()=>{r.current||e.resetValidation();}),v=t(i=>{e.displayValidation.isInvalid||e.commitValidation();let a=t$1?.current?.form;!i.defaultPrevented&&t$1&&a&&L(a)===t$1.current&&(m?m():t$1.current?.focus(),d("keyboard")),i.preventDefault();}),c=t(()=>{e.commitValidation();});useEffect(()=>{let i=t$1?.current;if(!i)return;let a=i.form,f=a?.reset;if(a){let E=b$1(i);a.reset=()=>{let o=E.event?E:window,d=o.event;r.current=!d||d.type==="message"&&typeof o.MessagePort=="function"&&g(d)instanceof o.MessagePort;try{f?.call(a);}finally{r.current=false;}};}return i.addEventListener("invalid",v),i.addEventListener("change",c),a?.addEventListener("reset",u),()=>{i.removeEventListener("invalid",v),i.removeEventListener("change",c),a?.removeEventListener("reset",u),a&&(a.reset=f);}},[t$1,s]);}function b(n){let e=n.validity;return {badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function I(n){return {isInvalid:!n.validity.valid,validationDetails:b(n),validationErrors:n.validationMessage?[n.validationMessage]:[]}}function L(n){for(let e=0;e<n.elements.length;e++){let t=n.elements[e];if(t.validity?.valid===false)return t}return null}export{S as a};
@@ -0,0 +1,11 @@
1
+ import {a as a$2}from'./chunk-MFH2E2GU.mjs';import {d,c}from'./chunk-KCHAWPUN.mjs';import {d as d$2}from'./chunk-PHZZLBH3.mjs';import {a as a$5}from'./chunk-FP5EWPOF.mjs';import {a as a$4}from'./chunk-TK4QXU3W.mjs';import {a as a$7}from'./chunk-MLNPTVVX.mjs';import {a as a$1}from'./chunk-YV3WI6OV.mjs';import {a as a$8}from'./chunk-V3L4SVVF.mjs';import {b}from'./chunk-QMDDCVAF.mjs';import {h,g as g$1,f,e,a as a$9,c as c$3,d as d$1}from'./chunk-4NYPVKDO.mjs';import {a as a$a}from'./chunk-66CUIXA6.mjs';import {c as c$2}from'./chunk-MVK5CB64.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$3}from'./chunk-JDLUGVXG.mjs';import {a as a$b,b as b$1}from'./chunk-AUOQSTS5.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import Re,{useContext,useMemo,useImperativeHandle,useState,useCallback,useEffect,useRef}from'react';import Fe from'react-dom';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {assignInlineVars}from'@vanilla-extract/dynamic';import {motion}from'motion/react';import {themeVars}from'@baseline-ui/tokens';import {useGranularEffect}from'granular-hooks';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var de=({children:n,isOpen:t,popoverContentRef:d,portalContainer:i,style:e})=>{let[o,m]=useState(false),[s,f]=useState(null),l=useRef(null),{setIsPopoverSafelyClosed:a}=useContext(d$2);useEffect(()=>{t?(m(true),l.current&&clearTimeout(l.current)):l.current=setTimeout(()=>{m(false);},300);},[t]),useEffect(()=>()=>{l.current&&clearTimeout(l.current);},[]);let r=d.current,p=useRef(null);return i?p.current=i:r&&(p.current=a$b(r).body),useEffect(()=>{r&&f(r.getBoundingClientRect());},[r]),useEffect(()=>{a(!o);},[o,a]),jsxs(Fragment,{children:[o?Fe.createPortal(jsx("div",{"aria-hidden":true,style:{position:"absolute",left:e?.left,top:e?.top,width:s?.width,height:s?.height,zIndex:e?.zIndex?+e.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer","data-testid":"event-leak-prevention-layer"}),p.current??a$b(r).body):null,n]})};var{color:g}=themeVars,ve=({placement:n,arrowProps:t})=>jsxs(Fragment,{children:[jsxs("svg",{...t,className:a$6(t.className,c$3({placement:n}),"BaselineUI-PopoverContent-Arrow"),style:{...t.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"arrow",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:g.border.medium}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:g.background.primary.subtle,stroke:g.background.primary.subtle})]}),jsxs("svg",{...t,className:a$6(t.className,d$1({placement:n}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t.style,position:"absolute"},"data-testid":"arrow-focused",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.543371 2H0V0H1.45663L7.5 6.97312L13.5434 0H15V2H14.4566L7.5 10.0269L0.543371 2Z",fill:g.border.interactive.enabled}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:g.background.primary.subtle,stroke:g.background.primary.subtle})]})]});function ye({triggerRef:n,updatePosition:t,isOpen:d,boundaryElement:i,isDisabled:e=false}){let o=useRef(null),m=useRef(t);m.current=t;let s=useCallback(()=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{m.current(),o.current=null;});},[]);useGranularEffect(()=>{if(!d||e||!n.current)return;let f=a$b(n.current),l=b$1(f.body),a=[];l.addEventListener("scroll",s,true),a.push([l,"scroll"]);let r=new Set;i&&r.add(i);let p=c$2(n.current),C=new Set([...r,...p]);for(let c of C)c!==f.body&&(c.addEventListener("scroll",s,true),a.push([c,"scroll"]));return ()=>{o.current&&(cancelAnimationFrame(o.current),o.current=null);for(let[c,x]of a)c.removeEventListener(x,s,true);}},[d,e,i],[s,n]);}var Ye=["top","bottom","left","right"],B=Re.forwardRef(({portalClassName:n,portalStyle:t,className:d$1,style:i,state:e$1,overlayProps:o,underlayClassName:m,children:s,includeArrow:f$1=false,offset:l=2,portalContainer:a$9,contentContainerClassName:r,contentContainerStyle:p,setPopoverStyle:C,"data-block-id":c$2,"data-block-class":x,disableAnimation:be,popoverContainerRef:he,shouldContainFocus:Ee,arrowClassName:U,arrowStyle:z,disableFocusManagement:we,boundaryElement:A,boundaryAxis:Le,horizontalBoundaryBehavior:Oe,shouldRepositionOnScroll:W=false,elementHandle:Se,...y},Me)=>{let V=a(he),De=a$1(a$9),{container:k,shouldUseContainerAsBoundary:_}=useContext(b),Z=useMemo(()=>A===void 0?_&&k?k:void 0:A,[A,_,k]),Te=f$1?8:0,{underlayProps:xe,popoverProps:v,placement:w,arrowProps:L,updatePosition:H}=a$2({...y,offset:l+Te,popoverRef:V,containerPadding:y.containerPadding||0,boundaryElement:Z,boundaryAxis:Le,horizontalBoundaryBehavior:Oe,shouldCloseOnScroll:!W},e$1);ye({triggerRef:y.triggerRef,updatePosition:H,isOpen:e$1.isOpen,boundaryElement:Z,isDisabled:!W}),useImperativeHandle(Se,()=>({updatePosition:H}),[H]),delete v.style?.position;let[q,G]=useState();a$3(()=>{let R=y.triggerRef.current;R&&G(R.offsetWidth);},[y.triggerRef]);let Ae=useCallback(R=>{G(R.target.offsetWidth);},[]);a$4({ref:y.triggerRef,isDisabled:!e$1.isOpen,onResize:Ae});let ke=(w==="center"?"bottom":w)||"bottom",u=useMemo(()=>({isOpen:e$1.isOpen}),[e$1.isOpen]),{transitionProps:He}=a$5({placement:w||"bottom",isDisabled:be}),N=useMemo(()=>({...v.style,...assignInlineVars({[h]:`${q??0}px`}),...d(i,u)}),[v.style,q,i,u]);useEffect(()=>{C({left:v.style?.left,top:v.style?.top,zIndex:N.zIndex});},[v.style?.left,v.style?.top,C,N.zIndex]);let Ne=useMemo(()=>({...L,className:a$6(L.className,c(U,u)),style:{...L.style,...d(z,u)}}),[L,U,z,u]);return jsxs(a$7,{portalContainer:De,style:t,className:n,ref:Me,"data-block-id":c$2,"data-block-class":x,shouldContainFocus:Ee,disableFocusManagement:we,children:[!y.isNonModal&&jsx("div",{...xe,className:a$6(g$1,c(m,u),"BaselineUI-Popover-Underlay")}),jsxs(motion.div,{...c$1(v,He),style:N,ref:V,className:a$6(e,c(d$1,u),"BaselineUI-Popover-ContentContainer"),"data-placement":Ye.find(R=>w?.includes(R))??"",children:[f$1?jsx(ve,{placement:ke,arrowProps:Ne}):null,jsx(a$8,{onDismiss:e$1.close}),jsx("div",{...o,style:d(p,u),className:a$6(f,c(r,u),"BaselineUI-Popover-Content"),children:typeof s=="function"?s(e$1):s}),jsx(a$8,{onDismiss:e$1.close})]})]})});B.displayName="PopoverContentCore";var ot=Re.forwardRef(({state:n,overlayProps:t,portalContainer:d,...i},e)=>{let{state:o,overlayTriggerAria:{overlayProps:m},triggerRef:s}=useContext(a$9),[f,l]=useState({}),a=a$1(d),r=n||o,p=i.triggerRef||s,C=t||m;a$a(p);let c=Re.useRef(null);return jsx(de,{isOpen:r?.isOpen??false,popoverContentRef:c,portalContainer:a,style:f,children:r?.isOpen?jsx(B,{ref:e,...i,triggerRef:p,overlayProps:C,state:r,portalContainer:a,setPopoverStyle:l,popoverContainerRef:c}):null})});ot.displayName="PopoverContent";
11
+ export{ot as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$4}from'./chunk-TIHKHXTS.mjs';import {a as a$1}from'./chunk-FP5EWPOF.mjs';import {a as a$5}from'./chunk-TK4QXU3W.mjs';import {a as a$3}from'./chunk-THRAJMLX.mjs';import {a as a$6}from'./chunk-MLNPTVVX.mjs';import {a as a$2}from'./chunk-YV3WI6OV.mjs';import {a as a$9}from'./chunk-4PYEGHW5.mjs';import {c as c$1,d}from'./chunk-BGMVPFYK.mjs';import {c as c$3,b as b$1}from'./chunk-Y4DRSGEJ.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {c,b}from'./chunk-TZ4MVY4E.mjs';import {a as a$7}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$a}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import A,{useRef,useMemo,useEffect}from'react';import {motion}from'motion/react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function C(s,o,t){let a=a$7(s,{labelable:true}),{hoverProps:n}=a$8({onHoverStart:()=>o?.open(true),onHoverEnd:()=>o?.close()},t);return {tooltipProps:c(a,n,{role:"tooltip"})}}function S(s,o,t){let{isDisabled:a,trigger:n,shouldCloseOnPress:c$1=true}=s,r=c$2(),e=useRef(false),l=useRef(false),f=()=>{(e.current||l.current)&&o.open(l.current);},u=d=>{!e.current&&!l.current&&o.close(d);};useEffect(()=>{let d=F=>{t&&t.current&&F.key==="Escape"&&(F.stopPropagation(),o.close(true));},x=a$a(t?.current);if(o.isOpen)return x.addEventListener("keydown",d,true),()=>{x.removeEventListener("keydown",d,true);}},[t,o]);let T=()=>{n!=="focus"&&(c$3()==="pointer"?e.current=true:e.current=false,f());},p=()=>{n!=="focus"&&(l.current=false,e.current=false,u());},y=()=>{c$1&&(l.current=false,e.current=false,u(true));},i=()=>{b$1()&&(l.current=true,f());},v=()=>{l.current=false,e.current=false,u(true);},{hoverProps:O}=a$8({isDisabled:a,onHoverStart:T,onHoverEnd:p}),{focusableProps:g}=d({isDisabled:a,onFocus:i,onBlur:v},t);return {triggerProps:{"aria-describedby":o.isOpen?r:void 0,...c(g,O,{onPointerDown:y,onKeyDown:y}),tabIndex:void 0},tooltipProps:{id:r}}}var ue=1500,Z=500,P={},ce=0,z=false,m=null,_=null;function E(s={}){let{delay:o=ue,closeDelay:t=Z}=s,{isOpen:a,open:n,close:c}=a$9(s),r=useMemo(()=>`${++ce}`,[]),e=useRef(null),l=useRef(c),f=()=>{P[r]=p;},u=()=>{for(let i in P)i!==r&&(P[i](true),delete P[i]);},T=()=>{e.current&&clearTimeout(e.current),e.current=null,u(),f(),z=true,n(),m&&(clearTimeout(m),m=null),_&&(clearTimeout(_),_=null);},p=i=>{i||t<=0?(e.current&&clearTimeout(e.current),e.current=null,l.current()):e.current||(e.current=setTimeout(()=>{e.current=null,l.current();},t)),m&&(clearTimeout(m),m=null),z&&(_&&clearTimeout(_),_=setTimeout(()=>{delete P[r],_=null,z=false;},Math.max(Z,t)));},y=()=>{u(),f(),!a&&!z?(m&&clearTimeout(m),m=setTimeout(()=>{m=null,z=true,T();},o)):a||T();};return useEffect(()=>{l.current=c;},[c]),useEffect(()=>()=>{e.current&&clearTimeout(e.current),P[r]&&delete P[r];},[r]),{isOpen:a,open:i=>{!i&&o>0&&!e.current?y():T();},close:p}}var ee=a({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),oe=a({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var h=A.forwardRef(({children:s,state:o,overlayProps:t,arrowProps:a,placement:n="bottom",variant:c$1,size:r,tooltipProps:e,includeArrow:l},f)=>{let u=useRef(null),{tooltipProps:T}=C({isOpen:o.isOpen},o,u),p=n==="center"?"bottom":n,{transitionProps:y}=a$1({placement:n});return jsxs(motion.span,{...c(t,y),ref:b(f,u),"data-placement":p,children:[l?jsx("div",{className:ee({placement:p,variant:c$1}),...a}):null,jsx("div",{...c(T,e),className:oe({variant:c$1,size:r}),children:s})]})});h.displayName="TooltipContent";var re=A.forwardRef(({children:s,placement:o="bottom",delay:t=1e3,closeDelay:a=500,variant:n="default",size:c="md",includeArrow:r=true,portalContainer:e,className:l,style:f,"data-block-id":u,"data-block-class":T,...p},y)=>{let i=A.useRef(null),v=A.useRef(null),O=!p.text||p.isDisabled,g=E({...p,delay:t,closeDelay:a,isDisabled:O}),{triggerProps:d,tooltipProps:x}=S({...p,isDisabled:O},g,i),F=a$2(e),{overlayProps:ie,arrowProps:le,placement:pe,updatePosition:L}=a$3({arrowSize:r?13:0,targetRef:i,arrowBoundaryOffset:r?8:0,offset:r?12:2,overlayRef:v,placement:o,isOpen:g.isOpen,...p});a$4({ref:v,threshold:1,onIntersect:L,isDisabled:!g.isOpen}),a$5({ref:i,onResize:L,isDisabled:!g.isOpen});let se=A.isValidElement(s)?jsx(c$1,{...d,ref:i,children:s}):typeof s=="function"?s({triggerProps:d,triggerRef:i}):null;return jsxs(Fragment,{children:[se,g.isOpen?jsx(a$6,{disableFocusManagement:true,portalContainer:F,className:l,style:f,"data-block-id":u,"data-block-class":T,children:jsx(h,{ref:b(y,v),state:g,arrowProps:le,overlayProps:ie,placement:pe??"bottom",tooltipProps:x,variant:n,size:c,includeArrow:r,children:p.text})}):null]})});re.displayName="Tooltip";export{re as a};
@@ -0,0 +1,10 @@
1
+ import {a,b}from'./chunk-JQ4ZGZPV.mjs';import {b as b$1,a as a$3}from'./chunk-F2X474RV.mjs';import {a as a$1}from'./chunk-THRAJMLX.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$2}from'./chunk-JDLUGVXG.mjs';import {a as a$4}from'./chunk-AUOQSTS5.mjs';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function E(d,r){let{triggerRef:n,popoverRef:e,groupRef:t,isNonModal:o,isKeyboardDismissDisabled:b$2,shouldCloseOnInteractOutside:g,shouldCloseOnScroll:i=true,...s}=d,l=s.trigger==="SubmenuTrigger",{overlayProps:v,underlayProps:y}=a({isOpen:r.isOpen,onClose:r.close,shouldCloseOnBlur:true,isDismissable:!o||l,isKeyboardDismissDisabled:b$2,shouldCloseOnInteractOutside:g},t??e),{overlayProps:A,arrowProps:R,placement:D,triggerAnchorPoint:h,updatePosition:x}=a$1({...s,targetRef:n,overlayRef:e,isOpen:r.isOpen,shouldCloseOnScroll:i,onClose:o&&!l&&i?r.close:null}),C=e.current?.ownerDocument.documentElement??n.current?.ownerDocument.documentElement;return b({isDisabled:o||!r.isOpen,root:C},e),a$2(()=>{if(r.isOpen&&e.current)return o?b$1(t?.current??e.current):a$3([t?.current??e.current],{shouldUseInert:false,root:a$4(e.current)?.body})},[o,r.isOpen,e,t]),{popoverProps:c(v,A),arrowProps:R,underlayProps:y,placement:D,triggerAnchorPoint:h,updatePosition:x}}export{E as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-DD5FWULD.mjs';import {useGranularEffect}from'granular-hooks';import {useReducer,useRef}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var f="SET_STATE",o="UNDO",a="REDO",U=(c,e)=>{let{past:t,present:n,future:s}=c;switch(e.type){case f:return {past:[...t,n],present:e.data,future:[]};case o:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[n,...s]};case a:return {past:[...t,n],present:s[0],future:s.slice(1)};default:throw new Error("Invalid action type")}},H=(c={},{isDisabled:e,onAction:t})=>{let n=a$1(),[s,u]=useReducer(U,{past:[],present:c,future:[]}),{past:i,present:p,future:T}=s,h=E=>{u({type:f,data:E});},r=useRef(),y=()=>{i.length&&(r.current=o,u({type:o}));},S=()=>{T.length&&(r.current=a,u({type:a}));},l=!!i?.length,R=!!T?.length;return useGranularEffect(()=>{(r.current===o||r.current===a)&&(t?.(p,r.current),r.current=void 0);},[p],[t,n]),{state:p,push:e?()=>{}:h,undo:e?()=>{}:y,redo:e?()=>{}:S,pastStates:i,futureStates:T,canUndo:l,canRedo:R}};export{H as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$2}from'./chunk-YCI6BEXQ.mjs';import {c,d,e,f,i,g,h as h$1}from'./chunk-N7MTFSWR.mjs';import {a as a$4}from'./chunk-UCZZLAPB.mjs';import {l,t}from'./chunk-SMAYNDQQ.mjs';import {a as a$3}from'./chunk-AZRPXTYJ.mjs';import {b,c as c$1}from'./chunk-X3OCHEQM.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/12';import p from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var R=a({defaultClassName:"_1enn18vd _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"}},defaultVariants:{},compoundVariants:[]}),z=a({defaultClassName:"_1enn18v2 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6dw _1yep5z6ex _1yep5z6g1 _1yep5z6lq",variantClassNames:{allowsSorting:{true:"_1enn18v3"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"}},defaultVariants:{},compoundVariants:[]}),I=a({defaultClassName:"_1enn18vi _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),w=a({defaultClassName:"_1enn18v8 _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isHovered:{true:"_1yep5z6125"},isSelected:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"},isDisabled:{true:"_1enn18vc"}},defaultVariants:{},compoundVariants:[]}),P=a({defaultClassName:"_1enn18vf",variantClassNames:{sortDirection:{ascending:"_1enn18vg",descending:"_1enn18vh"}},defaultVariants:{},compoundVariants:[]}),B="_1enn18v5",E="_1enn18v0",H="_1enn18v1",S="_1enn18v6",h="_1enn18v7";var L=p.forwardRef(({className:e,style:r,...a},t)=>jsx(c,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,E,"BaselineUI-Table"),style:r,...a}));L.displayName="Table";var M=p.forwardRef(({className:e,style:r,...a},t)=>jsx(d,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,H,"BaselineUI-TableHeader"),style:r,...a}));M.displayName="TableHeader";var A=p.forwardRef(({className:e$1,style:r,children:a,...t},o)=>jsx(e,{ref:o,className:n=>a$1(typeof e$1=="function"?e$1(n):e$1,z({allowsSorting:n.allowsSorting,isFocusVisible:n.isFocusVisible}),"BaselineUI-Column"),style:r,...t,children:n=>jsxs(Fragment,{children:[typeof a=="function"?a(n):a,n.allowsSorting&&n.sortDirection?jsx(CaretDownIcon,{className:P({sortDirection:n.sortDirection}),"aria-hidden":"true"}):null]})}));A.displayName="Column";var V=p.forwardRef(({children:e,className:r,dependencies:a,isLoading:t,items:o,onLoadMore:n,scrollOffset:O,loadingLabel:k,style:j,...q},K)=>{let{formatMessage:G}=b();return process.env.NODE_ENV!=="production"&&t&&!n&&console.warn("[Baseline UI] TableBody: `isLoading` is set but `onLoadMore` is not provided. The loading spinner will not be displayed. Either provide `onLoadMore` or remove `isLoading`."),jsxs(f,{ref:K,className:J=>a$1(typeof r=="function"?r(J):r,B,"BaselineUI-TableBody"),style:j,...q,children:[o&&typeof e=="function"?jsx(l,{items:o,dependencies:a,children:e}):typeof e=="function"?null:e,n?jsx(i,{className:a$1(S,"BaselineUI-TableLoadMoreItem"),isLoading:t,onLoadMore:n,scrollOffset:O,children:t?jsx("div",{className:a$1(h,"BaselineUI-TableLoadMoreItemContent"),children:jsx(a$2,{"aria-label":k??G(W.loading),size:"sm"})}):null}):null]})});V.displayName="TableBody";var N=p.forwardRef(({className:e,style:r,...a},t)=>jsx(g,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,w({isHovered:o.isHovered,isSelected:o.isSelected,isFocusVisible:o.isFocusVisible,isDisabled:o.isDisabled}),"BaselineUI-Row"),style:r,...a}));N.displayName="Row";var F=p.forwardRef(({className:e,style:r,...a},t)=>jsx(h$1,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,R({isFocusVisible:o.isFocusVisible}),"BaselineUI-Cell"),style:r,...a}));F.displayName="Cell";var W=c$1({loading:{defaultMessage:"Loading",id:"bui.table.loading"}});function Y(e){let{scrollRef:r,...a}=e;return a$3({ref:r??{current:null},isDisabled:!r}),a$4({getItems:t=>[...t].map(o=>({"text/plain":String(o)})),renderDropIndicator(t$1){return jsx(t,{target:t$1,className:({isDropTarget:o})=>a$1(I({isDropTarget:o}),"BaselineUI-DropIndicator")})},...a})}export{L as a,M as b,A as c,V as d,N as e,F as f,Y as g};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-YV3WI6OV.mjs';import {b as b$1}from'./chunk-V3L4SVVF.mjs';import {b,c}from'./chunk-JUXBZ2ZN.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import u,{useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var m=u.forwardRef(({className:s,style:i,children:p,"data-block-id":d,"data-block-class":n,portalContainer:P,...f},c$1)=>{let{theme:y,shouldHandleVirtualKeyboard:h}=useContext(b),b$2=a();return jsx(b$1,{...f,portalContainer:P??b$2,children:jsx(c,{ref:c$1,theme:y,shouldHandleVirtualKeyboard:h,style:i,className:a$1("BaselineUI-Portal",s),"data-block-id":d,"data-block-class":n,children:p})})});m.displayName="Portal";export{m as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-JDLUGVXG.mjs';import {b as b$1,a as a$1,c,g as g$1}from'./chunk-AUOQSTS5.mjs';import ne,{createContext,useContext,useRef,useCallback}from'react';import'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function m(e){if(typeof window>"u"||window.navigator==null)return false;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function g(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):false}function f(e){if(process.env.NODE_ENV==="test")return e;let t=null;return ()=>(t==null&&(t=e()),t)}var p=f(function(){return g(/^Mac/i)}),N=f(function(){return g(/^iPhone/i)}),v=f(function(){return g(/^iPad/i)||p()&&navigator.maxTouchPoints>1}),V=f(function(){return N()||v()}),ae=f(function(){return p()||V()}),L=f(function(){return m(/AppleWebKit/i)&&!K()}),K=f(function(){return m(/Chrome/i)}),w=f(function(){return m(/Android/i)}),A=f(function(){return m(/Firefox/i)});function R(e){if(W(e))e.focus({preventScroll:true});else {let t=B(e);e.focus(),F(t);}}var b=null;function W(e){if(b==null){b=false;try{a$1(e).createElement("div").focus({get preventScroll(){return b=!0,!0}});}catch{}}return b}function B(e){let t=e.parentNode,n=[],o=a$1(e),r=b$1(e),i=o.scrollingElement||o.documentElement;for(;t&&t!==i;){if(c(t)){t=t.host;continue}t instanceof r.HTMLElement&&(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;}return i instanceof r.HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function F(e){for(let{element:t,scrollTop:n,scrollLeft:o}of e)t.scrollTop=n,t.scrollLeft=o;}var I=typeof Element<"u"&&"checkVisibility"in Element.prototype;function _(e){let t=b$1(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return false;let{display:n,visibility:o}=e.style,r=n!=="none"&&o!=="hidden"&&o!=="collapse";if(r){let{getComputedStyle:i}=b$1(e),{display:a,visibility:l}=i(e);r=a!=="none"&&l!=="hidden"&&l!=="collapse";}return r}function j(e,t){return !e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):true)}function h(e,t){return I?e.checkVisibility({visibilityProperty:true})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&_(e)&&j(e,t)&&(!e.parentElement||h(e.parentElement,e))}var S=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],z=S.join(':not([hidden]):not([data-bui-avoid-focus="true"]),')+',[tabindex]:not([disabled]):not([hidden]):not([data-bui-avoid-focus="true"])';S.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var U=S.join(':not([hidden]):not([tabindex="-1"]),');function Ee(e,t){return e.matches(z)&&!k(e)&&(t?.skipVisibilityCheck||h(e))}function me(e){return e.matches(U)&&h(e)&&!k(e)}function k(e){let t=e;for(;t!=null;){if(t instanceof b$1(t).HTMLElement&&t.inert)return true;t=t.parentElement;}return false}function ye(e){return e.pointerType===""&&e.isTrusted?true:w()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Te(e){return !w()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}var X=createContext({isNative:true,open:Q,useHref:e=>e});function P(){return useContext(X)}function q(e,t){let n=e.getAttribute("target");return (!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function y(e,t,n=true){let{metaKey:o,ctrlKey:r,altKey:i,shiftKey:a}=t;A()&&b$1(e).event?.type?.startsWith("key")&&e.target==="_blank"&&(p()?o=true:r=true);let l=L()&&p()&&!v()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:r,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:o,ctrlKey:r,altKey:i,shiftKey:a,detail:1,bubbles:true,cancelable:true});y.isOpening=n,R(e),e.dispatchEvent(l),y.isOpening=false;}y.isOpening=false;function Y(e,t){if(e instanceof b$1(e).HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=a$1(e).createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n);}}function Q(e,t){Y(e,n=>y(n,t));}function Oe(e){let n=P().useHref(e.href??"");return {"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function He(e){let n=P().useHref(e?.href??""),o={};if(e)for(let r of ["href","target","rel","download","ping","referrerPolicy"])r in e&&(o[r]=r==="href"?n:e[r]);return o}function Ce(e,t,n,o){let r=b$1(e.currentTarget);!t.isNative&&e.currentTarget instanceof r.HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&q(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,o));}var x=new WeakMap,O=new WeakSet;function H(e){return "propertyName"in e}function Z(){let e=new Map,t=new Set,n=a=>{let l=g$1(a);if(!H(a)||!l)return;let c=e.get(l);c&&(c.delete(a.propertyName),c.size===0&&(l.removeEventListener("transitioncancel",n),e.delete(l)),e.size===0&&D(i));},o=(a,l)=>{let c=e.get(a);c||(c=new Set,e.set(a,c),a.addEventListener("transitioncancel",n,{once:true})),c.add(l);},i={transitionsByElement:e,transitionCallbacks:t,track:o,onTransitionStart:a=>{let l=g$1(a);!H(a)||!l||o(l,a.propertyName);},onTransitionEnd:n};return i}function C(e){let t=x.get(e);return t||(t=Z(),x.set(e,t)),t}function $(e){let t=[],n=e?.getRootNode()??null;c(n)&&t.push(n);let o=a$1(e).body;return o&&t.push(o),t}function D(e){for(let t of e.transitionCallbacks)t();e.transitionCallbacks.clear();}function ee(e,t){let n=c(e)?e:a$1(e),o=c(e)?e.getAnimations?.():a$1(e).getAnimations?.();for(let r of o??[]){if(r.playState==="finished"||!("transitionProperty"in r))continue;let i=r.effect?.target;i&&i.getRootNode()===n&&t.track(i,r.transitionProperty);}}function M(e){if(typeof window>"u")return;let t=$(e).filter(o=>!O.has(o));if(t.length===0)return;let n=C(a$1(e));for(let o of t)O.add(o),o.addEventListener("transitionrun",n.onTransitionStart),o.addEventListener("transitionend",n.onTransitionEnd),ee(o,n);}typeof document<"u"&&(document.readyState!=="loading"?M():document.addEventListener("DOMContentLoaded",()=>M()));function te(e){for(let[t]of e.transitionsByElement)"isConnected"in t&&(!t.isConnected||!t.ownerDocument?.defaultView)&&e.transitionsByElement.delete(t);e.transitionsByElement.size===0&&D(e);}function Be(e,t){M(t);let n=C(a$1(t));requestAnimationFrame(()=>{te(n),n.transitionsByElement.size===0?e():n.transitionCallbacks.add(e);});}var ie=ne.useInsertionEffect??a;function je(e){let t=useRef(null);return ie(()=>{t.current=e;},[e]),useCallback((...n)=>{let o=t.current;return o?.(...n)},[])}function Ge(e,t){a(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null);}});}export{R as a,Ee as b,me as c,p as d,N as e,v as f,V as g,ae as h,L as i,K as j,w as k,ye as l,Te as m,P as n,y as o,Oe as p,He as q,Ce as r,Be as s,je as t,Ge as u};
File without changes
@@ -0,0 +1,10 @@
1
+ import {j}from'./chunk-MRJFGHFW.mjs';import {b,a,e}from'./chunk-AUOQSTS5.mjs';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function m(t,e){if(!t)return false;let l=b(t).getComputedStyle(t),r=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function $(t,e){let o=t;for(m(o,e)&&(o=o.parentElement);o&&!m(o,e);)o=o.parentElement;let l=a(t);return o||l.scrollingElement||l.documentElement}function W(t,e){let o=[],l=a(t),r=l.scrollingElement||l.documentElement;for(;t&&(m(t,e)&&o.push(t),t!==r);)t=t.parentElement;return o}function J(t,e){let l=a(e).defaultView||window,r=D(t,e,"left"),a$1=D(t,e,"top"),f=e.offsetWidth,c=e.offsetHeight,n=t.scrollLeft,i=t.scrollTop,{borderTopWidth:p,borderLeftWidth:u,scrollPaddingTop:v,scrollPaddingRight:x,scrollPaddingBottom:B,scrollPaddingLeft:C}=l.getComputedStyle(t),{scrollMarginTop:R,scrollMarginRight:y,scrollMarginBottom:O,scrollMarginLeft:k}=l.getComputedStyle(e),X=n+parseInt(u,10),S=i+parseInt(p,10),g=X+t.clientWidth,d=S+t.clientHeight,w=parseInt(v,10)||0,b=parseInt(B,10)||0,E=parseInt(x,10)||0,h=parseInt(C,10)||0,Y=parseInt(R,10)||0,j=parseInt(O,10)||0,A=parseInt(y,10)||0,V=parseInt(k,10)||0,P=r-V,I=r+f+A,T=a$1-Y,L=a$1+c+j,_=n+parseInt(u,10)+h,q=g-E,z=i+parseInt(p,10)+w,G=d-b;if((P>_||I<q)&&(P<=n+h?n=P-parseInt(u,10)-h:I>g-E&&(n+=I-g+E)),(T>z||L<G)&&(T<=S+w?i=T-parseInt(p,10)-w:L>d-b&&(i+=L-d+b)),process.env.NODE_ENV==="test"){t.scrollLeft=n,t.scrollTop=i;return}t.scrollTo({left:n,top:i});}function D(t,e$1,o){let l=o==="left"?"offsetLeft":"offsetTop",r=0;for(;e$1.offsetParent&&(r+=e$1[l],e$1.offsetParent!==t);){if(e(e$1.offsetParent,t)){r-=t[l];break}e$1=e$1.offsetParent;}return r}function st(t,e$1){let o=a(t),l=o.defaultView||window;if(t&&e(o.body,t)){let r=o.scrollingElement||o.documentElement,a=l.getComputedStyle(r).overflow==="hidden";if(!a&&!j()){let{left:f,top:c}=t.getBoundingClientRect();t?.scrollIntoView?.({block:"nearest"});let{left:n,top:i}=t.getBoundingClientRect();(Math.abs(f-n)>1||Math.abs(c-i)>1)&&(e$1?.containingElement?.scrollIntoView?.({block:"center",inline:"center"}),t.scrollIntoView?.({block:"nearest"}));}else {let f=W(t);a||f.push(r);for(let c of f)J(c,t);}}}export{m as a,$ as b,W as c,J as d,st as e};