@nulib/clover 4.1.0 → 4.3.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 (345) hide show
  1. package/README.md +1 -1
  2. package/dist/components/Body/useControlsVisibility.mjs +35 -13
  3. package/dist/components/Canvas/CanvasView.mjs +33 -4
  4. package/dist/components/Canvas/ChaptersMenu.mjs +6 -1
  5. package/dist/components/Canvas/ControlMenu.mjs +9 -2
  6. package/dist/components/Canvas/Controls.mjs +17 -4
  7. package/dist/components/Canvas/FrameAnimation.mjs +3 -0
  8. package/dist/components/Canvas/ImageControls.mjs +8 -3
  9. package/dist/components/Canvas/Placeholder.mjs +5 -2
  10. package/dist/components/Canvas/RowFits.mjs +3 -1
  11. package/dist/components/Canvas/media/MediaBody.mjs +3 -0
  12. package/dist/components/Canvas/media/Player.mjs +3 -0
  13. package/dist/components/Canvas/media/Transport.mjs +3 -0
  14. package/dist/components/Canvas/media/useMediaElement.mjs +32 -9
  15. package/dist/components/Items/masonry.mjs +2 -0
  16. package/dist/components/Map/MapView.mjs +42 -2
  17. package/dist/components/Map/maplibre-sheet.mjs +5 -0
  18. package/dist/components/Map/sheet.mjs +19 -0
  19. package/dist/components/Map/worker.mjs +28 -1
  20. package/dist/components/Panel/Panel.mjs +47 -59
  21. package/dist/components/Panel/sections.mjs +62 -0
  22. package/dist/components/Scene/SceneView.mjs +3 -0
  23. package/dist/core/content-state.mjs +1 -11
  24. package/dist/core/load.mjs +9 -1
  25. package/dist/core/presentation.mjs +4 -5
  26. package/dist/core/sanitize.mjs +15 -3
  27. package/dist/core/svg-shape.mjs +2 -1
  28. package/dist/core/thumbnail.mjs +15 -4
  29. package/dist/core/trusted.mjs +26 -0
  30. package/dist/core/vtt.mjs +20 -9
  31. package/dist/index.d.mts +269 -6
  32. package/dist/index.mjs +13 -0
  33. package/dist/lib/pointer.mjs +1 -1
  34. package/dist/lib/renderer/CanvasRenderer.mjs +48 -7
  35. package/dist/lib/renderer/camera/CameraAnimator.mjs +39 -20
  36. package/dist/lib/renderer/input/GestureController.mjs +15 -5
  37. package/dist/map/index.d.mts +6 -1
  38. package/dist/styles/collection-select.css +1 -0
  39. package/dist/styles/core.css +1 -0
  40. package/dist/styles/default.css +1 -0
  41. package/dist/styles/items.css +1 -0
  42. package/dist/styles/map.css +1 -0
  43. package/dist/styles/media.css +1 -0
  44. package/dist/styles/panel.css +1 -0
  45. package/dist/styles/scene.css +1 -0
  46. package/dist/styles/split.css +1 -0
  47. package/dist/styles.css +1 -1
  48. package/dist/templates/default/Default.mjs +7 -0
  49. package/dist/templates/document/Document.mjs +22 -3
  50. package/dist/templates/document/Sheets.mjs +2 -0
  51. package/dist/templates/gallery/Gallery.mjs +7 -1
  52. package/dist/templates/index.d.mts +167 -6
  53. package/dist/templates/shared/Lightbox.mjs +50 -3
  54. package/dist/templates/shared/LightboxView.mjs +8 -1
  55. package/dist/templates/shared/PanelPane.mjs +13 -1
  56. package/dist/templates.css +1 -1
  57. package/dist/ui/Button.mjs +3 -1
  58. package/dist/ui/ControlCluster.mjs +6 -3
  59. package/dist/ui/Markup.mjs +8 -7
  60. package/dist/ui/Tip.mjs +6 -1
  61. package/dist/ui/adoptSheet.mjs +19 -0
  62. package/dist/ui/sheets/map.mjs +5 -0
  63. package/dist/ui/sheets/media.mjs +5 -0
  64. package/dist/ui/sheets/scene.mjs +5 -0
  65. package/dist/web-components/{About-DvyvVUK5.mjs → About-uNCjvWgs.mjs} +1 -1
  66. package/dist/web-components/{AnnotationItems-BpRcSrOM.mjs → AnnotationItems-JwlcCvPo.mjs} +1 -1
  67. package/dist/web-components/{AnnotationMenu-BDPec3iI.mjs → AnnotationMenu-BWyKEyvW.mjs} +1 -1
  68. package/dist/web-components/{AnnotationState-Chs_37Kk.mjs → AnnotationState-Bhqs75Br.mjs} +1 -1
  69. package/dist/web-components/{Annotations-CLPEq7Ro.mjs → Annotations-C7y0N8Lj.mjs} +1 -1
  70. package/dist/web-components/{Annotations-6E-oD_wg.mjs → Annotations-ZwcRh2UE.mjs} +2 -2
  71. package/dist/web-components/{Body-Ct61yxI7.mjs → Body-DyrvRDkt.mjs} +1 -1
  72. package/dist/web-components/{BodyAlert-C_Qh3Up_.mjs → BodyAlert-XV88XjL8.mjs} +1 -1
  73. package/dist/web-components/Button-BIaw5k1q.mjs +1 -0
  74. package/dist/web-components/{Camera-BPyLzZjP.mjs → Camera-7SlnmGtb.mjs} +1 -1
  75. package/dist/web-components/{Canvas2DBackend-8wFavYdl.mjs → Canvas2DBackend-DBGZRGid.mjs} +1 -1
  76. package/dist/web-components/CanvasView-CmDxczm9.mjs +2 -0
  77. package/dist/web-components/{CaptionDetails-DuwS-grE.mjs → CaptionDetails-Bxz8AXMz.mjs} +1 -1
  78. package/dist/web-components/ChaptersMenu-CMQiBqvx.mjs +1 -0
  79. package/dist/web-components/{Chevron-Cyr_cc9X.mjs → Chevron-B3XaClVT.mjs} +1 -1
  80. package/dist/web-components/{ChoiceMenu-ConzybVH.mjs → ChoiceMenu-pugo5zxI.mjs} +1 -1
  81. package/dist/web-components/{Collection-CLayN8sv.mjs → Collection-Ch_FeSKp.mjs} +1 -1
  82. package/dist/web-components/{CollectionSelect-D2d8dGJ4.mjs → CollectionSelect-2jDEkOcK.mjs} +1 -1
  83. package/dist/web-components/{Connected-CBQ6xyhr.mjs → Connected-3hnIPSWM.mjs} +1 -1
  84. package/dist/web-components/{Connected-DMXG3imZ.mjs → Connected-Bne3I5E1.mjs} +1 -1
  85. package/dist/web-components/{Connected-pyd0EBD3.mjs → Connected-DuANHN93.mjs} +1 -1
  86. package/dist/web-components/{Contents-tCMXBYDK.mjs → Contents-DIQrin_-.mjs} +1 -1
  87. package/dist/web-components/ControlMenu-BydnCTTQ.mjs +1 -0
  88. package/dist/web-components/ControlsFade-CleBsk-W.mjs +1 -0
  89. package/dist/web-components/CountMenu-CReBYVwu.mjs +1 -0
  90. package/dist/web-components/Cue-2zGQuUOC.mjs +1 -0
  91. package/dist/web-components/Document-pjc2qOX4.mjs +1 -0
  92. package/dist/web-components/{DomLayers-BxPU05-D.mjs → DomLayers-D9X_FPto.mjs} +1 -1
  93. package/dist/web-components/{Download-Bku9Vptk.mjs → Download-B8MpVqgk.mjs} +1 -1
  94. package/dist/web-components/{EntryBodies-77vDudCb.mjs → EntryBodies-DdpRfU5U.mjs} +1 -1
  95. package/dist/web-components/{EntryThumbnail-BxQWKW6e.mjs → EntryThumbnail-DM7Zjj1z.mjs} +1 -1
  96. package/dist/web-components/{FieldPill-nFGsaru9.mjs → FieldPill-BAql8_6s.mjs} +1 -1
  97. package/dist/web-components/{FrameAnimation-BvKiSXcm.mjs → FrameAnimation-Dj46RxuL.mjs} +1 -1
  98. package/dist/web-components/Gallery-B9FNA02Z.mjs +1 -0
  99. package/dist/web-components/{HideToggle-TEhY4TS4.mjs → HideToggle-duXvDvDw.mjs} +1 -1
  100. package/dist/web-components/ImageControls-DODKjC0d.mjs +1 -0
  101. package/dist/web-components/{Items-CudZ4Lnb.mjs → Items-BHTQJU7T.mjs} +1 -1
  102. package/dist/web-components/{Label-f07N5Fld.mjs → Label-D4dlrtpH.mjs} +1 -1
  103. package/dist/web-components/{LanguageChoice-B5VM21DV.mjs → LanguageChoice-DR3X-dtJ.mjs} +1 -1
  104. package/dist/web-components/LightboxView-D-aBaKfB.mjs +1 -0
  105. package/dist/web-components/{ListEnd-M39M62Cl.mjs → ListEnd-CQ4vX-NW.mjs} +1 -1
  106. package/dist/web-components/{Loaded-oGFyBuos.mjs → Loaded-DsNSPXWf.mjs} +1 -1
  107. package/dist/web-components/{LoadedCanvas-IvpSzPO6.mjs → LoadedCanvas-Cq7_O2bw.mjs} +1 -1
  108. package/dist/web-components/LoadedMap-0_prxuA4.mjs +1 -0
  109. package/dist/web-components/{Loading-YxuKrDAM.mjs → Loading-4PmhMeZ-.mjs} +1 -1
  110. package/dist/web-components/{Map-Cw9j3gi3.mjs → Map-B29Ba50b.mjs} +1 -1
  111. package/dist/web-components/MapView-nHeg39Kz.mjs +3 -0
  112. package/dist/web-components/Markup-BZ7l5GbG.mjs +2 -0
  113. package/dist/web-components/MediaBody-DH-rr_0N.mjs +1 -0
  114. package/dist/web-components/{MediaBody-JnKnoIqY.mjs → MediaBody-eSThjFzH.mjs} +1 -1
  115. package/dist/web-components/{NavDate-BCCOyycx.mjs → NavDate-0MsHRjBW.mjs} +1 -1
  116. package/dist/web-components/{Navigator-Bx4zS0Yr.mjs → Navigator-qJ79A8Nk.mjs} +1 -1
  117. package/dist/web-components/{Pager-B9GvQ64b.mjs → Pager-SPd_u0qz.mjs} +1 -1
  118. package/dist/web-components/{PagerLayout-BF33VZL_.mjs → PagerLayout-CkSwDAnp.mjs} +1 -1
  119. package/dist/web-components/Panel-C8r3EsWn.mjs +1 -0
  120. package/dist/web-components/PanelPart-BA1NoeLA.mjs +1 -0
  121. package/dist/web-components/{PanelToggle-bPcIULGZ.mjs → PanelToggle-CrKP8BqE.mjs} +1 -1
  122. package/dist/web-components/{PartOfManifest-HLg-r00O.mjs → PartOfManifest-BdDSxK4k.mjs} +1 -1
  123. package/dist/web-components/{Pending-BxGjjnqq.mjs → Pending-CmgVU1kF.mjs} +1 -1
  124. package/dist/web-components/{PlaceBox-D-Zhe9-U.mjs → PlaceBox-D7HLNGxE.mjs} +1 -1
  125. package/dist/web-components/Placeholder-DVAlXejQ.mjs +1 -0
  126. package/dist/web-components/{Position-TYnzcm8e.mjs → Position-C6KUAceQ.mjs} +1 -1
  127. package/dist/web-components/{Primitives-C6VJXxZD.mjs → Primitives-ClQVjY6x.mjs} +1 -1
  128. package/dist/web-components/{Provider-DyB0wpeO.mjs → Provider-C0IUdU6v.mjs} +1 -1
  129. package/dist/web-components/{ReadMore-De_0T7lc.mjs → ReadMore-BiEJA4yO.mjs} +1 -1
  130. package/dist/web-components/Root-Drt5N4_s.mjs +1 -0
  131. package/dist/web-components/Scene-C7t16NjC.mjs +1 -0
  132. package/dist/web-components/SceneView-BHg37-rs.mjs +1 -0
  133. package/dist/web-components/{Search-DgT8OPsK.mjs → Search-Bpd_lGzH.mjs} +1 -1
  134. package/dist/web-components/{Sections-d1acn7qm.mjs → Sections-D_bS5IQH.mjs} +1 -1
  135. package/dist/web-components/{StandaloneItems-DUb4YKCB.mjs → StandaloneItems-YV9O9M8F.mjs} +1 -1
  136. package/dist/web-components/{Status-CcU3u6P4.mjs → Status-BCG7AN9B.mjs} +1 -1
  137. package/dist/web-components/{Steps-nlSCzbDQ.mjs → Steps-Dnn8Ajqf.mjs} +1 -1
  138. package/dist/web-components/TargetItems-xxbtePln.mjs +1 -0
  139. package/dist/web-components/Timeline-Danuk_Nn.mjs +1 -0
  140. package/dist/web-components/Tip-DPFWlNLu.mjs +1 -0
  141. package/dist/web-components/{Transcript-bSA3cx_K.mjs → Transcript-C-_DbUO5.mjs} +1 -1
  142. package/dist/web-components/{Transport-DjOYI-fR.mjs → Transport-BKona8RD.mjs} +1 -1
  143. package/dist/web-components/Transport-Bonmu77-.mjs +1 -0
  144. package/dist/web-components/{annotation-collection-D8emkElk.mjs → annotation-collection-nmxzo_hO.mjs} +1 -1
  145. package/dist/web-components/{annotation-name-DbWjhgra.mjs → annotation-name-DoUUo-8D.mjs} +1 -1
  146. package/dist/web-components/{annotations-content-Bg6aVAGC.mjs → annotations-content-Cl1upbdd.mjs} +1 -1
  147. package/dist/web-components/{body-Ct8dmQdW.mjs → body-DC8Oq8rY.mjs} +1 -1
  148. package/dist/web-components/{canvas-goEZLqEd.mjs → canvas-gzoTnBxw.mjs} +1 -1
  149. package/dist/web-components/{cloverEngine-Df7cMwOP.mjs → cloverEngine-CFL1Bd7n.mjs} +1 -1
  150. package/dist/web-components/{content-state-reader-CNmBpG1L.mjs → content-state-reader-DYbmXxCp.mjs} +1 -1
  151. package/dist/web-components/controlGlyphs-d7KUIUwi.mjs +1 -0
  152. package/dist/web-components/{controls-BZr16sYQ.mjs → controls-VC9D1mwr.mjs} +1 -1
  153. package/dist/web-components/custom-elements.json +41 -3
  154. package/dist/web-components/{downloads-EjJ6Hpip.mjs → downloads-D2cnWDbs.mjs} +1 -1
  155. package/dist/web-components/{dragToClose-X9NbZOhA.mjs → dragToClose-CzYeh_12.mjs} +1 -1
  156. package/dist/web-components/{engine-DMoc0tff.mjs → engine-Dcfyp2DV.mjs} +1 -1
  157. package/dist/web-components/{engines-BmB81VXR.mjs → engines-BMr7naGM.mjs} +1 -1
  158. package/dist/web-components/{fetchManifest-CwQC6cCh.mjs → fetchManifest-DxptUh4u.mjs} +1 -1
  159. package/dist/web-components/{fromManifest-DrAmY1lB.mjs → fromManifest-BpPFLVyZ.mjs} +1 -1
  160. package/dist/web-components/{glyphs-BFK_hvJJ.mjs → glyphs-BCnJl8py.mjs} +1 -1
  161. package/dist/web-components/hooks-Dz_5UXXp.mjs +1 -0
  162. package/dist/web-components/{image-layers-D2nQC4R-.mjs → image-layers-BPnq7jk1.mjs} +1 -1
  163. package/dist/web-components/{imageService-iFElsopt.mjs → imageService-DFPkPNfe.mjs} +1 -1
  164. package/dist/web-components/index-ClM6Kq8w.mjs +1 -0
  165. package/dist/web-components/index.d.mts +5 -3
  166. package/dist/web-components/index.mjs +1 -1
  167. package/dist/web-components/items-BHporT5i.mjs +1 -0
  168. package/dist/web-components/{items-BnEnc5ot.mjs → items-D03KhDg6.mjs} +1 -1
  169. package/dist/web-components/label-r0ki6r1U.mjs +1 -0
  170. package/dist/web-components/{layout-Djwu8f4R.mjs → layout-DVa_DnGH.mjs} +1 -1
  171. package/dist/web-components/{link-0lUlTZlw.mjs → link-DxXxMXiw.mjs} +1 -1
  172. package/dist/web-components/logo-Br42Vlsk.mjs +1 -0
  173. package/dist/web-components/maplibre-sheet-CfiZ6JFk.mjs +1 -0
  174. package/dist/web-components/masonry-BZCdA3bV.mjs +1 -0
  175. package/dist/web-components/{models-BF2pqufA.mjs → models-pO77sm3z.mjs} +1 -1
  176. package/dist/web-components/{nodes-ChQRLDGU.mjs → nodes-CmL3eoRE.mjs} +1 -1
  177. package/dist/web-components/{overlayImage-MKrcgDep.mjs → overlayImage-DFGetjMh.mjs} +1 -1
  178. package/dist/web-components/{panel-C13V6w6E.mjs → panel-B1vzUm6_.mjs} +1 -1
  179. package/dist/web-components/part-DmRBh4pf.mjs +1 -0
  180. package/dist/web-components/{playerSurface-DG1XipTq.mjs → playerSurface-CQ1wrIAQ.mjs} +1 -1
  181. package/dist/web-components/pointer-DWnCT3D3.mjs +1 -0
  182. package/dist/web-components/{provider-DiUkZYiW.mjs → provider-U7xzX_0T.mjs} +1 -1
  183. package/dist/web-components/{range-regions-CqGjyM76.mjs → range-regions-Di_lmVqZ.mjs} +1 -1
  184. package/dist/web-components/{read-more-D8RJYdtQ.mjs → read-more-BtA1sriO.mjs} +1 -1
  185. package/dist/web-components/{readingLanguages-BWOLZK2k.mjs → readingLanguages-Ptho-Co9.mjs} +1 -1
  186. package/dist/web-components/rendererSurface-BgZPnAwj.mjs +22 -0
  187. package/dist/web-components/{renderers-LtRX5pT0.mjs → renderers-hoD3WKYA.mjs} +1 -1
  188. package/dist/web-components/{resource-Cfydiy4m.mjs → resource-DuTMsPEj.mjs} +1 -1
  189. package/dist/web-components/{sanitize-qIOeyIww.mjs → sanitize-BedC_UE5.mjs} +3 -3
  190. package/dist/web-components/{save-file-dZyOpXgY.mjs → save-file-CLB5IM4a.mjs} +1 -1
  191. package/dist/web-components/{search-BfUZJM3a.mjs → search-Dd2Y1dsZ.mjs} +1 -1
  192. package/dist/web-components/shared-CCg1Iag8.mjs +1 -0
  193. package/dist/web-components/{show-link-DgLJzG7k.mjs → show-link-NjacLIdz.mjs} +1 -1
  194. package/dist/web-components/{sizedImage-NHzhcBYk.mjs → sizedImage-CKOGmqhN.mjs} +1 -1
  195. package/dist/web-components/{split-CuFiKjin.mjs → split-CcoXZcGX.mjs} +1 -1
  196. package/dist/web-components/{status-C3etlkhY.mjs → status-B4a3Izph.mjs} +1 -1
  197. package/dist/web-components/styles-C7PVxtkQ.mjs +1 -0
  198. package/dist/web-components/svg-shape-D1K-WNrY.mjs +1 -0
  199. package/dist/web-components/three.mjs +1 -1
  200. package/dist/web-components/thumbnail-ez20ssEY.mjs +1 -0
  201. package/dist/web-components/{tip-D5YgaIWW.mjs → tip-DeFPN33O.mjs} +1 -1
  202. package/dist/web-components/{toggle-CZGB65VZ.mjs → toggle-CGSnnjW-.mjs} +1 -1
  203. package/dist/web-components/trusted-Bvpx307M.mjs +1 -0
  204. package/dist/web-components/{useContainerName-hKQjEt7a.mjs → useContainerName-BfyeBf6_.mjs} +1 -1
  205. package/dist/web-components/useControlsVisibility-oRiMiQhD.mjs +1 -0
  206. package/dist/web-components/useLazyPanelPane-CReKsr8z.mjs +1 -0
  207. package/dist/web-components/{useNearViewport-CDbHQUBk.mjs → useNearViewport-BADiMpLi.mjs} +1 -1
  208. package/dist/web-components/{useScrollTrack-D9l_P3_B.mjs → useScrollTrack-9QsMaHSx.mjs} +1 -1
  209. package/dist/web-components/viewer/{AnnotationItems-DtsnDXPM.mjs → AnnotationItems-Cvh3jfmf.mjs} +1 -1
  210. package/dist/web-components/viewer/{AnnotationMenu-C-Mz6CCn.mjs → AnnotationMenu-d5PT7q8D.mjs} +1 -1
  211. package/dist/web-components/viewer/{AnnotationState-5pim5K72.mjs → AnnotationState-DbtYTHMy.mjs} +1 -1
  212. package/dist/web-components/viewer/{Annotations-Cqn1TkzD.mjs → Annotations-DKWYJOo2.mjs} +2 -2
  213. package/dist/web-components/viewer/{Annotations-CxwN9FkB.mjs → Annotations-D_wg4O99.mjs} +1 -1
  214. package/dist/web-components/viewer/{Canvas2DBackend-C-ZMSCak.mjs → Canvas2DBackend-B4IXvdsN.mjs} +1 -1
  215. package/dist/web-components/viewer/{CaptionDetails-CRD-gSZP.mjs → CaptionDetails-Bxh9VD7n.mjs} +1 -1
  216. package/dist/web-components/viewer/ChaptersMenu-CaAIaRZN.mjs +1 -0
  217. package/dist/web-components/viewer/{ChoiceMenu-ByGzQQx1.mjs → ChoiceMenu-Clp4Zeog.mjs} +1 -1
  218. package/dist/web-components/viewer/{Collection-m0GCcsfQ.mjs → Collection-C5BfoUOH.mjs} +1 -1
  219. package/dist/web-components/viewer/Connected-9VGl2Xnx.mjs +1 -0
  220. package/dist/web-components/viewer/{Connected-Dvx7wtot.mjs → Connected-Cd2qwuuo.mjs} +1 -1
  221. package/dist/web-components/viewer/{Contents-CwDpfiJY.mjs → Contents-CsG9e7v2.mjs} +1 -1
  222. package/dist/web-components/viewer/ControlMenu-q_u_UC8q.mjs +1 -0
  223. package/dist/web-components/viewer/ControlsFade-Db3IWArv.mjs +1 -0
  224. package/dist/web-components/viewer/CountMenu-Dn0-z5A9.mjs +1 -0
  225. package/dist/web-components/viewer/Cue-slOJQhPI.mjs +1 -0
  226. package/dist/web-components/viewer/Document-r3Sz3RfH.mjs +1 -0
  227. package/dist/web-components/viewer/{DomLayers-hc0qARQc.mjs → DomLayers-CwHg1jZg.mjs} +1 -1
  228. package/dist/web-components/viewer/{Download-MO-1Rik4.mjs → Download-Clx_e2ga.mjs} +1 -1
  229. package/dist/web-components/viewer/{EntryBodies-g-OEwEsk.mjs → EntryBodies-B4SnV6NJ.mjs} +1 -1
  230. package/dist/web-components/viewer/{EntryThumbnail-DcIDYATi.mjs → EntryThumbnail-CsAqKh38.mjs} +1 -1
  231. package/dist/web-components/viewer/{FieldPill-B9S21lxw.mjs → FieldPill-NQfq8SXA.mjs} +1 -1
  232. package/dist/web-components/viewer/{FrameAnimation-qI9cZPEs.mjs → FrameAnimation-wN2VNW7D.mjs} +1 -1
  233. package/dist/web-components/viewer/Gallery-nX9kQlft.mjs +1 -0
  234. package/dist/web-components/viewer/{HideToggle-D8wH49mq.mjs → HideToggle-B843JuKU.mjs} +1 -1
  235. package/dist/web-components/viewer/ImageControls--qeUY5kg.mjs +1 -0
  236. package/dist/web-components/viewer/{LanguageChoice-CRqsCBAp.mjs → LanguageChoice-CZ6K3Mhv.mjs} +1 -1
  237. package/dist/web-components/viewer/LightboxView-BcbP3cJD.mjs +1 -0
  238. package/dist/web-components/viewer/{ListEnd-D9Obxie4.mjs → ListEnd-DbYDv46a.mjs} +1 -1
  239. package/dist/web-components/viewer/MapView-Dj7Iq7P2.mjs +3 -0
  240. package/dist/web-components/viewer/MediaBody-TN4XsCm7.mjs +1 -0
  241. package/dist/web-components/viewer/{MediaBody-D5ff6xy-.mjs → MediaBody-iAxGgXNy.mjs} +1 -1
  242. package/dist/web-components/viewer/{NavDate-BnfDG57h.mjs → NavDate-Clj6OMa6.mjs} +1 -1
  243. package/dist/web-components/viewer/{Navigator-BNwjmkXY.mjs → Navigator-DPdR3SYX.mjs} +1 -1
  244. package/dist/web-components/viewer/{PagerLayout-C8jraHqs.mjs → PagerLayout-CtlmDRjI.mjs} +1 -1
  245. package/dist/web-components/viewer/PanelPart-DzZWRlK1.mjs +1 -0
  246. package/dist/web-components/viewer/{PartOfManifest-DX7H0V4g.mjs → PartOfManifest-NAXs2DYd.mjs} +1 -1
  247. package/dist/web-components/viewer/{PlaceBox-CCWfzsNU.mjs → PlaceBox-C2k5Fsfo.mjs} +1 -1
  248. package/dist/web-components/viewer/Placeholder-DF6dRMjt.mjs +1 -0
  249. package/dist/web-components/viewer/{Search-CsdYzdq1.mjs → Search-DoUc8tWu.mjs} +1 -1
  250. package/dist/web-components/viewer/{StandaloneItems-BfvBxbUm.mjs → StandaloneItems-DuXasJO0.mjs} +1 -1
  251. package/dist/web-components/viewer/{Steps-BH8ZApS4.mjs → Steps-B3MrG4Cv.mjs} +1 -1
  252. package/dist/web-components/viewer/TargetItems-DOFSQtYR.mjs +1 -0
  253. package/dist/web-components/viewer/{Transcript-DXLv5WR9.mjs → Transcript-Dy-FHWMo.mjs} +1 -1
  254. package/dist/web-components/viewer/Transport-C5wkxVOF.mjs +1 -0
  255. package/dist/web-components/viewer/{Transport-C-fh7Kx2.mjs → Transport-CUXmY_jW.mjs} +1 -1
  256. package/dist/web-components/viewer/{annotation-collection-Cjd8Dgyl.mjs → annotation-collection-A0PNdPhI.mjs} +1 -1
  257. package/dist/web-components/viewer/annotation-name-CfQs7Mb2.mjs +1 -0
  258. package/dist/web-components/viewer/{annotations-content-BARXoAz-.mjs → annotations-content-B52-zM99.mjs} +1 -1
  259. package/dist/web-components/viewer/{cloverEngine-CumnJPKO.mjs → cloverEngine-4sgpB7Rz.mjs} +1 -1
  260. package/dist/web-components/viewer/{content-state-reader-DuvyLThu.mjs → content-state-reader-vtATl-W3.mjs} +1 -1
  261. package/dist/web-components/viewer/{dragToClose-CFCxhUxn.mjs → dragToClose-B4rj1D3r.mjs} +1 -1
  262. package/dist/web-components/viewer/{fetchManifest-qNB_KgxL.mjs → fetchManifest-gAj8phm4.mjs} +1 -1
  263. package/dist/web-components/viewer/{host-GTHX2fPK.mjs → host-Hv8WXfiF.mjs} +1 -1
  264. package/dist/web-components/viewer/{image-layers-DKOuaRTj.mjs → image-layers-gFEDKVkV.mjs} +1 -1
  265. package/dist/web-components/viewer/index.mjs +1 -1
  266. package/dist/web-components/viewer/{link-BlaM0tCa.mjs → link-DIh6ysyo.mjs} +1 -1
  267. package/dist/web-components/viewer/{overlayImage-RVpv69R5.mjs → overlayImage-BRjcH40Q.mjs} +1 -1
  268. package/dist/web-components/viewer/{range-regions-CIZiAHOp.mjs → range-regions-uPqjKIER.mjs} +1 -1
  269. package/dist/web-components/viewer/{renderers-Dw1klwlx.mjs → renderers-C5EfPrd7.mjs} +1 -1
  270. package/dist/web-components/viewer/{save-file-EvzaBEJN.mjs → save-file-dIa0LCAn.mjs} +1 -1
  271. package/dist/web-components/viewer/{search-x1QL_bth.mjs → search-Bbv9dCNq.mjs} +1 -1
  272. package/dist/web-components/viewer/styles-L1HpSoL2.mjs +1 -0
  273. package/dist/web-components/viewer/useControlsVisibility-jopIdHZi.mjs +1 -0
  274. package/dist/web-components/viewer/useLazyPanelPane-CoPgtYkx.mjs +1 -0
  275. package/dist/web-components/viewer/viewer-DqpSyvH-.mjs +29 -0
  276. package/dist/web-components/viewer/vtt-DpgB_K8v.mjs +5 -0
  277. package/dist/web-components/viewer-D2lGdifc.mjs +1 -0
  278. package/dist/web-components/vtt-KUQbi4PK.mjs +5 -0
  279. package/dist/web-components/worker-C9aVbya_.mjs +1 -0
  280. package/package.json +2 -1
  281. package/dist/web-components/Button-L8ZMy5lY.mjs +0 -1
  282. package/dist/web-components/CanvasView-2Fj9nT06.mjs +0 -2
  283. package/dist/web-components/ChaptersMenu-Bj2EqtVJ.mjs +0 -1
  284. package/dist/web-components/ControlMenu-D1zkB0qX.mjs +0 -1
  285. package/dist/web-components/ControlsFade-BNXVTL_Q.mjs +0 -1
  286. package/dist/web-components/CountMenu-Dnzb7lKo.mjs +0 -1
  287. package/dist/web-components/Cue-CUGmPS3k.mjs +0 -1
  288. package/dist/web-components/Document-D-8nalCX.mjs +0 -1
  289. package/dist/web-components/Gallery-4Hd58afA.mjs +0 -1
  290. package/dist/web-components/ImageControls-CZO7WoPb.mjs +0 -1
  291. package/dist/web-components/LightboxView-C4OASmkg.mjs +0 -1
  292. package/dist/web-components/LoadedMap-WATGNLxl.mjs +0 -1
  293. package/dist/web-components/MapView-3OxoCr5l.mjs +0 -3
  294. package/dist/web-components/Markup-DW75Jx3j.mjs +0 -2
  295. package/dist/web-components/MediaBody-CLtd0bf0.mjs +0 -1
  296. package/dist/web-components/Panel-BvDpCn6K.mjs +0 -1
  297. package/dist/web-components/PanelPart-Bd4lSUrP.mjs +0 -1
  298. package/dist/web-components/Placeholder-DzY5hcbk.mjs +0 -1
  299. package/dist/web-components/Root-Bt3NNBFb.mjs +0 -1
  300. package/dist/web-components/Scene-DrOM9YlD.mjs +0 -1
  301. package/dist/web-components/SceneView-DA7Yg20p.mjs +0 -1
  302. package/dist/web-components/TargetItems-BDJM3Ar-.mjs +0 -1
  303. package/dist/web-components/Timeline-BfdN3lIv.mjs +0 -1
  304. package/dist/web-components/Tip-OCB88zwY.mjs +0 -1
  305. package/dist/web-components/Transport-DaIhfZqC.mjs +0 -1
  306. package/dist/web-components/hooks-BhtNDs_1.mjs +0 -1
  307. package/dist/web-components/index-FJEpXukG.mjs +0 -1
  308. package/dist/web-components/items-BPPrqbeh.mjs +0 -1
  309. package/dist/web-components/label-DauFa5sg.mjs +0 -1
  310. package/dist/web-components/logo-DWPxaZaG.mjs +0 -1
  311. package/dist/web-components/masonry-0QfzOgbB.mjs +0 -1
  312. package/dist/web-components/part-CekFWrtz.mjs +0 -1
  313. package/dist/web-components/pointer-YQppt0at.mjs +0 -1
  314. package/dist/web-components/rendererSurface-BkbGDL_Z.mjs +0 -22
  315. package/dist/web-components/shared-DkY2a89G.mjs +0 -1
  316. package/dist/web-components/styles-DkkVOSUQ.mjs +0 -1
  317. package/dist/web-components/svg-shape-DLY3g7oq.mjs +0 -1
  318. package/dist/web-components/thumbnail-DecrVnpj.mjs +0 -1
  319. package/dist/web-components/useControlsVisibility-DPg8uAkW.mjs +0 -1
  320. package/dist/web-components/useLazyPanelPane-eby-OI1V.mjs +0 -1
  321. package/dist/web-components/viewer/ChaptersMenu-Brcq3yJv.mjs +0 -1
  322. package/dist/web-components/viewer/Connected-Bmc_CdUD.mjs +0 -1
  323. package/dist/web-components/viewer/ControlMenu-TcO85hDf.mjs +0 -1
  324. package/dist/web-components/viewer/ControlsFade-BoZ4ABAE.mjs +0 -1
  325. package/dist/web-components/viewer/CountMenu-0-ie8kIZ.mjs +0 -1
  326. package/dist/web-components/viewer/Cue-DxmAS9Gx.mjs +0 -1
  327. package/dist/web-components/viewer/Document-BsryuYJ1.mjs +0 -1
  328. package/dist/web-components/viewer/Gallery-BOgUqfqw.mjs +0 -1
  329. package/dist/web-components/viewer/ImageControls-ZoEC9jWd.mjs +0 -1
  330. package/dist/web-components/viewer/LightboxView-BB-GcbYr.mjs +0 -1
  331. package/dist/web-components/viewer/MapView-DQSwUzd7.mjs +0 -3
  332. package/dist/web-components/viewer/MediaBody-CIw2nTlj.mjs +0 -1
  333. package/dist/web-components/viewer/PanelPart-YNbBI9SQ.mjs +0 -1
  334. package/dist/web-components/viewer/Placeholder-CsEkLhz7.mjs +0 -1
  335. package/dist/web-components/viewer/TargetItems-BebPFr-c.mjs +0 -1
  336. package/dist/web-components/viewer/Transport-CY6BWfMi.mjs +0 -1
  337. package/dist/web-components/viewer/annotation-name-CwmgQFia.mjs +0 -1
  338. package/dist/web-components/viewer/styles-I7_LWFGj.mjs +0 -1
  339. package/dist/web-components/viewer/useControlsVisibility-C_SQHIVR.mjs +0 -1
  340. package/dist/web-components/viewer/useLazyPanelPane-UuGDJrf_.mjs +0 -1
  341. package/dist/web-components/viewer/viewer-DJrQuNs1.mjs +0 -29
  342. package/dist/web-components/viewer/vtt-C2G89SWH.mjs +0 -5
  343. package/dist/web-components/viewer-Br44EEba.mjs +0 -1
  344. package/dist/web-components/vtt-Dd0c7psH.mjs +0 -5
  345. package/dist/web-components/worker-CjXN0dku.mjs +0 -1
@@ -1,3 +1,3 @@
1
- /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function rn(n,o){(o==null||o>n.length)&&(o=n.length);for(var s=0,l=Array(o);s<o;s++)l[s]=n[s];return l}function mo(n){if(Array.isArray(n))return n}function ho(n,o){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var l,c,m,E,$=[],C=true,Dt=false;try{if(m=(s=s.call(n)).next,o!==0)for(;!(C=(l=m.call(s)).done)&&($.push(l.value),$.length!==o);C=true);}catch(nt){Dt=true,c=nt}finally{try{if(!C&&s.return!=null&&(E=s.return(),Object(E)!==E))return}finally{if(Dt)throw c}}return $}}function To(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function _o(n,o){return mo(n)||ho(n,o)||go(n,o)||To()}function go(n,o){if(n){if(typeof n=="string")return rn(n,o);var s={}.toString.call(n).slice(8,-1);return s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?rn(n,o):void 0}}const Sn=Object.entries,an=Object.setPrototypeOf,Ao=Object.isFrozen,bn=Object.getPrototypeOf,yn=Object.getOwnPropertyDescriptor;let y=Object.freeze,R=Object.seal,mt=Object.create,On=typeof Reflect<"u"&&Reflect,be=On.apply,ye=On.construct;y||(y=function(o){return o});R||(R=function(o){return o});be||(be=function(o,s){for(var l=arguments.length,c=new Array(l>2?l-2:0),m=2;m<l;m++)c[m-2]=arguments[m];return o.apply(s,c)});ye||(ye=function(o){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return new o(...l)});const W=g(Array.prototype.forEach),Eo=g(Array.prototype.lastIndexOf),sn=g(Array.prototype.pop),bt=g(Array.prototype.push),So=g(Array.prototype.slice),bo=g(Array.prototype.splice),dt=Array.isArray,me=Rn(Set),de=g(Set.prototype.add),yt=g(Set.prototype.has),et=g(String.prototype.toLowerCase),he=g(String.prototype.toString),ln=g(String.prototype.match),Ot=g(String.prototype.replace),cn=g(String.prototype.indexOf),yo=g(String.prototype.trim),Oo=g(Number.prototype.toString),Ro=g(Boolean.prototype.toString),un=typeof BigInt>"u"?null:g(BigInt.prototype.toString),fn=typeof Symbol>"u"?null:g(Symbol.prototype.toString),N=g(Object.prototype.hasOwnProperty),Rt=g(Object.prototype.toString),O=g(RegExp.prototype.test),G=Rn(TypeError);function g(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return be(n,o,l)}}function Rn(n){return function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return ye(n,s)}}function d(n,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:et;if(an&&an(n,null),!dt(o))return n;let l=o.length;for(;l--;){let c=o[l];if(typeof c=="string"){const m=s(c);m!==c&&(Ao(o)||(o[l]=m),c=m)}n[c]=true}return n}function Do(n){for(let o=0;o<n.length;o++)N(n,o)||(n[o]=null);return n}function M(n){const o=mt(null);for(const l of Sn(n)){var s=_o(l,2);const c=s[0],m=s[1];N(n,c)&&(dt(m)?o[c]=Do(m):m&&typeof m=="object"&&m.constructor===Object?o[c]=M(m):o[c]=m)}return o}function Lo(n){switch(typeof n){case"string":return n;case"number":return Oo(n);case"boolean":return Ro(n);case"bigint":return un?un(n):"0";case"symbol":return fn?fn(n):"Symbol()";case"undefined":return Rt(n);case"function":case"object":{if(n===null)return Rt(n);const o=n,s=P(o,"toString");if(typeof s=="function"){const l=s(o);return typeof l=="string"?l:Rt(l)}return Rt(n)}default:return Rt(n)}}function P(n,o){for(;n!==null;){const l=yn(n,o);if(l){if(l.get)return g(l.get);if(typeof l.value=="function")return g(l.value)}n=bn(n)}function s(){return null}return s}function wo(n,o){for(;n!==null;){const s=yn(n,o);if(s)return s.get?g(s.get):null;n=bn(n)}return null}function Io(n){try{return O(n,""),true}catch{return false}}const pn=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Te=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_e=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),No=y(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ge=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Co=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mn=y(["#text"]),dn=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ae=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hn=y(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zt=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mo=R(/{{[\w\W]*|^[\w\W]*}}/g),vo=R(/<%[\w\W]*|^[\w\W]*%>/g),Po=R(/\${[\w\W]*/g),xo=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),ko=R(/^aria-[\-\w]+$/),Tn=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Uo=R(/^(?:\w+script|data):/i),zo=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fo=R(/^html$/i),Ho=R(/^[a-z][.\w]*(-[.\w]+)+$/i),Ee=R(/<[/\w!]/g),_n=R(/<[/\w]/g),Wo=R(/<\/no(script|embed|frames)/i),gn=R(/\/>/i),S={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Go=y(d({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Bo=function(){return typeof window>"u"?null:window},Yo=function(o,s){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let l=null;const c="data-tt-policy-suffix";s&&s.hasAttribute(c)&&(l=s.getAttribute(c));const m="dompurify"+(l?"#"+l:"");try{return o.createPolicy(m,{createHTML(E){return E},createScriptURL(E){return E}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},An=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},j=function(o,s,l,c){return N(o,s)&&dt(o[s])?d(c.base?M(c.base):{},o[s],c.transform):l},Se=function(o,s,l){const c=N(o,s)?o[s]:void 0;return c&&typeof c=="object"?M(c):l()};function Dn(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bo();const o=a=>Dn(a);if(o.version="3.4.17",o.removed=[],!n||!n.document||n.document.nodeType!==S.document||!n.Element)return o.isSupported=false,o;let s=n.document;const l=s,c=l.currentScript;n.DocumentFragment;const m=n.HTMLTemplateElement,E=n.Node,$=n.Element,C=n.NodeFilter;n.NamedNodeMap===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;const Dt=n.DOMParser,nt=n.trustedTypes,F=$.prototype,vn=P(F,"cloneNode"),Ft=P(F,"remove"),Oe=P(F,"removeAttributeNode"),Pn=P(F,"nextSibling"),ht=P(F,"childNodes"),ot=P(F,"parentNode"),Ht=P(F,"shadowRoot"),Wt=P(F,"attributes"),X=E&&E.prototype?P(E.prototype,"nodeType"):null,rt=E&&E.prototype?P(E.prototype,"nodeName"):null,Lt=E&&E.prototype?P(E.prototype,"ownerDocument"):null,v=function(t){return X?X(t):t.nodeType},Tt=function(t){return rt?rt(t):t.nodeName},Re=wo(F,"namespaceURI"),Gt=function(t){return Re?Re(t):t.namespaceURI};if(typeof m=="function"){const a=s.createElement("template");a.content&&a.content.ownerDocument&&(s=a.content.ownerDocument)}let L,q="",Bt,De=false,_t=0;const Le=function(){if(_t>0)throw G('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},it=function(t){Le(),_t++;try{return L.createHTML(t)}finally{_t--}},xn=function(t){Le(),_t++;try{return L.createScriptURL(t)}finally{_t--}},kn=function(){return De||(Bt=Yo(nt,c),De=true),Bt},wt=s,Yt=wt.implementation,we=wt.createNodeIterator,Un=wt.createDocumentFragment,zn=wt.getElementsByTagName,Fn=l.importNode;let h=An();o.isSupported=typeof Sn=="function"&&typeof ot=="function"&&Yt&&Yt.createHTMLDocument!==void 0;const Hn=Mo,Wn=vo,Gn=Po,Bn=xo,Yn=ko,Vn=Uo,Ie=zo,jn=Ho;let Ne=Tn,T=null;const Vt=d({},[...pn,...Te,..._e,...ge,...mn]);let _=null;const jt=d({},[...dn,...Ae,...hn,...zt]);let k=Object.seal(mt(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}})),gt=null,Ce=null;const B=Object.seal(mt(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}}));let Me=true,$t=true,ve=false,Xt=true,H=false,K=true,Z=false,qt=false,It=null,Nt=null,Kt=false,at=false,Ct=false,Mt=false,Pe=true,xe=false;const ke="user-content-";let Zt=true,Jt=false,J=null,st={},Q=null;const Ue=d({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ze=null;const Fe=d({},["audio","video","img","source","image","track"]);let He=null;const We=d({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",Pt="http://www.w3.org/2000/svg",U="http://www.w3.org/1999/xhtml";let lt=U,Qt=false,te=null;const $n=d({},[vt,Pt,U],he),Ge=y(["mi","mo","mn","ms","mtext"]);let ee=d({},Ge);const Be=y(["annotation-xml"]);let ne=d({},Be);const Xn=d({},["title","style","font","a","script"]);let At=null;const qn=["application/xhtml+xml","text/html"],Kn="text/html";let A=null,ct=null;const Zn=s.createElement("form"),Ye=function(t){return t instanceof RegExp||t instanceof Function},oe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ct&&ct===t)return;(!t||typeof t!="object")&&(t={}),t=M(t),At=qn.indexOf(t.PARSER_MEDIA_TYPE)===-1?Kn:t.PARSER_MEDIA_TYPE,A=At==="application/xhtml+xml"?he:et,T=j(t,"ALLOWED_TAGS",Vt,{transform:A}),_=j(t,"ALLOWED_ATTR",jt,{transform:A}),te=j(t,"ALLOWED_NAMESPACES",$n,{transform:he}),He=j(t,"ADD_URI_SAFE_ATTR",We,{transform:A,base:We}),ze=j(t,"ADD_DATA_URI_TAGS",Fe,{transform:A,base:Fe}),Q=j(t,"FORBID_CONTENTS",Ue,{transform:A}),gt=j(t,"FORBID_TAGS",M({}),{transform:A}),Ce=j(t,"FORBID_ATTR",M({}),{transform:A}),st=N(t,"USE_PROFILES")?t.USE_PROFILES&&typeof t.USE_PROFILES=="object"?M(t.USE_PROFILES):t.USE_PROFILES:false,Me=t.ALLOW_ARIA_ATTR!==false,$t=t.ALLOW_DATA_ATTR!==false,ve=t.ALLOW_UNKNOWN_PROTOCOLS||false,Xt=t.ALLOW_SELF_CLOSE_IN_ATTR!==false,H=t.SAFE_FOR_TEMPLATES||false,K=t.SAFE_FOR_XML!==false,Z=t.WHOLE_DOCUMENT||false,at=t.RETURN_DOM||false,Ct=t.RETURN_DOM_FRAGMENT||false,Mt=t.RETURN_TRUSTED_TYPE||false,Kt=t.FORCE_BODY||false,Pe=t.SANITIZE_DOM!==false,xe=t.SANITIZE_NAMED_PROPS||false,Zt=t.KEEP_CONTENT!==false,Jt=t.IN_PLACE||false,Ne=Io(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:Tn,lt=typeof t.NAMESPACE=="string"?t.NAMESPACE:U,ee=Se(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>d({},Ge)),ne=Se(t,"HTML_INTEGRATION_POINTS",()=>d({},Be));const e=Se(t,"CUSTOM_ELEMENT_HANDLING",()=>mt(null));if(k=mt(null),N(e,"tagNameCheck")&&Ye(e.tagNameCheck)&&(k.tagNameCheck=e.tagNameCheck),N(e,"attributeNameCheck")&&Ye(e.attributeNameCheck)&&(k.attributeNameCheck=e.attributeNameCheck),N(e,"allowCustomizedBuiltInElements")&&typeof e.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),R(k),H&&($t=false),Ct&&(at=true),st&&(T=d({},mn),_=mt(null),st.html===true&&(d(T,pn),d(_,dn)),st.svg===true&&(d(T,Te),d(_,Ae),d(_,zt)),st.svgFilters===true&&(d(T,_e),d(_,Ae),d(_,zt)),st.mathMl===true&&(d(T,ge),d(_,hn),d(_,zt))),B.tagCheck=null,B.attributeCheck=null,N(t,"ADD_TAGS")&&(typeof t.ADD_TAGS=="function"?B.tagCheck=t.ADD_TAGS:dt(t.ADD_TAGS)&&(T===Vt&&(T=M(T)),d(T,t.ADD_TAGS,A))),N(t,"ADD_ATTR")&&(typeof t.ADD_ATTR=="function"?B.attributeCheck=t.ADD_ATTR:dt(t.ADD_ATTR)&&(_===jt&&(_=M(_)),d(_,t.ADD_ATTR,A))),N(t,"ADD_FORBID_CONTENTS")&&dt(t.ADD_FORBID_CONTENTS)&&(Q===Ue&&(Q=M(Q)),d(Q,t.ADD_FORBID_CONTENTS,A)),Zt&&(T["#text"]=true),Z&&d(T,["html","head","body"]),T.table&&(d(T,["tbody"]),delete gt.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const r=L;L=t.TRUSTED_TYPES_POLICY;try{q=it("")}catch(i){throw L=r,i}}else t.TRUSTED_TYPES_POLICY===null?(L=void 0,q=""):(L===void 0&&(L=kn()),L&&typeof q=="string"&&(q=it("")));y&&y(t),ct=t},Ve=d({},[...Te,..._e,...No]),je=d({},[...ge,...Co]),Jn=function(t,e,r){return e.namespaceURI===U?t==="svg":e.namespaceURI===vt?t==="svg"&&(r==="annotation-xml"||ee[r]):!!Ve[t]},Qn=function(t,e,r){return e.namespaceURI===U?t==="math":e.namespaceURI===Pt?t==="math"&&ne[r]:!!je[t]},to=function(t,e,r){return e.namespaceURI===Pt&&!ne[r]||e.namespaceURI===vt&&!ee[r]?false:!je[t]&&(Xn[t]||!Ve[t])},eo=function(t){const e=Gt(t),r=et(Tt(t)),i=ot(t);let u,f;return i&&v(i)===S.element?(u={namespaceURI:Gt(i)},f=et(Tt(i))):(u={namespaceURI:lt},f="template"),te[e]?e===Pt?Jn(r,u,f):e===vt?Qn(r,u,f):e===U?to(r,u,f):!!(At==="application/xhtml+xml"&&te[e]):false},Y=function(t){bt(o.removed,{element:t});try{ot(t).removeChild(t)}catch{if(Ft(t),!ot(t))throw G("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},$e=function(t,e,r){try{Oe(t,e)}catch{try{t.removeAttribute(r)}catch{}}},re=function(t){ae(t);const e=ht(t);e&&W(So(e),i=>{try{Ft(i)}catch{}});const r=v(t)===S.element?Wt(t):null;if(r)for(let i=r.length-1;i>=0;--i){const u=r[i],f=u&&u.name;typeof f=="string"&&$e(t,u,f)}},ut=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch{r=null}bt(o.removed,{attribute:r||null,from:e});try{r?Oe(e,r):e.removeAttribute(t)}catch{try{e.removeAttribute(t)}catch{}}if(t==="is")if(at||Ct)try{Y(e)}catch{}else try{e.setAttribute(t,"")}catch{}},Xe=function(t){const e=Wt(t);if(e)for(let r=e.length-1;r>=0;--r){const i=e[r],u=i&&i.name;typeof u!="string"||_[A(u)]||$e(t,i,u)}},ie=function(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:false;const i=[t];for(;i.length>0;){const u=i.pop();if(e(u)===false)continue;if(r&&v(u)===S.element){const p=Ht(u);V(p)&&i.push(p)}const f=ht(u);if(f)for(let p=f.length-1;p>=0;--p)i.push(f[p])}},ae=function(t){ie(t,e=>{v(e)===S.element&&Xe(e)})},se=function(t){const e=[];return ie(t,r=>{e.push(r)},true),e},no=function(t,e){const r=me();W(se(t),i=>{v(i)===S.element&&de(r,i)}),W(e,i=>{v(i)===S.element&&!yt(r,i)&&Xe(i)})},qe=function(t,e){let r=false;return W(o.removed,i=>{i.element&&(r=r||i.element===t,ae(i.element))}),no(t,e),r},oo=8,ro=function(t,e){const r=J;let i=null;const u=()=>(i||(i=me(),W(e,f=>{de(i,f)})),i);for(let f=0;;f++){const p=se(t),b=[t];let z=false;if(W(p,D=>{v(D)===S.documentFragment?bt(b,D):!z&&!yt(r,D)&&(z=yt(u(),D))}),!z)return;if(f>=oo)throw G("the tree kept changing during in-place sanitization; refusing to return it");W(b,(D,w)=>{io(D,w>0,t,u())})}},io=function(t,e,r,i){const u=le(t);let f;for(;f=u.nextNode();)!yt(i,f)||yt(J,f)||(e&&x(h.uponSanitizeShadowNode,f,null),ue(f,r),fe(f,r),V(f.content)&&St(f.content))},ao=function(t){J&&de(J,t)},Ke=function(t,e){return K?t==="patchsrc"?true:t==="for"&&e!=="label"&&e!=="output":false},so=function(t){K&&ie(t,e=>{const r=v(e);if(r===S.processingInstruction||r===S.comment&&O(_n,e.data)){try{Ft(e)}catch{}return false}if(r===S.element){const i=e,u=A(Tt(e));try{i.hasAttribute&&i.hasAttribute("patchsrc")&&i.removeAttribute("patchsrc"),i.hasAttribute&&i.hasAttribute("for")&&Ke("for",u)&&i.removeAttribute("for")}catch{}}return true})},Ze=function(t){let e=null,r=null;if(Kt)t="<remove></remove>"+t;else{const f=ln(t,/^[\r\n\t ]+/);r=f&&f[0]}At==="application/xhtml+xml"&&lt===U&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=L?it(t):t;if(lt===U)try{e=new Dt().parseFromString(i,At)}catch{}if(!e||!e.documentElement){e=Yt.createDocument(lt,"template",null);try{e.documentElement.innerHTML=Qt?q:i}catch{}}const u=e.body||e.documentElement;return t&&r&&u.insertBefore(s.createTextNode(r),u.childNodes[0]||null),lt===U?zn.call(e,Z?"html":"body")[0]:Z?e.documentElement:u},le=function(t){const e=Lt?Lt(t):t.ownerDocument;return we.call(e||t,t,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},xt=function(t){return t=Ot(t,Hn," "),t=Ot(t,Wn," "),t=Ot(t,Gn," "),t},ce=function(t){var e;Je(t);const r=(e=t.querySelectorAll)===null||e===void 0?void 0:e.call(t,"template");r&&W(r,i=>{V(i.content)&&ce(i.content)})},Je=function(t){t.normalize();const e=Lt?Lt(t):t.ownerDocument,r=we.call(e||t,t,C.SHOW_TEXT|C.SHOW_COMMENT|C.SHOW_CDATA_SECTION|C.SHOW_PROCESSING_INSTRUCTION,null);let i=r.nextNode();for(;i;)i.data=xt(i.data),i=r.nextNode()},kt=function(t){const e=rt?rt(t):null;return typeof e!="string"||A(e)!=="form"?false:typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||t.attributes!==Wt(t)||typeof t.removeAttribute!="function"||typeof t.removeAttributeNode!="function"||typeof t.getAttributeNode!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function"||t.nodeType!==X(t)||t.childNodes!==ht(t)},V=function(t){if(!X||typeof t!="object"||t===null)return false;try{return X(t)===S.documentFragment}catch{return false}},Et=function(t){if(!X||typeof t!="object"||t===null)return false;try{return typeof X(t)=="number"}catch{return false}};function x(a,t,e){a.length!==0&&W(a,r=>{r.call(o,t,e,ct)})}const lo=function(t,e){return!!(K&&t.hasChildNodes()&&!Et(t.firstElementChild)&&O(Ee,t.textContent)&&O(Ee,t.innerHTML)||K&&Go[e]&&v(t)===S.element&&Gt(t)===U&&(Et(t.firstElementChild)||typeof t.textContent=="string"&&O(Ee,t.textContent))||t.nodeType===S.processingInstruction||K&&t.nodeType===S.comment&&O(_n,t.data))},Ut=function(t,e){if(t instanceof RegExp)return O(t,e);if(t instanceof Function){for(var r=arguments.length,i=new Array(r>2?r-2:0),u=2;u<r;u++)i[u-2]=arguments[u];return!!t(e,...i)}return false},co=function(t,e,r){if(!gt[e]&&en(e)&&Ut(k.tagNameCheck,e))return false;if(Zt&&!Q[e]&&!Q[et(e)]){const i=ot(t),u=ht(t);if(u&&i){const f=u.length;for(let p=f-1;p>=0;--p){const b=t===r?vn(u[p],true):u[p];i.insertBefore(b,Pn(t))}}}return Y(t),true},Qe=function(t,e,r,i){return t.length===0?e:e===r||e===i?M(e):e},ft=function(t,e){return t===e||ot(t)!==null?false:(Jt&&ae(t),true)},ue=function(t,e){if(ao(t),x(h.beforeSanitizeElements,t,null),ft(t,e))return true;if(kt(t))return Y(t),true;const r=A(Tt(t));if(T=Qe(h.uponSanitizeElement,T,Vt,It),x(h.uponSanitizeElement,t,{tagName:r,allowedTags:T}),ft(t,e))return true;if(lo(t,r))return Y(t),true;if(gt[r]||!(B.tagCheck instanceof Function&&B.tagCheck(r))&&!T[r]){const i=co(t,r,e);return i===false&&(x(h.afterSanitizeElements,t,null),ft(t,e))?true:i}if(v(t)===S.element&&!eo(t)||(r==="noscript"||r==="noembed"||r==="noframes")&&O(Wo,t.innerHTML))return Y(t),true;if(H&&t.nodeType===S.text){const i=xt(t.textContent);t.textContent!==i&&(bt(o.removed,{element:t.cloneNode()}),t.textContent=i)}return x(h.afterSanitizeElements,t,null),ft(t,e)},tn=function(t,e,r){if(Ce[e]||Ke(e,t)||Pe&&(e==="id"||e==="name")&&(r in s||r in Zn))return false;const i=_[e]||B.attributeCheck instanceof Function&&B.attributeCheck(e,t);return $t&&O(Bn,e)||Me&&O(Yn,e)?true:i?He[e]||O(Ne,Ot(r,Ie,""))||(e==="src"||e==="xlink:href"||e==="href")&&t!=="script"&&cn(r,"data:")===0&&ze[t]||ve&&!O(Vn,Ot(r,Ie,""))?true:!r:en(t)&&Ut(k.tagNameCheck,t)&&Ut(k.attributeNameCheck,e,t)||e==="is"&&k.allowCustomizedBuiltInElements&&Ut(k.tagNameCheck,r)},uo=d({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),en=function(t){return!uo[et(t)]&&O(jn,t)},fo=function(t,e,r,i){if(L&&typeof nt=="object"&&typeof nt.getAttributeType=="function"&&!r)switch(nt.getAttributeType(t,e)){case"TrustedHTML":return it(i);case"TrustedScriptURL":return xn(i)}return i},po=function(t,e,r,i){try{return r?t.setAttributeNS(r,e,i):t.setAttribute(e,i),kt(t)?(Y(t),false):true}catch{return ut(e,t),false}},nn=function(t,e){return K&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e)?true:et(t)==="attributename"&&ln(e,"href")!==null},fe=function(t,e){if(x(h.beforeSanitizeAttributes,t,null),ft(t,e))return;const r=t.attributes;if(!r||kt(t))return;_=Qe(h.uponSanitizeAttribute,_,jt,Nt);const i={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:_,forceKeepAttr:void 0};let u=r.length;const f=A(t.nodeName);for(;u--;){const p=r[u],b=p.name,z=p.namespaceURI,D=p.value,w=A(b),pt=D;let I=b==="value"?pt:yo(pt),on=false;if(i.attrName=w,i.attrValue=I,i.keepAttr=true,i.forceKeepAttr=void 0,x(h.uponSanitizeAttribute,t,i),I=i.attrValue,xe&&(w==="id"||w==="name")&&cn(I,ke)!==0&&(ut(b,t,p),I=ke+I,on=true),nn(b,I)){ut(b,t,p);continue}if(!i.forceKeepAttr){if(!i.keepAttr){ut(b,t,p);continue}if(!Xt&&O(gn,I)){ut(b,t,p);continue}if(H&&(I=xt(I)),!tn(f,w,I)){ut(b,t,p);continue}I=fo(f,w,z,I),I!==pt&&po(t,b,z,I)&&on&&sn(o.removed)}}x(h.afterSanitizeAttributes,t,null),ft(t,e)},St=function(t){let e=null;const r=le(t);for(x(h.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(x(h.uponSanitizeShadowNode,e,null),ue(e,t),fe(e,t),V(e.content)&&St(e.content),v(e)===S.element){const i=Ht(e);V(i)&&(pe(i),St(i))}H&&Je(t),x(h.afterSanitizeShadowDOM,t,null)},pe=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const r=e.pop();if(r.shadow){St(r.shadow);continue}const i=r.node,u=v(i)===S.element,f=ht(i);if(f)for(let p=f.length-1;p>=0;--p)e.push({node:f[p],shadow:null});if(u){const p=rt?rt(i):null;if(typeof p=="string"&&A(p)==="template"){const b=i.content;V(b)&&e.push({node:b,shadow:null})}}if(u){const p=Ht(i);V(p)&&e.push({node:null,shadow:p},{node:p,shadow:null})}}};return o.sanitize=function(a){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,r=null,i=null,u=null;if(Qt=!a,Qt&&(a="<!-->"),typeof a!="string"&&!Et(a)&&(a=Lo(a),typeof a!="string"))throw G("dirty is not a string, aborting");if(!o.isSupported)return a;qt?(T=It,_=Nt):oe(t),(h.uponSanitizeElement.length>0||h.uponSanitizeAttribute.length>0)&&(T=M(T)),h.uponSanitizeAttribute.length>0&&(_=M(_)),o.removed=[];const f=Jt&&typeof a!="string"&&Et(a);let p=[];const b=J;if(f){so(a);const w=Tt(a);if(typeof w=="string"){const pt=A(w);if(!T[pt]||gt[pt])throw re(a),G("root node is forbidden and cannot be sanitized in-place")}if(kt(a))throw re(a),G("root node is clobbered and cannot be sanitized in-place");p=se(a),J=me()}else if(Et(a))e=Ze("<!---->"),r=e.ownerDocument.importNode(a,true),r.nodeType===S.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?e=r:e.appendChild(r),pe(e);else{if(!at&&!H&&!Z&&a.indexOf("<")===-1)return L&&Mt?it(a):a;if(e=Ze(a),!e)return at?null:Mt?q:""}e&&Kt&&Y(e.firstChild);const z=f?a:e;try{f&&pe(a);const w=le(z);for(;i=w.nextNode();)ue(i,z),fe(i,z),V(i.content)&&St(i.content);f&&ro(a,p)}catch(w){throw f&&(re(a),qe(a,p)),w}finally{J=b}if(f){if(qe(a,p))throw G("a node selected for removal could not be safely returned; refusing to sanitize in place");return H&&ce(a),a}if(at){if(H&&ce(e),Ct)for(u=Un.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(_.shadowroot||_.shadowrootmode)&&(u=Fn.call(l,u,true)),u}let D=Z?e.outerHTML:e.innerHTML;return Z&&T["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&O(Fo,e.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
3
- `+D),H&&(D=xt(D)),L&&Mt?it(D):D},o.setConfig=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oe(a),qt=true,It=T,Nt=_},o.clearConfig=function(){ct=null,qt=false,It=null,Nt=null,L=Bt,q=""},o.isValidAttribute=function(a,t,e){ct||oe({});const r=A(a),i=A(t);return typeof e=="string"&&(nn(t,e)||!Xt&&O(gn,e))?false:tn(r,i,e)},o.addHook=function(a,t){typeof t=="function"&&N(h,a)&&bt(h[a],t)},o.removeHook=function(a,t){if(N(h,a)){if(t!==void 0){const e=Eo(h[a],t);return e===-1?void 0:bo(h[a],e,1)[0]}return sn(h[a])}},o.removeHooks=function(a){N(h,a)&&(h[a]=[])},o.removeAllHooks=function(){h=An()},o}var Vo=Dn();const Ln=["a","b","br","i","img","p","small","span","sub","sup"],wn=["href","alt","src","height","width","lang","dir"],In=["height","width","lang","dir"],Nn=/^(?:https?|mailto):/i,Cn={ALLOWED_TAGS:Ln,ALLOWED_ATTR:wn,ADD_URI_SAFE_ATTR:In,ALLOWED_URI_REGEXP:Nn,ALLOW_ARIA_ATTR:false,ALLOW_DATA_ATTR:false},jo={...Cn,ALLOWED_TAGS:[...Ln,"ul","ol","li","div"],ALLOWED_ATTR:[...wn,"role","aria-level","start","id","aria-labelledby"],ADD_URI_SAFE_ATTR:[...In,"aria-level","start","id","aria-labelledby"]},En=/^clover-md-\d+$/,$o={role:[["P",/^heading$/],["DIV",/^group$/]],"aria-level":[["P",/^[1-6]$/]],start:[["OL",/^\d+$/]],id:[["P",En]],"aria-labelledby":[["DIV",En]]},Xo=new Set(["address","article","aside","blockquote","dd","details","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","li","main","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"]);function qo(n){var l;if(!n)return n;const o=document.createElement("template");o.innerHTML=n;for(const c of o.content.querySelectorAll("img:not([src])"))c.remove();for(const c of o.content.querySelectorAll("p"))!((l=c.textContent)!=null&&l.trim())&&!c.querySelector("img, br")&&c.remove();const s=document.createTreeWalker(o.content,NodeFilter.SHOW_TEXT);for(let c=s.nextNode();c;c=s.nextNode())c.nodeValue=c.nodeValue.replace(/[ \t\n\r\f]{2,}/g," ");return o.innerHTML.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"")}let tt=null;const Mn=new WeakMap;function Ko(n){var c;const o=n.closest("a");if(!(o!=null&&o.getAttribute("href"))||((c=o.textContent)==null?void 0:c.trim())||[...o.querySelectorAll("img")].some(m=>m.getAttribute("alt")))return;const l=Mn.get(o);if(l)return l;try{const m=new URL(o.getAttribute("href"));return(m.protocol==="mailto:"?m.pathname:m.host)||void 0}catch{return}}function Zo(){return tt||(tt=Vo(window),tt.addHook("uponSanitizeAttribute",(n,o)=>{n.nodeName==="A"&&o.attrName==="title"&&o.attrValue.trim()&&Mn.set(n,o.attrValue.trim())}),tt.addHook("uponSanitizeElement",(n,o)=>{o.allowedTags[o.tagName]||!Xo.has(o.tagName)||n.nodeType===1&&(n.prepend(" "),n.append(" "))}),tt.addHook("afterSanitizeAttributes",n=>{var o,s;n.nodeName==="IMG"&&!n.hasAttribute("alt")&&n.setAttribute("alt",Ko(n)??"");for(const l of["src","href"]){const c=(o=n.getAttribute)==null?void 0:o.call(n,l);c&&!Nn.test(c.trim())&&n.removeAttribute(l)}for(const[l,c]of Object.entries($o)){const m=(s=n.getAttribute)==null?void 0:s.call(n,l);m!=null&&!c.some(([E,$])=>n.nodeName===E&&$.test(m))&&n.removeAttribute(l)}}),tt)}function Jo(n,{markdown:o=false}={}){return typeof window>"u"?n:qo(Zo().sanitize(n,o?jo:Cn))}export{Jo as sanitizeHTML};
1
+ import{t as mo,a as ho}from"./trusted-Bvpx307M.mjs";/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function rn(n,o){(o==null||o>n.length)&&(o=n.length);for(var s=0,l=Array(o);s<o;s++)l[s]=n[s];return l}function To(n){if(Array.isArray(n))return n}function _o(n,o){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var l,c,m,E,$=[],C=true,Dt=false;try{if(m=(s=s.call(n)).next,o!==0)for(;!(C=(l=m.call(s)).done)&&($.push(l.value),$.length!==o);C=true);}catch(nt){Dt=true,c=nt}finally{try{if(!C&&s.return!=null&&(E=s.return(),Object(E)!==E))return}finally{if(Dt)throw c}}return $}}function go(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Ao(n,o){return To(n)||_o(n,o)||Eo(n,o)||go()}function Eo(n,o){if(n){if(typeof n=="string")return rn(n,o);var s={}.toString.call(n).slice(8,-1);return s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?rn(n,o):void 0}}const Sn=Object.entries,an=Object.setPrototypeOf,So=Object.isFrozen,yn=Object.getPrototypeOf,bn=Object.getOwnPropertyDescriptor;let b=Object.freeze,R=Object.seal,mt=Object.create,On=typeof Reflect<"u"&&Reflect,ye=On.apply,be=On.construct;b||(b=function(o){return o});R||(R=function(o){return o});ye||(ye=function(o,s){for(var l=arguments.length,c=new Array(l>2?l-2:0),m=2;m<l;m++)c[m-2]=arguments[m];return o.apply(s,c)});be||(be=function(o){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return new o(...l)});const W=g(Array.prototype.forEach),yo=g(Array.prototype.lastIndexOf),sn=g(Array.prototype.pop),yt=g(Array.prototype.push),bo=g(Array.prototype.slice),Oo=g(Array.prototype.splice),dt=Array.isArray,me=Rn(Set),de=g(Set.prototype.add),bt=g(Set.prototype.has),et=g(String.prototype.toLowerCase),he=g(String.prototype.toString),ln=g(String.prototype.match),Ot=g(String.prototype.replace),cn=g(String.prototype.indexOf),Ro=g(String.prototype.trim),Do=g(Number.prototype.toString),Lo=g(Boolean.prototype.toString),un=typeof BigInt>"u"?null:g(BigInt.prototype.toString),fn=typeof Symbol>"u"?null:g(Symbol.prototype.toString),N=g(Object.prototype.hasOwnProperty),Rt=g(Object.prototype.toString),O=g(RegExp.prototype.test),G=Rn(TypeError);function g(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return ye(n,o,l)}}function Rn(n){return function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return be(n,s)}}function d(n,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:et;if(an&&an(n,null),!dt(o))return n;let l=o.length;for(;l--;){let c=o[l];if(typeof c=="string"){const m=s(c);m!==c&&(So(o)||(o[l]=m),c=m)}n[c]=true}return n}function wo(n){for(let o=0;o<n.length;o++)N(n,o)||(n[o]=null);return n}function M(n){const o=mt(null);for(const l of Sn(n)){var s=Ao(l,2);const c=s[0],m=s[1];N(n,c)&&(dt(m)?o[c]=wo(m):m&&typeof m=="object"&&m.constructor===Object?o[c]=M(m):o[c]=m)}return o}function Io(n){switch(typeof n){case"string":return n;case"number":return Do(n);case"boolean":return Lo(n);case"bigint":return un?un(n):"0";case"symbol":return fn?fn(n):"Symbol()";case"undefined":return Rt(n);case"function":case"object":{if(n===null)return Rt(n);const o=n,s=P(o,"toString");if(typeof s=="function"){const l=s(o);return typeof l=="string"?l:Rt(l)}return Rt(n)}default:return Rt(n)}}function P(n,o){for(;n!==null;){const l=bn(n,o);if(l){if(l.get)return g(l.get);if(typeof l.value=="function")return g(l.value)}n=yn(n)}function s(){return null}return s}function No(n,o){for(;n!==null;){const s=bn(n,o);if(s)return s.get?g(s.get):null;n=yn(n)}return null}function Co(n){try{return O(n,""),true}catch{return false}}const pn=b(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Te=b(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_e=b(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Mo=b(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ge=b(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vo=b(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mn=b(["#text"]),dn=b(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ae=b(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hn=b(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zt=b(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Po=R(/{{[\w\W]*|^[\w\W]*}}/g),xo=R(/<%[\w\W]*|^[\w\W]*%>/g),ko=R(/\${[\w\W]*/g),Uo=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),zo=R(/^aria-[\-\w]+$/),Tn=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fo=R(/^(?:\w+script|data):/i),Ho=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wo=R(/^html$/i),Go=R(/^[a-z][.\w]*(-[.\w]+)+$/i),Ee=R(/<[/\w!]/g),_n=R(/<[/\w]/g),Bo=R(/<\/no(script|embed|frames)/i),gn=R(/\/>/i),S={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Yo=b(d({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Vo=function(){return typeof window>"u"?null:window},jo=function(o,s){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let l=null;const c="data-tt-policy-suffix";s&&s.hasAttribute(c)&&(l=s.getAttribute(c));const m="dompurify"+(l?"#"+l:"");try{return o.createPolicy(m,{createHTML(E){return E},createScriptURL(E){return E}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},An=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},j=function(o,s,l,c){return N(o,s)&&dt(o[s])?d(c.base?M(c.base):{},o[s],c.transform):l},Se=function(o,s,l){const c=N(o,s)?o[s]:void 0;return c&&typeof c=="object"?M(c):l()};function Dn(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vo();const o=a=>Dn(a);if(o.version="3.4.17",o.removed=[],!n||!n.document||n.document.nodeType!==S.document||!n.Element)return o.isSupported=false,o;let s=n.document;const l=s,c=l.currentScript;n.DocumentFragment;const m=n.HTMLTemplateElement,E=n.Node,$=n.Element,C=n.NodeFilter;n.NamedNodeMap===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;const Dt=n.DOMParser,nt=n.trustedTypes,F=$.prototype,vn=P(F,"cloneNode"),Ft=P(F,"remove"),Oe=P(F,"removeAttributeNode"),Pn=P(F,"nextSibling"),ht=P(F,"childNodes"),ot=P(F,"parentNode"),Ht=P(F,"shadowRoot"),Wt=P(F,"attributes"),X=E&&E.prototype?P(E.prototype,"nodeType"):null,rt=E&&E.prototype?P(E.prototype,"nodeName"):null,Lt=E&&E.prototype?P(E.prototype,"ownerDocument"):null,v=function(t){return X?X(t):t.nodeType},Tt=function(t){return rt?rt(t):t.nodeName},Re=No(F,"namespaceURI"),Gt=function(t){return Re?Re(t):t.namespaceURI};if(typeof m=="function"){const a=s.createElement("template");a.content&&a.content.ownerDocument&&(s=a.content.ownerDocument)}let L,q="",Bt,De=false,_t=0;const Le=function(){if(_t>0)throw G('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},it=function(t){Le(),_t++;try{return L.createHTML(t)}finally{_t--}},xn=function(t){Le(),_t++;try{return L.createScriptURL(t)}finally{_t--}},kn=function(){return De||(Bt=jo(nt,c),De=true),Bt},wt=s,Yt=wt.implementation,we=wt.createNodeIterator,Un=wt.createDocumentFragment,zn=wt.getElementsByTagName,Fn=l.importNode;let h=An();o.isSupported=typeof Sn=="function"&&typeof ot=="function"&&Yt&&Yt.createHTMLDocument!==void 0;const Hn=Po,Wn=xo,Gn=ko,Bn=Uo,Yn=zo,Vn=Fo,Ie=Ho,jn=Go;let Ne=Tn,T=null;const Vt=d({},[...pn,...Te,..._e,...ge,...mn]);let _=null;const jt=d({},[...dn,...Ae,...hn,...zt]);let k=Object.seal(mt(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}})),gt=null,Ce=null;const B=Object.seal(mt(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}}));let Me=true,$t=true,ve=false,Xt=true,H=false,K=true,Z=false,qt=false,It=null,Nt=null,Kt=false,at=false,Ct=false,Mt=false,Pe=true,xe=false;const ke="user-content-";let Zt=true,Jt=false,J=null,st={},Q=null;const Ue=d({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ze=null;const Fe=d({},["audio","video","img","source","image","track"]);let He=null;const We=d({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",Pt="http://www.w3.org/2000/svg",U="http://www.w3.org/1999/xhtml";let lt=U,Qt=false,te=null;const $n=d({},[vt,Pt,U],he),Ge=b(["mi","mo","mn","ms","mtext"]);let ee=d({},Ge);const Be=b(["annotation-xml"]);let ne=d({},Be);const Xn=d({},["title","style","font","a","script"]);let At=null;const qn=["application/xhtml+xml","text/html"],Kn="text/html";let A=null,ct=null;const Zn=s.createElement("form"),Ye=function(t){return t instanceof RegExp||t instanceof Function},oe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ct&&ct===t)return;(!t||typeof t!="object")&&(t={}),t=M(t),At=qn.indexOf(t.PARSER_MEDIA_TYPE)===-1?Kn:t.PARSER_MEDIA_TYPE,A=At==="application/xhtml+xml"?he:et,T=j(t,"ALLOWED_TAGS",Vt,{transform:A}),_=j(t,"ALLOWED_ATTR",jt,{transform:A}),te=j(t,"ALLOWED_NAMESPACES",$n,{transform:he}),He=j(t,"ADD_URI_SAFE_ATTR",We,{transform:A,base:We}),ze=j(t,"ADD_DATA_URI_TAGS",Fe,{transform:A,base:Fe}),Q=j(t,"FORBID_CONTENTS",Ue,{transform:A}),gt=j(t,"FORBID_TAGS",M({}),{transform:A}),Ce=j(t,"FORBID_ATTR",M({}),{transform:A}),st=N(t,"USE_PROFILES")?t.USE_PROFILES&&typeof t.USE_PROFILES=="object"?M(t.USE_PROFILES):t.USE_PROFILES:false,Me=t.ALLOW_ARIA_ATTR!==false,$t=t.ALLOW_DATA_ATTR!==false,ve=t.ALLOW_UNKNOWN_PROTOCOLS||false,Xt=t.ALLOW_SELF_CLOSE_IN_ATTR!==false,H=t.SAFE_FOR_TEMPLATES||false,K=t.SAFE_FOR_XML!==false,Z=t.WHOLE_DOCUMENT||false,at=t.RETURN_DOM||false,Ct=t.RETURN_DOM_FRAGMENT||false,Mt=t.RETURN_TRUSTED_TYPE||false,Kt=t.FORCE_BODY||false,Pe=t.SANITIZE_DOM!==false,xe=t.SANITIZE_NAMED_PROPS||false,Zt=t.KEEP_CONTENT!==false,Jt=t.IN_PLACE||false,Ne=Co(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:Tn,lt=typeof t.NAMESPACE=="string"?t.NAMESPACE:U,ee=Se(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>d({},Ge)),ne=Se(t,"HTML_INTEGRATION_POINTS",()=>d({},Be));const e=Se(t,"CUSTOM_ELEMENT_HANDLING",()=>mt(null));if(k=mt(null),N(e,"tagNameCheck")&&Ye(e.tagNameCheck)&&(k.tagNameCheck=e.tagNameCheck),N(e,"attributeNameCheck")&&Ye(e.attributeNameCheck)&&(k.attributeNameCheck=e.attributeNameCheck),N(e,"allowCustomizedBuiltInElements")&&typeof e.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),R(k),H&&($t=false),Ct&&(at=true),st&&(T=d({},mn),_=mt(null),st.html===true&&(d(T,pn),d(_,dn)),st.svg===true&&(d(T,Te),d(_,Ae),d(_,zt)),st.svgFilters===true&&(d(T,_e),d(_,Ae),d(_,zt)),st.mathMl===true&&(d(T,ge),d(_,hn),d(_,zt))),B.tagCheck=null,B.attributeCheck=null,N(t,"ADD_TAGS")&&(typeof t.ADD_TAGS=="function"?B.tagCheck=t.ADD_TAGS:dt(t.ADD_TAGS)&&(T===Vt&&(T=M(T)),d(T,t.ADD_TAGS,A))),N(t,"ADD_ATTR")&&(typeof t.ADD_ATTR=="function"?B.attributeCheck=t.ADD_ATTR:dt(t.ADD_ATTR)&&(_===jt&&(_=M(_)),d(_,t.ADD_ATTR,A))),N(t,"ADD_FORBID_CONTENTS")&&dt(t.ADD_FORBID_CONTENTS)&&(Q===Ue&&(Q=M(Q)),d(Q,t.ADD_FORBID_CONTENTS,A)),Zt&&(T["#text"]=true),Z&&d(T,["html","head","body"]),T.table&&(d(T,["tbody"]),delete gt.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const r=L;L=t.TRUSTED_TYPES_POLICY;try{q=it("")}catch(i){throw L=r,i}}else t.TRUSTED_TYPES_POLICY===null?(L=void 0,q=""):(L===void 0&&(L=kn()),L&&typeof q=="string"&&(q=it("")));b&&b(t),ct=t},Ve=d({},[...Te,..._e,...Mo]),je=d({},[...ge,...vo]),Jn=function(t,e,r){return e.namespaceURI===U?t==="svg":e.namespaceURI===vt?t==="svg"&&(r==="annotation-xml"||ee[r]):!!Ve[t]},Qn=function(t,e,r){return e.namespaceURI===U?t==="math":e.namespaceURI===Pt?t==="math"&&ne[r]:!!je[t]},to=function(t,e,r){return e.namespaceURI===Pt&&!ne[r]||e.namespaceURI===vt&&!ee[r]?false:!je[t]&&(Xn[t]||!Ve[t])},eo=function(t){const e=Gt(t),r=et(Tt(t)),i=ot(t);let u,f;return i&&v(i)===S.element?(u={namespaceURI:Gt(i)},f=et(Tt(i))):(u={namespaceURI:lt},f="template"),te[e]?e===Pt?Jn(r,u,f):e===vt?Qn(r,u,f):e===U?to(r,u,f):!!(At==="application/xhtml+xml"&&te[e]):false},Y=function(t){yt(o.removed,{element:t});try{ot(t).removeChild(t)}catch{if(Ft(t),!ot(t))throw G("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},$e=function(t,e,r){try{Oe(t,e)}catch{try{t.removeAttribute(r)}catch{}}},re=function(t){ae(t);const e=ht(t);e&&W(bo(e),i=>{try{Ft(i)}catch{}});const r=v(t)===S.element?Wt(t):null;if(r)for(let i=r.length-1;i>=0;--i){const u=r[i],f=u&&u.name;typeof f=="string"&&$e(t,u,f)}},ut=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch{r=null}yt(o.removed,{attribute:r||null,from:e});try{r?Oe(e,r):e.removeAttribute(t)}catch{try{e.removeAttribute(t)}catch{}}if(t==="is")if(at||Ct)try{Y(e)}catch{}else try{e.setAttribute(t,"")}catch{}},Xe=function(t){const e=Wt(t);if(e)for(let r=e.length-1;r>=0;--r){const i=e[r],u=i&&i.name;typeof u!="string"||_[A(u)]||$e(t,i,u)}},ie=function(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:false;const i=[t];for(;i.length>0;){const u=i.pop();if(e(u)===false)continue;if(r&&v(u)===S.element){const p=Ht(u);V(p)&&i.push(p)}const f=ht(u);if(f)for(let p=f.length-1;p>=0;--p)i.push(f[p])}},ae=function(t){ie(t,e=>{v(e)===S.element&&Xe(e)})},se=function(t){const e=[];return ie(t,r=>{e.push(r)},true),e},no=function(t,e){const r=me();W(se(t),i=>{v(i)===S.element&&de(r,i)}),W(e,i=>{v(i)===S.element&&!bt(r,i)&&Xe(i)})},qe=function(t,e){let r=false;return W(o.removed,i=>{i.element&&(r=r||i.element===t,ae(i.element))}),no(t,e),r},oo=8,ro=function(t,e){const r=J;let i=null;const u=()=>(i||(i=me(),W(e,f=>{de(i,f)})),i);for(let f=0;;f++){const p=se(t),y=[t];let z=false;if(W(p,D=>{v(D)===S.documentFragment?yt(y,D):!z&&!bt(r,D)&&(z=bt(u(),D))}),!z)return;if(f>=oo)throw G("the tree kept changing during in-place sanitization; refusing to return it");W(y,(D,w)=>{io(D,w>0,t,u())})}},io=function(t,e,r,i){const u=le(t);let f;for(;f=u.nextNode();)!bt(i,f)||bt(J,f)||(e&&x(h.uponSanitizeShadowNode,f,null),ue(f,r),fe(f,r),V(f.content)&&St(f.content))},ao=function(t){J&&de(J,t)},Ke=function(t,e){return K?t==="patchsrc"?true:t==="for"&&e!=="label"&&e!=="output":false},so=function(t){K&&ie(t,e=>{const r=v(e);if(r===S.processingInstruction||r===S.comment&&O(_n,e.data)){try{Ft(e)}catch{}return false}if(r===S.element){const i=e,u=A(Tt(e));try{i.hasAttribute&&i.hasAttribute("patchsrc")&&i.removeAttribute("patchsrc"),i.hasAttribute&&i.hasAttribute("for")&&Ke("for",u)&&i.removeAttribute("for")}catch{}}return true})},Ze=function(t){let e=null,r=null;if(Kt)t="<remove></remove>"+t;else{const f=ln(t,/^[\r\n\t ]+/);r=f&&f[0]}At==="application/xhtml+xml"&&lt===U&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=L?it(t):t;if(lt===U)try{e=new Dt().parseFromString(i,At)}catch{}if(!e||!e.documentElement){e=Yt.createDocument(lt,"template",null);try{e.documentElement.innerHTML=Qt?q:i}catch{}}const u=e.body||e.documentElement;return t&&r&&u.insertBefore(s.createTextNode(r),u.childNodes[0]||null),lt===U?zn.call(e,Z?"html":"body")[0]:Z?e.documentElement:u},le=function(t){const e=Lt?Lt(t):t.ownerDocument;return we.call(e||t,t,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},xt=function(t){return t=Ot(t,Hn," "),t=Ot(t,Wn," "),t=Ot(t,Gn," "),t},ce=function(t){var e;Je(t);const r=(e=t.querySelectorAll)===null||e===void 0?void 0:e.call(t,"template");r&&W(r,i=>{V(i.content)&&ce(i.content)})},Je=function(t){t.normalize();const e=Lt?Lt(t):t.ownerDocument,r=we.call(e||t,t,C.SHOW_TEXT|C.SHOW_COMMENT|C.SHOW_CDATA_SECTION|C.SHOW_PROCESSING_INSTRUCTION,null);let i=r.nextNode();for(;i;)i.data=xt(i.data),i=r.nextNode()},kt=function(t){const e=rt?rt(t):null;return typeof e!="string"||A(e)!=="form"?false:typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||t.attributes!==Wt(t)||typeof t.removeAttribute!="function"||typeof t.removeAttributeNode!="function"||typeof t.getAttributeNode!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function"||t.nodeType!==X(t)||t.childNodes!==ht(t)},V=function(t){if(!X||typeof t!="object"||t===null)return false;try{return X(t)===S.documentFragment}catch{return false}},Et=function(t){if(!X||typeof t!="object"||t===null)return false;try{return typeof X(t)=="number"}catch{return false}};function x(a,t,e){a.length!==0&&W(a,r=>{r.call(o,t,e,ct)})}const lo=function(t,e){return!!(K&&t.hasChildNodes()&&!Et(t.firstElementChild)&&O(Ee,t.textContent)&&O(Ee,t.innerHTML)||K&&Yo[e]&&v(t)===S.element&&Gt(t)===U&&(Et(t.firstElementChild)||typeof t.textContent=="string"&&O(Ee,t.textContent))||t.nodeType===S.processingInstruction||K&&t.nodeType===S.comment&&O(_n,t.data))},Ut=function(t,e){if(t instanceof RegExp)return O(t,e);if(t instanceof Function){for(var r=arguments.length,i=new Array(r>2?r-2:0),u=2;u<r;u++)i[u-2]=arguments[u];return!!t(e,...i)}return false},co=function(t,e,r){if(!gt[e]&&en(e)&&Ut(k.tagNameCheck,e))return false;if(Zt&&!Q[e]&&!Q[et(e)]){const i=ot(t),u=ht(t);if(u&&i){const f=u.length;for(let p=f-1;p>=0;--p){const y=t===r?vn(u[p],true):u[p];i.insertBefore(y,Pn(t))}}}return Y(t),true},Qe=function(t,e,r,i){return t.length===0?e:e===r||e===i?M(e):e},ft=function(t,e){return t===e||ot(t)!==null?false:(Jt&&ae(t),true)},ue=function(t,e){if(ao(t),x(h.beforeSanitizeElements,t,null),ft(t,e))return true;if(kt(t))return Y(t),true;const r=A(Tt(t));if(T=Qe(h.uponSanitizeElement,T,Vt,It),x(h.uponSanitizeElement,t,{tagName:r,allowedTags:T}),ft(t,e))return true;if(lo(t,r))return Y(t),true;if(gt[r]||!(B.tagCheck instanceof Function&&B.tagCheck(r))&&!T[r]){const i=co(t,r,e);return i===false&&(x(h.afterSanitizeElements,t,null),ft(t,e))?true:i}if(v(t)===S.element&&!eo(t)||(r==="noscript"||r==="noembed"||r==="noframes")&&O(Bo,t.innerHTML))return Y(t),true;if(H&&t.nodeType===S.text){const i=xt(t.textContent);t.textContent!==i&&(yt(o.removed,{element:t.cloneNode()}),t.textContent=i)}return x(h.afterSanitizeElements,t,null),ft(t,e)},tn=function(t,e,r){if(Ce[e]||Ke(e,t)||Pe&&(e==="id"||e==="name")&&(r in s||r in Zn))return false;const i=_[e]||B.attributeCheck instanceof Function&&B.attributeCheck(e,t);return $t&&O(Bn,e)||Me&&O(Yn,e)?true:i?He[e]||O(Ne,Ot(r,Ie,""))||(e==="src"||e==="xlink:href"||e==="href")&&t!=="script"&&cn(r,"data:")===0&&ze[t]||ve&&!O(Vn,Ot(r,Ie,""))?true:!r:en(t)&&Ut(k.tagNameCheck,t)&&Ut(k.attributeNameCheck,e,t)||e==="is"&&k.allowCustomizedBuiltInElements&&Ut(k.tagNameCheck,r)},uo=d({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),en=function(t){return!uo[et(t)]&&O(jn,t)},fo=function(t,e,r,i){if(L&&typeof nt=="object"&&typeof nt.getAttributeType=="function"&&!r)switch(nt.getAttributeType(t,e)){case"TrustedHTML":return it(i);case"TrustedScriptURL":return xn(i)}return i},po=function(t,e,r,i){try{return r?t.setAttributeNS(r,e,i):t.setAttribute(e,i),kt(t)?(Y(t),false):true}catch{return ut(e,t),false}},nn=function(t,e){return K&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e)?true:et(t)==="attributename"&&ln(e,"href")!==null},fe=function(t,e){if(x(h.beforeSanitizeAttributes,t,null),ft(t,e))return;const r=t.attributes;if(!r||kt(t))return;_=Qe(h.uponSanitizeAttribute,_,jt,Nt);const i={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:_,forceKeepAttr:void 0};let u=r.length;const f=A(t.nodeName);for(;u--;){const p=r[u],y=p.name,z=p.namespaceURI,D=p.value,w=A(y),pt=D;let I=y==="value"?pt:Ro(pt),on=false;if(i.attrName=w,i.attrValue=I,i.keepAttr=true,i.forceKeepAttr=void 0,x(h.uponSanitizeAttribute,t,i),I=i.attrValue,xe&&(w==="id"||w==="name")&&cn(I,ke)!==0&&(ut(y,t,p),I=ke+I,on=true),nn(y,I)){ut(y,t,p);continue}if(!i.forceKeepAttr){if(!i.keepAttr){ut(y,t,p);continue}if(!Xt&&O(gn,I)){ut(y,t,p);continue}if(H&&(I=xt(I)),!tn(f,w,I)){ut(y,t,p);continue}I=fo(f,w,z,I),I!==pt&&po(t,y,z,I)&&on&&sn(o.removed)}}x(h.afterSanitizeAttributes,t,null),ft(t,e)},St=function(t){let e=null;const r=le(t);for(x(h.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(x(h.uponSanitizeShadowNode,e,null),ue(e,t),fe(e,t),V(e.content)&&St(e.content),v(e)===S.element){const i=Ht(e);V(i)&&(pe(i),St(i))}H&&Je(t),x(h.afterSanitizeShadowDOM,t,null)},pe=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const r=e.pop();if(r.shadow){St(r.shadow);continue}const i=r.node,u=v(i)===S.element,f=ht(i);if(f)for(let p=f.length-1;p>=0;--p)e.push({node:f[p],shadow:null});if(u){const p=rt?rt(i):null;if(typeof p=="string"&&A(p)==="template"){const y=i.content;V(y)&&e.push({node:y,shadow:null})}}if(u){const p=Ht(i);V(p)&&e.push({node:null,shadow:p},{node:p,shadow:null})}}};return o.sanitize=function(a){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,r=null,i=null,u=null;if(Qt=!a,Qt&&(a="<!-->"),typeof a!="string"&&!Et(a)&&(a=Io(a),typeof a!="string"))throw G("dirty is not a string, aborting");if(!o.isSupported)return a;qt?(T=It,_=Nt):oe(t),(h.uponSanitizeElement.length>0||h.uponSanitizeAttribute.length>0)&&(T=M(T)),h.uponSanitizeAttribute.length>0&&(_=M(_)),o.removed=[];const f=Jt&&typeof a!="string"&&Et(a);let p=[];const y=J;if(f){so(a);const w=Tt(a);if(typeof w=="string"){const pt=A(w);if(!T[pt]||gt[pt])throw re(a),G("root node is forbidden and cannot be sanitized in-place")}if(kt(a))throw re(a),G("root node is clobbered and cannot be sanitized in-place");p=se(a),J=me()}else if(Et(a))e=Ze("<!---->"),r=e.ownerDocument.importNode(a,true),r.nodeType===S.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?e=r:e.appendChild(r),pe(e);else{if(!at&&!H&&!Z&&a.indexOf("<")===-1)return L&&Mt?it(a):a;if(e=Ze(a),!e)return at?null:Mt?q:""}e&&Kt&&Y(e.firstChild);const z=f?a:e;try{f&&pe(a);const w=le(z);for(;i=w.nextNode();)ue(i,z),fe(i,z),V(i.content)&&St(i.content);f&&ro(a,p)}catch(w){throw f&&(re(a),qe(a,p)),w}finally{J=y}if(f){if(qe(a,p))throw G("a node selected for removal could not be safely returned; refusing to sanitize in place");return H&&ce(a),a}if(at){if(H&&ce(e),Ct)for(u=Un.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(_.shadowroot||_.shadowrootmode)&&(u=Fn.call(l,u,true)),u}let D=Z?e.outerHTML:e.innerHTML;return Z&&T["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&O(Wo,e.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
3
+ `+D),H&&(D=xt(D)),L&&Mt?it(D):D},o.setConfig=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oe(a),qt=true,It=T,Nt=_},o.clearConfig=function(){ct=null,qt=false,It=null,Nt=null,L=Bt,q=""},o.isValidAttribute=function(a,t,e){ct||oe({});const r=A(a),i=A(t);return typeof e=="string"&&(nn(t,e)||!Xt&&O(gn,e))?false:tn(r,i,e)},o.addHook=function(a,t){typeof t=="function"&&N(h,a)&&yt(h[a],t)},o.removeHook=function(a,t){if(N(h,a)){if(t!==void 0){const e=yo(h[a],t);return e===-1?void 0:Oo(h[a],e,1)[0]}return sn(h[a])}},o.removeHooks=function(a){N(h,a)&&(h[a]=[])},o.removeAllHooks=function(){h=An()},o}var $o=Dn();const Ln=["a","b","br","i","img","p","small","span","sub","sup"],wn=["href","alt","src","height","width","lang","dir"],In=["height","width","lang","dir"],Nn=/^(?:https?|mailto):/i,Cn={ALLOWED_TAGS:Ln,ALLOWED_ATTR:wn,ADD_URI_SAFE_ATTR:In,ALLOWED_URI_REGEXP:Nn,ALLOW_ARIA_ATTR:false,ALLOW_DATA_ATTR:false},Xo={...Cn,ALLOWED_TAGS:[...Ln,"ul","ol","li","div"],ALLOWED_ATTR:[...wn,"role","aria-level","start","id","aria-labelledby"],ADD_URI_SAFE_ATTR:[...In,"aria-level","start","id","aria-labelledby"]},En=/^clover-md-\d+$/,qo={role:[["P",/^heading$/],["DIV",/^group$/]],"aria-level":[["P",/^[1-6]$/]],start:[["OL",/^\d+$/]],id:[["P",En]],"aria-labelledby":[["DIV",En]]},Ko=new Set(["address","article","aside","blockquote","dd","details","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","li","main","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"]);function Zo(n){var l;if(!n)return n;const o=document.createElement("template");o.innerHTML=ho(n);for(const c of o.content.querySelectorAll("img:not([src])"))c.remove();for(const c of o.content.querySelectorAll("p"))!((l=c.textContent)!=null&&l.trim())&&!c.querySelector("img, br")&&c.remove();const s=document.createTreeWalker(o.content,NodeFilter.SHOW_TEXT);for(let c=s.nextNode();c;c=s.nextNode())c.nodeValue=c.nodeValue.replace(/[ \t\n\r\f]{2,}/g," ");return o.innerHTML.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"")}let tt=null;const Mn=new WeakMap;function Jo(n){var c;const o=n.closest("a");if(!(o!=null&&o.getAttribute("href"))||((c=o.textContent)==null?void 0:c.trim())||[...o.querySelectorAll("img")].some(m=>m.getAttribute("alt")))return;const l=Mn.get(o);if(l)return l;try{const m=new URL(o.getAttribute("href"));return(m.protocol==="mailto:"?m.pathname:m.host)||void 0}catch{return}}function Qo(){return tt||(tt=$o(window),tt.addHook("uponSanitizeAttribute",(n,o)=>{n.nodeName==="A"&&o.attrName==="title"&&o.attrValue.trim()&&Mn.set(n,o.attrValue.trim())}),tt.addHook("uponSanitizeElement",(n,o)=>{o.allowedTags[o.tagName]||!Ko.has(o.tagName)||n.nodeType===1&&(n.prepend(" "),n.append(" "))}),tt.addHook("afterSanitizeAttributes",n=>{var o,s;n.nodeName==="IMG"&&!n.hasAttribute("alt")&&n.setAttribute("alt",Jo(n)??"");for(const l of["src","href"]){const c=(o=n.getAttribute)==null?void 0:o.call(n,l);c&&!Nn.test(c.trim())&&n.removeAttribute(l)}for(const[l,c]of Object.entries(qo)){const m=(s=n.getAttribute)==null?void 0:s.call(n,l);m!=null&&!c.some(([E,$])=>n.nodeName===E&&$.test(m))&&n.removeAttribute(l)}}),tt)}function er(n,{markdown:o=false}={}){if(typeof window>"u")return n;const s=o?Xo:Cn,l=mo();return Zo(Qo().sanitize(n,l?{...s,TRUSTED_TYPES_POLICY:l}:s))}export{er as sanitizeHTML,ho as trusted};
@@ -1 +1 @@
1
- import{a1 as a}from"./shared-DkY2a89G.mjs";function c(t){try{const o=new URL(t).pathname.split("/").filter(Boolean).pop();return o?decodeURIComponent(o):"download"}catch{return"download"}}async function i(t,o){try{const r=await a(o,t,{referrerPolicy:"no-referrer"});if(!r.ok)return false;const n=URL.createObjectURL(await r.blob()),e=document.createElement("a");return e.href=n,e.download=c(t),document.body.append(e),e.click(),e.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e4),true}catch{return false}}export{c as fileName,i as saveFile};
1
+ import{a1 as a}from"./shared-CCg1Iag8.mjs";function c(t){try{const o=new URL(t).pathname.split("/").filter(Boolean).pop();return o?decodeURIComponent(o):"download"}catch{return"download"}}async function i(t,o){try{const r=await a(o,t,{referrerPolicy:"no-referrer"});if(!r.ok)return false;const n=URL.createObjectURL(await r.blob()),e=document.createElement("a");return e.href=n,e.download=c(t),document.body.append(e),e.click(),e.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e4),true}catch{return false}}export{c as fileName,i as saveFile};
@@ -1 +1 @@
1
- import{ay as w,S as f,a9 as x,U as S}from"./shared-DkY2a89G.mjs";const A=10;async function R(r,t,s,o,e){var n,d;const i=(n=r.get().manifest)==null?void 0:n.id;try{const{hits:c,set:u}=await b(t,s,{request:o,signal:e});if(e.aborted||((d=r.get().manifest)==null?void 0:d.id)!==i)return;r.set({search:{query:s,status:"ready",hits:c,set:u}})}catch{if(e.aborted)return;r.set({search:{query:s,status:"error",hits:[],set:null}})}}async function b(r,t,{request:s,signal:o}={}){const e=new URL(r.id);e.searchParams.set("q",t);const i=[];let n=e.toString();const d=new Set;for(;n&&i.length<A&&!d.has(n);){d.add(n);const c=await w(s,n,o);i.push(c),n=$(c)}return E(i,t)}function T(r){var e;const t=f(r)[0];if(typeof t=="string"||!t)return t;const s=t.full??t["@id"],o=(e=f(t.selector)[0])==null?void 0:e.value;return typeof o=="string"&&typeof s=="string"?`${s}#${o}`:s}function $(r){var o;const t=r.next??((o=r.within)==null?void 0:o.next),s=typeof t=="string"?t:(t==null?void 0:t.id)??(t==null?void 0:t["@id"]);return typeof s=="string"?s:null}function E(r,t){var e,i;const s=[],o=[];for(const n of r){const d=Array.isArray(n.resources),c=d?n.resources:f(n.items),u=new Map;for(const a of c){const p=a.id??a["@id"],m=d?T(a.on):f(a.target)[0],v=x(m);if(!p||!v.id)continue;const y=d?(e=a.resource)==null?void 0:e.chars:f(a.body).map(l=>l==null?void 0:l.value).find(l=>typeof l=="string"),I={id:p,setId:S,canvasId:v.id,target:v,motivation:["highlighting"],bodies:[{value:String(y??t)}],annotation:{id:p,type:"Annotation",motivation:["highlighting"],body:{type:"TextualBody",value:String(y??t)},target:m}};u.set(p,I),s.push(I)}const g=d?H(n,u):M(n,u),h=new Set(g.flatMap(a=>a.entryIds));o.push(...g);for(const a of u.values())h.has(a.id)||o.push({id:a.id,canvasId:a.canvasId,entryIds:[a.id],match:((i=a.bodies[0])==null?void 0:i.value)??t})}return{query:t,hits:o,set:{id:S,label:{none:[t]},source:"search",entries:s}}}function H(r,t){var o;const s=[];for(const e of f(r.hits)){const i=f(e.annotations).filter(n=>t.has(n));i.length&&s.push({id:i.join(" "),canvasId:t.get(i[0]).canvasId,entryIds:i,before:e.before,match:String(e.match??((o=t.get(i[0]).bodies[0])==null?void 0:o.value)??""),after:e.after})}return s}function M(r,t){var o,e;const s=[];for(const i of f(r.annotations))for(const n of f(i==null?void 0:i.items))if(f(n==null?void 0:n.motivation).includes("contextualizing"))for(const c of f(n.target)){const u=typeof(c==null?void 0:c.source)=="string"?c.source:(o=c==null?void 0:c.source)==null?void 0:o.id,g=u?t.get(u):void 0;if(!g)continue;const h=f(c.selector).find(a=>(a==null?void 0:a.type)==="TextQuoteSelector");s.push({id:`${n.id??u}#${u}`,canvasId:g.canvasId,entryIds:[g.id],before:h==null?void 0:h.prefix,match:String((h==null?void 0:h.exact)??((e=g.bodies[0])==null?void 0:e.value)??""),after:h==null?void 0:h.suffix})}return s}export{E as readResults,b as search,R as searchInto};
1
+ import{ay as w,S as f,a8 as x,U as S}from"./shared-CCg1Iag8.mjs";const A=10;async function R(r,t,s,o,e){var n,d;const i=(n=r.get().manifest)==null?void 0:n.id;try{const{hits:c,set:u}=await b(t,s,{request:o,signal:e});if(e.aborted||((d=r.get().manifest)==null?void 0:d.id)!==i)return;r.set({search:{query:s,status:"ready",hits:c,set:u}})}catch{if(e.aborted)return;r.set({search:{query:s,status:"error",hits:[],set:null}})}}async function b(r,t,{request:s,signal:o}={}){const e=new URL(r.id);e.searchParams.set("q",t);const i=[];let n=e.toString();const d=new Set;for(;n&&i.length<A&&!d.has(n);){d.add(n);const c=await w(s,n,o);i.push(c),n=$(c)}return E(i,t)}function T(r){var e;const t=f(r)[0];if(typeof t=="string"||!t)return t;const s=t.full??t["@id"],o=(e=f(t.selector)[0])==null?void 0:e.value;return typeof o=="string"&&typeof s=="string"?`${s}#${o}`:s}function $(r){var o;const t=r.next??((o=r.within)==null?void 0:o.next),s=typeof t=="string"?t:(t==null?void 0:t.id)??(t==null?void 0:t["@id"]);return typeof s=="string"?s:null}function E(r,t){var e,i;const s=[],o=[];for(const n of r){const d=Array.isArray(n.resources),c=d?n.resources:f(n.items),u=new Map;for(const a of c){const p=a.id??a["@id"],m=d?T(a.on):f(a.target)[0],v=x(m);if(!p||!v.id)continue;const y=d?(e=a.resource)==null?void 0:e.chars:f(a.body).map(l=>l==null?void 0:l.value).find(l=>typeof l=="string"),I={id:p,setId:S,canvasId:v.id,target:v,motivation:["highlighting"],bodies:[{value:String(y??t)}],annotation:{id:p,type:"Annotation",motivation:["highlighting"],body:{type:"TextualBody",value:String(y??t)},target:m}};u.set(p,I),s.push(I)}const g=d?H(n,u):M(n,u),h=new Set(g.flatMap(a=>a.entryIds));o.push(...g);for(const a of u.values())h.has(a.id)||o.push({id:a.id,canvasId:a.canvasId,entryIds:[a.id],match:((i=a.bodies[0])==null?void 0:i.value)??t})}return{query:t,hits:o,set:{id:S,label:{none:[t]},source:"search",entries:s}}}function H(r,t){var o;const s=[];for(const e of f(r.hits)){const i=f(e.annotations).filter(n=>t.has(n));i.length&&s.push({id:i.join(" "),canvasId:t.get(i[0]).canvasId,entryIds:i,before:e.before,match:String(e.match??((o=t.get(i[0]).bodies[0])==null?void 0:o.value)??""),after:e.after})}return s}function M(r,t){var o,e;const s=[];for(const i of f(r.annotations))for(const n of f(i==null?void 0:i.items))if(f(n==null?void 0:n.motivation).includes("contextualizing"))for(const c of f(n.target)){const u=typeof(c==null?void 0:c.source)=="string"?c.source:(o=c==null?void 0:c.source)==null?void 0:o.id,g=u?t.get(u):void 0;if(!g)continue;const h=f(c.selector).find(a=>(a==null?void 0:a.type)==="TextQuoteSelector");s.push({id:`${n.id??u}#${u}`,canvasId:g.canvasId,entryIds:[g.id],before:h==null?void 0:h.prefix,match:String((h==null?void 0:h.exact)??((e=g.bodies[0])==null?void 0:e.value)??""),after:h==null?void 0:h.suffix})}return s}export{E as readResults,b as search,R as searchInto};
@@ -0,0 +1 @@
1
+ var Ko=Object.defineProperty;var Go=(e,t,n)=>t in e?Ko(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n;var oe=(e,t,n)=>Go(e,typeof t!="symbol"?t+"":t,n);import{a as Ce}from"./index-ClM6Kq8w.mjs";const Zo=JSON.parse('{"commonClose":"Close","commonNext":"Next","commonPrevious":"Previous","commonSearch":"Search","commonViewAll":"View all","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Loading...","contentSearchPlaceholder":"Search","contentSearchResultsNone":"No results","contentSearchResult":"1 result","contentSearchResults":"{{count}} results","contentSearchError":"The search could not be completed.","contentSearchPosition":"Result {{index}} of {{total}}","contentSearchClear":"Clear search","canvasPosition":"Item {{index}} of {{total}}","canvasImage":"Image","bodyUnloadableImage":"This image could not be loaded.","bodyUnloadableVideo":"This video could not be loaded.","bodyUnloadableAudio":"This audio could not be loaded.","bodyUnloadableModel":"This model could not be loaded.","canvasRoleDescription":"zoomable image","canvasKeysImage":"Use the arrow keys to pan, with Shift for larger steps, plus and minus to zoom, 0 to reset the view, and R or Shift+R to rotate.","canvasKeysMedia":"Press Space or K to play or pause, J or L to skip ten seconds back or forward, and M to mute or unmute.","canvasKeysAnnotations":"Press Escape to clear the selected annotation.","sceneModel":"3D model","sceneRoleDescription":"rotatable 3D model","sceneKeys":"Use the arrow keys to rotate the model, with Shift for larger steps, plus and minus to zoom, 0 to reset the view, and R or Shift+R to rotate it right or left.","sceneRotateUp":"Rotate up","sceneRotateDown":"Rotate down","sceneRotate":"Rotate","sceneResetView":"Reset view","statusLoading":"Loading\u2026","statusError":"This could not be loaded.","itemsLabel":"Items","download":"Download","downloadPage":"This page","downloadAll":"All pages","templateSidebar":"Items","templateSidebarToggle":"Show items","templateBack":"Back","templateBackTo":"Back to {{label}}","collectionLabel":"Collection","itemsScrollBack":"Show previous items","itemsScrollForward":"Show more items","aboutRights":"Rights","aboutDate":"Date","aboutHomepage":"Homepage","aboutSeeAlso":"See also","aboutProvider":"Provider","logo":"Logo","aboutManifest":"IIIF Manifest","aboutCanvas":"IIIF Canvas","aboutPartOf":"Part of","aboutOpenManifest":"Open the full Manifest","aboutCollection":"IIIF Collection","readingLanguage":"Language","annotationsHide":"Hide annotations","annotationsHideTip":"Hide","readMore":"Read more","readLess":"Read less","annotationsShow":"Find on the image","annotationsShowTime":"Find in the recording","annotationsImage":"Image","annotationsLanguage":"Language","annotationsOpenLink":"Open the link","transcriptLabel":"Transcript","imageViewerOpen":"Open image viewer","imageViewerClose":"Close image viewer","canvasChoice":"Choice","canvasViewerControls":"Viewer controls","canvasExpandControls":"Expand viewer controls","canvasCollapseControls":"Collapse viewer controls","canvasScrollBack":"Show previous controls","canvasScrollForward":"Show more controls","imageFullScreen":"Full screen","imageExitFullScreen":"Exit full screen","imageResetZoom":"Reset zoom","imageRotateLeft":"Rotate left","imageRotateRight":"Rotate right","imageZoomIn":"Zoom in","imageZoomOut":"Zoom out","informationPanelTabs":"Information panel","sectionsScrollBack":"Show previous tabs","sectionsScrollForward":"Show more tabs","informationPanelClose":"Close information panel","informationPanelTabsAbout":"About","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Search","informationPanelTabsContents":"Contents","contentsSectionsIn":"Sections in","informationPanelTabsMap":"Map","informationPanelTabsCollection":"Collection","informationPanelTabsTargets":"Views","mapUnavailable":"The map could not be shown.","mapLabel":"Map","mapAttribution":"Map credits","mapPlaceUntitled":"Place {{number}}","mapOverlay":"Georeferenced image","mapPlacesListed":"Places listed after the map: {{count}}","informationPanelToggle":"More information","playerPlay":"Play","playerPause":"Pause","playerMute":"Mute","playerUnmute":"Unmute","playerVolume":"Volume","playerSeek":"Seek","playerCaptions":"Captions","playerCaptionsOff":"Off","playerChapters":"Chapters","playerFill":"Fill frame","playerFit":"Fit to frame","frameRepeat":"Repeat","playerCurrentTime":"Current time","playerDuration":"Duration","splitHandle":"Resize panels"}'),Dn={es:()=>import("./es-B1NvdYp-.mjs"),fi:()=>import("./fi-BjtYZNLo.mjs"),fr:()=>import("./fr-Cd22Lziw.mjs"),nb:()=>import("./nb-CEwZDBiR.mjs"),nn:()=>import("./nn-jYQhr9RI.mjs"),no:()=>import("./no-CEwZDBiR.mjs"),pt:()=>import("./pt-CWR30SzS.mjs")};function jn(){const e=[];return typeof document<"u"&&e.push(document.documentElement.lang),typeof navigator<"u"&&e.push(...navigator.languages??[],navigator.language),e.filter(Boolean)}const Ge=e=>e.split("-")[0];function Yo(e,t){return Ge(e).toLowerCase()===Ge(t).toLowerCase()}const ot=e=>e.includes("-")?Ge(e):null;function Xo(e,t,n=[]){if(!t.length)return;if(t.length===1)return t[0];const o=()=>t.includes("none")?"none":t.includes("@none")?"@none":t[0];if(!e)return t.includes("none")?"none":t[0];if(t.includes(e))return e;const r=ot(e);if(r&&t.includes(r))return r;const s=n.find(a=>t.includes(a));if(s)return s;const i=t.findIndex(a=>ot(a)===e);if(i!==-1)return t[i];for(const a of n){const c=ot(a);if(c&&t.includes(c))return c}return o()}function Qo(e,t){const[n,...o]=t?[t]:jn();return Xo(n,e,o)??e[0]}const K="clover",J={en:{[K]:{...Zo}}};let ye,Bn=[],Ze=0;const ft=new Set;function Ct(){Ze++,ft.forEach(e=>e())}function er(e){const t=Ge(e);return t&&t!==e?[e,t]:[e]}const Vt=new Map,tr=e=>Object.prototype.hasOwnProperty.call(Dn,e);function nr(e){let t=Vt.get(e);return t||(t=Dn[e]().then(({default:n})=>{var o;J[e]={...J[e],[K]:{...n,...(o=J[e])==null?void 0:o[K]}},Ct()},()=>{}),Vt.set(e,t)),t}function Wn(e){const t=e.find(n=>n==="en"||tr(n));return t&&t!=="en"?nr(t):Promise.resolve()}let Be=[],zt="";function Ie(){const e=ye?`${Ze}`:`${Ze} ${typeof document<"u"?document.documentElement.lang:""} ${typeof navigator<"u"?navigator.languages:""}`;if(e===zt)return Be;zt=e;const t=ye?[ye]:jn();return Be=[...new Set([...t,...Bn].flatMap(er).concat("en"))],Wn(Be),Be}function Vn(e,t){if(e)return Yo(e,t||j.resolvedLanguage)?void 0:e}const j={get language(){return ye??Ie().find(e=>J[e])??"en"},get resolvedLanguage(){return Ie().find(e=>{var t;return Object.keys(((t=J[e])==null?void 0:t[K])??{}).length>0})??"en"},changeLanguage(e){ye=e,Ct()},resolve(e,t,n=K){var r,s;let o={text:e};for(const i of Ie()){const a=(s=(r=J[i])==null?void 0:r[n])==null?void 0:s[e];if(a!==void 0){o={text:a,lang:i};break}}return t?{...o,text:o.text.replace(/\{\{(\w+)\}\}/g,(i,a)=>a in t?String(t[a]):i)}:o},t(e,t,n=K){return j.resolve(e,t,n).text},langOf(e,t,n=K){return Vn(j.resolve(e,void 0,n).lang,t)},ready(){return Wn(Ie())},subscribe(e){return ft.add(e),()=>{ft.delete(e)}},getSnapshot(){return Ze}};typeof document<"u"&&Ie();function or(e={}){for(const[t,n]of Object.entries(e.resources??{}))for(const[o,r]of Object.entries(n??{}))J[t]??(J[t]={}),J[t][o]={...J[t][o],...r};return e.fallbackLng!==void 0&&(Bn=e.fallbackLng===false?[]:[e.fallbackLng].flat()),e.lng&&(ye=e.lng),Ct(),j}const yi=Object.freeze(Object.defineProperty({__proto__:null,CLOVER_I18N_NAMESPACE:K,cloverI18n:j,initCloverI18n:or,langWithin:Vn},Symbol.toStringTag,{value:"Module"}));var $e,w,zn,_e,qt,qn,Jn,Kn,xt,_t,dt,Gn,Te={},Zn=[],rr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Re=Array.isArray;function Q(e,t){for(var n in t)e[n]=t[n];return e}function kt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function se(e,t,n){var o,r,s,i={};for(s in t)s=="key"?o=t[s]:s=="ref"?r=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?$e.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Ae(e,i,o,r,null)}function Ae(e,t,n,o,r){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++zn,__i:-1,__u:0};return r==null&&w.vnode!=null&&w.vnode(s),s}function sr(){return{current:null}}function Z(e){return e.children}function G(e,t){this.props=e,this.context=t}function be(e,t){if(t==null)return e.__?be(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?be(e):null}function Yn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Yn(e)}}function pt(e){(!e.__d&&(e.__d=true)&&_e.push(e)&&!Ye.__r++||qt!=w.debounceRendering)&&((qt=w.debounceRendering)||qn)(Ye)}function Ye(){for(var e,t,n,o,r,s,i,a=1;_e.length;)_e.length>a&&_e.sort(Jn),e=_e.shift(),a=_e.length,e.__d&&(n=void 0,o=void 0,r=(o=(t=e).__v).__e,s=[],i=[],t.__P&&((n=Q({},o)).__v=o.__v+1,w.vnode&&w.vnode(n),Ot(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,s,r??be(o),!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,eo(s,n,i),o.__e=o.__=null,n.__e!=r&&Yn(n)));Ye.__r=0}function Xn(e,t,n,o,r,s,i,a,c,l,_){var u,d,v,m,P,k,C,b=o&&o.__k||Zn,S=t.length;for(c=ir(n,t,b,c,S),u=0;u<S;u++)(v=n.__k[u])!=null&&(d=v.__i==-1?Te:b[v.__i]||Te,v.__i=u,k=Ot(e,v,d,r,s,i,a,c,l,_),m=v.__e,v.ref&&d.ref!=v.ref&&(d.ref&&Pt(d.ref,null,v),_.push(v.ref,v.__c||m,v)),P==null&&m!=null&&(P=m),(C=!!(4&v.__u))||d.__k===v.__k?c=Qn(v,c,e,C):typeof v.type=="function"&&k!==void 0?c=k:m&&(c=m.nextSibling),v.__u&=-7);return n.__e=P,c}function ir(e,t,n,o,r){var s,i,a,c,l,_=n.length,u=_,d=0;for(e.__k=new Array(r),s=0;s<r;s++)(i=t[s])!=null&&typeof i!="boolean"&&typeof i!="function"?(c=s+d,(i=e.__k[s]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ae(null,i,null,null,null):Re(i)?Ae(Z,{children:i},null,null,null):i.constructor==null&&i.__b>0?Ae(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,(l=i.__i=ar(i,n,c,u))!=-1&&(u--,(a=n[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(r>_?d--:r<_&&d++),typeof i.type!="function"&&(i.__u|=4)):l!=c&&(l==c-1?d--:l==c+1?d++:(l>c?d--:d++,i.__u|=4))):e.__k[s]=null;if(u)for(s=0;s<_;s++)(a=n[s])!=null&&!(2&a.__u)&&(a.__e==o&&(o=be(a)),no(a,a));return o}function Qn(e,t,n,o){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Qn(r[s],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=be(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function re(e,t){return t=t||[],e==null||typeof e=="boolean"||(Re(e)?e.some(function(n){re(n,t)}):t.push(e)),t}function ar(e,t,n,o){var r,s,i,a=e.key,c=e.type,l=t[n],_=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||_&&a==l.key&&c==l.type)return n;if(o>(_?1:0)){for(r=n-1,s=n+1;r>=0||s<t.length;)if((l=t[i=r>=0?r--:s++])!=null&&!(2&l.__u)&&a==l.key&&c==l.type)return i}return-1}function Jt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||rr.test(t)?n:n+"px"}function We(e,t,n,o,r){var s,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Jt(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||Jt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Kn,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?o?n.u=o.u:(n.u=xt,e.addEventListener(t,s?dt:_t,s)):e.removeEventListener(t,s?dt:_t,s);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===false&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Kt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=xt++;else if(t.t<n.u)return;return n(w.event?w.event(t):t)}}}function Ot(e,t,n,o,r,s,i,a,c,l){var _,u,d,v,m,P,k,C,b,S,I,M,F,ie,B,Y,X,H=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(_=w.__b)&&_(t);e:if(typeof H=="function")try{if(C=t.props,b="prototype"in H&&H.prototype.render,S=(_=H.contextType)&&o[_.__c],I=_?S?S.props.value:_.__:o,n.__c?k=(u=t.__c=n.__c).__=u.__E:(b?t.__c=u=new H(C,I):(t.__c=u=new G(C,I),u.constructor=H,u.render=lr),S&&S.sub(u),u.props=C,u.state||(u.state={}),u.context=I,u.__n=o,d=u.__d=true,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&H.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Q({},u.__s)),Q(u.__s,H.getDerivedStateFromProps(C,u.__s))),v=u.props,m=u.state,u.__v=t,d)b&&H.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&H.getDerivedStateFromProps==null&&C!==v&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(C,I),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(C,u.__s,I)===false||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=C,u.state=u.__s,u.__d=false),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(W){W&&(W.__=t)}),M=0;M<u._sb.length;M++)u.__h.push(u._sb[M]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(C,u.__s,I),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(v,m,P)})}if(u.context=I,u.props=C,u.__P=e,u.__e=false,F=w.__r,ie=0,b){for(u.state=u.__s,u.__d=false,F&&F(t),_=u.render(u.props,u.state,u.context),B=0;B<u._sb.length;B++)u.__h.push(u._sb[B]);u._sb=[]}else do u.__d=false,F&&F(t),_=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++ie<25);u.state=u.__s,u.getChildContext!=null&&(o=Q(Q({},o),u.getChildContext())),b&&!d&&u.getSnapshotBeforeUpdate!=null&&(P=u.getSnapshotBeforeUpdate(v,m)),Y=_,_!=null&&_.type===Z&&_.key==null&&(Y=to(_.props.children)),a=Xn(e,Re(Y)?Y:[Y],t,n,o,r,s,i,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),k&&(u.__E=u.__=null)}catch(W){if(t.__v=null,c||s!=null)if(W.then){for(t.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else{for(X=s.length;X--;)kt(s[X]);vt(t)}else t.__e=n.__e,t.__k=n.__k,W.then||vt(t);w.__e(W,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=cr(n.__e,t,n,o,r,s,i,c,l);return(_=w.diffed)&&_(t),128&t.__u?void 0:a}function vt(e){e&&e.__c&&(e.__c.__e=true),e&&e.__k&&e.__k.forEach(vt)}function eo(e,t,n){for(var o=0;o<n.length;o++)Pt(n[o],n[++o],n[++o]);w.__c&&w.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(s){s.call(r)})}catch(s){w.__e(s,r.__v)}})}function to(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Re(e)?e.map(to):Q({},e)}function cr(e,t,n,o,r,s,i,a,c){var l,_,u,d,v,m,P,k=n.props,C=t.props,b=t.type;if(b=="svg"?r="http://www.w3.org/2000/svg":b=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),s!=null){for(l=0;l<s.length;l++)if((v=s[l])&&"setAttribute"in v==!!b&&(b?v.localName==b:v.nodeType==3)){e=v,s[l]=null;break}}if(e==null){if(b==null)return document.createTextNode(C);e=document.createElementNS(r,b,C.is&&C),a&&(w.__m&&w.__m(t,s),a=false),s=null}if(b==null)k===C||a&&e.data==C||(e.data=C);else{if(s=s&&$e.call(e.childNodes),k=n.props||Te,!a&&s!=null)for(k={},l=0;l<e.attributes.length;l++)k[(v=e.attributes[l]).name]=v.value;for(l in k)if(v=k[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=v;else if(!(l in C)){if(l=="value"&&"defaultValue"in C||l=="checked"&&"defaultChecked"in C)continue;We(e,l,null,v,r)}}for(l in C)v=C[l],l=="children"?d=v:l=="dangerouslySetInnerHTML"?_=v:l=="value"?m=v:l=="checked"?P=v:a&&typeof v!="function"||k[l]===v||We(e,l,v,k[l],r);if(_)a||u&&(_.__html==u.__html||_.__html==e.innerHTML)||(e.innerHTML=_.__html),t.__k=[];else if(u&&(e.innerHTML=""),Xn(t.type=="template"?e.content:e,Re(d)?d:[d],t,n,o,b=="foreignObject"?"http://www.w3.org/1999/xhtml":r,s,i,s?s[0]:n.__k&&be(n,0),a,c),s!=null)for(l=s.length;l--;)kt(s[l]);a||(l="value",b=="progress"&&m==null?e.removeAttribute("value"):m!=null&&(m!==e[l]||b=="progress"&&!m||b=="option"&&m!=k[l])&&We(e,l,m,k[l],r),l="checked",P!=null&&P!=e[l]&&We(e,l,P,k[l],r))}return e}function Pt(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(r){w.__e(r,n)}}function no(e,t,n){var o,r;if(w.unmount&&w.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||Pt(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(s){w.__e(s,t)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&no(o[r],t,n||typeof e.type!="function");n||kt(e.__e),e.__c=e.__=e.__e=void 0}function lr(e,t,n){return this.constructor(e,n)}function Ne(e,t,n){var o,r,s,i;t==document&&(t=document.documentElement),w.__&&w.__(e,t),r=(o=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Ot(t,e=(!o&&n||t).__k=se(Z,null,[e]),r||Te,Te,t.namespaceURI,!o&&n?[n]:r?null:t.firstChild?$e.call(t.childNodes):null,s,!o&&n?n:r?r.__e:t.firstChild,o,i),eo(s,e,i)}function oo(e,t){Ne(e,t,oo)}function ur(e,t,n){var o,r,s,i,a=Q({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?o=t[s]:s=="ref"?r=t[s]:a[s]=t[s]===void 0&&i!=null?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?$e.call(arguments,2):n),Ae(e.type,a,o||e.key,r||e.ref,null)}function Le(e){function t(n){var o,r;return this.getChildContext||(o=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&o.forEach(function(i){i.__e=true,pt(i)})},this.sub=function(s){o.add(s);var i=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),i&&i.call(s)}}),n.children}return t.__c="__cC"+Gn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}$e=Zn.slice,w={__e:function(e,t,n,o){for(var r,s,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((s=r.constructor)&&s.getDerivedStateFromError!=null&&(r.setState(s.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),i=r.__d),i)return r.__E=r}catch(a){e=a}throw e}},zn=0,G.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Q({},this.state),typeof e=="function"&&(e=e(Q({},n),this.props)),e&&Q(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),pt(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=true,e&&this.__h.push(e),pt(this))},G.prototype.render=Z,_e=[],qn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jn=function(e,t){return e.__v.__b-t.__v.__b},Ye.__r=0,Kn=/(PointerCapture)$|Capture$/i,xt=0,_t=Kt(false),dt=Kt(true),Gn=0;var fr=0;function $(e,t,n,o,r,s){t||(t={});var i,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?i=t[a]:c[a]=t[a];var l={type:e,props:c,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--fr,__i:-1,__u:0,__source:r,__self:s};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)c[a]===void 0&&(c[a]=i[a]);return w.vnode&&w.vnode(l),l}var le,A,rt,Gt,we=0,ro=[],N=w,Zt=N.__b,Yt=N.__r,Xt=N.diffed,Qt=N.__c,en=N.unmount,tn=N.__;function xe(e,t){N.__h&&N.__h(A,e,we||t),we=0;var n=A.__H||(A.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ee(e){return we=1,It(ao,e)}function It(e,t,n){var o=xe(le++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):ao(void 0,t),function(a){var c=o.__N?o.__N[0]:o.__[0],l=o.t(c,a);c!==l&&(o.__N=[l,o.__[1]],o.__c.setState({}))}],o.__c=A,!A.__f)){var r=function(a,c,l){if(!o.__c.__H)return true;var _=o.__c.__H.__.filter(function(d){return!!d.__c});if(_.every(function(d){return!d.__N}))return!s||s.call(this,a,c,l);var u=o.__c.props!==a;return _.forEach(function(d){if(d.__N){var v=d.__[0];d.__=d.__N,d.__N=void 0,v!==d.__[0]&&(u=true)}}),s&&s.call(this,a,c,l)||u};A.__f=true;var s=A.shouldComponentUpdate,i=A.componentWillUpdate;A.componentWillUpdate=function(a,c,l){if(this.__e){var _=s;s=void 0,r(a,c,l),s=_}i&&i.call(this,a,c,l)},A.shouldComponentUpdate=r}return o.__N||o.__}function L(e,t){var n=xe(le++,3);!N.__s&&At(n.__H,t)&&(n.__=e,n.u=t,A.__H.__h.push(n))}function te(e,t){var n=xe(le++,4);!N.__s&&At(n.__H,t)&&(n.__=e,n.u=t,A.__h.push(n))}function U(e){return we=5,de(function(){return{current:e}},[])}function so(e,t,n){we=6,te(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function de(e,t){var n=xe(le++,7);return At(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function pe(e,t){return we=8,de(function(){return e},t)}function ue(e){var t=A.context[e.__c],n=xe(le++,9);return n.c=e,t?(n.__==null&&(n.__=true,t.sub(A)),t.props.value):e.__}function io(e,t){N.useDebugValue&&N.useDebugValue(t?t(e):e)}function Mt(){var e=xe(le++,11);if(!e.__){for(var t=A.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function _r(){for(var e;e=ro.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Je),e.__H.__h.forEach(ht),e.__H.__h=[]}catch(t){e.__H.__h=[],N.__e(t,e.__v)}}N.__b=function(e){A=null,Zt&&Zt(e)},N.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),tn&&tn(e,t)},N.__r=function(e){Yt&&Yt(e),le=0;var t=(A=e.__c).__H;t&&(rt===A?(t.__h=[],A.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Je),t.__h.forEach(ht),t.__h=[],le=0)),rt=A},N.diffed=function(e){Xt&&Xt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ro.push(t)!==1&&Gt===N.requestAnimationFrame||((Gt=N.requestAnimationFrame)||dr)(_r)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),rt=A=null},N.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Je),n.__h=n.__h.filter(function(o){return!o.__||ht(o)})}catch(o){t.some(function(r){r.__h&&(r.__h=[])}),t=[],N.__e(o,n.__v)}}),Qt&&Qt(e,t)},N.unmount=function(e){en&&en(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Je(o)}catch(r){t=r}}),n.__H=void 0,t&&N.__e(t,n.__v))};var nn=typeof requestAnimationFrame=="function";function dr(e){var t,n=function(){clearTimeout(o),nn&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);nn&&(t=requestAnimationFrame(n))}function Je(e){var t=A,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),A=t}function ht(e){var t=A;e.__c=e.__(),A=t}function At(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function ao(e,t){return typeof t=="function"?t(e):t}function co(e,t){for(var n in t)e[n]=t[n];return e}function mt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return true;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return true;return false}function fe(e,t){var n=t(),o=ee({t:{__:n,u:t}}),r=o[0].t,s=o[1];return te(function(){r.__=n,r.u=t,st(r)&&s({t:r})},[e,n,t]),L(function(){return st(r)&&s({t:r}),e(function(){st(r)&&s({t:r})})},[e]),n}function st(e){var t,n,o=e.u,r=e.__;try{var s=o();return!((t=r)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return true}}function lo(e){e()}function uo(e){return e}function fo(){return[false,lo]}var _o=te;function gt(e,t){this.props=e,this.context=t}function Et(e,t){function n(r){var s=this.props.ref,i=s==r.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,r)||!i:mt(this.props,r)}function o(r){return this.shouldComponentUpdate=n,se(e,r)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=true,o.__f=true,o.type=e,o}(gt.prototype=new G).isPureReactComponent=true,gt.prototype.shouldComponentUpdate=function(e,t){return mt(this.props,e)||mt(this.state,t)};var on=w.__b;w.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),on&&on(e)};var pr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function vr(e){function t(n){var o=co({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=pr,t.render=e,t.prototype.isReactComponent=t.__f=true,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var rn=function(e,t){return e==null?null:re(re(e).map(t))},hr={map:rn,forEach:rn,count:function(e){return e?re(e).length:0},only:function(e){var t=re(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:re},mr=w.__e;w.__e=function(e,t,n,o){if(e.then){for(var r,s=t;s=s.__;)if((r=s.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}mr(e,t,n,o)};var sn=w.unmount;function po(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=co({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=true,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return po(o,t,n)})),e}function vo(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return vo(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=true,e.__c.__P=n)),e}function Ke(){this.__u=0,this.o=null,this.__b=null}function ho(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function gr(e){var t,n,o;function r(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){o=i}),o)throw o;if(!n)throw t;return se(n,s)}return r.displayName="Lazy",r.__f=true,r}function Me(){this.i=null,this.l=null}w.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),sn&&sn(e)},(Ke.prototype=new G).__c=function(e,t){var n=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(n);var r=ho(o.__v),s=false,i=function(){s||(s=true,n.__R=null,r?r(a):a())};n.__R=i;var a=function(){if(!--o.__u){if(o.state.__a){var c=o.state.__a;o.__v.__k[0]=vo(c,c.__c.__P,c.__c.__O)}var l;for(o.setState({__a:o.__b=null});l=o.o.pop();)l.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(i,i)},Ke.prototype.componentWillUnmount=function(){this.o=[]},Ke.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=po(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&se(Z,null,e.fallback);return r&&(r.__u&=-33),[se(Z,null,t.__a?null:e.children),r]};var an=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function yr(e){return this.getChildContext=function(){return e.context},e.children}function br(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Ne(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:o.__m},contains:function(){return true},insertBefore:function(r,s){this.childNodes.push(r),t.h.insertBefore(r,s)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}}Ne(se(yr,{context:t.context},e.__v),t.v)}function Tt(e,t){var n=se(br,{__v:e,h:t});return n.containerInfo=t,n}(Me.prototype=new G).__a=function(e){var t=this,n=ho(t.__v),o=t.l.get(e);return o[0]++,function(r){var s=function(){t.props.revealOrder?(o.push(r),an(t,e,o)):r()};n?n(s):s()}},Me.prototype.render=function(e){this.i=null,this.l=new Map;var t=re(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Me.prototype.componentDidUpdate=Me.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){an(e,n,t)})};var mo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,wr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Sr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Cr=/[A-Z0-9]/g,xr=typeof document<"u",kr=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function go(e,t,n){return t.__k==null&&(t.textContent=""),Ne(e,t),typeof n=="function"&&n(),e?e.__c:null}function Or(e,t,n){return oo(e,t),typeof n=="function"&&n(),e?e.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(G.prototype,e,{configurable:true,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:true,writable:true,value:t})}})});var cn=w.event;function Pr(){}function Ir(){return this.cancelBubble}function Mr(){return this.defaultPrevented}w.event=function(e){return cn&&(e=cn(e)),e.persist=Pr,e.isPropagationStopped=Ir,e.isDefaultPrevented=Mr,e.nativeEvent=e};var Nt,Ar={enumerable:false,configurable:true,get:function(){return this.class}},ln=w.vnode;w.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,r={},s=o.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||xr&&i==="children"&&o==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===true?a="":c==="translate"&&a==="no"?a=false:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?i="ondblclick":c!=="onchange"||o!=="input"&&o!=="textarea"||kr(n.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":Sr.test(i)&&(i=c):c=i="oninput":s&&wr.test(i)?i=i.replace(Cr,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&r[i=c]&&(i="oninputCapture"),r[i]=a}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=re(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=re(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",Ar)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=mo,ln&&ln(e)};var un=w.__r;w.__r=function(e){un&&un(e),Nt=e.__c};var fn=w.diffed;w.diffed=function(e){fn&&fn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Nt=null};var Er={ReactCurrentDispatcher:{current:{readContext:function(e){return Nt.__n[e.__c].props.value},useCallback:pe,useContext:ue,useDebugValue:io,useDeferredValue:uo,useEffect:L,useId:Mt,useImperativeHandle:so,useInsertionEffect:_o,useLayoutEffect:te,useMemo:de,useReducer:It,useRef:U,useState:ee,useSyncExternalStore:fe,useTransition:fo}}};function Tr(e){return se.bind(null,e)}function Xe(e){return!!e&&e.$$typeof===mo}function Nr(e){return Xe(e)&&e.type===Z}function $r(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Rr(e){return Xe(e)?ur.apply(null,arguments):e}function yo(e){return!!e.__k&&(Ne(null,e),true)}function Lr(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ur=function(e,t){return e(t)},Fr=function(e,t){return e(t)},Hr=Z,Dr=Xe,bi={useState:ee,useId:Mt,useReducer:It,useEffect:L,useLayoutEffect:te,useInsertionEffect:_o,useTransition:fo,useDeferredValue:uo,useSyncExternalStore:fe,startTransition:lo,useRef:U,useImperativeHandle:so,useMemo:de,useCallback:pe,useContext:ue,useDebugValue:io,version:"18.3.1",Children:hr,render:go,hydrate:Or,unmountComponentAtNode:yo,createPortal:Tt,createElement:se,createContext:Le,createFactory:Tr,cloneElement:Rr,createRef:sr,Fragment:Z,isValidElement:Xe,isElement:Dr,isFragment:Nr,isMemo:$r,findDOMNode:Lr,Component:G,PureComponent:gt,memo:Et,forwardRef:vr,flushSync:Fr,unstable_batchedUpdates:Ur,StrictMode:Hr,Suspense:Ke,SuspenseList:Me,lazy:gr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Er};function jr(e){return{render:function(t){go(t,e)},unmount:function(){yo(e)}}}const $t=Le("");function Br(){return ue($t)+Mt()}Ce(1,"styles/scale","@layer clover{:root{--clover-space-3xs: .146rem;--clover-space-2xs: .236rem;--clover-space-xs: .382rem;--clover-space-s: .618rem;--clover-space-m: 1rem;--clover-space-l: 1.618rem;--clover-space-xl: 2.618rem;--clover-space-2xl: 4.236rem;--clover-text-xs: .764rem;--clover-text-s: .854rem;--clover-text-m: 1.146rem;--clover-text-l: 1.236rem;--clover-control: calc(1rem + 2 * var(--clover-space-s));--clover-inset: var(--clover-space-l);--clover-picture: calc(4 * var(--clover-space-xl))}:where(.clover-title){margin:0;font-weight:var(--clover-title-weight, 400);line-height:1.25;overflow-wrap:anywhere}:where(.clover-root,.clover-canvas,.clover-items,.clover-geomap) :where(button,input,select,textarea){font:inherit}:where(.clover-field-pill-query,.clover-collection-select-control){box-sizing:border-box;padding:var(--clover-space-xs) var(--clover-space-s);border:1px solid var( --clover-field-edge, color-mix( in srgb, var(--clover-color-primary-muted, #26292b) 80%, var(--clover-color-secondary, #fff) ) );border-radius:var(--clover-radius, 3px);background-color:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e)}:where(.clover-field-pill-query,.clover-collection-select-control):focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:1px}:where(.clover-field-pill-query)::placeholder{color:color-mix(in srgb,var(--clover-color-primary, #1a1d1e) 65%,var(--clover-color-secondary, #fff));opacity:1}}");Ce(2,"styles/contrast","@layer clover{:where([data-high-contrast]){--clover-accent-fill: var(--clover-color-control, #1a1d1e);--clover-accent-ring: 3px solid var(--clover-color-accent, #0065c3);--clover-accent-ring-hover: 3px solid color-mix(in srgb, var(--clover-color-accent, #0065c3) 50%, transparent);--clover-accent-text-fallback: var(--clover-color-primary, #1a1d1e);--clover-transition: none}}");const Wr="clover-root",bo=Symbol("roots"),Vr=[];class wo{constructor(t){oe(this,"entries",new Map);oe(this,"lists",new Map);oe(this,"listeners",new Map);oe(this,"languages",new zr(t2=>this.entries.has(t2)));this.count=t}list(t){return this.lists.get(t)??Vr}subscribe(t,n){let o=this.listeners.get(t);return o||this.listeners.set(t,o=new Set),o.add(n),()=>{o.delete(n)}}connect(t){var s;const n=t.kind==="part"?((s=t.element.parentElement)==null?void 0:s.closest(Wr))??null:null,o=this.entries.get(t.element);if(o&&o.root===n)return;const r={hosted:t,key:(o==null?void 0:o.key)??++this.count.made,root:n};this.entries.set(t.element,r),o&&this.change(it(o),i=>i.filter(a=>a!==o)),this.change(it(r),i=>[...i,r]),t.needsRoot&&!n&&console.warn(`<${t.element.localName}> shows a <clover-root>'s state: put it inside one.`),t.kind!=="root"&&this.languages.draws(t.element.localName),(t.kind!=="part"||!n)&&this.languages.watch(t.element)}disconnect(t){const n=this.entries.get(t);n&&(this.entries.delete(t),this.change(it(n),o=>o.filter(r=>r!==n)))}change(t,n){var o;this.lists.set(t,n(this.list(t))),(o=this.listeners.get(t))==null||o.forEach(r=>r())}}const it=e=>e.hosted.kind==="root"?bo:e.root;class zr{constructor(t){oe(this,"observer",null);oe(this,"tags",new Set);this.isElement=t}draws(t){this.tags.add(t)}watch(t){this.observer??(this.observer=new MutationObserver(n=>{const o=[...this.tags,".clover-announcer"].join(",");for(const{target:r}of n){const s=r;s.getAttribute("lang")!==""||this.isElement(s)||s.closest(o)&&s.removeAttribute("lang")}})),this.observer.observe(t,{subtree:true,attributes:true,attributeFilter:["lang"]})}}function yt(e,t){const n=pe(r=>e.subscribe(t,r),[e,t]);return fe(n,()=>e.list(t))}function So(e){return fe(e.subscribe,e.getProps,e.getProps)}function qr({registry:e}){const t=yt(e,bo),n=yt(e,null);return $(Z,{children:[t.map(o=>$(Jr,{entry:o,registry:e},o.key)),n.map(o=>$(xo,{entry:o},o.key))]})}const Co=e=>`clover-${e.key}-`,Jr=Et(function({entry:t,registry:n}){const{hosted:o}=t,r=yt(n,o.element),s=So(o),i=o.Component;return $(ko,{hosted:o,props:s,children:$($t.Provider,{value:Co(t),children:$(i,{hosted:o,props:s,children:r.map(a=>$(xo,{entry:a},a.key))})})})}),xo=Et(function({entry:t}){const{hosted:n}=t,o=So(n);if(n.needsRoot&&!t.root)return null;const r=n.Component;return Tt($(ko,{hosted:n,props:o,children:$($t.Provider,{value:Co(t),children:$(r,{hosted:n,props:o})})}),n.element)});class ko extends G{constructor(){super(...arguments);oe(this,"state",{failed:false})}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(n,o){console.error(`<${this.props.hosted.element.localName}>:`,n)}componentDidUpdate(n){this.state.failed&&n.props!==this.props.props&&this.setState({failed:false})}render(){return this.state.failed?null:this.props.children}}const _n=new WeakMap,Ve=Symbol.for("clover.elements");function Kr(e){let t=_n.get(e);if(!t){const n=e;n[Ve]&&console.warn("Clover is loaded twice on this page: load one entry."),t=new wo(n[Ve]??(n[Ve]={made:0})),_n.set(e,t),jr(e.createElement("div")).render($(qr,{registry:t}))}return t}const wi=Object.freeze(Object.defineProperty({__proto__:null,Registry:wo,hostOf:Kr},Symbol.toStringTag,{value:"Module"})),Rt=Le(void 0);function Oo(e=K,t){const n=fe(j.subscribe,j.getSnapshot,j.getSnapshot),o=ue(Rt),r=t??o,s=pe((a,c)=>j.t(a,c,e),[e,n]),i=pe(a=>j.langOf(a,r,e),[e,n,r]);return{t:s,langOf:i,hostLanguage:r,i18n:j}}const Gr=/^(ar|arc|ckb|dv|fa|he|iw|ks|ps|sd|syr|ug|ur|yi)$/,Zr=/^(adlm|arab|hebr|nkoo|rohg|syrc|thaa)$/;function Yr(e){if(!e)return;const[t,...n]=e.toLowerCase().split(/[-_]/),o=n.find(r=>r.length===4);return(o?Zr.test(o):Gr.test(t))?"rtl":void 0}function dn(e){return e?{lang:e,dir:Yr(e)}:{}}function Xr(e,t,n={}){return((e==null?void 0:e.fetch)??globalThis.fetch)(t,{credentials:(e==null?void 0:e.credentials)??"same-origin",...n,headers:{...n.headers,...e==null?void 0:e.headers}})}const Si=e=>(e==null?void 0:e.credentials)==="include",Qr=e=>JSON.stringify([e==null?void 0:e.credentials,e==null?void 0:e.headers]);class es extends Error{constructor(t,n,o){super(t),this.url=n,this.status=o,this.name="CloverRequestError"}}async function Se(e,t,n){const o=await Xr(e,t,{signal:n,headers:{Accept:"application/ld+json, application/json"}});if(!o.ok)throw new es(`${t} answered ${o.status}`,t,o.status);return o.json()}const x=e=>Array.isArray(e)?e:e==null?[]:[e],Po=["Independents","Composite","List"];function Io(e){return x(e==null?void 0:e.body).flatMap(t=>Po.includes(t==null?void 0:t.type)?x(t.items):[t])}function ts(e){const t=x(e==null?void 0:e.motivation);return!t.length||t.includes("painting")}function ns(e){const t=[];for(const n of x(e==null?void 0:e.items))for(const o of x(n==null?void 0:n.items))if(ts(o))for(let r of Io(o))(r==null?void 0:r.type)==="Choice"&&(r=x(r.items)[0]),(r==null?void 0:r.type)==="SpecificResource"&&(r=typeof r.source=="string"?{id:r.source}:r.source),r&&t.push({body:r,annotation:o});return t}function Mo(e,t,n=", "){if(!e)return{text:""};if(typeof e=="string")return{text:e};const o=Object.keys(e).filter(a=>{var c;return(c=e[a])==null?void 0:c.length});if(!o.length)return{text:""};const r=Qo(o,t),s=e[r];return{text:Array.isArray(s)?s.join(n):String(s),lang:r==="none"?void 0:r}}const os=/^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$/;function Ci(e){const t=e==null?void 0:e.language,n=(Array.isArray(t)?t:[t]).filter(o=>typeof o=="string"&&os.test(o));return n.length===1?n[0]:void 0}const Qe=Le(null);function xi(){return ue(Qe)}function rs(e="This part"){const t=ue(Qe);if(!t)throw new Error(`${e} must be rendered inside <Clover.Root>.`);return t}function ki(e,t=Object.is,n){const{clover:o}=rs(n),r=U(null),s=()=>{const i=e(o.store.get());return r.current&&t(r.current.value,i)?r.current.value:(r.current={value:i},i)};return fe(o.store.subscribe,s)}const ss={subscribe:()=>()=>{}};function Oi(e,t){const n=ue(Qe),o=n==null?void 0:n.clover.store,r=()=>o?e(o.get()):t;return fe(o?o.subscribe:ss.subscribe,r)}function is(e,t){const n=ue(Rt),o=U(null),[r,s]=ee(""),i=pe(_=>{o.current=_,typeof e=="function"?e(_):e&&(e.current=_)},[e]);L(()=>{var u,d;const _=(u=o.current)==null?void 0:u.parentElement;t!==void 0||n!==void 0||!_||s(((d=_.closest("[lang]"))==null?void 0:d.getAttribute("lang"))??"")});const c=t??n??r,{langOf:l}=Oo(void 0,c);return{ref:i,hostLanguage:c,langOf:l}}Ce(23,"ui/ReadMore","@layer clover{.clover-read-more{display:flex;flex-direction:column;align-items:flex-start;gap:var(--clover-space-xs);min-width:0}button.clover-read-more-button{margin:0;padding:0;border:0;background:none;color:var( --clover-color-accent-text, var(--clover-accent-text-fallback, var(--clover-color-accent, #0065c3)) );font-size:var(--clover-text-s);text-decoration:underline 1px;text-decoration-color:color-mix(in srgb,currentColor 20%,transparent);text-underline-offset:var(--clover-space-3xs);cursor:pointer}button.clover-read-more-button:hover{text-decoration-color:currentColor}button.clover-read-more-button:focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:2px;border-radius:var(--clover-radius, 3px)}}");const as=["left-to-right","right-to-left","top-to-bottom","bottom-to-top"];function cs(e){return as.includes(e)?e:"left-to-right"}const ls=["individuals","paged","continuous","unordered"];function us(e){return x(e).find(n=>ls.includes(n))??"individuals"}function fs(e,t){if(!e.length)return[];if(t==="continuous")return[e.map((a,c)=>c)];if(t!=="paged")return e.map((a,c)=>[c]);const n=[];let o=[],r=0,s=false;const i=()=>{o.length&&n.push(o),o=[]};return e.forEach((a,c)=>{const l=x(a.behavior);if(l.includes("non-paged")){c===r&&r++,i(),n.push([c]);return}if(c===r||l.includes("facing-pages")){o.length&&(s=true),i(),n.push([c]);return}if(o.push(c),s){i(),s=false;return}o.length>1&&i()}),i(),n}function _s(e,t){const n=e.findIndex(o=>o.includes(t));return n===-1?0:n}function Ao(e,t){const n=/(?:^|[#&])t=([^&]+)/.exec(t),o=n&&{t:n[1]},r=/(?:^|[#&])xywh=(?:pixel:)?([^&]+)/.exec(t);if(r){const[s,i,a,c]=r[1].split(",").map(Number);if([s,i,a,c].every(Number.isFinite))return{id:e,rect:{x:s,y:i,w:a,h:c},...o}}return o&&{id:e,...o}}function ze(e){const t=e.indexOf("#");if(t>=0){const o=e.slice(0,t);return Ao(o,e.slice(t))??{id:o}}const n=e.indexOf("&t=");return n>=0?{id:e.slice(0,n),t:e.slice(n+3)}:{id:e}}const bt=e=>{var t;return Array.isArray(e)?bt(e[0]):Po.includes(e==null?void 0:e.type)?bt((t=e.items)==null?void 0:t[0]):e};function et(e){return ds(bt(e))}function ds(e){var n;if(typeof e=="string")return ze(e);if(!e||typeof e!="object")return{id:""};if(e.type!=="SpecificResource"||e.source===void 0)return ze(e.id??"");const t=typeof e.source=="string"?ze(e.source):ze(((n=e.source)==null?void 0:n.id)??"");for(const o of x(e.selector)){const r=o;if((r==null?void 0:r.type)==="PointSelector"){const[s,i,a]=[r.x,r.y,r.instant??r.t].map(Number),c=Number.isFinite(s)&&Number.isFinite(i);return{id:t.id,...c?{point:{x:s,y:i}}:{},...Number.isFinite(a)?{t:String(a)}:{}}}if((r==null?void 0:r.type)==="SvgSelector"&&r.value)return{id:t.id,svg:String(r.value)};if((r==null?void 0:r.type)==="FragmentSelector"&&r.value){const s=Ao(t.id,String(r.value));if(s)return s}}return t}const Pi=e=>e==="Audio"||e==="Sound",ps=e=>{const t=x(e);return t.length>0&&t.every(n=>n==="supplementing")},vs=(e,t)=>ps(e)&&!!(t.rect||t.svg||t.point)&&!t.t,pn=new WeakMap,hs={canvases:[],views:[],direction:"left-to-right"};function D(e){if(!e)return hs;let t=pn.get(e);if(!t){const n=(e.items??[]).filter(o=>(o==null?void 0:o.type)==="Canvas"||(o==null?void 0:o.type)==="Timeline"||(o==null?void 0:o.type)==="Scene");t={canvases:n,views:fs(n,us(e.behavior)),direction:cs(e.viewingDirection)},pn.set(e,t)}return t}const vn=new WeakMap;function Ue(e,t){if(!t)return null;const n=D(e);let o=vn.get(n);if(!o){o=new Map;for(const r of n.canvases)o.has(r.id)||o.set(r.id,r);vn.set(n,o)}return o.get(t)??null}function tt(e,t){const{canvases:n,views:o}=D(e),r=n.findIndex(s=>s.id===t);return r===-1?0:_s(o,r)}const hn=new WeakMap,ms=[];function Ee(e,t){if(!e)return ms;const n=tt(e,t);let o=hn.get(e);o||hn.set(e,o=new Map);let r=o.get(n);if(!r){const s=D(e);r=(s.views[n]??[]).map(i=>s.canvases[i]),o.set(n,r)}return r}function gs(e,t){var s,i;const{canvases:n,views:o}=D(e),r=(s=o[t])==null?void 0:s[0];return r===void 0?null:((i=n[r])==null?void 0:i.id)??null}function ys(e){const t=e==null?void 0:e.start;if(!t)return null;const n=et(t);if(!n.id)return null;const o={canvasId:n.id};n.rect&&(o.region=n.rect);const r=n.t?Number(n.t.split(",")[0]):NaN;return Number.isFinite(r)&&(o.time=r),o}const Ii=(e,t)=>{const n=e==null?void 0:e.behavior;return Array.isArray(n)?n.includes(t):n===t},Mi=e=>[(e==null?void 0:e.partOf)??[]].flat().find(t=>(t==null?void 0:t.id)&&t.type==="Collection");function Ai(e,t,n,o){const r=e==null?void 0:e.items;if(!(r!=null&&r.length)||!n)return-1;const s=Ee(n,o),i=a=>{const c=r[a];return((c==null?void 0:c.manifestId)===n.id||(c==null?void 0:c.manifestAs)===n.id)&&(!c.canvasId||s.some(l=>l.id===c.canvasId))};return t!==null&&i(t)?t:r.findIndex((a,c)=>i(c))}Ce(29,"components/Primitives/Primitives","@layer clover{.clover-summary:not([data-read-more=open]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--clover-summary-lines, 5);overflow:hidden}:is(.clover-metadata,.clover-required-statement){display:flex;flex-direction:column;gap:var(--clover-space-s);margin:0}:is(.clover-metadata,.clover-required-statement) dt{margin:0;font-weight:500}:is(.clover-metadata,.clover-required-statement) dd{margin:0}.clover-summary,:is(.clover-metadata,.clover-required-statement) :is(dt,dd){overflow-wrap:anywhere}:is(.clover-about,.clover-canvas-caption,.clover-annotations-body,.clover-metadata,.clover-required-statement,.clover-summary) a:not([class]){text-decoration-line:underline;text-underline-offset:var(--clover-space-3xs)}:is(.clover-homepage,.clover-rendering,.clover-see-also,.clover-part-of)>li{min-block-size:24px}:is(.clover-homepage,.clover-rendering,.clover-see-also,.clover-part-of) a,a:is(.clover-id,.clover-rights){color:var( --clover-color-accent-text, var(--clover-accent-text-fallback, var(--clover-color-accent, #0065c3)) );overflow-wrap:anywhere;text-decoration-line:underline;text-underline-offset:var(--clover-space-3xs)}.clover-link-format{color:var(--clover-color-primary-muted, #26292b);font-size:var(--clover-text-s)}}");const bs={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap",border:0},ws=e=>(e==null?void 0:e.format)==="text/vtt"||typeof(e==null?void 0:e.id)=="string"&&/\.vtt(\?|$)/i.test(e.id);function Ss(e){const t=[];let n=0;const o=(r,s)=>{var a;if(!r||ws(r))return;if(r.type==="SpecificResource"){r.source&&typeof r.source=="object"&&o(r.source,s);return}const i=s===void 0?{}:{choice:s};if(r.type==="TextualBody"||typeof r.value=="string")t.push({value:String(r.value??""),format:r.format,language:x(r.language)[0],...i});else if(r.type==="Image"&&r.id){const c=r.label??e.label;t.push({image:r.id,format:r.format,...c?{label:c}:{},...i})}else if(r.type==="Feature"){const c=((a=r.properties)==null?void 0:a.label)??e.label;c&&typeof c=="object"&&t.push({label:c,place:true,...i})}};for(const r of Io(e))if((r==null?void 0:r.type)!=="Choice")o(r);else{const s=n++;for(const i of x(r.items))o(i,s)}return t}const Eo="content-search",mn=/\/search\/([0-2])\//;function Cs(e){if(!e)return null;let t=null;for(const n of x(e.service)){const o=(n==null?void 0:n.id)??(n==null?void 0:n["@id"]);if(typeof o!="string")continue;const r=String(n.type??n["@type"]??""),s=[n.profile,n["@context"]].flat().map(a=>String(a??"")).join(" "),i=r==="SearchService2"?2:r==="SearchService1"?1:mn.test(s)?Number(mn.exec(s)[1])>=2?2:1:null;if(i===2)return{id:o,version:i};i===1&&(t??(t={id:o,version:i}))}return t}const xs="contents",Ei=(e,t)=>`${e}#region-${t+1}`,ks=e=>x(e==null?void 0:e.motivation).includes("linking");function To(e,t,n){const o=[];for(const r of x(e==null?void 0:e.items)){const s=x(r==null?void 0:r.motivation);if(s.includes("painting"))continue;const i=Ss(r);if(!i.length&&!ks(r))continue;const a=et(x(r.target)[0]),c=a.id||n;!c||!r.id||o.push({id:r.id,setId:t,canvasId:c,target:a,motivation:s,bodies:i,annotation:r})}return o}const Os=e=>D(e).canvases.some(t=>x(t.items).some(n=>x(n==null?void 0:n.items).some(o=>x(o==null?void 0:o.body).some(r=>[r,...x(r==null?void 0:r.items)].some(s=>x(s==null?void 0:s.annotations).length>0)))));function Ps(e,t){for(const n of[e,t])if(n!=null&&n.label)return n.label;for(const n of[e,t]){const o=x(n==null?void 0:n.partOf).find(r=>/AnnotationCollection/.test(String((r==null?void 0:r.type)??(r==null?void 0:r["@type"])))&&r.label);if(o)return o.label}}const No=e=>x(e==null?void 0:e.partOf).filter(t=>(t==null?void 0:t.id)&&/AnnotationCollection/.test(String((t==null?void 0:t.type)??(t==null?void 0:t["@type"])))),gn=new WeakMap;function $o(e){var n;if(!e)return[];let t=gn.get(e);if(!t){const o=new Map;for(const r of D(e).canvases)for(const s of x(r.annotations)){if(!Array.isArray(s==null?void 0:s.items))continue;const i=s.id??`${r.id}#annotations`;let a=o.get(i);if(!a){const c=(n=No(s)[0])==null?void 0:n.id;a={id:i,label:Ps(s),source:"manifest",entries:[],...c?{collection:c}:{}},o.set(i,a)}a.entries.push(...To(s,i,r.id))}t=[...o.values()].filter(r=>r.entries.length),gn.set(e,t)}return t}const yn=new WeakMap,Ro=[];function Ti(e){if(!e)return Ro;let t=yn.get(e);return t||(t=D(e).canvases.flatMap(n=>x(n.annotations).filter(o=>o==null?void 0:o.id).map(o=>({id:String(o.id),canvasId:String(n.id),fetched:Array.isArray(o.items)}))),yn.set(e,t)),t}const at=new WeakMap,ct=new WeakMap;function Is(e,t=Ms){var n;if(!ct.has(t)){const o=t.filter(s=>s.content),r=(n=o[0])==null?void 0:n.content;ct.set(t,r?{id:r.id,type:r.type,...r.label?{label:r.label}:{},pages:Ro,entries:o.flatMap(s=>s.entries)}:null)}return ct.get(t)??As(e)}const Ms=[];function As(e){var r;if(!e)return null;if(at.has(e))return at.get(e);const t=D(e).canvases.flatMap(s=>x(s.annotations).flatMap(i=>No(i).map(a=>({part:a,page:i,canvas:s})))),n=(r=t[0])==null?void 0:r.part.id,o=n?(()=>{var l,_;const s=t.filter(({part:u})=>u.id===n),i=(l=s.find(({part:u})=>u.label))==null?void 0:l.part.label,a=Number((_=s.find(({part:u})=>u.total))==null?void 0:_.part.total),c=$o(e);return{id:n,type:"AnnotationCollection",...i?{label:i}:{},...a>0?{total:a}:{},pages:s.map(({page:u,canvas:d})=>({id:String(u.id),canvasId:String(d.id),fetched:Array.isArray(u.items)})),entries:s.flatMap(({page:u})=>{var d;return((d=c.find(v=>v.id===u.id))==null?void 0:d.entries)??[]})}})():null;return at.set(e,o),o}const bn=new WeakMap,wn=[];function nt(e,t){const n=$o(e);if(!t.length)return n.length?n:wn;const o=e??wn;let r=bn.get(o);r||bn.set(o,r=new Map);let s=r.get(t);if(!s){const i=new Set(n.map(a=>a.id));s=[...n,...t.filter(a=>!i.has(a.id)&&!!i.add(a.id))],r.set(t,s)}return s}const Sn=new WeakMap;function Es(e,t,n,o=null){const r=nt(e,t),s=n!=null&&n.entries.length?n:null;if(!o&&!s)return r;let i=Sn.get(r);i||Sn.set(r,i=new Map);let a=i.get(o);a||i.set(o,a=new Map);let c=a.get(s);return c||(c=[...r,...o?[o]:[],...s?[s]:[]],a.set(s,c)),c}const Ts=e=>Number(e==null?void 0:e.duration)>0;function Lo(e,t){return e.source==="search"||!e.entries.length?false:e.entries.every(n=>vs(n.motivation,n.target)&&!Ts(t(n.canvasId)))}const Cn=new WeakMap;function Ni(e,t){const n=nt(e,t);let o=Cn.get(n);if(!o){const r=n.filter(s=>!Lo(s,i=>Ue(e,i)??void 0));o=r.length===n.length?n:r,Cn.set(n,o)}return o}const xn=new WeakMap;function Uo(e,t,n,o){const r=nt(e,t),s=xn.get(r);if(s&&s.hidden===n&&s.shown===o)return s.ids;const i=r.filter(c=>!n.includes(c.id)&&!o.includes(c.id)&&Lo(c,l=>Ue(e,l)??void 0)).map(c=>c.id),a=i.length?[...n,...i]:n;return xn.set(r,{hidden:n,shown:o,ids:a}),a}const kn=new WeakMap;function $i(e,t,n,o){const r=Uo(e,t,n,o),s=kn.get(r);if(s&&s.hidden===n)return s.ids;const i=[Eo,xs,...r.filter(a=>!n.includes(a))];return kn.set(r,{hidden:n,ids:i}),i}function Ns(e){for(const t of x(e==null?void 0:e.target)){const n=(t==null?void 0:t.type)==="SpecificResource"?t.source:t,o=x(n==null?void 0:n.partOf).find(r=>(r==null?void 0:r.id)&&(!r.type||r.type==="Manifest"));if(o)return o.id}}function lt(e,t){if(!t)return null;for(const n of e){const o=n.entries.find(r=>r.id===t);if(o)return o}return null}function Fo(e){return btoa(encodeURIComponent(JSON.stringify(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Ho({manifestId:e,canvasId:t,type:n="Canvas",region:o,time:r}){const s={id:t,type:n,...e&&e!==t?{partOf:[{id:e,type:"Manifest"}]}:{}},i=r!=null&&r>0?`t=${Math.round(r*100)/100}`:o?`xywh=${[o.x,o.y,o.w,o.h].map(Math.round).join(",")}`:null,a={"@context":`http://iiif.io/api/presentation/${n==="Canvas"?3:4}/context.json`,id:`${t}#content-state`,type:"Annotation",motivation:["contentState"],target:i?{type:"SpecificResource",source:s,selector:{type:"FragmentSelector",value:i}}:s};return{json:a,encoded:Fo(a)}}const Ri=Object.freeze(Object.defineProperty({__proto__:null,buildContentState:Ho,encodeContentState:Fo},Symbol.toStringTag,{value:"Module"})),$s=/iiif\.io\/api\/presentation\/4\/context\.json/;function Do(e){const t=e==null?void 0:e["@context"];return(Array.isArray(t)?t:[t]).some(o=>typeof o=="string"&&$s.test(o))}let On=null,Pn=null;function Lt(){return Pn??(Pn=import("./upgrade-eNW0DPXq.mjs")),On??(On=import("./upgrader-BlbMUEH6.mjs").then(({upgradePresentation3To4:e})=>e)),Promise.all([On,Pn])}async function ve(e){if(Do(e))return e;const[t,{upgrade:n}]=await Lt();return await n(e,t)}const In=()=>import("./content-state-reader-DYbmXxCp.mjs");function Mn(e){const t=e;return!t||typeof t!="object"?false:t.type==="Annotation"?x(t.motivation).includes("contentState"):t.type==="SpecificResource"}const Rs=["summary","metadata","requiredStatement","rights","provider","homepage","seeAlso","rendering","thumbnail","navDate","partOf"];function Ls(e){const t={"@context":Fs,id:e.id,type:"Manifest",label:e.label??{none:[""]},items:[e]};for(const n of Rs)e[n]!==void 0&&n!=="label"&&(t[n]=e[n]);return t}const Li=e=>{var t,n;return!!e&&((n=(t=e.items)==null?void 0:t[0])==null?void 0:n.id)===e.id},Us=/^(oa:)?Annotation(Page|Collection)$/;class qe extends Error{constructor(){super(...arguments);oe(this,"name","CloverContentError")}}const Fs="http://iiif.io/api/presentation/4/context.json",Hs=e=>/^https?:\/\//i.test(e);async function wt(e,{request:t,signal:n}){return Array.isArray(e.items)&&e.items.length>0||!e.id?e:await Se(t,e.id,n)}const Ds=50;async function Ut(e,t){const n=e;if(Array.isArray(n.items)&&n.items.length||!n.first)return e;const o=[],r=new Set;let s=n.first;for(let i=0;s&&i<Ds;i++){const a=typeof s=="string"?{id:s}:s;if(r.has(a.id??a))break;r.add(a.id??a);const c=a.items?a:await Se(t.request,a.id,t.signal),l=await ve({"@context":c["@context"]??n["@context"],...c,type:"Collection"});o.push(...l.items??[]),s=c.next}return{...n,items:o}}async function jo(e,t={}){return ve(await wt(e,t))}async function Bo(e,t,n=0){for(const o of e.items??[]){if(o.type==="Manifest")return ve(await wt(o,t));if(o.type==="Collection"&&n<8){const r=await Ut(await ve(await wt(o,t)),t),s=await Bo(r,t,n+1);if(s)return s}}return null}async function js(e,{request:t,signal:n}={}){Lt();const o=typeof e=="string"?await Se(t,e.trim(),n):e,r=await ve(o);return r.type==="Collection"?Ut(r,{request:t,signal:n}):r}async function Bs(e,t={}){var u;const{request:n,signal:o}=t;Lt();let r,s,i,a,c;const l=async d=>{const{resolveContentState:v}=await In(),m=v(d);if(!m)throw new qe("Unreadable content state");return r=m.target??r,s=m.manifestId??s,i=m.annotation??i,a=m.targets??a,Se(n,m.id,o)};if(typeof e=="string")if(Hs(e.trim()))c=await Se(n,e.trim(),o);else{const{decodeContentState:d}=await In(),v=d(e);if(!v)throw new qe("Unreadable iiifContent");c=Mn(v)?await l(v):v}else c=e;if(Mn(c)&&(c=await l(c)),Us.test(String((c==null?void 0:c.type)??""))){const{annotationsContent:d}=await import("./annotations-content-Cl1upbdd.mjs");return d(c,t)}const _=await ve(c);switch((u=o==null?void 0:o.throwIfAborted)==null||u.call(o),_.type){case"Manifest":return{manifest:_,target:r,annotation:i,targets:a};case"Collection":{const d=await Ut(_,t),v=t.manifestId??s,m=v?(d.items??[]).find(k=>k.id===v&&k.type==="Manifest"):void 0,P=m?await jo(m,t):await Bo(d,t);if(!P)throw new qe("The Collection holds no Manifest");return{manifest:P,collection:d,target:r,annotation:i,targets:a}}case"Canvas":case"Timeline":case"Scene":{const d=_;return r??(r={canvasId:d.id}),{manifest:Ls(d),target:r,annotation:i}}default:throw new qe(`Cannot show a ${String(_.type??"resource without a type")}`)}}const Wo=e=>!!(e!=null&&e.id)&&e.type==="AnnotationPage"&&!e.items;function An(e){const t=[];for(const n of e)for(const o of["items","annotations"])for(const r of n[o]??[])Wo(r)&&t.push([n.id,o,r.id]);return t}async function Ws(e,t,n,o){return Vs(await Se(n,e,o),t)}async function Vs(e,t="urn:clover:annotation-page"){var r;const n=e;return Do(n)?n:((r=(await ve({"@context":n["@context"]??"http://iiif.io/api/presentation/3/context.json",id:t,type:"Canvas",items:[{...n,"@context":void 0}]})).items)==null?void 0:r[0])??n}function zs(e,t){const n=e,o=t,r=c=>Array.isArray(c)?c:c?[c]:[],s=r(n.partOf),i=r(o.partOf),a=[...s.map(c=>({...i.find(l=>l.id&&l.id===c.id),...c})),...i.filter(c=>!s.some(l=>l.id===c.id))];return{...e,...n.label===void 0&&o.label!==void 0&&{label:o.label},...a.length&&{partOf:a}}}function qs(e,t,n,o){let r=false;const s=(e.items??[]).map(i=>{if(i.id!==t||!Array.isArray(i[n]))return i;const a=i[n].map(c=>c.id!==o.id||!Wo(c)?c:(r=true,zs(o,c)));return r?{...i,[n]:a}:i});return r?{...e,items:s}:e}function Js(e){let t=e;const n=new Set;return{get:()=>t,set(o){const r=typeof o=="function"?o(t):o;Object.keys(r).some(i=>!Object.is(r[i],t[i]))&&(t={...t,...r},n.forEach(i=>i()))},subscribe(o){return n.add(o),()=>n.delete(o)}}}function ge(e){let t=e;const n=new Set;return{get:()=>t,emit(o){t=o,n.forEach(r=>r(o))},subscribe(o){return n.add(o),()=>n.delete(o)}}}function Ks(e,t,n){return{position:t,total:n,hasPrevious:t>0,hasNext:t+1<n,previous:()=>e.previous(),next:()=>e.next(),first:()=>e.first(),last:()=>e.last(),goTo:o=>e.goTo(o)}}const St={query:"",status:"idle",hits:[],set:null},En={status:"idle",error:null,manifest:null,collection:null,throughCollection:false,canvasId:null,target:null,annotationId:null,hiddenSets:[],shownSets:[],addedSets:[],search:St,regions:null,targets:null,targetIndex:null};function Gs(e={}){const t=Js(En),n=ge(null),o=ge(null),r=ge(null),s=ge(null),i=ge(null),a=ge(null);let c=null,l=null,_=[],u=[],d=[],v=0,m=null,P=null,k=null;const C=(f,p)=>{!P||f===p||(P={...P,items:P.items.map(h=>h.manifestId===f&&h.manifestAs!==p?{...h,manifestAs:p}:h)})},b=f=>{var h;const p=(h=t.get().manifest)==null?void 0:h.id;return!!p&&(p===f.manifestId||p===f.manifestAs)},S=()=>_.length||u.length||d.length?[..._,...u,...d]:En.addedSets;let I=e.request,M=null;const F=new Set;let ie="view",B=0;const Y=(f,p,h)=>{if(F.has(h))return;F.add(h);const g=M==null?void 0:M.signal;Ws(h,f,I,g).then(y=>{g!=null&&g.aborted||t.set(O=>O.manifest?{manifest:qs(O.manifest,f,p,y)}:{})}).catch(()=>F.delete(h))},X=()=>{const{manifest:f,canvasId:p}=t.get();if(f)for(const[h,g,y]of An(ie==="all"||B>0?D(f).canvases:Ee(f,p)))Y(h,g,y)};t.subscribe(X);const H=(f,p,h,g,y)=>{var jt,Bt,Wt;const{canvases:O}=D(f),E=me=>!!me&&O.some(Jo=>Jo.id===me),T=ys(f),z=E(h==null?void 0:h.canvasId)?h:E(T==null?void 0:T.canvasId)?T:null,q=E(g.canvasId)?g.canvasId:(z==null?void 0:z.canvasId)??(E(g.defaultCanvasId)?g.defaultCanvasId:null)??((jt=O[0])==null?void 0:jt.id)??null;l==null||l.abort();const ne=y&&((Bt=lt(d,y))==null?void 0:Bt.canvasId)===q?y:null,he=z&&ne?{...z,region:void 0}:z,je=++v;_=[],t.set({status:"ready",search:St,regions:null,manifest:f,collection:p,canvasId:q,target:he&&he.canvasId===q?he:null,addedSets:S(),annotationId:ne,targets:P});const Dt=f==null?void 0:f.structures;Array.isArray(Dt)&&JSON.stringify(Dt).includes("xywh=")&&import("./range-regions-Di_lmVqZ.mjs").then(({contentsSet:me})=>{v===je&&t.set({regions:me(f)})}),Os(f)&&import("./image-layers-BPnq7jk1.mjs").then(({imageLayers:me})=>{v===je&&(_=me(f),t.set({addedSets:S()}))}),q&&q!==g.canvasId&&((Wt=e.onCanvasChange)==null||Wt.call(e,q))},W=(f,p)=>t.set(h=>{const g=h.hiddenSets.filter(O=>O!==f),y=h.shownSets.filter(O=>O!==f);return p?{hiddenSets:g,shownSets:[...y,f]}:{hiddenSets:[...g,f],shownSets:y}}),ae=(f,p)=>{var g,y,O;if(!f)return;if((g=e.isControlled)!=null&&g.call(e)){p&&t.set({target:p}),(y=e.onCanvasChange)==null||y.call(e,f);return}const h=t.get().canvasId!==f;t.set({canvasId:f,target:p}),h&&((O=e.onCanvasChange)==null||O.call(e,f))},ce=(f,p=false)=>{const{manifest:h}=t.get(),g=gs(h,f);ae(g,g&&p?{canvasId:g,autoplay:p}:null)},ke=()=>{const{manifest:f,canvasId:p}=t.get();return{at:tt(f,p),total:D(f).views.length}},Oe=()=>{M==null||M.abort();const f=new AbortController;return M=f,F.clear(),t.set({status:"loading",error:null,annotationId:null}),f.signal},Fe=f=>t.set({status:"error",error:f instanceof Error?f:new Error(String(f))});async function He(f,p={}){var g;const h=Oe();try{const y=await Bs(f,{request:I,signal:h,manifestId:p.manifestId??void 0});if(h.aborted)return;const O=y.annotation,E=O?To({items:[O]},`${O.id}#content-state`):[];d=E.length?[{id:`${O.id}#content-state`,source:"added",entries:E}]:y.annotationSets??[];const T=m??((g=E[0])==null?void 0:g.id)??y.pick;m=null,t.set({throughCollection:!!y.collection}),P=y.targets??null,P&&C(P.items[0].manifestId,y.manifest.id),t.set({targetIndex:P?0:null}),H(y.manifest,y.collection??null,y.target,p,T)}catch(y){h.aborted||Fe(y)}}const Pe=f=>{const{manifest:p,collection:h}=t.get();return(p==null?void 0:p.id)===f||(h==null?void 0:h.id)===f},De=f=>{var p;return(((p=t.get().collection)==null?void 0:p.items)??[]).find(h=>h.id===f)??{id:f,type:"Manifest"}},V=(f,p)=>{var h,g;if(m=p,(h=e.isManifestControlled)!=null&&h.call(e)){(g=e.onManifestChange)==null||g.call(e,f);return}R({id:f,type:"Manifest"}).then(y=>{var O;return y&&((O=e.onManifestChange)==null?void 0:O.call(e,f))})},R=async(f,p)=>{if(f.type==="Collection")return await He(f.id),t.get().status==="ready";const{collection:h}=t.get(),g=Oe(),y=m;m=null;const O=y?lt(d,y):null,E=typeof p=="string"?{canvasId:p}:p??k;k=null;try{const T=await jo(f,{request:I,signal:g});return g.aborted?false:(C(f.id,T.id),H(T,h,O?{canvasId:O.canvasId}:E??void 0,{},y),true)}catch(T){return g.aborted||Fe(T),false}};return{store:t,viewport:n,media:o,captions:r,highlight:s,chapter:i,found:a,get request(){return I},setRequest(f){I=f},load:He,async openCollection(f){var h;const p=t.get().manifest;if(!(!p||((h=t.get().collection)==null?void 0:h.id)===f))try{const g=await js(f,{request:I});if(g.type!=="Collection"||t.get().manifest!==p)return;t.set({collection:g})}catch{}},async goToManifest(f,p){var g,y,O;if(Pe(f))return;const h=De(f);if(h.type!=="Collection"&&((g=e.isManifestControlled)!=null&&g.call(e))){(y=e.onManifestChange)==null||y.call(e,f);return}await R(h,p)&&((O=e.onManifestChange)==null||O.call(e,t.get().manifest.id))},goToTarget(f){var g,y,O;const p=(g=t.get().targets)==null?void 0:g.items[f];if(!p)return;t.set({targetIndex:f});const h=p.canvasId?{canvasId:p.canvasId,...p.region&&{region:p.region},...p.time!==void 0&&{time:p.time}}:null;if(b(p)){h&&ae(h.canvasId,h);return}if((y=e.isManifestControlled)!=null&&y.call(e)){k=h,(O=e.onManifestChange)==null||O.call(e,p.manifestId);return}R(De(p.manifestId),h??void 0).then(E=>{var T;return E&&((T=e.onManifestChange)==null?void 0:T.call(e,p.manifestId))})},async syncManifest(f){!f||Pe(f)||t.get().status!=="ready"||await R(De(f))},goTo(f,p){ae(f,p?{...p,canvasId:f}:null)},next({autoplay:f=false,wrap:p=false}={}){const{at:h,total:g}=ke();h+1<g?ce(h+1,f):p&&g>1&&ce(0,f)},previous(){const{at:f}=ke();f>0&&ce(f-1)},first(){ce(0)},last(){ce(ke().total-1)},consumeTarget(){t.set({target:null})},syncCanvas(f){f&&t.set({canvasId:f})},selectAnnotation(f){const{manifest:p,addedSets:h,canvasId:g,search:y,regions:O}=t.get(),E=lt(Es(p,h,y.set,O),f);if(t.set({annotationId:E?f:null}),!E)return;a.emit(f);const{hiddenSets:T,shownSets:z}=t.get();E.setId!==Eo&&Uo(p,h,T,z).includes(E.setId)&&W(E.setId,true);const q=Ee(p,g).some(je=>je.id===E.canvasId),ne=Ue(p,E.canvasId)!==null;!q&&ne&&ae(E.canvasId,null);const he=ne?void 0:Ns(E.annotation);he&&V(he,E.id)},async search(f){l==null||l.abort();const p=Cs(t.get().manifest),h=f.trim();if(!h||!p){l=null,t.set({search:St,annotationId:null});return}const g=new AbortController;l=g,t.set(y=>({search:{...y.search,query:h,status:"loading"}}));try{const{searchInto:y}=await import("./search-Dd2Y1dsZ.mjs");await y(t,p,h,I,g.signal)}catch{t.set({search:{query:h,status:"error",hits:[],set:null}})}},setSetVisible(f,p){W(f,p)},async loadAnnotations(f){if(c==null||c.abort(),!f){u=[],t.set({addedSets:S()});return}const p=new AbortController;c=p;try{const{loadAnnotationSets:h}=await import("./annotation-collection-nmxzo_hO.mjs"),g=await h(f,{request:I,signal:p.signal});if(p.signal.aborted)return;u=g,t.set({addedSets:S()})}catch{}},getContentState(){var q;const{manifest:f,canvasId:p}=t.get();if(!f||!p)return null;const h=n.get(),g=o.get(),y=g&&g.currentTime>0?g.currentTime:null,O=Ee(f,p),T=h&&O.some(ne=>ne.id===h.canvasId)&&!y?h:null,z=(T==null?void 0:T.canvasId)??p;return Ho({manifestId:f.id,canvasId:z,type:(q=O.find(ne=>ne.id===z))==null?void 0:q.type,region:T==null?void 0:T.region,time:y})},setAnnotationPages(f){f!==ie&&(ie=f,X())},fetchAnnotationPages(f){const{manifest:p}=t.get();if(!p||!f.length)return;const h=new Set(f);for(const[g,y,O]of An(D(p).canvases))h.has(O)&&Y(g,y,O)},holdAllAnnotationPages(){B++,X();let f=true;return()=>{f&&B--,f=false}},dispose(){M==null||M.abort(),c==null||c.abort(),l==null||l.abort()}}}function Zs({clover:e,language:t}){const{t:n,langOf:o}=Oo(),[r,s]=ee(null),i=U(n);return i.current=n,L(()=>{let a=null;return e.store.subscribe(()=>{const{manifest:c,canvasId:l,status:_}=e.store.get();if(_!=="ready"||l===a)return;const u=a===null;if(a=l,u)return;const d=Ue(c,l),v=Mo(d==null?void 0:d.label,t),m=i.current("canvasPosition",{index:tt(c,l)+1,total:D(c).views.length});s({label:v.text,lang:v.lang,position:m})})},[e,t]),$("div",{className:"clover-announcer",role:"status","aria-live":"polite","aria-atomic":"true",style:bs,children:[r!=null&&r.label?$(Z,{children:[$("span",{...dn(r.lang),children:r.label}),","," "]}):null,r&&$("span",{...dn(o("canvasPosition")),children:r.position})]})}const Ys=100;function Xs(e,t){const n=U({read:e,onChange:t});n.current={read:e,onChange:t};const o=U(void 0),r=U("");return L(()=>()=>{clearTimeout(o.current),o.current=void 0},[]),pe(()=>{!n.current.onChange||o.current!==void 0||(o.current=setTimeout(()=>{var i,a;o.current=void 0;const s=n.current.read();!s||s.encoded===r.current||(r.current=s.encoded,(a=(i=n.current).onChange)==null||a.call(i,s))},Ys))},[])}function Tn(e,t){return e==null||e.addEventListener("pause",t),e==null||e.addEventListener("seeked",t),()=>{e==null||e.removeEventListener("pause",t),e==null||e.removeEventListener("seeked",t)}}function Qs(e,t){const n=Xs(()=>e.getContentState(),t),o=!!t;L(()=>{if(!o)return;let r=e.store.get().canvasId;const s=e.store.subscribe(()=>{const l=e.store.get().canvasId;l!==r&&(r=l,n())}),i=e.viewport.subscribe(n);let a=Tn(e.media.get(),n);const c=e.media.subscribe(l=>{a(),a=Tn(l,n)});return n(),()=>{s(),i(),c(),a()}},[e,o,n])}function Ui(e){return e.flatMap(t=>ns(t).map(({body:n})=>n))}function Fi(e,t){if(!(e!=null&&e.length)||!t.canvases.length)return null;const n=t.canvases.map(r=>r.id),o=t.bodies.map(r=>r==null?void 0:r.format).filter(Boolean);return e.find(r=>{var s,i,a;return((s=r.canvasId)==null?void 0:s.some(c=>n.includes(c)))||((i=r.format)==null?void 0:i.some(c=>o.includes(c)))||!!((a=r.match)!=null&&a.call(r,t))})??null}function ei(e,t){return e===t?true:!e||!t||e.length!==t.length?false:e.every((n,o)=>n.component===t[o].component&&n.match===t[o].match&&JSON.stringify([n.canvasId,n.format])===JSON.stringify([t[o].canvasId,t[o].format]))}function ti({iiifContent:e,canvasId:t,defaultCanvasId:n,onCanvasChange:o,onStatusChange:r,manifestId:s,defaultManifestId:i,onManifestChange:a,searchQuery:c,request:l,language:_,renderers:u,annotations:d,annotationPages:v="view",onContentStateChange:m,...P}){const k=t!==void 0,C=s!==void 0,b=U({controlled:k,manifestControlled:C,onCanvasChange:o,onStatusChange:r,onManifestChange:a});b.current={controlled:k,manifestControlled:C,onCanvasChange:o,onStatusChange:r,onManifestChange:a};const[S]=ee(()=>Gs({request:l,onCanvasChange:V=>{var R,f;return(f=(R=b.current).onCanvasChange)==null?void 0:f.call(R,V)},onManifestChange:V=>{var R,f;return(f=(R=b.current).onManifestChange)==null?void 0:f.call(R,V)},isControlled:()=>b.current.controlled,isManifestControlled:()=>b.current.manifestControlled}));S.setRequest(l);const I=U({});I.current={canvasId:t,defaultCanvasId:n,manifestId:s??i};const M=Qr(l),F=U(e);F.current=e;const ie=ri(e);L(()=>(S.load(F.current,I.current),()=>S.dispose()),[S,ie,M]),L(()=>{k&&S.syncCanvas(t??null)},[S,k,t]);const[B,Y]=ee(S.store.get().status);L(()=>{let V=S.store.get().status;return S.store.subscribe(()=>{var p,h;const{status:R,error:f}=S.store.get();R!==V&&(V=R,Y(R),(h=(p=b.current).onStatusChange)==null||h.call(p,R,f))})},[S]);const X=U(d);X.current=d;const H=oi(d);L(()=>{S.loadAnnotations(X.current??null)},[S,H,M]),L(()=>{S.setAnnotationPages(v)},[S,v]),Qs(S,m),L(()=>{C&&B==="ready"&&S.syncManifest(s??null)},[S,C,s,B]);const W=ni(S,V=>{var R;return V.status==="ready"?((R=V.manifest)==null?void 0:R.id)??null:null});L(()=>{c&&W&&S.search(c)},[S,c,W]);const ae=U(u);ei(ae.current,u)||(ae.current=u);const ce=ae.current,[ke,Oe]=ee(),[Fe,He]=ee(_);Fe!==_&&(He(_),Oe(void 0));const Pe=ke??_;return[de(()=>({clover:S,language:Pe,renderers:ce,chooseLanguage:Oe}),[S,Pe,ce]),B,P]}function ni(e,t){return fe(e.store.subscribe,()=>t(e.store.get()))}function oi(e){const t=Array.isArray(e)?e:e?[e]:[];return JSON.stringify(t.map(n=>typeof n=="string"?n:(n==null?void 0:n.id)??"object"))}function ri(e){return typeof e=="string"?e:e.id??e["@id"]??e}const ut=new Map;function Hi(e,t){const n=Br(),o=U(t);o.current=t,L(()=>e?Vo(n,o):void 0,[e,n])}function Vo(e,t){for(const[n,o]of[...ut])n!==e&&o.current();return ut.set(e,t),()=>{ut.delete(e)}}let si=0;const ii=e=>Vo(`page-${si+=1}`,{current:e}),Nn=new WeakMap;function ai(e,t){const[n,o]=ee(()=>Nn.get(e)??null);return L(()=>{if(!t||n)return;let r=true;return e().then(s=>{Nn.set(e,s),r&&o(()=>s)},()=>{}),()=>{r=false}},[e,t,n]),n}function Di(e){const t=Math.max(0,Math.floor(e||0)),n=Math.floor(t/3600),o=Math.floor(t%3600/60),r=String(t%60).padStart(2,"0");return n?`${n}:${String(o).padStart(2,"0")}:${r}`:`${o}:${r}`}function ji(e,t){var n;if(e.currentTime=t,!!e.paused)try{(n=e.play())==null||n.catch(()=>{})}catch{}}function Ft(e){if(!e)return;const[t,n]=e.split(","),o=Number(t);if(t===""||Number.isNaN(o))return;if(n===void 0||n==="")return{start:o};const r=Number(n);return Number.isNaN(r)?{start:o}:{start:o,end:r}}function Ht(e){if(typeof e=="string")return $n(e);const t=e;return(t==null?void 0:t.type)==="SpecificResource"?t:typeof(t==null?void 0:t.id)=="string"?$n(t.id):t}const $n=e=>e.replace(/\/((?:t|xywh)=[^/#]*)$/,"#$1");function zo(e){const t=x(e.thumbnail)[0];return t&&typeof t=="object"?{thumbnail:t}:{}}const Rn=new WeakMap,Ln=[];function ci(e,t,n){if(!e||!t)return Ln;let o=Rn.get(e);o||Rn.set(e,o=new Map);const r=`${t}|${n??""}`,s=o.get(r);if(s)return s;const i=[],a=new Set,c=_=>{if(!_||a.has(_.id??_))return;a.add(_.id??_);const u=!x(_.behavior).includes("no-nav");for(const d of x(_.items)){if((d==null?void 0:d.type)==="Range"){c(d);continue}if(!u)continue;const v=et(Ht(d));if(v.id.split("#")[0]!==t)continue;const m=Ft(v.t);m&&i.push({..._.id?{id:_.id}:{},label:_.label,...m,...zo(_)})}};for(const _ of x(e.structures))c(_);i.sort((_,u)=>_.start-u.start);const l=i.length?i.map((_,u)=>{var d;return{..._,end:_.end??((d=i[u+1])==null?void 0:d.start)??n}}):Ln;return o.set(r,l),l}const Un=new WeakMap,Fn=[];function qo(e){if(!e)return Fn;const t=Un.get(e);if(t)return t;const n=new Map(x(e.items).map((c,l)=>[c==null?void 0:c.id,l])),o=new Set,r=c=>{var b,S;if(!c||o.has(c.id??c))return[];o.add(c.id??c);const l=[],_=[],u=[];let d;for(const I of x(c.items))if((I==null?void 0:I.type)==="Range"){const M=r(I);l.push(...M),M.forEach(F=>_.push(...F.canvasIds))}else{const M=et(Ht(I));if(!M.id)continue;d??(d=M),_.push(M.id),u.push(M)}const v=x(c.behavior);if(v.includes("no-nav"))return l;const m=d??void 0,P={id:c.id??`range-${o.size}`,label:c.label,canvasId:(m==null?void 0:m.id)??((b=l[0])==null?void 0:b.canvasId),canvasIds:[...new Set(_)],...v.includes("sequence")?{sequence:true}:{},...zo(c),children:l},k=Ft(m==null?void 0:m.t);return k?P.time=k:!m&&((S=l[0])!=null&&S.time)&&(P.time=l[0].time),m!=null&&m.rect&&(P.region=m.rect),(v.includes("sequence")&&u.length>1&&!u.some(I=>I.t)||li(u,n))&&(P.parts=u.map(I=>({canvasId:I.id,...I.rect?{region:I.rect}:{}}))),[P]},s=x(e.structures).flatMap(r),i=s.length===1&&s[0].children.length?s[0].children:s,a=i.length?i:Fn;return Un.set(e,a),a}function li(e,t){return!e.length||e.some(n=>n.t)?false:e.some(n=>n.rect)?true:e.some((n,o)=>o>0&&t.get(n.id)!==(t.get(e[o-1].id)??NaN)+1)}function ui(e,t,n,o){let r=null,s=null;const i=(l,_,u)=>!l||u>l.depth||u===l.depth&&!(l.sequence&&_.sequence),a=(l,_,u)=>{const d=u||l.id===o;if(t&&l.canvasIds.includes(t)&&(!l.time||n!==void 0&&n>=l.time.start&&(l.time.end===void 0||n<l.time.end))){const m={id:l.id,depth:_,...l.sequence?{sequence:true}:{}};i(r,l,_)&&(r=m),d&&i(s,l,_)&&(s=m)}l.children.forEach(v=>a(v,_+1,d))};e.forEach(l=>a(l,0,false));const c=s??r;return c?c.id:null}const Bi=Object.freeze(Object.defineProperty({__proto__:null,chaptersOf:ci,currentContents:ui,parseTime:Ft,rangeItemTarget:Ht,tableOfContents:qo},Symbol.toStringTag,{value:"Module"}));Ce(31,"components/Label/Label","@layer clover{.clover-label{text-wrap:balance}}");Ce(32,"components/Status/Status","@layer clover{.clover-status{margin:0;padding:var(--clover-space-m);color:var(--clover-color-primary-muted, #26292b)}.clover-status[data-status=loading]{display:flex}.clover-status[data-status=error] p{margin:0}.clover-status-detail{font-size:var(--clover-text-s)}}");const Wi=()=>import("./controls-VC9D1mwr.mjs"),fi=()=>import("./renderers-hoD3WKYA.mjs");function Vi(e){te(()=>()=>e==null?void 0:e(null),[e])}function _i(e,t,n){const o=()=>e.store.get();return{get state(){return o()},subscribe(r){return e.store.subscribe(()=>r(o()))},get language(){return t()},status(){const{status:r,error:s}=o();return{status:r,error:s}},manifest(){return o().manifest},sequence(){return D(o().manifest)},visibleCanvases(){return Ee(o().manifest,o().canvasId)},activeCanvas(){return Ue(o().manifest,o().canvasId)},navigation(){const{manifest:r,canvasId:s}=o();return Ks(e,tt(r,s),D(r).views.length)},annotationSets(){return nt(o().manifest,o().addedSets)},annotationCollection(){return Is(o().manifest,o().addedSets)},contents(){return qo(o().manifest)},localize(r){return Mo(r,t())},t(r,s){return j.t(r,s,K)},langOf(r){return j.langOf(r,n(),K)},oneOpen(r){return ii(r)}}}function di(e,t,n){return Object.defineProperties(Object.create(e),Object.getOwnPropertyDescriptors(_i(e,t,n)))}const pi=Le(null);function vi({hosted:e,props:t,children:n}){const o=ai(fi,!!t.renderers);return!t.iiifContent||t.renderers&&!o?null:$(hi,{element:e.element,props:t,toRenderers:o==null?void 0:o.toRenderers,children:n})}function hi({element:e,props:t,toRenderers:n,children:o}){const{canvasId:r,manifestId:s,lang:i,onReady:a,renderers:c,...l}=t,_=is(void 0,i);_.ref(e);const u=de(()=>n==null?void 0:n(c),[n,c]),[d,v]=ti({...l,defaultCanvasId:r,defaultManifestId:s,renderers:u}),{clover:m,language:P}=d,k=U({language:P,host:_.hostLanguage});k.current={language:P,host:_.hostLanguage};const C=de(()=>di(m,()=>k.current.language,()=>k.current.host),[m]);return te(()=>(a==null||a(C),()=>a==null?void 0:a(null)),[C,a]),Hn(m,r,b=>m.goTo(b)),Hn(m,s,b=>void m.goToManifest(b)),te(()=>(e.classList.add("clover-root"),()=>e.classList.remove("clover-root")),[e]),te(()=>{e.setAttribute("data-status",v)},[e,v]),te(()=>()=>e.removeAttribute("data-status"),[e]),$(Qe.Provider,{value:d,children:$(Rt.Provider,{value:_.hostLanguage,children:$(pi.Provider,{value:C,children:[o,Tt($(Zs,{clover:m,language:P}),e)]})})})}function Hn(e,t,n){const o=U(t);L(()=>{t&&t!==o.current&&n(t),o.current=t},[e,t])}const zi=Object.freeze(Object.defineProperty({__proto__:null,RootElement:vi},Symbol.toStringTag,{value:"Module"}));export{Tt as $,U as A,Ft as B,fe as C,vr as D,ji as E,D as F,Ns as G,Vn as H,Mi as I,qo as J,ui as K,Ei as L,Cs as M,Yo as N,xi as O,Ke as P,Le as Q,bi as R,x as S,de as T,Eo as U,Qo as V,Li as W,Oi as X,Ci as Y,Ue as Z,te as _,Oo as a,Si as a0,Xr as a1,is as a2,cs as a3,Xs as a4,Tn as a5,Rt as a6,ts as a7,et as a8,Io as a9,Ps as aA,qe as aB,pi as aC,js as aD,vs as aE,Po as aF,Ss as aG,Bs as aH,yi as aI,wi as aJ,Ri as aK,Bi as aL,zi as aM,Pi as aa,Hi as ab,ns as ac,Ai as ad,Ks as ae,Is as af,tt as ag,Di as ah,ti as ai,Zs as aj,Qe as ak,Ii as al,Es as am,ci as an,$i as ao,$o as ap,jo as aq,j as ar,Yr as as,Ho as at,Qr as au,xs as av,Ht as aw,To as ax,Se as ay,Vs as az,Br as b,ki as c,ee as d,rs as e,ai as f,fi as g,Vi as h,Wi as i,Qs as j,Z as k,dn as l,Fi as m,Ee as n,Uo as o,Ui as p,pe as q,Ti as r,Ni as s,Mo as t,$ as u,bs as v,lt as w,ue as x,L as y,gr as z};
@@ -1 +1 @@
1
- import{F as n}from"./shared-DkY2a89G.mjs";function f(a,e){const s=a.store.get().manifest;if(e.canvasId&&n(s).canvases.some(t=>t.id===e.canvasId))a.goTo(e.canvasId);else if(e.manifestId&&e.manifestId!==(s==null?void 0:s.id))a.goToManifest(e.manifestId,e.canvasId);else return false;return true}export{f as s};
1
+ import{F as n}from"./shared-CCg1Iag8.mjs";function f(a,e){const s=a.store.get().manifest;if(e.canvasId&&n(s).canvases.some(t=>t.id===e.canvasId))a.goTo(e.canvasId);else if(e.manifestId&&e.manifestId!==(s==null?void 0:s.id))a.goToManifest(e.manifestId,e.canvasId);else return false;return true}export{f as s};
@@ -1 +1 @@
1
- import{i as l}from"./imageService-iFElsopt.mjs";function s(t,g,e){const a=(h,d)=>Math.min(Math.max(Math.round(h),0),d),m=e?a(e.x*t.width,t.width-1):0,w=e?a(e.y*t.height,t.height-1):0,i={x:m,y:w,width:e?Math.max(1,a(e.width*t.width,t.width-m)):t.width,height:e?Math.max(1,a(e.height*t.height,t.height-w)):t.height},x=i.width===t.width&&i.height===t.height;if(!x&&!t.regionByPx)return null;if(t.sizeByW){let h=Math.min(1,g/Math.max(i.width,i.height));return t.maxWidth&&(h=Math.min(h,t.maxWidth/i.width)),t.maxHeight&&(h=Math.min(h,t.maxHeight/i.height)),t.maxArea&&(h=Math.min(h,Math.sqrt(t.maxArea/(i.width*i.height)))),l(t,i,Math.max(1,Math.floor(i.width*h)),Math.max(1,Math.floor(i.height*h)))}if(!x)return null;const M=[...t.sizes].sort((h,d)=>h.width-d.width),r=M.find(h=>Math.max(h.width,h.height)>=g)??M.at(-1)??{width:t.width,height:t.height};return l(t,i,r.width,r.height)}export{s};
1
+ import{i as l}from"./imageService-DFPkPNfe.mjs";function s(t,g,e){const a=(h,d)=>Math.min(Math.max(Math.round(h),0),d),m=e?a(e.x*t.width,t.width-1):0,w=e?a(e.y*t.height,t.height-1):0,i={x:m,y:w,width:e?Math.max(1,a(e.width*t.width,t.width-m)):t.width,height:e?Math.max(1,a(e.height*t.height,t.height-w)):t.height},x=i.width===t.width&&i.height===t.height;if(!x&&!t.regionByPx)return null;if(t.sizeByW){let h=Math.min(1,g/Math.max(i.width,i.height));return t.maxWidth&&(h=Math.min(h,t.maxWidth/i.width)),t.maxHeight&&(h=Math.min(h,t.maxHeight/i.height)),t.maxArea&&(h=Math.min(h,Math.sqrt(t.maxArea/(i.width*i.height)))),l(t,i,Math.max(1,Math.floor(i.width*h)),Math.max(1,Math.floor(i.height*h)))}if(!x)return null;const M=[...t.sizes].sort((h,d)=>h.width-d.width),r=M.find(h=>Math.max(h.width,h.height)>=g)??M.at(-1)??{width:t.width,height:t.height};return l(t,i,r.width,r.height)}export{s};
@@ -1 +1 @@
1
- var R=Object.defineProperty;var C=(n,e,t)=>e in n?R(n,e,{enumerable:true,configurable:true,writable:true,value:t}):n[e]=t;var w=(n,e,t)=>C(n,typeof e!="symbol"?e+"":e,t);import{_ as p,C as H,a as B,d as F,A as Z,u as _}from"./shared-DkY2a89G.mjs";import{r as M,w as $,c as A,l as q,t as G,n as j,h as D,a as J}from"./splitting-BnQUxxgH.mjs";import{T as Q}from"./Tip-OCB88zwY.mjs";import"./styles-DkkVOSUQ.mjs";class U{constructor(e){w(this,"sizes");w(this,"listeners",new Set);w(this,"subscribe",e2=>(this.listeners.add(e2),()=>{this.listeners.delete(e2)}));this.storageKey=e,this.sizes=M(e)}keyed(e){e!==this.storageKey&&(this.storageKey=e,this.sizes=M(e),this.listeners.forEach(t=>t()))}set(e,t){const o={...this.sizes};t===void 0?delete o[e]:o[e]=Math.round(t),this.sizes=o,$(this.storageKey,o),this.listeners.forEach(l=>l())}}const P=new WeakMap;function S(n){let e=P.get(n);return e||(e=new U(n.getAttribute("storage-key")??void 0),P.set(n,e)),e}const V={},X=()=>()=>{},N=n=>{var e;return((e=n.parentElement)==null?void 0:e.localName)==="clover-split"?n.parentElement:null},v=n=>n==null||n.trim()===""?void 0:/^\d+(\.\d+)?$/.test(n.trim())?Number(n):n.trim();function W(n){const e={};for(const t of T(n))e[t.dataset.splitKey??""]={size:v(t.getAttribute("size")),min:v(t.getAttribute("min")),max:v(t.getAttribute("max"))};return e}const T=n=>[...n.children].filter(e=>e.localName==="clover-split-pane");function ie({hosted:n,props:e}){const t=n.element;return p(()=>(t.classList.add("clover-split"),()=>t.classList.remove("clover-split")),[t]),p(()=>{S(t).keyed(e.storageKey)},[t,e.storageKey]),null}function re({hosted:n,props:e}){const t=n.element,o=N(t),l=o?S(o):null,f=H((l==null?void 0:l.subscribe)??X,()=>(l==null?void 0:l.sizes)??V),h=v(e.size),i=v(e.min),c=v(e.max),u=e.name||String(o?T(o).indexOf(t):0),a=f[u];return p(()=>(t.classList.add("clover-split-pane"),()=>t.classList.remove("clover-split-pane")),[t]),p(()=>{t.dataset.splitKey=u,t.toggleAttribute("data-sized",h!==void 0),t.style.minWidth=A(i)??"0";const g=a!==void 0?`${a}px`:A(h);g?t.style.setProperty("--clover-split-size",g):t.style.removeProperty("--clover-split-size");const d=A(c);d?t.style.setProperty("--clover-split-max",d):t.style.removeProperty("--clover-split-max")},[t,u,h,i,c,a]),null}const K=new WeakMap;function oe({hosted:n}){const e=n.element,{t,langOf:o}=B(),[l]=F(()=>{const i=e.getAttribute("aria-label");return i!==null&&i!==K.get(e)?i:null}),f=l??t("splitHandle");p(()=>(e.classList.add("clover-split-handle"),e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical"),e.hasAttribute("tabindex")||(e.tabIndex=0),()=>e.classList.remove("clover-split-handle")),[e]),p(()=>{if(l)return;e.setAttribute("aria-label",f),K.set(e,f);const i=o("splitHandle");i?e.setAttribute("lang",i):e.removeAttribute("lang")},[e,l,f,o]);const h=Z(null);return p(()=>{const i=N(e);if(!i)return;const c=S(i),y=s=>Math.round(s/(i.clientWidth||1)*100),u=(s,r)=>{e.setAttribute("aria-valuenow",String(y(s))),e.setAttribute("aria-valuemin",String(y(r.min))),e.setAttribute("aria-valuemax",String(y(r.max)))},a=()=>q(e,i,W(i)),g=s=>{const r=a();if(!r)return;const z=Math.min(r.max,Math.max(r.min,s));c.set(r.key,z),u(z,r)};h.current={limits:a,resize:g,step:()=>{var L;const s=a();if(!s)return;const r=G((L=W(i)[s.key])==null?void 0:L.size,i.clientWidth),z=j(s,r,c.sizes[s.key]);if(!z.own)return g(z.to);c.set(s.key,void 0),u(r,s)}};const d=()=>{const s=a();s&&u(s.sized.getBoundingClientRect().width,s)};d();const b=typeof ResizeObserver>"u"?null:new ResizeObserver(d);b==null||b.observe(i);const I=c.subscribe(()=>requestAnimationFrame(d));let x=false;const k=()=>{var r;const s=!!((r=J(e).sized)!=null&&r.hidden);s&&!e.hidden?e.hidden=x=true:!s&&x&&(x=false,e.hidden=false)};k();const E=new MutationObserver(()=>{k(),d()});E.observe(i,{attributes:true,subtree:true,attributeFilter:["hidden","data-sized"]});const m=D(()=>e,()=>h.current),O=[["pointerdown",s=>m.down(s)],["pointermove",s=>m.move(s)],["pointerup",s=>m.up(s)],["pointercancel",s=>m.up(s)],["click",s=>m.click(s)],["keydown",s=>m.key(s)]];for(const[s,r]of O)e.addEventListener(s,r);return()=>{for(const[s,r]of O)e.removeEventListener(s,r);m.dispose(),b==null||b.disconnect(),E.disconnect(),I()}},[e]),_(Q,{label:f})}export{ie as SplitElement,oe as SplitHandleElement,re as SplitPaneElement};
1
+ var R=Object.defineProperty;var C=(n,e,t)=>e in n?R(n,e,{enumerable:true,configurable:true,writable:true,value:t}):n[e]=t;var w=(n,e,t)=>C(n,typeof e!="symbol"?e+"":e,t);import{_ as p,C as H,a as B,d as F,A as Z,u as _}from"./shared-CCg1Iag8.mjs";import{r as M,w as $,c as A,l as q,t as G,n as j,h as D,a as J}from"./splitting-BnQUxxgH.mjs";import{T as Q}from"./Tip-DPFWlNLu.mjs";import"./styles-C7PVxtkQ.mjs";class U{constructor(e){w(this,"sizes");w(this,"listeners",new Set);w(this,"subscribe",e2=>(this.listeners.add(e2),()=>{this.listeners.delete(e2)}));this.storageKey=e,this.sizes=M(e)}keyed(e){e!==this.storageKey&&(this.storageKey=e,this.sizes=M(e),this.listeners.forEach(t=>t()))}set(e,t){const o={...this.sizes};t===void 0?delete o[e]:o[e]=Math.round(t),this.sizes=o,$(this.storageKey,o),this.listeners.forEach(l=>l())}}const P=new WeakMap;function S(n){let e=P.get(n);return e||(e=new U(n.getAttribute("storage-key")??void 0),P.set(n,e)),e}const V={},X=()=>()=>{},N=n=>{var e;return((e=n.parentElement)==null?void 0:e.localName)==="clover-split"?n.parentElement:null},v=n=>n==null||n.trim()===""?void 0:/^\d+(\.\d+)?$/.test(n.trim())?Number(n):n.trim();function W(n){const e={};for(const t of T(n))e[t.dataset.splitKey??""]={size:v(t.getAttribute("size")),min:v(t.getAttribute("min")),max:v(t.getAttribute("max"))};return e}const T=n=>[...n.children].filter(e=>e.localName==="clover-split-pane");function ie({hosted:n,props:e}){const t=n.element;return p(()=>(t.classList.add("clover-split"),()=>t.classList.remove("clover-split")),[t]),p(()=>{S(t).keyed(e.storageKey)},[t,e.storageKey]),null}function re({hosted:n,props:e}){const t=n.element,o=N(t),l=o?S(o):null,f=H((l==null?void 0:l.subscribe)??X,()=>(l==null?void 0:l.sizes)??V),h=v(e.size),i=v(e.min),c=v(e.max),u=e.name||String(o?T(o).indexOf(t):0),a=f[u];return p(()=>(t.classList.add("clover-split-pane"),()=>t.classList.remove("clover-split-pane")),[t]),p(()=>{t.dataset.splitKey=u,t.toggleAttribute("data-sized",h!==void 0),t.style.minWidth=A(i)??"0";const g=a!==void 0?`${a}px`:A(h);g?t.style.setProperty("--clover-split-size",g):t.style.removeProperty("--clover-split-size");const d=A(c);d?t.style.setProperty("--clover-split-max",d):t.style.removeProperty("--clover-split-max")},[t,u,h,i,c,a]),null}const K=new WeakMap;function oe({hosted:n}){const e=n.element,{t,langOf:o}=B(),[l]=F(()=>{const i=e.getAttribute("aria-label");return i!==null&&i!==K.get(e)?i:null}),f=l??t("splitHandle");p(()=>(e.classList.add("clover-split-handle"),e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical"),e.hasAttribute("tabindex")||(e.tabIndex=0),()=>e.classList.remove("clover-split-handle")),[e]),p(()=>{if(l)return;e.setAttribute("aria-label",f),K.set(e,f);const i=o("splitHandle");i?e.setAttribute("lang",i):e.removeAttribute("lang")},[e,l,f,o]);const h=Z(null);return p(()=>{const i=N(e);if(!i)return;const c=S(i),y=s=>Math.round(s/(i.clientWidth||1)*100),u=(s,r)=>{e.setAttribute("aria-valuenow",String(y(s))),e.setAttribute("aria-valuemin",String(y(r.min))),e.setAttribute("aria-valuemax",String(y(r.max)))},a=()=>q(e,i,W(i)),g=s=>{const r=a();if(!r)return;const z=Math.min(r.max,Math.max(r.min,s));c.set(r.key,z),u(z,r)};h.current={limits:a,resize:g,step:()=>{var L;const s=a();if(!s)return;const r=G((L=W(i)[s.key])==null?void 0:L.size,i.clientWidth),z=j(s,r,c.sizes[s.key]);if(!z.own)return g(z.to);c.set(s.key,void 0),u(r,s)}};const d=()=>{const s=a();s&&u(s.sized.getBoundingClientRect().width,s)};d();const b=typeof ResizeObserver>"u"?null:new ResizeObserver(d);b==null||b.observe(i);const I=c.subscribe(()=>requestAnimationFrame(d));let x=false;const k=()=>{var r;const s=!!((r=J(e).sized)!=null&&r.hidden);s&&!e.hidden?e.hidden=x=true:!s&&x&&(x=false,e.hidden=false)};k();const E=new MutationObserver(()=>{k(),d()});E.observe(i,{attributes:true,subtree:true,attributeFilter:["hidden","data-sized"]});const m=D(()=>e,()=>h.current),O=[["pointerdown",s=>m.down(s)],["pointermove",s=>m.move(s)],["pointerup",s=>m.up(s)],["pointercancel",s=>m.up(s)],["click",s=>m.click(s)],["keydown",s=>m.key(s)]];for(const[s,r]of O)e.addEventListener(s,r);return()=>{for(const[s,r]of O)e.removeEventListener(s,r);m.dispose(),b==null||b.disconnect(),E.disconnect(),I()}},[e]),_(Q,{label:f})}export{ie as SplitElement,oe as SplitHandleElement,re as SplitPaneElement};
@@ -1 +1 @@
1
- import{u as o}from"./shared-DkY2a89G.mjs";import{S as m}from"./Status-CcU3u6P4.mjs";import{a,C as i}from"./nodes-ChQRLDGU.mjs";function u({hosted:r,props:t}){const e=a(r.element,"loading"),n=a(r.element,"error");return o(m,{...t,loading:e?o(i,{of:e}):t.loading,error:n?()=>o(i,{of:n}):void 0})}export{u as StatusElement};
1
+ import{u as o}from"./shared-CCg1Iag8.mjs";import{S as m}from"./Status-BCG7AN9B.mjs";import{a,C as i}from"./nodes-CmL3eoRE.mjs";function u({hosted:r,props:t}){const e=a(r.element,"loading"),n=a(r.element,"error");return o(m,{...t,loading:e?o(i,{of:e}):t.loading,error:n?()=>o(i,{of:n}):void 0})}export{u as StatusElement};