@performant-software/core-data 2.3.8 → 2.3.9-beta.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 (1685) hide show
  1. package/dist/index.cjs101.js +1 -1
  2. package/dist/index.cjs105.js +1 -1
  3. package/dist/index.cjs106.js +1 -1
  4. package/dist/index.cjs107.js +1 -1
  5. package/dist/index.cjs108.js +1 -1
  6. package/dist/index.cjs109.js +1 -1
  7. package/dist/index.cjs110.js +1 -1
  8. package/dist/index.cjs111.js +1 -1
  9. package/dist/index.cjs112.js +1 -1
  10. package/dist/index.cjs113.js +1 -1
  11. package/dist/index.cjs114.js +1 -1
  12. package/dist/index.cjs115.js +1 -1
  13. package/dist/index.cjs116.js +1 -1
  14. package/dist/index.cjs117.js +1 -1
  15. package/dist/index.cjs118.js +1 -1
  16. package/dist/index.cjs121.js +1 -1
  17. package/dist/index.cjs123.js +1 -1
  18. package/dist/index.cjs124.js +1 -1
  19. package/dist/index.cjs125.js +1 -1
  20. package/dist/index.cjs127.js +1 -1
  21. package/dist/index.cjs129.js +1 -1
  22. package/dist/index.cjs130.js +1 -1
  23. package/dist/index.cjs131.js +1 -1
  24. package/dist/index.cjs132.js +1 -1
  25. package/dist/index.cjs157.js +1 -1
  26. package/dist/index.cjs158.js +1 -1
  27. package/dist/index.cjs159.js +1 -1
  28. package/dist/index.cjs160.js +1 -1
  29. package/dist/index.cjs161.js +1 -1
  30. package/dist/index.cjs162.js +1 -1
  31. package/dist/index.cjs163.js +1 -1
  32. package/dist/index.cjs164.js +1 -1
  33. package/dist/index.cjs173.js +1 -1
  34. package/dist/index.cjs176.js +1 -1
  35. package/dist/index.cjs177.js +1 -1
  36. package/dist/index.cjs178.js +1 -1
  37. package/dist/index.cjs182.js +1 -1
  38. package/dist/index.cjs183.js +1 -1
  39. package/dist/index.cjs184.js +1 -1
  40. package/dist/index.cjs185.js +1 -1
  41. package/dist/index.cjs188.js +1 -1
  42. package/dist/index.cjs190.js +1 -1
  43. package/dist/index.cjs190.js.map +1 -1
  44. package/dist/index.cjs191.js +1 -1
  45. package/dist/index.cjs191.js.map +1 -1
  46. package/dist/index.cjs192.js +1 -1
  47. package/dist/index.cjs192.js.map +1 -1
  48. package/dist/index.cjs193.js +1 -1
  49. package/dist/index.cjs193.js.map +1 -1
  50. package/dist/index.cjs194.js +1 -1
  51. package/dist/index.cjs194.js.map +1 -1
  52. package/dist/index.cjs195.js +8 -1
  53. package/dist/index.cjs195.js.map +1 -1
  54. package/dist/index.cjs196.js +26 -1
  55. package/dist/index.cjs196.js.map +1 -1
  56. package/dist/index.cjs197.js +1 -1
  57. package/dist/index.cjs197.js.map +1 -1
  58. package/dist/index.cjs198.js +1 -1
  59. package/dist/index.cjs198.js.map +1 -1
  60. package/dist/index.cjs199.js +1 -1
  61. package/dist/index.cjs199.js.map +1 -1
  62. package/dist/index.cjs200.js +1 -1
  63. package/dist/index.cjs200.js.map +1 -1
  64. package/dist/index.cjs201.js +7 -1
  65. package/dist/index.cjs201.js.map +1 -1
  66. package/dist/index.cjs202.js +1 -1
  67. package/dist/index.cjs202.js.map +1 -1
  68. package/dist/index.cjs203.js +1 -8
  69. package/dist/index.cjs203.js.map +1 -1
  70. package/dist/index.cjs204.js +1 -26
  71. package/dist/index.cjs204.js.map +1 -1
  72. package/dist/index.cjs205.js +1 -1
  73. package/dist/index.cjs205.js.map +1 -1
  74. package/dist/index.cjs206.js +1 -1
  75. package/dist/index.cjs206.js.map +1 -1
  76. package/dist/index.cjs207.js +1 -1
  77. package/dist/index.cjs207.js.map +1 -1
  78. package/dist/index.cjs208.js +1 -1
  79. package/dist/index.cjs208.js.map +1 -1
  80. package/dist/index.cjs209.js +1 -7
  81. package/dist/index.cjs209.js.map +1 -1
  82. package/dist/index.cjs210.js +1 -1
  83. package/dist/index.cjs210.js.map +1 -1
  84. package/dist/index.cjs211.js +1 -1
  85. package/dist/index.cjs211.js.map +1 -1
  86. package/dist/index.cjs212.js +1 -1
  87. package/dist/index.cjs212.js.map +1 -1
  88. package/dist/index.cjs213.js +1 -1
  89. package/dist/index.cjs213.js.map +1 -1
  90. package/dist/index.cjs214.js +1 -1
  91. package/dist/index.cjs214.js.map +1 -1
  92. package/dist/index.cjs215.js +1 -1
  93. package/dist/index.cjs215.js.map +1 -1
  94. package/dist/index.cjs216.js +1 -1
  95. package/dist/index.cjs216.js.map +1 -1
  96. package/dist/index.cjs217.js +1 -1
  97. package/dist/index.cjs217.js.map +1 -1
  98. package/dist/index.cjs218.js +1 -1
  99. package/dist/index.cjs218.js.map +1 -1
  100. package/dist/index.cjs219.js +1 -1
  101. package/dist/index.cjs219.js.map +1 -1
  102. package/dist/index.cjs220.js +1 -1
  103. package/dist/index.cjs220.js.map +1 -1
  104. package/dist/index.cjs221.js +1 -1
  105. package/dist/index.cjs221.js.map +1 -1
  106. package/dist/index.cjs222.js +1 -1
  107. package/dist/index.cjs222.js.map +1 -1
  108. package/dist/index.cjs223.js +1 -1
  109. package/dist/index.cjs223.js.map +1 -1
  110. package/dist/index.cjs224.js +1 -1
  111. package/dist/index.cjs224.js.map +1 -1
  112. package/dist/index.cjs225.js +1 -1
  113. package/dist/index.cjs225.js.map +1 -1
  114. package/dist/index.cjs226.js +1 -1
  115. package/dist/index.cjs226.js.map +1 -1
  116. package/dist/index.cjs227.js +1 -1
  117. package/dist/index.cjs227.js.map +1 -1
  118. package/dist/index.cjs228.js +1 -1
  119. package/dist/index.cjs228.js.map +1 -1
  120. package/dist/index.cjs229.js +1 -1
  121. package/dist/index.cjs229.js.map +1 -1
  122. package/dist/index.cjs230.js +1 -1
  123. package/dist/index.cjs230.js.map +1 -1
  124. package/dist/index.cjs231.js +1 -1
  125. package/dist/index.cjs231.js.map +1 -1
  126. package/dist/index.cjs232.js +1 -1
  127. package/dist/index.cjs232.js.map +1 -1
  128. package/dist/index.cjs233.js +1 -1
  129. package/dist/index.cjs233.js.map +1 -1
  130. package/dist/index.cjs234.js +1 -1
  131. package/dist/index.cjs234.js.map +1 -1
  132. package/dist/index.cjs235.js +1 -1
  133. package/dist/index.cjs235.js.map +1 -1
  134. package/dist/index.cjs236.js +1 -1
  135. package/dist/index.cjs236.js.map +1 -1
  136. package/dist/index.cjs237.js +1 -1
  137. package/dist/index.cjs237.js.map +1 -1
  138. package/dist/index.cjs238.js +1 -1
  139. package/dist/index.cjs238.js.map +1 -1
  140. package/dist/index.cjs239.js +1 -1
  141. package/dist/index.cjs239.js.map +1 -1
  142. package/dist/index.cjs240.js +1 -1
  143. package/dist/index.cjs240.js.map +1 -1
  144. package/dist/index.cjs241.js +1 -1
  145. package/dist/index.cjs241.js.map +1 -1
  146. package/dist/index.cjs242.js +1 -1
  147. package/dist/index.cjs242.js.map +1 -1
  148. package/dist/index.cjs243.js +1 -1
  149. package/dist/index.cjs243.js.map +1 -1
  150. package/dist/index.cjs244.js +6 -1
  151. package/dist/index.cjs244.js.map +1 -1
  152. package/dist/index.cjs245.js +1 -1
  153. package/dist/index.cjs245.js.map +1 -1
  154. package/dist/index.cjs246.js +2 -1
  155. package/dist/index.cjs246.js.map +1 -1
  156. package/dist/index.cjs247.js +3 -1
  157. package/dist/index.cjs247.js.map +1 -1
  158. package/dist/index.cjs248.js +1 -1
  159. package/dist/index.cjs248.js.map +1 -1
  160. package/dist/index.cjs249.js +1 -1
  161. package/dist/index.cjs249.js.map +1 -1
  162. package/dist/index.cjs250.js +8 -1
  163. package/dist/index.cjs250.js.map +1 -1
  164. package/dist/index.cjs251.js +13 -1
  165. package/dist/index.cjs251.js.map +1 -1
  166. package/dist/index.cjs252.js +1 -1
  167. package/dist/index.cjs252.js.map +1 -1
  168. package/dist/index.cjs253.js +17 -1
  169. package/dist/index.cjs253.js.map +1 -1
  170. package/dist/index.cjs254.js +1 -1
  171. package/dist/index.cjs254.js.map +1 -1
  172. package/dist/index.cjs255.js +1 -1
  173. package/dist/index.cjs255.js.map +1 -1
  174. package/dist/index.cjs256.js +1 -1
  175. package/dist/index.cjs256.js.map +1 -1
  176. package/dist/index.cjs257.js +1 -1
  177. package/dist/index.cjs257.js.map +1 -1
  178. package/dist/index.cjs258.js +1 -1
  179. package/dist/index.cjs258.js.map +1 -1
  180. package/dist/index.cjs259.js +1 -1
  181. package/dist/index.cjs259.js.map +1 -1
  182. package/dist/index.cjs260.js +1 -1
  183. package/dist/index.cjs260.js.map +1 -1
  184. package/dist/index.cjs261.js +1 -1
  185. package/dist/index.cjs261.js.map +1 -1
  186. package/dist/index.cjs262.js +1 -1
  187. package/dist/index.cjs262.js.map +1 -1
  188. package/dist/index.cjs263.js +1 -6
  189. package/dist/index.cjs263.js.map +1 -1
  190. package/dist/index.cjs264.js +1 -1
  191. package/dist/index.cjs264.js.map +1 -1
  192. package/dist/index.cjs265.js +1 -2
  193. package/dist/index.cjs265.js.map +1 -1
  194. package/dist/index.cjs266.js +1 -3
  195. package/dist/index.cjs266.js.map +1 -1
  196. package/dist/index.cjs267.js +1 -1
  197. package/dist/index.cjs267.js.map +1 -1
  198. package/dist/index.cjs268.js +1 -1
  199. package/dist/index.cjs268.js.map +1 -1
  200. package/dist/index.cjs269.js +1 -8
  201. package/dist/index.cjs269.js.map +1 -1
  202. package/dist/index.cjs270.js +1 -13
  203. package/dist/index.cjs270.js.map +1 -1
  204. package/dist/index.cjs271.js +1 -1
  205. package/dist/index.cjs271.js.map +1 -1
  206. package/dist/index.cjs272.js +1 -17
  207. package/dist/index.cjs272.js.map +1 -1
  208. package/dist/index.cjs273.js +1 -1
  209. package/dist/index.cjs273.js.map +1 -1
  210. package/dist/index.cjs274.js +1 -1
  211. package/dist/index.cjs274.js.map +1 -1
  212. package/dist/index.cjs275.js +1 -1
  213. package/dist/index.cjs275.js.map +1 -1
  214. package/dist/index.cjs276.js +1 -1
  215. package/dist/index.cjs276.js.map +1 -1
  216. package/dist/index.cjs277.js +1 -1
  217. package/dist/index.cjs277.js.map +1 -1
  218. package/dist/index.cjs278.js +1 -1
  219. package/dist/index.cjs278.js.map +1 -1
  220. package/dist/index.cjs279.js +1 -1
  221. package/dist/index.cjs279.js.map +1 -1
  222. package/dist/index.cjs280.js +1 -1
  223. package/dist/index.cjs280.js.map +1 -1
  224. package/dist/index.cjs281.js +1 -1
  225. package/dist/index.cjs281.js.map +1 -1
  226. package/dist/index.cjs282.js +1 -1
  227. package/dist/index.cjs282.js.map +1 -1
  228. package/dist/index.cjs283.js +1 -1
  229. package/dist/index.cjs283.js.map +1 -1
  230. package/dist/index.cjs284.js +1 -1
  231. package/dist/index.cjs284.js.map +1 -1
  232. package/dist/index.cjs285.js +1 -1
  233. package/dist/index.cjs285.js.map +1 -1
  234. package/dist/index.cjs286.js +1 -1
  235. package/dist/index.cjs286.js.map +1 -1
  236. package/dist/index.cjs287.js +1 -1
  237. package/dist/index.cjs287.js.map +1 -1
  238. package/dist/index.cjs288.js +1 -1
  239. package/dist/index.cjs288.js.map +1 -1
  240. package/dist/index.cjs289.js +1 -1
  241. package/dist/index.cjs289.js.map +1 -1
  242. package/dist/index.cjs290.js +1 -1
  243. package/dist/index.cjs290.js.map +1 -1
  244. package/dist/index.cjs291.js +1 -1
  245. package/dist/index.cjs291.js.map +1 -1
  246. package/dist/index.cjs292.js +1 -1
  247. package/dist/index.cjs292.js.map +1 -1
  248. package/dist/index.cjs293.js +1 -1
  249. package/dist/index.cjs293.js.map +1 -1
  250. package/dist/index.cjs294.js +1 -1
  251. package/dist/index.cjs294.js.map +1 -1
  252. package/dist/index.cjs295.js +1 -1
  253. package/dist/index.cjs295.js.map +1 -1
  254. package/dist/index.cjs296.js +1 -1
  255. package/dist/index.cjs296.js.map +1 -1
  256. package/dist/index.cjs297.js +1 -1
  257. package/dist/index.cjs297.js.map +1 -1
  258. package/dist/index.cjs298.js +1 -1
  259. package/dist/index.cjs298.js.map +1 -1
  260. package/dist/index.cjs299.js +1 -1
  261. package/dist/index.cjs299.js.map +1 -1
  262. package/dist/index.cjs311.js +1 -1
  263. package/dist/index.cjs319.js +1 -1
  264. package/dist/index.cjs326.js +1 -1
  265. package/dist/index.cjs327.js +1 -1
  266. package/dist/index.cjs328.js +1 -1
  267. package/dist/index.cjs329.js +1 -1
  268. package/dist/index.cjs330.js +1 -1
  269. package/dist/index.cjs331.js +1 -1
  270. package/dist/index.cjs332.js +1 -1
  271. package/dist/index.cjs333.js +1 -1
  272. package/dist/index.cjs334.js +1 -1
  273. package/dist/index.cjs337.js +1 -1
  274. package/dist/index.cjs338.js +1 -1
  275. package/dist/index.cjs340.js +1 -1
  276. package/dist/index.cjs341.js +1 -1
  277. package/dist/index.cjs342.js +1 -1
  278. package/dist/index.cjs343.js +1 -1
  279. package/dist/index.cjs348.js +1 -1
  280. package/dist/index.cjs349.js +1 -1
  281. package/dist/index.cjs350.js +1 -1
  282. package/dist/index.cjs351.js +1 -1
  283. package/dist/index.cjs354.js +1 -1
  284. package/dist/index.cjs355.js +1 -1
  285. package/dist/index.cjs356.js +1 -1
  286. package/dist/index.cjs360.js +1 -1
  287. package/dist/index.cjs363.js +1 -1
  288. package/dist/index.cjs367.js +1 -1
  289. package/dist/index.cjs370.js +1 -1
  290. package/dist/index.cjs378.js +1 -1
  291. package/dist/index.cjs379.js +1 -1
  292. package/dist/index.cjs380.js +1 -1
  293. package/dist/index.cjs381.js +1 -1
  294. package/dist/index.cjs382.js +1 -1
  295. package/dist/index.cjs383.js +1 -1
  296. package/dist/index.cjs384.js +1 -1
  297. package/dist/index.cjs386.js +1 -1
  298. package/dist/index.cjs387.js +1 -1
  299. package/dist/index.cjs388.js +1 -1
  300. package/dist/index.cjs389.js +1 -1
  301. package/dist/index.cjs390.js +1 -1
  302. package/dist/index.cjs391.js +1 -1
  303. package/dist/index.cjs392.js +1 -1
  304. package/dist/index.cjs393.js +1 -1
  305. package/dist/index.cjs394.js +1 -1
  306. package/dist/index.cjs397.js +1 -1
  307. package/dist/index.cjs398.js +1 -1
  308. package/dist/index.cjs400.js +1 -1
  309. package/dist/index.cjs401.js +1 -1
  310. package/dist/index.cjs402.js +1 -1
  311. package/dist/index.cjs403.js +1 -1
  312. package/dist/index.cjs404.js +1 -1
  313. package/dist/index.cjs405.js +1 -1
  314. package/dist/index.cjs406.js +1 -1
  315. package/dist/index.cjs407.js +1 -1
  316. package/dist/index.cjs413.js +1 -1
  317. package/dist/index.cjs414.js +1 -1
  318. package/dist/index.cjs415.js +1 -1
  319. package/dist/index.cjs416.js +1 -1
  320. package/dist/index.cjs417.js +1 -1
  321. package/dist/index.cjs420.js +1 -1
  322. package/dist/index.cjs420.js.map +1 -1
  323. package/dist/index.cjs421.js +1 -1
  324. package/dist/index.cjs421.js.map +1 -1
  325. package/dist/index.cjs422.js +1 -1
  326. package/dist/index.cjs422.js.map +1 -1
  327. package/dist/index.cjs423.js +1 -1
  328. package/dist/index.cjs423.js.map +1 -1
  329. package/dist/index.cjs424.js +1 -1
  330. package/dist/index.cjs424.js.map +1 -1
  331. package/dist/index.cjs425.js +1 -1
  332. package/dist/index.cjs425.js.map +1 -1
  333. package/dist/index.cjs426.js +1 -1
  334. package/dist/index.cjs426.js.map +1 -1
  335. package/dist/index.cjs427.js +1 -1
  336. package/dist/index.cjs427.js.map +1 -1
  337. package/dist/index.cjs428.js +1 -1
  338. package/dist/index.cjs428.js.map +1 -1
  339. package/dist/index.cjs429.js +1 -1
  340. package/dist/index.cjs429.js.map +1 -1
  341. package/dist/index.cjs430.js +1 -1
  342. package/dist/index.cjs430.js.map +1 -1
  343. package/dist/index.cjs433.js +1 -1
  344. package/dist/index.cjs434.js +6 -1
  345. package/dist/index.cjs434.js.map +1 -1
  346. package/dist/index.cjs435.js +1 -1
  347. package/dist/index.cjs435.js.map +1 -1
  348. package/dist/index.cjs436.js +1 -1
  349. package/dist/index.cjs436.js.map +1 -1
  350. package/dist/index.cjs437.js +1 -6
  351. package/dist/index.cjs437.js.map +1 -1
  352. package/dist/index.cjs438.js +1 -1
  353. package/dist/index.cjs438.js.map +1 -1
  354. package/dist/index.cjs439.js +1 -1
  355. package/dist/index.cjs439.js.map +1 -1
  356. package/dist/index.cjs440.js +1 -1
  357. package/dist/index.cjs440.js.map +1 -1
  358. package/dist/index.cjs441.js +1 -1
  359. package/dist/index.cjs441.js.map +1 -1
  360. package/dist/index.cjs442.js +1 -1
  361. package/dist/index.cjs442.js.map +1 -1
  362. package/dist/index.cjs443.js +1 -1
  363. package/dist/index.cjs443.js.map +1 -1
  364. package/dist/index.cjs444.js +1 -1
  365. package/dist/index.cjs444.js.map +1 -1
  366. package/dist/index.cjs445.js +1 -1
  367. package/dist/index.cjs445.js.map +1 -1
  368. package/dist/index.cjs446.js +2 -1
  369. package/dist/index.cjs446.js.map +1 -1
  370. package/dist/index.cjs447.js +4 -1
  371. package/dist/index.cjs447.js.map +1 -1
  372. package/dist/index.cjs448.js +2 -1
  373. package/dist/index.cjs448.js.map +1 -1
  374. package/dist/index.cjs449.js +1 -2
  375. package/dist/index.cjs449.js.map +1 -1
  376. package/dist/index.cjs450.js +1 -4
  377. package/dist/index.cjs450.js.map +1 -1
  378. package/dist/index.cjs451.js +2 -2
  379. package/dist/index.cjs451.js.map +1 -1
  380. package/dist/index.cjs452.js +6 -1
  381. package/dist/index.cjs452.js.map +1 -1
  382. package/dist/index.cjs453.js +6 -1
  383. package/dist/index.cjs453.js.map +1 -1
  384. package/dist/index.cjs454.js +1 -2
  385. package/dist/index.cjs454.js.map +1 -1
  386. package/dist/index.cjs455.js +1 -6
  387. package/dist/index.cjs455.js.map +1 -1
  388. package/dist/index.cjs456.js +1 -6
  389. package/dist/index.cjs456.js.map +1 -1
  390. package/dist/index.cjs457.js +1 -1
  391. package/dist/index.cjs457.js.map +1 -1
  392. package/dist/index.cjs458.js +1 -1
  393. package/dist/index.cjs458.js.map +1 -1
  394. package/dist/index.cjs459.js +1 -1
  395. package/dist/index.cjs459.js.map +1 -1
  396. package/dist/index.cjs460.js +1 -1
  397. package/dist/index.cjs460.js.map +1 -1
  398. package/dist/index.cjs461.js +1 -1
  399. package/dist/index.cjs461.js.map +1 -1
  400. package/dist/index.cjs462.js +1 -1
  401. package/dist/index.cjs462.js.map +1 -1
  402. package/dist/index.cjs463.js +1 -1
  403. package/dist/index.cjs463.js.map +1 -1
  404. package/dist/index.cjs464.js +1 -1
  405. package/dist/index.cjs464.js.map +1 -1
  406. package/dist/index.cjs465.js +1 -1
  407. package/dist/index.cjs465.js.map +1 -1
  408. package/dist/index.cjs466.js +1 -1
  409. package/dist/index.cjs466.js.map +1 -1
  410. package/dist/index.cjs467.js +1 -1
  411. package/dist/index.cjs467.js.map +1 -1
  412. package/dist/index.cjs468.js +1 -1
  413. package/dist/index.cjs469.js +1 -1
  414. package/dist/index.cjs470.js +1 -1
  415. package/dist/index.cjs470.js.map +1 -1
  416. package/dist/index.cjs471.js +1 -1
  417. package/dist/index.cjs471.js.map +1 -1
  418. package/dist/index.cjs472.js +1 -1
  419. package/dist/index.cjs472.js.map +1 -1
  420. package/dist/index.cjs475.js +1 -1
  421. package/dist/index.cjs475.js.map +1 -1
  422. package/dist/index.cjs476.js +1 -1
  423. package/dist/index.cjs476.js.map +1 -1
  424. package/dist/index.cjs478.js +1 -1
  425. package/dist/index.cjs478.js.map +1 -1
  426. package/dist/index.cjs479.js +1 -1
  427. package/dist/index.cjs479.js.map +1 -1
  428. package/dist/index.cjs480.js +1 -1
  429. package/dist/index.cjs480.js.map +1 -1
  430. package/dist/index.cjs481.js +1 -1
  431. package/dist/index.cjs481.js.map +1 -1
  432. package/dist/index.cjs482.js +1 -1
  433. package/dist/index.cjs482.js.map +1 -1
  434. package/dist/index.cjs483.js +1 -1
  435. package/dist/index.cjs483.js.map +1 -1
  436. package/dist/index.cjs484.js +1 -1
  437. package/dist/index.cjs484.js.map +1 -1
  438. package/dist/index.cjs485.js +1 -1
  439. package/dist/index.cjs485.js.map +1 -1
  440. package/dist/index.cjs486.js +1 -1
  441. package/dist/index.cjs486.js.map +1 -1
  442. package/dist/index.cjs487.js +1 -1
  443. package/dist/index.cjs487.js.map +1 -1
  444. package/dist/index.cjs488.js +1 -1
  445. package/dist/index.cjs488.js.map +1 -1
  446. package/dist/index.cjs489.js +1 -1
  447. package/dist/index.cjs489.js.map +1 -1
  448. package/dist/index.cjs490.js +1 -1
  449. package/dist/index.cjs490.js.map +1 -1
  450. package/dist/index.cjs491.js +1 -1
  451. package/dist/index.cjs491.js.map +1 -1
  452. package/dist/index.cjs492.js +1 -1
  453. package/dist/index.cjs492.js.map +1 -1
  454. package/dist/index.cjs493.js +1 -1
  455. package/dist/index.cjs493.js.map +1 -1
  456. package/dist/index.cjs494.js +1 -1
  457. package/dist/index.cjs494.js.map +1 -1
  458. package/dist/index.cjs495.js +1 -4
  459. package/dist/index.cjs495.js.map +1 -1
  460. package/dist/index.cjs496.js +1 -1
  461. package/dist/index.cjs496.js.map +1 -1
  462. package/dist/index.cjs497.js +1 -1
  463. package/dist/index.cjs497.js.map +1 -1
  464. package/dist/index.cjs498.js +1 -1
  465. package/dist/index.cjs498.js.map +1 -1
  466. package/dist/index.cjs499.js +1 -1
  467. package/dist/index.cjs499.js.map +1 -1
  468. package/dist/index.cjs500.js +1 -1
  469. package/dist/index.cjs500.js.map +1 -1
  470. package/dist/index.cjs501.js +1 -1
  471. package/dist/index.cjs501.js.map +1 -1
  472. package/dist/index.cjs502.js +1 -1
  473. package/dist/index.cjs502.js.map +1 -1
  474. package/dist/index.cjs503.js +1 -1
  475. package/dist/index.cjs503.js.map +1 -1
  476. package/dist/index.cjs504.js +1 -1
  477. package/dist/index.cjs504.js.map +1 -1
  478. package/dist/index.cjs505.js +1 -1
  479. package/dist/index.cjs505.js.map +1 -1
  480. package/dist/index.cjs506.js +1 -1
  481. package/dist/index.cjs506.js.map +1 -1
  482. package/dist/index.cjs507.js +1 -1
  483. package/dist/index.cjs507.js.map +1 -1
  484. package/dist/index.cjs508.js +1 -1
  485. package/dist/index.cjs508.js.map +1 -1
  486. package/dist/index.cjs509.js +1 -1
  487. package/dist/index.cjs509.js.map +1 -1
  488. package/dist/index.cjs510.js +1 -1
  489. package/dist/index.cjs510.js.map +1 -1
  490. package/dist/index.cjs511.js +1 -1
  491. package/dist/index.cjs511.js.map +1 -1
  492. package/dist/index.cjs512.js +1 -1
  493. package/dist/index.cjs512.js.map +1 -1
  494. package/dist/index.cjs513.js +1 -1
  495. package/dist/index.cjs513.js.map +1 -1
  496. package/dist/index.cjs514.js +1 -1
  497. package/dist/index.cjs514.js.map +1 -1
  498. package/dist/index.cjs515.js +1 -1
  499. package/dist/index.cjs515.js.map +1 -1
  500. package/dist/index.cjs516.js +1 -1
  501. package/dist/index.cjs516.js.map +1 -1
  502. package/dist/index.cjs517.js +1 -1
  503. package/dist/index.cjs517.js.map +1 -1
  504. package/dist/index.cjs518.js +1 -1
  505. package/dist/index.cjs518.js.map +1 -1
  506. package/dist/index.cjs519.js +1 -1
  507. package/dist/index.cjs519.js.map +1 -1
  508. package/dist/index.cjs520.js +1 -1
  509. package/dist/index.cjs520.js.map +1 -1
  510. package/dist/index.cjs521.js +1 -1
  511. package/dist/index.cjs521.js.map +1 -1
  512. package/dist/index.cjs522.js +1 -1
  513. package/dist/index.cjs522.js.map +1 -1
  514. package/dist/index.cjs523.js +5 -1
  515. package/dist/index.cjs523.js.map +1 -1
  516. package/dist/index.cjs524.js +1 -1
  517. package/dist/index.cjs524.js.map +1 -1
  518. package/dist/index.cjs525.js +1 -1
  519. package/dist/index.cjs525.js.map +1 -1
  520. package/dist/index.cjs526.js +1 -1
  521. package/dist/index.cjs526.js.map +1 -1
  522. package/dist/index.cjs527.js +12 -1
  523. package/dist/index.cjs527.js.map +1 -1
  524. package/dist/index.cjs528.js +1 -1
  525. package/dist/index.cjs528.js.map +1 -1
  526. package/dist/index.cjs529.js +1 -2
  527. package/dist/index.cjs529.js.map +1 -1
  528. package/dist/index.cjs530.js +1 -1
  529. package/dist/index.cjs530.js.map +1 -1
  530. package/dist/index.cjs531.js +1 -1
  531. package/dist/index.cjs531.js.map +1 -1
  532. package/dist/index.cjs532.js +1 -1
  533. package/dist/index.cjs532.js.map +1 -1
  534. package/dist/index.cjs533.js +1 -1
  535. package/dist/index.cjs533.js.map +1 -1
  536. package/dist/index.cjs534.js +1 -1
  537. package/dist/index.cjs534.js.map +1 -1
  538. package/dist/index.cjs535.js +2 -1
  539. package/dist/index.cjs535.js.map +1 -1
  540. package/dist/index.cjs536.js +1 -1
  541. package/dist/index.cjs536.js.map +1 -1
  542. package/dist/index.cjs537.js +1 -1
  543. package/dist/index.cjs537.js.map +1 -1
  544. package/dist/index.cjs538.js +1 -1
  545. package/dist/index.cjs538.js.map +1 -1
  546. package/dist/index.cjs539.js +1 -1
  547. package/dist/index.cjs539.js.map +1 -1
  548. package/dist/index.cjs540.js +1 -1
  549. package/dist/index.cjs540.js.map +1 -1
  550. package/dist/index.cjs541.js +1 -1
  551. package/dist/index.cjs541.js.map +1 -1
  552. package/dist/index.cjs543.js +1 -1
  553. package/dist/index.cjs543.js.map +1 -1
  554. package/dist/index.cjs544.js +1 -1
  555. package/dist/index.cjs545.js +1 -1
  556. package/dist/index.cjs545.js.map +1 -1
  557. package/dist/index.cjs546.js +1 -5
  558. package/dist/index.cjs546.js.map +1 -1
  559. package/dist/index.cjs547.js +1 -1
  560. package/dist/index.cjs547.js.map +1 -1
  561. package/dist/index.cjs549.js +1 -1
  562. package/dist/index.cjs549.js.map +1 -1
  563. package/dist/index.cjs550.js +1 -12
  564. package/dist/index.cjs550.js.map +1 -1
  565. package/dist/index.cjs551.js +1 -1
  566. package/dist/index.cjs551.js.map +1 -1
  567. package/dist/index.cjs552.js +1 -1
  568. package/dist/index.cjs552.js.map +1 -1
  569. package/dist/index.cjs553.js +1 -1
  570. package/dist/index.cjs553.js.map +1 -1
  571. package/dist/index.cjs554.js +1 -1
  572. package/dist/index.cjs554.js.map +1 -1
  573. package/dist/index.cjs555.js +4 -1
  574. package/dist/index.cjs555.js.map +1 -1
  575. package/dist/index.cjs556.js +1 -1
  576. package/dist/index.cjs556.js.map +1 -1
  577. package/dist/index.cjs557.js +1 -1
  578. package/dist/index.cjs557.js.map +1 -1
  579. package/dist/index.cjs558.js +1 -1
  580. package/dist/index.cjs558.js.map +1 -1
  581. package/dist/index.cjs559.js +1 -4
  582. package/dist/index.cjs559.js.map +1 -1
  583. package/dist/index.cjs560.js +4 -1
  584. package/dist/index.cjs560.js.map +1 -1
  585. package/dist/index.cjs561.js +1 -1
  586. package/dist/index.cjs561.js.map +1 -1
  587. package/dist/index.cjs562.js +1 -1
  588. package/dist/index.cjs562.js.map +1 -1
  589. package/dist/index.cjs563.js +1 -1
  590. package/dist/index.cjs563.js.map +1 -1
  591. package/dist/index.cjs565.js +1 -1
  592. package/dist/index.cjs566.js +1 -1
  593. package/dist/index.cjs567.js +1 -1
  594. package/dist/index.cjs568.js +1 -1
  595. package/dist/index.cjs569.js +1 -1
  596. package/dist/index.cjs570.js +1 -1
  597. package/dist/index.cjs571.js +1 -1
  598. package/dist/index.cjs572.js +1 -1
  599. package/dist/index.cjs573.js +1 -1
  600. package/dist/index.cjs574.js +1 -1
  601. package/dist/index.cjs575.js +1 -1
  602. package/dist/index.cjs576.js +1 -1
  603. package/dist/index.cjs577.js +1 -1
  604. package/dist/index.cjs578.js +1 -1
  605. package/dist/index.cjs579.js +1 -1
  606. package/dist/index.cjs580.js +1 -1
  607. package/dist/index.cjs582.js +1 -1
  608. package/dist/index.cjs584.js +1 -1
  609. package/dist/index.cjs585.js +1 -1
  610. package/dist/index.cjs586.js +1 -1
  611. package/dist/index.cjs587.js +1 -1
  612. package/dist/index.cjs588.js +1 -1
  613. package/dist/index.cjs589.js +1 -1
  614. package/dist/index.cjs590.js +1 -1
  615. package/dist/index.cjs591.js +1 -1
  616. package/dist/index.cjs592.js +1 -1
  617. package/dist/index.cjs593.js +1 -1
  618. package/dist/index.cjs594.js +1 -1
  619. package/dist/index.cjs594.js.map +1 -1
  620. package/dist/index.cjs595.js +1 -1
  621. package/dist/index.cjs595.js.map +1 -1
  622. package/dist/index.cjs596.js +1 -1
  623. package/dist/index.cjs596.js.map +1 -1
  624. package/dist/index.cjs597.js +1 -1
  625. package/dist/index.cjs597.js.map +1 -1
  626. package/dist/index.cjs598.js +2 -4
  627. package/dist/index.cjs598.js.map +1 -1
  628. package/dist/index.cjs599.js +1 -1
  629. package/dist/index.cjs599.js.map +1 -1
  630. package/dist/index.cjs602.js +1 -1
  631. package/dist/index.cjs602.js.map +1 -1
  632. package/dist/index.cjs603.js +1 -1
  633. package/dist/index.cjs603.js.map +1 -1
  634. package/dist/index.cjs604.js +2 -1
  635. package/dist/index.cjs604.js.map +1 -1
  636. package/dist/index.cjs605.js +1 -2
  637. package/dist/index.cjs605.js.map +1 -1
  638. package/dist/index.cjs606.js +1 -1
  639. package/dist/index.cjs606.js.map +1 -1
  640. package/dist/index.cjs607.js +1 -1
  641. package/dist/index.cjs607.js.map +1 -1
  642. package/dist/index.cjs608.js +4 -1
  643. package/dist/index.cjs608.js.map +1 -1
  644. package/dist/index.cjs609.js +1 -2
  645. package/dist/index.cjs609.js.map +1 -1
  646. package/dist/index.cjs610.js +1 -1
  647. package/dist/index.cjs610.js.map +1 -1
  648. package/dist/index.cjs611.js +1 -38
  649. package/dist/index.cjs611.js.map +1 -1
  650. package/dist/index.cjs612.js +1 -1
  651. package/dist/index.cjs612.js.map +1 -1
  652. package/dist/index.cjs613.js +1 -1
  653. package/dist/index.cjs613.js.map +1 -1
  654. package/dist/index.cjs614.js +1 -1
  655. package/dist/index.cjs614.js.map +1 -1
  656. package/dist/index.cjs615.js +1 -1
  657. package/dist/index.cjs615.js.map +1 -1
  658. package/dist/index.cjs616.js +1 -1
  659. package/dist/index.cjs616.js.map +1 -1
  660. package/dist/index.cjs617.js +1 -1
  661. package/dist/index.cjs617.js.map +1 -1
  662. package/dist/index.cjs619.js +1 -1
  663. package/dist/index.cjs619.js.map +1 -1
  664. package/dist/index.cjs620.js +1 -1
  665. package/dist/index.cjs620.js.map +1 -1
  666. package/dist/index.cjs621.js +1 -1
  667. package/dist/index.cjs621.js.map +1 -1
  668. package/dist/index.cjs623.js +1 -1
  669. package/dist/index.cjs624.js +1 -1
  670. package/dist/index.cjs624.js.map +1 -1
  671. package/dist/index.cjs625.js +38 -1
  672. package/dist/index.cjs625.js.map +1 -1
  673. package/dist/index.cjs626.js +1 -1
  674. package/dist/index.cjs626.js.map +1 -1
  675. package/dist/index.cjs627.js +1 -1
  676. package/dist/index.cjs627.js.map +1 -1
  677. package/dist/index.cjs628.js +1 -1
  678. package/dist/index.cjs628.js.map +1 -1
  679. package/dist/index.cjs629.js +1 -38
  680. package/dist/index.cjs629.js.map +1 -1
  681. package/dist/index.cjs630.js +1 -1
  682. package/dist/index.cjs630.js.map +1 -1
  683. package/dist/index.cjs631.js +1 -1
  684. package/dist/index.cjs631.js.map +1 -1
  685. package/dist/index.cjs632.js +1 -1
  686. package/dist/index.cjs632.js.map +1 -1
  687. package/dist/index.cjs633.js +1 -1
  688. package/dist/index.cjs633.js.map +1 -1
  689. package/dist/index.cjs635.js +1 -1
  690. package/dist/index.cjs635.js.map +1 -1
  691. package/dist/index.cjs637.js +1 -1
  692. package/dist/index.cjs637.js.map +1 -1
  693. package/dist/index.cjs638.js +38 -1
  694. package/dist/index.cjs638.js.map +1 -1
  695. package/dist/index.cjs639.js +1 -1
  696. package/dist/index.cjs639.js.map +1 -1
  697. package/dist/index.cjs640.js +1 -7
  698. package/dist/index.cjs640.js.map +1 -1
  699. package/dist/index.cjs641.js +1 -1
  700. package/dist/index.cjs641.js.map +1 -1
  701. package/dist/index.cjs642.js +1 -1
  702. package/dist/index.cjs642.js.map +1 -1
  703. package/dist/index.cjs643.js +1 -1
  704. package/dist/index.cjs643.js.map +1 -1
  705. package/dist/index.cjs644.js +7 -1
  706. package/dist/index.cjs644.js.map +1 -1
  707. package/dist/index.cjs645.js +1 -1
  708. package/dist/index.cjs645.js.map +1 -1
  709. package/dist/index.cjs646.js +1 -1
  710. package/dist/index.cjs646.js.map +1 -1
  711. package/dist/index.cjs647.js +1 -1
  712. package/dist/index.cjs647.js.map +1 -1
  713. package/dist/index.cjs648.js +1 -1
  714. package/dist/index.cjs648.js.map +1 -1
  715. package/dist/index.cjs649.js +1 -1
  716. package/dist/index.cjs649.js.map +1 -1
  717. package/dist/index.cjs655.js +1 -1
  718. package/dist/index.cjs655.js.map +1 -1
  719. package/dist/index.cjs659.js +1 -1
  720. package/dist/index.cjs659.js.map +1 -1
  721. package/dist/index.cjs660.js +1 -1
  722. package/dist/index.cjs660.js.map +1 -1
  723. package/dist/index.cjs661.js +1 -1
  724. package/dist/index.cjs661.js.map +1 -1
  725. package/dist/index.cjs662.js +1 -1
  726. package/dist/index.cjs662.js.map +1 -1
  727. package/dist/index.cjs673.js +1 -38
  728. package/dist/index.cjs673.js.map +1 -1
  729. package/dist/index.cjs674.js +1 -1
  730. package/dist/index.cjs674.js.map +1 -1
  731. package/dist/index.cjs675.js +1 -1
  732. package/dist/index.cjs675.js.map +1 -1
  733. package/dist/index.cjs677.js +1 -1
  734. package/dist/index.cjs677.js.map +1 -1
  735. package/dist/index.cjs679.js +1 -1
  736. package/dist/index.cjs679.js.map +1 -1
  737. package/dist/index.cjs682.js +38 -1
  738. package/dist/index.cjs682.js.map +1 -1
  739. package/dist/index.cjs683.js +1 -1
  740. package/dist/index.cjs683.js.map +1 -1
  741. package/dist/index.cjs684.js +1 -1
  742. package/dist/index.cjs684.js.map +1 -1
  743. package/dist/index.cjs685.js +1 -1
  744. package/dist/index.cjs685.js.map +1 -1
  745. package/dist/index.cjs686.js +1 -1
  746. package/dist/index.cjs686.js.map +1 -1
  747. package/dist/index.cjs687.js +1 -1
  748. package/dist/index.cjs687.js.map +1 -1
  749. package/dist/index.cjs688.js +1 -1
  750. package/dist/index.cjs688.js.map +1 -1
  751. package/dist/index.cjs690.js +1 -1
  752. package/dist/index.cjs691.js +1 -1
  753. package/dist/index.cjs692.js +1 -1
  754. package/dist/index.cjs693.js +1 -1
  755. package/dist/index.cjs693.js.map +1 -1
  756. package/dist/index.cjs694.js +1 -1
  757. package/dist/index.cjs694.js.map +1 -1
  758. package/dist/index.cjs704.js +1 -1
  759. package/dist/index.cjs704.js.map +1 -1
  760. package/dist/index.cjs705.js +1 -1
  761. package/dist/index.cjs705.js.map +1 -1
  762. package/dist/index.cjs706.js +1 -1
  763. package/dist/index.cjs706.js.map +1 -1
  764. package/dist/index.cjs707.js +1 -1
  765. package/dist/index.cjs707.js.map +1 -1
  766. package/dist/index.cjs708.js +1 -1
  767. package/dist/index.cjs708.js.map +1 -1
  768. package/dist/index.cjs709.js +1 -1
  769. package/dist/index.cjs709.js.map +1 -1
  770. package/dist/index.cjs710.js +1 -1
  771. package/dist/index.cjs710.js.map +1 -1
  772. package/dist/index.cjs711.js +1 -1
  773. package/dist/index.cjs711.js.map +1 -1
  774. package/dist/index.cjs712.js +1 -1
  775. package/dist/index.cjs712.js.map +1 -1
  776. package/dist/index.cjs713.js +1 -1
  777. package/dist/index.cjs713.js.map +1 -1
  778. package/dist/index.cjs714.js +1 -1
  779. package/dist/index.cjs714.js.map +1 -1
  780. package/dist/index.cjs715.js +1 -1
  781. package/dist/index.cjs715.js.map +1 -1
  782. package/dist/index.cjs716.js +1 -1
  783. package/dist/index.cjs716.js.map +1 -1
  784. package/dist/index.cjs717.js +1 -1
  785. package/dist/index.cjs717.js.map +1 -1
  786. package/dist/index.cjs718.js +1 -1
  787. package/dist/index.cjs718.js.map +1 -1
  788. package/dist/index.cjs719.js +1 -1
  789. package/dist/index.cjs719.js.map +1 -1
  790. package/dist/index.cjs720.js +1 -1
  791. package/dist/index.cjs720.js.map +1 -1
  792. package/dist/index.cjs721.js +1 -1
  793. package/dist/index.cjs721.js.map +1 -1
  794. package/dist/index.cjs722.js +1 -1
  795. package/dist/index.cjs722.js.map +1 -1
  796. package/dist/index.cjs723.js +1 -1
  797. package/dist/index.cjs723.js.map +1 -1
  798. package/dist/index.cjs724.js +1 -1
  799. package/dist/index.cjs724.js.map +1 -1
  800. package/dist/index.cjs728.js +1 -1
  801. package/dist/index.cjs729.js +1 -1
  802. package/dist/index.cjs730.js +1 -1
  803. package/dist/index.cjs731.js +1 -1
  804. package/dist/index.cjs732.js +1 -1
  805. package/dist/index.cjs735.js +1 -1
  806. package/dist/index.cjs737.js +1 -1
  807. package/dist/index.cjs739.js +1 -1
  808. package/dist/index.cjs740.js +1 -1
  809. package/dist/index.cjs742.js +1 -1
  810. package/dist/index.cjs76.js +1 -1
  811. package/dist/index.cjs77.js +1 -1
  812. package/dist/index.cjs78.js +1 -1
  813. package/dist/index.cjs80.js +1 -1
  814. package/dist/index.cjs81.js +1 -1
  815. package/dist/index.cjs82.js +1 -1
  816. package/dist/index.cjs84.js +1 -1
  817. package/dist/index.cjs85.js +1 -1
  818. package/dist/index.cjs86.js +1 -1
  819. package/dist/index.cjs88.js +1 -1
  820. package/dist/index.cjs89.js +1 -1
  821. package/dist/index.cjs90.js +1 -1
  822. package/dist/index.cjs94.js +1 -1
  823. package/dist/index.cjs95.js +1 -1
  824. package/dist/index.cjs96.js +1 -1
  825. package/dist/index.cjs98.js +1 -1
  826. package/dist/index.cjs99.js +1 -1
  827. package/dist/index.es101.js +1 -1
  828. package/dist/index.es105.js +1 -1
  829. package/dist/index.es106.js +1 -1
  830. package/dist/index.es107.js +15 -15
  831. package/dist/index.es108.js +1 -1
  832. package/dist/index.es109.js +1 -1
  833. package/dist/index.es110.js +1 -1
  834. package/dist/index.es111.js +8 -8
  835. package/dist/index.es112.js +1 -1
  836. package/dist/index.es113.js +1 -1
  837. package/dist/index.es114.js +1 -1
  838. package/dist/index.es115.js +14 -14
  839. package/dist/index.es116.js +9 -9
  840. package/dist/index.es117.js +1 -1
  841. package/dist/index.es118.js +1 -1
  842. package/dist/index.es121.js +4 -4
  843. package/dist/index.es123.js +1 -1
  844. package/dist/index.es124.js +1 -1
  845. package/dist/index.es125.js +2 -2
  846. package/dist/index.es127.js +2 -2
  847. package/dist/index.es129.js +12 -12
  848. package/dist/index.es130.js +4 -4
  849. package/dist/index.es131.js +10 -10
  850. package/dist/index.es132.js +1 -1
  851. package/dist/index.es157.js +1 -1
  852. package/dist/index.es158.js +1 -1
  853. package/dist/index.es159.js +1 -1
  854. package/dist/index.es160.js +1 -1
  855. package/dist/index.es161.js +1 -1
  856. package/dist/index.es162.js +1 -1
  857. package/dist/index.es163.js +1 -1
  858. package/dist/index.es164.js +1 -1
  859. package/dist/index.es173.js +1 -1
  860. package/dist/index.es176.js +1 -1
  861. package/dist/index.es177.js +1 -1
  862. package/dist/index.es178.js +1 -1
  863. package/dist/index.es182.js +2 -2
  864. package/dist/index.es183.js +1 -1
  865. package/dist/index.es184.js +7 -7
  866. package/dist/index.es185.js +1 -1
  867. package/dist/index.es188.js +1 -1
  868. package/dist/index.es190.js +503 -9
  869. package/dist/index.es190.js.map +1 -1
  870. package/dist/index.es191.js +104 -6
  871. package/dist/index.es191.js.map +1 -1
  872. package/dist/index.es192.js +85 -12
  873. package/dist/index.es192.js.map +1 -1
  874. package/dist/index.es193.js +368 -79
  875. package/dist/index.es193.js.map +1 -1
  876. package/dist/index.es194.js +121 -33
  877. package/dist/index.es194.js.map +1 -1
  878. package/dist/index.es195.js +673 -37
  879. package/dist/index.es195.js.map +1 -1
  880. package/dist/index.es196.js +16831 -471
  881. package/dist/index.es196.js.map +1 -1
  882. package/dist/index.es197.js +149 -14
  883. package/dist/index.es197.js.map +1 -1
  884. package/dist/index.es198.js +7 -505
  885. package/dist/index.es198.js.map +1 -1
  886. package/dist/index.es199.js +175 -91
  887. package/dist/index.es199.js.map +1 -1
  888. package/dist/index.es200.js +802 -79
  889. package/dist/index.es200.js.map +1 -1
  890. package/dist/index.es201.js +10046 -350
  891. package/dist/index.es201.js.map +1 -1
  892. package/dist/index.es202.js +92 -117
  893. package/dist/index.es202.js.map +1 -1
  894. package/dist/index.es203.js +16 -677
  895. package/dist/index.es203.js.map +1 -1
  896. package/dist/index.es204.js +8 -16846
  897. package/dist/index.es204.js.map +1 -1
  898. package/dist/index.es205.js +6 -150
  899. package/dist/index.es205.js.map +1 -1
  900. package/dist/index.es206.js +14 -7
  901. package/dist/index.es206.js.map +1 -1
  902. package/dist/index.es207.js +83 -186
  903. package/dist/index.es207.js.map +1 -1
  904. package/dist/index.es208.js +28 -803
  905. package/dist/index.es208.js.map +1 -1
  906. package/dist/index.es209.js +42 -10071
  907. package/dist/index.es209.js.map +1 -1
  908. package/dist/index.es210.js +479 -88
  909. package/dist/index.es210.js.map +1 -1
  910. package/dist/index.es211.js +15 -16
  911. package/dist/index.es211.js.map +1 -1
  912. package/dist/index.es212.js +10 -6
  913. package/dist/index.es212.js.map +1 -1
  914. package/dist/index.es213.js +34 -11
  915. package/dist/index.es213.js.map +1 -1
  916. package/dist/index.es214.js +74 -48
  917. package/dist/index.es214.js.map +1 -1
  918. package/dist/index.es215.js +10 -124
  919. package/dist/index.es215.js.map +1 -1
  920. package/dist/index.es216.js +4 -15
  921. package/dist/index.es216.js.map +1 -1
  922. package/dist/index.es217.js +41 -139
  923. package/dist/index.es217.js.map +1 -1
  924. package/dist/index.es218.js +10 -10
  925. package/dist/index.es218.js.map +1 -1
  926. package/dist/index.es219.js +11 -218
  927. package/dist/index.es219.js.map +1 -1
  928. package/dist/index.es220.js +4 -14
  929. package/dist/index.es220.js.map +1 -1
  930. package/dist/index.es221.js +174 -58
  931. package/dist/index.es221.js.map +1 -1
  932. package/dist/index.es222.js +21 -32
  933. package/dist/index.es222.js.map +1 -1
  934. package/dist/index.es223.js +24 -45
  935. package/dist/index.es223.js.map +1 -1
  936. package/dist/index.es224.js +381 -29
  937. package/dist/index.es224.js.map +1 -1
  938. package/dist/index.es225.js +511 -41
  939. package/dist/index.es225.js.map +1 -1
  940. package/dist/index.es226.js +7 -10
  941. package/dist/index.es226.js.map +1 -1
  942. package/dist/index.es227.js +11 -10
  943. package/dist/index.es227.js.map +1 -1
  944. package/dist/index.es228.js +52 -34
  945. package/dist/index.es228.js.map +1 -1
  946. package/dist/index.es229.js +121 -75
  947. package/dist/index.es229.js.map +1 -1
  948. package/dist/index.es230.js +12 -8
  949. package/dist/index.es230.js.map +1 -1
  950. package/dist/index.es231.js +144 -4
  951. package/dist/index.es231.js.map +1 -1
  952. package/dist/index.es232.js +10 -45
  953. package/dist/index.es232.js.map +1 -1
  954. package/dist/index.es233.js +218 -10
  955. package/dist/index.es233.js.map +1 -1
  956. package/dist/index.es234.js +13 -11
  957. package/dist/index.es234.js.map +1 -1
  958. package/dist/index.es235.js +63 -3
  959. package/dist/index.es235.js.map +1 -1
  960. package/dist/index.es236.js +32 -179
  961. package/dist/index.es236.js.map +1 -1
  962. package/dist/index.es237.js +45 -21
  963. package/dist/index.es237.js.map +1 -1
  964. package/dist/index.es238.js +29 -24
  965. package/dist/index.es238.js.map +1 -1
  966. package/dist/index.es239.js +42 -377
  967. package/dist/index.es239.js.map +1 -1
  968. package/dist/index.es240.js +10 -517
  969. package/dist/index.es240.js.map +1 -1
  970. package/dist/index.es241.js +27 -13
  971. package/dist/index.es241.js.map +1 -1
  972. package/dist/index.es242.js +73 -51
  973. package/dist/index.es242.js.map +1 -1
  974. package/dist/index.es243.js +6 -58
  975. package/dist/index.es243.js.map +1 -1
  976. package/dist/index.es244.js +16 -6
  977. package/dist/index.es244.js.map +1 -1
  978. package/dist/index.es245.js +66 -129
  979. package/dist/index.es245.js.map +1 -1
  980. package/dist/index.es246.js +67 -17
  981. package/dist/index.es246.js.map +1 -1
  982. package/dist/index.es247.js +68 -183
  983. package/dist/index.es247.js.map +1 -1
  984. package/dist/index.es248.js +2 -217
  985. package/dist/index.es248.js.map +1 -1
  986. package/dist/index.es249.js +2 -12
  987. package/dist/index.es249.js.map +1 -1
  988. package/dist/index.es250.js +86 -192
  989. package/dist/index.es250.js.map +1 -1
  990. package/dist/index.es251.js +86 -10
  991. package/dist/index.es251.js.map +1 -1
  992. package/dist/index.es252.js +42 -4
  993. package/dist/index.es252.js.map +1 -1
  994. package/dist/index.es253.js +68 -25
  995. package/dist/index.es253.js.map +1 -1
  996. package/dist/index.es254.js +2 -24
  997. package/dist/index.es254.js.map +1 -1
  998. package/dist/index.es255.js +1633 -10
  999. package/dist/index.es255.js.map +1 -1
  1000. package/dist/index.es256.js +34 -11
  1001. package/dist/index.es256.js.map +1 -1
  1002. package/dist/index.es257.js +265 -3
  1003. package/dist/index.es257.js.map +1 -1
  1004. package/dist/index.es258.js +4 -22
  1005. package/dist/index.es258.js.map +1 -1
  1006. package/dist/index.es259.js +196 -24
  1007. package/dist/index.es259.js.map +1 -1
  1008. package/dist/index.es260.js +6 -27
  1009. package/dist/index.es260.js.map +1 -1
  1010. package/dist/index.es261.js +135 -74
  1011. package/dist/index.es261.js.map +1 -1
  1012. package/dist/index.es262.js +18 -6
  1013. package/dist/index.es262.js.map +1 -1
  1014. package/dist/index.es263.js +186 -17
  1015. package/dist/index.es263.js.map +1 -1
  1016. package/dist/index.es264.js +214 -68
  1017. package/dist/index.es264.js.map +1 -1
  1018. package/dist/index.es265.js +51 -68
  1019. package/dist/index.es265.js.map +1 -1
  1020. package/dist/index.es266.js +10 -71
  1021. package/dist/index.es266.js.map +1 -1
  1022. package/dist/index.es267.js +4 -2
  1023. package/dist/index.es267.js.map +1 -1
  1024. package/dist/index.es268.js +58 -2
  1025. package/dist/index.es268.js.map +1 -1
  1026. package/dist/index.es269.js +12 -91
  1027. package/dist/index.es269.js.map +1 -1
  1028. package/dist/index.es270.js +13 -85
  1029. package/dist/index.es270.js.map +1 -1
  1030. package/dist/index.es271.js +21 -42
  1031. package/dist/index.es271.js.map +1 -1
  1032. package/dist/index.es272.js +25 -68
  1033. package/dist/index.es272.js.map +1 -1
  1034. package/dist/index.es273.js +24 -2
  1035. package/dist/index.es273.js.map +1 -1
  1036. package/dist/index.es274.js +4 -1632
  1037. package/dist/index.es274.js.map +1 -1
  1038. package/dist/index.es275.js +4 -34
  1039. package/dist/index.es275.js.map +1 -1
  1040. package/dist/index.es276.js +20 -261
  1041. package/dist/index.es276.js.map +1 -1
  1042. package/dist/index.es277.js +1339 -3
  1043. package/dist/index.es277.js.map +1 -1
  1044. package/dist/index.es278.js +43 -20
  1045. package/dist/index.es278.js.map +1 -1
  1046. package/dist/index.es279.js +10 -5
  1047. package/dist/index.es279.js.map +1 -1
  1048. package/dist/index.es280.js +11 -4
  1049. package/dist/index.es280.js.map +1 -1
  1050. package/dist/index.es281.js +3 -24
  1051. package/dist/index.es281.js.map +1 -1
  1052. package/dist/index.es282.js +22 -1340
  1053. package/dist/index.es282.js.map +1 -1
  1054. package/dist/index.es283.js +25 -44
  1055. package/dist/index.es283.js.map +1 -1
  1056. package/dist/index.es284.js +22 -14
  1057. package/dist/index.es284.js.map +1 -1
  1058. package/dist/index.es285.js +15 -17
  1059. package/dist/index.es285.js.map +1 -1
  1060. package/dist/index.es286.js +17 -2
  1061. package/dist/index.es286.js.map +1 -1
  1062. package/dist/index.es287.js +117 -10
  1063. package/dist/index.es287.js.map +1 -1
  1064. package/dist/index.es288.js +104 -14
  1065. package/dist/index.es288.js.map +1 -1
  1066. package/dist/index.es289.js +2 -32
  1067. package/dist/index.es289.js.map +1 -1
  1068. package/dist/index.es290.js +11 -12
  1069. package/dist/index.es290.js.map +1 -1
  1070. package/dist/index.es291.js +15 -20
  1071. package/dist/index.es291.js.map +1 -1
  1072. package/dist/index.es292.js +29 -42
  1073. package/dist/index.es292.js.map +1 -1
  1074. package/dist/index.es293.js +11 -41
  1075. package/dist/index.es293.js.map +1 -1
  1076. package/dist/index.es294.js +19 -276
  1077. package/dist/index.es294.js.map +1 -1
  1078. package/dist/index.es295.js +40 -239
  1079. package/dist/index.es295.js.map +1 -1
  1080. package/dist/index.es296.js +38 -43
  1081. package/dist/index.es296.js.map +1 -1
  1082. package/dist/index.es297.js +277 -22
  1083. package/dist/index.es297.js.map +1 -1
  1084. package/dist/index.es298.js +242 -116
  1085. package/dist/index.es298.js.map +1 -1
  1086. package/dist/index.es299.js +46 -105
  1087. package/dist/index.es299.js.map +1 -1
  1088. package/dist/index.es311.js +3 -3
  1089. package/dist/index.es319.js +1 -1
  1090. package/dist/index.es326.js +1 -1
  1091. package/dist/index.es327.js +1 -1
  1092. package/dist/index.es328.js +1 -1
  1093. package/dist/index.es329.js +1 -1
  1094. package/dist/index.es330.js +1 -1
  1095. package/dist/index.es331.js +1 -1
  1096. package/dist/index.es332.js +1 -1
  1097. package/dist/index.es333.js +1 -1
  1098. package/dist/index.es334.js +1 -1
  1099. package/dist/index.es337.js +1 -1
  1100. package/dist/index.es338.js +1 -1
  1101. package/dist/index.es340.js +3 -3
  1102. package/dist/index.es341.js +1 -1
  1103. package/dist/index.es342.js +2 -2
  1104. package/dist/index.es343.js +1 -1
  1105. package/dist/index.es348.js +1 -1
  1106. package/dist/index.es349.js +1 -1
  1107. package/dist/index.es350.js +1 -1
  1108. package/dist/index.es351.js +1 -1
  1109. package/dist/index.es354.js +2 -2
  1110. package/dist/index.es355.js +2 -2
  1111. package/dist/index.es356.js +1 -1
  1112. package/dist/index.es360.js +2 -2
  1113. package/dist/index.es363.js +1 -1
  1114. package/dist/index.es367.js +1 -1
  1115. package/dist/index.es370.js +1 -1
  1116. package/dist/index.es378.js +1 -1
  1117. package/dist/index.es379.js +1 -1
  1118. package/dist/index.es380.js +1 -1
  1119. package/dist/index.es381.js +2 -2
  1120. package/dist/index.es382.js +1 -1
  1121. package/dist/index.es383.js +1 -1
  1122. package/dist/index.es384.js +1 -1
  1123. package/dist/index.es386.js +2 -2
  1124. package/dist/index.es387.js +2 -2
  1125. package/dist/index.es388.js +1 -1
  1126. package/dist/index.es389.js +1 -1
  1127. package/dist/index.es390.js +1 -1
  1128. package/dist/index.es391.js +1 -1
  1129. package/dist/index.es392.js +2 -2
  1130. package/dist/index.es393.js +2 -2
  1131. package/dist/index.es394.js +1 -1
  1132. package/dist/index.es397.js +2 -2
  1133. package/dist/index.es398.js +2 -2
  1134. package/dist/index.es400.js +2 -2
  1135. package/dist/index.es401.js +1 -1
  1136. package/dist/index.es402.js +2 -2
  1137. package/dist/index.es403.js +1 -1
  1138. package/dist/index.es404.js +2 -2
  1139. package/dist/index.es405.js +1 -1
  1140. package/dist/index.es406.js +1 -1
  1141. package/dist/index.es407.js +1 -1
  1142. package/dist/index.es413.js +1 -1
  1143. package/dist/index.es414.js +2 -2
  1144. package/dist/index.es415.js +1 -1
  1145. package/dist/index.es416.js +1 -1
  1146. package/dist/index.es417.js +1 -1
  1147. package/dist/index.es420.js +3 -27
  1148. package/dist/index.es420.js.map +1 -1
  1149. package/dist/index.es421.js +8 -29
  1150. package/dist/index.es421.js.map +1 -1
  1151. package/dist/index.es422.js +7 -5
  1152. package/dist/index.es422.js.map +1 -1
  1153. package/dist/index.es423.js +260 -3
  1154. package/dist/index.es423.js.map +1 -1
  1155. package/dist/index.es424.js +85 -10
  1156. package/dist/index.es424.js.map +1 -1
  1157. package/dist/index.es425.js +339 -9
  1158. package/dist/index.es425.js.map +1 -1
  1159. package/dist/index.es426.js +12 -263
  1160. package/dist/index.es426.js.map +1 -1
  1161. package/dist/index.es427.js +46 -84
  1162. package/dist/index.es427.js.map +1 -1
  1163. package/dist/index.es428.js +4 -339
  1164. package/dist/index.es428.js.map +1 -1
  1165. package/dist/index.es429.js +4 -12
  1166. package/dist/index.es429.js.map +1 -1
  1167. package/dist/index.es430.js +4 -47
  1168. package/dist/index.es430.js.map +1 -1
  1169. package/dist/index.es432.js +2 -2
  1170. package/dist/index.es433.js +2 -2
  1171. package/dist/index.es434.js +43 -2
  1172. package/dist/index.es434.js.map +1 -1
  1173. package/dist/index.es435.js +13 -2
  1174. package/dist/index.es435.js.map +1 -1
  1175. package/dist/index.es436.js +349 -2
  1176. package/dist/index.es436.js.map +1 -1
  1177. package/dist/index.es437.js +220 -39
  1178. package/dist/index.es437.js.map +1 -1
  1179. package/dist/index.es438.js +36 -10
  1180. package/dist/index.es438.js.map +1 -1
  1181. package/dist/index.es439.js +7 -348
  1182. package/dist/index.es439.js.map +1 -1
  1183. package/dist/index.es440.js +38 -221
  1184. package/dist/index.es440.js.map +1 -1
  1185. package/dist/index.es441.js +16 -36
  1186. package/dist/index.es441.js.map +1 -1
  1187. package/dist/index.es442.js +18 -6
  1188. package/dist/index.es442.js.map +1 -1
  1189. package/dist/index.es443.js +8 -39
  1190. package/dist/index.es443.js.map +1 -1
  1191. package/dist/index.es444.js +14 -16
  1192. package/dist/index.es444.js.map +1 -1
  1193. package/dist/index.es445.js +20 -16
  1194. package/dist/index.es445.js.map +1 -1
  1195. package/dist/index.es446.js +131 -8
  1196. package/dist/index.es446.js.map +1 -1
  1197. package/dist/index.es447.js +18 -15
  1198. package/dist/index.es447.js.map +1 -1
  1199. package/dist/index.es448.js +18 -23
  1200. package/dist/index.es448.js.map +1 -1
  1201. package/dist/index.es449.js +15 -129
  1202. package/dist/index.es449.js.map +1 -1
  1203. package/dist/index.es450.js +33 -18
  1204. package/dist/index.es450.js.map +1 -1
  1205. package/dist/index.es451.js +217 -18
  1206. package/dist/index.es451.js.map +1 -1
  1207. package/dist/index.es452.js +40 -19
  1208. package/dist/index.es452.js.map +1 -1
  1209. package/dist/index.es453.js +17 -34
  1210. package/dist/index.es453.js.map +1 -1
  1211. package/dist/index.es454.js +11 -218
  1212. package/dist/index.es454.js.map +1 -1
  1213. package/dist/index.es455.js +10 -40
  1214. package/dist/index.es455.js.map +1 -1
  1215. package/dist/index.es456.js +5 -18
  1216. package/dist/index.es456.js.map +1 -1
  1217. package/dist/index.es457.js +12 -9
  1218. package/dist/index.es457.js.map +1 -1
  1219. package/dist/index.es458.js +8 -12
  1220. package/dist/index.es458.js.map +1 -1
  1221. package/dist/index.es459.js +12 -4
  1222. package/dist/index.es459.js.map +1 -1
  1223. package/dist/index.es460.js +4 -12
  1224. package/dist/index.es460.js.map +1 -1
  1225. package/dist/index.es461.js +12 -9
  1226. package/dist/index.es461.js.map +1 -1
  1227. package/dist/index.es462.js +9 -5
  1228. package/dist/index.es462.js.map +1 -1
  1229. package/dist/index.es463.js +5 -14
  1230. package/dist/index.es463.js.map +1 -1
  1231. package/dist/index.es464.js +15 -11
  1232. package/dist/index.es464.js.map +1 -1
  1233. package/dist/index.es465.js +26 -8
  1234. package/dist/index.es465.js.map +1 -1
  1235. package/dist/index.es466.js +29 -5
  1236. package/dist/index.es466.js.map +1 -1
  1237. package/dist/index.es467.js +5 -12
  1238. package/dist/index.es467.js.map +1 -1
  1239. package/dist/index.es468.js +4 -4
  1240. package/dist/index.es469.js +3 -3
  1241. package/dist/index.es470.js +10 -2
  1242. package/dist/index.es470.js.map +1 -1
  1243. package/dist/index.es471.js +2 -322
  1244. package/dist/index.es471.js.map +1 -1
  1245. package/dist/index.es472.js +322 -2
  1246. package/dist/index.es472.js.map +1 -1
  1247. package/dist/index.es473.js +2 -2
  1248. package/dist/index.es474.js +2 -2
  1249. package/dist/index.es475.js +2 -15
  1250. package/dist/index.es475.js.map +1 -1
  1251. package/dist/index.es476.js +15 -2
  1252. package/dist/index.es476.js.map +1 -1
  1253. package/dist/index.es477.js +2 -2
  1254. package/dist/index.es478.js +2 -48
  1255. package/dist/index.es478.js.map +1 -1
  1256. package/dist/index.es479.js +36 -26
  1257. package/dist/index.es479.js.map +1 -1
  1258. package/dist/index.es480.js +36 -41
  1259. package/dist/index.es480.js.map +1 -1
  1260. package/dist/index.es481.js +43 -2
  1261. package/dist/index.es481.js.map +1 -1
  1262. package/dist/index.es482.js +2 -16
  1263. package/dist/index.es482.js.map +1 -1
  1264. package/dist/index.es483.js +16 -2
  1265. package/dist/index.es483.js.map +1 -1
  1266. package/dist/index.es484.js +2 -16
  1267. package/dist/index.es484.js.map +1 -1
  1268. package/dist/index.es485.js +13 -13
  1269. package/dist/index.es485.js.map +1 -1
  1270. package/dist/index.es486.js +14 -16
  1271. package/dist/index.es486.js.map +1 -1
  1272. package/dist/index.es487.js +16 -18
  1273. package/dist/index.es487.js.map +1 -1
  1274. package/dist/index.es488.js +20 -2
  1275. package/dist/index.es488.js.map +1 -1
  1276. package/dist/index.es489.js +2 -29
  1277. package/dist/index.es489.js.map +1 -1
  1278. package/dist/index.es490.js +6 -5
  1279. package/dist/index.es490.js.map +1 -1
  1280. package/dist/index.es491.js +29 -6
  1281. package/dist/index.es491.js.map +1 -1
  1282. package/dist/index.es492.js +5 -5
  1283. package/dist/index.es492.js.map +1 -1
  1284. package/dist/index.es493.js +8 -3
  1285. package/dist/index.es493.js.map +1 -1
  1286. package/dist/index.es494.js +4 -23
  1287. package/dist/index.es494.js.map +1 -1
  1288. package/dist/index.es495.js +4 -110
  1289. package/dist/index.es495.js.map +1 -1
  1290. package/dist/index.es496.js +3 -16
  1291. package/dist/index.es496.js.map +1 -1
  1292. package/dist/index.es497.js +3 -8
  1293. package/dist/index.es497.js.map +1 -1
  1294. package/dist/index.es498.js +8 -4
  1295. package/dist/index.es498.js.map +1 -1
  1296. package/dist/index.es499.js +22 -4
  1297. package/dist/index.es499.js.map +1 -1
  1298. package/dist/index.es500.js +22 -3
  1299. package/dist/index.es500.js.map +1 -1
  1300. package/dist/index.es501.js +14 -3
  1301. package/dist/index.es501.js.map +1 -1
  1302. package/dist/index.es502.js +16 -8
  1303. package/dist/index.es502.js.map +1 -1
  1304. package/dist/index.es503.js +5 -21
  1305. package/dist/index.es503.js.map +1 -1
  1306. package/dist/index.es504.js +7 -20
  1307. package/dist/index.es504.js.map +1 -1
  1308. package/dist/index.es505.js +6 -13
  1309. package/dist/index.es505.js.map +1 -1
  1310. package/dist/index.es506.js +19 -14
  1311. package/dist/index.es506.js.map +1 -1
  1312. package/dist/index.es507.js +9 -5
  1313. package/dist/index.es507.js.map +1 -1
  1314. package/dist/index.es508.js +9 -9
  1315. package/dist/index.es508.js.map +1 -1
  1316. package/dist/index.es509.js +4 -7
  1317. package/dist/index.es509.js.map +1 -1
  1318. package/dist/index.es510.js +10 -21
  1319. package/dist/index.es510.js.map +1 -1
  1320. package/dist/index.es511.js +8 -9
  1321. package/dist/index.es511.js.map +1 -1
  1322. package/dist/index.es512.js +23 -9
  1323. package/dist/index.es512.js.map +1 -1
  1324. package/dist/index.es513.js +12 -4
  1325. package/dist/index.es513.js.map +1 -1
  1326. package/dist/index.es514.js +18 -10
  1327. package/dist/index.es514.js.map +1 -1
  1328. package/dist/index.es515.js +4 -9
  1329. package/dist/index.es515.js.map +1 -1
  1330. package/dist/index.es516.js +17 -22
  1331. package/dist/index.es516.js.map +1 -1
  1332. package/dist/index.es517.js +9 -9
  1333. package/dist/index.es517.js.map +1 -1
  1334. package/dist/index.es518.js +3 -18
  1335. package/dist/index.es518.js.map +1 -1
  1336. package/dist/index.es519.js +5 -4
  1337. package/dist/index.es519.js.map +1 -1
  1338. package/dist/index.es520.js +8 -18
  1339. package/dist/index.es520.js.map +1 -1
  1340. package/dist/index.es521.js +4 -12
  1341. package/dist/index.es521.js.map +1 -1
  1342. package/dist/index.es522.js +4 -4
  1343. package/dist/index.es522.js.map +1 -1
  1344. package/dist/index.es523.js +160 -4
  1345. package/dist/index.es523.js.map +1 -1
  1346. package/dist/index.es524.js +5 -10
  1347. package/dist/index.es524.js.map +1 -1
  1348. package/dist/index.es525.js +4 -227
  1349. package/dist/index.es525.js.map +1 -1
  1350. package/dist/index.es526.js +88 -2
  1351. package/dist/index.es526.js.map +1 -1
  1352. package/dist/index.es527.js +183 -345
  1353. package/dist/index.es527.js.map +1 -1
  1354. package/dist/index.es528.js +88 -2
  1355. package/dist/index.es528.js.map +1 -1
  1356. package/dist/index.es529.js +12 -37
  1357. package/dist/index.es529.js.map +1 -1
  1358. package/dist/index.es530.js +317 -49
  1359. package/dist/index.es530.js.map +1 -1
  1360. package/dist/index.es531.js +223 -60
  1361. package/dist/index.es531.js.map +1 -1
  1362. package/dist/index.es532.js +2 -61
  1363. package/dist/index.es532.js.map +1 -1
  1364. package/dist/index.es533.js +347 -64
  1365. package/dist/index.es533.js.map +1 -1
  1366. package/dist/index.es534.js +4 -52
  1367. package/dist/index.es534.js.map +1 -1
  1368. package/dist/index.es535.js +38 -89
  1369. package/dist/index.es535.js.map +1 -1
  1370. package/dist/index.es536.js +51 -2
  1371. package/dist/index.es536.js.map +1 -1
  1372. package/dist/index.es537.js +62 -2
  1373. package/dist/index.es537.js.map +1 -1
  1374. package/dist/index.es538.js +61 -2
  1375. package/dist/index.es538.js.map +1 -1
  1376. package/dist/index.es539.js +73 -2
  1377. package/dist/index.es539.js.map +1 -1
  1378. package/dist/index.es540.js +52 -4
  1379. package/dist/index.es540.js.map +1 -1
  1380. package/dist/index.es541.js +89 -2
  1381. package/dist/index.es541.js.map +1 -1
  1382. package/dist/index.es542.js +2 -2
  1383. package/dist/index.es543.js +2 -8
  1384. package/dist/index.es543.js.map +1 -1
  1385. package/dist/index.es544.js +2 -4
  1386. package/dist/index.es544.js.map +1 -1
  1387. package/dist/index.es545.js +2 -4
  1388. package/dist/index.es545.js.map +1 -1
  1389. package/dist/index.es546.js +2 -161
  1390. package/dist/index.es546.js.map +1 -1
  1391. package/dist/index.es547.js +2 -5
  1392. package/dist/index.es547.js.map +1 -1
  1393. package/dist/index.es548.js +2 -2
  1394. package/dist/index.es549.js +2 -88
  1395. package/dist/index.es549.js.map +1 -1
  1396. package/dist/index.es550.js +20 -192
  1397. package/dist/index.es550.js.map +1 -1
  1398. package/dist/index.es551.js +2 -88
  1399. package/dist/index.es551.js.map +1 -1
  1400. package/dist/index.es552.js +5 -13
  1401. package/dist/index.es552.js.map +1 -1
  1402. package/dist/index.es553.js +3 -319
  1403. package/dist/index.es553.js.map +1 -1
  1404. package/dist/index.es554.js +24 -2
  1405. package/dist/index.es554.js.map +1 -1
  1406. package/dist/index.es555.js +110 -2
  1407. package/dist/index.es555.js.map +1 -1
  1408. package/dist/index.es556.js +15 -21
  1409. package/dist/index.es556.js.map +1 -1
  1410. package/dist/index.es557.js +7 -5
  1411. package/dist/index.es557.js.map +1 -1
  1412. package/dist/index.es558.js +5 -3
  1413. package/dist/index.es558.js.map +1 -1
  1414. package/dist/index.es559.js +3 -107
  1415. package/dist/index.es559.js.map +1 -1
  1416. package/dist/index.es560.js +104 -153
  1417. package/dist/index.es560.js.map +1 -1
  1418. package/dist/index.es561.js +141 -89
  1419. package/dist/index.es561.js.map +1 -1
  1420. package/dist/index.es562.js +102 -15
  1421. package/dist/index.es562.js.map +1 -1
  1422. package/dist/index.es563.js +17 -2
  1423. package/dist/index.es563.js.map +1 -1
  1424. package/dist/index.es565.js +4 -4
  1425. package/dist/index.es566.js +4 -4
  1426. package/dist/index.es567.js +2 -2
  1427. package/dist/index.es568.js +9 -9
  1428. package/dist/index.es569.js +2 -2
  1429. package/dist/index.es570.js +2 -2
  1430. package/dist/index.es571.js +3 -3
  1431. package/dist/index.es572.js +2 -2
  1432. package/dist/index.es573.js +2 -2
  1433. package/dist/index.es574.js +2 -2
  1434. package/dist/index.es575.js +2 -2
  1435. package/dist/index.es576.js +2 -2
  1436. package/dist/index.es577.js +3 -3
  1437. package/dist/index.es578.js +2 -2
  1438. package/dist/index.es579.js +2 -2
  1439. package/dist/index.es580.js +4 -4
  1440. package/dist/index.es582.js +2 -2
  1441. package/dist/index.es584.js +1 -1
  1442. package/dist/index.es585.js +1 -1
  1443. package/dist/index.es586.js +1 -1
  1444. package/dist/index.es587.js +1 -1
  1445. package/dist/index.es588.js +1 -1
  1446. package/dist/index.es589.js +1 -1
  1447. package/dist/index.es590.js +1 -1
  1448. package/dist/index.es591.js +1 -1
  1449. package/dist/index.es592.js +1 -1
  1450. package/dist/index.es593.js +1 -1
  1451. package/dist/index.es594.js +2 -3
  1452. package/dist/index.es594.js.map +1 -1
  1453. package/dist/index.es595.js +11 -7
  1454. package/dist/index.es595.js.map +1 -1
  1455. package/dist/index.es596.js +34 -5
  1456. package/dist/index.es596.js.map +1 -1
  1457. package/dist/index.es597.js +21 -3
  1458. package/dist/index.es597.js.map +1 -1
  1459. package/dist/index.es598.js +10 -108
  1460. package/dist/index.es598.js.map +1 -1
  1461. package/dist/index.es599.js +2 -6
  1462. package/dist/index.es599.js.map +1 -1
  1463. package/dist/index.es601.js +2 -2
  1464. package/dist/index.es602.js +8 -6
  1465. package/dist/index.es602.js.map +1 -1
  1466. package/dist/index.es603.js +10 -32
  1467. package/dist/index.es603.js.map +1 -1
  1468. package/dist/index.es604.js +10 -19
  1469. package/dist/index.es604.js.map +1 -1
  1470. package/dist/index.es605.js +2 -12
  1471. package/dist/index.es605.js.map +1 -1
  1472. package/dist/index.es606.js +5 -2
  1473. package/dist/index.es606.js.map +1 -1
  1474. package/dist/index.es607.js +3 -14
  1475. package/dist/index.es607.js.map +1 -1
  1476. package/dist/index.es608.js +108 -10
  1477. package/dist/index.es608.js.map +1 -1
  1478. package/dist/index.es609.js +3 -12
  1479. package/dist/index.es609.js.map +1 -1
  1480. package/dist/index.es610.js +6 -2
  1481. package/dist/index.es610.js.map +1 -1
  1482. package/dist/index.es611.js +8 -69
  1483. package/dist/index.es611.js.map +1 -1
  1484. package/dist/index.es612.js +2 -9
  1485. package/dist/index.es612.js.map +1 -1
  1486. package/dist/index.es613.js +2 -14
  1487. package/dist/index.es613.js.map +1 -1
  1488. package/dist/index.es614.js +107 -58
  1489. package/dist/index.es614.js.map +1 -1
  1490. package/dist/index.es615.js +8 -67
  1491. package/dist/index.es615.js.map +1 -1
  1492. package/dist/index.es616.js +8 -9
  1493. package/dist/index.es616.js.map +1 -1
  1494. package/dist/index.es617.js +48 -145
  1495. package/dist/index.es617.js.map +1 -1
  1496. package/dist/index.es618.js +2 -2
  1497. package/dist/index.es619.js +4 -8
  1498. package/dist/index.es619.js.map +1 -1
  1499. package/dist/index.es620.js +4 -8
  1500. package/dist/index.es620.js.map +1 -1
  1501. package/dist/index.es621.js +145 -48
  1502. package/dist/index.es621.js.map +1 -1
  1503. package/dist/index.es622.js +2 -2
  1504. package/dist/index.es623.js +2 -2
  1505. package/dist/index.es624.js +118 -2
  1506. package/dist/index.es624.js.map +1 -1
  1507. package/dist/index.es625.js +69 -2
  1508. package/dist/index.es625.js.map +1 -1
  1509. package/dist/index.es626.js +9 -2
  1510. package/dist/index.es626.js.map +1 -1
  1511. package/dist/index.es627.js +12 -107
  1512. package/dist/index.es627.js.map +1 -1
  1513. package/dist/index.es628.js +60 -2
  1514. package/dist/index.es628.js.map +1 -1
  1515. package/dist/index.es629.js +65 -55
  1516. package/dist/index.es629.js.map +1 -1
  1517. package/dist/index.es630.js +2 -14
  1518. package/dist/index.es630.js.map +1 -1
  1519. package/dist/index.es631.js +151 -60
  1520. package/dist/index.es631.js.map +1 -1
  1521. package/dist/index.es632.js +2 -118
  1522. package/dist/index.es632.js.map +1 -1
  1523. package/dist/index.es633.js +5 -2
  1524. package/dist/index.es633.js.map +1 -1
  1525. package/dist/index.es634.js +2 -2
  1526. package/dist/index.es635.js +137 -140
  1527. package/dist/index.es635.js.map +1 -1
  1528. package/dist/index.es636.js +2 -2
  1529. package/dist/index.es637.js +137 -5
  1530. package/dist/index.es637.js.map +1 -1
  1531. package/dist/index.es638.js +55 -2
  1532. package/dist/index.es638.js.map +1 -1
  1533. package/dist/index.es639.js +14 -2
  1534. package/dist/index.es639.js.map +1 -1
  1535. package/dist/index.es640.js +58 -223
  1536. package/dist/index.es640.js.map +1 -1
  1537. package/dist/index.es641.js +13 -133
  1538. package/dist/index.es641.js.map +1 -1
  1539. package/dist/index.es642.js +2 -129
  1540. package/dist/index.es642.js.map +1 -1
  1541. package/dist/index.es643.js +2 -134
  1542. package/dist/index.es643.js.map +1 -1
  1543. package/dist/index.es644.js +176 -80
  1544. package/dist/index.es644.js.map +1 -1
  1545. package/dist/index.es645.js +83 -84
  1546. package/dist/index.es645.js.map +1 -1
  1547. package/dist/index.es646.js +129 -2
  1548. package/dist/index.es646.js.map +1 -1
  1549. package/dist/index.es647.js +134 -2
  1550. package/dist/index.es647.js.map +1 -1
  1551. package/dist/index.es648.js +129 -2
  1552. package/dist/index.es648.js.map +1 -1
  1553. package/dist/index.es649.js +135 -2
  1554. package/dist/index.es649.js.map +1 -1
  1555. package/dist/index.es650.js +2 -2
  1556. package/dist/index.es651.js +2 -2
  1557. package/dist/index.es652.js +2 -2
  1558. package/dist/index.es653.js +2 -2
  1559. package/dist/index.es654.js +2 -2
  1560. package/dist/index.es655.js +2 -148
  1561. package/dist/index.es655.js.map +1 -1
  1562. package/dist/index.es656.js +2 -2
  1563. package/dist/index.es657.js +2 -2
  1564. package/dist/index.es658.js +2 -2
  1565. package/dist/index.es659.js +2 -131
  1566. package/dist/index.es659.js.map +1 -1
  1567. package/dist/index.es660.js +2 -128
  1568. package/dist/index.es660.js.map +1 -1
  1569. package/dist/index.es661.js +131 -2
  1570. package/dist/index.es661.js.map +1 -1
  1571. package/dist/index.es662.js +70 -80
  1572. package/dist/index.es662.js.map +1 -1
  1573. package/dist/index.es673.js +3 -69
  1574. package/dist/index.es673.js.map +1 -1
  1575. package/dist/index.es674.js +2 -14
  1576. package/dist/index.es674.js.map +1 -1
  1577. package/dist/index.es675.js +2 -60
  1578. package/dist/index.es675.js.map +1 -1
  1579. package/dist/index.es677.js +14 -2
  1580. package/dist/index.es677.js.map +1 -1
  1581. package/dist/index.es678.js +2 -2
  1582. package/dist/index.es679.js +2 -14
  1583. package/dist/index.es679.js.map +1 -1
  1584. package/dist/index.es680.js +2 -2
  1585. package/dist/index.es681.js +2 -2
  1586. package/dist/index.es682.js +69 -2
  1587. package/dist/index.es682.js.map +1 -1
  1588. package/dist/index.es683.js +14 -2
  1589. package/dist/index.es683.js.map +1 -1
  1590. package/dist/index.es684.js +60 -4
  1591. package/dist/index.es684.js.map +1 -1
  1592. package/dist/index.es685.js +87 -25
  1593. package/dist/index.es685.js.map +1 -1
  1594. package/dist/index.es686.js +108 -14
  1595. package/dist/index.es686.js.map +1 -1
  1596. package/dist/index.es687.js +4 -87
  1597. package/dist/index.es687.js.map +1 -1
  1598. package/dist/index.es688.js +2 -108
  1599. package/dist/index.es688.js.map +1 -1
  1600. package/dist/index.es689.js +2 -2
  1601. package/dist/index.es690.js +2 -2
  1602. package/dist/index.es691.js +2 -2
  1603. package/dist/index.es692.js +12 -12
  1604. package/dist/index.es693.js +4 -2
  1605. package/dist/index.es693.js.map +1 -1
  1606. package/dist/index.es694.js +23 -2
  1607. package/dist/index.es694.js.map +1 -1
  1608. package/dist/index.es695.js +2 -2
  1609. package/dist/index.es696.js +2 -2
  1610. package/dist/index.es697.js +2 -2
  1611. package/dist/index.es698.js +2 -2
  1612. package/dist/index.es699.js +2 -2
  1613. package/dist/index.es700.js +2 -2
  1614. package/dist/index.es701.js +2 -2
  1615. package/dist/index.es702.js +2 -2
  1616. package/dist/index.es704.js +44 -22
  1617. package/dist/index.es704.js.map +1 -1
  1618. package/dist/index.es705.js +45 -15
  1619. package/dist/index.es705.js.map +1 -1
  1620. package/dist/index.es706.js +2 -28
  1621. package/dist/index.es706.js.map +1 -1
  1622. package/dist/index.es707.js +2 -5
  1623. package/dist/index.es707.js.map +1 -1
  1624. package/dist/index.es708.js +2 -45
  1625. package/dist/index.es708.js.map +1 -1
  1626. package/dist/index.es709.js +118 -44
  1627. package/dist/index.es709.js.map +1 -1
  1628. package/dist/index.es710.js +11 -2
  1629. package/dist/index.es710.js.map +1 -1
  1630. package/dist/index.es711.js +79 -2
  1631. package/dist/index.es711.js.map +1 -1
  1632. package/dist/index.es712.js +72 -23
  1633. package/dist/index.es712.js.map +1 -1
  1634. package/dist/index.es713.js +72 -2
  1635. package/dist/index.es713.js.map +1 -1
  1636. package/dist/index.es714.js +10 -114
  1637. package/dist/index.es714.js.map +1 -1
  1638. package/dist/index.es715.js +56 -9
  1639. package/dist/index.es715.js.map +1 -1
  1640. package/dist/index.es716.js +6 -78
  1641. package/dist/index.es716.js.map +1 -1
  1642. package/dist/index.es717.js +6 -71
  1643. package/dist/index.es717.js.map +1 -1
  1644. package/dist/index.es718.js +8 -71
  1645. package/dist/index.es718.js.map +1 -1
  1646. package/dist/index.es719.js +10 -11
  1647. package/dist/index.es719.js.map +1 -1
  1648. package/dist/index.es720.js +13 -58
  1649. package/dist/index.es720.js.map +1 -1
  1650. package/dist/index.es721.js +27 -6
  1651. package/dist/index.es721.js.map +1 -1
  1652. package/dist/index.es722.js +5 -7
  1653. package/dist/index.es722.js.map +1 -1
  1654. package/dist/index.es723.js +23 -9
  1655. package/dist/index.es723.js.map +1 -1
  1656. package/dist/index.es724.js +23 -12
  1657. package/dist/index.es724.js.map +1 -1
  1658. package/dist/index.es728.js +1 -1
  1659. package/dist/index.es729.js +1 -1
  1660. package/dist/index.es730.js +4 -4
  1661. package/dist/index.es731.js +1 -1
  1662. package/dist/index.es732.js +1 -1
  1663. package/dist/index.es735.js +2 -2
  1664. package/dist/index.es737.js +1 -1
  1665. package/dist/index.es739.js +1 -1
  1666. package/dist/index.es740.js +1 -1
  1667. package/dist/index.es742.js +2 -2
  1668. package/dist/index.es76.js +1 -1
  1669. package/dist/index.es77.js +1 -1
  1670. package/dist/index.es78.js +2 -2
  1671. package/dist/index.es80.js +2 -2
  1672. package/dist/index.es81.js +2 -2
  1673. package/dist/index.es82.js +2 -2
  1674. package/dist/index.es84.js +1 -1
  1675. package/dist/index.es85.js +2 -2
  1676. package/dist/index.es86.js +2 -2
  1677. package/dist/index.es88.js +1 -1
  1678. package/dist/index.es89.js +1 -1
  1679. package/dist/index.es90.js +1 -1
  1680. package/dist/index.es94.js +2 -2
  1681. package/dist/index.es95.js +3 -3
  1682. package/dist/index.es96.js +1 -1
  1683. package/dist/index.es98.js +1 -1
  1684. package/dist/index.es99.js +1 -1
  1685. package/package.json +5 -5
@@ -1,2 +1,2 @@
1
- "use strict";const o=require("./index.cjs79.js"),s=require("./index.cjs386.js"),i=require("./index.cjs75.js"),n=require("./index.cjs523.js");s(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var e=i.ArrayProto[r];o.prototype[r]=function(){var t=this._wrapped;return t!=null&&(e.apply(t,arguments),(r==="shift"||r==="splice")&&t.length===0&&delete t[0]),n(this,t)}});s(["concat","join","slice"],function(r){var e=i.ArrayProto[r];o.prototype[r]=function(){var t=this._wrapped;return t!=null&&(t=e.apply(t,arguments)),n(this,t)}});module.exports=o;
1
+ "use strict";const o=require("./index.cjs79.js"),s=require("./index.cjs386.js"),i=require("./index.cjs75.js"),n=require("./index.cjs519.js");s(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var e=i.ArrayProto[r];o.prototype[r]=function(){var t=this._wrapped;return t!=null&&(e.apply(t,arguments),(r==="shift"||r==="splice")&&t.length===0&&delete t[0]),n(this,t)}});s(["concat","join","slice"],function(r){var e=i.ArrayProto[r];o.prototype[r]=function(){var t=this._wrapped;return t!=null&&(t=e.apply(t,arguments)),n(this,t)}});module.exports=o;
2
2
  //# sourceMappingURL=index.cjs101.js.map
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),P=require("./index.cjs212.js"),y=require("./index.cjs213.js"),H=require("./index.cjs214.js"),L=require("./index.cjs215.js"),G=require("./index.cjs216.js"),K=require("./index.cjs217.js"),z=require("./index.cjs218.js"),f=require("./index.cjs219.js"),U=require("./index.cjs220.js"),S=require("./index.cjs221.js"),N=require("./index.cjs222.js"),V=require("./index.cjs223.js"),W=require("./index.cjs224.js"),Z=require("./index.cjs225.js"),B=require("./index.cjs226.js"),u=require("./index.cjs73.js");function J(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const i=J(I);var C="Popover",[F,Q]=H.createContextScope(C,[f.createPopperScope]),g=f.createPopperScope(),[X,d]=F(C),E=e=>{const{__scopePopover:n,children:o,open:s,defaultOpen:r,onOpenChange:t,modal:c=!1}=e,a=g(n),p=i.useRef(null),[l,m]=i.useState(!1),[R=!1,v]=W.useControllableState({prop:s,defaultProp:r,onChange:t});return u.jsxRuntimeExports.jsx(f.Root,{...a,children:u.jsxRuntimeExports.jsx(X,{scope:n,contentId:z.useId(),triggerRef:p,open:R,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(h=>!h),[v]),hasCustomAnchor:l,onCustomAnchorAdd:i.useCallback(()=>m(!0),[]),onCustomAnchorRemove:i.useCallback(()=>m(!1),[]),modal:c,children:o})})};E.displayName=C;var q="PopoverAnchor",j=i.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=d(q,o),t=g(o),{onCustomAnchorAdd:c,onCustomAnchorRemove:a}=r;return i.useEffect(()=>(c(),()=>a()),[c,a]),u.jsxRuntimeExports.jsx(f.Anchor,{...t,...s,ref:n})});j.displayName=q;var D="PopoverTrigger",A=i.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=d(D,o),t=g(o),c=y.useComposedRefs(n,r.triggerRef),a=u.jsxRuntimeExports.jsx(N.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$(r.open),...s,ref:c,onClick:P.composeEventHandlers(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:u.jsxRuntimeExports.jsx(f.Anchor,{asChild:!0,...t,children:a})});A.displayName=D;var O="PopoverPortal",[Y,ee]=F(O,{forceMount:void 0}),_=e=>{const{__scopePopover:n,forceMount:o,children:s,container:r}=e,t=d(O,n);return u.jsxRuntimeExports.jsx(Y,{scope:n,forceMount:o,children:u.jsxRuntimeExports.jsx(S.Presence,{present:o||t.open,children:u.jsxRuntimeExports.jsx(U.Portal,{asChild:!0,container:r,children:s})})})};_.displayName=O;var x="PopoverContent",b=i.forwardRef((e,n)=>{const o=ee(x,e.__scopePopover),{forceMount:s=o.forceMount,...r}=e,t=d(x,e.__scopePopover);return u.jsxRuntimeExports.jsx(S.Presence,{present:s||t.open,children:t.modal?u.jsxRuntimeExports.jsx(oe,{...r,ref:n}):u.jsxRuntimeExports.jsx(re,{...r,ref:n})})});b.displayName=x;var oe=i.forwardRef((e,n)=>{const o=d(x,e.__scopePopover),s=i.useRef(null),r=y.useComposedRefs(n,s),t=i.useRef(!1);return i.useEffect(()=>{const c=s.current;if(c)return Z.hideOthers(c)},[]),u.jsxRuntimeExports.jsx(B,{as:V.Slot,allowPinchZoom:!0,children:u.jsxRuntimeExports.jsx(M,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P.composeEventHandlers(e.onCloseAutoFocus,c=>{var a;c.preventDefault(),t.current||(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:P.composeEventHandlers(e.onPointerDownOutside,c=>{const a=c.detail.originalEvent,p=a.button===0&&a.ctrlKey===!0,l=a.button===2||p;t.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:P.composeEventHandlers(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),re=i.forwardRef((e,n)=>{const o=d(x,e.__scopePopover),s=i.useRef(!1),r=i.useRef(!1);return u.jsxRuntimeExports.jsx(M,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var c,a;(c=e.onCloseAutoFocus)==null||c.call(e,t),t.defaultPrevented||(s.current||(a=o.triggerRef.current)==null||a.focus(),t.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:t=>{var p,l;(p=e.onInteractOutside)==null||p.call(e,t),t.defaultPrevented||(s.current=!0,t.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=t.target;((l=o.triggerRef.current)==null?void 0:l.contains(c))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&r.current&&t.preventDefault()}})}),M=i.forwardRef((e,n)=>{const{__scopePopover:o,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:t,disableOutsidePointerEvents:c,onEscapeKeyDown:a,onPointerDownOutside:p,onFocusOutside:l,onInteractOutside:m,...R}=e,v=d(x,o),h=g(o);return G.useFocusGuards(),u.jsxRuntimeExports.jsx(K.FocusScope,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:t,children:u.jsxRuntimeExports.jsx(L.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:a,onPointerDownOutside:p,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:u.jsxRuntimeExports.jsx(f.Content,{"data-state":$(v.open),role:"dialog",id:v.contentId,...h,...R,ref:n,style:{...R.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",k=i.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=d(T,o);return u.jsxRuntimeExports.jsx(N.Primitive.button,{type:"button",...s,ref:n,onClick:P.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});k.displayName=T;var te="PopoverArrow",w=i.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=g(o);return u.jsxRuntimeExports.jsx(f.Arrow,{...r,...s,ref:n})});w.displayName=te;function $(e){return e?"open":"closed"}var ne=E,se=j,ce=A,ae=_,ie=b,ue=w;exports.Anchor=se;exports.Arrow=ue;exports.Content=ie;exports.Popover=E;exports.PopoverAnchor=j;exports.PopoverArrow=w;exports.PopoverClose=k;exports.PopoverContent=b;exports.PopoverPortal=_;exports.PopoverTrigger=A;exports.Portal=ae;exports.Root=ne;exports.Trigger=ce;exports.createPopoverScope=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),P=require("./index.cjs226.js"),y=require("./index.cjs227.js"),H=require("./index.cjs228.js"),L=require("./index.cjs229.js"),G=require("./index.cjs230.js"),K=require("./index.cjs231.js"),z=require("./index.cjs232.js"),f=require("./index.cjs233.js"),U=require("./index.cjs234.js"),S=require("./index.cjs235.js"),N=require("./index.cjs236.js"),V=require("./index.cjs237.js"),W=require("./index.cjs238.js"),Z=require("./index.cjs239.js"),B=require("./index.cjs240.js"),u=require("./index.cjs73.js");function J(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const i=J(I);var C="Popover",[F,Q]=H.createContextScope(C,[f.createPopperScope]),g=f.createPopperScope(),[X,d]=F(C),E=e=>{const{__scopePopover:n,children:o,open:s,defaultOpen:r,onOpenChange:t,modal:c=!1}=e,a=g(n),p=i.useRef(null),[l,m]=i.useState(!1),[R=!1,v]=W.useControllableState({prop:s,defaultProp:r,onChange:t});return u.jsxRuntimeExports.jsx(f.Root,{...a,children:u.jsxRuntimeExports.jsx(X,{scope:n,contentId:z.useId(),triggerRef:p,open:R,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(h=>!h),[v]),hasCustomAnchor:l,onCustomAnchorAdd:i.useCallback(()=>m(!0),[]),onCustomAnchorRemove:i.useCallback(()=>m(!1),[]),modal:c,children:o})})};E.displayName=C;var q="PopoverAnchor",j=i.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=d(q,o),t=g(o),{onCustomAnchorAdd:c,onCustomAnchorRemove:a}=r;return i.useEffect(()=>(c(),()=>a()),[c,a]),u.jsxRuntimeExports.jsx(f.Anchor,{...t,...s,ref:n})});j.displayName=q;var D="PopoverTrigger",A=i.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=d(D,o),t=g(o),c=y.useComposedRefs(n,r.triggerRef),a=u.jsxRuntimeExports.jsx(N.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$(r.open),...s,ref:c,onClick:P.composeEventHandlers(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:u.jsxRuntimeExports.jsx(f.Anchor,{asChild:!0,...t,children:a})});A.displayName=D;var O="PopoverPortal",[Y,ee]=F(O,{forceMount:void 0}),_=e=>{const{__scopePopover:n,forceMount:o,children:s,container:r}=e,t=d(O,n);return u.jsxRuntimeExports.jsx(Y,{scope:n,forceMount:o,children:u.jsxRuntimeExports.jsx(S.Presence,{present:o||t.open,children:u.jsxRuntimeExports.jsx(U.Portal,{asChild:!0,container:r,children:s})})})};_.displayName=O;var x="PopoverContent",b=i.forwardRef((e,n)=>{const o=ee(x,e.__scopePopover),{forceMount:s=o.forceMount,...r}=e,t=d(x,e.__scopePopover);return u.jsxRuntimeExports.jsx(S.Presence,{present:s||t.open,children:t.modal?u.jsxRuntimeExports.jsx(oe,{...r,ref:n}):u.jsxRuntimeExports.jsx(re,{...r,ref:n})})});b.displayName=x;var oe=i.forwardRef((e,n)=>{const o=d(x,e.__scopePopover),s=i.useRef(null),r=y.useComposedRefs(n,s),t=i.useRef(!1);return i.useEffect(()=>{const c=s.current;if(c)return Z.hideOthers(c)},[]),u.jsxRuntimeExports.jsx(B,{as:V.Slot,allowPinchZoom:!0,children:u.jsxRuntimeExports.jsx(M,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P.composeEventHandlers(e.onCloseAutoFocus,c=>{var a;c.preventDefault(),t.current||(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:P.composeEventHandlers(e.onPointerDownOutside,c=>{const a=c.detail.originalEvent,p=a.button===0&&a.ctrlKey===!0,l=a.button===2||p;t.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:P.composeEventHandlers(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),re=i.forwardRef((e,n)=>{const o=d(x,e.__scopePopover),s=i.useRef(!1),r=i.useRef(!1);return u.jsxRuntimeExports.jsx(M,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var c,a;(c=e.onCloseAutoFocus)==null||c.call(e,t),t.defaultPrevented||(s.current||(a=o.triggerRef.current)==null||a.focus(),t.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:t=>{var p,l;(p=e.onInteractOutside)==null||p.call(e,t),t.defaultPrevented||(s.current=!0,t.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=t.target;((l=o.triggerRef.current)==null?void 0:l.contains(c))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&r.current&&t.preventDefault()}})}),M=i.forwardRef((e,n)=>{const{__scopePopover:o,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:t,disableOutsidePointerEvents:c,onEscapeKeyDown:a,onPointerDownOutside:p,onFocusOutside:l,onInteractOutside:m,...R}=e,v=d(x,o),h=g(o);return G.useFocusGuards(),u.jsxRuntimeExports.jsx(K.FocusScope,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:t,children:u.jsxRuntimeExports.jsx(L.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:a,onPointerDownOutside:p,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:u.jsxRuntimeExports.jsx(f.Content,{"data-state":$(v.open),role:"dialog",id:v.contentId,...h,...R,ref:n,style:{...R.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",k=i.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=d(T,o);return u.jsxRuntimeExports.jsx(N.Primitive.button,{type:"button",...s,ref:n,onClick:P.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});k.displayName=T;var te="PopoverArrow",w=i.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=g(o);return u.jsxRuntimeExports.jsx(f.Arrow,{...r,...s,ref:n})});w.displayName=te;function $(e){return e?"open":"closed"}var ne=E,se=j,ce=A,ae=_,ie=b,ue=w;exports.Anchor=se;exports.Arrow=ue;exports.Content=ie;exports.Popover=E;exports.PopoverAnchor=j;exports.PopoverArrow=w;exports.PopoverClose=k;exports.PopoverContent=b;exports.PopoverPortal=_;exports.PopoverTrigger=A;exports.Portal=ae;exports.Root=ne;exports.Trigger=ce;exports.createPopoverScope=Q;
2
2
  //# sourceMappingURL=index.cjs107.js.map
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs190.js"),o=require("react"),b=require("./index.cjs191.js"),y=require("./index.cjs192.js"),k=require("./index.cjs193.js"),T=require("./index.cjs194.js"),q=require("./index.cjs195.js"),p=require("./index.cjs196.js"),m=require("./index.cjs197.js"),x="DropdownMenu",[A,N]=k.createContextScope(x,[p.createMenuScope]),u=p.createMenuScope(),[G,g]=A(x),D=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:d,defaultOpen:a,onOpenChange:f,modal:c=!0}=e,i=u(t),w=o.useRef(null),[$=!1,l]=T.useControllableState({prop:d,defaultProp:a,onChange:f});return o.createElement(G,{scope:t,triggerId:m.useId(),triggerRef:w,contentId:m.useId(),open:$,onOpenChange:l,onOpenToggle:o.useCallback(()=>l(O=>!O),[l]),modal:c},o.createElement(p.Root,s({},i,{open:$,onOpenChange:l,dir:n,modal:c}),r))},H="DropdownMenuTrigger",_=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...d}=e,a=g(H,r),f=u(r);return o.createElement(p.Anchor,s({asChild:!0},f),o.createElement(q.Primitive.button,s({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},d,{ref:y.composeRefs(t,a.triggerRef),onPointerDown:b.composeEventHandlers(e.onPointerDown,c=>{!n&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:b.composeEventHandlers(e.onKeyDown,c=>{n||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),M=e=>{const{__scopeDropdownMenu:t,...r}=e,n=u(t);return o.createElement(p.Portal,s({},n,r))},K="DropdownMenuContent",h=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=g(K,r),a=u(r),f=o.useRef(!1);return o.createElement(p.Content,s({id:d.contentId,"aria-labelledby":d.triggerId},a,n,{ref:t,onCloseAutoFocus:b.composeEventHandlers(e.onCloseAutoFocus,c=>{var i;f.current||(i=d.triggerRef.current)===null||i===void 0||i.focus(),f.current=!1,c.preventDefault()}),onInteractOutside:b.composeEventHandlers(e.onInteractOutside,c=>{const i=c.detail.originalEvent,w=i.button===0&&i.ctrlKey===!0,$=i.button===2||w;(!d.modal||$)&&(f.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),R=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.Label,s({},d,n,{ref:t}))}),I=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.Item,s({},d,n,{ref:t}))}),E=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.CheckboxItem,s({},d,n,{ref:t}))}),v=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.RadioGroup,s({},d,n,{ref:t}))}),C=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.RadioItem,s({},d,n,{ref:t}))}),S=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.ItemIndicator,s({},d,n,{ref:t}))}),P=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.Separator,s({},d,n,{ref:t}))}),L=D,F=_,j=M,U=h,W=R,z=I,B=E,J=v,Q=C,V=S,X=P;exports.CheckboxItem=B;exports.Content=U;exports.DropdownMenu=D;exports.DropdownMenuCheckboxItem=E;exports.DropdownMenuContent=h;exports.DropdownMenuItem=I;exports.DropdownMenuItemIndicator=S;exports.DropdownMenuLabel=R;exports.DropdownMenuPortal=M;exports.DropdownMenuRadioGroup=v;exports.DropdownMenuRadioItem=C;exports.DropdownMenuSeparator=P;exports.DropdownMenuTrigger=_;exports.Item=z;exports.ItemIndicator=V;exports.Label=W;exports.Portal=j;exports.RadioGroup=J;exports.RadioItem=Q;exports.Root=L;exports.Separator=X;exports.Trigger=F;exports.createDropdownMenuScope=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs204.js"),o=require("react"),b=require("./index.cjs205.js"),y=require("./index.cjs206.js"),k=require("./index.cjs207.js"),T=require("./index.cjs208.js"),q=require("./index.cjs209.js"),p=require("./index.cjs210.js"),m=require("./index.cjs211.js"),x="DropdownMenu",[A,N]=k.createContextScope(x,[p.createMenuScope]),u=p.createMenuScope(),[G,g]=A(x),D=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:d,defaultOpen:a,onOpenChange:f,modal:c=!0}=e,i=u(t),w=o.useRef(null),[$=!1,l]=T.useControllableState({prop:d,defaultProp:a,onChange:f});return o.createElement(G,{scope:t,triggerId:m.useId(),triggerRef:w,contentId:m.useId(),open:$,onOpenChange:l,onOpenToggle:o.useCallback(()=>l(O=>!O),[l]),modal:c},o.createElement(p.Root,s({},i,{open:$,onOpenChange:l,dir:n,modal:c}),r))},H="DropdownMenuTrigger",_=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...d}=e,a=g(H,r),f=u(r);return o.createElement(p.Anchor,s({asChild:!0},f),o.createElement(q.Primitive.button,s({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},d,{ref:y.composeRefs(t,a.triggerRef),onPointerDown:b.composeEventHandlers(e.onPointerDown,c=>{!n&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:b.composeEventHandlers(e.onKeyDown,c=>{n||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),M=e=>{const{__scopeDropdownMenu:t,...r}=e,n=u(t);return o.createElement(p.Portal,s({},n,r))},K="DropdownMenuContent",h=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=g(K,r),a=u(r),f=o.useRef(!1);return o.createElement(p.Content,s({id:d.contentId,"aria-labelledby":d.triggerId},a,n,{ref:t,onCloseAutoFocus:b.composeEventHandlers(e.onCloseAutoFocus,c=>{var i;f.current||(i=d.triggerRef.current)===null||i===void 0||i.focus(),f.current=!1,c.preventDefault()}),onInteractOutside:b.composeEventHandlers(e.onInteractOutside,c=>{const i=c.detail.originalEvent,w=i.button===0&&i.ctrlKey===!0,$=i.button===2||w;(!d.modal||$)&&(f.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),R=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.Label,s({},d,n,{ref:t}))}),I=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.Item,s({},d,n,{ref:t}))}),E=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.CheckboxItem,s({},d,n,{ref:t}))}),v=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.RadioGroup,s({},d,n,{ref:t}))}),C=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.RadioItem,s({},d,n,{ref:t}))}),S=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.ItemIndicator,s({},d,n,{ref:t}))}),P=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,d=u(r);return o.createElement(p.Separator,s({},d,n,{ref:t}))}),L=D,F=_,j=M,U=h,W=R,z=I,B=E,J=v,Q=C,V=S,X=P;exports.CheckboxItem=B;exports.Content=U;exports.DropdownMenu=D;exports.DropdownMenuCheckboxItem=E;exports.DropdownMenuContent=h;exports.DropdownMenuItem=I;exports.DropdownMenuItemIndicator=S;exports.DropdownMenuLabel=R;exports.DropdownMenuPortal=M;exports.DropdownMenuRadioGroup=v;exports.DropdownMenuRadioItem=C;exports.DropdownMenuSeparator=P;exports.DropdownMenuTrigger=_;exports.Item=z;exports.ItemIndicator=V;exports.Label=W;exports.Portal=j;exports.RadioGroup=J;exports.RadioItem=Q;exports.Root=L;exports.Separator=X;exports.Trigger=F;exports.createDropdownMenuScope=N;
2
2
  //# sourceMappingURL=index.cjs111.js.map
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react"),he=require("./index.cjs198.js"),K=require("./index.cjs199.js"),Ze=require("./index.cjs200.js"),fe=require("./index.cjs201.js"),D=require("./index.cjs202.js"),Ue=require("./index.cjs203.js"),I=require("./index.cjs204.js"),W=require("./index.cjs205.js"),Xe=require("./index.cjs206.js"),H=require("./index.cjs207.js"),C=require("./index.cjs208.js"),re=require("./index.cjs209.js"),ve=require("./index.cjs210.js"),xe=require("./index.cjs211.js"),Ye=t=>{const n=t.toString().split(":"),a=Math.ceil(parseInt(n[0])),r=Math.ceil(parseInt(n[1])),i=Je(Math.ceil(parseInt(n[2])),2);let o=`${a!==0&&r<10?(r+"").padStart(2,"0"):r}:${i}`;return a!==0&&(o=`${a}:${o}`),o},be=t=>{const n=new Date(t*1e3).toISOString().substr(11,8);return Ye(n)},Ee=(t,n)=>{if(typeof t!="object"||t===null)return n;for(const a in n)typeof n[a]=="object"&&n[a]!==null&&!Array.isArray(n[a])?(t[a]||(t[a]={}),t[a]=Ee(t[a],n[a])):t[a]=n[a];return t},ye=(t,n)=>Object.hasOwn(t,n)?t[n].toString():void 0,Je=(t,n)=>String(t).padStart(n,"0"),_={background:"transparent",canvasBackgroundColor:"#6662",canvasHeight:"61.8vh",ignoreCaptionLabels:[],informationPanel:{open:!0,renderAbout:!0,renderSupplementing:!0,renderToggle:!0},openSeadragon:{},requestHeaders:{"Content-Type":"application/json"},showIIIFBadge:!0,showTitle:!0,withCredentials:!1};var ie;const q={activeCanvas:"",activeManifest:"",collection:{},configOptions:_,customDisplays:[],informationOpen:(ie=_==null?void 0:_.informationPanel)==null?void 0:ie.open,isLoaded:!1,vault:new he.Vault},we=e.createContext(q),Ce=e.createContext(q);function Ke(t,n){switch(n.type){case"updateActiveCanvas":return n.canvasId||(n.canvasId=""),{...t,activeCanvas:n.canvasId};case"updateActiveManifest":return{...t,activeManifest:n.manifestId};case"updateCollection":return{...t,collection:n.collection};case"updateConfigOptions":return{...t,configOptions:Ee(t.configOptions,n.configOptions)};case"updateInformationOpen":return{...t,informationOpen:n.informationOpen};case"updateIsLoaded":return{...t,isLoaded:n.isLoaded};default:throw new Error(`Unhandled action type: ${n.type}`)}}const Qe=({initialState:t=q,children:n})=>{const[a,r]=e.useReducer(Ke,t);return e.createElement(we.Provider,{value:a},e.createElement(Ce.Provider,{value:r},n))};function S(){const t=e.useContext(we);if(t===void 0)throw new Error("useViewerState must be used within a ViewerProvider");return t}function O(){const t=e.useContext(Ce);if(t===void 0)throw new Error("useViewerDispatch must be used within a ViewerProvider");return t}const ke=(t,n,a,r)=>{var i,o;const s={canvas:void 0,accompanyingCanvas:void 0,annotationPage:void 0,annotations:[]},l=c=>{if(c){if(!c.body||!c.motivation){console.error("Invalid annotation after Hyperion parsing: missing either 'body' or 'motivation'",c);return}let m=c.body;Array.isArray(m)&&(m=m[0]);const u=t.get(m.id);if(!u)return;switch(a){case"painting":return c.target===n.id&&c.motivation&&c.motivation[0]==="painting"&&r.includes(u.type)&&(c.body=u),!!c;case"supplementing":return;default:throw new Error("Invalid annotation motivation.")}}};if(s.canvas=t.get(n),s.canvas&&(s.annotationPage=t.get(s.canvas.items[0]),s.accompanyingCanvas=(i=s.canvas)!=null&&i.accompanyingCanvas?t.get((o=s.canvas)==null?void 0:o.accompanyingCanvas):void 0),s.annotationPage){const c=t.get(s.annotationPage.items).map(u=>({body:t.get(u.body[0].id),motivation:u.motivation,type:"Annotation"})),m=[];c.forEach(u=>{u.body.type==="Choice"?u.body.items.forEach(g=>m.push({...u,id:g.id,body:t.get(g.id)})):m.push(u)}),s.annotations=m.filter(l)}return s},P=(t,n="en")=>{if(!t)return"";if(!t[n]){const a=Object.getOwnPropertyNames(t);if(a.length>0)return t[a[0]]}return t[n]},j=(t,n)=>{const a=ke(t,{id:n,type:"Canvas"},"painting",["Image","Sound","Video"]);if(a.annotations.length!==0&&a.annotations&&a.annotations)return a.annotations.map(r=>r==null?void 0:r.body)},et=(t,n,a)=>{const r=t.get({id:n,type:"Canvas"});if(!(r!=null&&r.annotations)||!r.annotations[0])return[];const i=t.get(r.annotations[0]),o=t.get(i.items);return Array.isArray(o)?o.filter(s=>{var l;if(s.body&&(l=s.motivation)!=null&&l.includes("supplementing")){let c=s.body;Array.isArray(c)&&(c=c[0]);const m=t.get(c.id);if(m.format===a)return s.body=m,s}}).map(s=>s.body):[]},tt=(t,n,a,r)=>{const i=[];if(n.canvas&&n.canvas.thumbnail.length>0){const o=t.get(n.canvas.thumbnail[0]);i.push(o)}if(n.annotations[0]){if(n.annotations[0].thumbnail&&n.annotations[0].thumbnail.length>0){const s=t.get(n.annotations[0].thumbnail[0]);i.push(s)}if(!n.annotations[0].body)return;const o=n.annotations[0].body;o.type==="Image"&&i.push(o)}return i.length===0?void 0:{id:i[0].id,format:i[0].format,type:i[0].type,width:a,height:r}},Z=209,nt={colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:`hsl(${Z} 100% 38.2%)`,accentMuted:`hsl(${Z} 80% 61.8%)`,accentAlt:`hsl(${Z} 80% 30%)`,secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},Q={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:d,css:Aa,keyframes:ee,createTheme:Ma}=fe.createStitches({theme:nt,media:Q}),at=d("div",{display:"flex",flexDirection:"column",alignItems:"center"}),rt=d("p",{fontWeight:"bold",fontSize:"x-large"}),it=d("span",{fontSize:"medium"}),ot=({error:t})=>{const{message:n}=t;return e.createElement(at,{role:"alert"},e.createElement(rt,{"data-testid":"headline"},"Something went wrong"),n&&e.createElement(it,null,`Error message: ${n}`," "))},Se=d("div",{position:"relative",zIndex:"0"}),$e=d("div",{display:"flex",flexDirection:"row",overflow:"hidden","@sm":{flexDirection:"column"}}),Ie=d("div",{display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"1",width:"61.8%","@sm":{width:"100%"}}),Ae=d(K.Trigger,{display:"none",border:"none",padding:"0",transition:"$all",opacity:"1",background:"#6663",margin:"1rem 0",borderRadius:"6px","&[data-information-panel='false']":{opacity:"0",marginTop:"-59px"},"@sm":{display:"flex","> span":{display:"flex",flexGrow:"1",fontSize:"0.8333em",justifyContent:"center",padding:"0.5rem",fontFamily:"inherit"}}}),Me=d(K.Content,{width:"100%",display:"flex"}),lt=d("aside",{display:"flex",flexGrow:"1",flexShrink:"0",width:"38.2%",maxHeight:"100%","@sm":{width:"100%"}}),st=d("div",{display:"flex",flexDirection:"column",fontSmooth:"auto",webkitFontSmoothing:"antialiased","> div":{display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"flex-start","@sm":{[`& ${$e}`]:{flexGrow:"1"},[`& ${Ie}`]:{flexGrow:"0"}}},"@sm":{padding:"0"},"&[data-information-panel-open='true']":{"@sm":{position:"fixed",height:"100%",width:"100%",top:"0",left:"0",zIndex:"2500000000",[`& ${Se}`]:{display:"none"},[`& ${Ae}`]:{margin:"1rem"},[`& ${Me}`]:{height:"100%"}}}}),ct=d(D.Root,{display:"flex",flexDirection:"column",width:"100%",height:"100%",flexGrow:"1",flexShrink:"0",position:"relative",zIndex:"1",maskImage:"linear-gradient(180deg, rgba(0, 0, 0, 1) calc(100% - 2rem), transparent 100%)","@sm":{marginTop:"0.5rem",boxShadow:"none"}}),dt=d(D.List,{display:"flex",flexGrow:"0",margin:"0 1.618rem",borderBottom:"4px solid #6663","@sm":{margin:"0 1rem"}}),oe=d(D.Trigger,{display:"flex",position:"relative",padding:"0.5rem 1rem",background:"none",backgroundColor:"transparent",fontFamily:"inherit",border:"none",opacity:"0.7",fontSize:"1rem",marginRight:"1rem",lineHeight:"1rem",whiteSpace:"nowrap",cursor:"pointer",fontWeight:400,transition:"$all","&::after":{width:"0",height:"4px",content:"",position:"absolute",bottom:"-4px",left:"0",transition:"$all"},"&[data-state='active']":{opacity:"1",fontWeight:700,"&::after":{width:"100%",backgroundColor:"$accent"}}}),le=d(D.Content,{display:"flex",flexGrow:"1",flexShrink:"0",position:"absolute",top:"0",left:"0","&[data-state='active']":{width:"100%",height:"calc(100% - 2rem)",padding:"1.618rem 0"}}),mt=d("div",{position:"relative",height:"100%",width:"100%",overflowY:"scroll"}),ut=d("div",{padding:" 0 1.618rem 2rem",display:"flex",flexDirection:"column",overflow:"scroll",position:"absolute",fontWeight:"400",fontSize:"1rem",zIndex:"0",img:{maxWidth:"100px",maxHeight:"100px",objectFit:"contain",color:"transparent",margin:"0 0 1rem",borderRadius:"3px",backgroundColor:"$secondaryMuted"},video:{display:"none"},"a, a:visited":{color:"$accent"},p:{fontSize:"1rem",lineHeight:"1.45em",margin:"0"},dl:{margin:"0",dt:{fontWeight:"700",margin:"1rem 0 0.25rem"},dd:{margin:"0"}},".manifest-property-title":{fontWeight:"700",margin:"1rem 0 0.25rem"},"ul, ol":{padding:"0",margin:"0",li:{fontSize:"1rem",lineHeight:"1.45em",listStyle:"none",margin:"0.25rem 0 0.25rem"}}}),pt=d("div",{position:"relative",width:"100%",height:"100%",zIndex:"0"}),ze=(t,n="none")=>{if(!t)return null;if(typeof t=="string")return[t];if(!t[n]){const a=Object.getOwnPropertyNames(t);if(a.length>0)return t[a[0]]}return!t[n]||!Array.isArray(t[n])?null:t[n]},M=(t,n="none",a=", ")=>{const r=ze(t,n);return Array.isArray(r)?r.join(`${a}`):r};function gt(t){return{__html:ht(t)}}function A(t,n){const a=Object.keys(t).filter(i=>n.includes(i)?null:i),r=new Object;return a.forEach(i=>{r[i]=t[i]}),r}function ht(t){return Ue(t,{allowedAttributes:{a:["href"],img:["alt","src","height","width"]},allowedSchemes:["http","https","mailto"],allowedTags:["a","b","br","i","img","p","small","span","sub","sup"]})}const ft=d("span",{}),T=t=>{const{as:n,label:a}=t,r=A(t,["as","label"]);return e.createElement(ft,{as:n,...r},M(a,r.lang))},vt=(t,n="200,",a="full")=>{Array.isArray(t)&&(t=t[0]);const{id:r,service:i}=t;let o;if(!i)return r;if(Array.isArray(t.service)&&t.service.length>0&&(o=i[0]),o){if(o["@id"])return`${o["@id"]}/${a}/${n}/0/default.jpg`;if(o.id)return`${o.id}/${a}/${n}/0/default.jpg`}},se=d("img",{objectFit:"cover"}),xt=t=>{const n=e.useRef(null),{contentResource:a,altAsLabel:r,region:i="full"}=t;let o;r&&(o=M(r));const s=A(t,["contentResource","altAsLabel"]),{type:l,id:c,width:m=200,height:u=200,duration:g}=a;e.useEffect(()=>{if(!c&&!n.current||["Image"].includes(l)||!c.includes("m3u8"))return;const p=new I.Hls;return n.current&&(p.attachMedia(n.current),p.on(I.Hls.Events.MEDIA_ATTACHED,function(){p.loadSource(c)})),p.on(I.Hls.Events.ERROR,function(f,h){if(h.fatal)switch(h.type){case I.Hls.ErrorTypes.NETWORK_ERROR:console.error(`fatal ${f} network error encountered, try to recover`),p.startLoad();break;case I.Hls.ErrorTypes.MEDIA_ERROR:console.error(`fatal ${f} media error encountered, try to recover`),p.recoverMediaError();break;default:p.destroy();break}}),()=>{p&&(p.detachMedia(),p.destroy())}},[c,l]);const v=e.useCallback(()=>{if(!n.current)return;let p=0,f=30;if(g&&(f=g),!c.split("#t=")&&g&&(p=g*.1),c.split("#t=").pop()){const b=c.split("#t=").pop();b&&(p=parseInt(b.split(",")[0]))}const h=n.current;h.autoplay=!0,h.currentTime=p,setTimeout(()=>v(),f*1e3)},[g,c]);e.useEffect(()=>v(),[v]);const x=vt(a,`${m},${u}`,i);switch(l){case"Image":return e.createElement(se,{as:"img",alt:o,css:{width:m,height:u},key:c,src:x,...s});case"Video":return e.createElement(se,{as:"video",css:{width:m,height:u},disablePictureInPicture:!0,key:c,loop:!0,muted:!0,onPause:v,ref:n,src:c});default:return console.warn(`Resource type: ${l} is not valid or not yet supported in Primitives.`),e.createElement(e.Fragment,null)}},bt=d("a",{}),Et=t=>{const{children:n,homepage:a}=t,r=A(t,["children","homepage"]);return e.createElement(e.Fragment,null,a&&a.map(i=>{const o=M(i.label,r.lang);return e.createElement(bt,{"aria-label":n?o:void 0,href:i.id,key:i.id,...r},n||o)}))},yt={delimiter:", "},te=e.createContext(void 0),Te=()=>{const t=e.useContext(te);if(t===void 0)throw new Error("usePrimitivesContext must be used with a PrimitivesProvider");return t},ne=({children:t,initialState:n=yt})=>{const a=wt(n,"delimiter");return e.createElement(te.Provider,{value:{delimiter:a}},t)},wt=(t,n)=>Object.hasOwn(t,n)?t[n].toString():void 0,Ct=d("span",{}),ce=t=>{const{as:n,markup:a}=t,{delimiter:r}=Te();if(!a)return e.createElement(e.Fragment,null);const i=A(t,["as","markup"]),o=gt(M(a,i.lang,r));return e.createElement(Ct,{as:n,...i,dangerouslySetInnerHTML:o})},Le=t=>e.useContext(te)?e.createElement(ce,{...t}):e.createElement(ne,null,e.createElement(ce,{...t})),kt=({as:t="dd",lang:n,value:a})=>e.createElement(Le,{markup:a,as:t,lang:n}),St=d("span",{}),$t=({as:t="dd",customValueContent:n,lang:a,value:r})=>{var i;const{delimiter:o}=Te(),s=(i=ze(r,a))==null?void 0:i.map(l=>e.cloneElement(n,{value:l}));return e.createElement(St,{as:t,lang:a},s==null?void 0:s.map((l,c)=>[c>0&&`${o}`,e.createElement(e.Fragment,{key:c},l)]))},Re=t=>{var n;const{item:a,lang:r,customValueContent:i}=t,{label:o,value:s}=a,l=(n=M(o))==null?void 0:n.replace(" ","-").toLowerCase();return e.createElement("div",{role:"group","data-label":l},e.createElement(T,{as:"dt",label:o,lang:r}),i?e.createElement($t,{as:"dd",customValueContent:i,value:s,lang:r}):e.createElement(kt,{as:"dd",value:s,lang:r}))};function It(t,n){const a=n.filter(r=>{const{matchingLabel:i}=r,o=Object.keys(r.matchingLabel)[0],s=M(i,o);if(M(t,o)===s)return!0}).map(r=>r.Content);if(Array.isArray(a))return a[0]}const At=d("dl",{}),Mt=t=>{const{as:n,customValueContent:a,metadata:r}=t;if(!Array.isArray(r))return e.createElement(e.Fragment,null);const i=ye(t,"customValueDelimiter"),o=A(t,["as","customValueContent","customValueDelimiter","metadata"]);return e.createElement(ne,{...typeof i=="string"?{initialState:{delimiter:i}}:void 0},r.length>0&&e.createElement(At,{as:n,...o},r.map((s,l)=>{const c=a?It(s.label,a):void 0;return e.createElement(Re,{customValueContent:c,item:s,key:l,lang:o==null?void 0:o.lang})})))};d("li",{});d("ul",{});const zt=d("dl",{}),Tt=t=>{const{as:n,requiredStatement:a}=t;if(!a)return e.createElement(e.Fragment,null);const r=ye(t,"customValueDelimiter"),i=A(t,["as","customValueDelimiter","requiredStatement"]);return e.createElement(ne,{...typeof r=="string"?{initialState:{delimiter:r}}:void 0},e.createElement(zt,{as:n,...i},e.createElement(Re,{item:a,lang:i.lang})))},Lt=d("li",{}),Rt=d("ul",{}),Ft=t=>{const{as:n,seeAlso:a}=t,r=A(t,["as","seeAlso"]);return e.createElement(Rt,{as:n},a&&a.map(i=>{const o=M(i.label,r.lang);return e.createElement(Lt,{key:i.id},e.createElement("a",{href:i.id,...r},o||i.id))}))},Ht=t=>{const{as:n,summary:a}=t,r=A(t,["as","customValueDelimiter","summary"]);return e.createElement(Le,{as:n,markup:a,...r})},Fe=t=>{const{thumbnail:n,region:a}=t,r=A(t,["thumbnail"]);return e.createElement(e.Fragment,null,n&&n.map(i=>e.createElement(xt,{contentResource:i,key:i.id,region:a,...r})))},Ot=({homepage:t})=>(t==null?void 0:t.length)===0?e.createElement(e.Fragment,null):e.createElement(e.Fragment,null,e.createElement("span",{className:"manifest-property-title"},"Homepage"),e.createElement(Et,{homepage:t})),Pt=({id:t,htmlLabel:n,parent:a="manifest"})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"manifest-property-title"},n),e.createElement("a",{href:t,target:"_blank",id:`iiif-${a}-id`},t)),Vt=({metadata:t,parent:n="manifest"})=>t?e.createElement(e.Fragment,null,e.createElement(Mt,{metadata:t,id:`iiif-${n}-metadata`})):e.createElement(e.Fragment,null),Bt=({requiredStatement:t,parent:n="manifest"})=>t?e.createElement(e.Fragment,null,e.createElement(Tt,{requiredStatement:t,id:`iiif-${n}-required-statement`})):e.createElement(e.Fragment,null),jt=({rights:t})=>t?e.createElement(e.Fragment,null,e.createElement("span",{className:"manifest-property-title"},"Rights"),e.createElement("a",{href:t,target:"_blank"},t)):e.createElement(e.Fragment,null),Dt=({seeAlso:t})=>(t==null?void 0:t.length)===0?e.createElement(e.Fragment,null):e.createElement(e.Fragment,null,e.createElement("span",{className:"manifest-property-title"},"See Also"),e.createElement(Ft,{seeAlso:t})),Wt=({summary:t,parent:n="manifest"})=>t?e.createElement(e.Fragment,null,e.createElement(Ht,{summary:t,as:"p",id:`iiif-${n}-summary`})):e.createElement(e.Fragment,null),qt=({label:t,thumbnail:n})=>(n==null?void 0:n.length)===0?e.createElement(e.Fragment,null):e.createElement(e.Fragment,null,e.createElement(Fe,{altAsLabel:t||{none:["resource"]},thumbnail:n,style:{backgroundColor:"#6663",objectFit:"cover"}})),Nt=()=>{const t=S(),{activeManifest:n,vault:a}=t,[r,i]=e.useState(),[o,s]=e.useState([]),[l,c]=e.useState([]),[m,u]=e.useState([]);return e.useEffect(()=>{var g,v,x;const p=a.get(n);i(p),((g=p.homepage)==null?void 0:g.length)>0&&s(a.get(p.homepage)),((v=p.seeAlso)==null?void 0:v.length)>0&&c(a.get(p.seeAlso)),((x=p.thumbnail)==null?void 0:x.length)>0&&u(a.get(p.thumbnail))},[n,a]),r?e.createElement(pt,null,e.createElement(ut,null,e.createElement(qt,{thumbnail:m,label:r.label}),e.createElement(Wt,{summary:r.summary}),e.createElement(Vt,{metadata:r.metadata}),e.createElement(Bt,{requiredStatement:r.requiredStatement}),e.createElement(jt,{rights:r.rights}),e.createElement(Ot,{homepage:o}),e.createElement(Dt,{seeAlso:l}),e.createElement(Pt,{id:r.id,htmlLabel:"IIIF Manifest"}))):e.createElement(e.Fragment,null)},Gt=()=>{function t(i){return i.map(o=>{const s=o.identifier||xe();return{...o,identifier:s}})}function n(i){var o;const s=[],l=[],c=t(i);for(const m of c){for(;l.length>0&&l[l.length-1].end<=m.start;)l.pop();l.length>0?(l[l.length-1].children||(l[l.length-1].children=[]),(o=l[l.length-1].children)==null||o.push(m),l.push(m)):(s.push(m),l.push(m))}return s}function a(i,o=[]){return o.some(s=>i.start>=s.start&&i.end<=s.end)}function r(i=[]){return i.sort((o,s)=>o.start-s.start)}return{addIdentifiersToParsedCues:t,createNestedCues:n,isChild:a,orderCuesByTime:r}},de=ee({from:{transform:"rotate(360deg)"},to:{transform:"rotate(0deg)"}}),_t=d(W.Root,{display:"flex",flexDirection:"column",width:"100%"}),He=d(W.Item,{position:"relative",cursor:"pointer",display:"flex",width:"100%",justifyContent:"space-between",textAlign:"left",margin:"0",padding:"0.5rem 1.618rem",fontFamily:"inherit",lineHeight:"1.25em",fontSize:"1rem",color:"inherit",border:"none",background:"none","@sm":{padding:"0.5rem 1rem",fontSize:"0.8333rem"},"&::before":{content:"",width:"12px",height:"12px",borderRadius:"12px",position:"absolute",backgroundColor:"$primaryMuted",opacity:"0",left:"8px",marginTop:"3px",boxSizing:"content-box","@sm":{content:"unset"}},"&::after":{content:"",width:"4px",height:"6px",position:"absolute",backgroundColor:"$secondary",opacity:"0",clipPath:"polygon(100% 50%, 0 100%, 0 0)",left:"13px",marginTop:"6px",boxSizing:"content-box","@sm":{content:"unset"}},strong:{marginLeft:"1rem"},"&:hover":{color:"$accent","&::before":{backgroundColor:"$accent",opacity:"1"},"&::after":{content:"",width:"4px",height:"6px",position:"absolute",backgroundColor:"$secondary",clipPath:"polygon(100% 50%, 0 100%, 0 0)",opacity:"1"}},"&[aria-checked='true']":{backgroundColor:"#6663","&::before":{content:"",width:"6px",height:"6px",position:"absolute",backgroundColor:"transparent",border:"3px solid $accentMuted",borderRadius:"12px",left:"8px",marginTop:"4px",opacity:"1",animation:"1s linear infinite",animationName:de,boxSizing:"content-box","@sm":{content:"unset"}},"&::after":{content:"",width:"6px",height:"6px",position:"absolute",backgroundColor:"transparent",border:"3px solid $accent",clipPath:"polygon(100% 0, 100% 100%, 0 0)",borderRadius:"12px",left:"8px",marginTop:"4px",opacity:"1",animation:"1.5s linear infinite",animationName:de,boxSizing:"content-box","@sm":{content:"unset"}}}}),Zt=({label:t,start:n,end:a})=>{const[r,i]=e.useState(!1),o=document.getElementById("clover-iiif-video");e.useEffect(()=>(o==null||o.addEventListener("timeupdate",()=>{const{currentTime:l}=o;i(n<=l&&l<a)}),()=>document.removeEventListener("timeupdate",()=>{})),[a,n,o]);const s=()=>{o&&(o.pause(),o.currentTime=n,o.play())};return e.createElement(He,{"aria-checked":r,"data-testid":"information-panel-cue",onClick:s,value:t},t,e.createElement("strong",null,be(n)))},Ut=d("ul",{listStyle:"none",paddingLeft:"1rem",position:"relative","&&:first-child":{paddingLeft:"0"},"& li ul":{[`& ${He}`]:{backgroundColor:"unset","&::before":{content:"none"},"&::after":{content:"none"}}},"&:first-child":{margin:"0 0 1.618rem"}}),Oe=({items:t})=>e.createElement(Ut,null,t.map(n=>{const{text:a,start:r,end:i,children:o,identifier:s}=n;return e.createElement("li",{key:s},e.createElement(Zt,{label:a,start:r,end:i}),o&&e.createElement(Oe,{items:o}))})),Xt=({resource:t})=>{const[n,a]=e.useState([]),{id:r,label:i}=t,{createNestedCues:o,orderCuesByTime:s}=Gt();return e.useEffect(()=>{r&&fetch(r,{headers:{"Content-Type":"text/plain",Accept:"application/json"}}).then(l=>l.text()).then(l=>{const c=Xe.nodeWebvtt.parse(l).cues,m=s(c),u=o(m);a(u)}).catch(l=>console.error(r,l.toString()))},[r]),e.createElement(_t,{"aria-label":`navigate ${P(i,"en")}`},e.createElement(Oe,{items:n}))},Yt=({activeCanvas:t,resources:n})=>{var a;const r=S(),{configOptions:i}=r,{informationPanel:o}=i,[s,l]=e.useState(),c=(o==null?void 0:o.renderAbout)||((a=i==null?void 0:i.informationPanel)==null?void 0:a.renderAbout),m=o==null?void 0:o.renderSupplementing;e.useEffect(()=>{c?l("manifest-about"):n&&(n==null?void 0:n.length)>0&&!c&&l(n[0].id)},[t,c,n]);const u=g=>{l(g)};return n?e.createElement(ct,{"data-testid":"information-panel",defaultValue:s,onValueChange:u,orientation:"horizontal",value:s,className:"clover-viewer-information-panel"},e.createElement(dt,{"aria-label":"select chapter","data-testid":"information-panel-list"},c&&e.createElement(oe,{value:"manifest-about"},"About"),m&&n&&n.map(({id:g,label:v})=>e.createElement(oe,{key:g,value:g},e.createElement(T,{label:v})))),e.createElement(mt,null,c&&e.createElement(le,{value:"manifest-about"},e.createElement(Nt,null)),m&&n&&n.map(g=>e.createElement(le,{key:g.id,value:g.id},e.createElement(Xt,{resource:g}))))):e.createElement(e.Fragment,null)},Pe=d("div",{position:"absolute",right:"1rem",top:"1rem",display:"flex",justifyContent:"flex-end",zIndex:"1"}),Jt=d("input",{flexGrow:"1",border:"none",backgroundColor:"$secondaryMuted",color:"$primary",marginRight:"1rem",height:"2rem",padding:"0 1rem",borderRadius:"2rem",fontFamily:"inherit",fontSize:"1rem",lineHeight:"1rem",boxShadow:"inset 1px 1px 2px #0003","&::placeholder":{color:"$primaryMuted"}}),U=d("button",{display:"flex",background:"none",border:"none",width:"2rem !important",height:"2rem !important",padding:"0",margin:"0",fontWeight:"700",borderRadius:"2rem",backgroundColor:"$accent",color:"$secondary",cursor:"pointer",boxSizing:"content-box !important",transition:"$all",svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",opacity:"1",filter:"drop-shadow(5px 5px 5px #000D)",boxSizing:"inherit",transition:"$all"},"&:disabled":{backgroundColor:"transparent",boxShadow:"none",svg:{opacity:"0.25"}}}),Kt=d("div",{display:"flex",marginRight:"0.618rem",backgroundColor:"$accentAlt",borderRadius:"2rem",boxShadow:"5px 5px 5px #0003",color:"$secondary",alignItems:"center","> span":{display:"flex",margin:"0 0.5rem",fontSize:"0.7222rem"}}),Qt=d("div",{display:"flex",position:"relative",zIndex:"1",width:"100%",padding:"0",transition:"$all",variants:{isToggle:{true:{paddingTop:"2.618rem",[`& ${Pe}`]:{width:"calc(100% - 2rem)","@sm":{width:"calc(100% - 2rem)"}}}}}}),en=(t,n)=>{e.useEffect(()=>{function a(r){r.key===t&&n()}return window.addEventListener("keyup",a),()=>window.removeEventListener("keyup",a)},[])},tn=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("title",null,"Arrow Back"),e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})),nn=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("title",null,"Arrow Forward"),e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M268 112l144 144-144 144M392 256H100"})),an=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("title",null,"Close"),e.createElement("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})),rn=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("title",null,"Search"),e.createElement("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"})),on=({handleCanvasToggle:t,handleFilter:n,activeIndex:a,canvasLength:r})=>{const[i,o]=e.useState(!1),[s,l]=e.useState(!1),[c,m]=e.useState(!1);e.useEffect(()=>{m(a===0),a===r-1?l(!0):l(!1)},[a,r]),en("Escape",()=>{o(!1),n("")});const u=()=>{o(v=>!v),n("")},g=v=>n(v.target.value);return e.createElement(Qt,{isToggle:i},e.createElement(Pe,null,i&&e.createElement(Jt,{autoFocus:!0,onChange:g,placeholder:"Search"}),!i&&e.createElement(Kt,null,e.createElement(U,{onClick:()=>t(-1),disabled:c,type:"button"},e.createElement(tn,null)),e.createElement("span",null,a+1," of ",r),e.createElement(U,{onClick:()=>t(1),disabled:s,type:"button"},e.createElement(nn,null))),e.createElement(U,{onClick:u,type:"button"},i?e.createElement(an,null):e.createElement(rn,null))))},ln=d(W.Root,{display:"flex",flexDirection:"row",flexGrow:"1",padding:"1.618rem",overflowX:"scroll",position:"relative",zIndex:"0"}),sn=()=>e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288M400 256H112"}),cn=()=>e.createElement(e.Fragment,null,e.createElement("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24zm-106.18-80zm-.27-159.86zM320 336a16 16 0 01-14.29-23.19c9.49-18.87 14.3-38 14.3-56.81 0-19.38-4.66-37.94-14.25-56.73a16 16 0 0128.5-14.54C346.19 208.12 352 231.44 352 256c0 23.86-6 47.81-17.7 71.19A16 16 0 01320 336z"}),e.createElement("path",{d:"M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256c0-44.17-10.93-71.56-29.82-103.94a16 16 0 0127.64-16.12C402.92 172.11 416 204.81 416 256c0 50.43-13.06 83.29-34.13 120a16 16 0 01-13.87 8z"}),e.createElement("path",{d:"M416 432a16 16 0 01-13.39-24.74C429.85 365.47 448 323.76 448 256c0-66.5-18.18-108.62-45.49-151.39a16 16 0 1127-17.22C459.81 134.89 480 181.74 480 256c0 64.75-14.66 113.63-50.6 168.74A16 16 0 01416 432z"})),dn=()=>e.createElement("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}),mn=()=>e.createElement("path",{d:"M416 64H96a64.07 64.07 0 00-64 64v256a64.07 64.07 0 0064 64h320a64.07 64.07 0 0064-64V128a64.07 64.07 0 00-64-64zm-80 64a48 48 0 11-48 48 48.05 48.05 0 0148-48zM96 416a32 32 0 01-32-32v-67.63l94.84-84.3a48.06 48.06 0 0165.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 01-32 32H217.63l121.42-121.42a47.72 47.72 0 0161.64-.16L448 333.84z"}),un=()=>e.createElement("path",{d:"M464 384.39a32 32 0 01-13-2.77 15.77 15.77 0 01-2.71-1.54l-82.71-58.22A32 32 0 01352 295.7v-79.4a32 32 0 0113.58-26.16l82.71-58.22a15.77 15.77 0 012.71-1.54 32 32 0 0145 29.24v192.76a32 32 0 01-32 32zM268 400H84a68.07 68.07 0 01-68-68V180a68.07 68.07 0 0168-68h184.48A67.6 67.6 0 01336 179.52V332a68.07 68.07 0 01-68 68z"}),Ve=d("svg",{display:"inline-flex",variants:{isLarge:{true:{height:"4rem",width:"4rem"}},isMedium:{true:{height:"2rem",width:"2rem"}},isSmall:{true:{height:"1rem",width:"1rem"}}}}),pn=({children:t})=>e.createElement("title",null,t),k=t=>e.createElement(Ve,{...t,"data-testid":"icon-svg",role:"img",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},t.children);k.Title=pn;k.Add=sn;k.Audio=cn;k.Close=dn;k.Image=mn;k.Video=un;const gn=ee({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),hn=ee({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),Be=d(H.Arrow,{fill:"$secondaryAlt"}),fn=d(H.Close,{position:"absolute",right:"0",top:"0",padding:"0.5rem",margin:"0",cursor:"pointer",border:"none",background:"none",fill:"inherit","&:hover":{opacity:"0.75"}}),vn=d(H.Content,{border:"none",backgroundColor:"white",fill:"inhrerit",padding:"1rem 2rem 1rem 1rem",width:"auto",minWidth:"200px",maxWidth:"350px",borderRadius:"3px",boxShadow:"5px 5px 13px #0002",animationDuration:"0.3s",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",'&[data-side="top"]':{animationName:hn},'&[data-side="bottom"]':{animationName:gn},'&[data-align="end"]':{[`& ${Be}`]:{margin:"0 0.7rem"}}}),xn=d(H.Trigger,{display:"inline-flex",padding:"0.5rem 0",margin:"0 0.5rem 0 0",cursor:"pointer",border:"none",background:"none","> button, > span":{margin:"0"}}),bn=d(H.Root,{boxSizing:"content-box"}),En=t=>e.createElement(xn,{...t},t.children),yn=t=>e.createElement(vn,{...t},e.createElement(Be,null),e.createElement(fn,null,e.createElement(k,{isSmall:!0},e.createElement(k.Close,null))),t.children),V=({children:t})=>e.createElement(bn,null,t);V.Trigger=En;V.Content=yn;const Y=d("div",{boxSizing:"border-box",display:"inline-flex",alignItems:"center",borderRadius:"5px",padding:"$1",marginBottom:"$2",marginRight:"$2",backgroundColor:"$lightGrey",color:"$richBlack50",textTransform:"uppercase",fontSize:"$2",objectFit:"contain",lineHeight:"1em !important","&:last-child":{marginRight:"0"},[`${Ve}`]:{position:"absolute",left:"$1",height:"$3",width:"$3"},variants:{isIcon:{true:{position:"relative",paddingLeft:"$5"}}}}),J=d("span",{display:"flex"}),wn=d("span",{display:"flex",width:"1.2111rem",height:"0.7222rem"}),Cn=d("span",{display:"inline-flex",marginLeft:"5px",marginBottom:"-1px"}),kn=d(W.Item,{display:"flex",flexShrink:"0",margin:"0 1.618rem 0 0",padding:"0",cursor:"pointer",background:"none",border:"none",fontFamily:"inherit",lineHeight:"1.25em",fontSize:"1rem",textAlign:"left","&:last-child":{marginRight:"1rem"},figure:{margin:"0",width:"161.8px","> div":{position:"relative",display:"flex",backgroundColor:"$secondaryAlt",width:"inherit",height:"100px",overflow:"hidden",borderRadius:"3px",transition:"$all",img:{width:"100%",height:"100%",objectFit:"cover",filter:"blur(0)",transform:"scale3d(1, 1, 1)",transition:"$all",color:"transparent"},[`& ${J}`]:{position:"absolute",right:"0",bottom:"0",[`& ${Y}`]:{margin:"0",paddingLeft:"0",fontSize:"0.7222rem",backgroundColor:"#000d",color:"$secondary",fill:"$secondary",borderBottomLeftRadius:"0",borderTopRightRadius:"0"}}},figcaption:{marginTop:"0.5rem",fontWeight:"400",fontSize:"0.8333rem",display:"-webkit-box",overflow:"hidden",MozBoxOrient:"vertical",WebkitBoxOrient:"vertical",WebkitLineClamp:"5","@sm":{fontSize:"0.8333rem"}}},"&[aria-checked='true']":{figure:{"> div":{backgroundColor:"$primaryAlt","&::before":{position:"absolute",zIndex:"1",color:"$secondaryMuted",content:"Active Item",textTransform:"uppercase",fontWeight:"700",fontSize:"0.6111rem",letterSpacing:"0.03rem",display:"flex",width:"100%",height:"100%",flexDirection:"column",justifyContent:"center",textAlign:"center",textShadow:"5px 5px 5px #0003"},img:{opacity:"0.3",transform:"scale3d(1.1, 1.1, 1.1)",filter:"blur(2px)"},[`& ${J}`]:{[`& ${Y}`]:{backgroundColor:"$accent"}}}},figcaption:{fontWeight:"700"}}}),Sn=({type:t})=>{switch(t){case"Sound":return e.createElement(k.Audio,null);case"Image":return e.createElement(k.Image,null);case"Video":return e.createElement(k.Video,null);default:return e.createElement(k.Image,null)}},$n=({canvas:t,canvasIndex:n,isActive:a,thumbnail:r,type:i,handleChange:o})=>e.createElement(kn,{"aria-checked":a,"data-testid":"media-thumbnail","data-canvas":n,onClick:()=>o(t.id),value:t.id},e.createElement("figure",null,e.createElement("div",null,(r==null?void 0:r.id)&&e.createElement("img",{src:r.id,alt:t!=null&&t.label?P(t.label):""}),e.createElement(J,null,e.createElement(Y,{isIcon:!0,"data-testid":"thumbnail-tag"},e.createElement(wn,null),e.createElement(k,{"aria-label":i},e.createElement(Sn,{type:i})),["Video","Sound"].includes(i)&&e.createElement(Cn,null,be(t.duration))))),(t==null?void 0:t.label)&&e.createElement("figcaption",{"data-testid":"fig-caption"},e.createElement(T,{label:t.label})))),In=t=>t.body?t.body.type:"Image",An=({items:t})=>{const n=O(),a=S(),{activeCanvas:r,vault:i}=a,[o,s]=e.useState(""),[l,c]=e.useState([]),[m,u]=e.useState(0),g=e.useRef(null),v="painting",x=h=>{r!==h&&n({type:"updateActiveCanvas",canvasId:h})};e.useEffect(()=>{if(!l.length){const h=["Image","Sound","Video"],b=t.map(E=>ke(i,E,v,h)).filter(E=>E.annotations.length>0);c(b)}},[t,l.length,i]),e.useEffect(()=>{l.forEach((h,b)=>{h!=null&&h.canvas&&h.canvas.id===r&&u(b)})},[r,l]),e.useEffect(()=>{const h=document.querySelector(`[data-canvas="${m}"]`);if(h instanceof HTMLElement&&g.current){const b=h.offsetLeft-g.current.offsetWidth/2+h.offsetWidth/2;g.current.scrollTo({left:b,behavior:"smooth"})}},[m]);const p=h=>s(h),f=h=>{const b=l[m+h];b!=null&&b.canvas&&x(b.canvas.id)};return e.createElement(e.Fragment,null,e.createElement(on,{handleFilter:p,handleCanvasToggle:f,activeIndex:m,canvasLength:l.length}),e.createElement(ln,{"aria-label":"select item","data-testid":"media",ref:g},l.filter(h=>{var b;if((b=h.canvas)!=null&&b.label){const E=P(h.canvas.label);if(Array.isArray(E))return E[0].toLowerCase().includes(o.toLowerCase())}}).map((h,b)=>{var E,y;return e.createElement($n,{canvas:h.canvas,canvasIndex:b,handleChange:x,isActive:r===((E=h==null?void 0:h.canvas)==null?void 0:E.id),key:(y=h==null?void 0:h.canvas)==null?void 0:y.id,thumbnail:tt(i,h,200,200),type:In(h.annotations[0])})})))},je=d("button",{background:"none",border:"none",cursor:"zoom-in",width:"100%",height:"100%",margin:"0",padding:"0",transition:"$all","& img":{width:"100%",height:"100%",objectFit:"contain",color:"transparent",transition:"$all"},variants:{isMedia:{true:{cursor:"pointer"}}}}),De=d("button",{display:"flex",height:"2rem",width:"2rem",borderRadius:"2rem",padding:"0",margin:"0",fontFamily:"inherit",background:"none",border:"none",color:"white",cursor:"pointer",marginLeft:"0.618rem",backgroundColor:"$primary",filter:"drop-shadow(2px 2px 5px #0003)",transition:"$all",boxSizing:"content-box !important","&:first-child":{marginLeft:"0"},"@xs":{marginBottom:"0.618rem",marginLeft:"0","&:last-child":{marginBottom:"0"}},svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",filter:"drop-shadow(2px 2px 5px #0003)",transition:"$all",boxSizing:"inherit"},"&:hover, &:focus":{backgroundColor:"$accent"},"&#rotateRight":{"&:hover, &:focus":{svg:{rotate:"45deg"}}},"&#rotateLeft":{transform:"scaleX(-1)","&:hover, &:focus":{svg:{rotate:"45deg"}}},"&#reset":{"&:hover, &:focus":{svg:{rotate:"-15deg"}}}}),We=d(De,{position:"absolute",width:"2rem",top:"1rem",right:"1rem",zIndex:100,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",transition:"$all",borderRadius:"50%",backgroundColor:"$accent",cursor:"pointer","&:hover, &:focus":{backgroundColor:"$accent !important"},variants:{isInteractive:{true:{"&:hover":{opacity:"1"}},false:{}},isMedia:{true:{cursor:"pointer !important"}}},compoundVariants:[{isInteractive:!1,isMedia:!0,css:{top:"50%",right:"50%",width:"4rem",height:"4rem",transform:"translate(50%,-50%)"}}]}),Mn=d("div",{position:"relative",zIndex:"0",display:"flex",flexDirection:"column",gap:"1rem","&:hover":{[`${We}`]:{backgroundColor:"$accent"},[`${je}`]:{backgroundColor:"#6662",img:{filter:"brightness(0.85)"}}}}),zn=d("div",{}),Tn=d("svg",{height:"19px",color:"$accent",fill:"$accent",stroke:"$accent",display:"flex",margin:"0.25rem 0.85rem"}),Ln=d(C.Trigger,{fontSize:"1.25rem",fontWeight:"400",fontFamily:"inherit",alignSelf:"flex-start",flexGrow:"1",cursor:"pointer",transition:"$all",border:"1px solid #6663",boxShadow:"2px 2px 5px #0001",borderRadius:"3px",display:"flex",alignItems:"center",paddingLeft:"0.5rem",width:"100%","@sm":{fontSize:"1rem"}}),Rn=d(C.Content,{borderRadius:"3px",boxShadow:"3px 3px 8px #0003",backgroundColor:"$secondary",marginTop:"2.25rem",marginLeft:"6px",paddingBottom:"0.25rem",maxHeight:"calc(61.8vh - 2.5rem) !important",borderTopLeftRadius:"0",border:"1px solid $secondaryMuted",maxWidth:"90vw"}),Fn=d(C.Item,{display:"flex",alignItems:"center",fontFamily:"inherit",padding:"0.25rem 0.5rem",color:"$primary",fontWeight:"400",fontSize:"0.8333rem",cursor:"pointer",backgroundColor:"$secondary",width:"calc(100% - 1rem)","> span":{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},'&[data-state="checked"]':{fontWeight:"700",color:"$primary !important"},"&:hover":{color:"$accent"},img:{width:"31px",height:"31px",marginRight:"0.5rem",borderRadius:"3px"}}),Hn=d(C.Label,{color:"$primaryMuted",fontFamily:"inherit",fontSize:"0.85rem",padding:"0.5rem 1rem 0.5rem 0.5rem",display:"flex",alignItems:"center",marginBottom:"0.25rem",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",borderBottomRightRadius:"0",backgroundColor:"$secondaryMuted"}),qe=d(C.Root,{position:"relative",zIndex:"5",width:"100%"}),X=({direction:t,title:n})=>{const a=()=>e.createElement("path",{d:"M414 321.94L274.22 158.82a24 24 0 00-36.44 0L98 321.94c-13.34 15.57-2.28 39.62 18.22 39.62h279.6c20.5 0 31.56-24.05 18.18-39.62z"}),r=()=>e.createElement("path",{d:"M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z"});return e.createElement(Tn,{xmlns:"http://www.w3.org/2000/svg",focusable:"false",viewBox:"0 0 512 512",role:"img"},e.createElement("title",null,n),t==="up"&&e.createElement(a,null),t==="down"&&e.createElement(r,null))},Ne=({children:t,label:n,maxHeight:a,onValueChange:r,value:i})=>e.createElement(qe,{onValueChange:r,value:i},e.createElement(Ln,{"data-testid":"select-button"},e.createElement(C.SelectValue,{"data-testid":"select-button-value"}),e.createElement(C.SelectIcon,null,e.createElement(X,{direction:"down",title:"select"}))),e.createElement(C.SelectPortal,null,e.createElement(Rn,{css:{maxHeight:`${a} !important`},"data-testid":"select-content"},e.createElement(C.SelectScrollUpButton,null,e.createElement(X,{direction:"up",title:"scroll up for more"})),e.createElement(C.SelectViewport,null,e.createElement(C.SelectGroup,null,n&&e.createElement(Hn,null,e.createElement(T,{"data-testid":"select-label",label:n})),t)),e.createElement(C.SelectScrollDownButton,null,e.createElement(X,{direction:"down",title:"scroll down for more"}))))),Ge=t=>e.createElement(Fn,{...t},t.thumbnail&&e.createElement(Fe,{thumbnail:t.thumbnail}),e.createElement(C.SelectItemText,null,e.createElement(T,{label:t.label})),e.createElement(C.SelectItemIndicator,null)),On=d("div",{position:"absolute !important",zIndex:"1",top:"1rem",left:"1rem",width:"161.8px",height:"100px",backgroundColor:"#000D",boxShadow:"5px 5px 5px #0002",borderRadius:"3px",".displayregion":{border:" 3px solid $accent !important",boxShadow:"0 0 3px #0006"},"@sm":{width:"123px",height:"76px"},"@xs":{width:"100px",height:"61.8px"}}),Pn=d("div",{position:"relative",width:"100%",height:"100%",zIndex:"0"}),Vn=d("div",{width:"100%",height:"61.8vh",maxHeight:"100vh",background:"black",backgroundSize:"contain",color:"white",position:"relative",zIndex:"1",overflow:"hidden"}),z=({id:t,label:n,children:a})=>e.createElement(De,{id:t,"data-testid":"openseadragon-button"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":`${t}-svg-title`,"data-testid":"openseadragon-button-svg",focusable:"false",viewBox:"0 0 512 512",role:"img"},e.createElement("title",{id:`${t}-svg-title`},n),a)),Bn=d("div",{position:"absolute",zIndex:"1",top:"1rem",display:"flex","@xs":{flexDirection:"column",zIndex:"2"},variants:{hasPlaceholder:{true:{right:"3.618rem","@xs":{top:"3.618rem",right:"1rem"}},false:{right:"1rem","@xs":{top:"1rem",right:"1rem"}}}}}),jn=()=>e.createElement("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M256 112v288M400 256H112"}),Dn=()=>e.createElement("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 256H112"}),Wn=()=>e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320M421.8 421.77L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320M90.23 421.8L208 304"}),qn=()=>e.createElement("path",{d:"M448 440a16 16 0 01-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335 352.88 301 345.59 256 344.23V424a16 16 0 01-27 11.57l-176-168a16 16 0 010-23.14l176-168A16 16 0 01256 88v80.36c74.14 3.41 129.38 30.91 164.35 81.87C449.32 292.44 464 350.9 464 424a16 16 0 01-16 16z"}),me=()=>e.createElement(e.Fragment,null,e.createElement("path",{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}),e.createElement("path",{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"})),Nn=({hasPlaceholder:t,options:n})=>e.createElement(Bn,{"data-testid":"openseadragon-controls",hasPlaceholder:t,id:"openseadragon-controls"},n.showZoomControl&&e.createElement(e.Fragment,null,e.createElement(z,{id:"zoomIn",label:"zoom in"},e.createElement(jn,null)),e.createElement(z,{id:"zoomOut",label:"zoom out"},e.createElement(Dn,null))),n.showFullPageControl&&e.createElement(z,{id:"fullPage",label:"full page"},e.createElement(Wn,null)),n.showRotationControl&&e.createElement(e.Fragment,null,e.createElement(z,{id:"rotateRight",label:"rotate right"},e.createElement(me,null)),e.createElement(z,{id:"rotateLeft",label:"rotate left"},e.createElement(me,null))),n.showHomeControl&&e.createElement(z,{id:"reset",label:"reset"},e.createElement(qn,null))),Gn=t=>fetch(`${t.replace(/\/$/,"")}/info.json`).then(n=>n.json()).then(n=>n).catch(n=>{console.error(`The IIIF tilesource ${t.replace(/\/$/,"")}/info.json failed to load: ${n}`)}),_n=t=>{let n,a;if(Array.isArray(t)&&(n=t[0],n)){let r;"@id"in n?r=n["@id"]:r=n.id,a=r}return a},Zn=({uri:t,hasPlaceholder:n,imageType:a})=>{const[r,i]=e.useState(),[o,s]=e.useState(),l=S(),{configOptions:c}=l,m={id:`openseadragon-viewport-${o}`,loadTilesWithAjax:!0,fullPageButton:"fullPage",homeButton:"reset",rotateLeftButton:"rotateLeft",rotateRightButton:"rotateRight",zoomInButton:"zoomIn",zoomOutButton:"zoomOut",showNavigator:!0,showFullPageControl:!0,showHomeControl:!0,showRotationControl:!0,showZoomControl:!0,navigatorBorderColor:"transparent",navigatorId:`openseadragon-navigator-${o}`,gestureSettingsMouse:{clickToZoom:!0,dblClickToZoom:!0,pinchToZoom:!0,scrollToZoom:!0},...c.openSeadragon,ajaxWithCredentials:c.withCredentials};return e.useEffect(()=>{t!==r&&(i(t),s(xe()))},[r,t]),e.useEffect(()=>{if(r)switch(a){case"simpleImage":re(m).addSimpleImage({url:r});break;case"tiledImage":Gn(r).then(u=>re(m).addTiledImage({tileSource:u}));break;default:console.warn(`Unable to render ${r} in OpenSeadragon as type: "${a}"`);break}},[r]),o?e.createElement(Vn,{css:{backgroundColor:c.canvasBackgroundColor,height:c.canvasHeight},className:"clover-viewer-osd-wrapper","data-testid":"clover-viewer-osd-wrapper"},e.createElement(Nn,{hasPlaceholder:n,options:m}),e.createElement(On,{id:`openseadragon-navigator-${o}`}),e.createElement(Pn,{id:`openseadragon-viewport-${o}`})):null},Un=({painting:t,hasPlaceholder:n})=>{const[a,r]=e.useState(),[i,o]=e.useState();return e.useEffect(()=>{Array.isArray(t==null?void 0:t.service)&&(t==null?void 0:t.service.length)>0?(r("tiledImage"),o(_n(t==null?void 0:t.service))):(r("simpleImage"),o(t==null?void 0:t.id))},[t]),e.createElement(Zn,{uri:i,key:i,hasPlaceholder:n,imageType:a})},Xn=({isMedia:t,label:n,placeholderCanvas:a,setIsInteractive:r})=>{const{vault:i}=S(),o=j(i,a),s=o?o[0]:void 0,l=n?P(n):["placeholder image"];return e.createElement(je,{onClick:()=>r(!0),isMedia:t,className:"clover-viewer-placeholder"},e.createElement("img",{src:(s==null?void 0:s.id)||"",alt:l.join(),height:s==null?void 0:s.height,width:s==null?void 0:s.width}))},Yn=d("canvas",{position:"absolute",width:"100%",height:"100%",zIndex:"0"}),Jn=e.forwardRef((t,n)=>{const a=e.useRef(null),r=e.useCallback(()=>{var o,s;if((o=n.current)!=null&&o.currentTime&&((s=n.current)==null?void 0:s.currentTime)>0)return;const l=n.current;if(!l)return;const c=new AudioContext,m=c.createMediaElementSource(l),u=c.createAnalyser(),g=a.current;if(!g)return;g.width=l.offsetWidth,g.height=l.offsetHeight;const v=g.getContext("2d");m.connect(u),u.connect(c.destination),u.fftSize=256;const x=u.frequencyBinCount,p=new Uint8Array(x);setInterval(function(){i(u,v,x,p,g.width,g.height)},20)},[n]);e.useEffect(()=>{!n||!n.current||(n.current.onplay=r)},[r,n]);function i(o,s,l,c,m,u){const g=m/l*2.6;let v,x=0;o.getByteFrequencyData(c),s.fillStyle="#000000",s.fillRect(0,0,m,u);for(let p=0;p<l;p++)v=c[p]*2,s.fillStyle="rgba(78, 42, 132, 1)",s.fillRect(x,u-v,g,v),x+=g+6}return e.createElement(Yn,{ref:a,role:"presentation"})}),Kn=d("div",{position:"relative",backgroundColor:"$primaryAlt",display:"flex",flexGrow:"0",flexShrink:"1",maxHeight:"500px",zIndex:"1",video:{backgroundColor:"transparent",objectFit:"contain",width:"100%",height:"100%",position:"relative",zIndex:"1"}}),Qn=({resource:t,ignoreCaptionLabels:n})=>{const a=P(t.label,"en");return Array.isArray(a)&&a.some(r=>n.includes(r))?null:e.createElement("track",{key:t.id,src:t.id,label:Array.isArray(a)?a[0]:a,srcLang:"en","data-testid":"player-track"})},ea=({allSources:t,resources:n,painting:a})=>{const[r,i]=e.useState(0),[o,s]=e.useState(),l=e.useRef(null),c=(a==null?void 0:a.type)==="Sound",m=S(),{activeCanvas:u,configOptions:g,vault:v}=m;return e.useEffect(()=>{if(!a.id||!l.current)return;if(l!=null&&l.current){const f=l.current;f.src=a.id,f.load()}if(a.id.split(".").pop()!=="m3u8")return;const x={xhrSetup:function(f,h){f.withCredentials=!!g.withCredentials}},p=new I.Hls(x);return p.attachMedia(l.current),p.on(I.Hls.Events.MEDIA_ATTACHED,function(){p.loadSource(a.id)}),p.on(I.Hls.Events.ERROR,function(f,h){if(h.fatal)switch(h.type){case I.Hls.ErrorTypes.NETWORK_ERROR:console.error(`fatal ${f} network error encountered, try to recover`),p.startLoad();break;case I.Hls.ErrorTypes.MEDIA_ERROR:console.error(`fatal ${f} media error encountered, try to recover`),p.recoverMediaError();break;default:p.destroy();break}}),()=>{if(p&&l.current){const f=l.current;p.detachMedia(),p.destroy(),f.currentTime=0}}},[g.withCredentials,a.id]),e.useEffect(()=>{var x,p,f,h;const b=v.get(u),E=(x=b.accompanyingCanvas)!=null&&x.id?j(v,(p=b.accompanyingCanvas)==null?void 0:p.id):null,y=(f=b.placeholderCanvas)!=null&&f.id?j(v,(h=b.placeholderCanvas)==null?void 0:h.id):null;E&&y?s(r===0?y[0].id:E[0].id):(E&&s(E[0].id),y&&s(y[0].id))},[u,r,v]),e.useEffect(()=>{if(l!=null&&l.current){const x=l.current;return x==null||x.addEventListener("timeupdate",()=>i(x.currentTime)),()=>document.removeEventListener("timeupdate",()=>{})}},[]),e.createElement(Kn,{css:{backgroundColor:g.canvasBackgroundColor,maxHeight:g.canvasHeight,position:"relative"},"data-testid":"player-wrapper",className:"clover-viewer-player-wrapper"},e.createElement("video",{id:"clover-iiif-video",key:a.id,ref:l,controls:!0,height:a.height,width:a.width,crossOrigin:"anonymous",poster:o,style:{maxHeight:g.canvasHeight,position:"relative",zIndex:"1"}},t.map(x=>e.createElement("source",{src:x.id,type:x.format,key:x.id})),n.length>0&&n.map(x=>e.createElement(Qn,{resource:x,ignoreCaptionLabels:g.ignoreCaptionLabels||[],key:x.id})),"Sorry, your browser doesn't support embedded videos."),c&&e.createElement(Jn,{ref:l}))},ta=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-svg-title",focusable:"false",viewBox:"0 0 512 512",role:"img"},e.createElement("title",{id:"close-svg-title"},"close"),e.createElement("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})),na=({isMedia:t})=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"open-svg-title",focusable:"false",viewBox:"0 0 512 512",role:"img"},e.createElement("title",{id:"open-svg-title"},"open"),t?e.createElement("path",{d:"M133 440a35.37 35.37 0 01-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0135.77.45l247.85 148.36a36 36 0 010 61l-247.89 148.4A35.5 35.5 0 01133 440z"}):e.createElement(e.Fragment,null,e.createElement("path",{d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),e.createElement("path",{d:"m279.5,197.76h-3.35s-28.47,0-28.47,0v-31.82c-.77-13.79-12.57-24.33-26.36-23.56-12.71.71-22.85,10.86-23.56,23.56v3.35h0v28.47h-31.82c-13.79.77-24.33,12.57-23.56,26.36.71,12.71,10.86,22.85,23.56,23.56h3.35s28.47,0,28.47,0v31.82c.77,13.79,12.57,24.33,26.36,23.56,12.71-.71,22.85-10.86,23.56-23.56v-3.35h0v-28.47h31.82c13.79-.77,24.33-12.57,23.56-26.36-.71-12.71-10.86-22.85-23.56-23.56Z"}))),aa=({handleToggle:t,isInteractive:n,isMedia:a})=>e.createElement(We,{onClick:t,isInteractive:n,isMedia:a,"data-testid":"placeholder-toggle"},n?e.createElement(ta,null):e.createElement(na,{isMedia:a})),ra=({activeCanvas:t,isMedia:n,painting:a,resources:r})=>{var i,o,s;const[l,c]=e.useState(0),[m,u]=e.useState(!1),{configOptions:g,customDisplays:v,vault:x}=S(),p=x.get(t),f=(i=p==null?void 0:p.placeholderCanvas)==null?void 0:i.id,h=!!f,b=(a==null?void 0:a.length)>1,E=f&&!m&&!n,y=()=>u(!m),L=$=>{const B=a.findIndex(F=>F.id===$);c(B)},w=v.find($=>{var B;let F=!1;const{canvasId:N,paintingFormat:G}=$.target;if(Array.isArray(N)&&N.length>0&&(F=N.includes(t)),Array.isArray(G)&&G.length>0){const ae=((B=a[l])==null?void 0:B.format)||"";F=!!(ae&&G.includes(ae))}return F}),R=(o=w==null?void 0:w.display)==null?void 0:o.component;return e.createElement(Mn,{className:"clover-viewer-painting"},e.createElement(zn,{style:{backgroundColor:g.canvasBackgroundColor,maxHeight:g.canvasHeight}},f&&!n&&e.createElement(aa,{handleToggle:y,isInteractive:m,isMedia:n}),E&&!n&&e.createElement(Xn,{isMedia:n,label:p==null?void 0:p.label,placeholderCanvas:f,setIsInteractive:u}),!E&&!w&&(n?e.createElement(ea,{allSources:a,painting:a[l],resources:r}):a&&e.createElement(Un,{painting:a[l],hasPlaceholder:h,key:t})),!E&&R&&e.createElement(R,{id:t,annotationBody:a[l],...w==null?void 0:w.display.componentProps})),b&&e.createElement(Ne,{value:(s=a[l])==null?void 0:s.id,onValueChange:L,maxHeight:"200px"},a==null?void 0:a.map($=>e.createElement(Ge,{value:$==null?void 0:$.id,key:$==null?void 0:$.id,label:$==null?void 0:$.label}))))},ia=({activeCanvas:t,painting:n,resources:a,items:r,isAudioVideo:i})=>{const{informationOpen:o,configOptions:s}=S(),{informationPanel:l}=s,c=(l==null?void 0:l.renderAbout)||(l==null?void 0:l.renderSupplementing)&&a.length>0;return e.createElement($e,{className:"clover-viewer-content","data-testid":"clover-viewer-content"},e.createElement(Ie,null,e.createElement(ra,{activeCanvas:t,isMedia:i,painting:n,resources:a}),c&&e.createElement(Ae,null,e.createElement("span",null,o?"View Items":"More Information")),r.length>1&&e.createElement(Se,{className:"clover-viewer-media-wrapper"},e.createElement(An,{items:r,activeItem:0}))),o&&c&&e.createElement(lt,null,e.createElement(Me,null,e.createElement(Yt,{activeCanvas:t,resources:a}))))},oa=d(V.Trigger,{width:"30px",padding:"5px"}),la=d(V.Content,{display:"flex",flexDirection:"column",fontSize:"0.8333rem",border:"none",boxShadow:"2px 2px 5px #0003",zIndex:"2",button:{display:"flex",textDecoration:"none",marginBottom:"0.5em",color:"$accentAlt",cursor:"pointer",background:"$secondary",border:"none","&:last-child":{marginBottom:"0"}}}),sa=d("span",{fontSize:"1.33rem",alignSelf:"flex-start",flexGrow:"0",flexShrink:"1",padding:"1rem","@sm":{fontSize:"1rem"},"&.visually-hidden":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}}),ca=d("header",{display:"flex",backgroundColor:"transparent !important",justifyContent:"space-between",alignItems:"flex-start",width:"100%",[`> ${qe}`]:{flexGrow:"1",flexShrink:"0"},form:{flexGrow:"0",flexShrink:"1"}}),da=d("div",{display:"flex",alignItems:"flex-end",justifyContent:"flex-end",padding:"1rem",flexShrink:"0",flexGrow:"1"}),ma=()=>{var t;const n=O(),a=S(),{activeManifest:r,collection:i,configOptions:o,vault:s}=a,l=o==null?void 0:o.canvasHeight,c=m=>{n({type:"updateActiveManifest",manifestId:m})};return e.createElement("div",{style:{margin:"0.75rem"}},e.createElement(Ne,{label:i.label,maxHeight:l,value:r,onValueChange:c},(t=i==null?void 0:i.items)==null?void 0:t.map(m=>e.createElement(Ge,{value:m.id,key:m.id,thumbnail:m!=null&&m.thumbnail?s.get(m==null?void 0:m.thumbnail):void 0,label:m.label}))))},ua=(t,n=2500)=>{const[a,r]=e.useState(),i=e.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>r("copied"),()=>r("failed"))},[t]);return e.useEffect(()=>{if(!a)return;const o=setTimeout(()=>r(void 0),n);return()=>clearTimeout(o)},[a]),[a,i]},pa=d("span",{display:"flex",alignContent:"center",alignItems:"center",padding:"0.125rem 0.25rem 0",marginTop:"-0.125rem",marginLeft:"0.5rem",backgroundColor:"$accent",color:"$secondary",borderRadius:"3px",fontSize:"0.6111rem",textTransform:"uppercase",lineHeight:"1em"}),ga=({status:t})=>t?e.createElement(pa,{"data-copy-status":t},t):null,ue=({textPrompt:t,textToCopy:n})=>{const[a,r]=ua(n);return e.createElement("button",{onClick:r},t," ",e.createElement(ga,{status:a}))},ha=()=>{const t="#ed1d33",n="#2873ab";return e.createElement("svg",{viewBox:"0 0 493.35999 441.33334",id:"iiif-logo",version:"1.1"},e.createElement("title",null,"IIIF Manifest Options"),e.createElement("g",{transform:"matrix(1.3333333,0,0,-1.3333333,0,441.33333)"},e.createElement("g",{transform:"scale(0.1)"},e.createElement("path",{style:{fill:n},d:"M 65.2422,2178.75 775.242,1915 773.992,15 65.2422,276.25 v 1902.5"}),e.createElement("path",{style:{fill:n},d:"m 804.145,2640.09 c 81.441,-240.91 -26.473,-436.2 -241.04,-436.2 -214.558,0 -454.511,195.29 -535.9527,436.2 -81.4335,240.89 26.4805,436.18 241.0387,436.18 214.567,0 454.512,-195.29 535.954,-436.18"}),e.createElement("path",{style:{fill:t},d:"M 1678.58,2178.75 968.578,1915 969.828,15 1678.58,276.25 v 1902.5"}),e.createElement("path",{style:{fill:t},d:"m 935.082,2640.09 c -81.437,-240.91 26.477,-436.2 241.038,-436.2 214.56,0 454.51,195.29 535.96,436.2 81.43,240.89 -26.48,436.18 -241.04,436.18 -214.57,0 -454.52,-195.29 -535.958,-436.18"}),e.createElement("path",{style:{fill:n},d:"m 1860.24,2178.75 710,-263.75 -1.25,-1900 -708.75,261.25 v 1902.5"}),e.createElement("path",{style:{fill:n},d:"m 2603.74,2640.09 c 81.45,-240.91 -26.47,-436.2 -241.03,-436.2 -214.58,0 -454.52,195.29 -535.96,436.2 -81.44,240.89 26.48,436.18 241.03,436.18 214.57,0 454.51,-195.29 535.96,-436.18"}),e.createElement("path",{style:{fill:t},d:"m 3700.24,3310 v -652.5 c 0,0 -230,90 -257.5,-142.5 -2.5,-247.5 0,-336.25 0,-336.25 l 257.5,83.75 V 1690 l -258.61,-92.5 V 262.5 L 2735.24,0 v 2360 c 0,0 -15,850 965,950"}))))},fa=d(ve.Root,{all:"unset",height:"2rem",width:"3.236rem",backgroundColor:"#6663",borderRadius:"9999px",position:"relative",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:focus":{boxShadow:"0 0 0 2px $secondaryAlt"},'&[data-state="checked"]':{backgroundColor:"$accent",boxShadow:"inset 2px 2px 5px #0003"}}),va=d(ve.Thumb,{display:"block",height:"calc(2rem - 12px)",width:"calc(2rem - 12px)",backgroundColor:"$secondary",borderRadius:"100%",boxShadow:"2px 2px 5px #0001",transition:"$all",transform:"translateX(6px)",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(calc(1.236rem + 6px))"}}),xa=d("label",{fontSize:"0.8333rem",fontWeight:"400",lineHeight:"1em",userSelect:"none",cursor:"pointer",paddingRight:"0.618rem"}),ba=d("form",{display:"flex",flexShrink:"0",flexGrow:"1",alignItems:"center",marginLeft:"1.618rem"}),Ea=()=>{var t;const{configOptions:n}=S(),a=O(),[r,i]=e.useState((t=n==null?void 0:n.informationPanel)==null?void 0:t.open);return e.useEffect(()=>{a({type:"updateInformationOpen",informationOpen:r})},[r]),e.createElement(ba,null,e.createElement(xa,{htmlFor:"information-toggle",css:r?{opacity:"1"}:{}},"More Information"),e.createElement(fa,{checked:r,onCheckedChange:()=>i(!r),id:"information-toggle","aria-label":"information panel toggle",name:"toggled?"},e.createElement(va,null)))},_e=t=>{const n=()=>window.matchMedia?window.matchMedia(t).matches:!1,[a,r]=e.useState(n);return e.useEffect(()=>{const i=()=>r(n);return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)}),a},ya=({manifestId:t,manifestLabel:n})=>{const a=S(),{collection:r,configOptions:i}=a,{showTitle:o,showIIIFBadge:s,informationPanel:l}=i,c=s||(l==null?void 0:l.renderToggle),m=_e(Q.sm);return e.createElement(ca,{className:"clover-viewer-header"},r!=null&&r.items?e.createElement(ma,null):e.createElement(sa,{className:o?"":"visually-hidden"},o&&e.createElement(T,{label:n,className:"label"})),c&&e.createElement(da,null,s&&e.createElement(V,null,e.createElement(oa,null,e.createElement(ha,null)),e.createElement(la,null,(r==null?void 0:r.items)&&e.createElement("button",{onClick:u=>{u.preventDefault(),window.open(r.id,"_blank")}},"View Collection"),e.createElement("button",{onClick:u=>{u.preventDefault(),window.open(t,"_blank")}},"View Manifest")," ",(r==null?void 0:r.items)&&e.createElement(ue,{textPrompt:"Copy Collection URL",textToCopy:r.id}),e.createElement(ue,{textPrompt:"Copy Manifest URL",textToCopy:t}))),(l==null?void 0:l.renderToggle)&&!m&&e.createElement(Ea,null)))},wa=(t=!1)=>{const[n,a]=e.useState(t);return e.useLayoutEffect(()=>{if(!n)return;const r=document.documentElement.style.overflow;return document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow=r}},[n]),e.useEffect(()=>{n!==t&&a(t)},[t]),[n,a]},Ca=({manifest:t,theme:n})=>{var a;const r=S(),i=O(),{activeCanvas:o,informationOpen:s,vault:l,configOptions:c}=r,[m,u]=e.useState(!1),[g,v]=e.useState(!1),[x,p]=e.useState([]),[f,h]=e.useState([]),[b,E]=wa(!1),y=_e(Q.sm),L=e.useCallback(w=>{i({type:"updateInformationOpen",informationOpen:w})},[i]);return e.useEffect(()=>{var w;(w=c==null?void 0:c.informationPanel)!=null&&w.open&&L(!y)},[y,(a=c==null?void 0:c.informationPanel)==null?void 0:a.open,L]),e.useEffect(()=>{if(!y){E(!1);return}E(s)},[s,y,E]),e.useEffect(()=>{const w=j(l,o),R=et(l,o,"text/vtt");w&&(v(["Sound","Video"].indexOf(w[0].type)>-1),p(w)),h(R),u(R.length!==0)},[o,l]),e.createElement(Ze.ErrorBoundary,{FallbackComponent:ot},e.createElement(st,{className:`${n} clover-viewer`,css:{background:c==null?void 0:c.background},"data-body-locked":b,"data-information-panel":m,"data-information-panel-open":s},e.createElement(K.Root,{open:s,onOpenChange:L},e.createElement(ya,{manifestLabel:t.label,manifestId:t.id}),e.createElement(ia,{activeCanvas:o,painting:x,resources:f,items:t.items,isAudioVideo:g}))))},pe={ignoreCache:!1,headers:{Accept:"application/json, text/javascript, text/plain"},timeout:5e3,withCredentials:!1};function ka(t){return{ok:t.status>=200&&t.status<300,status:t.status,statusText:t.statusText,headers:t.getAllResponseHeaders(),data:t.responseText,json:()=>JSON.parse(t.responseText)}}function ge(t,n=null){return{ok:!1,status:t.status,statusText:t.statusText,headers:t.getAllResponseHeaders(),data:n||t.statusText,json:()=>JSON.parse(n||t.statusText)}}function Sa(t,n=pe){const a=n.headers||pe.headers;return new Promise((r,i)=>{const o=new XMLHttpRequest;o.open("get",t),o.withCredentials=n.withCredentials,a&&Object.keys(a).forEach(s=>o.setRequestHeader(s,a[s])),o.onload=()=>{r(ka(o))},o.onerror=()=>{i(ge(o,"Failed to make request."))},o.ontimeout=()=>{i(ge(o,"Request took longer than expected."))},o.send()})}const $a=({canvasIdCallback:t=()=>{},customDisplays:n=[],customTheme:a,iiifContent:r,id:i,manifestId:o,options:s})=>{var l;let c=r;return i&&(c=i),o&&(c=o),e.createElement(Qe,{initialState:{...q,customDisplays:n,informationOpen:!!((l=s==null?void 0:s.informationPanel)!=null&&l.open),vault:new he.Vault({customFetcher:m=>Sa(m,{withCredentials:s==null?void 0:s.withCredentials,headers:s==null?void 0:s.requestHeaders}).then(u=>JSON.parse(u.data))})}},e.createElement(Ia,{iiifContent:c,canvasIdCallback:t,customTheme:a,options:s}))},Ia=({canvasIdCallback:t,customTheme:n,iiifContent:a,options:r})=>{const i=O(),o=S(),{activeCanvas:s,activeManifest:l,isLoaded:c,vault:m}=o,[u,g]=e.useState(),[v,x]=e.useState();let p={};return n&&(p=fe.createTheme("custom",n)),e.useEffect(()=>{t&&t(s)},[s,t]),e.useEffect(()=>{l&&m.loadManifest(l).then(f=>{x(f),i({type:"updateActiveCanvas",canvasId:f.items[0]&&f.items[0].id})}).catch(f=>{console.error(`Manifest failed to load: ${f}`)}).finally(()=>{i({type:"updateIsLoaded",isLoaded:!0})})},[l,i,m]),e.useEffect(()=>{i({type:"updateConfigOptions",configOptions:r}),m.load(a).then(f=>{g(f)}).catch(f=>{console.error(`The IIIF resource ${a} failed to load: ${f}`)})},[i,a,r,m]),e.useEffect(()=>{let f=[];(u==null?void 0:u.type)==="Collection"?(i({type:"updateCollection",collection:u}),f=u.items.filter(h=>h.type==="Manifest").map(h=>h.id),f.length>0&&i({type:"updateActiveManifest",manifestId:f[0]})):(u==null?void 0:u.type)==="Manifest"&&i({type:"updateActiveManifest",manifestId:u.id})},[i,u]),c?!v||!v.items?(console.log(`The IIIF manifest ${a} failed to load.`),e.createElement(e.Fragment,null)):v.items.length===0?(console.log(`The IIIF manifest ${a} does not contain canvases.`),e.createElement(e.Fragment,null)):e.createElement(Ca,{manifest:v,theme:p,key:v.id}):e.createElement(e.Fragment,null,"Loading")};module.exports=$a;
1
+ "use strict";const e=require("react"),he=require("./index.cjs190.js"),K=require("./index.cjs191.js"),Ze=require("./index.cjs192.js"),fe=require("./index.cjs193.js"),D=require("./index.cjs194.js"),Ue=require("./index.cjs195.js"),I=require("./index.cjs196.js"),W=require("./index.cjs197.js"),Xe=require("./index.cjs198.js"),H=require("./index.cjs199.js"),C=require("./index.cjs200.js"),re=require("./index.cjs201.js"),ve=require("./index.cjs202.js"),xe=require("./index.cjs203.js"),Ye=t=>{const n=t.toString().split(":"),a=Math.ceil(parseInt(n[0])),r=Math.ceil(parseInt(n[1])),i=Je(Math.ceil(parseInt(n[2])),2);let o=`${a!==0&&r<10?(r+"").padStart(2,"0"):r}:${i}`;return a!==0&&(o=`${a}:${o}`),o},be=t=>{const n=new Date(t*1e3).toISOString().substr(11,8);return Ye(n)},Ee=(t,n)=>{if(typeof t!="object"||t===null)return n;for(const a in n)typeof n[a]=="object"&&n[a]!==null&&!Array.isArray(n[a])?(t[a]||(t[a]={}),t[a]=Ee(t[a],n[a])):t[a]=n[a];return t},ye=(t,n)=>Object.hasOwn(t,n)?t[n].toString():void 0,Je=(t,n)=>String(t).padStart(n,"0"),_={background:"transparent",canvasBackgroundColor:"#6662",canvasHeight:"61.8vh",ignoreCaptionLabels:[],informationPanel:{open:!0,renderAbout:!0,renderSupplementing:!0,renderToggle:!0},openSeadragon:{},requestHeaders:{"Content-Type":"application/json"},showIIIFBadge:!0,showTitle:!0,withCredentials:!1};var ie;const q={activeCanvas:"",activeManifest:"",collection:{},configOptions:_,customDisplays:[],informationOpen:(ie=_==null?void 0:_.informationPanel)==null?void 0:ie.open,isLoaded:!1,vault:new he.Vault},we=e.createContext(q),Ce=e.createContext(q);function Ke(t,n){switch(n.type){case"updateActiveCanvas":return n.canvasId||(n.canvasId=""),{...t,activeCanvas:n.canvasId};case"updateActiveManifest":return{...t,activeManifest:n.manifestId};case"updateCollection":return{...t,collection:n.collection};case"updateConfigOptions":return{...t,configOptions:Ee(t.configOptions,n.configOptions)};case"updateInformationOpen":return{...t,informationOpen:n.informationOpen};case"updateIsLoaded":return{...t,isLoaded:n.isLoaded};default:throw new Error(`Unhandled action type: ${n.type}`)}}const Qe=({initialState:t=q,children:n})=>{const[a,r]=e.useReducer(Ke,t);return e.createElement(we.Provider,{value:a},e.createElement(Ce.Provider,{value:r},n))};function S(){const t=e.useContext(we);if(t===void 0)throw new Error("useViewerState must be used within a ViewerProvider");return t}function O(){const t=e.useContext(Ce);if(t===void 0)throw new Error("useViewerDispatch must be used within a ViewerProvider");return t}const ke=(t,n,a,r)=>{var i,o;const s={canvas:void 0,accompanyingCanvas:void 0,annotationPage:void 0,annotations:[]},l=c=>{if(c){if(!c.body||!c.motivation){console.error("Invalid annotation after Hyperion parsing: missing either 'body' or 'motivation'",c);return}let m=c.body;Array.isArray(m)&&(m=m[0]);const u=t.get(m.id);if(!u)return;switch(a){case"painting":return c.target===n.id&&c.motivation&&c.motivation[0]==="painting"&&r.includes(u.type)&&(c.body=u),!!c;case"supplementing":return;default:throw new Error("Invalid annotation motivation.")}}};if(s.canvas=t.get(n),s.canvas&&(s.annotationPage=t.get(s.canvas.items[0]),s.accompanyingCanvas=(i=s.canvas)!=null&&i.accompanyingCanvas?t.get((o=s.canvas)==null?void 0:o.accompanyingCanvas):void 0),s.annotationPage){const c=t.get(s.annotationPage.items).map(u=>({body:t.get(u.body[0].id),motivation:u.motivation,type:"Annotation"})),m=[];c.forEach(u=>{u.body.type==="Choice"?u.body.items.forEach(g=>m.push({...u,id:g.id,body:t.get(g.id)})):m.push(u)}),s.annotations=m.filter(l)}return s},P=(t,n="en")=>{if(!t)return"";if(!t[n]){const a=Object.getOwnPropertyNames(t);if(a.length>0)return t[a[0]]}return t[n]},j=(t,n)=>{const a=ke(t,{id:n,type:"Canvas"},"painting",["Image","Sound","Video"]);if(a.annotations.length!==0&&a.annotations&&a.annotations)return a.annotations.map(r=>r==null?void 0:r.body)},et=(t,n,a)=>{const r=t.get({id:n,type:"Canvas"});if(!(r!=null&&r.annotations)||!r.annotations[0])return[];const i=t.get(r.annotations[0]),o=t.get(i.items);return Array.isArray(o)?o.filter(s=>{var l;if(s.body&&(l=s.motivation)!=null&&l.includes("supplementing")){let c=s.body;Array.isArray(c)&&(c=c[0]);const m=t.get(c.id);if(m.format===a)return s.body=m,s}}).map(s=>s.body):[]},tt=(t,n,a,r)=>{const i=[];if(n.canvas&&n.canvas.thumbnail.length>0){const o=t.get(n.canvas.thumbnail[0]);i.push(o)}if(n.annotations[0]){if(n.annotations[0].thumbnail&&n.annotations[0].thumbnail.length>0){const s=t.get(n.annotations[0].thumbnail[0]);i.push(s)}if(!n.annotations[0].body)return;const o=n.annotations[0].body;o.type==="Image"&&i.push(o)}return i.length===0?void 0:{id:i[0].id,format:i[0].format,type:i[0].type,width:a,height:r}},Z=209,nt={colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:`hsl(${Z} 100% 38.2%)`,accentMuted:`hsl(${Z} 80% 61.8%)`,accentAlt:`hsl(${Z} 80% 30%)`,secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},Q={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:d,css:Aa,keyframes:ee,createTheme:Ma}=fe.createStitches({theme:nt,media:Q}),at=d("div",{display:"flex",flexDirection:"column",alignItems:"center"}),rt=d("p",{fontWeight:"bold",fontSize:"x-large"}),it=d("span",{fontSize:"medium"}),ot=({error:t})=>{const{message:n}=t;return e.createElement(at,{role:"alert"},e.createElement(rt,{"data-testid":"headline"},"Something went wrong"),n&&e.createElement(it,null,`Error message: ${n}`," "))},Se=d("div",{position:"relative",zIndex:"0"}),$e=d("div",{display:"flex",flexDirection:"row",overflow:"hidden","@sm":{flexDirection:"column"}}),Ie=d("div",{display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"1",width:"61.8%","@sm":{width:"100%"}}),Ae=d(K.Trigger,{display:"none",border:"none",padding:"0",transition:"$all",opacity:"1",background:"#6663",margin:"1rem 0",borderRadius:"6px","&[data-information-panel='false']":{opacity:"0",marginTop:"-59px"},"@sm":{display:"flex","> span":{display:"flex",flexGrow:"1",fontSize:"0.8333em",justifyContent:"center",padding:"0.5rem",fontFamily:"inherit"}}}),Me=d(K.Content,{width:"100%",display:"flex"}),lt=d("aside",{display:"flex",flexGrow:"1",flexShrink:"0",width:"38.2%",maxHeight:"100%","@sm":{width:"100%"}}),st=d("div",{display:"flex",flexDirection:"column",fontSmooth:"auto",webkitFontSmoothing:"antialiased","> div":{display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"flex-start","@sm":{[`& ${$e}`]:{flexGrow:"1"},[`& ${Ie}`]:{flexGrow:"0"}}},"@sm":{padding:"0"},"&[data-information-panel-open='true']":{"@sm":{position:"fixed",height:"100%",width:"100%",top:"0",left:"0",zIndex:"2500000000",[`& ${Se}`]:{display:"none"},[`& ${Ae}`]:{margin:"1rem"},[`& ${Me}`]:{height:"100%"}}}}),ct=d(D.Root,{display:"flex",flexDirection:"column",width:"100%",height:"100%",flexGrow:"1",flexShrink:"0",position:"relative",zIndex:"1",maskImage:"linear-gradient(180deg, rgba(0, 0, 0, 1) calc(100% - 2rem), transparent 100%)","@sm":{marginTop:"0.5rem",boxShadow:"none"}}),dt=d(D.List,{display:"flex",flexGrow:"0",margin:"0 1.618rem",borderBottom:"4px solid #6663","@sm":{margin:"0 1rem"}}),oe=d(D.Trigger,{display:"flex",position:"relative",padding:"0.5rem 1rem",background:"none",backgroundColor:"transparent",fontFamily:"inherit",border:"none",opacity:"0.7",fontSize:"1rem",marginRight:"1rem",lineHeight:"1rem",whiteSpace:"nowrap",cursor:"pointer",fontWeight:400,transition:"$all","&::after":{width:"0",height:"4px",content:"",position:"absolute",bottom:"-4px",left:"0",transition:"$all"},"&[data-state='active']":{opacity:"1",fontWeight:700,"&::after":{width:"100%",backgroundColor:"$accent"}}}),le=d(D.Content,{display:"flex",flexGrow:"1",flexShrink:"0",position:"absolute",top:"0",left:"0","&[data-state='active']":{width:"100%",height:"calc(100% - 2rem)",padding:"1.618rem 0"}}),mt=d("div",{position:"relative",height:"100%",width:"100%",overflowY:"scroll"}),ut=d("div",{padding:" 0 1.618rem 2rem",display:"flex",flexDirection:"column",overflow:"scroll",position:"absolute",fontWeight:"400",fontSize:"1rem",zIndex:"0",img:{maxWidth:"100px",maxHeight:"100px",objectFit:"contain",color:"transparent",margin:"0 0 1rem",borderRadius:"3px",backgroundColor:"$secondaryMuted"},video:{display:"none"},"a, a:visited":{color:"$accent"},p:{fontSize:"1rem",lineHeight:"1.45em",margin:"0"},dl:{margin:"0",dt:{fontWeight:"700",margin:"1rem 0 0.25rem"},dd:{margin:"0"}},".manifest-property-title":{fontWeight:"700",margin:"1rem 0 0.25rem"},"ul, ol":{padding:"0",margin:"0",li:{fontSize:"1rem",lineHeight:"1.45em",listStyle:"none",margin:"0.25rem 0 0.25rem"}}}),pt=d("div",{position:"relative",width:"100%",height:"100%",zIndex:"0"}),ze=(t,n="none")=>{if(!t)return null;if(typeof t=="string")return[t];if(!t[n]){const a=Object.getOwnPropertyNames(t);if(a.length>0)return t[a[0]]}return!t[n]||!Array.isArray(t[n])?null:t[n]},M=(t,n="none",a=", ")=>{const r=ze(t,n);return Array.isArray(r)?r.join(`${a}`):r};function gt(t){return{__html:ht(t)}}function A(t,n){const a=Object.keys(t).filter(i=>n.includes(i)?null:i),r=new Object;return a.forEach(i=>{r[i]=t[i]}),r}function ht(t){return Ue(t,{allowedAttributes:{a:["href"],img:["alt","src","height","width"]},allowedSchemes:["http","https","mailto"],allowedTags:["a","b","br","i","img","p","small","span","sub","sup"]})}const ft=d("span",{}),T=t=>{const{as:n,label:a}=t,r=A(t,["as","label"]);return e.createElement(ft,{as:n,...r},M(a,r.lang))},vt=(t,n="200,",a="full")=>{Array.isArray(t)&&(t=t[0]);const{id:r,service:i}=t;let o;if(!i)return r;if(Array.isArray(t.service)&&t.service.length>0&&(o=i[0]),o){if(o["@id"])return`${o["@id"]}/${a}/${n}/0/default.jpg`;if(o.id)return`${o.id}/${a}/${n}/0/default.jpg`}},se=d("img",{objectFit:"cover"}),xt=t=>{const n=e.useRef(null),{contentResource:a,altAsLabel:r,region:i="full"}=t;let o;r&&(o=M(r));const s=A(t,["contentResource","altAsLabel"]),{type:l,id:c,width:m=200,height:u=200,duration:g}=a;e.useEffect(()=>{if(!c&&!n.current||["Image"].includes(l)||!c.includes("m3u8"))return;const p=new I.Hls;return n.current&&(p.attachMedia(n.current),p.on(I.Hls.Events.MEDIA_ATTACHED,function(){p.loadSource(c)})),p.on(I.Hls.Events.ERROR,function(f,h){if(h.fatal)switch(h.type){case I.Hls.ErrorTypes.NETWORK_ERROR:console.error(`fatal ${f} network error encountered, try to recover`),p.startLoad();break;case I.Hls.ErrorTypes.MEDIA_ERROR:console.error(`fatal ${f} media error encountered, try to recover`),p.recoverMediaError();break;default:p.destroy();break}}),()=>{p&&(p.detachMedia(),p.destroy())}},[c,l]);const v=e.useCallback(()=>{if(!n.current)return;let p=0,f=30;if(g&&(f=g),!c.split("#t=")&&g&&(p=g*.1),c.split("#t=").pop()){const b=c.split("#t=").pop();b&&(p=parseInt(b.split(",")[0]))}const h=n.current;h.autoplay=!0,h.currentTime=p,setTimeout(()=>v(),f*1e3)},[g,c]);e.useEffect(()=>v(),[v]);const x=vt(a,`${m},${u}`,i);switch(l){case"Image":return e.createElement(se,{as:"img",alt:o,css:{width:m,height:u},key:c,src:x,...s});case"Video":return e.createElement(se,{as:"video",css:{width:m,height:u},disablePictureInPicture:!0,key:c,loop:!0,muted:!0,onPause:v,ref:n,src:c});default:return console.warn(`Resource type: ${l} is not valid or not yet supported in Primitives.`),e.createElement(e.Fragment,null)}},bt=d("a",{}),Et=t=>{const{children:n,homepage:a}=t,r=A(t,["children","homepage"]);return e.createElement(e.Fragment,null,a&&a.map(i=>{const o=M(i.label,r.lang);return e.createElement(bt,{"aria-label":n?o:void 0,href:i.id,key:i.id,...r},n||o)}))},yt={delimiter:", "},te=e.createContext(void 0),Te=()=>{const t=e.useContext(te);if(t===void 0)throw new Error("usePrimitivesContext must be used with a PrimitivesProvider");return t},ne=({children:t,initialState:n=yt})=>{const a=wt(n,"delimiter");return e.createElement(te.Provider,{value:{delimiter:a}},t)},wt=(t,n)=>Object.hasOwn(t,n)?t[n].toString():void 0,Ct=d("span",{}),ce=t=>{const{as:n,markup:a}=t,{delimiter:r}=Te();if(!a)return e.createElement(e.Fragment,null);const i=A(t,["as","markup"]),o=gt(M(a,i.lang,r));return e.createElement(Ct,{as:n,...i,dangerouslySetInnerHTML:o})},Le=t=>e.useContext(te)?e.createElement(ce,{...t}):e.createElement(ne,null,e.createElement(ce,{...t})),kt=({as:t="dd",lang:n,value:a})=>e.createElement(Le,{markup:a,as:t,lang:n}),St=d("span",{}),$t=({as:t="dd",customValueContent:n,lang:a,value:r})=>{var i;const{delimiter:o}=Te(),s=(i=ze(r,a))==null?void 0:i.map(l=>e.cloneElement(n,{value:l}));return e.createElement(St,{as:t,lang:a},s==null?void 0:s.map((l,c)=>[c>0&&`${o}`,e.createElement(e.Fragment,{key:c},l)]))},Re=t=>{var n;const{item:a,lang:r,customValueContent:i}=t,{label:o,value:s}=a,l=(n=M(o))==null?void 0:n.replace(" ","-").toLowerCase();return e.createElement("div",{role:"group","data-label":l},e.createElement(T,{as:"dt",label:o,lang:r}),i?e.createElement($t,{as:"dd",customValueContent:i,value:s,lang:r}):e.createElement(kt,{as:"dd",value:s,lang:r}))};function It(t,n){const a=n.filter(r=>{const{matchingLabel:i}=r,o=Object.keys(r.matchingLabel)[0],s=M(i,o);if(M(t,o)===s)return!0}).map(r=>r.Content);if(Array.isArray(a))return a[0]}const At=d("dl",{}),Mt=t=>{const{as:n,customValueContent:a,metadata:r}=t;if(!Array.isArray(r))return e.createElement(e.Fragment,null);const i=ye(t,"customValueDelimiter"),o=A(t,["as","customValueContent","customValueDelimiter","metadata"]);return e.createElement(ne,{...typeof i=="string"?{initialState:{delimiter:i}}:void 0},r.length>0&&e.createElement(At,{as:n,...o},r.map((s,l)=>{const c=a?It(s.label,a):void 0;return e.createElement(Re,{customValueContent:c,item:s,key:l,lang:o==null?void 0:o.lang})})))};d("li",{});d("ul",{});const zt=d("dl",{}),Tt=t=>{const{as:n,requiredStatement:a}=t;if(!a)return e.createElement(e.Fragment,null);const r=ye(t,"customValueDelimiter"),i=A(t,["as","customValueDelimiter","requiredStatement"]);return e.createElement(ne,{...typeof r=="string"?{initialState:{delimiter:r}}:void 0},e.createElement(zt,{as:n,...i},e.createElement(Re,{item:a,lang:i.lang})))},Lt=d("li",{}),Rt=d("ul",{}),Ft=t=>{const{as:n,seeAlso:a}=t,r=A(t,["as","seeAlso"]);return e.createElement(Rt,{as:n},a&&a.map(i=>{const o=M(i.label,r.lang);return e.createElement(Lt,{key:i.id},e.createElement("a",{href:i.id,...r},o||i.id))}))},Ht=t=>{const{as:n,summary:a}=t,r=A(t,["as","customValueDelimiter","summary"]);return e.createElement(Le,{as:n,markup:a,...r})},Fe=t=>{const{thumbnail:n,region:a}=t,r=A(t,["thumbnail"]);return e.createElement(e.Fragment,null,n&&n.map(i=>e.createElement(xt,{contentResource:i,key:i.id,region:a,...r})))},Ot=({homepage:t})=>(t==null?void 0:t.length)===0?e.createElement(e.Fragment,null):e.createElement(e.Fragment,null,e.createElement("span",{className:"manifest-property-title"},"Homepage"),e.createElement(Et,{homepage:t})),Pt=({id:t,htmlLabel:n,parent:a="manifest"})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"manifest-property-title"},n),e.createElement("a",{href:t,target:"_blank",id:`iiif-${a}-id`},t)),Vt=({metadata:t,parent:n="manifest"})=>t?e.createElement(e.Fragment,null,e.createElement(Mt,{metadata:t,id:`iiif-${n}-metadata`})):e.createElement(e.Fragment,null),Bt=({requiredStatement:t,parent:n="manifest"})=>t?e.createElement(e.Fragment,null,e.createElement(Tt,{requiredStatement:t,id:`iiif-${n}-required-statement`})):e.createElement(e.Fragment,null),jt=({rights:t})=>t?e.createElement(e.Fragment,null,e.createElement("span",{className:"manifest-property-title"},"Rights"),e.createElement("a",{href:t,target:"_blank"},t)):e.createElement(e.Fragment,null),Dt=({seeAlso:t})=>(t==null?void 0:t.length)===0?e.createElement(e.Fragment,null):e.createElement(e.Fragment,null,e.createElement("span",{className:"manifest-property-title"},"See Also"),e.createElement(Ft,{seeAlso:t})),Wt=({summary:t,parent:n="manifest"})=>t?e.createElement(e.Fragment,null,e.createElement(Ht,{summary:t,as:"p",id:`iiif-${n}-summary`})):e.createElement(e.Fragment,null),qt=({label:t,thumbnail:n})=>(n==null?void 0:n.length)===0?e.createElement(e.Fragment,null):e.createElement(e.Fragment,null,e.createElement(Fe,{altAsLabel:t||{none:["resource"]},thumbnail:n,style:{backgroundColor:"#6663",objectFit:"cover"}})),Nt=()=>{const t=S(),{activeManifest:n,vault:a}=t,[r,i]=e.useState(),[o,s]=e.useState([]),[l,c]=e.useState([]),[m,u]=e.useState([]);return e.useEffect(()=>{var g,v,x;const p=a.get(n);i(p),((g=p.homepage)==null?void 0:g.length)>0&&s(a.get(p.homepage)),((v=p.seeAlso)==null?void 0:v.length)>0&&c(a.get(p.seeAlso)),((x=p.thumbnail)==null?void 0:x.length)>0&&u(a.get(p.thumbnail))},[n,a]),r?e.createElement(pt,null,e.createElement(ut,null,e.createElement(qt,{thumbnail:m,label:r.label}),e.createElement(Wt,{summary:r.summary}),e.createElement(Vt,{metadata:r.metadata}),e.createElement(Bt,{requiredStatement:r.requiredStatement}),e.createElement(jt,{rights:r.rights}),e.createElement(Ot,{homepage:o}),e.createElement(Dt,{seeAlso:l}),e.createElement(Pt,{id:r.id,htmlLabel:"IIIF Manifest"}))):e.createElement(e.Fragment,null)},Gt=()=>{function t(i){return i.map(o=>{const s=o.identifier||xe();return{...o,identifier:s}})}function n(i){var o;const s=[],l=[],c=t(i);for(const m of c){for(;l.length>0&&l[l.length-1].end<=m.start;)l.pop();l.length>0?(l[l.length-1].children||(l[l.length-1].children=[]),(o=l[l.length-1].children)==null||o.push(m),l.push(m)):(s.push(m),l.push(m))}return s}function a(i,o=[]){return o.some(s=>i.start>=s.start&&i.end<=s.end)}function r(i=[]){return i.sort((o,s)=>o.start-s.start)}return{addIdentifiersToParsedCues:t,createNestedCues:n,isChild:a,orderCuesByTime:r}},de=ee({from:{transform:"rotate(360deg)"},to:{transform:"rotate(0deg)"}}),_t=d(W.Root,{display:"flex",flexDirection:"column",width:"100%"}),He=d(W.Item,{position:"relative",cursor:"pointer",display:"flex",width:"100%",justifyContent:"space-between",textAlign:"left",margin:"0",padding:"0.5rem 1.618rem",fontFamily:"inherit",lineHeight:"1.25em",fontSize:"1rem",color:"inherit",border:"none",background:"none","@sm":{padding:"0.5rem 1rem",fontSize:"0.8333rem"},"&::before":{content:"",width:"12px",height:"12px",borderRadius:"12px",position:"absolute",backgroundColor:"$primaryMuted",opacity:"0",left:"8px",marginTop:"3px",boxSizing:"content-box","@sm":{content:"unset"}},"&::after":{content:"",width:"4px",height:"6px",position:"absolute",backgroundColor:"$secondary",opacity:"0",clipPath:"polygon(100% 50%, 0 100%, 0 0)",left:"13px",marginTop:"6px",boxSizing:"content-box","@sm":{content:"unset"}},strong:{marginLeft:"1rem"},"&:hover":{color:"$accent","&::before":{backgroundColor:"$accent",opacity:"1"},"&::after":{content:"",width:"4px",height:"6px",position:"absolute",backgroundColor:"$secondary",clipPath:"polygon(100% 50%, 0 100%, 0 0)",opacity:"1"}},"&[aria-checked='true']":{backgroundColor:"#6663","&::before":{content:"",width:"6px",height:"6px",position:"absolute",backgroundColor:"transparent",border:"3px solid $accentMuted",borderRadius:"12px",left:"8px",marginTop:"4px",opacity:"1",animation:"1s linear infinite",animationName:de,boxSizing:"content-box","@sm":{content:"unset"}},"&::after":{content:"",width:"6px",height:"6px",position:"absolute",backgroundColor:"transparent",border:"3px solid $accent",clipPath:"polygon(100% 0, 100% 100%, 0 0)",borderRadius:"12px",left:"8px",marginTop:"4px",opacity:"1",animation:"1.5s linear infinite",animationName:de,boxSizing:"content-box","@sm":{content:"unset"}}}}),Zt=({label:t,start:n,end:a})=>{const[r,i]=e.useState(!1),o=document.getElementById("clover-iiif-video");e.useEffect(()=>(o==null||o.addEventListener("timeupdate",()=>{const{currentTime:l}=o;i(n<=l&&l<a)}),()=>document.removeEventListener("timeupdate",()=>{})),[a,n,o]);const s=()=>{o&&(o.pause(),o.currentTime=n,o.play())};return e.createElement(He,{"aria-checked":r,"data-testid":"information-panel-cue",onClick:s,value:t},t,e.createElement("strong",null,be(n)))},Ut=d("ul",{listStyle:"none",paddingLeft:"1rem",position:"relative","&&:first-child":{paddingLeft:"0"},"& li ul":{[`& ${He}`]:{backgroundColor:"unset","&::before":{content:"none"},"&::after":{content:"none"}}},"&:first-child":{margin:"0 0 1.618rem"}}),Oe=({items:t})=>e.createElement(Ut,null,t.map(n=>{const{text:a,start:r,end:i,children:o,identifier:s}=n;return e.createElement("li",{key:s},e.createElement(Zt,{label:a,start:r,end:i}),o&&e.createElement(Oe,{items:o}))})),Xt=({resource:t})=>{const[n,a]=e.useState([]),{id:r,label:i}=t,{createNestedCues:o,orderCuesByTime:s}=Gt();return e.useEffect(()=>{r&&fetch(r,{headers:{"Content-Type":"text/plain",Accept:"application/json"}}).then(l=>l.text()).then(l=>{const c=Xe.nodeWebvtt.parse(l).cues,m=s(c),u=o(m);a(u)}).catch(l=>console.error(r,l.toString()))},[r]),e.createElement(_t,{"aria-label":`navigate ${P(i,"en")}`},e.createElement(Oe,{items:n}))},Yt=({activeCanvas:t,resources:n})=>{var a;const r=S(),{configOptions:i}=r,{informationPanel:o}=i,[s,l]=e.useState(),c=(o==null?void 0:o.renderAbout)||((a=i==null?void 0:i.informationPanel)==null?void 0:a.renderAbout),m=o==null?void 0:o.renderSupplementing;e.useEffect(()=>{c?l("manifest-about"):n&&(n==null?void 0:n.length)>0&&!c&&l(n[0].id)},[t,c,n]);const u=g=>{l(g)};return n?e.createElement(ct,{"data-testid":"information-panel",defaultValue:s,onValueChange:u,orientation:"horizontal",value:s,className:"clover-viewer-information-panel"},e.createElement(dt,{"aria-label":"select chapter","data-testid":"information-panel-list"},c&&e.createElement(oe,{value:"manifest-about"},"About"),m&&n&&n.map(({id:g,label:v})=>e.createElement(oe,{key:g,value:g},e.createElement(T,{label:v})))),e.createElement(mt,null,c&&e.createElement(le,{value:"manifest-about"},e.createElement(Nt,null)),m&&n&&n.map(g=>e.createElement(le,{key:g.id,value:g.id},e.createElement(Xt,{resource:g}))))):e.createElement(e.Fragment,null)},Pe=d("div",{position:"absolute",right:"1rem",top:"1rem",display:"flex",justifyContent:"flex-end",zIndex:"1"}),Jt=d("input",{flexGrow:"1",border:"none",backgroundColor:"$secondaryMuted",color:"$primary",marginRight:"1rem",height:"2rem",padding:"0 1rem",borderRadius:"2rem",fontFamily:"inherit",fontSize:"1rem",lineHeight:"1rem",boxShadow:"inset 1px 1px 2px #0003","&::placeholder":{color:"$primaryMuted"}}),U=d("button",{display:"flex",background:"none",border:"none",width:"2rem !important",height:"2rem !important",padding:"0",margin:"0",fontWeight:"700",borderRadius:"2rem",backgroundColor:"$accent",color:"$secondary",cursor:"pointer",boxSizing:"content-box !important",transition:"$all",svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",opacity:"1",filter:"drop-shadow(5px 5px 5px #000D)",boxSizing:"inherit",transition:"$all"},"&:disabled":{backgroundColor:"transparent",boxShadow:"none",svg:{opacity:"0.25"}}}),Kt=d("div",{display:"flex",marginRight:"0.618rem",backgroundColor:"$accentAlt",borderRadius:"2rem",boxShadow:"5px 5px 5px #0003",color:"$secondary",alignItems:"center","> span":{display:"flex",margin:"0 0.5rem",fontSize:"0.7222rem"}}),Qt=d("div",{display:"flex",position:"relative",zIndex:"1",width:"100%",padding:"0",transition:"$all",variants:{isToggle:{true:{paddingTop:"2.618rem",[`& ${Pe}`]:{width:"calc(100% - 2rem)","@sm":{width:"calc(100% - 2rem)"}}}}}}),en=(t,n)=>{e.useEffect(()=>{function a(r){r.key===t&&n()}return window.addEventListener("keyup",a),()=>window.removeEventListener("keyup",a)},[])},tn=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("title",null,"Arrow Back"),e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})),nn=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("title",null,"Arrow Forward"),e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M268 112l144 144-144 144M392 256H100"})),an=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("title",null,"Close"),e.createElement("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})),rn=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("title",null,"Search"),e.createElement("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"})),on=({handleCanvasToggle:t,handleFilter:n,activeIndex:a,canvasLength:r})=>{const[i,o]=e.useState(!1),[s,l]=e.useState(!1),[c,m]=e.useState(!1);e.useEffect(()=>{m(a===0),a===r-1?l(!0):l(!1)},[a,r]),en("Escape",()=>{o(!1),n("")});const u=()=>{o(v=>!v),n("")},g=v=>n(v.target.value);return e.createElement(Qt,{isToggle:i},e.createElement(Pe,null,i&&e.createElement(Jt,{autoFocus:!0,onChange:g,placeholder:"Search"}),!i&&e.createElement(Kt,null,e.createElement(U,{onClick:()=>t(-1),disabled:c,type:"button"},e.createElement(tn,null)),e.createElement("span",null,a+1," of ",r),e.createElement(U,{onClick:()=>t(1),disabled:s,type:"button"},e.createElement(nn,null))),e.createElement(U,{onClick:u,type:"button"},i?e.createElement(an,null):e.createElement(rn,null))))},ln=d(W.Root,{display:"flex",flexDirection:"row",flexGrow:"1",padding:"1.618rem",overflowX:"scroll",position:"relative",zIndex:"0"}),sn=()=>e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288M400 256H112"}),cn=()=>e.createElement(e.Fragment,null,e.createElement("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24zm-106.18-80zm-.27-159.86zM320 336a16 16 0 01-14.29-23.19c9.49-18.87 14.3-38 14.3-56.81 0-19.38-4.66-37.94-14.25-56.73a16 16 0 0128.5-14.54C346.19 208.12 352 231.44 352 256c0 23.86-6 47.81-17.7 71.19A16 16 0 01320 336z"}),e.createElement("path",{d:"M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256c0-44.17-10.93-71.56-29.82-103.94a16 16 0 0127.64-16.12C402.92 172.11 416 204.81 416 256c0 50.43-13.06 83.29-34.13 120a16 16 0 01-13.87 8z"}),e.createElement("path",{d:"M416 432a16 16 0 01-13.39-24.74C429.85 365.47 448 323.76 448 256c0-66.5-18.18-108.62-45.49-151.39a16 16 0 1127-17.22C459.81 134.89 480 181.74 480 256c0 64.75-14.66 113.63-50.6 168.74A16 16 0 01416 432z"})),dn=()=>e.createElement("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}),mn=()=>e.createElement("path",{d:"M416 64H96a64.07 64.07 0 00-64 64v256a64.07 64.07 0 0064 64h320a64.07 64.07 0 0064-64V128a64.07 64.07 0 00-64-64zm-80 64a48 48 0 11-48 48 48.05 48.05 0 0148-48zM96 416a32 32 0 01-32-32v-67.63l94.84-84.3a48.06 48.06 0 0165.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 01-32 32H217.63l121.42-121.42a47.72 47.72 0 0161.64-.16L448 333.84z"}),un=()=>e.createElement("path",{d:"M464 384.39a32 32 0 01-13-2.77 15.77 15.77 0 01-2.71-1.54l-82.71-58.22A32 32 0 01352 295.7v-79.4a32 32 0 0113.58-26.16l82.71-58.22a15.77 15.77 0 012.71-1.54 32 32 0 0145 29.24v192.76a32 32 0 01-32 32zM268 400H84a68.07 68.07 0 01-68-68V180a68.07 68.07 0 0168-68h184.48A67.6 67.6 0 01336 179.52V332a68.07 68.07 0 01-68 68z"}),Ve=d("svg",{display:"inline-flex",variants:{isLarge:{true:{height:"4rem",width:"4rem"}},isMedium:{true:{height:"2rem",width:"2rem"}},isSmall:{true:{height:"1rem",width:"1rem"}}}}),pn=({children:t})=>e.createElement("title",null,t),k=t=>e.createElement(Ve,{...t,"data-testid":"icon-svg",role:"img",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},t.children);k.Title=pn;k.Add=sn;k.Audio=cn;k.Close=dn;k.Image=mn;k.Video=un;const gn=ee({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),hn=ee({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),Be=d(H.Arrow,{fill:"$secondaryAlt"}),fn=d(H.Close,{position:"absolute",right:"0",top:"0",padding:"0.5rem",margin:"0",cursor:"pointer",border:"none",background:"none",fill:"inherit","&:hover":{opacity:"0.75"}}),vn=d(H.Content,{border:"none",backgroundColor:"white",fill:"inhrerit",padding:"1rem 2rem 1rem 1rem",width:"auto",minWidth:"200px",maxWidth:"350px",borderRadius:"3px",boxShadow:"5px 5px 13px #0002",animationDuration:"0.3s",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",'&[data-side="top"]':{animationName:hn},'&[data-side="bottom"]':{animationName:gn},'&[data-align="end"]':{[`& ${Be}`]:{margin:"0 0.7rem"}}}),xn=d(H.Trigger,{display:"inline-flex",padding:"0.5rem 0",margin:"0 0.5rem 0 0",cursor:"pointer",border:"none",background:"none","> button, > span":{margin:"0"}}),bn=d(H.Root,{boxSizing:"content-box"}),En=t=>e.createElement(xn,{...t},t.children),yn=t=>e.createElement(vn,{...t},e.createElement(Be,null),e.createElement(fn,null,e.createElement(k,{isSmall:!0},e.createElement(k.Close,null))),t.children),V=({children:t})=>e.createElement(bn,null,t);V.Trigger=En;V.Content=yn;const Y=d("div",{boxSizing:"border-box",display:"inline-flex",alignItems:"center",borderRadius:"5px",padding:"$1",marginBottom:"$2",marginRight:"$2",backgroundColor:"$lightGrey",color:"$richBlack50",textTransform:"uppercase",fontSize:"$2",objectFit:"contain",lineHeight:"1em !important","&:last-child":{marginRight:"0"},[`${Ve}`]:{position:"absolute",left:"$1",height:"$3",width:"$3"},variants:{isIcon:{true:{position:"relative",paddingLeft:"$5"}}}}),J=d("span",{display:"flex"}),wn=d("span",{display:"flex",width:"1.2111rem",height:"0.7222rem"}),Cn=d("span",{display:"inline-flex",marginLeft:"5px",marginBottom:"-1px"}),kn=d(W.Item,{display:"flex",flexShrink:"0",margin:"0 1.618rem 0 0",padding:"0",cursor:"pointer",background:"none",border:"none",fontFamily:"inherit",lineHeight:"1.25em",fontSize:"1rem",textAlign:"left","&:last-child":{marginRight:"1rem"},figure:{margin:"0",width:"161.8px","> div":{position:"relative",display:"flex",backgroundColor:"$secondaryAlt",width:"inherit",height:"100px",overflow:"hidden",borderRadius:"3px",transition:"$all",img:{width:"100%",height:"100%",objectFit:"cover",filter:"blur(0)",transform:"scale3d(1, 1, 1)",transition:"$all",color:"transparent"},[`& ${J}`]:{position:"absolute",right:"0",bottom:"0",[`& ${Y}`]:{margin:"0",paddingLeft:"0",fontSize:"0.7222rem",backgroundColor:"#000d",color:"$secondary",fill:"$secondary",borderBottomLeftRadius:"0",borderTopRightRadius:"0"}}},figcaption:{marginTop:"0.5rem",fontWeight:"400",fontSize:"0.8333rem",display:"-webkit-box",overflow:"hidden",MozBoxOrient:"vertical",WebkitBoxOrient:"vertical",WebkitLineClamp:"5","@sm":{fontSize:"0.8333rem"}}},"&[aria-checked='true']":{figure:{"> div":{backgroundColor:"$primaryAlt","&::before":{position:"absolute",zIndex:"1",color:"$secondaryMuted",content:"Active Item",textTransform:"uppercase",fontWeight:"700",fontSize:"0.6111rem",letterSpacing:"0.03rem",display:"flex",width:"100%",height:"100%",flexDirection:"column",justifyContent:"center",textAlign:"center",textShadow:"5px 5px 5px #0003"},img:{opacity:"0.3",transform:"scale3d(1.1, 1.1, 1.1)",filter:"blur(2px)"},[`& ${J}`]:{[`& ${Y}`]:{backgroundColor:"$accent"}}}},figcaption:{fontWeight:"700"}}}),Sn=({type:t})=>{switch(t){case"Sound":return e.createElement(k.Audio,null);case"Image":return e.createElement(k.Image,null);case"Video":return e.createElement(k.Video,null);default:return e.createElement(k.Image,null)}},$n=({canvas:t,canvasIndex:n,isActive:a,thumbnail:r,type:i,handleChange:o})=>e.createElement(kn,{"aria-checked":a,"data-testid":"media-thumbnail","data-canvas":n,onClick:()=>o(t.id),value:t.id},e.createElement("figure",null,e.createElement("div",null,(r==null?void 0:r.id)&&e.createElement("img",{src:r.id,alt:t!=null&&t.label?P(t.label):""}),e.createElement(J,null,e.createElement(Y,{isIcon:!0,"data-testid":"thumbnail-tag"},e.createElement(wn,null),e.createElement(k,{"aria-label":i},e.createElement(Sn,{type:i})),["Video","Sound"].includes(i)&&e.createElement(Cn,null,be(t.duration))))),(t==null?void 0:t.label)&&e.createElement("figcaption",{"data-testid":"fig-caption"},e.createElement(T,{label:t.label})))),In=t=>t.body?t.body.type:"Image",An=({items:t})=>{const n=O(),a=S(),{activeCanvas:r,vault:i}=a,[o,s]=e.useState(""),[l,c]=e.useState([]),[m,u]=e.useState(0),g=e.useRef(null),v="painting",x=h=>{r!==h&&n({type:"updateActiveCanvas",canvasId:h})};e.useEffect(()=>{if(!l.length){const h=["Image","Sound","Video"],b=t.map(E=>ke(i,E,v,h)).filter(E=>E.annotations.length>0);c(b)}},[t,l.length,i]),e.useEffect(()=>{l.forEach((h,b)=>{h!=null&&h.canvas&&h.canvas.id===r&&u(b)})},[r,l]),e.useEffect(()=>{const h=document.querySelector(`[data-canvas="${m}"]`);if(h instanceof HTMLElement&&g.current){const b=h.offsetLeft-g.current.offsetWidth/2+h.offsetWidth/2;g.current.scrollTo({left:b,behavior:"smooth"})}},[m]);const p=h=>s(h),f=h=>{const b=l[m+h];b!=null&&b.canvas&&x(b.canvas.id)};return e.createElement(e.Fragment,null,e.createElement(on,{handleFilter:p,handleCanvasToggle:f,activeIndex:m,canvasLength:l.length}),e.createElement(ln,{"aria-label":"select item","data-testid":"media",ref:g},l.filter(h=>{var b;if((b=h.canvas)!=null&&b.label){const E=P(h.canvas.label);if(Array.isArray(E))return E[0].toLowerCase().includes(o.toLowerCase())}}).map((h,b)=>{var E,y;return e.createElement($n,{canvas:h.canvas,canvasIndex:b,handleChange:x,isActive:r===((E=h==null?void 0:h.canvas)==null?void 0:E.id),key:(y=h==null?void 0:h.canvas)==null?void 0:y.id,thumbnail:tt(i,h,200,200),type:In(h.annotations[0])})})))},je=d("button",{background:"none",border:"none",cursor:"zoom-in",width:"100%",height:"100%",margin:"0",padding:"0",transition:"$all","& img":{width:"100%",height:"100%",objectFit:"contain",color:"transparent",transition:"$all"},variants:{isMedia:{true:{cursor:"pointer"}}}}),De=d("button",{display:"flex",height:"2rem",width:"2rem",borderRadius:"2rem",padding:"0",margin:"0",fontFamily:"inherit",background:"none",border:"none",color:"white",cursor:"pointer",marginLeft:"0.618rem",backgroundColor:"$primary",filter:"drop-shadow(2px 2px 5px #0003)",transition:"$all",boxSizing:"content-box !important","&:first-child":{marginLeft:"0"},"@xs":{marginBottom:"0.618rem",marginLeft:"0","&:last-child":{marginBottom:"0"}},svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",filter:"drop-shadow(2px 2px 5px #0003)",transition:"$all",boxSizing:"inherit"},"&:hover, &:focus":{backgroundColor:"$accent"},"&#rotateRight":{"&:hover, &:focus":{svg:{rotate:"45deg"}}},"&#rotateLeft":{transform:"scaleX(-1)","&:hover, &:focus":{svg:{rotate:"45deg"}}},"&#reset":{"&:hover, &:focus":{svg:{rotate:"-15deg"}}}}),We=d(De,{position:"absolute",width:"2rem",top:"1rem",right:"1rem",zIndex:100,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",transition:"$all",borderRadius:"50%",backgroundColor:"$accent",cursor:"pointer","&:hover, &:focus":{backgroundColor:"$accent !important"},variants:{isInteractive:{true:{"&:hover":{opacity:"1"}},false:{}},isMedia:{true:{cursor:"pointer !important"}}},compoundVariants:[{isInteractive:!1,isMedia:!0,css:{top:"50%",right:"50%",width:"4rem",height:"4rem",transform:"translate(50%,-50%)"}}]}),Mn=d("div",{position:"relative",zIndex:"0",display:"flex",flexDirection:"column",gap:"1rem","&:hover":{[`${We}`]:{backgroundColor:"$accent"},[`${je}`]:{backgroundColor:"#6662",img:{filter:"brightness(0.85)"}}}}),zn=d("div",{}),Tn=d("svg",{height:"19px",color:"$accent",fill:"$accent",stroke:"$accent",display:"flex",margin:"0.25rem 0.85rem"}),Ln=d(C.Trigger,{fontSize:"1.25rem",fontWeight:"400",fontFamily:"inherit",alignSelf:"flex-start",flexGrow:"1",cursor:"pointer",transition:"$all",border:"1px solid #6663",boxShadow:"2px 2px 5px #0001",borderRadius:"3px",display:"flex",alignItems:"center",paddingLeft:"0.5rem",width:"100%","@sm":{fontSize:"1rem"}}),Rn=d(C.Content,{borderRadius:"3px",boxShadow:"3px 3px 8px #0003",backgroundColor:"$secondary",marginTop:"2.25rem",marginLeft:"6px",paddingBottom:"0.25rem",maxHeight:"calc(61.8vh - 2.5rem) !important",borderTopLeftRadius:"0",border:"1px solid $secondaryMuted",maxWidth:"90vw"}),Fn=d(C.Item,{display:"flex",alignItems:"center",fontFamily:"inherit",padding:"0.25rem 0.5rem",color:"$primary",fontWeight:"400",fontSize:"0.8333rem",cursor:"pointer",backgroundColor:"$secondary",width:"calc(100% - 1rem)","> span":{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},'&[data-state="checked"]':{fontWeight:"700",color:"$primary !important"},"&:hover":{color:"$accent"},img:{width:"31px",height:"31px",marginRight:"0.5rem",borderRadius:"3px"}}),Hn=d(C.Label,{color:"$primaryMuted",fontFamily:"inherit",fontSize:"0.85rem",padding:"0.5rem 1rem 0.5rem 0.5rem",display:"flex",alignItems:"center",marginBottom:"0.25rem",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",borderBottomRightRadius:"0",backgroundColor:"$secondaryMuted"}),qe=d(C.Root,{position:"relative",zIndex:"5",width:"100%"}),X=({direction:t,title:n})=>{const a=()=>e.createElement("path",{d:"M414 321.94L274.22 158.82a24 24 0 00-36.44 0L98 321.94c-13.34 15.57-2.28 39.62 18.22 39.62h279.6c20.5 0 31.56-24.05 18.18-39.62z"}),r=()=>e.createElement("path",{d:"M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z"});return e.createElement(Tn,{xmlns:"http://www.w3.org/2000/svg",focusable:"false",viewBox:"0 0 512 512",role:"img"},e.createElement("title",null,n),t==="up"&&e.createElement(a,null),t==="down"&&e.createElement(r,null))},Ne=({children:t,label:n,maxHeight:a,onValueChange:r,value:i})=>e.createElement(qe,{onValueChange:r,value:i},e.createElement(Ln,{"data-testid":"select-button"},e.createElement(C.SelectValue,{"data-testid":"select-button-value"}),e.createElement(C.SelectIcon,null,e.createElement(X,{direction:"down",title:"select"}))),e.createElement(C.SelectPortal,null,e.createElement(Rn,{css:{maxHeight:`${a} !important`},"data-testid":"select-content"},e.createElement(C.SelectScrollUpButton,null,e.createElement(X,{direction:"up",title:"scroll up for more"})),e.createElement(C.SelectViewport,null,e.createElement(C.SelectGroup,null,n&&e.createElement(Hn,null,e.createElement(T,{"data-testid":"select-label",label:n})),t)),e.createElement(C.SelectScrollDownButton,null,e.createElement(X,{direction:"down",title:"scroll down for more"}))))),Ge=t=>e.createElement(Fn,{...t},t.thumbnail&&e.createElement(Fe,{thumbnail:t.thumbnail}),e.createElement(C.SelectItemText,null,e.createElement(T,{label:t.label})),e.createElement(C.SelectItemIndicator,null)),On=d("div",{position:"absolute !important",zIndex:"1",top:"1rem",left:"1rem",width:"161.8px",height:"100px",backgroundColor:"#000D",boxShadow:"5px 5px 5px #0002",borderRadius:"3px",".displayregion":{border:" 3px solid $accent !important",boxShadow:"0 0 3px #0006"},"@sm":{width:"123px",height:"76px"},"@xs":{width:"100px",height:"61.8px"}}),Pn=d("div",{position:"relative",width:"100%",height:"100%",zIndex:"0"}),Vn=d("div",{width:"100%",height:"61.8vh",maxHeight:"100vh",background:"black",backgroundSize:"contain",color:"white",position:"relative",zIndex:"1",overflow:"hidden"}),z=({id:t,label:n,children:a})=>e.createElement(De,{id:t,"data-testid":"openseadragon-button"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":`${t}-svg-title`,"data-testid":"openseadragon-button-svg",focusable:"false",viewBox:"0 0 512 512",role:"img"},e.createElement("title",{id:`${t}-svg-title`},n),a)),Bn=d("div",{position:"absolute",zIndex:"1",top:"1rem",display:"flex","@xs":{flexDirection:"column",zIndex:"2"},variants:{hasPlaceholder:{true:{right:"3.618rem","@xs":{top:"3.618rem",right:"1rem"}},false:{right:"1rem","@xs":{top:"1rem",right:"1rem"}}}}}),jn=()=>e.createElement("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M256 112v288M400 256H112"}),Dn=()=>e.createElement("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 256H112"}),Wn=()=>e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320M421.8 421.77L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320M90.23 421.8L208 304"}),qn=()=>e.createElement("path",{d:"M448 440a16 16 0 01-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335 352.88 301 345.59 256 344.23V424a16 16 0 01-27 11.57l-176-168a16 16 0 010-23.14l176-168A16 16 0 01256 88v80.36c74.14 3.41 129.38 30.91 164.35 81.87C449.32 292.44 464 350.9 464 424a16 16 0 01-16 16z"}),me=()=>e.createElement(e.Fragment,null,e.createElement("path",{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}),e.createElement("path",{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"})),Nn=({hasPlaceholder:t,options:n})=>e.createElement(Bn,{"data-testid":"openseadragon-controls",hasPlaceholder:t,id:"openseadragon-controls"},n.showZoomControl&&e.createElement(e.Fragment,null,e.createElement(z,{id:"zoomIn",label:"zoom in"},e.createElement(jn,null)),e.createElement(z,{id:"zoomOut",label:"zoom out"},e.createElement(Dn,null))),n.showFullPageControl&&e.createElement(z,{id:"fullPage",label:"full page"},e.createElement(Wn,null)),n.showRotationControl&&e.createElement(e.Fragment,null,e.createElement(z,{id:"rotateRight",label:"rotate right"},e.createElement(me,null)),e.createElement(z,{id:"rotateLeft",label:"rotate left"},e.createElement(me,null))),n.showHomeControl&&e.createElement(z,{id:"reset",label:"reset"},e.createElement(qn,null))),Gn=t=>fetch(`${t.replace(/\/$/,"")}/info.json`).then(n=>n.json()).then(n=>n).catch(n=>{console.error(`The IIIF tilesource ${t.replace(/\/$/,"")}/info.json failed to load: ${n}`)}),_n=t=>{let n,a;if(Array.isArray(t)&&(n=t[0],n)){let r;"@id"in n?r=n["@id"]:r=n.id,a=r}return a},Zn=({uri:t,hasPlaceholder:n,imageType:a})=>{const[r,i]=e.useState(),[o,s]=e.useState(),l=S(),{configOptions:c}=l,m={id:`openseadragon-viewport-${o}`,loadTilesWithAjax:!0,fullPageButton:"fullPage",homeButton:"reset",rotateLeftButton:"rotateLeft",rotateRightButton:"rotateRight",zoomInButton:"zoomIn",zoomOutButton:"zoomOut",showNavigator:!0,showFullPageControl:!0,showHomeControl:!0,showRotationControl:!0,showZoomControl:!0,navigatorBorderColor:"transparent",navigatorId:`openseadragon-navigator-${o}`,gestureSettingsMouse:{clickToZoom:!0,dblClickToZoom:!0,pinchToZoom:!0,scrollToZoom:!0},...c.openSeadragon,ajaxWithCredentials:c.withCredentials};return e.useEffect(()=>{t!==r&&(i(t),s(xe()))},[r,t]),e.useEffect(()=>{if(r)switch(a){case"simpleImage":re(m).addSimpleImage({url:r});break;case"tiledImage":Gn(r).then(u=>re(m).addTiledImage({tileSource:u}));break;default:console.warn(`Unable to render ${r} in OpenSeadragon as type: "${a}"`);break}},[r]),o?e.createElement(Vn,{css:{backgroundColor:c.canvasBackgroundColor,height:c.canvasHeight},className:"clover-viewer-osd-wrapper","data-testid":"clover-viewer-osd-wrapper"},e.createElement(Nn,{hasPlaceholder:n,options:m}),e.createElement(On,{id:`openseadragon-navigator-${o}`}),e.createElement(Pn,{id:`openseadragon-viewport-${o}`})):null},Un=({painting:t,hasPlaceholder:n})=>{const[a,r]=e.useState(),[i,o]=e.useState();return e.useEffect(()=>{Array.isArray(t==null?void 0:t.service)&&(t==null?void 0:t.service.length)>0?(r("tiledImage"),o(_n(t==null?void 0:t.service))):(r("simpleImage"),o(t==null?void 0:t.id))},[t]),e.createElement(Zn,{uri:i,key:i,hasPlaceholder:n,imageType:a})},Xn=({isMedia:t,label:n,placeholderCanvas:a,setIsInteractive:r})=>{const{vault:i}=S(),o=j(i,a),s=o?o[0]:void 0,l=n?P(n):["placeholder image"];return e.createElement(je,{onClick:()=>r(!0),isMedia:t,className:"clover-viewer-placeholder"},e.createElement("img",{src:(s==null?void 0:s.id)||"",alt:l.join(),height:s==null?void 0:s.height,width:s==null?void 0:s.width}))},Yn=d("canvas",{position:"absolute",width:"100%",height:"100%",zIndex:"0"}),Jn=e.forwardRef((t,n)=>{const a=e.useRef(null),r=e.useCallback(()=>{var o,s;if((o=n.current)!=null&&o.currentTime&&((s=n.current)==null?void 0:s.currentTime)>0)return;const l=n.current;if(!l)return;const c=new AudioContext,m=c.createMediaElementSource(l),u=c.createAnalyser(),g=a.current;if(!g)return;g.width=l.offsetWidth,g.height=l.offsetHeight;const v=g.getContext("2d");m.connect(u),u.connect(c.destination),u.fftSize=256;const x=u.frequencyBinCount,p=new Uint8Array(x);setInterval(function(){i(u,v,x,p,g.width,g.height)},20)},[n]);e.useEffect(()=>{!n||!n.current||(n.current.onplay=r)},[r,n]);function i(o,s,l,c,m,u){const g=m/l*2.6;let v,x=0;o.getByteFrequencyData(c),s.fillStyle="#000000",s.fillRect(0,0,m,u);for(let p=0;p<l;p++)v=c[p]*2,s.fillStyle="rgba(78, 42, 132, 1)",s.fillRect(x,u-v,g,v),x+=g+6}return e.createElement(Yn,{ref:a,role:"presentation"})}),Kn=d("div",{position:"relative",backgroundColor:"$primaryAlt",display:"flex",flexGrow:"0",flexShrink:"1",maxHeight:"500px",zIndex:"1",video:{backgroundColor:"transparent",objectFit:"contain",width:"100%",height:"100%",position:"relative",zIndex:"1"}}),Qn=({resource:t,ignoreCaptionLabels:n})=>{const a=P(t.label,"en");return Array.isArray(a)&&a.some(r=>n.includes(r))?null:e.createElement("track",{key:t.id,src:t.id,label:Array.isArray(a)?a[0]:a,srcLang:"en","data-testid":"player-track"})},ea=({allSources:t,resources:n,painting:a})=>{const[r,i]=e.useState(0),[o,s]=e.useState(),l=e.useRef(null),c=(a==null?void 0:a.type)==="Sound",m=S(),{activeCanvas:u,configOptions:g,vault:v}=m;return e.useEffect(()=>{if(!a.id||!l.current)return;if(l!=null&&l.current){const f=l.current;f.src=a.id,f.load()}if(a.id.split(".").pop()!=="m3u8")return;const x={xhrSetup:function(f,h){f.withCredentials=!!g.withCredentials}},p=new I.Hls(x);return p.attachMedia(l.current),p.on(I.Hls.Events.MEDIA_ATTACHED,function(){p.loadSource(a.id)}),p.on(I.Hls.Events.ERROR,function(f,h){if(h.fatal)switch(h.type){case I.Hls.ErrorTypes.NETWORK_ERROR:console.error(`fatal ${f} network error encountered, try to recover`),p.startLoad();break;case I.Hls.ErrorTypes.MEDIA_ERROR:console.error(`fatal ${f} media error encountered, try to recover`),p.recoverMediaError();break;default:p.destroy();break}}),()=>{if(p&&l.current){const f=l.current;p.detachMedia(),p.destroy(),f.currentTime=0}}},[g.withCredentials,a.id]),e.useEffect(()=>{var x,p,f,h;const b=v.get(u),E=(x=b.accompanyingCanvas)!=null&&x.id?j(v,(p=b.accompanyingCanvas)==null?void 0:p.id):null,y=(f=b.placeholderCanvas)!=null&&f.id?j(v,(h=b.placeholderCanvas)==null?void 0:h.id):null;E&&y?s(r===0?y[0].id:E[0].id):(E&&s(E[0].id),y&&s(y[0].id))},[u,r,v]),e.useEffect(()=>{if(l!=null&&l.current){const x=l.current;return x==null||x.addEventListener("timeupdate",()=>i(x.currentTime)),()=>document.removeEventListener("timeupdate",()=>{})}},[]),e.createElement(Kn,{css:{backgroundColor:g.canvasBackgroundColor,maxHeight:g.canvasHeight,position:"relative"},"data-testid":"player-wrapper",className:"clover-viewer-player-wrapper"},e.createElement("video",{id:"clover-iiif-video",key:a.id,ref:l,controls:!0,height:a.height,width:a.width,crossOrigin:"anonymous",poster:o,style:{maxHeight:g.canvasHeight,position:"relative",zIndex:"1"}},t.map(x=>e.createElement("source",{src:x.id,type:x.format,key:x.id})),n.length>0&&n.map(x=>e.createElement(Qn,{resource:x,ignoreCaptionLabels:g.ignoreCaptionLabels||[],key:x.id})),"Sorry, your browser doesn't support embedded videos."),c&&e.createElement(Jn,{ref:l}))},ta=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-svg-title",focusable:"false",viewBox:"0 0 512 512",role:"img"},e.createElement("title",{id:"close-svg-title"},"close"),e.createElement("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})),na=({isMedia:t})=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"open-svg-title",focusable:"false",viewBox:"0 0 512 512",role:"img"},e.createElement("title",{id:"open-svg-title"},"open"),t?e.createElement("path",{d:"M133 440a35.37 35.37 0 01-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0135.77.45l247.85 148.36a36 36 0 010 61l-247.89 148.4A35.5 35.5 0 01133 440z"}):e.createElement(e.Fragment,null,e.createElement("path",{d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),e.createElement("path",{d:"m279.5,197.76h-3.35s-28.47,0-28.47,0v-31.82c-.77-13.79-12.57-24.33-26.36-23.56-12.71.71-22.85,10.86-23.56,23.56v3.35h0v28.47h-31.82c-13.79.77-24.33,12.57-23.56,26.36.71,12.71,10.86,22.85,23.56,23.56h3.35s28.47,0,28.47,0v31.82c.77,13.79,12.57,24.33,26.36,23.56,12.71-.71,22.85-10.86,23.56-23.56v-3.35h0v-28.47h31.82c13.79-.77,24.33-12.57,23.56-26.36-.71-12.71-10.86-22.85-23.56-23.56Z"}))),aa=({handleToggle:t,isInteractive:n,isMedia:a})=>e.createElement(We,{onClick:t,isInteractive:n,isMedia:a,"data-testid":"placeholder-toggle"},n?e.createElement(ta,null):e.createElement(na,{isMedia:a})),ra=({activeCanvas:t,isMedia:n,painting:a,resources:r})=>{var i,o,s;const[l,c]=e.useState(0),[m,u]=e.useState(!1),{configOptions:g,customDisplays:v,vault:x}=S(),p=x.get(t),f=(i=p==null?void 0:p.placeholderCanvas)==null?void 0:i.id,h=!!f,b=(a==null?void 0:a.length)>1,E=f&&!m&&!n,y=()=>u(!m),L=$=>{const B=a.findIndex(F=>F.id===$);c(B)},w=v.find($=>{var B;let F=!1;const{canvasId:N,paintingFormat:G}=$.target;if(Array.isArray(N)&&N.length>0&&(F=N.includes(t)),Array.isArray(G)&&G.length>0){const ae=((B=a[l])==null?void 0:B.format)||"";F=!!(ae&&G.includes(ae))}return F}),R=(o=w==null?void 0:w.display)==null?void 0:o.component;return e.createElement(Mn,{className:"clover-viewer-painting"},e.createElement(zn,{style:{backgroundColor:g.canvasBackgroundColor,maxHeight:g.canvasHeight}},f&&!n&&e.createElement(aa,{handleToggle:y,isInteractive:m,isMedia:n}),E&&!n&&e.createElement(Xn,{isMedia:n,label:p==null?void 0:p.label,placeholderCanvas:f,setIsInteractive:u}),!E&&!w&&(n?e.createElement(ea,{allSources:a,painting:a[l],resources:r}):a&&e.createElement(Un,{painting:a[l],hasPlaceholder:h,key:t})),!E&&R&&e.createElement(R,{id:t,annotationBody:a[l],...w==null?void 0:w.display.componentProps})),b&&e.createElement(Ne,{value:(s=a[l])==null?void 0:s.id,onValueChange:L,maxHeight:"200px"},a==null?void 0:a.map($=>e.createElement(Ge,{value:$==null?void 0:$.id,key:$==null?void 0:$.id,label:$==null?void 0:$.label}))))},ia=({activeCanvas:t,painting:n,resources:a,items:r,isAudioVideo:i})=>{const{informationOpen:o,configOptions:s}=S(),{informationPanel:l}=s,c=(l==null?void 0:l.renderAbout)||(l==null?void 0:l.renderSupplementing)&&a.length>0;return e.createElement($e,{className:"clover-viewer-content","data-testid":"clover-viewer-content"},e.createElement(Ie,null,e.createElement(ra,{activeCanvas:t,isMedia:i,painting:n,resources:a}),c&&e.createElement(Ae,null,e.createElement("span",null,o?"View Items":"More Information")),r.length>1&&e.createElement(Se,{className:"clover-viewer-media-wrapper"},e.createElement(An,{items:r,activeItem:0}))),o&&c&&e.createElement(lt,null,e.createElement(Me,null,e.createElement(Yt,{activeCanvas:t,resources:a}))))},oa=d(V.Trigger,{width:"30px",padding:"5px"}),la=d(V.Content,{display:"flex",flexDirection:"column",fontSize:"0.8333rem",border:"none",boxShadow:"2px 2px 5px #0003",zIndex:"2",button:{display:"flex",textDecoration:"none",marginBottom:"0.5em",color:"$accentAlt",cursor:"pointer",background:"$secondary",border:"none","&:last-child":{marginBottom:"0"}}}),sa=d("span",{fontSize:"1.33rem",alignSelf:"flex-start",flexGrow:"0",flexShrink:"1",padding:"1rem","@sm":{fontSize:"1rem"},"&.visually-hidden":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}}),ca=d("header",{display:"flex",backgroundColor:"transparent !important",justifyContent:"space-between",alignItems:"flex-start",width:"100%",[`> ${qe}`]:{flexGrow:"1",flexShrink:"0"},form:{flexGrow:"0",flexShrink:"1"}}),da=d("div",{display:"flex",alignItems:"flex-end",justifyContent:"flex-end",padding:"1rem",flexShrink:"0",flexGrow:"1"}),ma=()=>{var t;const n=O(),a=S(),{activeManifest:r,collection:i,configOptions:o,vault:s}=a,l=o==null?void 0:o.canvasHeight,c=m=>{n({type:"updateActiveManifest",manifestId:m})};return e.createElement("div",{style:{margin:"0.75rem"}},e.createElement(Ne,{label:i.label,maxHeight:l,value:r,onValueChange:c},(t=i==null?void 0:i.items)==null?void 0:t.map(m=>e.createElement(Ge,{value:m.id,key:m.id,thumbnail:m!=null&&m.thumbnail?s.get(m==null?void 0:m.thumbnail):void 0,label:m.label}))))},ua=(t,n=2500)=>{const[a,r]=e.useState(),i=e.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>r("copied"),()=>r("failed"))},[t]);return e.useEffect(()=>{if(!a)return;const o=setTimeout(()=>r(void 0),n);return()=>clearTimeout(o)},[a]),[a,i]},pa=d("span",{display:"flex",alignContent:"center",alignItems:"center",padding:"0.125rem 0.25rem 0",marginTop:"-0.125rem",marginLeft:"0.5rem",backgroundColor:"$accent",color:"$secondary",borderRadius:"3px",fontSize:"0.6111rem",textTransform:"uppercase",lineHeight:"1em"}),ga=({status:t})=>t?e.createElement(pa,{"data-copy-status":t},t):null,ue=({textPrompt:t,textToCopy:n})=>{const[a,r]=ua(n);return e.createElement("button",{onClick:r},t," ",e.createElement(ga,{status:a}))},ha=()=>{const t="#ed1d33",n="#2873ab";return e.createElement("svg",{viewBox:"0 0 493.35999 441.33334",id:"iiif-logo",version:"1.1"},e.createElement("title",null,"IIIF Manifest Options"),e.createElement("g",{transform:"matrix(1.3333333,0,0,-1.3333333,0,441.33333)"},e.createElement("g",{transform:"scale(0.1)"},e.createElement("path",{style:{fill:n},d:"M 65.2422,2178.75 775.242,1915 773.992,15 65.2422,276.25 v 1902.5"}),e.createElement("path",{style:{fill:n},d:"m 804.145,2640.09 c 81.441,-240.91 -26.473,-436.2 -241.04,-436.2 -214.558,0 -454.511,195.29 -535.9527,436.2 -81.4335,240.89 26.4805,436.18 241.0387,436.18 214.567,0 454.512,-195.29 535.954,-436.18"}),e.createElement("path",{style:{fill:t},d:"M 1678.58,2178.75 968.578,1915 969.828,15 1678.58,276.25 v 1902.5"}),e.createElement("path",{style:{fill:t},d:"m 935.082,2640.09 c -81.437,-240.91 26.477,-436.2 241.038,-436.2 214.56,0 454.51,195.29 535.96,436.2 81.43,240.89 -26.48,436.18 -241.04,436.18 -214.57,0 -454.52,-195.29 -535.958,-436.18"}),e.createElement("path",{style:{fill:n},d:"m 1860.24,2178.75 710,-263.75 -1.25,-1900 -708.75,261.25 v 1902.5"}),e.createElement("path",{style:{fill:n},d:"m 2603.74,2640.09 c 81.45,-240.91 -26.47,-436.2 -241.03,-436.2 -214.58,0 -454.52,195.29 -535.96,436.2 -81.44,240.89 26.48,436.18 241.03,436.18 214.57,0 454.51,-195.29 535.96,-436.18"}),e.createElement("path",{style:{fill:t},d:"m 3700.24,3310 v -652.5 c 0,0 -230,90 -257.5,-142.5 -2.5,-247.5 0,-336.25 0,-336.25 l 257.5,83.75 V 1690 l -258.61,-92.5 V 262.5 L 2735.24,0 v 2360 c 0,0 -15,850 965,950"}))))},fa=d(ve.Root,{all:"unset",height:"2rem",width:"3.236rem",backgroundColor:"#6663",borderRadius:"9999px",position:"relative",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:focus":{boxShadow:"0 0 0 2px $secondaryAlt"},'&[data-state="checked"]':{backgroundColor:"$accent",boxShadow:"inset 2px 2px 5px #0003"}}),va=d(ve.Thumb,{display:"block",height:"calc(2rem - 12px)",width:"calc(2rem - 12px)",backgroundColor:"$secondary",borderRadius:"100%",boxShadow:"2px 2px 5px #0001",transition:"$all",transform:"translateX(6px)",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(calc(1.236rem + 6px))"}}),xa=d("label",{fontSize:"0.8333rem",fontWeight:"400",lineHeight:"1em",userSelect:"none",cursor:"pointer",paddingRight:"0.618rem"}),ba=d("form",{display:"flex",flexShrink:"0",flexGrow:"1",alignItems:"center",marginLeft:"1.618rem"}),Ea=()=>{var t;const{configOptions:n}=S(),a=O(),[r,i]=e.useState((t=n==null?void 0:n.informationPanel)==null?void 0:t.open);return e.useEffect(()=>{a({type:"updateInformationOpen",informationOpen:r})},[r]),e.createElement(ba,null,e.createElement(xa,{htmlFor:"information-toggle",css:r?{opacity:"1"}:{}},"More Information"),e.createElement(fa,{checked:r,onCheckedChange:()=>i(!r),id:"information-toggle","aria-label":"information panel toggle",name:"toggled?"},e.createElement(va,null)))},_e=t=>{const n=()=>window.matchMedia?window.matchMedia(t).matches:!1,[a,r]=e.useState(n);return e.useEffect(()=>{const i=()=>r(n);return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)}),a},ya=({manifestId:t,manifestLabel:n})=>{const a=S(),{collection:r,configOptions:i}=a,{showTitle:o,showIIIFBadge:s,informationPanel:l}=i,c=s||(l==null?void 0:l.renderToggle),m=_e(Q.sm);return e.createElement(ca,{className:"clover-viewer-header"},r!=null&&r.items?e.createElement(ma,null):e.createElement(sa,{className:o?"":"visually-hidden"},o&&e.createElement(T,{label:n,className:"label"})),c&&e.createElement(da,null,s&&e.createElement(V,null,e.createElement(oa,null,e.createElement(ha,null)),e.createElement(la,null,(r==null?void 0:r.items)&&e.createElement("button",{onClick:u=>{u.preventDefault(),window.open(r.id,"_blank")}},"View Collection"),e.createElement("button",{onClick:u=>{u.preventDefault(),window.open(t,"_blank")}},"View Manifest")," ",(r==null?void 0:r.items)&&e.createElement(ue,{textPrompt:"Copy Collection URL",textToCopy:r.id}),e.createElement(ue,{textPrompt:"Copy Manifest URL",textToCopy:t}))),(l==null?void 0:l.renderToggle)&&!m&&e.createElement(Ea,null)))},wa=(t=!1)=>{const[n,a]=e.useState(t);return e.useLayoutEffect(()=>{if(!n)return;const r=document.documentElement.style.overflow;return document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow=r}},[n]),e.useEffect(()=>{n!==t&&a(t)},[t]),[n,a]},Ca=({manifest:t,theme:n})=>{var a;const r=S(),i=O(),{activeCanvas:o,informationOpen:s,vault:l,configOptions:c}=r,[m,u]=e.useState(!1),[g,v]=e.useState(!1),[x,p]=e.useState([]),[f,h]=e.useState([]),[b,E]=wa(!1),y=_e(Q.sm),L=e.useCallback(w=>{i({type:"updateInformationOpen",informationOpen:w})},[i]);return e.useEffect(()=>{var w;(w=c==null?void 0:c.informationPanel)!=null&&w.open&&L(!y)},[y,(a=c==null?void 0:c.informationPanel)==null?void 0:a.open,L]),e.useEffect(()=>{if(!y){E(!1);return}E(s)},[s,y,E]),e.useEffect(()=>{const w=j(l,o),R=et(l,o,"text/vtt");w&&(v(["Sound","Video"].indexOf(w[0].type)>-1),p(w)),h(R),u(R.length!==0)},[o,l]),e.createElement(Ze.ErrorBoundary,{FallbackComponent:ot},e.createElement(st,{className:`${n} clover-viewer`,css:{background:c==null?void 0:c.background},"data-body-locked":b,"data-information-panel":m,"data-information-panel-open":s},e.createElement(K.Root,{open:s,onOpenChange:L},e.createElement(ya,{manifestLabel:t.label,manifestId:t.id}),e.createElement(ia,{activeCanvas:o,painting:x,resources:f,items:t.items,isAudioVideo:g}))))},pe={ignoreCache:!1,headers:{Accept:"application/json, text/javascript, text/plain"},timeout:5e3,withCredentials:!1};function ka(t){return{ok:t.status>=200&&t.status<300,status:t.status,statusText:t.statusText,headers:t.getAllResponseHeaders(),data:t.responseText,json:()=>JSON.parse(t.responseText)}}function ge(t,n=null){return{ok:!1,status:t.status,statusText:t.statusText,headers:t.getAllResponseHeaders(),data:n||t.statusText,json:()=>JSON.parse(n||t.statusText)}}function Sa(t,n=pe){const a=n.headers||pe.headers;return new Promise((r,i)=>{const o=new XMLHttpRequest;o.open("get",t),o.withCredentials=n.withCredentials,a&&Object.keys(a).forEach(s=>o.setRequestHeader(s,a[s])),o.onload=()=>{r(ka(o))},o.onerror=()=>{i(ge(o,"Failed to make request."))},o.ontimeout=()=>{i(ge(o,"Request took longer than expected."))},o.send()})}const $a=({canvasIdCallback:t=()=>{},customDisplays:n=[],customTheme:a,iiifContent:r,id:i,manifestId:o,options:s})=>{var l;let c=r;return i&&(c=i),o&&(c=o),e.createElement(Qe,{initialState:{...q,customDisplays:n,informationOpen:!!((l=s==null?void 0:s.informationPanel)!=null&&l.open),vault:new he.Vault({customFetcher:m=>Sa(m,{withCredentials:s==null?void 0:s.withCredentials,headers:s==null?void 0:s.requestHeaders}).then(u=>JSON.parse(u.data))})}},e.createElement(Ia,{iiifContent:c,canvasIdCallback:t,customTheme:a,options:s}))},Ia=({canvasIdCallback:t,customTheme:n,iiifContent:a,options:r})=>{const i=O(),o=S(),{activeCanvas:s,activeManifest:l,isLoaded:c,vault:m}=o,[u,g]=e.useState(),[v,x]=e.useState();let p={};return n&&(p=fe.createTheme("custom",n)),e.useEffect(()=>{t&&t(s)},[s,t]),e.useEffect(()=>{l&&m.loadManifest(l).then(f=>{x(f),i({type:"updateActiveCanvas",canvasId:f.items[0]&&f.items[0].id})}).catch(f=>{console.error(`Manifest failed to load: ${f}`)}).finally(()=>{i({type:"updateIsLoaded",isLoaded:!0})})},[l,i,m]),e.useEffect(()=>{i({type:"updateConfigOptions",configOptions:r}),m.load(a).then(f=>{g(f)}).catch(f=>{console.error(`The IIIF resource ${a} failed to load: ${f}`)})},[i,a,r,m]),e.useEffect(()=>{let f=[];(u==null?void 0:u.type)==="Collection"?(i({type:"updateCollection",collection:u}),f=u.items.filter(h=>h.type==="Manifest").map(h=>h.id),f.length>0&&i({type:"updateActiveManifest",manifestId:f[0]})):(u==null?void 0:u.type)==="Manifest"&&i({type:"updateActiveManifest",manifestId:u.id})},[i,u]),c?!v||!v.items?(console.log(`The IIIF manifest ${a} failed to load.`),e.createElement(e.Fragment,null)):v.items.length===0?(console.log(`The IIIF manifest ${a} does not contain canvases.`),e.createElement(e.Fragment,null)):e.createElement(Ca,{manifest:v,theme:p,key:v.id}):e.createElement(e.Fragment,null,"Loading")};module.exports=$a;
2
2
  //# sourceMappingURL=index.cjs115.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.cjs190.js"),t=require("react"),I=require("./index.cjs192.js"),w=require("./index.cjs193.js"),E=require("./index.cjs191.js"),M=require("./index.cjs194.js"),D=require("./index.cjs227.js"),O=require("./index.cjs228.js"),B=require("./index.cjs229.js"),P=require("./index.cjs195.js"),y="Checkbox",[H,A]=w.createContextScope(y),[K,L]=H(y),q=t.forwardRef((e,l)=>{const{__scopeCheckbox:n,name:a,checked:b,defaultChecked:c,required:f,disabled:i,value:d="on",onCheckedChange:$,...m}=e,[r,h]=t.useState(null),g=I.useComposedRefs(l,o=>h(o)),k=t.useRef(!1),v=r?!!r.closest("form"):!0,[u=!1,x]=M.useControllableState({prop:b,defaultProp:c,onChange:$}),_=t.useRef(u);return t.useEffect(()=>{const o=r==null?void 0:r.form;if(o){const p=()=>x(_.current);return o.addEventListener("reset",p),()=>o.removeEventListener("reset",p)}},[r,x]),t.createElement(K,{scope:n,state:u,disabled:i},t.createElement(P.Primitive.button,C({type:"button",role:"checkbox","aria-checked":s(u)?"mixed":u,"aria-required":f,"data-state":S(u),"data-disabled":i?"":void 0,disabled:i,value:d},m,{ref:g,onKeyDown:E.composeEventHandlers(e.onKeyDown,o=>{o.key==="Enter"&&o.preventDefault()}),onClick:E.composeEventHandlers(e.onClick,o=>{x(p=>s(p)?!0:!p),v&&(k.current=o.isPropagationStopped(),k.current||o.stopPropagation())})})),v&&t.createElement(T,{control:r,bubbles:!k.current,name:a,value:d,checked:u,required:f,disabled:i,style:{transform:"translateX(-100%)"}}))}),N="CheckboxIndicator",R=t.forwardRef((e,l)=>{const{__scopeCheckbox:n,forceMount:a,...b}=e,c=L(N,n);return t.createElement(B.Presence,{present:a||s(c.state)||c.state===!0},t.createElement(P.Primitive.span,C({"data-state":S(c.state),"data-disabled":c.disabled?"":void 0},b,{ref:l,style:{pointerEvents:"none",...e.style}})))}),T=e=>{const{control:l,checked:n,bubbles:a=!0,...b}=e,c=t.useRef(null),f=D.usePrevious(n),i=O.useSize(l);return t.useEffect(()=>{const d=c.current,$=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor($,"checked").set;if(f!==n&&r){const h=new Event("click",{bubbles:a});d.indeterminate=s(n),r.call(d,s(n)?!1:n),d.dispatchEvent(h)}},[f,n,a]),t.createElement("input",C({type:"checkbox","aria-hidden":!0,defaultChecked:s(n)?!1:n},b,{tabIndex:-1,ref:c,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function s(e){return e==="indeterminate"}function S(e){return s(e)?"indeterminate":e?"checked":"unchecked"}const j=q,z=R;exports.Checkbox=q;exports.CheckboxIndicator=R;exports.Indicator=z;exports.Root=j;exports.createCheckboxScope=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.cjs204.js"),t=require("react"),I=require("./index.cjs206.js"),w=require("./index.cjs207.js"),E=require("./index.cjs205.js"),M=require("./index.cjs208.js"),D=require("./index.cjs212.js"),O=require("./index.cjs213.js"),B=require("./index.cjs214.js"),P=require("./index.cjs209.js"),y="Checkbox",[H,A]=w.createContextScope(y),[K,L]=H(y),q=t.forwardRef((e,l)=>{const{__scopeCheckbox:n,name:a,checked:b,defaultChecked:c,required:f,disabled:i,value:d="on",onCheckedChange:$,...m}=e,[r,h]=t.useState(null),g=I.useComposedRefs(l,o=>h(o)),k=t.useRef(!1),v=r?!!r.closest("form"):!0,[u=!1,x]=M.useControllableState({prop:b,defaultProp:c,onChange:$}),_=t.useRef(u);return t.useEffect(()=>{const o=r==null?void 0:r.form;if(o){const p=()=>x(_.current);return o.addEventListener("reset",p),()=>o.removeEventListener("reset",p)}},[r,x]),t.createElement(K,{scope:n,state:u,disabled:i},t.createElement(P.Primitive.button,C({type:"button",role:"checkbox","aria-checked":s(u)?"mixed":u,"aria-required":f,"data-state":S(u),"data-disabled":i?"":void 0,disabled:i,value:d},m,{ref:g,onKeyDown:E.composeEventHandlers(e.onKeyDown,o=>{o.key==="Enter"&&o.preventDefault()}),onClick:E.composeEventHandlers(e.onClick,o=>{x(p=>s(p)?!0:!p),v&&(k.current=o.isPropagationStopped(),k.current||o.stopPropagation())})})),v&&t.createElement(T,{control:r,bubbles:!k.current,name:a,value:d,checked:u,required:f,disabled:i,style:{transform:"translateX(-100%)"}}))}),N="CheckboxIndicator",R=t.forwardRef((e,l)=>{const{__scopeCheckbox:n,forceMount:a,...b}=e,c=L(N,n);return t.createElement(B.Presence,{present:a||s(c.state)||c.state===!0},t.createElement(P.Primitive.span,C({"data-state":S(c.state),"data-disabled":c.disabled?"":void 0},b,{ref:l,style:{pointerEvents:"none",...e.style}})))}),T=e=>{const{control:l,checked:n,bubbles:a=!0,...b}=e,c=t.useRef(null),f=D.usePrevious(n),i=O.useSize(l);return t.useEffect(()=>{const d=c.current,$=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor($,"checked").set;if(f!==n&&r){const h=new Event("click",{bubbles:a});d.indeterminate=s(n),r.call(d,s(n)?!1:n),d.dispatchEvent(h)}},[f,n,a]),t.createElement("input",C({type:"checkbox","aria-hidden":!0,defaultChecked:s(n)?!1:n},b,{tabIndex:-1,ref:c,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function s(e){return e==="indeterminate"}function S(e){return s(e)?"indeterminate":e?"checked":"unchecked"}const j=q,z=R;exports.Checkbox=q;exports.CheckboxIndicator=R;exports.Indicator=z;exports.Root=j;exports.createCheckboxScope=A;
2
2
  //# sourceMappingURL=index.cjs116.js.map
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index.cjs455.js");/**
1
+ "use strict";const e=require("./index.cjs452.js");/**
2
2
  * @license lucide-react v0.321.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("./index.cjs190.js"),q=require("./index.cjs279.js"),ee=require("./index.cjs280.js"),W=require("./index.cjs281.js"),P=require("react");var te=typeof performance=="object"&&typeof performance.now=="function",V=te?function(){return performance.now()}:function(){return Date.now()};function U(a){cancelAnimationFrame(a.id)}function ie(a,t){var n=V();function c(){V()-n>=t?a.call(null):d.id=requestAnimationFrame(c)}var d={id:requestAnimationFrame(c)};return d}var k=-1;function $(a){if(a===void 0&&(a=!1),k===-1||a){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}var O=null;function H(a){if(a===void 0&&(a=!1),O===null||a){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var c=document.createElement("div"),d=c.style;return d.width="100px",d.height="100px",t.appendChild(c),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?O="negative":O="positive-ascending"),document.body.removeChild(t),O}return O}process.env.NODE_ENV;var re=150,oe=function(t,n){return t},R=null,M=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(R=new WeakSet,M=new WeakSet);function ne(a){var t,n=a.getItemOffset,c=a.getEstimatedTotalSize,d=a.getItemSize,z=a.getOffsetForIndexAndAlignment,S=a.getStartIndexForOffset,T=a.getStopIndexForStartIndex,_=a.initInstanceProps,g=a.shouldResetStyleCacheOnItemSizeChange,m=a.validateProps;return t=function(I){ee(b,I);function b(f){var e;return e=I.call(this,f)||this,e._instanceProps=_(e.props,q(e)),e._outerRef=void 0,e._resetIsScrollingTimeoutId=null,e.state={instance:q(e),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof e.props.initialScrollOffset=="number"?e.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},e._callOnItemsRendered=void 0,e._callOnItemsRendered=W(function(i,r,o,s){return e.props.onItemsRendered({overscanStartIndex:i,overscanStopIndex:r,visibleStartIndex:o,visibleStopIndex:s})}),e._callOnScroll=void 0,e._callOnScroll=W(function(i,r,o){return e.props.onScroll({scrollDirection:i,scrollOffset:r,scrollUpdateWasRequested:o})}),e._getItemStyle=void 0,e._getItemStyle=function(i){var r=e.props,o=r.direction,s=r.itemSize,h=r.layout,l=e._getItemStyleCache(g&&s,g&&h,g&&o),u;if(l.hasOwnProperty(i))u=l[i];else{var p=n(e.props,i,e._instanceProps),y=d(e.props,i,e._instanceProps),w=o==="horizontal"||h==="horizontal",E=o==="rtl",x=w?p:0;l[i]=u={position:"absolute",left:E?void 0:x,right:E?x:void 0,top:w?0:p,height:w?"100%":y,width:w?y:"100%"}}return u},e._getItemStyleCache=void 0,e._getItemStyleCache=W(function(i,r,o){return{}}),e._onScrollHorizontal=function(i){var r=i.currentTarget,o=r.clientWidth,s=r.scrollLeft,h=r.scrollWidth;e.setState(function(l){if(l.scrollOffset===s)return null;var u=e.props.direction,p=s;if(u==="rtl")switch(H()){case"negative":p=-s;break;case"positive-descending":p=h-o-s;break}return p=Math.max(0,Math.min(p,h-o)),{isScrolling:!0,scrollDirection:l.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!1}},e._resetIsScrollingDebounced)},e._onScrollVertical=function(i){var r=i.currentTarget,o=r.clientHeight,s=r.scrollHeight,h=r.scrollTop;e.setState(function(l){if(l.scrollOffset===h)return null;var u=Math.max(0,Math.min(h,s-o));return{isScrolling:!0,scrollDirection:l.scrollOffset<u?"forward":"backward",scrollOffset:u,scrollUpdateWasRequested:!1}},e._resetIsScrollingDebounced)},e._outerRefSetter=function(i){var r=e.props.outerRef;e._outerRef=i,typeof r=="function"?r(i):r!=null&&typeof r=="object"&&r.hasOwnProperty("current")&&(r.current=i)},e._resetIsScrollingDebounced=function(){e._resetIsScrollingTimeoutId!==null&&U(e._resetIsScrollingTimeoutId),e._resetIsScrollingTimeoutId=ie(e._resetIsScrolling,re)},e._resetIsScrolling=function(){e._resetIsScrollingTimeoutId=null,e.setState({isScrolling:!1},function(){e._getItemStyleCache(-1,null)})},e}b.getDerivedStateFromProps=function(e,i){return ae(e,i),m(e),null};var v=b.prototype;return v.scrollTo=function(e){e=Math.max(0,e),this.setState(function(i){return i.scrollOffset===e?null:{scrollDirection:i.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e,i){i===void 0&&(i="auto");var r=this.props,o=r.itemCount,s=r.layout,h=this.state.scrollOffset;e=Math.max(0,Math.min(e,o-1));var l=0;if(this._outerRef){var u=this._outerRef;s==="vertical"?l=u.scrollWidth>u.clientWidth?$():0:l=u.scrollHeight>u.clientHeight?$():0}this.scrollTo(z(this.props,e,i,h,this._instanceProps,l))},v.componentDidMount=function(){var e=this.props,i=e.direction,r=e.initialScrollOffset,o=e.layout;if(typeof r=="number"&&this._outerRef!=null){var s=this._outerRef;i==="horizontal"||o==="horizontal"?s.scrollLeft=r:s.scrollTop=r}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props,i=e.direction,r=e.layout,o=this.state,s=o.scrollOffset,h=o.scrollUpdateWasRequested;if(h&&this._outerRef!=null){var l=this._outerRef;if(i==="horizontal"||r==="horizontal")if(i==="rtl")switch(H()){case"negative":l.scrollLeft=-s;break;case"positive-ascending":l.scrollLeft=s;break;default:var u=l.clientWidth,p=l.scrollWidth;l.scrollLeft=p-u-s;break}else l.scrollLeft=s;else l.scrollTop=s}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&U(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,i=e.children,r=e.className,o=e.direction,s=e.height,h=e.innerRef,l=e.innerElementType,u=e.innerTagName,p=e.itemCount,y=e.itemData,w=e.itemKey,E=w===void 0?oe:w,x=e.layout,K=e.outerElementType,j=e.outerTagName,B=e.style,G=e.useIsScrolling,J=e.width,D=this.state.isScrolling,N=o==="horizontal"||x==="horizontal",Q=N?this._onScrollHorizontal:this._onScrollVertical,F=this._getRangeToRender(),X=F[0],Y=F[1],L=[];if(p>0)for(var C=X;C<=Y;C++)L.push(P.createElement(i,{data:y,key:E(C,y),index:C,isScrolling:G?D:void 0,style:this._getItemStyle(C)}));var A=c(this.props,this._instanceProps);return P.createElement(K||j||"div",{className:r,onScroll:Q,ref:this._outerRefSetter,style:Z({position:"relative",height:s,width:J,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},B)},P.createElement(l||u||"div",{children:L,ref:h,style:{height:N?"100%":A,pointerEvents:D?"none":void 0,width:N?A:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var e=this.props.itemCount;if(e>0){var i=this._getRangeToRender(),r=i[0],o=i[1],s=i[2],h=i[3];this._callOnItemsRendered(r,o,s,h)}}if(typeof this.props.onScroll=="function"){var l=this.state,u=l.scrollDirection,p=l.scrollOffset,y=l.scrollUpdateWasRequested;this._callOnScroll(u,p,y)}},v._getRangeToRender=function(){var e=this.props,i=e.itemCount,r=e.overscanCount,o=this.state,s=o.isScrolling,h=o.scrollDirection,l=o.scrollOffset;if(i===0)return[0,0,0,0];var u=S(this.props,l,this._instanceProps),p=T(this.props,u,l,this._instanceProps),y=!s||h==="backward"?Math.max(1,r):1,w=!s||h==="forward"?Math.max(1,r):1;return[Math.max(0,u-y),Math.max(0,Math.min(i-1,p+w)),u,p]},b}(P.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ae=function(t,n){var c=t.children,d=t.direction,z=t.height,S=t.layout,T=t.innerTagName,_=t.outerTagName,g=t.width,m=n.instance;if(process.env.NODE_ENV!=="production"){(T!=null||_!=null)&&M&&!M.has(m)&&(M.add(m),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var I=d==="horizontal"||S==="horizontal";switch(d){case"horizontal":case"vertical":R&&!R.has(m)&&(R.add(m),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+d+'" was specified.'))}switch(S){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+S+'" was specified.'))}if(c==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(I&&typeof g!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(g===null?"null":typeof g)+'" was specified.'));if(!I&&typeof z!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(z===null?"null":typeof z)+'" was specified.'))}},le=ne({getItemOffset:function(t,n){var c=t.itemSize;return n*c},getItemSize:function(t,n){var c=t.itemSize;return c},getEstimatedTotalSize:function(t){var n=t.itemCount,c=t.itemSize;return c*n},getOffsetForIndexAndAlignment:function(t,n,c,d,z,S){var T=t.direction,_=t.height,g=t.itemCount,m=t.itemSize,I=t.layout,b=t.width,v=T==="horizontal"||I==="horizontal",f=v?b:_,e=Math.max(0,g*m-f),i=Math.min(e,n*m),r=Math.max(0,n*m-f+m+S);switch(c==="smart"&&(d>=r-f&&d<=i+f?c="auto":c="center"),c){case"start":return i;case"end":return r;case"center":{var o=Math.round(r+(i-r)/2);return o<Math.ceil(f/2)?0:o>e+Math.floor(f/2)?e:o}case"auto":default:return d>=r&&d<=i?d:d<r?r:i}},getStartIndexForOffset:function(t,n){var c=t.itemCount,d=t.itemSize;return Math.max(0,Math.min(c-1,Math.floor(n/d)))},getStopIndexForStartIndex:function(t,n,c){var d=t.direction,z=t.height,S=t.itemCount,T=t.itemSize,_=t.layout,g=t.width,m=d==="horizontal"||_==="horizontal",I=n*T,b=m?g:z,v=Math.ceil((b+c-I)/T);return Math.max(0,Math.min(S-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});exports.FixedSizeList=le;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("./index.cjs204.js"),q=require("./index.cjs274.js"),ee=require("./index.cjs275.js"),W=require("./index.cjs276.js"),P=require("react");var te=typeof performance=="object"&&typeof performance.now=="function",V=te?function(){return performance.now()}:function(){return Date.now()};function U(a){cancelAnimationFrame(a.id)}function ie(a,t){var n=V();function c(){V()-n>=t?a.call(null):d.id=requestAnimationFrame(c)}var d={id:requestAnimationFrame(c)};return d}var k=-1;function $(a){if(a===void 0&&(a=!1),k===-1||a){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}var O=null;function H(a){if(a===void 0&&(a=!1),O===null||a){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var c=document.createElement("div"),d=c.style;return d.width="100px",d.height="100px",t.appendChild(c),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?O="negative":O="positive-ascending"),document.body.removeChild(t),O}return O}process.env.NODE_ENV;var re=150,oe=function(t,n){return t},R=null,M=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(R=new WeakSet,M=new WeakSet);function ne(a){var t,n=a.getItemOffset,c=a.getEstimatedTotalSize,d=a.getItemSize,z=a.getOffsetForIndexAndAlignment,S=a.getStartIndexForOffset,T=a.getStopIndexForStartIndex,_=a.initInstanceProps,g=a.shouldResetStyleCacheOnItemSizeChange,m=a.validateProps;return t=function(I){ee(b,I);function b(f){var e;return e=I.call(this,f)||this,e._instanceProps=_(e.props,q(e)),e._outerRef=void 0,e._resetIsScrollingTimeoutId=null,e.state={instance:q(e),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof e.props.initialScrollOffset=="number"?e.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},e._callOnItemsRendered=void 0,e._callOnItemsRendered=W(function(i,r,o,s){return e.props.onItemsRendered({overscanStartIndex:i,overscanStopIndex:r,visibleStartIndex:o,visibleStopIndex:s})}),e._callOnScroll=void 0,e._callOnScroll=W(function(i,r,o){return e.props.onScroll({scrollDirection:i,scrollOffset:r,scrollUpdateWasRequested:o})}),e._getItemStyle=void 0,e._getItemStyle=function(i){var r=e.props,o=r.direction,s=r.itemSize,h=r.layout,l=e._getItemStyleCache(g&&s,g&&h,g&&o),u;if(l.hasOwnProperty(i))u=l[i];else{var p=n(e.props,i,e._instanceProps),y=d(e.props,i,e._instanceProps),w=o==="horizontal"||h==="horizontal",E=o==="rtl",x=w?p:0;l[i]=u={position:"absolute",left:E?void 0:x,right:E?x:void 0,top:w?0:p,height:w?"100%":y,width:w?y:"100%"}}return u},e._getItemStyleCache=void 0,e._getItemStyleCache=W(function(i,r,o){return{}}),e._onScrollHorizontal=function(i){var r=i.currentTarget,o=r.clientWidth,s=r.scrollLeft,h=r.scrollWidth;e.setState(function(l){if(l.scrollOffset===s)return null;var u=e.props.direction,p=s;if(u==="rtl")switch(H()){case"negative":p=-s;break;case"positive-descending":p=h-o-s;break}return p=Math.max(0,Math.min(p,h-o)),{isScrolling:!0,scrollDirection:l.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!1}},e._resetIsScrollingDebounced)},e._onScrollVertical=function(i){var r=i.currentTarget,o=r.clientHeight,s=r.scrollHeight,h=r.scrollTop;e.setState(function(l){if(l.scrollOffset===h)return null;var u=Math.max(0,Math.min(h,s-o));return{isScrolling:!0,scrollDirection:l.scrollOffset<u?"forward":"backward",scrollOffset:u,scrollUpdateWasRequested:!1}},e._resetIsScrollingDebounced)},e._outerRefSetter=function(i){var r=e.props.outerRef;e._outerRef=i,typeof r=="function"?r(i):r!=null&&typeof r=="object"&&r.hasOwnProperty("current")&&(r.current=i)},e._resetIsScrollingDebounced=function(){e._resetIsScrollingTimeoutId!==null&&U(e._resetIsScrollingTimeoutId),e._resetIsScrollingTimeoutId=ie(e._resetIsScrolling,re)},e._resetIsScrolling=function(){e._resetIsScrollingTimeoutId=null,e.setState({isScrolling:!1},function(){e._getItemStyleCache(-1,null)})},e}b.getDerivedStateFromProps=function(e,i){return ae(e,i),m(e),null};var v=b.prototype;return v.scrollTo=function(e){e=Math.max(0,e),this.setState(function(i){return i.scrollOffset===e?null:{scrollDirection:i.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e,i){i===void 0&&(i="auto");var r=this.props,o=r.itemCount,s=r.layout,h=this.state.scrollOffset;e=Math.max(0,Math.min(e,o-1));var l=0;if(this._outerRef){var u=this._outerRef;s==="vertical"?l=u.scrollWidth>u.clientWidth?$():0:l=u.scrollHeight>u.clientHeight?$():0}this.scrollTo(z(this.props,e,i,h,this._instanceProps,l))},v.componentDidMount=function(){var e=this.props,i=e.direction,r=e.initialScrollOffset,o=e.layout;if(typeof r=="number"&&this._outerRef!=null){var s=this._outerRef;i==="horizontal"||o==="horizontal"?s.scrollLeft=r:s.scrollTop=r}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props,i=e.direction,r=e.layout,o=this.state,s=o.scrollOffset,h=o.scrollUpdateWasRequested;if(h&&this._outerRef!=null){var l=this._outerRef;if(i==="horizontal"||r==="horizontal")if(i==="rtl")switch(H()){case"negative":l.scrollLeft=-s;break;case"positive-ascending":l.scrollLeft=s;break;default:var u=l.clientWidth,p=l.scrollWidth;l.scrollLeft=p-u-s;break}else l.scrollLeft=s;else l.scrollTop=s}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&U(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,i=e.children,r=e.className,o=e.direction,s=e.height,h=e.innerRef,l=e.innerElementType,u=e.innerTagName,p=e.itemCount,y=e.itemData,w=e.itemKey,E=w===void 0?oe:w,x=e.layout,K=e.outerElementType,j=e.outerTagName,B=e.style,G=e.useIsScrolling,J=e.width,D=this.state.isScrolling,N=o==="horizontal"||x==="horizontal",Q=N?this._onScrollHorizontal:this._onScrollVertical,F=this._getRangeToRender(),X=F[0],Y=F[1],L=[];if(p>0)for(var C=X;C<=Y;C++)L.push(P.createElement(i,{data:y,key:E(C,y),index:C,isScrolling:G?D:void 0,style:this._getItemStyle(C)}));var A=c(this.props,this._instanceProps);return P.createElement(K||j||"div",{className:r,onScroll:Q,ref:this._outerRefSetter,style:Z({position:"relative",height:s,width:J,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},B)},P.createElement(l||u||"div",{children:L,ref:h,style:{height:N?"100%":A,pointerEvents:D?"none":void 0,width:N?A:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var e=this.props.itemCount;if(e>0){var i=this._getRangeToRender(),r=i[0],o=i[1],s=i[2],h=i[3];this._callOnItemsRendered(r,o,s,h)}}if(typeof this.props.onScroll=="function"){var l=this.state,u=l.scrollDirection,p=l.scrollOffset,y=l.scrollUpdateWasRequested;this._callOnScroll(u,p,y)}},v._getRangeToRender=function(){var e=this.props,i=e.itemCount,r=e.overscanCount,o=this.state,s=o.isScrolling,h=o.scrollDirection,l=o.scrollOffset;if(i===0)return[0,0,0,0];var u=S(this.props,l,this._instanceProps),p=T(this.props,u,l,this._instanceProps),y=!s||h==="backward"?Math.max(1,r):1,w=!s||h==="forward"?Math.max(1,r):1;return[Math.max(0,u-y),Math.max(0,Math.min(i-1,p+w)),u,p]},b}(P.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ae=function(t,n){var c=t.children,d=t.direction,z=t.height,S=t.layout,T=t.innerTagName,_=t.outerTagName,g=t.width,m=n.instance;if(process.env.NODE_ENV!=="production"){(T!=null||_!=null)&&M&&!M.has(m)&&(M.add(m),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var I=d==="horizontal"||S==="horizontal";switch(d){case"horizontal":case"vertical":R&&!R.has(m)&&(R.add(m),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+d+'" was specified.'))}switch(S){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+S+'" was specified.'))}if(c==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(I&&typeof g!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(g===null?"null":typeof g)+'" was specified.'));if(!I&&typeof z!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(z===null?"null":typeof z)+'" was specified.'))}},le=ne({getItemOffset:function(t,n){var c=t.itemSize;return n*c},getItemSize:function(t,n){var c=t.itemSize;return c},getEstimatedTotalSize:function(t){var n=t.itemCount,c=t.itemSize;return c*n},getOffsetForIndexAndAlignment:function(t,n,c,d,z,S){var T=t.direction,_=t.height,g=t.itemCount,m=t.itemSize,I=t.layout,b=t.width,v=T==="horizontal"||I==="horizontal",f=v?b:_,e=Math.max(0,g*m-f),i=Math.min(e,n*m),r=Math.max(0,n*m-f+m+S);switch(c==="smart"&&(d>=r-f&&d<=i+f?c="auto":c="center"),c){case"start":return i;case"end":return r;case"center":{var o=Math.round(r+(i-r)/2);return o<Math.ceil(f/2)?0:o>e+Math.floor(f/2)?e:o}case"auto":default:return d>=r&&d<=i?d:d<r?r:i}},getStartIndexForOffset:function(t,n){var c=t.itemCount,d=t.itemSize;return Math.max(0,Math.min(c-1,Math.floor(n/d)))},getStopIndexForStartIndex:function(t,n,c){var d=t.direction,z=t.height,S=t.itemCount,T=t.itemSize,_=t.layout,g=t.width,m=d==="horizontal"||_==="horizontal",I=n*T,b=m?g:z,v=Math.ceil((b+c-I)/T);return Math.max(0,Math.min(S-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});exports.FixedSizeList=le;
2
2
  //# sourceMappingURL=index.cjs121.js.map