@nulib/clover 4.6.0 → 4.7.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 (326) hide show
  1. package/README.md +2 -0
  2. package/dist/base.css +1 -0
  3. package/dist/components/Canvas/CanvasView.mjs +18 -4
  4. package/dist/components/Canvas/Connected.mjs +1 -1
  5. package/dist/components/Canvas/ControlMenu.mjs +1 -1
  6. package/dist/components/Canvas/LoadedCanvas.mjs +26 -6
  7. package/dist/components/Canvas/PlaceBox.mjs +1 -1
  8. package/dist/components/Canvas/Placeholder.mjs +1 -1
  9. package/dist/components/Canvas/media/Player.mjs +2 -2
  10. package/dist/components/Canvas/media/Transport.mjs +1 -1
  11. package/dist/components/CollectionSelect/CollectionSelect.mjs +7 -5
  12. package/dist/components/Contents/Contents.mjs +9 -1
  13. package/dist/components/Items/Items.mjs +2 -5
  14. package/dist/components/Items/Position.mjs +2 -5
  15. package/dist/components/Items/StandaloneItems.mjs +6 -0
  16. package/dist/components/Items/clamped.mjs +1 -1
  17. package/dist/components/Map/MapView.mjs +2 -8
  18. package/dist/components/Root/useRootState.mjs +15 -14
  19. package/dist/components/Scene/Loaded.mjs +5 -1
  20. package/dist/core/clover.mjs +38 -10
  21. package/dist/core/geo.mjs +5 -4
  22. package/dist/core/selectors.mjs +7 -1
  23. package/dist/i18n/locales/en.json.mjs +1 -1
  24. package/dist/i18n/locales/es.json.mjs +1 -1
  25. package/dist/i18n/locales/fi.json.mjs +1 -1
  26. package/dist/i18n/locales/fr.json.mjs +1 -1
  27. package/dist/i18n/locales/it.json.mjs +1 -1
  28. package/dist/i18n/locales/ja.json.mjs +1 -1
  29. package/dist/i18n/locales/nb.json.mjs +1 -1
  30. package/dist/i18n/locales/nn.json.mjs +1 -1
  31. package/dist/i18n/locales/no.json.mjs +1 -1
  32. package/dist/i18n/locales/pt.json.mjs +1 -1
  33. package/dist/i18n/locales/zh-Hans.json.mjs +1 -1
  34. package/dist/i18n/locales/zh-Hant.json.mjs +1 -1
  35. package/dist/index.d.mts +14 -2
  36. package/dist/lib/renderer/CanvasRenderer.mjs +4 -3
  37. package/dist/map/index.d.mts +2 -1
  38. package/dist/spacing.css +1 -0
  39. package/dist/styles/core.css +1 -1
  40. package/dist/styles/items.css +1 -1
  41. package/dist/styles.css +1 -1
  42. package/dist/ui/EntryThumbnail.mjs +6 -3
  43. package/dist/ui/Tip.mjs +16 -10
  44. package/dist/ui/adoptSheet.mjs +6 -0
  45. package/dist/web-components/About-Cb0IP45J.mjs +1 -0
  46. package/dist/web-components/AnnotationItems-vwOrc2LC.mjs +1 -0
  47. package/dist/web-components/{AnnotationMenu-4PN2LNP-.mjs → AnnotationMenu-DEbZR6u5.mjs} +1 -1
  48. package/dist/web-components/{AnnotationState-3KHHmQhl.mjs → AnnotationState-CHI2fYVb.mjs} +1 -1
  49. package/dist/web-components/{Annotations-BwKS6fG8.mjs → Annotations-DelBDbuL.mjs} +1 -1
  50. package/dist/web-components/{Annotations-CPUvoKJe.mjs → Annotations-DvLurCSg.mjs} +1 -1
  51. package/dist/web-components/{Body-CTzmxY8R.mjs → Body-eYyY_zlC.mjs} +1 -1
  52. package/dist/web-components/{BodyAlert-CXOxbNBE.mjs → BodyAlert-DeoEp76n.mjs} +1 -1
  53. package/dist/web-components/{Button-a59NBnOp.mjs → Button-M-Lskr_F.mjs} +1 -1
  54. package/dist/web-components/{Camera-BlbXBgYZ.mjs → Camera-Z7dN1HO1.mjs} +1 -1
  55. package/dist/web-components/{Canvas2DBackend-DXCfms6g.mjs → Canvas2DBackend-BqkQkUat.mjs} +1 -1
  56. package/dist/web-components/CanvasView-DC9Zf7Tn.mjs +2 -0
  57. package/dist/web-components/{CaptionDetails-CCCTWTQP.mjs → CaptionDetails-D9OrUqvi.mjs} +1 -1
  58. package/dist/web-components/ChaptersMenu-PjHy5-zS.mjs +1 -0
  59. package/dist/web-components/{Chevron-CH8yyEDi.mjs → Chevron-lIH5boXF.mjs} +1 -1
  60. package/dist/web-components/{ChoiceMenu-BQVTRzXj.mjs → ChoiceMenu-Coknxzkh.mjs} +1 -1
  61. package/dist/web-components/{Collection-CbEMQWrO.mjs → Collection-DfWwFkgY.mjs} +1 -1
  62. package/dist/web-components/CollectionSelect-CYa0N09G.mjs +1 -0
  63. package/dist/web-components/Connected-CkrBE4v-.mjs +1 -0
  64. package/dist/web-components/{Connected-C31vzWei.mjs → Connected-Dy4Fjp_-.mjs} +1 -1
  65. package/dist/web-components/{Connected-Dq0xux9o.mjs → Connected-tpnive3y.mjs} +1 -1
  66. package/dist/web-components/Contents-JgQb97do.mjs +1 -0
  67. package/dist/web-components/ControlMenu-DARWTFzU.mjs +1 -0
  68. package/dist/web-components/ControlsFade-DXN4_Kcr.mjs +1 -0
  69. package/dist/web-components/{CountMenu-D4M1roIh.mjs → CountMenu-DNkuen7t.mjs} +1 -1
  70. package/dist/web-components/Cue-CcxumEor.mjs +1 -0
  71. package/dist/web-components/{Document-CPQELxSI.mjs → Document-74sHCl40.mjs} +1 -1
  72. package/dist/web-components/{DomLayers-DwhkzPRS.mjs → DomLayers-B0tKZUWz.mjs} +1 -1
  73. package/dist/web-components/{Download-Dsei4KG3.mjs → Download-CVmsdUyH.mjs} +1 -1
  74. package/dist/web-components/{EntryBodies-BI7V3B5i.mjs → EntryBodies-BrGtXUx4.mjs} +1 -1
  75. package/dist/web-components/EntryThumbnail-DZPp7vk8.mjs +1 -0
  76. package/dist/web-components/{FieldPill-BOeOasUT.mjs → FieldPill-Dr-7bigM.mjs} +1 -1
  77. package/dist/web-components/FrameAnimation-Dr4lStqa.mjs +1 -0
  78. package/dist/web-components/{Gallery-BDGDzt0R.mjs → Gallery-BI_p4a2m.mjs} +1 -1
  79. package/dist/web-components/{GlobeGlyph-9zKXX7B6.mjs → GlobeGlyph-Bo56m375.mjs} +1 -1
  80. package/dist/web-components/{HideToggle-CmwFnHcZ.mjs → HideToggle-COFq37Jg.mjs} +1 -1
  81. package/dist/web-components/{ImageControls-CSHxdUD1.mjs → ImageControls-DQwLWsTL.mjs} +1 -1
  82. package/dist/web-components/Items-Co-0SKPW.mjs +1 -0
  83. package/dist/web-components/{ItemsVertical-BeIiJ37B.mjs → ItemsVertical-Dv3gKZJ2.mjs} +1 -1
  84. package/dist/web-components/Label-BGPmD5NF.mjs +1 -0
  85. package/dist/web-components/{LanguageChoice-D_vEiQp9.mjs → LanguageChoice-DTNAjTpR.mjs} +1 -1
  86. package/dist/web-components/{LanguageMenu-ycNvnbOB.mjs → LanguageMenu-DViT7hCI.mjs} +1 -1
  87. package/dist/web-components/{LightboxView-CsOAsZ3f.mjs → LightboxView-DUEAuXcS.mjs} +1 -1
  88. package/dist/web-components/{ListEnd-B6tyeK1B.mjs → ListEnd-Ccc_v93N.mjs} +1 -1
  89. package/dist/web-components/Loaded-DlWNFC49.mjs +1 -0
  90. package/dist/web-components/LoadedCanvas-BU03onyH.mjs +3 -0
  91. package/dist/web-components/LoadedMap-Qernkf9V.mjs +1 -0
  92. package/dist/web-components/{Loading-CAkF1fBT.mjs → Loading-1cRP8fn5.mjs} +1 -1
  93. package/dist/web-components/{Map-BDsBYSp5.mjs → Map-DdcDYjzX.mjs} +1 -1
  94. package/dist/web-components/MapView-BW4dD40Q.mjs +3 -0
  95. package/dist/web-components/{Markup-COA2t_y1.mjs → Markup-23-Aibht.mjs} +1 -1
  96. package/dist/web-components/{MediaBody-XsEObuYV.mjs → MediaBody-C37X6xTP.mjs} +1 -1
  97. package/dist/web-components/{MediaBody-CNk9fFfN.mjs → MediaBody-dXy6NIcq.mjs} +1 -1
  98. package/dist/web-components/{NavDate-1LLiZ8Vq.mjs → NavDate-DT_7gQEE.mjs} +1 -1
  99. package/dist/web-components/{Navigator-t1y35uj8.mjs → Navigator-COqGN-K4.mjs} +1 -1
  100. package/dist/web-components/{Pager-35N8_3lH.mjs → Pager-DY6QIfJo.mjs} +1 -1
  101. package/dist/web-components/PagerLayout-CXSF9P8N.mjs +1 -0
  102. package/dist/web-components/{Panel-D16u98YB.mjs → Panel-Dj_tQ89q.mjs} +1 -1
  103. package/dist/web-components/PanelPart-BPWf5byV.mjs +1 -0
  104. package/dist/web-components/{PanelToggle-BcUVIbQw.mjs → PanelToggle-D9JBD6t1.mjs} +1 -1
  105. package/dist/web-components/PartOfManifest-14dPnF-N.mjs +1 -0
  106. package/dist/web-components/{Pending-bIYd0PwB.mjs → Pending-BsqpZMEF.mjs} +1 -1
  107. package/dist/web-components/PlaceBox-B_OXZC8S.mjs +1 -0
  108. package/dist/web-components/Placeholder-BBjY81nx.mjs +1 -0
  109. package/dist/web-components/Position-qHH_2RQA.mjs +1 -0
  110. package/dist/web-components/{Primitives-DP2uwwcU.mjs → Primitives-3boP2HT0.mjs} +1 -1
  111. package/dist/web-components/{Provider-BUDzNTyJ.mjs → Provider-laA0MWws.mjs} +1 -1
  112. package/dist/web-components/{ReadMore-B6qft77s.mjs → ReadMore-Trj9tAw5.mjs} +1 -1
  113. package/dist/web-components/{Root-J9v7nQ6o.mjs → Root-DIfyZZ9O.mjs} +1 -1
  114. package/dist/web-components/Scene-DGLalXcX.mjs +1 -0
  115. package/dist/web-components/{SceneView-DykQJepG.mjs → SceneView-B7Zrpafx.mjs} +1 -1
  116. package/dist/web-components/{Search-DEoFdx2g.mjs → Search-DhsZJhFF.mjs} +1 -1
  117. package/dist/web-components/{Sections-B6j9eFao.mjs → Sections-EpYlUFGL.mjs} +1 -1
  118. package/dist/web-components/{SeekMarks-C3ZDOMbt.mjs → SeekMarks-C0NHUzE_.mjs} +1 -1
  119. package/dist/web-components/StandaloneItems-cmPpspAM.mjs +1 -0
  120. package/dist/web-components/{Status-C49DxNaY.mjs → Status-BeDk5zEi.mjs} +1 -1
  121. package/dist/web-components/{Steps-BTAJ3lc6.mjs → Steps-BDB0OPKa.mjs} +1 -1
  122. package/dist/web-components/{TargetItems-BZFSWVs6.mjs → TargetItems-DHcGeFqU.mjs} +1 -1
  123. package/dist/web-components/Timeline-DWhKhdYb.mjs +1 -0
  124. package/dist/web-components/Tip-PBxp-ONQ.mjs +1 -0
  125. package/dist/web-components/{Transcript-FmC6HR0-.mjs → Transcript-DbhV6Vxo.mjs} +1 -1
  126. package/dist/web-components/Transport-BtIKsYml.mjs +1 -0
  127. package/dist/web-components/{Transport-pRWbs9M3.mjs → Transport-wJNLFRXZ.mjs} +1 -1
  128. package/dist/web-components/{annotation-collection-Dc-peX7w.mjs → annotation-collection-DA_XNrVM.mjs} +1 -1
  129. package/dist/web-components/{annotation-name-BhbhOgES.mjs → annotation-name-DCHYfYjG.mjs} +1 -1
  130. package/dist/web-components/{annotations-content-BJSUCNd1.mjs → annotations-content-CLVJE9-j.mjs} +1 -1
  131. package/dist/web-components/{body-BEZ3sYcR.mjs → body-DY6_Kb7A.mjs} +1 -1
  132. package/dist/web-components/canvas-BsmSDfXr.mjs +1 -0
  133. package/dist/web-components/{cloverEngine-BstElW9l.mjs → cloverEngine-xAanVNmS.mjs} +1 -1
  134. package/dist/web-components/{content-state-reader-DGOg8oAH.mjs → content-state-reader-CHLSQAIO.mjs} +1 -1
  135. package/dist/web-components/{controlGlyphs-Lxfq7zz4.mjs → controlGlyphs-LR_viOPR.mjs} +1 -1
  136. package/dist/web-components/{controls-BibZpBh1.mjs → controls-CSwaU0O6.mjs} +1 -1
  137. package/dist/web-components/{downloads-cYib41PV.mjs → downloads-UWzv4fZU.mjs} +1 -1
  138. package/dist/web-components/{dragToClose-BpzjNnPx.mjs → dragToClose-BXoYlfWj.mjs} +1 -1
  139. package/dist/web-components/{engine-Cl755NaO.mjs → engine-Codq0RYR.mjs} +1 -1
  140. package/dist/web-components/{engines-fZzYf1dz.mjs → engines-kj0OVyAK.mjs} +1 -1
  141. package/dist/web-components/{es-Bx-zZBfZ.mjs → es-Czdt8By_.mjs} +1 -1
  142. package/dist/web-components/{fetchManifest-D31pEPrb.mjs → fetchManifest-Cw6_bmlS.mjs} +1 -1
  143. package/dist/web-components/{fi-DsP1FhBy.mjs → fi-RWtClOWA.mjs} +1 -1
  144. package/dist/web-components/{follow-content-Byosc3Ev.mjs → follow-content-DcFvV4qy.mjs} +1 -1
  145. package/dist/web-components/{fr-BuL_F9Jq.mjs → fr-CFRY9P3c.mjs} +1 -1
  146. package/dist/web-components/{fromManifest-DqCyZd2Q.mjs → fromManifest-Bzpc1R9t.mjs} +1 -1
  147. package/dist/web-components/{glyphs-8fjIPAtZ.mjs → glyphs-BuGNvvP-.mjs} +1 -1
  148. package/dist/web-components/{hooks-Bo5GjPGX.mjs → hooks-CAA2UpX_.mjs} +1 -1
  149. package/dist/web-components/image-layers-DhYm73Ju.mjs +1 -0
  150. package/dist/web-components/{image-service-content-bUFBZCr1.mjs → image-service-content-Rn8Tl4Hk.mjs} +1 -1
  151. package/dist/web-components/{imageService-CCKieCxo.mjs → imageService-BBwzg9uY.mjs} +1 -1
  152. package/dist/web-components/index-BujnlXi0.mjs +1 -0
  153. package/dist/web-components/index.mjs +1 -1
  154. package/dist/web-components/{it-DH3EtrgI.mjs → it-D_Hb0t9G.mjs} +1 -1
  155. package/dist/web-components/items-CD8kE1Gd.mjs +1 -0
  156. package/dist/web-components/{items-CKMFXz0W.mjs → items-DjWXCG9C.mjs} +1 -1
  157. package/dist/web-components/{ja-BEHbDotv.mjs → ja-BoJ9dFmn.mjs} +1 -1
  158. package/dist/web-components/label-CssXf-do.mjs +1 -0
  159. package/dist/web-components/{layout-DQtgCOJJ.mjs → layout-CwH0NLMY.mjs} +1 -1
  160. package/dist/web-components/{link-q4quIuuD.mjs → link-Ujj3Xhp2.mjs} +1 -1
  161. package/dist/web-components/logo-Bd8fSMYN.mjs +1 -0
  162. package/dist/web-components/{models-Dw-cADIz.mjs → models-CxmIV7Mb.mjs} +1 -1
  163. package/dist/web-components/{nb-Bdfn_mZs.mjs → nb-B43QGinl.mjs} +1 -1
  164. package/dist/web-components/{nn-BCWbSuK0.mjs → nn-BmkkC79H.mjs} +1 -1
  165. package/dist/web-components/{no-Bdfn_mZs.mjs → no-B43QGinl.mjs} +1 -1
  166. package/dist/web-components/{nodes-nZmQ93ib.mjs → nodes-CDVV_37U.mjs} +1 -1
  167. package/dist/web-components/{overlayImage-B-ybt0wn.mjs → overlayImage-T6FKPFQJ.mjs} +1 -1
  168. package/dist/web-components/{panel-C27fOmhT.mjs → panel-DhzvJaxa.mjs} +1 -1
  169. package/dist/web-components/part-D1ZpOfJ5.mjs +1 -0
  170. package/dist/web-components/{playerSurface-BLzwC0Ux.mjs → playerSurface-BxtfijMA.mjs} +1 -1
  171. package/dist/web-components/{pointer-BYZjBehK.mjs → pointer-DWmL4uP7.mjs} +1 -1
  172. package/dist/web-components/{provider-Cs6sFr4G.mjs → provider-BziMOPSN.mjs} +1 -1
  173. package/dist/web-components/{pt-Da5El49z.mjs → pt-BbtIGupi.mjs} +1 -1
  174. package/dist/web-components/{range-regions-DssQTTra.mjs → range-regions-V0yKxXzo.mjs} +1 -1
  175. package/dist/web-components/{read-more-Cp9CLzyd.mjs → read-more-DdhUDS2g.mjs} +1 -1
  176. package/dist/web-components/{readingLanguages-D97yt-4s.mjs → readingLanguages-CtdxDxbb.mjs} +1 -1
  177. package/dist/web-components/{rendererSurface-BuBm8Th_.mjs → rendererSurface-B6BzhEeK.mjs} +2 -2
  178. package/dist/web-components/{renderers-BL-b8snn.mjs → renderers-BmoCXuIv.mjs} +1 -1
  179. package/dist/web-components/{resource-DwKOZbOZ.mjs → resource-BjumsIsL.mjs} +1 -1
  180. package/dist/web-components/{save-file-CcfAgDXf.mjs → save-file-BCXU9sr5.mjs} +1 -1
  181. package/dist/web-components/{search-C45Jd7QH.mjs → search-Bn5kscQv.mjs} +1 -1
  182. package/dist/web-components/shared-pIVPxZLY.mjs +1 -0
  183. package/dist/web-components/{show-link-D9bByIzf.mjs → show-link-DG3TQzXI.mjs} +1 -1
  184. package/dist/web-components/{sizedImage-BFAry04f.mjs → sizedImage-CagzYSJ_.mjs} +1 -1
  185. package/dist/web-components/{split-CDZiE4rz.mjs → split-C_xPhLhD.mjs} +1 -1
  186. package/dist/web-components/{status-BtCciELI.mjs → status-BesMKiXg.mjs} +1 -1
  187. package/dist/web-components/styles-BU6g0i7W.mjs +1 -0
  188. package/dist/web-components/three.mjs +1 -1
  189. package/dist/web-components/thumbnail-bCaBWTkt.mjs +1 -0
  190. package/dist/web-components/{tip-_XUeFMj4.mjs → tip-UheLXik6.mjs} +1 -1
  191. package/dist/web-components/{toggle-DkPNS5eL.mjs → toggle-Bl0NKbUx.mjs} +1 -1
  192. package/dist/web-components/{useContainerName-BfU0IozO.mjs → useContainerName-CDABwGvV.mjs} +1 -1
  193. package/dist/web-components/{useControlsVisibility-pU1JVIpK.mjs → useControlsVisibility-Dpl7D0m0.mjs} +1 -1
  194. package/dist/web-components/{useNearViewport-D1kQt-tS.mjs → useNearViewport-C_3U4CAr.mjs} +1 -1
  195. package/dist/web-components/{useScrollTrack-cQfG_zk_.mjs → useScrollTrack-QFtFpyV3.mjs} +1 -1
  196. package/dist/web-components/viewer/{AnnotationItems-UHFS1uDO.mjs → AnnotationItems-FXIoYk9T.mjs} +1 -1
  197. package/dist/web-components/viewer/{AnnotationMenu-0Ru0csCz.mjs → AnnotationMenu-nlFTIjg6.mjs} +1 -1
  198. package/dist/web-components/viewer/{AnnotationState-hEds2Tpa.mjs → AnnotationState-Diacn0Xk.mjs} +1 -1
  199. package/dist/web-components/viewer/{Annotations-vzP6-fS4.mjs → Annotations-Bs94MQmn.mjs} +1 -1
  200. package/dist/web-components/viewer/{Annotations-Oprg7015.mjs → Annotations-CAmFWoUj.mjs} +1 -1
  201. package/dist/web-components/viewer/{Canvas2DBackend-3b5xEKac.mjs → Canvas2DBackend-BztBm6yM.mjs} +1 -1
  202. package/dist/web-components/viewer/{CaptionDetails-DDIjm-rC.mjs → CaptionDetails-lhSoA0rU.mjs} +1 -1
  203. package/dist/web-components/viewer/ChaptersMenu-hOyR7aOL.mjs +1 -0
  204. package/dist/web-components/viewer/{ChoiceMenu-COUDRKGM.mjs → ChoiceMenu-Dq4FBYhi.mjs} +1 -1
  205. package/dist/web-components/viewer/{Collection-kWUradiW.mjs → Collection-XZzrypzP.mjs} +1 -1
  206. package/dist/web-components/viewer/{Connected-B2TrgX9-.mjs → Connected-BKk80iCZ.mjs} +1 -1
  207. package/dist/web-components/viewer/{Connected-FiJKHEv9.mjs → Connected-nHyQM-64.mjs} +1 -1
  208. package/dist/web-components/viewer/Contents-0FL0Dr2p.mjs +1 -0
  209. package/dist/web-components/viewer/ControlMenu-BRUWyNEi.mjs +1 -0
  210. package/dist/web-components/viewer/ControlsFade-9CrQlxNq.mjs +1 -0
  211. package/dist/web-components/viewer/{CountMenu-BYU6T0Ou.mjs → CountMenu-BxdPpin6.mjs} +1 -1
  212. package/dist/web-components/viewer/Cue-B75D4FgX.mjs +1 -0
  213. package/dist/web-components/viewer/{Document-BtN3vmsO.mjs → Document-CN5l-m01.mjs} +1 -1
  214. package/dist/web-components/viewer/{DomLayers-CEzVM7HQ.mjs → DomLayers-CvZPZjNg.mjs} +1 -1
  215. package/dist/web-components/viewer/{Download-5BsnDZLL.mjs → Download-B9UuJ9wY.mjs} +1 -1
  216. package/dist/web-components/viewer/{EntryBodies-D9R-wouw.mjs → EntryBodies-BNtItsOn.mjs} +1 -1
  217. package/dist/web-components/viewer/EntryThumbnail-BQepnfmY.mjs +1 -0
  218. package/dist/web-components/viewer/{FieldPill-CsyRt9Xh.mjs → FieldPill-D0efaqWg.mjs} +1 -1
  219. package/dist/web-components/viewer/{FrameAnimation-f4RKtdpP.mjs → FrameAnimation-C5bLeZc9.mjs} +1 -1
  220. package/dist/web-components/viewer/{Gallery-DC4QY9lG.mjs → Gallery-BuhT4BOj.mjs} +1 -1
  221. package/dist/web-components/viewer/{GlobeGlyph-BwZm2Ffj.mjs → GlobeGlyph-B1Q5TIaT.mjs} +1 -1
  222. package/dist/web-components/viewer/{HideToggle-BD6zlrz3.mjs → HideToggle-Dh4AUuX3.mjs} +1 -1
  223. package/dist/web-components/viewer/{ImageControls-Bw9a17cS.mjs → ImageControls-ClVI428k.mjs} +1 -1
  224. package/dist/web-components/viewer/{ItemsVertical-BftsRVJP.mjs → ItemsVertical-BRiKuRL-.mjs} +1 -1
  225. package/dist/web-components/viewer/{LanguageChoice-CcDmpHnE.mjs → LanguageChoice-BTUONm8l.mjs} +1 -1
  226. package/dist/web-components/viewer/{LanguageMenu-CRtM-mLy.mjs → LanguageMenu-NDTTmazt.mjs} +1 -1
  227. package/dist/web-components/viewer/{LightboxView-DJoH23fL.mjs → LightboxView-DMTkdJB6.mjs} +1 -1
  228. package/dist/web-components/viewer/{ListEnd-CSp0KGGZ.mjs → ListEnd-D2sYRngp.mjs} +1 -1
  229. package/dist/web-components/viewer/MapView-WwJmyeZr.mjs +3 -0
  230. package/dist/web-components/viewer/{MediaBody-D-1SNnW2.mjs → MediaBody-CepsC09h.mjs} +1 -1
  231. package/dist/web-components/viewer/{MediaBody-CMddJWMF.mjs → MediaBody-qOIVDdNm.mjs} +1 -1
  232. package/dist/web-components/viewer/{NavDate-BJ_MF_t1.mjs → NavDate-Co0A4bkP.mjs} +1 -1
  233. package/dist/web-components/viewer/{Navigator-Gt56cM6f.mjs → Navigator-Dyf2F7fU.mjs} +1 -1
  234. package/dist/web-components/viewer/{PagerLayout-BMrlMLfO.mjs → PagerLayout-nnWJump4.mjs} +1 -1
  235. package/dist/web-components/viewer/PanelPart-D479R8OK.mjs +1 -0
  236. package/dist/web-components/viewer/{PartOfManifest-BdZWbAQI.mjs → PartOfManifest-7z0GBIsk.mjs} +1 -1
  237. package/dist/web-components/viewer/PlaceBox-Icavvsim.mjs +1 -0
  238. package/dist/web-components/viewer/{Placeholder-BX2y25Fo.mjs → Placeholder-DF1FFSpC.mjs} +1 -1
  239. package/dist/web-components/viewer/{Search-auUpOyeS.mjs → Search-BSK3yFqw.mjs} +1 -1
  240. package/dist/web-components/viewer/{SeekMarks-Bg0PLdp0.mjs → SeekMarks-267Lxpeb.mjs} +1 -1
  241. package/dist/web-components/viewer/StandaloneItems-Cv4dGiJh.mjs +1 -0
  242. package/dist/web-components/viewer/{Steps-ABKs2V_m.mjs → Steps-C1BHjJsE.mjs} +1 -1
  243. package/dist/web-components/viewer/{TargetItems-BQVUKMAs.mjs → TargetItems-CBsfkmeg.mjs} +1 -1
  244. package/dist/web-components/viewer/{Transcript-DaShc1z-.mjs → Transcript-BBtNC39n.mjs} +1 -1
  245. package/dist/web-components/viewer/Transport-BZB1ZAvP.mjs +1 -0
  246. package/dist/web-components/viewer/{Transport-ClkPaaOB.mjs → Transport-DXFW6beP.mjs} +1 -1
  247. package/dist/web-components/viewer/{annotation-collection-eyRpE2h4.mjs → annotation-collection-BcDJ7GZv.mjs} +1 -1
  248. package/dist/web-components/viewer/{annotation-name-DdchUvJI.mjs → annotation-name-CPXHHlGo.mjs} +1 -1
  249. package/dist/web-components/viewer/{annotations-content-BZXlT3bR.mjs → annotations-content-Cb7_aoII.mjs} +1 -1
  250. package/dist/web-components/viewer/{cloverEngine-CZWHXlyY.mjs → cloverEngine-CX9s9-Uu.mjs} +1 -1
  251. package/dist/web-components/viewer/{content-state-reader-CDV0Igdx.mjs → content-state-reader-CIVUq8ar.mjs} +1 -1
  252. package/dist/web-components/viewer/{dragToClose-CD-MJb-V.mjs → dragToClose-BGb6fAd6.mjs} +1 -1
  253. package/dist/web-components/viewer/{fetchManifest-C1IEIf45.mjs → fetchManifest-D8zizfoi.mjs} +1 -1
  254. package/dist/web-components/viewer/{follow-content-IQqCbvbJ.mjs → follow-content-BOcIhHhz.mjs} +1 -1
  255. package/dist/web-components/viewer/{host-BxQrzQnu.mjs → host-CNGrorb7.mjs} +1 -1
  256. package/dist/web-components/viewer/{image-layers-DurrQgfL.mjs → image-layers-DGdl54CF.mjs} +1 -1
  257. package/dist/web-components/viewer/{image-service-content-ClAm_g0Y.mjs → image-service-content-DpXbrUuI.mjs} +1 -1
  258. package/dist/web-components/viewer/index.mjs +1 -1
  259. package/dist/web-components/viewer/{link-Drdj-HcB.mjs → link-CwQzXqUe.mjs} +1 -1
  260. package/dist/web-components/viewer/overlayImage-DtyovrNi.mjs +1 -0
  261. package/dist/web-components/viewer/{range-regions-a5eVBfJy.mjs → range-regions-iACwlawo.mjs} +1 -1
  262. package/dist/web-components/viewer/{renderers-CdXzZ9As.mjs → renderers-DUD0Xleg.mjs} +1 -1
  263. package/dist/web-components/viewer/{save-file-B2UBQRXz.mjs → save-file-Z6klARC7.mjs} +1 -1
  264. package/dist/web-components/viewer/{search-BBZKUiMB.mjs → search-TNACVRnK.mjs} +1 -1
  265. package/dist/web-components/viewer/styles-CLp9tx_B.mjs +1 -0
  266. package/dist/web-components/viewer/{useControlsVisibility-BfTACzo_.mjs → useControlsVisibility-C-Af-o1n.mjs} +1 -1
  267. package/dist/web-components/viewer/viewer-7dcL5wmD.mjs +29 -0
  268. package/dist/web-components/viewer/{vtt-CCkTp_f2.mjs → vtt-DLGuRf3w.mjs} +1 -1
  269. package/dist/web-components/{viewer-D-AQ7mGw.mjs → viewer-Br37L21l.mjs} +1 -1
  270. package/dist/web-components/{vtt-BjXkNfI_.mjs → vtt-DnFNzhne.mjs} +1 -1
  271. package/dist/web-components/{zh-Hans-BhTHTZXT.mjs → zh-Hans-BAFQ7Pft.mjs} +1 -1
  272. package/dist/web-components/{zh-Hant-_CJAOTzC.mjs → zh-Hant-DS7iN4iO.mjs} +1 -1
  273. package/package.json +3 -1
  274. package/dist/web-components/About-Brbhm22a.mjs +0 -1
  275. package/dist/web-components/AnnotationItems-Dy4BNabL.mjs +0 -1
  276. package/dist/web-components/CanvasView-CiP25Iqc.mjs +0 -2
  277. package/dist/web-components/ChaptersMenu-Bne6N9cf.mjs +0 -1
  278. package/dist/web-components/CollectionSelect-BpvtCwSl.mjs +0 -1
  279. package/dist/web-components/Connected-BWomgzfE.mjs +0 -1
  280. package/dist/web-components/Contents-CGc6_Z5c.mjs +0 -1
  281. package/dist/web-components/ControlMenu-ej-Kpb31.mjs +0 -1
  282. package/dist/web-components/ControlsFade-CStkqANR.mjs +0 -1
  283. package/dist/web-components/Cue-BhXRUDe9.mjs +0 -1
  284. package/dist/web-components/EntryThumbnail-BnMLzy5M.mjs +0 -1
  285. package/dist/web-components/FrameAnimation-BcEfAQrI.mjs +0 -1
  286. package/dist/web-components/Items-DCRr750U.mjs +0 -1
  287. package/dist/web-components/Label-CVfL9bMO.mjs +0 -1
  288. package/dist/web-components/Loaded-CSYg8oIR.mjs +0 -1
  289. package/dist/web-components/LoadedCanvas-W9sCFkdf.mjs +0 -1
  290. package/dist/web-components/LoadedMap-jx7uEeDg.mjs +0 -1
  291. package/dist/web-components/MapView-DO23FSrT.mjs +0 -3
  292. package/dist/web-components/PagerLayout-SNT5cl4D.mjs +0 -1
  293. package/dist/web-components/PanelPart-DfjlK_hB.mjs +0 -1
  294. package/dist/web-components/PartOfManifest-BYyflVQI.mjs +0 -1
  295. package/dist/web-components/PlaceBox-D-pLIX5w.mjs +0 -1
  296. package/dist/web-components/Placeholder-Mq1Iaasr.mjs +0 -1
  297. package/dist/web-components/Position-Bh1Iq4d6.mjs +0 -1
  298. package/dist/web-components/Scene-CdqC1O-B.mjs +0 -1
  299. package/dist/web-components/StandaloneItems-CtxMB090.mjs +0 -1
  300. package/dist/web-components/Timeline-D5oL1UyW.mjs +0 -1
  301. package/dist/web-components/Tip-Dv-gYN8n.mjs +0 -1
  302. package/dist/web-components/Transport-BKFLjI45.mjs +0 -1
  303. package/dist/web-components/canvas-CfnKZqTU.mjs +0 -1
  304. package/dist/web-components/image-layers-CFarmTfZ.mjs +0 -1
  305. package/dist/web-components/index-DhlRi3H9.mjs +0 -1
  306. package/dist/web-components/items-BXd02UN6.mjs +0 -1
  307. package/dist/web-components/label-DcF-YCIN.mjs +0 -1
  308. package/dist/web-components/logo-DWI0N9FL.mjs +0 -1
  309. package/dist/web-components/part-B9t8Qe9D.mjs +0 -1
  310. package/dist/web-components/shared-D2pvbPvF.mjs +0 -1
  311. package/dist/web-components/styles-Bf3qmdsh.mjs +0 -1
  312. package/dist/web-components/thumbnail-By5wfGlE.mjs +0 -1
  313. package/dist/web-components/viewer/ChaptersMenu-DmJy-cfd.mjs +0 -1
  314. package/dist/web-components/viewer/Contents-DHyzbjco.mjs +0 -1
  315. package/dist/web-components/viewer/ControlMenu-DWi6tgKb.mjs +0 -1
  316. package/dist/web-components/viewer/ControlsFade-CuooJOpa.mjs +0 -1
  317. package/dist/web-components/viewer/Cue-Ct2isFl7.mjs +0 -1
  318. package/dist/web-components/viewer/EntryThumbnail-P6CmjmO9.mjs +0 -1
  319. package/dist/web-components/viewer/MapView-BO2ppZpW.mjs +0 -3
  320. package/dist/web-components/viewer/PanelPart-CaxBca8z.mjs +0 -1
  321. package/dist/web-components/viewer/PlaceBox-C27N2KG8.mjs +0 -1
  322. package/dist/web-components/viewer/StandaloneItems-CBRWUCNf.mjs +0 -1
  323. package/dist/web-components/viewer/Transport-6wRUIGiD.mjs +0 -1
  324. package/dist/web-components/viewer/overlayImage-CDT5ohRo.mjs +0 -1
  325. package/dist/web-components/viewer/styles-XRfyRUPf.mjs +0 -1
  326. package/dist/web-components/viewer/viewer-BrkFZVo_.mjs +0 -29
@@ -1 +1 @@
1
- import{U as l,ae as g}from"./shared-D2pvbPvF.mjs";function b(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),n=e+"=".repeat((4-e.length%4)%4),a=atob(n);try{return decodeURIComponent(a)}catch{const c=Uint8Array.from(a,s=>s.charCodeAt(0));return new TextDecoder().decode(c)}}function I(t){const e=t.trim();for(const n of[()=>JSON.parse(e),()=>JSON.parse(b(e))])try{const a=n();if(a&&typeof a=="object")return a}catch{}return null}function v(t){if(!t)return;const e=Number(t.split(",")[0]);return Number.isFinite(e)?e:void 0}const u=t=>l(t==null?void 0:t.partOf).find(e=>(e==null?void 0:e.id)&&e.type==="Collection");function A(t){const e=t.type==="Annotation"?l(t.target):[t],n=e[0]?m(e[0],t):null;if(!n||e.length<2)return n;const a=typeof t.id=="string"?t.id:"content-state",c=e.flatMap((s,d)=>{var y,p,f;const i=d===0?n:m(s,t),r=(i==null?void 0:i.type)==="Manifest"?i.id:i==null?void 0:i.manifestId;return!i||!r?[]:[{id:`${a}#target-${d+1}`,manifestId:r,...((y=i.target)==null?void 0:y.canvasId)&&{canvasId:i.target.canvasId},...((p=i.target)==null?void 0:p.region)&&{region:i.target.region},...((f=i.target)==null?void 0:f.time)!==void 0&&{time:i.target.time}}]});return c.length>1?{...n,targets:{id:a,...t.label&&typeof t.label=="object"?{label:t.label}:{},items:c}}:n}function m(t,e){const n=g(t),a=typeof t=="string"?{id:n.id}:t.type==="SpecificResource"?typeof t.source=="string"?{id:t.source}:t.source??{}:t,c=a.type;if(c==="Manifest"||c==="Collection"){const o=c==="Manifest"?u(a):void 0;return o?{id:o.id,type:"Collection",manifestId:n.id}:{id:n.id,type:c}}const s=l(t.selector).find(o=>(o==null?void 0:o.type)==="PointSelector"&&o.t!=null),d={canvasId:n.id};n.rect&&(d.region=n.rect);const i=(s==null?void 0:s.t)??v(n.t);i!==void 0&&(d.time=Number(i));const r=[a,t].flatMap(o=>l(o==null?void 0:o.partOf)).find(o=>(o==null?void 0:o.id)&&(!o.type||o.type==="Manifest")),y=u(r),p=e.type==="Annotation"&&l(e.body).length?{id:e.id??`${n.id}#content-state`,type:"Annotation",motivation:l(e.motivation),body:e.body,target:t}:void 0,f=p?{annotation:p}:{};return y&&r?{id:y.id,type:"Collection",manifestId:r.id,target:d,...f}:r?{id:r.id,type:"Manifest",target:d,...f}:{id:n.id,type:c??"Canvas",target:d,...f}}export{I as decodeContentState,A as resolveContentState};
1
+ import{V as l,af as g}from"./shared-pIVPxZLY.mjs";function b(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),n=e+"=".repeat((4-e.length%4)%4),a=atob(n);try{return decodeURIComponent(a)}catch{const c=Uint8Array.from(a,s=>s.charCodeAt(0));return new TextDecoder().decode(c)}}function I(t){const e=t.trim();for(const n of[()=>JSON.parse(e),()=>JSON.parse(b(e))])try{const a=n();if(a&&typeof a=="object")return a}catch{}return null}function v(t){if(!t)return;const e=Number(t.split(",")[0]);return Number.isFinite(e)?e:void 0}const u=t=>l(t==null?void 0:t.partOf).find(e=>(e==null?void 0:e.id)&&e.type==="Collection");function A(t){const e=t.type==="Annotation"?l(t.target):[t],n=e[0]?m(e[0],t):null;if(!n||e.length<2)return n;const a=typeof t.id=="string"?t.id:"content-state",c=e.flatMap((s,d)=>{var y,p,f;const i=d===0?n:m(s,t),r=(i==null?void 0:i.type)==="Manifest"?i.id:i==null?void 0:i.manifestId;return!i||!r?[]:[{id:`${a}#target-${d+1}`,manifestId:r,...((y=i.target)==null?void 0:y.canvasId)&&{canvasId:i.target.canvasId},...((p=i.target)==null?void 0:p.region)&&{region:i.target.region},...((f=i.target)==null?void 0:f.time)!==void 0&&{time:i.target.time}}]});return c.length>1?{...n,targets:{id:a,...t.label&&typeof t.label=="object"?{label:t.label}:{},items:c}}:n}function m(t,e){const n=g(t),a=typeof t=="string"?{id:n.id}:t.type==="SpecificResource"?typeof t.source=="string"?{id:t.source}:t.source??{}:t,c=a.type;if(c==="Manifest"||c==="Collection"){const o=c==="Manifest"?u(a):void 0;return o?{id:o.id,type:"Collection",manifestId:n.id}:{id:n.id,type:c}}const s=l(t.selector).find(o=>(o==null?void 0:o.type)==="PointSelector"&&o.t!=null),d={canvasId:n.id};n.rect&&(d.region=n.rect);const i=(s==null?void 0:s.t)??v(n.t);i!==void 0&&(d.time=Number(i));const r=[a,t].flatMap(o=>l(o==null?void 0:o.partOf)).find(o=>(o==null?void 0:o.id)&&(!o.type||o.type==="Manifest")),y=u(r),p=e.type==="Annotation"&&l(e.body).length?{id:e.id??`${n.id}#content-state`,type:"Annotation",motivation:l(e.motivation),body:e.body,target:t}:void 0,f=p?{annotation:p}:{};return y&&r?{id:y.id,type:"Collection",manifestId:r.id,target:d,...f}:r?{id:r.id,type:"Manifest",target:d,...f}:{id:n.id,type:c??"Canvas",target:d,...f}}export{I as decodeContentState,A as resolveContentState};
@@ -1 +1 @@
1
- import{u as t,k as o}from"./shared-D2pvbPvF.mjs";const s=()=>t("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M256 112v288M400 256H112"}),i=()=>t("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 256H112"}),a=()=>t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320M421.8 421.77L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320M90.23 421.8L208 304"}),l=()=>t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 416v-112h112M405.77 405.77L304 304M208 96v112H96M106.23 106.23L208 208M416 208H304V96M405.77 106.23L304 208M96 304h112v112M106.23 405.77L208 304"}),d=()=>t("path",{d:"M448 440a16 16 0 01-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335 352.88 301 345.59 256 344.23V424a16 16 0 01-27 11.57l-176-168a16 16 0 010-23.14l176-168A16 16 0 01256 88v80.36c74.14 3.41 129.38 30.91 164.35 81.87C449.32 292.44 464 350.9 464 424a16 16 0 01-16 16z"}),h=()=>t(o,{children:[t("path",{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}),t("path",{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"})]}),c=()=>t(o,{children:[t("path",{fill:"none",strokeLinecap:"round",strokeWidth:"64",d:"M112 144h0M112 256h0M112 368h0"}),t("path",{fill:"none",strokeLinecap:"round",strokeWidth:"40",d:"M208 144h208M208 256h208M208 368h208"})]}),M=({children:e,label:r})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 512 512",fill:"currentColor",stroke:"currentColor",focusable:"false","aria-hidden":"true",role:"presentation","data-testid":"clover-canvas-button-svg","data-label":r,children:e});export{c as C,h as R,s as Z,i as a,l as b,a as c,d,M as e};
1
+ import{u as t,k as o}from"./shared-pIVPxZLY.mjs";const s=()=>t("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M256 112v288M400 256H112"}),i=()=>t("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 256H112"}),a=()=>t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320M421.8 421.77L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320M90.23 421.8L208 304"}),l=()=>t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 416v-112h112M405.77 405.77L304 304M208 96v112H96M106.23 106.23L208 208M416 208H304V96M405.77 106.23L304 208M96 304h112v112M106.23 405.77L208 304"}),d=()=>t("path",{d:"M448 440a16 16 0 01-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335 352.88 301 345.59 256 344.23V424a16 16 0 01-27 11.57l-176-168a16 16 0 010-23.14l176-168A16 16 0 01256 88v80.36c74.14 3.41 129.38 30.91 164.35 81.87C449.32 292.44 464 350.9 464 424a16 16 0 01-16 16z"}),h=()=>t(o,{children:[t("path",{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}),t("path",{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"})]}),c=()=>t(o,{children:[t("path",{fill:"none",strokeLinecap:"round",strokeWidth:"64",d:"M112 144h0M112 256h0M112 368h0"}),t("path",{fill:"none",strokeLinecap:"round",strokeWidth:"40",d:"M208 144h208M208 256h208M208 368h208"})]}),M=({children:e,label:r})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 512 512",fill:"currentColor",stroke:"currentColor",focusable:"false","aria-hidden":"true",role:"presentation","data-testid":"clover-canvas-button-svg","data-label":r,children:e});export{c as C,h as R,s as Z,i as a,l as b,a as c,d,M as e};
@@ -1 +1 @@
1
- import{u as d,A as v,d as y,_ as g,$ as w,k as A}from"./shared-D2pvbPvF.mjs";const E=new Map;function D(o){if(!o||typeof o!="object")return;const s={};for(const[n,r]of Object.entries(o)){if(typeof r!="function")continue;const u=E.get(n)??new WeakMap;E.set(n,u);let c=u.get(r);c||(c=l=>d(x,{...l,name:n,make:r}),u.set(r,c)),s[n]=c}return s}const B=["id","type","aria-label","lang","aria-keyshortcuts","aria-expanded","aria-controls"];function x({name:o,make:s,buttonProps:n,icon:r,label:u,tip:c}){const l=v(null),[m]=y(()=>{const e=document.createElement("span");return e.style.display="contents",e}),[a,k]=y(null),f=v(n.onClick);return f.current=n.onClick,g(()=>{const e=l.current;if(!e)return;const t=s({name:o,label:u,icon:m});if(!(t instanceof HTMLElement)){console.warn(`controlButtons.${o} returned no element; Clover's own is not drawn either.`);return}const i=t.matches("button")?t:t.querySelector("button")??t,b=h=>{var p;return(p=f.current)==null?void 0:p.call(f,h)};return i.addEventListener("click",b),e.after(t),k(i),()=>{i.removeEventListener("click",b),t.remove(),k(null)}},[s]),g(()=>{if(!a)return;const e=n;for(const t of B){const i=e[t];i===void 0?a.removeAttribute(t):a.setAttribute(t,String(i))}}),d(A,{children:[d("span",{ref:l,hidden:true}),w(r,m),a&&w(c,a)]})}export{D as toControlButtons};
1
+ import{u as d,A as v,d as y,_ as g,$ as w,k as A}from"./shared-pIVPxZLY.mjs";const E=new Map;function D(o){if(!o||typeof o!="object")return;const s={};for(const[n,r]of Object.entries(o)){if(typeof r!="function")continue;const u=E.get(n)??new WeakMap;E.set(n,u);let c=u.get(r);c||(c=l=>d(x,{...l,name:n,make:r}),u.set(r,c)),s[n]=c}return s}const B=["id","type","aria-label","lang","aria-keyshortcuts","aria-expanded","aria-controls"];function x({name:o,make:s,buttonProps:n,icon:r,label:u,tip:c}){const l=v(null),[m]=y(()=>{const e=document.createElement("span");return e.style.display="contents",e}),[a,k]=y(null),f=v(n.onClick);return f.current=n.onClick,g(()=>{const e=l.current;if(!e)return;const t=s({name:o,label:u,icon:m});if(!(t instanceof HTMLElement)){console.warn(`controlButtons.${o} returned no element; Clover's own is not drawn either.`);return}const i=t.matches("button")?t:t.querySelector("button")??t,b=h=>{var p;return(p=f.current)==null?void 0:p.call(f,h)};return i.addEventListener("click",b),e.after(t),k(i),()=>{i.removeEventListener("click",b),t.remove(),k(null)}},[s]),g(()=>{if(!a)return;const e=n;for(const t of B){const i=e[t];i===void 0?a.removeAttribute(t):a.setAttribute(t,String(i))}}),d(A,{children:[d("span",{ref:l,hidden:true}),w(r,m),a&&w(c,a)]})}export{D as toControlButtons};
@@ -1 +1 @@
1
- import{e as i,c as f,n as d,U as u,t as g,a1 as h}from"./shared-D2pvbPvF.mjs";function c(s,t){const e=new Set,a=[];for(const r of s)for(const n of u(r==null?void 0:r.rendering)){const o=(n==null?void 0:n.id)??(n==null?void 0:n["@id"]);if(typeof o!="string"||e.has(o))continue;e.add(o);const l=g(n.label,t);a.push({id:o,label:l.text||n.format||o,lang:l.text?l.lang:void 0,format:n.format,hrefLang:h(n)})}return a}function p(){const{language:s}=i("Download"),t=f(a=>a.manifest),e=f(a=>d(a.manifest,a.canvasId));return{page:c(e,s),all:c([t],s)}}export{p as u};
1
+ import{e as i,c as f,n as d,V as u,t as g,a2 as h}from"./shared-pIVPxZLY.mjs";function c(s,t){const e=new Set,a=[];for(const r of s)for(const n of u(r==null?void 0:r.rendering)){const o=(n==null?void 0:n.id)??(n==null?void 0:n["@id"]);if(typeof o!="string"||e.has(o))continue;e.add(o);const l=g(n.label,t);a.push({id:o,label:l.text||n.format||o,lang:l.text?l.lang:void 0,format:n.format,hrefLang:h(n)})}return a}function p(){const{language:s}=i("Download"),t=f(a=>a.manifest),e=f(a=>d(a.manifest,a.canvasId));return{page:c(e,s),all:c([t],s)}}export{p as u};
@@ -1 +1 @@
1
- import{g as _}from"./viewer-D-AQ7mGw.mjs";const k=1/3,Y=.5,P=8,z="translate 240ms cubic-bezier(0.16, 1, 0.3, 1)",D=[120,_],A="cubic-bezier(0.33, 0.67, 0.67, 1)",E=new WeakMap;function O(t,n){let o=null,i="idle",a=0,S=0,s=0,d=1,e=1,c=[];const f=()=>{var r;return[t,(r=n.current.alongside)==null?void 0:r.current]},M=r=>{if(r.pointerType==="mouse"||!r.isPrimary||!n.current.enabled)return;o=r.pointerId,i="pending",a=r.clientX,S=r.clientY,s=0,d=t.getBoundingClientRect().width||1;const p=getComputedStyle(t).direction==="rtl";e=n.current.side==="end"!==p?1:-1,c=[[r.timeStamp,0]]},$=r=>{var h,v;if(r.pointerId!==o||i==="idle"||i==="scroll")return;const p=(r.clientX-a)*e,y=r.clientY-S;if(i==="pending"){if(Math.abs(y)>P&&Math.abs(y)>Math.abs(p)){i="scroll";return}if(p<P)return;i="drag",a=r.clientX,c=[[r.timeStamp,0]];try{(h=t.setPointerCapture)==null||h.call(t,r.pointerId)}catch{}u(f(),void 0,"none")}s=Math.max(0,(r.clientX-a)*e),u(f(),`${s*e}px 0`);const g=(v=n.current.scrim)==null?void 0:v.current;g&&(g.style.transition="none",g.style.opacity=String(1-s/d)),c.push([r.timeStamp,s]),c.length>5&&c.shift(),r.preventDefault()},m=r=>{var X,C,T;if(r.pointerId!==o)return;const p=i==="drag";if(i="idle",o=null,!p)return;t.addEventListener("click",b,{capture:true,once:true}),setTimeout(()=>t.removeEventListener("click",b,true),0);const[y,g]=c[0],[h,v]=c[c.length-1],I=h>y?(v-g)/(h-y):0,l=(X=n.current.scrim)==null?void 0:X.current,L=(C=window.matchMedia)==null?void 0:C.call(window,"(prefers-reduced-motion: reduce)").matches;if(s>d*k||I>Y){const x=L?0:Math.min(D[1],Math.max(D[0],2*(d-s)/Math.max(I,.001))),w=`${x}ms ${A}`;if(l&&(l.style.transition=`opacity ${w}`,l.style.opacity="0"),n.current.exits){u(f(),`${d*e}px 0`,`translate ${w}`),setTimeout(()=>n.current.onClose(),x);return}t.style.transition="none",t.style.translate="",t.style.transform=`translateX(${s*e}px)`,t.getBoundingClientRect(),t.style.transition=`transform ${w}`,t.style.transform=`var(--clover-template-out, translateX(${e*100}%))`,u([(T=n.current.alongside)==null?void 0:T.current],`${d*e}px 0`,`translate ${w}`),E.set(t,setTimeout(()=>R(t,n),x)),n.current.onClose();return}u(f(),"",L?"none":z),l&&(l.style.transition=L?"none":"opacity 240ms ease",l.style.opacity=""),setTimeout(()=>{i==="idle"&&!E.has(t)&&u(f(),void 0,"")},240)},b=r=>{r.stopPropagation(),r.preventDefault()};return t.addEventListener("pointerdown",M),t.addEventListener("pointermove",$,{passive:false}),t.addEventListener("pointerup",m),t.addEventListener("pointercancel",m),()=>{t.removeEventListener("pointerdown",M),t.removeEventListener("pointermove",$),t.removeEventListener("pointerup",m),t.removeEventListener("pointercancel",m)}}function F(t,n){E.has(t)&&!n.current.enabled||R(t,n)}function R(t,n){var i,a;clearTimeout(E.get(t)),E.delete(t),u([t,(i=n.current.alongside)==null?void 0:i.current],"",""),t.style.transform="";const o=(a=n.current.scrim)==null?void 0:a.current;o&&(o.style.opacity="",o.style.transition="")}function u(t,n,o){for(const i of t)i&&(o!==void 0&&(i.style.transition=o),n!==void 0&&(i.style.translate=n))}export{O as attach,F as reset};
1
+ import{g as _}from"./viewer-Br37L21l.mjs";const k=1/3,Y=.5,P=8,z="translate 240ms cubic-bezier(0.16, 1, 0.3, 1)",D=[120,_],A="cubic-bezier(0.33, 0.67, 0.67, 1)",E=new WeakMap;function O(t,n){let o=null,i="idle",a=0,S=0,s=0,d=1,e=1,c=[];const f=()=>{var r;return[t,(r=n.current.alongside)==null?void 0:r.current]},M=r=>{if(r.pointerType==="mouse"||!r.isPrimary||!n.current.enabled)return;o=r.pointerId,i="pending",a=r.clientX,S=r.clientY,s=0,d=t.getBoundingClientRect().width||1;const p=getComputedStyle(t).direction==="rtl";e=n.current.side==="end"!==p?1:-1,c=[[r.timeStamp,0]]},$=r=>{var h,v;if(r.pointerId!==o||i==="idle"||i==="scroll")return;const p=(r.clientX-a)*e,y=r.clientY-S;if(i==="pending"){if(Math.abs(y)>P&&Math.abs(y)>Math.abs(p)){i="scroll";return}if(p<P)return;i="drag",a=r.clientX,c=[[r.timeStamp,0]];try{(h=t.setPointerCapture)==null||h.call(t,r.pointerId)}catch{}u(f(),void 0,"none")}s=Math.max(0,(r.clientX-a)*e),u(f(),`${s*e}px 0`);const g=(v=n.current.scrim)==null?void 0:v.current;g&&(g.style.transition="none",g.style.opacity=String(1-s/d)),c.push([r.timeStamp,s]),c.length>5&&c.shift(),r.preventDefault()},m=r=>{var X,C,T;if(r.pointerId!==o)return;const p=i==="drag";if(i="idle",o=null,!p)return;t.addEventListener("click",b,{capture:true,once:true}),setTimeout(()=>t.removeEventListener("click",b,true),0);const[y,g]=c[0],[h,v]=c[c.length-1],I=h>y?(v-g)/(h-y):0,l=(X=n.current.scrim)==null?void 0:X.current,L=(C=window.matchMedia)==null?void 0:C.call(window,"(prefers-reduced-motion: reduce)").matches;if(s>d*k||I>Y){const x=L?0:Math.min(D[1],Math.max(D[0],2*(d-s)/Math.max(I,.001))),w=`${x}ms ${A}`;if(l&&(l.style.transition=`opacity ${w}`,l.style.opacity="0"),n.current.exits){u(f(),`${d*e}px 0`,`translate ${w}`),setTimeout(()=>n.current.onClose(),x);return}t.style.transition="none",t.style.translate="",t.style.transform=`translateX(${s*e}px)`,t.getBoundingClientRect(),t.style.transition=`transform ${w}`,t.style.transform=`var(--clover-template-out, translateX(${e*100}%))`,u([(T=n.current.alongside)==null?void 0:T.current],`${d*e}px 0`,`translate ${w}`),E.set(t,setTimeout(()=>R(t,n),x)),n.current.onClose();return}u(f(),"",L?"none":z),l&&(l.style.transition=L?"none":"opacity 240ms ease",l.style.opacity=""),setTimeout(()=>{i==="idle"&&!E.has(t)&&u(f(),void 0,"")},240)},b=r=>{r.stopPropagation(),r.preventDefault()};return t.addEventListener("pointerdown",M),t.addEventListener("pointermove",$,{passive:false}),t.addEventListener("pointerup",m),t.addEventListener("pointercancel",m),()=>{t.removeEventListener("pointerdown",M),t.removeEventListener("pointermove",$),t.removeEventListener("pointerup",m),t.removeEventListener("pointercancel",m)}}function F(t,n){E.has(t)&&!n.current.enabled||R(t,n)}function R(t,n){var i,a;clearTimeout(E.get(t)),E.delete(t),u([t,(i=n.current.alongside)==null?void 0:i.current],"",""),t.style.transform="";const o=(a=n.current.scrim)==null?void 0:a.current;o&&(o.style.opacity="",o.style.transition="")}function u(t,n,o){for(const i of t)i&&(o!==void 0&&(i.style.transition=o),n!==void 0&&(i.style.translate=n))}export{O as attach,F as reset};
@@ -1,4 +1,4 @@
1
- import{a3 as jc}from"./shared-D2pvbPvF.mjs";import{F as eu,c as tu,i as nu,M as iu}from"./models-Dw-cADIz.mjs";/**
1
+ import{a4 as jc}from"./shared-pIVPxZLY.mjs";import{F as eu,c as tu,i as nu,M as iu}from"./models-CxmIV7Mb.mjs";/**
2
2
  * @license
3
3
  * Copyright 2010-2026 Three.js Authors
4
4
  * SPDX-License-Identifier: MIT
@@ -1 +1 @@
1
- const r=Symbol.for("@nulib/clover/scene-engines"),o=globalThis,c=o[r]??(o[r]=new Map);function s(e,n){c.set(e,n)}const t=()=>import("./cloverEngine-BstElW9l.mjs");let i=false;function l(e="clover"){if(e==="clover")return t;const n=c.get(e);return n||(i||(i=true,console.warn(`Clover: no Scene engine "${e}"; drawing with Clover's.`)),t)}export{l as e,s as r};
1
+ const r=Symbol.for("@nulib/clover/scene-engines"),o=globalThis,c=o[r]??(o[r]=new Map);function s(e,n){c.set(e,n)}const t=()=>import("./cloverEngine-xAanVNmS.mjs");let i=false;function l(e="clover"){if(e==="clover")return t;const n=c.get(e);return n||(i||(i=true,console.warn(`Clover: no Scene engine "${e}"; drawing with Clover's.`)),t)}export{l as e,s as r};
@@ -1 +1 @@
1
- const a=JSON.parse('{"commonClose":"Cerrar","commonNext":"Siguiente","commonPrevious":"Anterior","commonSearch":"Buscar","commonViewAll":"Ver todo","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Cargando...","contentSearchPlaceholder":"Buscar","contentSearchResultsNone":"Sin resultados","contentSearchResult":"1 resultado","contentSearchResults":"{{count}} resultados","contentSearchError":"No se pudo completar la b\xFAsqueda.","contentSearchPosition":"Resultado {{index}} de {{total}}","contentSearchClear":"Borrar la b\xFAsqueda","canvasPosition":"Elemento {{index}} de {{total}}","canvasImage":"Imagen","bodyUnloadableImage":"No se pudo cargar esta imagen.","bodyUnloadableVideo":"No se pudo cargar este v\xEDdeo.","bodyUnloadableAudio":"No se pudo cargar este audio.","bodyUnloadableModel":"No se pudo cargar este modelo.","canvasRoleDescription":"imagen ampliable","canvasKeysImage":"Use las teclas de flecha para desplazar la imagen, con May\xFAs para avanzar m\xE1s, las teclas m\xE1s y menos para acercar y alejar, 0 para restablecer la vista, y R o May\xFAs+R para girar.","canvasKeysMedia":"Pulse Espacio o K para reproducir o pausar, J o L para retroceder o avanzar diez segundos, y M para silenciar o activar el sonido.","canvasKeysAnnotations":"Pulse Esc para quitar la selecci\xF3n de la anotaci\xF3n.","sceneModel":"Modelo 3D","sceneRoleDescription":"modelo 3D giratorio","sceneKeys":"Use las teclas de flecha para girar el modelo, con May\xFAs para avanzar m\xE1s, las teclas m\xE1s y menos para acercar y alejar, 0 para restablecer la vista, y R o May\xFAs+R para girarlo a la derecha o a la izquierda.","sceneRotateUp":"Girar hacia arriba","sceneRotateDown":"Girar hacia abajo","sceneRotate":"Girar","sceneResetView":"Restablecer la vista","statusLoading":"Cargando\u2026","statusError":"No se pudo cargar este contenido.","itemsLabel":"Elementos","download":"Descargar","downloadPage":"Esta p\xE1gina","downloadAll":"Todas las p\xE1ginas","templateSidebar":"Elementos","templateSidebarToggle":"Mostrar elementos","templateBack":"Volver","templateBackTo":"Volver a {{label}}","collectionLabel":"Colecci\xF3n","itemsScrollBack":"Mostrar elementos anteriores","itemsScrollForward":"Mostrar m\xE1s elementos","aboutRights":"Derechos","aboutDate":"Fecha","aboutHomepage":"P\xE1gina de inicio","aboutSeeAlso":"V\xE9ase tambi\xE9n","aboutProvider":"Proveedor","logo":"Logotipo","aboutManifest":"Manifiesto IIIF","aboutCanvas":"Lienzo IIIF","aboutPartOf":"Parte de","aboutOpenManifest":"Abrir el manifiesto completo","aboutCollection":"Colecci\xF3n IIIF","readingLanguage":"Idioma","annotationsHide":"Ocultar anotaciones","annotationsHideTip":"Ocultar","readMore":"Leer m\xE1s","readLess":"Leer menos","annotationsShow":"Ver en la imagen","annotationsShowTime":"Ver en la grabaci\xF3n","annotationsImage":"Imagen","annotationsLanguage":"Idioma","annotationsOpenLink":"Abrir","transcriptLabel":"Transcripci\xF3n","imageViewerOpen":"Abrir el visor de im\xE1genes","imageViewerClose":"Cerrar el visor de im\xE1genes","canvasChoice":"Alternativas","canvasViewerControls":"Controles del visor","canvasExpandControls":"Expandir los controles del visor","canvasCollapseControls":"Contraer los controles del visor","canvasScrollBack":"Mostrar controles anteriores","canvasScrollForward":"Mostrar m\xE1s controles","imageFullScreen":"Pantalla completa","imageExitFullScreen":"Salir de pantalla completa","imageResetZoom":"Restablecer zoom","imageRotateLeft":"Girar a la izquierda","imageRotateRight":"Girar a la derecha","imageZoomIn":"Acercar","imageZoomOut":"Alejar","informationPanelTabs":"Panel de informaci\xF3n","sectionsScrollBack":"Mostrar pesta\xF1as anteriores","sectionsScrollForward":"Mostrar m\xE1s pesta\xF1as","informationPanelClose":"Cerrar el panel de informaci\xF3n","informationPanelTabsAbout":"Acerca de","informationPanelTabsAnnotations":"Anotaciones","informationPanelTabsSearch":"Buscar","informationPanelTabsContents":"\xCDndice","contentsSectionsIn":"Secciones de","informationPanelTabsMap":"Mapa","informationPanelTabsCollection":"Colecci\xF3n","informationPanelTabsTargets":"Vistas","mapUnavailable":"No se pudo mostrar el mapa.","mapLabel":"Mapa","mapAttribution":"Cr\xE9ditos del mapa","mapPlaceUntitled":"Lugar {{number}}","mapOverlay":"Imagen georreferenciada","mapPlacesListed":"Lugares enumerados despu\xE9s del mapa: {{count}}","informationPanelToggle":"M\xE1s informaci\xF3n","playerPlay":"Reproducir","playerPause":"Pausar","playerMute":"Silenciar","playerUnmute":"Activar el sonido","playerVolume":"Volumen","playerSeek":"Posici\xF3n de reproducci\xF3n","playerCaptions":"Subt\xEDtulos","playerCaptionsOff":"Desactivados","playerChapters":"Cap\xEDtulos","playerFill":"Rellenar el marco","playerFit":"Ajustar al marco","playerCurrentTime":"Tiempo actual","playerDuration":"Duraci\xF3n","splitHandle":"Cambiar el tama\xF1o de los paneles"}');export{a as default};
1
+ const a=JSON.parse('{"commonClose":"Cerrar","commonNext":"Siguiente","commonPrevious":"Anterior","commonSearch":"Buscar","commonViewAll":"Ver todo","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Cargando...","contentSearchPlaceholder":"Buscar","contentSearchResultsNone":"Sin resultados","contentSearchResult":"1 resultado","contentSearchResults":"{{count}} resultados","contentSearchError":"No se pudo completar la b\xFAsqueda.","contentSearchPosition":"Resultado {{index}} de {{total}}","contentSearchClear":"Borrar la b\xFAsqueda","canvasPosition":"Elemento {{index}} de {{total}}","canvasImage":"Imagen","bodyUnloadableImage":"No se pudo cargar esta imagen.","bodyUnloadableVideo":"No se pudo cargar este v\xEDdeo.","bodyUnloadableAudio":"No se pudo cargar este audio.","bodyUnloadableModel":"No se pudo cargar este modelo.","canvasRoleDescription":"imagen ampliable","canvasKeysImage":"Use las teclas de flecha para desplazar la imagen, con May\xFAs para avanzar m\xE1s, las teclas m\xE1s y menos para acercar y alejar, 0 para restablecer la vista, y R o May\xFAs+R para girar.","canvasKeysMedia":"Pulse Espacio o K para reproducir o pausar, J o L para retroceder o avanzar diez segundos, y M para silenciar o activar el sonido.","canvasKeysAnnotations":"Pulse Esc para quitar la selecci\xF3n de la anotaci\xF3n.","sceneModel":"Modelo 3D","sceneRoleDescription":"modelo 3D giratorio","sceneKeys":"Use las teclas de flecha para girar el modelo, con May\xFAs para avanzar m\xE1s, las teclas m\xE1s y menos para acercar y alejar, 0 para restablecer la vista, y R o May\xFAs+R para girarlo a la derecha o a la izquierda.","sceneRotateUp":"Girar hacia arriba","sceneRotateDown":"Girar hacia abajo","sceneRotate":"Girar","sceneResetView":"Restablecer la vista","statusLoading":"Cargando\u2026","statusError":"No se pudo cargar este contenido.","itemsLabel":"Elementos","download":"Descargar","downloadPage":"Esta p\xE1gina","downloadAll":"Todas las p\xE1ginas","templateSidebar":"Elementos","templateSidebarToggle":"Mostrar elementos","templateBack":"Volver","templateBackTo":"Volver a {{label}}","collectionLabel":"Colecci\xF3n","itemsScrollBack":"Mostrar elementos anteriores","itemsScrollForward":"Mostrar m\xE1s elementos","aboutRights":"Derechos","aboutDate":"Fecha","aboutHomepage":"P\xE1gina de inicio","aboutSeeAlso":"V\xE9ase tambi\xE9n","aboutProvider":"Proveedor","logo":"Logotipo","aboutManifest":"Manifiesto IIIF","aboutCanvas":"Lienzo IIIF","aboutPartOf":"Parte de","aboutOpenManifest":"Abrir el manifiesto completo","aboutCollection":"Colecci\xF3n IIIF","readingLanguage":"Idioma","annotationsHide":"Ocultar anotaciones","annotationsHideTip":"Ocultar","readMore":"Leer m\xE1s","readLess":"Leer menos","annotationsShow":"Ver en la imagen","annotationsShowTime":"Ver en la grabaci\xF3n","annotationsImage":"Imagen","annotationsLanguage":"Idioma","annotationsOpenLink":"Abrir","transcriptLabel":"Transcripci\xF3n","imageViewerOpen":"Abrir el visor de im\xE1genes","imageViewerClose":"Cerrar el visor de im\xE1genes","canvasChoice":"Alternativas","canvasViewerControls":"Controles del visor","canvasExpandControls":"Expandir los controles del visor","canvasCollapseControls":"Contraer los controles del visor","canvasScrollBack":"Mostrar controles anteriores","canvasScrollForward":"Mostrar m\xE1s controles","imageFullScreen":"Pantalla completa","imageExitFullScreen":"Salir de pantalla completa","imageResetZoom":"Restablecer zoom","imageRotateLeft":"Girar a la izquierda","imageRotateRight":"Girar a la derecha","imageZoomIn":"Acercar","imageZoomOut":"Alejar","informationPanelTabs":"Panel de informaci\xF3n","sectionsScrollBack":"Mostrar pesta\xF1as anteriores","sectionsScrollForward":"Mostrar m\xE1s pesta\xF1as","informationPanelClose":"Cerrar el panel de informaci\xF3n","informationPanelTabsAbout":"Acerca de","informationPanelTabsAnnotations":"Anotaciones","informationPanelTabsSearch":"Buscar","informationPanelTabsContents":"\xCDndice","contentsSectionsIn":"Secciones de","contentsSectionsTip":"Secciones","informationPanelTabsMap":"Mapa","informationPanelTabsCollection":"Colecci\xF3n","informationPanelTabsTargets":"Vistas","mapUnavailable":"No se pudo mostrar el mapa.","mapLabel":"Mapa","mapAttribution":"Cr\xE9ditos del mapa","mapPlaceUntitled":"Lugar {{number}}","mapOverlay":"Imagen georreferenciada","mapPlacesListed":"Lugares enumerados despu\xE9s del mapa: {{count}}","informationPanelToggle":"M\xE1s informaci\xF3n","playerPlay":"Reproducir","playerPause":"Pausar","playerMute":"Silenciar","playerUnmute":"Activar el sonido","playerVolume":"Volumen","playerSeek":"Posici\xF3n de reproducci\xF3n","playerCaptions":"Subt\xEDtulos","playerCaptionsOff":"Desactivados","playerChapters":"Cap\xEDtulos","playerFill":"Rellenar el marco","playerFit":"Ajustar al marco","playerCurrentTime":"Tiempo actual","playerDuration":"Duraci\xF3n","splitHandle":"Cambiar el tama\xF1o de los paneles"}');export{a as default};
@@ -1 +1 @@
1
- import{U as h,ad as x,ae as m,ax as I}from"./shared-D2pvbPvF.mjs";import{b as q}from"./imageService-CCKieCxo.mjs";function k(e,i,n){for(const s of h(e==null?void 0:e.items))for(const o of h(s==null?void 0:s.items)){if(!x(o))continue;const l=h(o==null?void 0:o.body).flatMap(t=>(t==null?void 0:t.type)==="Choice"?h(t.items).filter((r,f)=>n?(r==null?void 0:r.id)===n:f===0):n&&(t==null?void 0:t.id)!==n?[]:[t]);for(const t of l){if((t==null?void 0:t.type)!=="Image"||!t.width||!t.height)continue;const r=q(t.service);if(!r)continue;const f=m(h(o.target)[0]).rect??{x:0,y:0,w:e.width,h:e.height},a=(i.x-f.x)/f.w,c=(i.y-f.y)/f.h,u=Math.max(0,a),p=Math.max(0,c),M=Math.min(1,a+i.w/f.w)-u,g=Math.min(1,c+i.h/f.h)-p;if(M>0&&g>0)return{service:r,region:{x:u,y:p,width:M,height:g}}}}return null}const w=new WeakMap;function C(e,i){let n=w.get(e);n||w.set(e,n=new Map);let s=n.get(i);return s||(s=I({id:i,type:"Manifest"},{request:e.request}).catch(()=>null),n.set(i,s)),s}export{C as f,k as r};
1
+ import{V as h,ae as m,af as x,ay as I}from"./shared-pIVPxZLY.mjs";import{b as q}from"./imageService-BBwzg9uY.mjs";function k(e,i,n){for(const s of h(e==null?void 0:e.items))for(const o of h(s==null?void 0:s.items)){if(!m(o))continue;const l=h(o==null?void 0:o.body).flatMap(t=>(t==null?void 0:t.type)==="Choice"?h(t.items).filter((r,f)=>n?(r==null?void 0:r.id)===n:f===0):n&&(t==null?void 0:t.id)!==n?[]:[t]);for(const t of l){if((t==null?void 0:t.type)!=="Image"||!t.width||!t.height)continue;const r=q(t.service);if(!r)continue;const f=x(h(o.target)[0]).rect??{x:0,y:0,w:e.width,h:e.height},a=(i.x-f.x)/f.w,c=(i.y-f.y)/f.h,u=Math.max(0,a),p=Math.max(0,c),M=Math.min(1,a+i.w/f.w)-u,g=Math.min(1,c+i.h/f.h)-p;if(M>0&&g>0)return{service:r,region:{x:u,y:p,width:M,height:g}}}}return null}const w=new WeakMap;function C(e,i){let n=w.get(e);n||w.set(e,n=new Map);let s=n.get(i);return s||(s=I({id:i,type:"Manifest"},{request:e.request}).catch(()=>null),n.set(i,s)),s}export{C as f,k as r};
@@ -1 +1 @@
1
- const a=JSON.parse('{"commonClose":"Sulje","commonNext":"Seuraava","commonPrevious":"Edellinen","commonSearch":"Hae","commonViewAll":"N\xE4yt\xE4 kaikki","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Ladataan...","contentSearchPlaceholder":"Haku","contentSearchResultsNone":"Ei osumia","contentSearchResult":"1 osuma","contentSearchResults":"{{count}} osumaa","contentSearchError":"Hakua ei voitu suorittaa loppuun.","contentSearchPosition":"Osuma {{index}} / {{total}}","contentSearchClear":"Tyhjenn\xE4 haku","canvasPosition":"Kohde {{index}} / {{total}}","canvasImage":"Kuva","bodyUnloadableImage":"T\xE4t\xE4 kuvaa ei voitu ladata.","bodyUnloadableVideo":"T\xE4t\xE4 videota ei voitu ladata.","bodyUnloadableAudio":"T\xE4t\xE4 \xE4\xE4nt\xE4 ei voitu ladata.","bodyUnloadableModel":"T\xE4t\xE4 mallia ei voitu ladata.","canvasRoleDescription":"zoomattava kuva","canvasKeysImage":"Siirr\xE4 kuvaa nuolin\xE4pp\xE4imill\xE4, pidemmin Vaihto-n\xE4pp\xE4imen kanssa, l\xE4henn\xE4 ja loitonna plus- ja miinusn\xE4pp\xE4imill\xE4, palauta n\xE4kym\xE4 n\xE4pp\xE4imell\xE4 0 ja kierr\xE4 n\xE4pp\xE4imell\xE4 R tai Vaihto+R.","canvasKeysMedia":"Toista tai keskeyt\xE4 v\xE4lily\xF6nnill\xE4 tai n\xE4pp\xE4imell\xE4 K, siirry kymmenen sekuntia taaksep\xE4in tai eteenp\xE4in n\xE4pp\xE4imell\xE4 J tai L ja mykist\xE4 tai poista mykistys n\xE4pp\xE4imell\xE4 M.","canvasKeysAnnotations":"Poista annotaation valinta painamalla Esc-n\xE4pp\xE4int\xE4.","sceneModel":"3D-malli","sceneRoleDescription":"k\xE4\xE4nnett\xE4v\xE4 3D-malli","sceneKeys":"Kierr\xE4 mallia nuolin\xE4pp\xE4imill\xE4, pidemmin Vaihto-n\xE4pp\xE4imen kanssa, l\xE4henn\xE4 ja loitonna plus- ja miinusn\xE4pp\xE4imill\xE4, palauta n\xE4kym\xE4 n\xE4pp\xE4imell\xE4 0 ja kierr\xE4 oikealle tai vasemmalle n\xE4pp\xE4imell\xE4 R tai Vaihto+R.","sceneRotateUp":"Kierr\xE4 yl\xF6s","sceneRotateDown":"Kierr\xE4 alas","sceneRotate":"Kierr\xE4","sceneResetView":"Palauta n\xE4kym\xE4","statusLoading":"Ladataan\u2026","statusError":"T\xE4t\xE4 ei voitu ladata.","itemsLabel":"Kohteet","download":"Lataa","downloadPage":"T\xE4m\xE4 sivu","downloadAll":"Kaikki sivut","templateSidebar":"Kohteet","templateSidebarToggle":"N\xE4yt\xE4 kohteet","templateBack":"Takaisin","templateBackTo":"Takaisin: {{label}}","collectionLabel":"Kokoelma","itemsScrollBack":"N\xE4yt\xE4 edelliset kohteet","itemsScrollForward":"N\xE4yt\xE4 lis\xE4\xE4 kohteita","aboutRights":"Oikeudet","aboutDate":"P\xE4iv\xE4m\xE4\xE4r\xE4","aboutHomepage":"Kotisivu","aboutSeeAlso":"Katso my\xF6s","aboutProvider":"Tarjoaja","logo":"Logo","aboutManifest":"IIIF-manifesti","aboutCanvas":"IIIF-kanvaasi","aboutPartOf":"Osa kokonaisuutta","aboutOpenManifest":"Avaa koko manifesti","aboutCollection":"IIIF-kokoelma","readingLanguage":"Kieli","annotationsHide":"Piilota annotaatiot","annotationsHideTip":"Piilota","readMore":"Lue lis\xE4\xE4","readLess":"N\xE4yt\xE4 v\xE4hemm\xE4n","annotationsShow":"N\xE4yt\xE4 kuvassa","annotationsShowTime":"N\xE4yt\xE4 tallenteessa","annotationsImage":"Kuva","annotationsLanguage":"Kieli","annotationsOpenLink":"Avaa","transcriptLabel":"Litteraatti","imageViewerOpen":"Avaa kuvakatselin","imageViewerClose":"Sulje kuvakatselin","canvasChoice":"Vaihtoehdot","canvasViewerControls":"Katselimen s\xE4\xE4timet","canvasExpandControls":"Laajenna katselimen s\xE4\xE4timet","canvasCollapseControls":"Supista katselimen s\xE4\xE4timet","canvasScrollBack":"N\xE4yt\xE4 edelliset s\xE4\xE4timet","canvasScrollForward":"N\xE4yt\xE4 lis\xE4\xE4 s\xE4\xE4timi\xE4","imageFullScreen":"Koko n\xE4ytt\xF6","imageExitFullScreen":"Poistu koko n\xE4yt\xF6st\xE4","imageResetZoom":"Palauta zoomaus","imageRotateLeft":"Kierr\xE4 vasemmalle","imageRotateRight":"Kierr\xE4 oikealle","imageZoomIn":"L\xE4henn\xE4","imageZoomOut":"Loitonna","informationPanelTabs":"Tietopaneeli","sectionsScrollBack":"N\xE4yt\xE4 edelliset v\xE4lilehdet","sectionsScrollForward":"N\xE4yt\xE4 lis\xE4\xE4 v\xE4lilehti\xE4","informationPanelClose":"Sulje tietopaneeli","informationPanelTabsAbout":"Tiedot","informationPanelTabsAnnotations":"Annotaatiot","informationPanelTabsSearch":"Haku","informationPanelTabsContents":"Sis\xE4lt\xF6","contentsSectionsIn":"Osiot:","informationPanelTabsMap":"Kartta","informationPanelTabsCollection":"Kokoelma","informationPanelTabsTargets":"N\xE4kym\xE4t","mapUnavailable":"Karttaa ei voitu n\xE4ytt\xE4\xE4.","mapLabel":"Kartta","mapAttribution":"Kartan tekij\xE4tiedot","mapPlaceUntitled":"Paikka {{number}}","mapOverlay":"Georeferoitu kuva","mapPlacesListed":"Kartan j\xE4lkeen luetellut paikat: {{count}}","informationPanelToggle":"Lis\xE4tiedot","playerPlay":"Toista","playerPause":"Keskeyt\xE4","playerMute":"Mykist\xE4","playerUnmute":"Poista mykistys","playerVolume":"\xC4\xE4nenvoimakkuus","playerSeek":"Toistokohta","playerCaptions":"Tekstitykset","playerCaptionsOff":"Pois","playerChapters":"Luvut","playerFill":"T\xE4yt\xE4 kehys","playerFit":"Sovita kehykseen","playerCurrentTime":"Kulunut aika","playerDuration":"Kesto","splitHandle":"Muuta paneelien kokoa"}');export{a as default};
1
+ const a=JSON.parse('{"commonClose":"Sulje","commonNext":"Seuraava","commonPrevious":"Edellinen","commonSearch":"Hae","commonViewAll":"N\xE4yt\xE4 kaikki","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Ladataan...","contentSearchPlaceholder":"Haku","contentSearchResultsNone":"Ei osumia","contentSearchResult":"1 osuma","contentSearchResults":"{{count}} osumaa","contentSearchError":"Hakua ei voitu suorittaa loppuun.","contentSearchPosition":"Osuma {{index}} / {{total}}","contentSearchClear":"Tyhjenn\xE4 haku","canvasPosition":"Kohde {{index}} / {{total}}","canvasImage":"Kuva","bodyUnloadableImage":"T\xE4t\xE4 kuvaa ei voitu ladata.","bodyUnloadableVideo":"T\xE4t\xE4 videota ei voitu ladata.","bodyUnloadableAudio":"T\xE4t\xE4 \xE4\xE4nt\xE4 ei voitu ladata.","bodyUnloadableModel":"T\xE4t\xE4 mallia ei voitu ladata.","canvasRoleDescription":"zoomattava kuva","canvasKeysImage":"Siirr\xE4 kuvaa nuolin\xE4pp\xE4imill\xE4, pidemmin Vaihto-n\xE4pp\xE4imen kanssa, l\xE4henn\xE4 ja loitonna plus- ja miinusn\xE4pp\xE4imill\xE4, palauta n\xE4kym\xE4 n\xE4pp\xE4imell\xE4 0 ja kierr\xE4 n\xE4pp\xE4imell\xE4 R tai Vaihto+R.","canvasKeysMedia":"Toista tai keskeyt\xE4 v\xE4lily\xF6nnill\xE4 tai n\xE4pp\xE4imell\xE4 K, siirry kymmenen sekuntia taaksep\xE4in tai eteenp\xE4in n\xE4pp\xE4imell\xE4 J tai L ja mykist\xE4 tai poista mykistys n\xE4pp\xE4imell\xE4 M.","canvasKeysAnnotations":"Poista annotaation valinta painamalla Esc-n\xE4pp\xE4int\xE4.","sceneModel":"3D-malli","sceneRoleDescription":"k\xE4\xE4nnett\xE4v\xE4 3D-malli","sceneKeys":"Kierr\xE4 mallia nuolin\xE4pp\xE4imill\xE4, pidemmin Vaihto-n\xE4pp\xE4imen kanssa, l\xE4henn\xE4 ja loitonna plus- ja miinusn\xE4pp\xE4imill\xE4, palauta n\xE4kym\xE4 n\xE4pp\xE4imell\xE4 0 ja kierr\xE4 oikealle tai vasemmalle n\xE4pp\xE4imell\xE4 R tai Vaihto+R.","sceneRotateUp":"Kierr\xE4 yl\xF6s","sceneRotateDown":"Kierr\xE4 alas","sceneRotate":"Kierr\xE4","sceneResetView":"Palauta n\xE4kym\xE4","statusLoading":"Ladataan\u2026","statusError":"T\xE4t\xE4 ei voitu ladata.","itemsLabel":"Kohteet","download":"Lataa","downloadPage":"T\xE4m\xE4 sivu","downloadAll":"Kaikki sivut","templateSidebar":"Kohteet","templateSidebarToggle":"N\xE4yt\xE4 kohteet","templateBack":"Takaisin","templateBackTo":"Takaisin: {{label}}","collectionLabel":"Kokoelma","itemsScrollBack":"N\xE4yt\xE4 edelliset kohteet","itemsScrollForward":"N\xE4yt\xE4 lis\xE4\xE4 kohteita","aboutRights":"Oikeudet","aboutDate":"P\xE4iv\xE4m\xE4\xE4r\xE4","aboutHomepage":"Kotisivu","aboutSeeAlso":"Katso my\xF6s","aboutProvider":"Tarjoaja","logo":"Logo","aboutManifest":"IIIF-manifesti","aboutCanvas":"IIIF-kanvaasi","aboutPartOf":"Osa kokonaisuutta","aboutOpenManifest":"Avaa koko manifesti","aboutCollection":"IIIF-kokoelma","readingLanguage":"Kieli","annotationsHide":"Piilota annotaatiot","annotationsHideTip":"Piilota","readMore":"Lue lis\xE4\xE4","readLess":"N\xE4yt\xE4 v\xE4hemm\xE4n","annotationsShow":"N\xE4yt\xE4 kuvassa","annotationsShowTime":"N\xE4yt\xE4 tallenteessa","annotationsImage":"Kuva","annotationsLanguage":"Kieli","annotationsOpenLink":"Avaa","transcriptLabel":"Litteraatti","imageViewerOpen":"Avaa kuvakatselin","imageViewerClose":"Sulje kuvakatselin","canvasChoice":"Vaihtoehdot","canvasViewerControls":"Katselimen s\xE4\xE4timet","canvasExpandControls":"Laajenna katselimen s\xE4\xE4timet","canvasCollapseControls":"Supista katselimen s\xE4\xE4timet","canvasScrollBack":"N\xE4yt\xE4 edelliset s\xE4\xE4timet","canvasScrollForward":"N\xE4yt\xE4 lis\xE4\xE4 s\xE4\xE4timi\xE4","imageFullScreen":"Koko n\xE4ytt\xF6","imageExitFullScreen":"Poistu koko n\xE4yt\xF6st\xE4","imageResetZoom":"Palauta zoomaus","imageRotateLeft":"Kierr\xE4 vasemmalle","imageRotateRight":"Kierr\xE4 oikealle","imageZoomIn":"L\xE4henn\xE4","imageZoomOut":"Loitonna","informationPanelTabs":"Tietopaneeli","sectionsScrollBack":"N\xE4yt\xE4 edelliset v\xE4lilehdet","sectionsScrollForward":"N\xE4yt\xE4 lis\xE4\xE4 v\xE4lilehti\xE4","informationPanelClose":"Sulje tietopaneeli","informationPanelTabsAbout":"Tiedot","informationPanelTabsAnnotations":"Annotaatiot","informationPanelTabsSearch":"Haku","informationPanelTabsContents":"Sis\xE4lt\xF6","contentsSectionsIn":"Osiot:","contentsSectionsTip":"Osiot","informationPanelTabsMap":"Kartta","informationPanelTabsCollection":"Kokoelma","informationPanelTabsTargets":"N\xE4kym\xE4t","mapUnavailable":"Karttaa ei voitu n\xE4ytt\xE4\xE4.","mapLabel":"Kartta","mapAttribution":"Kartan tekij\xE4tiedot","mapPlaceUntitled":"Paikka {{number}}","mapOverlay":"Georeferoitu kuva","mapPlacesListed":"Kartan j\xE4lkeen luetellut paikat: {{count}}","informationPanelToggle":"Lis\xE4tiedot","playerPlay":"Toista","playerPause":"Keskeyt\xE4","playerMute":"Mykist\xE4","playerUnmute":"Poista mykistys","playerVolume":"\xC4\xE4nenvoimakkuus","playerSeek":"Toistokohta","playerCaptions":"Tekstitykset","playerCaptionsOff":"Pois","playerChapters":"Luvut","playerFill":"T\xE4yt\xE4 kehys","playerFit":"Sovita kehykseen","playerCurrentTime":"Kulunut aika","playerDuration":"Kesto","splitHandle":"Muuta paneelien kokoa"}');export{a as default};
@@ -1 +1 @@
1
- import{aH as w,U as f,ae as l}from"./shared-D2pvbPvF.mjs";import{resolveContentState as S}from"./content-state-reader-DGOg8oAH.mjs";import{readSvgShape as b}from"./svg-shape-D1K-WNrY.mjs";const m="http://iiif.io/api/presentation/2/context.json",x=t=>(t==null?void 0:t["@type"])==="oa:Annotation"||(t==null?void 0:t["@id"])!==void 0&&f(t==null?void 0:t["@context"]).includes(m),y=t=>typeof t=="string"?t:(t==null?void 0:t["@id"])??(t==null?void 0:t.id);async function I(t){if(!x(t))return t;const{convertPresentation2:n}=await import("./presentation-2-C-U79S_T.mjs"),r=n({"@context":m,...JSON.parse(JSON.stringify(t))}),a=f(t.on).map(e=>y(f(e==null?void 0:e.within)[0])),s=f(r.target).map((e,c)=>{const o=a[c];if(!o)return e;const d=[{id:o,type:"Manifest"}],g=(e==null?void 0:e.type)==="SpecificResource",u=y(g?e.source:e);return u?g?{...e,source:{id:u,type:"Canvas",partOf:d}}:{id:u,type:"Canvas",partOf:d}:e}),i=f(r.body).map(e=>typeof(e==null?void 0:e.chars)=="string"?{type:"TextualBody",value:e.chars,...e.format?{format:e.format}:{},...e.language?{language:e.language}:{}}:e);return{...r,"@context":void 0,type:"Annotation",target:s.length===1?s[0]:s,...i.length?{body:i.length===1?i[0]:i}:{}}}async function $(t,n,r){const a=await A(t);if(!a)throw new w("Unreadable content state");const s=await r(a.id,{...n,manifestId:n.manifestId??a.manifestId,follows:(n.follows??0)+1}),{target:i}=a;return O({...s,target:i&&(!s.target||s.target.canvasId===i.canvasId)?{...s.target,...i}:s.target??i,annotation:s.annotation??a.annotation,targets:s.targets??a.targets})}async function A(t){const n=await I(t),r=S(n);if(!r)return null;const a=n.type==="Annotation"?f(n.target)[0]:n,s=C(l(a).svg),i=r.annotation;return{...r,...r.target&&!r.target.region&&s?{target:{...r.target,region:s}}:{},...i?{annotation:{...i,motivation:f(i.motivation).filter(e=>e!=="painting"),...n.label?{label:n.label}:{}}}:{}}}function N(t){const n=t?Number(t.split(",")[0]):NaN;return Number.isFinite(n)?n:void 0}function C(t){var r;const n=t?(r=b(t))==null?void 0:r.box:void 0;return n&&n.width>0&&n.height>0?{x:n.x,y:n.y,w:n.width,h:n.height}:void 0}function R(t,n){const r=new Set,a=e=>{for(const c of e){if(!c||r.has(c))continue;if(r.add(c),c.type==="Range"&&c.id===n)return c;const o=a(f(c.items));if(o)return o}},s=(e,c=0)=>{for(const o of f(e.items)){if((o==null?void 0:o.type)==="Range"){const p=c<16?s(o,c+1):null;if(p)return p;continue}const d=typeof o=="string"?o:o==null?void 0:o.id,g=l((o==null?void 0:o.type)==="SpecificResource"?o:String(d??"").replace(/\/((?:t|xywh)=[^/#]*)$/,"#$1"));if(!g.id)continue;const u=N(g.t);return{canvasId:g.id,...g.rect?{region:g.rect}:{},...u!==void 0?{time:u}:{}}}return null},i=a(f(t.structures));return i?s(i):null}function v(t,n){if(typeof t=="string"){const a=t.indexOf("#");return a<0?n:n+t.slice(a)}const r=t;return(r==null?void 0:r.type)==="SpecificResource"?{...r,source:typeof r.source=="object"?{...r.source,id:n,type:"Canvas"}:{id:n,type:"Canvas"}}:v(String((r==null?void 0:r.id)??""),n)}function O(t){var c;const{manifest:n,target:r}=t;if(!r)return t;const a=f(n.items);if(a.some(o=>(o==null?void 0:o.id)===r.canvasId))return t;const i=(a.length===1&&((c=a[0])==null?void 0:c.id)===`${n.id}/canvas`?{canvasId:a[0].id}:null)??R(n,r.canvasId);if(!i)return t;const e=t.annotation&&{...t.annotation,target:v(t.annotation.target,i.canvasId)};return{...t,target:{...r,canvasId:i.canvasId,...r.region?{}:i.region?{region:i.region}:{},...r.time!==void 0?{}:i.time!==void 0?{time:i.time}:{}},...e?{annotation:e}:{}}}export{$ as follow,O as placeTarget,I as readAnnotation,A as resolve};
1
+ import{aI as w,V as f,af as l}from"./shared-pIVPxZLY.mjs";import{resolveContentState as S}from"./content-state-reader-CHLSQAIO.mjs";import{readSvgShape as b}from"./svg-shape-D1K-WNrY.mjs";const m="http://iiif.io/api/presentation/2/context.json",x=t=>(t==null?void 0:t["@type"])==="oa:Annotation"||(t==null?void 0:t["@id"])!==void 0&&f(t==null?void 0:t["@context"]).includes(m),y=t=>typeof t=="string"?t:(t==null?void 0:t["@id"])??(t==null?void 0:t.id);async function I(t){if(!x(t))return t;const{convertPresentation2:n}=await import("./presentation-2-C-U79S_T.mjs"),r=n({"@context":m,...JSON.parse(JSON.stringify(t))}),a=f(t.on).map(e=>y(f(e==null?void 0:e.within)[0])),s=f(r.target).map((e,c)=>{const o=a[c];if(!o)return e;const d=[{id:o,type:"Manifest"}],g=(e==null?void 0:e.type)==="SpecificResource",u=y(g?e.source:e);return u?g?{...e,source:{id:u,type:"Canvas",partOf:d}}:{id:u,type:"Canvas",partOf:d}:e}),i=f(r.body).map(e=>typeof(e==null?void 0:e.chars)=="string"?{type:"TextualBody",value:e.chars,...e.format?{format:e.format}:{},...e.language?{language:e.language}:{}}:e);return{...r,"@context":void 0,type:"Annotation",target:s.length===1?s[0]:s,...i.length?{body:i.length===1?i[0]:i}:{}}}async function $(t,n,r){const a=await A(t);if(!a)throw new w("Unreadable content state");const s=await r(a.id,{...n,manifestId:n.manifestId??a.manifestId,follows:(n.follows??0)+1}),{target:i}=a;return O({...s,target:i&&(!s.target||s.target.canvasId===i.canvasId)?{...s.target,...i}:s.target??i,annotation:s.annotation??a.annotation,targets:s.targets??a.targets})}async function A(t){const n=await I(t),r=S(n);if(!r)return null;const a=n.type==="Annotation"?f(n.target)[0]:n,s=C(l(a).svg),i=r.annotation;return{...r,...r.target&&!r.target.region&&s?{target:{...r.target,region:s}}:{},...i?{annotation:{...i,motivation:f(i.motivation).filter(e=>e!=="painting"),...n.label?{label:n.label}:{}}}:{}}}function N(t){const n=t?Number(t.split(",")[0]):NaN;return Number.isFinite(n)?n:void 0}function C(t){var r;const n=t?(r=b(t))==null?void 0:r.box:void 0;return n&&n.width>0&&n.height>0?{x:n.x,y:n.y,w:n.width,h:n.height}:void 0}function R(t,n){const r=new Set,a=e=>{for(const c of e){if(!c||r.has(c))continue;if(r.add(c),c.type==="Range"&&c.id===n)return c;const o=a(f(c.items));if(o)return o}},s=(e,c=0)=>{for(const o of f(e.items)){if((o==null?void 0:o.type)==="Range"){const p=c<16?s(o,c+1):null;if(p)return p;continue}const d=typeof o=="string"?o:o==null?void 0:o.id,g=l((o==null?void 0:o.type)==="SpecificResource"?o:String(d??"").replace(/\/((?:t|xywh)=[^/#]*)$/,"#$1"));if(!g.id)continue;const u=N(g.t);return{canvasId:g.id,...g.rect?{region:g.rect}:{},...u!==void 0?{time:u}:{}}}return null},i=a(f(t.structures));return i?s(i):null}function v(t,n){if(typeof t=="string"){const a=t.indexOf("#");return a<0?n:n+t.slice(a)}const r=t;return(r==null?void 0:r.type)==="SpecificResource"?{...r,source:typeof r.source=="object"?{...r.source,id:n,type:"Canvas"}:{id:n,type:"Canvas"}}:v(String((r==null?void 0:r.id)??""),n)}function O(t){var c;const{manifest:n,target:r}=t;if(!r)return t;const a=f(n.items);if(a.some(o=>(o==null?void 0:o.id)===r.canvasId))return t;const i=(a.length===1&&((c=a[0])==null?void 0:c.id)===`${n.id}/canvas`?{canvasId:a[0].id}:null)??R(n,r.canvasId);if(!i)return t;const e=t.annotation&&{...t.annotation,target:v(t.annotation.target,i.canvasId)};return{...t,target:{...r,canvasId:i.canvasId,...r.region?{}:i.region?{region:i.region}:{},...r.time!==void 0?{}:i.time!==void 0?{time:i.time}:{}},...e?{annotation:e}:{}}}export{$ as follow,O as placeTarget,I as readAnnotation,A as resolve};
@@ -1 +1 @@
1
- const e=JSON.parse(`{"commonClose":"Fermer","commonNext":"Suivant","commonPrevious":"Pr\xE9c\xE9dent","commonSearch":"Rechercher","commonViewAll":"Tout afficher","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Chargement\u2026","contentSearchPlaceholder":"Rechercher","contentSearchResultsNone":"Aucun r\xE9sultat","contentSearchResult":"1 r\xE9sultat","contentSearchResults":"{{count}} r\xE9sultats","contentSearchError":"La recherche n\u2019a pas pu aboutir.","contentSearchPosition":"R\xE9sultat {{index}} sur {{total}}","contentSearchClear":"Effacer la recherche","canvasPosition":"\xC9l\xE9ment {{index}} sur {{total}}","canvasImage":"Image","bodyUnloadableImage":"Cette image n\u2019a pas pu \xEAtre charg\xE9e.","bodyUnloadableVideo":"Cette vid\xE9o n\u2019a pas pu \xEAtre charg\xE9e.","bodyUnloadableAudio":"Ce son n\u2019a pas pu \xEAtre charg\xE9.","bodyUnloadableModel":"Ce mod\xE8le n\u2019a pas pu \xEAtre charg\xE9.","canvasRoleDescription":"image zoomable","canvasKeysImage":"Utilisez les fl\xE8ches pour d\xE9placer l\u2019image, avec Maj pour aller plus loin, plus et moins pour zoomer, 0 pour r\xE9initialiser la vue, et R ou Maj+R pour la faire pivoter.","canvasKeysMedia":"Appuyez sur Espace ou K pour lire ou mettre en pause, sur J ou L pour reculer ou avancer de dix secondes, et sur M pour couper ou r\xE9tablir le son.","canvasKeysAnnotations":"Appuyez sur \xC9chap pour d\xE9s\xE9lectionner l\u2019annotation.","sceneModel":"Mod\xE8le 3D","sceneRoleDescription":"mod\xE8le 3D orientable","sceneKeys":"Utilisez les fl\xE8ches pour faire pivoter le mod\xE8le, avec Maj pour aller plus loin, plus et moins pour zoomer, 0 pour r\xE9initialiser la vue, et R ou Maj+R pour le faire pivoter \xE0 droite ou \xE0 gauche.","sceneRotateUp":"Rotation vers le haut","sceneRotateDown":"Rotation vers le bas","sceneRotate":"Rotation","sceneResetView":"R\xE9initialiser la vue","statusLoading":"Chargement\u2026","statusError":"Ce contenu n\u2019a pas pu \xEAtre charg\xE9.","itemsLabel":"\xC9l\xE9ments","download":"T\xE9l\xE9charger","downloadPage":"Cette page","downloadAll":"Toutes les pages","templateSidebar":"\xC9l\xE9ments","templateSidebarToggle":"Afficher les \xE9l\xE9ments","templateBack":"Retour","templateBackTo":"Retour \xE0 {{label}}","collectionLabel":"Collection","itemsScrollBack":"Afficher les \xE9l\xE9ments pr\xE9c\xE9dents","itemsScrollForward":"Afficher plus d\u2019\xE9l\xE9ments","aboutRights":"Droits","aboutDate":"Date","aboutHomepage":"Page d\u2019accueil","aboutSeeAlso":"Voir aussi","aboutProvider":"Fournisseur","logo":"Logo","aboutManifest":"Manifeste IIIF","aboutCanvas":"Canevas IIIF","aboutPartOf":"Fait partie de","aboutOpenManifest":"Ouvrir le manifeste complet","aboutCollection":"Collection IIIF","readingLanguage":"Langue","annotationsHide":"Masquer les annotations","annotationsHideTip":"Masquer","readMore":"Lire la suite","readLess":"Afficher moins","annotationsShow":"Afficher sur l\u2019image","annotationsShowTime":"Afficher dans l\u2019enregistrement","annotationsImage":"Image","annotationsLanguage":"Langue","annotationsOpenLink":"Ouvrir","transcriptLabel":"Transcription","imageViewerOpen":"Ouvrir la visionneuse d'images","imageViewerClose":"Fermer la visionneuse d'images","canvasChoice":"Choix","canvasViewerControls":"Commandes de la visionneuse","canvasExpandControls":"D\xE9velopper les commandes de la visionneuse","canvasCollapseControls":"R\xE9duire les commandes de la visionneuse","canvasScrollBack":"Afficher les commandes pr\xE9c\xE9dentes","canvasScrollForward":"Afficher plus de commandes","imageFullScreen":"Plein \xE9cran","imageExitFullScreen":"Quitter le plein \xE9cran","imageResetZoom":"R\xE9initialiser le zoom","imageRotateLeft":"Rotation \xE0 gauche","imageRotateRight":"Rotation \xE0 droite","imageZoomIn":"Zoom avant","imageZoomOut":"Zoom arri\xE8re","informationPanelTabs":"Panneau d\u2019informations","sectionsScrollBack":"Afficher les onglets pr\xE9c\xE9dents","sectionsScrollForward":"Afficher plus d\u2019onglets","informationPanelClose":"Fermer le panneau d\u2019informations","informationPanelTabsAbout":"\xC0 propos","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Recherche","informationPanelTabsContents":"Sommaire","contentsSectionsIn":"Sections de","informationPanelTabsMap":"Carte","informationPanelTabsCollection":"Collection","informationPanelTabsTargets":"Vues","mapUnavailable":"La carte n\u2019a pas pu \xEAtre affich\xE9e.","mapLabel":"Carte","mapAttribution":"Cr\xE9dits de la carte","mapPlaceUntitled":"Lieu {{number}}","mapOverlay":"Image g\xE9or\xE9f\xE9renc\xE9e","mapPlacesListed":"Lieux \xE9num\xE9r\xE9s apr\xE8s la carte : {{count}}","informationPanelToggle":"Plus d\u2019informations","playerPlay":"Lire","playerPause":"Pause","playerMute":"Couper le son","playerUnmute":"Activer le son","playerVolume":"Volume","playerSeek":"Position de lecture","playerCaptions":"Sous-titres","playerCaptionsOff":"D\xE9sactiv\xE9s","playerChapters":"Chapitres","playerFill":"Remplir le cadre","playerFit":"Ajuster au cadre","playerCurrentTime":"Temps \xE9coul\xE9","playerDuration":"Dur\xE9e","splitHandle":"Redimensionner les panneaux"}`);export{e as default};
1
+ const e=JSON.parse(`{"commonClose":"Fermer","commonNext":"Suivant","commonPrevious":"Pr\xE9c\xE9dent","commonSearch":"Rechercher","commonViewAll":"Tout afficher","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Chargement\u2026","contentSearchPlaceholder":"Rechercher","contentSearchResultsNone":"Aucun r\xE9sultat","contentSearchResult":"1 r\xE9sultat","contentSearchResults":"{{count}} r\xE9sultats","contentSearchError":"La recherche n\u2019a pas pu aboutir.","contentSearchPosition":"R\xE9sultat {{index}} sur {{total}}","contentSearchClear":"Effacer la recherche","canvasPosition":"\xC9l\xE9ment {{index}} sur {{total}}","canvasImage":"Image","bodyUnloadableImage":"Cette image n\u2019a pas pu \xEAtre charg\xE9e.","bodyUnloadableVideo":"Cette vid\xE9o n\u2019a pas pu \xEAtre charg\xE9e.","bodyUnloadableAudio":"Ce son n\u2019a pas pu \xEAtre charg\xE9.","bodyUnloadableModel":"Ce mod\xE8le n\u2019a pas pu \xEAtre charg\xE9.","canvasRoleDescription":"image zoomable","canvasKeysImage":"Utilisez les fl\xE8ches pour d\xE9placer l\u2019image, avec Maj pour aller plus loin, plus et moins pour zoomer, 0 pour r\xE9initialiser la vue, et R ou Maj+R pour la faire pivoter.","canvasKeysMedia":"Appuyez sur Espace ou K pour lire ou mettre en pause, sur J ou L pour reculer ou avancer de dix secondes, et sur M pour couper ou r\xE9tablir le son.","canvasKeysAnnotations":"Appuyez sur \xC9chap pour d\xE9s\xE9lectionner l\u2019annotation.","sceneModel":"Mod\xE8le 3D","sceneRoleDescription":"mod\xE8le 3D orientable","sceneKeys":"Utilisez les fl\xE8ches pour faire pivoter le mod\xE8le, avec Maj pour aller plus loin, plus et moins pour zoomer, 0 pour r\xE9initialiser la vue, et R ou Maj+R pour le faire pivoter \xE0 droite ou \xE0 gauche.","sceneRotateUp":"Rotation vers le haut","sceneRotateDown":"Rotation vers le bas","sceneRotate":"Rotation","sceneResetView":"R\xE9initialiser la vue","statusLoading":"Chargement\u2026","statusError":"Ce contenu n\u2019a pas pu \xEAtre charg\xE9.","itemsLabel":"\xC9l\xE9ments","download":"T\xE9l\xE9charger","downloadPage":"Cette page","downloadAll":"Toutes les pages","templateSidebar":"\xC9l\xE9ments","templateSidebarToggle":"Afficher les \xE9l\xE9ments","templateBack":"Retour","templateBackTo":"Retour \xE0 {{label}}","collectionLabel":"Collection","itemsScrollBack":"Afficher les \xE9l\xE9ments pr\xE9c\xE9dents","itemsScrollForward":"Afficher plus d\u2019\xE9l\xE9ments","aboutRights":"Droits","aboutDate":"Date","aboutHomepage":"Page d\u2019accueil","aboutSeeAlso":"Voir aussi","aboutProvider":"Fournisseur","logo":"Logo","aboutManifest":"Manifeste IIIF","aboutCanvas":"Canevas IIIF","aboutPartOf":"Fait partie de","aboutOpenManifest":"Ouvrir le manifeste complet","aboutCollection":"Collection IIIF","readingLanguage":"Langue","annotationsHide":"Masquer les annotations","annotationsHideTip":"Masquer","readMore":"Lire la suite","readLess":"Afficher moins","annotationsShow":"Afficher sur l\u2019image","annotationsShowTime":"Afficher dans l\u2019enregistrement","annotationsImage":"Image","annotationsLanguage":"Langue","annotationsOpenLink":"Ouvrir","transcriptLabel":"Transcription","imageViewerOpen":"Ouvrir la visionneuse d'images","imageViewerClose":"Fermer la visionneuse d'images","canvasChoice":"Choix","canvasViewerControls":"Commandes de la visionneuse","canvasExpandControls":"D\xE9velopper les commandes de la visionneuse","canvasCollapseControls":"R\xE9duire les commandes de la visionneuse","canvasScrollBack":"Afficher les commandes pr\xE9c\xE9dentes","canvasScrollForward":"Afficher plus de commandes","imageFullScreen":"Plein \xE9cran","imageExitFullScreen":"Quitter le plein \xE9cran","imageResetZoom":"R\xE9initialiser le zoom","imageRotateLeft":"Rotation \xE0 gauche","imageRotateRight":"Rotation \xE0 droite","imageZoomIn":"Zoom avant","imageZoomOut":"Zoom arri\xE8re","informationPanelTabs":"Panneau d\u2019informations","sectionsScrollBack":"Afficher les onglets pr\xE9c\xE9dents","sectionsScrollForward":"Afficher plus d\u2019onglets","informationPanelClose":"Fermer le panneau d\u2019informations","informationPanelTabsAbout":"\xC0 propos","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Recherche","informationPanelTabsContents":"Sommaire","contentsSectionsIn":"Sections de","contentsSectionsTip":"Sections","informationPanelTabsMap":"Carte","informationPanelTabsCollection":"Collection","informationPanelTabsTargets":"Vues","mapUnavailable":"La carte n\u2019a pas pu \xEAtre affich\xE9e.","mapLabel":"Carte","mapAttribution":"Cr\xE9dits de la carte","mapPlaceUntitled":"Lieu {{number}}","mapOverlay":"Image g\xE9or\xE9f\xE9renc\xE9e","mapPlacesListed":"Lieux \xE9num\xE9r\xE9s apr\xE8s la carte : {{count}}","informationPanelToggle":"Plus d\u2019informations","playerPlay":"Lire","playerPause":"Pause","playerMute":"Couper le son","playerUnmute":"Activer le son","playerVolume":"Volume","playerSeek":"Position de lecture","playerCaptions":"Sous-titres","playerCaptionsOff":"D\xE9sactiv\xE9s","playerChapters":"Chapitres","playerFill":"Remplir le cadre","playerFit":"Ajuster au cadre","playerCurrentTime":"Temps \xE9coul\xE9","playerDuration":"Dur\xE9e","splitHandle":"Redimensionner les panneaux"}`);export{e as default};
@@ -1 +1 @@
1
- import{T as f,t as d}from"./shared-D2pvbPvF.mjs";function c(e,u,n,o){return f(()=>((o==null?void 0:o(e??null,(u==null?void 0:u.id)??null,u==null?void 0:u.duration))??[]).map(t=>{const i=d(t.label,n);return{...t.id?{id:t.id}:{},label:i.text,lang:i.lang,start:t.start,end:t.end,...t.thumbnail?{thumbnail:t.thumbnail}:{}}}),[e,u,n,o])}function m(e,u,n,o){if(e.region){if(!u)return false;const{x:t,y:i,w:l,h:s}=e.region;if(!u.fitCanvasRect(e.canvasId,{x:t,y:i,width:l,height:s},true))return false}if(o&&(e.time!==void 0||e.autoplay)){if(!n)return false;const t=()=>{e.time!==void 0&&(n.currentTime=e.time),e.autoplay&&n.play().catch(()=>{})};n.readyState>=HTMLMediaElement.HAVE_METADATA?t():n.addEventListener("loadedmetadata",t,{once:true})}return true}export{m as a,c as u};
1
+ import{T as f,t as d}from"./shared-pIVPxZLY.mjs";function c(e,u,n,o){return f(()=>((o==null?void 0:o(e??null,(u==null?void 0:u.id)??null,u==null?void 0:u.duration))??[]).map(t=>{const i=d(t.label,n);return{...t.id?{id:t.id}:{},label:i.text,lang:i.lang,start:t.start,end:t.end,...t.thumbnail?{thumbnail:t.thumbnail}:{}}}),[e,u,n,o])}function m(e,u,n,o){if(e.region){if(!u)return false;const{x:t,y:i,w:l,h:s}=e.region;if(!u.fitCanvasRect(e.canvasId,{x:t,y:i,width:l,height:s},true))return false}if(o&&(e.time!==void 0||e.autoplay)){if(!n)return false;const t=()=>{e.time!==void 0&&(n.currentTime=e.time),e.autoplay&&n.play().catch(()=>{})};n.readyState>=HTMLMediaElement.HAVE_METADATA?t():n.addEventListener("loadedmetadata",t,{once:true})}return true}export{m as a,c as u};
@@ -1 +1 @@
1
- import{u as e,k as o}from"./shared-D2pvbPvF.mjs";const t=()=>e("path",{fillRule:"evenodd",stroke:"none",d:"M144 72H368A96 96 0 0 1 464 168V296A96 96 0 0 1 368 392H200L104 460L144 392A96 96 0 0 1 48 296V168A96 96 0 0 1 144 72Z M168 184H344A16 16 0 0 1 344 216H168A16 16 0 0 1 168 184Z M168 264H280A16 16 0 0 1 280 296H168A16 16 0 0 1 168 264Z"}),c=()=>e(o,{children:[e("path",{d:"M160 144h288M160 256h288M160 368h288",fill:"none",strokeLinecap:"round",strokeWidth:"32"}),e("circle",{cx:"80",cy:"144",r:"20",stroke:"none"}),e("circle",{cx:"80",cy:"256",r:"20",stroke:"none"}),e("circle",{cx:"80",cy:"368",r:"20",stroke:"none"})]}),s=()=>e("path",{stroke:"none",d:"M256 72A48 48 0 1 1 256 168A48 48 0 1 1 256 72Z M192 216H296V384H328V432H184V384H216V264H192Z"}),r=()=>e("path",{fillRule:"evenodd",stroke:"none",d:"M256 40C166 40 100 108 100 196C100 300 216 420 246 452A14 14 0 0 0 266 452C296 420 412 300 412 196C412 108 346 40 256 40Z M256 136A60 60 0 1 1 256 256A60 60 0 1 1 256 136Z"}),h=()=>e("path",{strokeLinejoin:"round",strokeWidth:"40",d:"M184 128V384L392 256Z"}),a=()=>e("path",{strokeLinecap:"round",strokeWidth:"45",d:"M154 154L358 358M358 154L154 358"}),d=()=>e(o,{children:[e("path",{stroke:"none",d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),e("path",{stroke:"none",d:"m279.5,197.76h-3.35s-28.47,0-28.47,0v-31.82c-.77-13.79-12.57-24.33-26.36-23.56-12.71.71-22.85,10.86-23.56,23.56v3.35h0v28.47h-31.82c-13.79.77-24.33,12.57-23.56,26.36.71,12.71,10.86,22.85,23.56,23.56h3.35s28.47,0,28.47,0v31.82c.77,13.79,12.57,24.33,26.36,23.56,12.71-.71,22.85-10.86,23.56-23.56v-3.35h0v-28.47h31.82c13.79-.77,24.33-12.57,23.56-26.36-.71-12.71-10.86-22.85-23.56-23.56Z"})]}),l=()=>e(o,{children:[e("path",{stroke:"none",d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),e("path",{stroke:"none",d:"M167.26 197.76H278.1a24.96 24.96 0 0 1 0 49.92H167.26a24.96 24.96 0 0 1 0-49.92Z"})]});export{a as C,s as I,d as O,r as P,c as a,t as b,h as c,l as d};
1
+ import{u as e,k as o}from"./shared-pIVPxZLY.mjs";const t=()=>e("path",{fillRule:"evenodd",stroke:"none",d:"M144 72H368A96 96 0 0 1 464 168V296A96 96 0 0 1 368 392H200L104 460L144 392A96 96 0 0 1 48 296V168A96 96 0 0 1 144 72Z M168 184H344A16 16 0 0 1 344 216H168A16 16 0 0 1 168 184Z M168 264H280A16 16 0 0 1 280 296H168A16 16 0 0 1 168 264Z"}),c=()=>e(o,{children:[e("path",{d:"M160 144h288M160 256h288M160 368h288",fill:"none",strokeLinecap:"round",strokeWidth:"32"}),e("circle",{cx:"80",cy:"144",r:"20",stroke:"none"}),e("circle",{cx:"80",cy:"256",r:"20",stroke:"none"}),e("circle",{cx:"80",cy:"368",r:"20",stroke:"none"})]}),s=()=>e("path",{stroke:"none",d:"M256 72A48 48 0 1 1 256 168A48 48 0 1 1 256 72Z M192 216H296V384H328V432H184V384H216V264H192Z"}),r=()=>e("path",{fillRule:"evenodd",stroke:"none",d:"M256 40C166 40 100 108 100 196C100 300 216 420 246 452A14 14 0 0 0 266 452C296 420 412 300 412 196C412 108 346 40 256 40Z M256 136A60 60 0 1 1 256 256A60 60 0 1 1 256 136Z"}),h=()=>e("path",{strokeLinejoin:"round",strokeWidth:"40",d:"M184 128V384L392 256Z"}),a=()=>e("path",{strokeLinecap:"round",strokeWidth:"45",d:"M154 154L358 358M358 154L154 358"}),d=()=>e(o,{children:[e("path",{stroke:"none",d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),e("path",{stroke:"none",d:"m279.5,197.76h-3.35s-28.47,0-28.47,0v-31.82c-.77-13.79-12.57-24.33-26.36-23.56-12.71.71-22.85,10.86-23.56,23.56v3.35h0v28.47h-31.82c-13.79.77-24.33,12.57-23.56,26.36.71,12.71,10.86,22.85,23.56,23.56h3.35s28.47,0,28.47,0v31.82c.77,13.79,12.57,24.33,26.36,23.56,12.71-.71,22.85-10.86,23.56-23.56v-3.35h0v-28.47h31.82c13.79-.77,24.33-12.57,23.56-26.36-.71-12.71-10.86-22.85-23.56-23.56Z"})]}),l=()=>e(o,{children:[e("path",{stroke:"none",d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),e("path",{stroke:"none",d:"M167.26 197.76H278.1a24.96 24.96 0 0 1 0 49.92H167.26a24.96 24.96 0 0 1 0-49.92Z"})]});export{a as C,s as I,d as O,r as P,c as a,t as b,h as c,l as d};
@@ -1 +1 @@
1
- import{c as s,T as o,e as i,ak as r,a2 as l,al as f,am as v,F as u,n as m,a as c,t as d}from"./shared-D2pvbPvF.mjs";function C(){const n=s(a=>a.status),e=s(a=>a.error);return o(()=>({status:n,error:e}),[n,e])}function S(){return s(n=>n.manifest)}function b(){return s(n=>u(n.manifest))}function p(){return s(n=>m(n.manifest,n.canvasId))}function z(){return s(n=>l(n.manifest,n.canvasId))}function A(){const{clover:n}=i("useNavigation"),e=s(t=>v(t.manifest,t.canvasId)),a=s(t=>u(t.manifest).views.length);return o(()=>r(n,e,a),[n,e,a])}function I(){return s(n=>f(n.manifest,n.addedSets))}function L(n){const{language:e}=i("useLocalized");return o(()=>d(n,e),[n,e])}function O(){return c().t}function T(){return c().langOf}export{b as a,p as b,C as c,A as d,S as e,z as f,O as g,T as h,L as i,I as u};
1
+ import{c as s,T as o,e as i,al as r,a3 as l,am as f,an as v,F as u,n as m,a as c,t as d}from"./shared-pIVPxZLY.mjs";function C(){const n=s(a=>a.status),e=s(a=>a.error);return o(()=>({status:n,error:e}),[n,e])}function S(){return s(n=>n.manifest)}function b(){return s(n=>u(n.manifest))}function p(){return s(n=>m(n.manifest,n.canvasId))}function z(){return s(n=>l(n.manifest,n.canvasId))}function A(){const{clover:n}=i("useNavigation"),e=s(t=>v(t.manifest,t.canvasId)),a=s(t=>u(t.manifest).views.length);return o(()=>r(n,e,a),[n,e,a])}function I(){return s(n=>f(n.manifest,n.addedSets))}function L(n){const{language:e}=i("useLocalized");return o(()=>d(n,e),[n,e])}function O(){return c().t}function T(){return c().langOf}export{b as a,p as b,C as c,A as d,S as e,z as f,O as g,T as h,L as i,I as u};
@@ -0,0 +1 @@
1
+ import{F as L,V as f,ae as P,af as $,aE as S}from"./shared-pIVPxZLY.mjs";import{c as j}from"./choice-key-BUNebLKe.mjs";function F(t){const c=new Map;for(const e of L(t).canvases)k(e,c);return[...c.values()]}function k(t,c){f(t.items).forEach((e,s)=>f(e==null?void 0:e.items).forEach((u,d)=>{if(!P(u))return;const a=$(f(u.target)[0]).rect??{x:0,y:0,w:Number(t.width)||0,h:Number(t.height)||0};f(u.body).forEach((r,y)=>{const w=(r==null?void 0:r.type)==="Choice";(w?f(r.items):[r]).forEach((o,m)=>{for(const n of f(o==null?void 0:o.annotations)){if(!Array.isArray(n==null?void 0:n.items)||typeof(o==null?void 0:o.id)!="string")continue;const l=n.id??`${o.id}#annotations`,A=w?{key:j(t.id,u.id,s,d,y),item:m,image:o.id}:void 0,E=S(n,l,t.id).map(p=>{const h=q(p.annotation,o),N=Math.round(a.x+h.x*(a.w/h.width)),b=Math.round(a.y+h.y*(a.h/h.height)),g=Math.round(h.w*(a.w/h.width)),I=Math.round(h.h*(a.h/h.height)),M=`${t.id}#xywh=${N},${b},${g},${I}`;return{...p,canvasId:t.id,target:$(M),annotation:{...p.annotation,target:M},...A?{layer:A}:{}}});if(!E.length)continue;let x=c.get(l);x||(x={id:l,label:n.label??o.label,source:"manifest",entries:[]},c.set(l,x)),x.entries.push(...E)}})})}))}function q(t,c){const e=Number(c.width)||1,s=Number(c.height)||1,u={x:0,y:0,w:e,h:s,width:e,height:s},d=f(t==null?void 0:t.target)[0],r=(typeof d=="object"?f(d==null?void 0:d.selector):[]).find(i=>(i==null?void 0:i.type)==="ImageApiSelector"),y=typeof(r==null?void 0:r.region)=="string"?r.region:void 0;if(y){const i=/^(pct:)?([\d.]+),([\d.]+),([\d.]+),([\d.]+)$/.exec(y);if(!i)return u;const[o,m,n,l]=i.slice(2).map(Number);return i[1]?{x:o/100*e,y:m/100*s,w:n/100*e,h:l/100*s,width:e,height:s}:{x:o,y:m,w:n,h:l,width:e,height:s}}const w=$(d).rect;return w?{...w,width:e,height:s}:u}export{F as imageLayers};
@@ -1 +1 @@
1
- import{p as c,i as d}from"./imageService-CCKieCxo.mjs";import{aI as l}from"./shared-D2pvbPvF.mjs";function m(i){const{width:e,height:t,maxWidth:n,maxHeight:r,maxArea:o}=i,g=(s,p)=>(!n||s<=n)&&(!r||p<=r)&&(!o||s*p<=o);if(g(e,t))return{width:e,height:t};const h=i.sizes.filter(s=>g(s.width,s.height));if(h.length)return h[h.length-1];if(!i.sizeByW)return{width:e,height:t};const a=Math.min(n?n/e:1,r?r/t:1,o?Math.sqrt(o/(e*t)):1);return{width:Math.max(1,Math.floor(e*a)),height:Math.max(1,Math.floor(t*a))}}function u(i,e=200){return i.sizes.find(t=>Math.max(t.width,t.height)>=e)??m(i)}const y={jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif"};function f(i,e,t){const n={x:0,y:0,width:i.width,height:i.height};return{id:d(i,n,t.width,t.height),type:"Image",format:y[i.format]??"image/jpeg",width:t.width,height:t.height,service:[e]}}function w(i,e){if(e.version===3)return{id:e.id,type:"ImageService3",profile:typeof i.profile=="string"?i.profile:"level0"};const t=[].concat(i.profile??[]).find(n=>typeof n=="string");return{"@id":e.id,"@type":"ImageService2",profile:t??"http://iiif.io/api/image/2/level0.json"}}async function v(i,e){const t=c(i,e),n=w(i,t),r=`${t.id}/canvas`,o=[i.rights,i.license].flat().find(a=>typeof a=="string"),g=i.attribution,h={"@context":"http://iiif.io/api/presentation/3/context.json",id:t.id,type:"Manifest",label:{none:[""]},thumbnail:[f(t,n,u(t))],items:[{id:r,type:"Canvas",width:t.width,height:t.height,items:[{id:`${r}/page`,type:"AnnotationPage",items:[{id:`${r}/page/image`,type:"Annotation",motivation:"painting",body:f(t,n,m(t)),target:r}]}]}]};return o&&(h.rights=o),g&&(h.requiredStatement={label:{en:["Attribution"]},value:{none:[].concat(g).map(a=>typeof a=="string"?a:String((a==null?void 0:a["@value"])??"")).filter(Boolean)}}),{manifest:await l(h)}}export{m as fittedSize,v as imageServiceContent};
1
+ import{p as c,i as d}from"./imageService-BBwzg9uY.mjs";import{aJ as l}from"./shared-pIVPxZLY.mjs";function m(i){const{width:e,height:t,maxWidth:n,maxHeight:r,maxArea:o}=i,g=(s,p)=>(!n||s<=n)&&(!r||p<=r)&&(!o||s*p<=o);if(g(e,t))return{width:e,height:t};const h=i.sizes.filter(s=>g(s.width,s.height));if(h.length)return h[h.length-1];if(!i.sizeByW)return{width:e,height:t};const a=Math.min(n?n/e:1,r?r/t:1,o?Math.sqrt(o/(e*t)):1);return{width:Math.max(1,Math.floor(e*a)),height:Math.max(1,Math.floor(t*a))}}function u(i,e=200){return i.sizes.find(t=>Math.max(t.width,t.height)>=e)??m(i)}const y={jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif"};function f(i,e,t){const n={x:0,y:0,width:i.width,height:i.height};return{id:d(i,n,t.width,t.height),type:"Image",format:y[i.format]??"image/jpeg",width:t.width,height:t.height,service:[e]}}function w(i,e){if(e.version===3)return{id:e.id,type:"ImageService3",profile:typeof i.profile=="string"?i.profile:"level0"};const t=[].concat(i.profile??[]).find(n=>typeof n=="string");return{"@id":e.id,"@type":"ImageService2",profile:t??"http://iiif.io/api/image/2/level0.json"}}async function v(i,e){const t=c(i,e),n=w(i,t),r=`${t.id}/canvas`,o=[i.rights,i.license].flat().find(a=>typeof a=="string"),g=i.attribution,h={"@context":"http://iiif.io/api/presentation/3/context.json",id:t.id,type:"Manifest",label:{none:[""]},thumbnail:[f(t,n,u(t))],items:[{id:r,type:"Canvas",width:t.width,height:t.height,items:[{id:`${r}/page`,type:"AnnotationPage",items:[{id:`${r}/page/image`,type:"Annotation",motivation:"painting",body:f(t,n,m(t)),target:r}]}]}]};return o&&(h.rights=o),g&&(h.requiredStatement={label:{en:["Attribution"]},value:{none:[].concat(g).map(a=>typeof a=="string"?a:String((a==null?void 0:a["@value"])??"")).filter(Boolean)}}),{manifest:await l(h)}}export{m as fittedSize,v as imageServiceContent};
@@ -1 +1 @@
1
- import{a4 as j,a5 as S}from"./shared-D2pvbPvF.mjs";const F=["jpg","png","webp","gif"];class y extends Error{constructor(t,e,i){super(t),this.url=e,this.status=i,this.name="ImageServiceError"}}function g(r){return r.replace(/\/info\.json$/,"").replace(/\/+$/,"")}function P(r){const t=Array.isArray(r)?r:r?[r]:[];for(const e of t){if(!e||typeof e!="object")continue;const i=e,o=String(i.type??i["@type"]??""),s=JSON.stringify(i.profile??""),a=/ImageService/i.test(o)||/iiif\.io\/api\/image/.test(s)||/^"level[012]"$/.test(s)||!o&&!i.profile,c=i["@id"]??i.id;if(a&&typeof c=="string")return g(c)}}function N(r,t){if(!r||typeof r!="object")throw new y("info.json is not an object",t??"");const e=r,i=B(e),o=i===3?e.id??e["@id"]:e["@id"]??e.id,s=g(o??t??""),a=Number(e.width),c=Number(e.height);if(!s||!(a>0)||!(c>0))throw new y("info.json is missing id, width or height",t??s);const f=Array.isArray(e.profile)?e.profile:[e.profile],b=f.find(n=>typeof n=="string"),w=f.filter(n=>!!n&&typeof n=="object"),l=I(b),d=new Set([...Array.isArray(e.extraFeatures)?e.extraFeatures:[],...w.flatMap(n=>Array.isArray(n.supports)?n.supports:[])]),x=[...Array.isArray(e.preferredFormats)?e.preferredFormats:[]].map(n=>String(n).toLowerCase()).find(n=>F.includes(n))??"jpg",m=n=>{var A;const v=e[n]??((A=w.find($=>$[n]!==void 0))==null?void 0:A[n]);return Number(v)>0?Number(v):void 0};let u=m("maxWidth"),h=m("maxHeight");return u&&!h&&(h=u),h&&!u&&(u=void 0),{id:s,version:i,level:l,width:a,height:c,tiles:z(e.tiles),sizes:E(e.sizes),maxWidth:u,maxHeight:h,maxArea:m("maxArea"),regionByPx:l>=1||d.has("regionByPx"),sizeByW:l>=1||d.has("sizeByW")||d.has("sizeByWh"),format:x,quality:"default"}}function B(r){const t=[].concat(r["@context"]??[]).map(String);return t.some(e=>e.includes("/image/3"))?3:t.some(e=>e.includes("/image/2"))?2:r.type==="ImageService3"?3:r["@id"]?2:3}function I(r){const t=r==null?void 0:r.match(/level([012])/);return t?Number(t[1]):0}function z(r){return Array.isArray(r)?r.map(t=>{const e=Number(t==null?void 0:t.width),i=Number((t==null?void 0:t.height)??(t==null?void 0:t.width)),o=(Array.isArray(t==null?void 0:t.scaleFactors)?t.scaleFactors:[1]).map(Number).filter(s=>s>0).sort((s,a)=>s-a);return{width:e,height:i,scaleFactors:o}}).filter(t=>t.width>0&&t.height>0&&t.scaleFactors.length):[]}function E(r){return Array.isArray(r)?r.map(t=>({width:Number(t==null?void 0:t.width),height:Number(t==null?void 0:t.height)})).filter(t=>t.width>0&&t.height>0).sort((t,e)=>t.width-e.width):[]}function C(r,t,e,i,o=r.quality){const s=t.x===0&&t.y===0&&t.width===r.width&&t.height===r.height,a=s?"full":`${t.x},${t.y},${t.width},${t.height}`,c=s&&e===r.width&&i===r.height;let f;return r.version===3?f=c?"max":`${e},${i}`:f=c?"full":`${e},`,`${r.id}/${a}/${f}/0/${o}.${r.format}`}function L(r){return r.version===2&&r.level===0?"native":void 0}const p=new Map;function q(r,{request:t}={}){const e=g(r),i=p.get(e);if(i)return i;const o=`${e}/info.json`,s=j(t,o,{headers:{Accept:"application/ld+json, application/json"}}).then(async a=>{if(!a.ok)throw S(a),new y(`info.json request failed with ${a.status}`,o,a.status);return N(await a.json(),e)}).catch(a=>{throw p.delete(e),a});return p.set(e,s),s}export{L as a,P as b,q as f,C as i,N as p};
1
+ import{a5 as j,a6 as S}from"./shared-pIVPxZLY.mjs";const F=["jpg","png","webp","gif"];class y extends Error{constructor(t,e,i){super(t),this.url=e,this.status=i,this.name="ImageServiceError"}}function g(r){return r.replace(/\/info\.json$/,"").replace(/\/+$/,"")}function P(r){const t=Array.isArray(r)?r:r?[r]:[];for(const e of t){if(!e||typeof e!="object")continue;const i=e,o=String(i.type??i["@type"]??""),s=JSON.stringify(i.profile??""),a=/ImageService/i.test(o)||/iiif\.io\/api\/image/.test(s)||/^"level[012]"$/.test(s)||!o&&!i.profile,c=i["@id"]??i.id;if(a&&typeof c=="string")return g(c)}}function N(r,t){if(!r||typeof r!="object")throw new y("info.json is not an object",t??"");const e=r,i=B(e),o=i===3?e.id??e["@id"]:e["@id"]??e.id,s=g(o??t??""),a=Number(e.width),c=Number(e.height);if(!s||!(a>0)||!(c>0))throw new y("info.json is missing id, width or height",t??s);const f=Array.isArray(e.profile)?e.profile:[e.profile],b=f.find(n=>typeof n=="string"),w=f.filter(n=>!!n&&typeof n=="object"),l=I(b),d=new Set([...Array.isArray(e.extraFeatures)?e.extraFeatures:[],...w.flatMap(n=>Array.isArray(n.supports)?n.supports:[])]),x=[...Array.isArray(e.preferredFormats)?e.preferredFormats:[]].map(n=>String(n).toLowerCase()).find(n=>F.includes(n))??"jpg",m=n=>{var A;const v=e[n]??((A=w.find($=>$[n]!==void 0))==null?void 0:A[n]);return Number(v)>0?Number(v):void 0};let u=m("maxWidth"),h=m("maxHeight");return u&&!h&&(h=u),h&&!u&&(u=void 0),{id:s,version:i,level:l,width:a,height:c,tiles:z(e.tiles),sizes:E(e.sizes),maxWidth:u,maxHeight:h,maxArea:m("maxArea"),regionByPx:l>=1||d.has("regionByPx"),sizeByW:l>=1||d.has("sizeByW")||d.has("sizeByWh"),format:x,quality:"default"}}function B(r){const t=[].concat(r["@context"]??[]).map(String);return t.some(e=>e.includes("/image/3"))?3:t.some(e=>e.includes("/image/2"))?2:r.type==="ImageService3"?3:r["@id"]?2:3}function I(r){const t=r==null?void 0:r.match(/level([012])/);return t?Number(t[1]):0}function z(r){return Array.isArray(r)?r.map(t=>{const e=Number(t==null?void 0:t.width),i=Number((t==null?void 0:t.height)??(t==null?void 0:t.width)),o=(Array.isArray(t==null?void 0:t.scaleFactors)?t.scaleFactors:[1]).map(Number).filter(s=>s>0).sort((s,a)=>s-a);return{width:e,height:i,scaleFactors:o}}).filter(t=>t.width>0&&t.height>0&&t.scaleFactors.length):[]}function E(r){return Array.isArray(r)?r.map(t=>({width:Number(t==null?void 0:t.width),height:Number(t==null?void 0:t.height)})).filter(t=>t.width>0&&t.height>0).sort((t,e)=>t.width-e.width):[]}function C(r,t,e,i,o=r.quality){const s=t.x===0&&t.y===0&&t.width===r.width&&t.height===r.height,a=s?"full":`${t.x},${t.y},${t.width},${t.height}`,c=s&&e===r.width&&i===r.height;let f;return r.version===3?f=c?"max":`${e},${i}`:f=c?"full":`${e},`,`${r.id}/${a}/${f}/0/${o}.${r.format}`}function L(r){return r.version===2&&r.level===0?"native":void 0}const p=new Map;function q(r,{request:t}={}){const e=g(r),i=p.get(e);if(i)return i;const o=`${e}/info.json`,s=j(t,o,{headers:{Accept:"application/ld+json, application/json"}}).then(async a=>{if(!a.ok)throw S(a),new y(`info.json request failed with ${a.status}`,o,a.status);return N(await a.json(),e)}).catch(a=>{throw p.delete(e),a});return p.set(e,s),s}export{L as a,P as b,q as f,C as i,N as p};
@@ -0,0 +1 @@
1
+ var $=Object.defineProperty;var U=(e,t,o)=>t in e?$(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o;var p=(e,t,o)=>U(e,typeof t!="symbol"?t+"":t,o);let x;function V(e){x=e}function Je(){return x}function H(e={}){return import("./shared-pIVPxZLY.mjs").then(t=>t.aQ).then(t=>t.initCloverI18n(e))}const A=new Map,z=new Set;function Ke(e,t,o,n=false){if(!A.has(t)){A.set(t,{index:e,css:o,unlayered:n});for(const l of z)l.place(t,e,o,n)}}const W=e=>`@layer clover,maplibre;@layer maplibre{${e}}`;function B(e){var t,o;return((t=e.querySelector('meta[property="csp-nonce"]'))==null?void 0:t.nonce)||((o=e.querySelector("script[nonce]"))==null?void 0:o.nonce)||""}class F{constructor(t){p(this,"injected",new Set);p(this,"unlayered",new Set);p(this,"nonce");p(this,"adopted",null);p(this,"base");this.doc=t,this.nonce=B(t),z.add(this),A.forEach(({index:o,css:n,unlayered:l},a)=>this.place(a,o,n,l))}inject(t,o){if(this.injected.has(t))return;if(this.injected.add(t),this.adopted)return this.adopt(-1,t,o);const n=this.style(t,o);this.doc.head.prepend(n),this.check(n)}place(t,o,n,l=false){if(this.injected.has(t)||!l&&(this.base??(this.base=/base/.test(getComputedStyle(this.doc.documentElement).getPropertyValue("--clover-stylesheet")))))return;if(this.injected.add(t),l&&this.unlayered.add(t),this.adopted)return this.adopt(o,t,n);const a=this.style(t,n);a.dataset.cloverIndex=String(o);const g=[...this.doc.head.querySelectorAll("style[data-clover-index]")],m=g.filter(u=>Number(u.dataset.cloverIndex)<o).at(-1),y=g.find(u=>Number(u.dataset.cloverIndex)>o),r=this.doc.head.querySelectorAll("style[data-clover]");m?m.after(a):y?y.before(a):r.length?r[r.length-1].after(a):this.doc.head.prepend(a),this.check(a)}style(t,o){const n=this.doc.createElement("style");return n.dataset.clover=t,this.nonce&&(n.nonce=this.nonce),n.textContent=o,n}check(t){if(!(t.sheet||!("adoptedStyleSheets"in this.doc))){this.adopted=[];for(const o of this.doc.head.querySelectorAll("style[data-clover]"))this.adopt(Number(o.dataset.cloverIndex??-1),o.dataset.clover??"",o.textContent??""),o.remove()}}adopt(t,o,n){const l=this.doc.defaultView??window,a=new l.CSSStyleSheet;a.replaceSync(this.unlayered.has(o)?W(n):n);const g=this.adopted,m=g.findIndex(r=>r.index>t);g.splice(m===-1?g.length:m,0,{index:t,sheet:a});const y=new Set(g.map(r=>r.sheet));this.doc.adoptedStyleSheets=[...g.map(r=>r.sheet),...this.doc.adoptedStyleSheets.filter(r=>!y.has(r))]}}const P=new WeakMap;function T(e){let t=P.get(e);return t||P.set(e,t=new F(e)),t}const q="@layer clover{:is(clover-root,clover-items,clover-viewer,clover-panel,clover-read-more):not([hidden]){display:block}:is(clover-body,clover-canvas,clover-timeline,clover-scene):not([hidden]){display:block;height:var(--clover-body-height,60vh)}clover-split:not([hidden]){display:flex}:is(clover-label,clover-panel-toggle):not([hidden]){display:contents}clover-tab,clover-tip,clover-status>[slot]{display:none}}";let Q=null,k=null;const _=()=>Q??(Q=import("./shared-pIVPxZLY.mjs").then(e=>e.aR).then(e=>k=e)),J=e=>e.trim().toLowerCase()==="false";function K(e,{type:t,min:o},n){if(e===null)return;if(t==="string")return e;if(t==="boolean")return!J(e);if(t==="number"){const a=Number(e);if(e.trim()===""||!Number.isFinite(a)){n("is not a number");return}if(o!==void 0&&a<o){n(`is less than ${o}`);return}return a}if(t==="data"){const a=e.trim();if(!/^[[{"]/.test(a))return e;try{return JSON.parse(a)}catch{n("is not JSON");return}}const l=e.trim().toLowerCase();if(t.includes(l))return l==="false"?false:l;n(`is not ${t.join(", ")}`)}const G=(e,t)=>{const o=Object.keys(e);return o.length===Object.keys(t).length&&o.every(n=>Object.is(e[n],t[n]))};function Y(e){class t extends HTMLElement{constructor(){super(...arguments);p(this,"kind",e.kind)}static get observedAttributes(){return Object.keys(e.attributes)}connectedCallback(){T(this.ownerDocument).inject("elements",q)}}customElements.define(e.tag,t)}function Z(e,t){if(typeof customElements>"u"||customElements.get(e.tag))return;if(e.kind==="config"||!t)return Y(e);const o=e.kind,n=e.properties??[],l=Object.entries(e.events??{});let a=null,g=null;const m=()=>g??(g=Promise.all([t().then(r=>a=r),_()]));class y extends HTMLElement{constructor(){super(...arguments);p(this,"kind",o);p(this,"needsRoot",!!e.needsRoot);p(this,"values",{});p(this,"kept",{});p(this,"props",{});p(this,"listeners",new Set);p(this,"warned",new Set);p(this,"handlers",Object.fromEntries(l.map(([i,s])=>[s.prop,(...h)=>{var C;if(s.keeps&&(this.kept[s.keeps]=h[0]??null,h[0]==null))return true;const f=s.detail==="first"?h[0]:Object.fromEntries(s.detail.map((b,N)=>[b,h[N]])),S=new CustomEvent(i,{detail:f,bubbles:!s.keeps,composed:!s.keeps,cancelable:!!s.cancelable}),E=this.dispatchEvent(S);if(!E&&s.cancelable){const b=h[h.length-1];(C=b==null?void 0:b.preventDefault)==null||C.call(b)}return E}])));p(this,"getProps",()=>this.props);p(this,"subscribe",i=>(this.listeners.add(i),()=>{this.listeners.delete(i)}))}static get observedAttributes(){return Object.keys(e.attributes)}get element(){return this}get Component(){return a}connectedCallback(){for(const i of n){if(!Object.prototype.hasOwnProperty.call(this,i))continue;const s=this[i];delete this[i],s!=null&&(this.values[i]=s)}this.update(),this.warnOfAria(),T(this.ownerDocument).inject("elements",q),m().then(()=>{this.isConnected&&k.hostOf(this.ownerDocument).connect(this)})}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||k==null||k.hostOf(this.ownerDocument).disconnect(this)})}attributeChangedCallback(){this.update()}warnOfAria(){if(!e.native)for(const i of["aria-label","aria-labelledby","role"])!this.hasAttribute(i)||this.warned.has(i)||(this.warned.add(i),console.warn(`<${e.tag}>: ${i} names the element, a box no reader is told of; Clover names what it draws itself.`))}update(){const i={...this.handlers,...this.values};for(const[s,h]of Object.entries(e.attributes)){if(h.prop in this.values)continue;const f=this.getAttribute(s),S=K(f,h,E=>{const C=`${s}=${f}`;this.warned.has(C)||(this.warned.add(C),console.warn(`<${e.tag}>: ${s}="${f}" ${E}; ignored.`))});S!==void 0&&(i[h.prop]=S)}G(i,this.props)||(this.props=i,this.listeners.forEach(s=>s()))}}p(y,"initCloverI18n",H);for(const r of n)Object.defineProperty(y.prototype,r,{configurable:true,enumerable:true,get(){return r in this.values?this.values[r]:this.getProps()[r]},set(u){u==null?delete this.values[r]:this.values[r]=u,this.update()}});for(const[,r]of l){if(!r.keeps)continue;const u=r.keeps;Object.defineProperty(y.prototype,u,{configurable:true,enumerable:true,get(){return this.kept[u]??null}})}customElements.define(e.tag,y)}const X={tag:"clover-panel",kind:"part",needsRoot:true,attributes:{layout:{prop:"layout",type:["tabs","accordion"]},value:{prop:"value",type:"string"},"heading-level":{prop:"headingLevel",type:"number",min:1},download:{prop:"download",type:"boolean"},languages:{prop:"languages",type:"boolean"},"interface-languages":{prop:"interfaceLanguages",type:"boolean"},sections:{prop:"sections",type:"data"},labels:{prop:"labels",type:"data"},closable:{prop:"closable",type:"boolean"},"close-on-escape":{prop:"closeOnEscape",type:"boolean"},as:{prop:"as",type:["aside","div"]}},events:{"clover-value-change":{prop:"onValueChange",detail:["value"]},"clover-close":{prop:"onClose",detail:[],cancelable:true}}},ee={tag:"clover-tab",kind:"config",attributes:{value:{prop:"value",type:"string"},label:{prop:"label",type:"string"}},slots:["label"]},te={tag:"clover-panel-toggle",kind:"part",attributes:{controls:{prop:"controls",type:"string"},side:{prop:"side",type:["start","end"]}},events:{"clover-open-change":{prop:"onOpenChange",detail:["open"],cancelable:true}}},oe={tag:"clover-split",kind:"part",native:true,attributes:{"storage-key":{prop:"storageKey",type:"string"}}},ne={tag:"clover-split-pane",kind:"part",native:true,attributes:{size:{prop:"size",type:"string"},min:{prop:"min",type:"string"},max:{prop:"max",type:"string"},name:{prop:"name",type:"string"}}},re={tag:"clover-split-handle",kind:"part",native:true,attributes:{}},M={"clover-ready":{prop:"onReady",detail:["handle"],keeps:"handle"}},O={"clover-content-state-change":{prop:"onContentStateChange",detail:"first"}},ae={tag:"clover-canvas",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},src:{prop:"src",type:"string"},tiled:{prop:"isTiledImage",type:"boolean"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},controls:{prop:"controls",type:"boolean"},"collapse-controls":{prop:"collapseControls",type:["auto","always"]},navigator:{prop:"navigator",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"},"viewing-direction":{prop:"viewingDirection",type:["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]},"animate-annotations":{prop:"animateAnnotations",type:"boolean"}},properties:["iiifContent","canvases","src","annotations","options","controlButtons","controls"],events:{...M,...O,"clover-annotation-select":{prop:"onAnnotationSelect",detail:["id"]},"clover-annotation-active":{prop:"onAnnotationActive",detail:["id"]},"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},ie={tag:"clover-timeline",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},controls:{prop:"controls",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"}},properties:["iiifContent","timeline","annotations","options","controls"],events:{...O,"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},se={tag:"clover-scene",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},controls:{prop:"controls",type:"boolean"},engine:{prop:"engine",type:["clover","three"]}},properties:["iiifContent","scene","options","controls"],events:{...O}},pe={tag:"clover-body",kind:"part",needsRoot:true,attributes:{controls:{prop:"controls",type:"boolean"},"collapse-controls":{prop:"collapseControls",type:["auto","always"]},navigator:{prop:"navigator",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"},"animate-annotations":{prop:"animateAnnotations",type:"boolean"}},properties:["controls","options","controlButtons","renderers"],events:{...M,...O,"clover-annotation-active":{prop:"onAnnotationActive",detail:["id"]},"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},le={tag:"clover-items",kind:"part",attributes:{layout:{prop:"layout",type:["slider","list","grid","masonry","pager"]},orientation:{prop:"orientation",type:["horizontal","vertical"]},secondary:{prop:"secondary",type:["summary","navDate","none"]},labels:{prop:"labels",type:"boolean"},size:{prop:"size",type:["large","small"]},of:{prop:"of",type:["views","members","targets","annotations"]},navigation:{prop:"navigation",type:["id","homepage"]},"iiif-content":{prop:"iiifContent",type:"string"},header:{prop:"header",type:"boolean"},"heading-level":{prop:"headingLevel",type:"number",min:2},"thumbnail-size":{prop:"thumbnailSize",type:"number",min:1},"single-item":{prop:"singleItem",type:"boolean"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"}},properties:["iiifContent","items","request","renderItem"],events:{"clover-select":{prop:"onSelect",detail:["item"],cancelable:true}}},ce=["h1","h2","h3","h4","h5","h6","span","label","figcaption","p","strong","em","div"],de={tag:"clover-label",kind:"part",attributes:{of:{prop:"of",type:["manifest","canvas"]},as:{prop:"as",type:ce},label:{prop:"label",type:"data"}},properties:["label"]},ge={prop:"of",type:["manifest","canvas"]},D={prop:"value",type:"data"},d=(e,t={})=>({tag:e,kind:"part",attributes:{of:ge,value:D,...t},properties:["value"]}),ue=d("clover-summary",{as:{prop:"as",type:["p","div","span"]}}),he={...d("clover-metadata"),properties:["value","renderValue"]},ve=d("clover-required-statement"),ye=d("clover-rights"),me=d("clover-id"),be=d("clover-homepage"),fe=d("clover-rendering"),Ce=d("clover-see-also"),ke=d("clover-part-of"),we=d("clover-thumbnail",{size:{prop:"size",type:"number",min:1},alt:{prop:"alt",type:"string"}}),Se=d("clover-provider",{link:{prop:"link",type:["false"]}}),Ee=d("clover-logo",{alt:{prop:"alt",type:"string"}}),Oe={tag:"clover-value",kind:"part",attributes:{value:D,format:{prop:"format",type:"string"},"heading-level":{prop:"headingLevel",type:"number",min:1},as:{prop:"as",type:["span","p","div"]}},properties:["value"]},Re={tag:"clover-root",kind:"root",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},"canvas-id":{prop:"canvasId",type:"string"},"manifest-id":{prop:"manifestId",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},"search-query":{prop:"searchQuery",type:"string"},annotations:{prop:"annotations",type:"data"},"annotation-pages":{prop:"annotationPages",type:["view","all"]},lang:{prop:"lang",type:"string"}},properties:["iiifContent","annotations","request","renderers"],events:{"clover-ready":{prop:"onReady",detail:["clover"],keeps:"clover"},"clover-canvas-change":{prop:"onCanvasChange",detail:["canvasId"]},"clover-manifest-change":{prop:"onManifestChange",detail:["manifestId"]},"clover-status-change":{prop:"onStatusChange",detail:["status","error"]},"clover-content-state-change":{prop:"onContentStateChange",detail:"first"}}},w={"heading-level":{prop:"headingLevel",type:"number",min:1}},I={of:{prop:"of",type:["views","members","targets"]}},Ae={tag:"clover-status",kind:"part",needsRoot:true,attributes:{loading:{prop:"loading",type:["false"]}},slots:["loading","error"]},Ie={tag:"clover-position",kind:"part",needsRoot:true,attributes:{...I,as:{prop:"as",type:["span","p","div"]}}},Pe={tag:"clover-next",kind:"part",needsRoot:true,attributes:I},je={tag:"clover-previous",kind:"part",needsRoot:true,attributes:I},Le={tag:"clover-download",kind:"part",needsRoot:true,attributes:w},xe={tag:"clover-search",kind:"part",needsRoot:true,attributes:{...w,sticky:{prop:"sticky",type:"boolean"},size:{prop:"size",type:["large","small"]}}},ze={tag:"clover-contents",kind:"part",needsRoot:true,attributes:{}},Te={tag:"clover-transcript",kind:"part",needsRoot:true,attributes:{follow:{prop:"follow",type:"boolean"},find:{prop:"find",type:"boolean"},sticky:{prop:"sticky",type:"boolean"},size:{prop:"size",type:["large","small"]}}},qe={tag:"clover-annotations",kind:"part",needsRoot:true,attributes:{scope:{prop:"scope",type:["view","all"]},...w},properties:["renderEntry"]},Me={tag:"clover-collection",kind:"part",needsRoot:true,attributes:w},De={tag:"clover-collection-select",kind:"part",needsRoot:true,attributes:{},events:{"clover-change":{prop:"onChange",detail:["manifestId"]}}},Ne={tag:"clover-about",kind:"part",needsRoot:true,attributes:{"canvas-summary":{prop:"canvasSummary",type:"boolean"},download:{prop:"download",type:"boolean"},languages:{prop:"languages",type:"boolean"},"interface-languages":{prop:"interfaceLanguages",type:"boolean"},thumbnail:{prop:"thumbnail",type:"boolean"},label:{prop:"label",type:"boolean"},...w}},$e={tag:"clover-map",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},overlay:{prop:"overlay",type:"boolean"},"overlay-opacity":{prop:"overlayOpacity",type:"number",min:0},"style-url":{prop:"styleUrl",type:"string"},"scroll-zoom":{prop:"scrollZoom",type:"boolean"},zoom:{prop:"zoom",type:"number",min:0},credits:{prop:"credits",type:"boolean"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"}},properties:["iiifContent","navPlace","georeferences","request"],events:{"clover-select":{prop:"onSelect",detail:["feature"]}}},Ue={tag:"clover-read-more",kind:"part",attributes:{}},Ve={tag:"clover-tip",kind:"part",attributes:{label:{prop:"label",type:"string"},lang:{prop:"lang",type:"string"},keys:{prop:"keys",type:"string"},glyph:{prop:"glyph",type:"string"}},properties:["shortcut"]},He={tag:"clover-viewer",kind:"alone",attributes:{template:{prop:"template",type:["default","document","gallery"]},"iiif-content":{prop:"iiifContent",type:"string"},"canvas-id":{prop:"defaultCanvasId",type:"string"},"manifest-id":{prop:"defaultManifestId",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},"search-query":{prop:"searchQuery",type:"string"},annotations:{prop:"annotations",type:"data"},"heading-level":{prop:"headingLevel",type:"number",min:2},items:{prop:"items",type:["slider","list","grid","masonry","false"]},"single-item":{prop:"singleItem",type:"boolean"},header:{prop:"header",type:"boolean"},panel:{prop:"panel",type:"boolean"},download:{prop:"download",type:"boolean"},languages:{prop:"languages",type:"boolean"},"interface-languages":{prop:"interfaceLanguages",type:"boolean"},"panel-open":{prop:"defaultPanelOpen",type:"boolean"},"panel-layout":{prop:"panelLayout",type:["accordion","tabs"]},"panel-sections":{prop:"panelSections",type:"data"},"panel-labels":{prop:"panelLabels",type:"data"},"sidebar-open":{prop:"defaultSidebarOpen",type:"boolean"},"storage-key":{prop:"storageKey",type:"string"},fill:{prop:"fill",type:"boolean"},"collapse-controls":{prop:"collapseControls",type:["auto","always"]},size:{prop:"size",type:"string"},height:{prop:"height",type:"string"},gap:{prop:"gap",type:"string"},secondary:{prop:"secondary",type:["summary","navDate","none"]},summary:{prop:"summary",type:"boolean"},"lightbox-items":{prop:"lightboxItems",type:["slider","pager"]}},properties:["iiifContent","annotations","request","renderers","canvasOptions"],events:{"clover-canvas-change":{prop:"onCanvasChange",detail:["canvasId"]},"clover-manifest-change":{prop:"onManifestChange",detail:["manifestId"]},"clover-status-change":{prop:"onStatusChange",detail:["status","error"]},"clover-content-state-change":{prop:"onContentStateChange",detail:"first"}}},j=[He,Re,pe,de,le,Ie,je,Pe,Ae,we,ue,he,ve,ye,be,Ce,fe,ke,me,Se,Ee,Oe,Ne,qe,Me,De,ze,xe,Te,Le,$e,X,ee,te,oe,ne,re,ae,ie,se,Ve,Ue],c=(e,t,o)=>()=>Promise.all([e(),import("./part-D1ZpOfJ5.mjs")]).then(([n,{drawn:l}])=>l(n[t],o)),R=e=>()=>import("./split-C_xPhLhD.mjs").then(t=>t[e]),v=e=>c(()=>import("./Primitives-3boP2HT0.mjs"),e),L=e=>c(()=>import("./Pager-DY6QIfJo.mjs"),e),We={"clover-viewer":()=>import("./viewer-Br37L21l.mjs").then(e=>e.v).then(e=>e.ViewerElement),"clover-root":()=>import("./shared-pIVPxZLY.mjs").then(e=>e.aU).then(e=>e.RootElement),"clover-label":()=>import("./label-CssXf-do.mjs").then(e=>e.LabelElement),"clover-body":()=>import("./body-DY6_Kb7A.mjs").then(e=>e.BodyElement),"clover-items":()=>import("./items-CD8kE1Gd.mjs").then(e=>e.ItemsElement),"clover-position":c(()=>import("./Position-qHH_2RQA.mjs"),"Position"),"clover-previous":L("Previous"),"clover-next":L("Next"),"clover-status":()=>import("./status-BesMKiXg.mjs").then(e=>e.StatusElement),"clover-thumbnail":v("Thumbnail"),"clover-summary":v("Summary"),"clover-metadata":c(()=>import("./Primitives-3boP2HT0.mjs"),"Metadata",["renderValue"]),"clover-required-statement":v("RequiredStatement"),"clover-rights":v("Rights"),"clover-homepage":v("Homepage"),"clover-see-also":v("SeeAlso"),"clover-rendering":v("Rendering"),"clover-part-of":v("PartOf"),"clover-id":v("Id"),"clover-provider":()=>import("./provider-BziMOPSN.mjs").then(e=>e.ProviderElement),"clover-logo":()=>import("./logo-Bd8fSMYN.mjs").then(e=>e.LogoElement),"clover-value":v("Value"),"clover-about":c(()=>import("./About-Cb0IP45J.mjs").then(e=>e.a),"About"),"clover-annotations":c(()=>import("./Annotations-DelBDbuL.mjs"),"Annotations",["renderEntry"]),"clover-collection":c(()=>import("./Collection-DfWwFkgY.mjs"),"Collection"),"clover-collection-select":c(()=>import("./CollectionSelect-CYa0N09G.mjs"),"CollectionSelect"),"clover-contents":c(()=>import("./Contents-JgQb97do.mjs"),"Contents"),"clover-search":c(()=>import("./Search-DhsZJhFF.mjs"),"Search"),"clover-transcript":c(()=>import("./Transcript-DbhV6Vxo.mjs"),"Transcript"),"clover-download":c(()=>import("./Download-CVmsdUyH.mjs"),"Download"),"clover-map":c(()=>import("./Map-DdcDYjzX.mjs"),"CloverMap"),"clover-panel":()=>import("./panel-DhzvJaxa.mjs").then(e=>e.PanelElement),"clover-panel-toggle":()=>import("./toggle-Bl0NKbUx.mjs").then(e=>e.PanelToggleElement),"clover-split":R("SplitElement"),"clover-split-pane":R("SplitPaneElement"),"clover-split-handle":R("SplitHandleElement"),"clover-canvas":()=>import("./canvas-BsmSDfXr.mjs").then(e=>e.CanvasElement),"clover-timeline":c(()=>import("./Timeline-DWhKhdYb.mjs"),"Timeline"),"clover-scene":c(()=>import("./Scene-DGLalXcX.mjs"),"Scene"),"clover-tip":()=>import("./tip-UheLXik6.mjs").then(e=>e.TipElement),"clover-read-more":()=>import("./read-more-DdhUDS2g.mjs").then(e=>e.ReadMoreElement)};function Be(e,t=j.map(({tag:o})=>o)){e.mapWorkerUrl&&V(e.mapWorkerUrl);for(const o of j)t.includes(o.tag)&&Z(o,We[o.tag])}const Fe=""+new URL("assets/maplibre-gl-worker-kTz9OPxr.js",import.meta.url).href,Qe={mapWorkerUrl:Fe};Be(Qe);export{Ke as a,Be as d,Je as g,H as i};
@@ -1 +1 @@
1
- import{d as n,i as o}from"./index-DhlRi3H9.mjs";export{n as defineCloverElements,o as initCloverI18n};
1
+ import{d as n,i as o}from"./index-BujnlXi0.mjs";export{n as defineCloverElements,o as initCloverI18n};
@@ -1 +1 @@
1
- const a=JSON.parse('{"commonClose":"Chiudi","commonNext":"Successivo","commonPrevious":"Precedente","commonSearch":"Cerca","commonViewAll":"Mostra tutto","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Caricamento...","contentSearchPlaceholder":"Cerca","contentSearchResultsNone":"Nessun risultato","contentSearchResult":"1 risultato","contentSearchResults":"{{count}} risultati","contentSearchError":"Non \xE8 stato possibile completare la ricerca.","contentSearchPosition":"Risultato {{index}} di {{total}}","contentSearchClear":"Cancella la ricerca","canvasPosition":"Elemento {{index}} di {{total}}","canvasImage":"Immagine","bodyUnloadableImage":"Non \xE8 stato possibile caricare questa immagine.","bodyUnloadableVideo":"Non \xE8 stato possibile caricare questo video.","bodyUnloadableAudio":"Non \xE8 stato possibile caricare questo audio.","bodyUnloadableModel":"Non \xE8 stato possibile caricare questo modello.","canvasRoleDescription":"immagine ingrandibile","canvasKeysImage":"Usa i tasti freccia per spostare l\u2019immagine, con Maiusc per passi pi\xF9 ampi, pi\xF9 e meno per ingrandire e ridurre, 0 per ripristinare la vista e R o Maiusc+R per ruotarla.","canvasKeysMedia":"Premi Spazio o K per riprodurre o mettere in pausa, J o L per tornare indietro o andare avanti di dieci secondi e M per disattivare o riattivare l\u2019audio.","canvasKeysAnnotations":"Premi Esc per deselezionare l\u2019annotazione.","sceneModel":"Modello 3D","sceneRoleDescription":"modello 3D ruotabile","sceneKeys":"Usa i tasti freccia per ruotare il modello, con Maiusc per passi pi\xF9 ampi, pi\xF9 e meno per ingrandire e ridurre, 0 per ripristinare la vista e R o Maiusc+R per ruotarlo a destra o a sinistra.","sceneRotateUp":"Ruota verso l\u2019alto","sceneRotateDown":"Ruota verso il basso","sceneRotate":"Ruota","sceneResetView":"Ripristina la vista","statusLoading":"Caricamento\u2026","statusError":"Non \xE8 stato possibile caricare questo contenuto.","itemsLabel":"Elementi","download":"Scarica","downloadPage":"Questa pagina","downloadAll":"Tutte le pagine","templateSidebar":"Elementi","templateSidebarToggle":"Mostra gli elementi","templateBack":"Indietro","templateBackTo":"Torna a {{label}}","collectionLabel":"Collezione","itemsScrollBack":"Mostra gli elementi precedenti","itemsScrollForward":"Mostra altri elementi","aboutRights":"Diritti","aboutDate":"Data","aboutHomepage":"Pagina iniziale","aboutSeeAlso":"Vedi anche","aboutProvider":"Fornitore","logo":"Logo","aboutManifest":"Manifest IIIF","aboutCanvas":"Canvas IIIF","aboutPartOf":"Parte di","aboutOpenManifest":"Apri il manifest completo","aboutCollection":"Collezione IIIF","readingLanguage":"Lingua","annotationsHide":"Nascondi le annotazioni","annotationsHideTip":"Nascondi","readMore":"Leggi tutto","readLess":"Mostra meno","annotationsShow":"Mostra sull\u2019immagine","annotationsShowTime":"Mostra nella registrazione","annotationsImage":"Immagine","annotationsLanguage":"Lingua","annotationsOpenLink":"Apri","transcriptLabel":"Trascrizione","imageViewerOpen":"Apri il visualizzatore di immagini","imageViewerClose":"Chiudi il visualizzatore di immagini","canvasChoice":"Alternative","canvasViewerControls":"Controlli del visualizzatore","canvasExpandControls":"Espandi i controlli del visualizzatore","canvasCollapseControls":"Comprimi i controlli del visualizzatore","canvasScrollBack":"Mostra i controlli precedenti","canvasScrollForward":"Mostra altri controlli","imageFullScreen":"Schermo intero","imageExitFullScreen":"Esci da schermo intero","imageResetZoom":"Ripristina lo zoom","imageRotateLeft":"Ruota a sinistra","imageRotateRight":"Ruota a destra","imageZoomIn":"Ingrandisci","imageZoomOut":"Riduci","informationPanelTabs":"Pannello informazioni","sectionsScrollBack":"Mostra le schede precedenti","sectionsScrollForward":"Mostra altre schede","informationPanelClose":"Chiudi il pannello informazioni","informationPanelTabsAbout":"Informazioni","informationPanelTabsAnnotations":"Annotazioni","informationPanelTabsSearch":"Ricerca","informationPanelTabsContents":"Indice","contentsSectionsIn":"Sezioni di","informationPanelTabsMap":"Mappa","informationPanelTabsCollection":"Collezione","informationPanelTabsTargets":"Viste","mapUnavailable":"Non \xE8 stato possibile mostrare la mappa.","mapLabel":"Mappa","mapAttribution":"Crediti della mappa","mapPlaceUntitled":"Luogo {{number}}","mapOverlay":"Immagine georeferenziata","mapPlacesListed":"Luoghi elencati dopo la mappa: {{count}}","informationPanelToggle":"Altre informazioni","playerPlay":"Riproduci","playerPause":"Pausa","playerMute":"Disattiva l\u2019audio","playerUnmute":"Riattiva l\u2019audio","playerVolume":"Volume","playerSeek":"Posizione di riproduzione","playerCaptions":"Sottotitoli","playerCaptionsOff":"Disattivati","playerChapters":"Capitoli","playerFill":"Riempi il riquadro","playerFit":"Adatta al riquadro","playerCurrentTime":"Tempo trascorso","playerDuration":"Durata","splitHandle":"Ridimensiona i pannelli"}');export{a as default};
1
+ const a=JSON.parse('{"commonClose":"Chiudi","commonNext":"Successivo","commonPrevious":"Precedente","commonSearch":"Cerca","commonViewAll":"Mostra tutto","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Caricamento...","contentSearchPlaceholder":"Cerca","contentSearchResultsNone":"Nessun risultato","contentSearchResult":"1 risultato","contentSearchResults":"{{count}} risultati","contentSearchError":"Non \xE8 stato possibile completare la ricerca.","contentSearchPosition":"Risultato {{index}} di {{total}}","contentSearchClear":"Cancella la ricerca","canvasPosition":"Elemento {{index}} di {{total}}","canvasImage":"Immagine","bodyUnloadableImage":"Non \xE8 stato possibile caricare questa immagine.","bodyUnloadableVideo":"Non \xE8 stato possibile caricare questo video.","bodyUnloadableAudio":"Non \xE8 stato possibile caricare questo audio.","bodyUnloadableModel":"Non \xE8 stato possibile caricare questo modello.","canvasRoleDescription":"immagine ingrandibile","canvasKeysImage":"Usa i tasti freccia per spostare l\u2019immagine, con Maiusc per passi pi\xF9 ampi, pi\xF9 e meno per ingrandire e ridurre, 0 per ripristinare la vista e R o Maiusc+R per ruotarla.","canvasKeysMedia":"Premi Spazio o K per riprodurre o mettere in pausa, J o L per tornare indietro o andare avanti di dieci secondi e M per disattivare o riattivare l\u2019audio.","canvasKeysAnnotations":"Premi Esc per deselezionare l\u2019annotazione.","sceneModel":"Modello 3D","sceneRoleDescription":"modello 3D ruotabile","sceneKeys":"Usa i tasti freccia per ruotare il modello, con Maiusc per passi pi\xF9 ampi, pi\xF9 e meno per ingrandire e ridurre, 0 per ripristinare la vista e R o Maiusc+R per ruotarlo a destra o a sinistra.","sceneRotateUp":"Ruota verso l\u2019alto","sceneRotateDown":"Ruota verso il basso","sceneRotate":"Ruota","sceneResetView":"Ripristina la vista","statusLoading":"Caricamento\u2026","statusError":"Non \xE8 stato possibile caricare questo contenuto.","itemsLabel":"Elementi","download":"Scarica","downloadPage":"Questa pagina","downloadAll":"Tutte le pagine","templateSidebar":"Elementi","templateSidebarToggle":"Mostra gli elementi","templateBack":"Indietro","templateBackTo":"Torna a {{label}}","collectionLabel":"Collezione","itemsScrollBack":"Mostra gli elementi precedenti","itemsScrollForward":"Mostra altri elementi","aboutRights":"Diritti","aboutDate":"Data","aboutHomepage":"Pagina iniziale","aboutSeeAlso":"Vedi anche","aboutProvider":"Fornitore","logo":"Logo","aboutManifest":"Manifest IIIF","aboutCanvas":"Canvas IIIF","aboutPartOf":"Parte di","aboutOpenManifest":"Apri il manifest completo","aboutCollection":"Collezione IIIF","readingLanguage":"Lingua","annotationsHide":"Nascondi le annotazioni","annotationsHideTip":"Nascondi","readMore":"Leggi tutto","readLess":"Mostra meno","annotationsShow":"Mostra sull\u2019immagine","annotationsShowTime":"Mostra nella registrazione","annotationsImage":"Immagine","annotationsLanguage":"Lingua","annotationsOpenLink":"Apri","transcriptLabel":"Trascrizione","imageViewerOpen":"Apri il visualizzatore di immagini","imageViewerClose":"Chiudi il visualizzatore di immagini","canvasChoice":"Alternative","canvasViewerControls":"Controlli del visualizzatore","canvasExpandControls":"Espandi i controlli del visualizzatore","canvasCollapseControls":"Comprimi i controlli del visualizzatore","canvasScrollBack":"Mostra i controlli precedenti","canvasScrollForward":"Mostra altri controlli","imageFullScreen":"Schermo intero","imageExitFullScreen":"Esci da schermo intero","imageResetZoom":"Ripristina lo zoom","imageRotateLeft":"Ruota a sinistra","imageRotateRight":"Ruota a destra","imageZoomIn":"Ingrandisci","imageZoomOut":"Riduci","informationPanelTabs":"Pannello informazioni","sectionsScrollBack":"Mostra le schede precedenti","sectionsScrollForward":"Mostra altre schede","informationPanelClose":"Chiudi il pannello informazioni","informationPanelTabsAbout":"Informazioni","informationPanelTabsAnnotations":"Annotazioni","informationPanelTabsSearch":"Ricerca","informationPanelTabsContents":"Indice","contentsSectionsIn":"Sezioni di","contentsSectionsTip":"Sezioni","informationPanelTabsMap":"Mappa","informationPanelTabsCollection":"Collezione","informationPanelTabsTargets":"Viste","mapUnavailable":"Non \xE8 stato possibile mostrare la mappa.","mapLabel":"Mappa","mapAttribution":"Crediti della mappa","mapPlaceUntitled":"Luogo {{number}}","mapOverlay":"Immagine georeferenziata","mapPlacesListed":"Luoghi elencati dopo la mappa: {{count}}","informationPanelToggle":"Altre informazioni","playerPlay":"Riproduci","playerPause":"Pausa","playerMute":"Disattiva l\u2019audio","playerUnmute":"Riattiva l\u2019audio","playerVolume":"Volume","playerSeek":"Posizione di riproduzione","playerCaptions":"Sottotitoli","playerCaptionsOff":"Disattivati","playerChapters":"Capitoli","playerFill":"Riempi il riquadro","playerFit":"Adatta al riquadro","playerCurrentTime":"Tempo trascorso","playerDuration":"Durata","splitHandle":"Ridimensiona i pannelli"}');export{a as default};
@@ -0,0 +1 @@
1
+ import{T as m,u as r}from"./shared-pIVPxZLY.mjs";import{I as o}from"./Items-Co-0SKPW.mjs";import{w as n}from"./nodes-CDVV_37U.mjs";function I({props:t}){const e=m(()=>n(t,["renderItem"]),[t]);return r(o,{...e})}export{I as ItemsElement};
@@ -1 +1 @@
1
- import{U as p,a1 as l,F as g,t as r,ai as v}from"./shared-D2pvbPvF.mjs";function h(t){var i;return(i=v(t).find(({body:a})=>a.type))==null?void 0:i.body.type}function y(t){const i=h(t)??(t.type==="Timeline"?"Sound":void 0);return{id:t.id,type:t.type,label:t.label,resource:t,duration:Number(t.duration)||void 0,media:i}}const f=new WeakMap;function w(t){if(!t)return[];let i=f.get(t);if(!i){const{canvases:a,views:e}=g(t);i=e.map(u=>{const n=u.map(s=>y(a[s]));return{id:n[0].id,parts:n,label:n.length===1?n[0].label:{none:[n.map(s=>r(s.label).text).filter(Boolean).join(" \u2013 ")]}}}),f.set(t,i)}return i}const d=new WeakMap;function o(t){if(!t)return[];let i=d.get(t);return i||(i=p(t.items).filter(a=>a==null?void 0:a.id).map(a=>{var e;return{id:a.id,parts:[y(a)],label:a.label,summary:a.summary,...typeof a.navDate=="string"?{navDate:a.navDate}:{},href:((e=p(a.homepage)[0])==null?void 0:e.id)??a.id,...l(p(a.homepage)[0])?{hrefLang:l(p(a.homepage)[0])}:{}}}),d.set(t,i)),i}function A(t){return t?Array.isArray(t)?o({items:t}):t.type==="Collection"?o(t):w(t):[]}export{w as a,A as b,o as i};
1
+ import{V as p,a2 as l,F as g,t as r,aj as v}from"./shared-pIVPxZLY.mjs";function h(t){var i;return(i=v(t).find(({body:a})=>a.type))==null?void 0:i.body.type}function y(t){const i=h(t)??(t.type==="Timeline"?"Sound":void 0);return{id:t.id,type:t.type,label:t.label,resource:t,duration:Number(t.duration)||void 0,media:i}}const f=new WeakMap;function w(t){if(!t)return[];let i=f.get(t);if(!i){const{canvases:a,views:e}=g(t);i=e.map(u=>{const n=u.map(s=>y(a[s]));return{id:n[0].id,parts:n,label:n.length===1?n[0].label:{none:[n.map(s=>r(s.label).text).filter(Boolean).join(" \u2013 ")]}}}),f.set(t,i)}return i}const d=new WeakMap;function o(t){if(!t)return[];let i=d.get(t);return i||(i=p(t.items).filter(a=>a==null?void 0:a.id).map(a=>{var e;return{id:a.id,parts:[y(a)],label:a.label,summary:a.summary,...typeof a.navDate=="string"?{navDate:a.navDate}:{},href:((e=p(a.homepage)[0])==null?void 0:e.id)??a.id,...l(p(a.homepage)[0])?{hrefLang:l(p(a.homepage)[0])}:{}}}),d.set(t,i)),i}function A(t){return t?Array.isArray(t)?o({items:t}):t.type==="Collection"?o(t):w(t):[]}export{w as a,A as b,o as i};
@@ -1 +1 @@
1
- const a=JSON.parse('{"commonClose":"\u9589\u3058\u308B","commonNext":"\u6B21\u3078","commonPrevious":"\u524D\u3078","commonSearch":"\u691C\u7D22","commonViewAll":"\u3059\u3079\u3066\u8868\u793A","controlShortcut":"{{label}}\uFF08{{shortcut}}\uFF09","contentSearchLoading":"\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026","contentSearchPlaceholder":"\u691C\u7D22","contentSearchResultsNone":"\u7D50\u679C\u306F\u3042\u308A\u307E\u305B\u3093","contentSearchResult":"1 \u4EF6\u306E\u7D50\u679C","contentSearchResults":"{{count}} \u4EF6\u306E\u7D50\u679C","contentSearchError":"\u691C\u7D22\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002","contentSearchPosition":"{{total}} \u4EF6\u4E2D {{index}} \u4EF6\u76EE\u306E\u7D50\u679C","contentSearchClear":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2","canvasPosition":"{{total}} \u4EF6\u4E2D {{index}} \u4EF6\u76EE","canvasImage":"\u753B\u50CF","bodyUnloadableImage":"\u3053\u306E\u753B\u50CF\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","bodyUnloadableVideo":"\u3053\u306E\u52D5\u753B\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","bodyUnloadableAudio":"\u3053\u306E\u97F3\u58F0\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","bodyUnloadableModel":"\u3053\u306E\u30E2\u30C7\u30EB\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","canvasRoleDescription":"\u30BA\u30FC\u30E0\u3067\u304D\u308B\u753B\u50CF","canvasKeysImage":"\u77E2\u5370\u30AD\u30FC\u3067\u79FB\u52D5\uFF08Shift \u3067\u5927\u304D\u304F\u79FB\u52D5\uFF09\u3001\u30D7\u30E9\u30B9\u3068\u30DE\u30A4\u30CA\u30B9\u3067\u30BA\u30FC\u30E0\u30010 \u3067\u8868\u793A\u3092\u30EA\u30BB\u30C3\u30C8\u3001R \u307E\u305F\u306F Shift+R \u3067\u56DE\u8EE2\u3057\u307E\u3059\u3002","canvasKeysMedia":"Space \u307E\u305F\u306F K \u3067\u518D\u751F\u30FB\u4E00\u6642\u505C\u6B62\u3001J \u307E\u305F\u306F L \u3067 10 \u79D2\u623B\u308B\u30FB\u9032\u3080\u3001M \u3067\u30DF\u30E5\u30FC\u30C8\u30FB\u30DF\u30E5\u30FC\u30C8\u89E3\u9664\u3057\u307E\u3059\u3002","canvasKeysAnnotations":"Escape \u30AD\u30FC\u3067\u9078\u629E\u3057\u305F\u6CE8\u91C8\u3092\u89E3\u9664\u3057\u307E\u3059\u3002","sceneModel":"3D \u30E2\u30C7\u30EB","sceneRoleDescription":"\u56DE\u8EE2\u3067\u304D\u308B 3D \u30E2\u30C7\u30EB","sceneKeys":"\u77E2\u5370\u30AD\u30FC\u3067\u30E2\u30C7\u30EB\u3092\u56DE\u8EE2\uFF08Shift \u3067\u5927\u304D\u304F\u56DE\u8EE2\uFF09\u3001\u30D7\u30E9\u30B9\u3068\u30DE\u30A4\u30CA\u30B9\u3067\u30BA\u30FC\u30E0\u30010 \u3067\u8868\u793A\u3092\u30EA\u30BB\u30C3\u30C8\u3001R \u307E\u305F\u306F Shift+R \u3067\u53F3\u307E\u305F\u306F\u5DE6\u306B\u56DE\u8EE2\u3057\u307E\u3059\u3002","sceneRotateUp":"\u4E0A\u306B\u56DE\u8EE2","sceneRotateDown":"\u4E0B\u306B\u56DE\u8EE2","sceneRotate":"\u56DE\u8EE2","sceneResetView":"\u8868\u793A\u3092\u30EA\u30BB\u30C3\u30C8","statusLoading":"\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026","statusError":"\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","itemsLabel":"\u30A2\u30A4\u30C6\u30E0","download":"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9","downloadPage":"\u3053\u306E\u30DA\u30FC\u30B8","downloadAll":"\u3059\u3079\u3066\u306E\u30DA\u30FC\u30B8","templateSidebar":"\u30A2\u30A4\u30C6\u30E0","templateSidebarToggle":"\u30A2\u30A4\u30C6\u30E0\u3092\u8868\u793A","templateBack":"\u623B\u308B","templateBackTo":"{{label}} \u306B\u623B\u308B","collectionLabel":"\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3","itemsScrollBack":"\u524D\u306E\u30A2\u30A4\u30C6\u30E0\u3092\u8868\u793A","itemsScrollForward":"\u3055\u3089\u306B\u30A2\u30A4\u30C6\u30E0\u3092\u8868\u793A","aboutRights":"\u6A29\u5229","aboutDate":"\u65E5\u4ED8","aboutHomepage":"\u30DB\u30FC\u30E0\u30DA\u30FC\u30B8","aboutSeeAlso":"\u95A2\u9023\u60C5\u5831","aboutProvider":"\u63D0\u4F9B\u8005","logo":"\u30ED\u30B4","aboutManifest":"IIIF \u30DE\u30CB\u30D5\u30A7\u30B9\u30C8","aboutCanvas":"IIIF \u30AD\u30E3\u30F3\u30D0\u30B9","aboutPartOf":"\u6240\u5C5E\u5148","aboutOpenManifest":"\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u5168\u4F53\u3092\u958B\u304F","aboutCollection":"IIIF \u30B3\u30EC\u30AF\u30B7\u30E7\u30F3","readingLanguage":"\u8A00\u8A9E","annotationsHide":"\u6CE8\u91C8\u3092\u975E\u8868\u793A","annotationsHideTip":"\u975E\u8868\u793A","readMore":"\u7D9A\u304D\u3092\u8AAD\u3080","readLess":"\u6298\u308A\u305F\u305F\u3080","annotationsShow":"\u753B\u50CF\u4E0A\u3067\u63A2\u3059","annotationsShowTime":"\u9332\u97F3\u5185\u3067\u63A2\u3059","annotationsImage":"\u753B\u50CF","annotationsLanguage":"\u8A00\u8A9E","annotationsOpenLink":"\u958B\u304F","transcriptLabel":"\u6587\u5B57\u8D77\u3053\u3057","imageViewerOpen":"\u753B\u50CF\u30D3\u30E5\u30FC\u30A2\u3092\u958B\u304F","imageViewerClose":"\u753B\u50CF\u30D3\u30E5\u30FC\u30A2\u3092\u9589\u3058\u308B","canvasChoice":"\u9078\u629E\u80A2","canvasViewerControls":"\u30D3\u30E5\u30FC\u30A2\u306E\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB","canvasExpandControls":"\u30D3\u30E5\u30FC\u30A2\u306E\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3092\u5C55\u958B","canvasCollapseControls":"\u30D3\u30E5\u30FC\u30A2\u306E\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3092\u6298\u308A\u305F\u305F\u3080","canvasScrollBack":"\u524D\u306E\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3092\u8868\u793A","canvasScrollForward":"\u3055\u3089\u306B\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3092\u8868\u793A","imageFullScreen":"\u5168\u753B\u9762\u8868\u793A","imageExitFullScreen":"\u5168\u753B\u9762\u8868\u793A\u3092\u7D42\u4E86","imageResetZoom":"\u30BA\u30FC\u30E0\u3092\u30EA\u30BB\u30C3\u30C8","imageRotateLeft":"\u5DE6\u306B\u56DE\u8EE2","imageRotateRight":"\u53F3\u306B\u56DE\u8EE2","imageZoomIn":"\u62E1\u5927","imageZoomOut":"\u7E2E\u5C0F","informationPanelTabs":"\u60C5\u5831\u30D1\u30CD\u30EB","sectionsScrollBack":"\u524D\u306E\u30BF\u30D6\u3092\u8868\u793A","sectionsScrollForward":"\u3055\u3089\u306B\u30BF\u30D6\u3092\u8868\u793A","informationPanelClose":"\u60C5\u5831\u30D1\u30CD\u30EB\u3092\u9589\u3058\u308B","informationPanelTabsAbout":"\u6982\u8981","informationPanelTabsAnnotations":"\u6CE8\u91C8","informationPanelTabsSearch":"\u691C\u7D22","informationPanelTabsContents":"\u76EE\u6B21","contentsSectionsIn":"\u4E0B\u4F4D\u30BB\u30AF\u30B7\u30E7\u30F3\uFF1A","informationPanelTabsMap":"\u5730\u56F3","informationPanelTabsCollection":"\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3","informationPanelTabsTargets":"\u30D3\u30E5\u30FC","mapUnavailable":"\u5730\u56F3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002","mapLabel":"\u5730\u56F3","mapAttribution":"\u5730\u56F3\u306E\u30AF\u30EC\u30B8\u30C3\u30C8","mapPlaceUntitled":"\u5834\u6240 {{number}}","mapOverlay":"\u30B8\u30AA\u30EA\u30D5\u30A1\u30EC\u30F3\u30B9\u753B\u50CF","mapPlacesListed":"\u5730\u56F3\u306E\u5F8C\u306B\u4E00\u89A7\u8868\u793A\u3055\u308C\u308B\u5834\u6240\uFF1A{{count}} \u4EF6","informationPanelToggle":"\u8A73\u7D30\u60C5\u5831","playerPlay":"\u518D\u751F","playerPause":"\u4E00\u6642\u505C\u6B62","playerMute":"\u30DF\u30E5\u30FC\u30C8","playerUnmute":"\u30DF\u30E5\u30FC\u30C8\u89E3\u9664","playerVolume":"\u97F3\u91CF","playerSeek":"\u518D\u751F\u4F4D\u7F6E","playerCaptions":"\u5B57\u5E55","playerCaptionsOff":"\u30AA\u30D5","playerChapters":"\u30C1\u30E3\u30D7\u30BF\u30FC","playerFill":"\u67A0\u3044\u3063\u3071\u3044\u306B\u8868\u793A","playerFit":"\u67A0\u306B\u53CE\u3081\u308B","playerCurrentTime":"\u7D4C\u904E\u6642\u9593","playerDuration":"\u518D\u751F\u6642\u9593","splitHandle":"\u30D1\u30CD\u30EB\u306E\u30B5\u30A4\u30BA\u3092\u5909\u66F4"}');export{a as default};
1
+ const a=JSON.parse('{"commonClose":"\u9589\u3058\u308B","commonNext":"\u6B21\u3078","commonPrevious":"\u524D\u3078","commonSearch":"\u691C\u7D22","commonViewAll":"\u3059\u3079\u3066\u8868\u793A","controlShortcut":"{{label}}\uFF08{{shortcut}}\uFF09","contentSearchLoading":"\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026","contentSearchPlaceholder":"\u691C\u7D22","contentSearchResultsNone":"\u7D50\u679C\u306F\u3042\u308A\u307E\u305B\u3093","contentSearchResult":"1 \u4EF6\u306E\u7D50\u679C","contentSearchResults":"{{count}} \u4EF6\u306E\u7D50\u679C","contentSearchError":"\u691C\u7D22\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002","contentSearchPosition":"{{total}} \u4EF6\u4E2D {{index}} \u4EF6\u76EE\u306E\u7D50\u679C","contentSearchClear":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2","canvasPosition":"{{total}} \u4EF6\u4E2D {{index}} \u4EF6\u76EE","canvasImage":"\u753B\u50CF","bodyUnloadableImage":"\u3053\u306E\u753B\u50CF\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","bodyUnloadableVideo":"\u3053\u306E\u52D5\u753B\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","bodyUnloadableAudio":"\u3053\u306E\u97F3\u58F0\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","bodyUnloadableModel":"\u3053\u306E\u30E2\u30C7\u30EB\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","canvasRoleDescription":"\u30BA\u30FC\u30E0\u3067\u304D\u308B\u753B\u50CF","canvasKeysImage":"\u77E2\u5370\u30AD\u30FC\u3067\u79FB\u52D5\uFF08Shift \u3067\u5927\u304D\u304F\u79FB\u52D5\uFF09\u3001\u30D7\u30E9\u30B9\u3068\u30DE\u30A4\u30CA\u30B9\u3067\u30BA\u30FC\u30E0\u30010 \u3067\u8868\u793A\u3092\u30EA\u30BB\u30C3\u30C8\u3001R \u307E\u305F\u306F Shift+R \u3067\u56DE\u8EE2\u3057\u307E\u3059\u3002","canvasKeysMedia":"Space \u307E\u305F\u306F K \u3067\u518D\u751F\u30FB\u4E00\u6642\u505C\u6B62\u3001J \u307E\u305F\u306F L \u3067 10 \u79D2\u623B\u308B\u30FB\u9032\u3080\u3001M \u3067\u30DF\u30E5\u30FC\u30C8\u30FB\u30DF\u30E5\u30FC\u30C8\u89E3\u9664\u3057\u307E\u3059\u3002","canvasKeysAnnotations":"Escape \u30AD\u30FC\u3067\u9078\u629E\u3057\u305F\u6CE8\u91C8\u3092\u89E3\u9664\u3057\u307E\u3059\u3002","sceneModel":"3D \u30E2\u30C7\u30EB","sceneRoleDescription":"\u56DE\u8EE2\u3067\u304D\u308B 3D \u30E2\u30C7\u30EB","sceneKeys":"\u77E2\u5370\u30AD\u30FC\u3067\u30E2\u30C7\u30EB\u3092\u56DE\u8EE2\uFF08Shift \u3067\u5927\u304D\u304F\u56DE\u8EE2\uFF09\u3001\u30D7\u30E9\u30B9\u3068\u30DE\u30A4\u30CA\u30B9\u3067\u30BA\u30FC\u30E0\u30010 \u3067\u8868\u793A\u3092\u30EA\u30BB\u30C3\u30C8\u3001R \u307E\u305F\u306F Shift+R \u3067\u53F3\u307E\u305F\u306F\u5DE6\u306B\u56DE\u8EE2\u3057\u307E\u3059\u3002","sceneRotateUp":"\u4E0A\u306B\u56DE\u8EE2","sceneRotateDown":"\u4E0B\u306B\u56DE\u8EE2","sceneRotate":"\u56DE\u8EE2","sceneResetView":"\u8868\u793A\u3092\u30EA\u30BB\u30C3\u30C8","statusLoading":"\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026","statusError":"\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002","itemsLabel":"\u30A2\u30A4\u30C6\u30E0","download":"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9","downloadPage":"\u3053\u306E\u30DA\u30FC\u30B8","downloadAll":"\u3059\u3079\u3066\u306E\u30DA\u30FC\u30B8","templateSidebar":"\u30A2\u30A4\u30C6\u30E0","templateSidebarToggle":"\u30A2\u30A4\u30C6\u30E0\u3092\u8868\u793A","templateBack":"\u623B\u308B","templateBackTo":"{{label}} \u306B\u623B\u308B","collectionLabel":"\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3","itemsScrollBack":"\u524D\u306E\u30A2\u30A4\u30C6\u30E0\u3092\u8868\u793A","itemsScrollForward":"\u3055\u3089\u306B\u30A2\u30A4\u30C6\u30E0\u3092\u8868\u793A","aboutRights":"\u6A29\u5229","aboutDate":"\u65E5\u4ED8","aboutHomepage":"\u30DB\u30FC\u30E0\u30DA\u30FC\u30B8","aboutSeeAlso":"\u95A2\u9023\u60C5\u5831","aboutProvider":"\u63D0\u4F9B\u8005","logo":"\u30ED\u30B4","aboutManifest":"IIIF \u30DE\u30CB\u30D5\u30A7\u30B9\u30C8","aboutCanvas":"IIIF \u30AD\u30E3\u30F3\u30D0\u30B9","aboutPartOf":"\u6240\u5C5E\u5148","aboutOpenManifest":"\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u5168\u4F53\u3092\u958B\u304F","aboutCollection":"IIIF \u30B3\u30EC\u30AF\u30B7\u30E7\u30F3","readingLanguage":"\u8A00\u8A9E","annotationsHide":"\u6CE8\u91C8\u3092\u975E\u8868\u793A","annotationsHideTip":"\u975E\u8868\u793A","readMore":"\u7D9A\u304D\u3092\u8AAD\u3080","readLess":"\u6298\u308A\u305F\u305F\u3080","annotationsShow":"\u753B\u50CF\u4E0A\u3067\u63A2\u3059","annotationsShowTime":"\u9332\u97F3\u5185\u3067\u63A2\u3059","annotationsImage":"\u753B\u50CF","annotationsLanguage":"\u8A00\u8A9E","annotationsOpenLink":"\u958B\u304F","transcriptLabel":"\u6587\u5B57\u8D77\u3053\u3057","imageViewerOpen":"\u753B\u50CF\u30D3\u30E5\u30FC\u30A2\u3092\u958B\u304F","imageViewerClose":"\u753B\u50CF\u30D3\u30E5\u30FC\u30A2\u3092\u9589\u3058\u308B","canvasChoice":"\u9078\u629E\u80A2","canvasViewerControls":"\u30D3\u30E5\u30FC\u30A2\u306E\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB","canvasExpandControls":"\u30D3\u30E5\u30FC\u30A2\u306E\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3092\u5C55\u958B","canvasCollapseControls":"\u30D3\u30E5\u30FC\u30A2\u306E\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3092\u6298\u308A\u305F\u305F\u3080","canvasScrollBack":"\u524D\u306E\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3092\u8868\u793A","canvasScrollForward":"\u3055\u3089\u306B\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3092\u8868\u793A","imageFullScreen":"\u5168\u753B\u9762\u8868\u793A","imageExitFullScreen":"\u5168\u753B\u9762\u8868\u793A\u3092\u7D42\u4E86","imageResetZoom":"\u30BA\u30FC\u30E0\u3092\u30EA\u30BB\u30C3\u30C8","imageRotateLeft":"\u5DE6\u306B\u56DE\u8EE2","imageRotateRight":"\u53F3\u306B\u56DE\u8EE2","imageZoomIn":"\u62E1\u5927","imageZoomOut":"\u7E2E\u5C0F","informationPanelTabs":"\u60C5\u5831\u30D1\u30CD\u30EB","sectionsScrollBack":"\u524D\u306E\u30BF\u30D6\u3092\u8868\u793A","sectionsScrollForward":"\u3055\u3089\u306B\u30BF\u30D6\u3092\u8868\u793A","informationPanelClose":"\u60C5\u5831\u30D1\u30CD\u30EB\u3092\u9589\u3058\u308B","informationPanelTabsAbout":"\u6982\u8981","informationPanelTabsAnnotations":"\u6CE8\u91C8","informationPanelTabsSearch":"\u691C\u7D22","informationPanelTabsContents":"\u76EE\u6B21","contentsSectionsIn":"\u4E0B\u4F4D\u30BB\u30AF\u30B7\u30E7\u30F3\uFF1A","contentsSectionsTip":"\u4E0B\u4F4D\u30BB\u30AF\u30B7\u30E7\u30F3","informationPanelTabsMap":"\u5730\u56F3","informationPanelTabsCollection":"\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3","informationPanelTabsTargets":"\u30D3\u30E5\u30FC","mapUnavailable":"\u5730\u56F3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002","mapLabel":"\u5730\u56F3","mapAttribution":"\u5730\u56F3\u306E\u30AF\u30EC\u30B8\u30C3\u30C8","mapPlaceUntitled":"\u5834\u6240 {{number}}","mapOverlay":"\u30B8\u30AA\u30EA\u30D5\u30A1\u30EC\u30F3\u30B9\u753B\u50CF","mapPlacesListed":"\u5730\u56F3\u306E\u5F8C\u306B\u4E00\u89A7\u8868\u793A\u3055\u308C\u308B\u5834\u6240\uFF1A{{count}} \u4EF6","informationPanelToggle":"\u8A73\u7D30\u60C5\u5831","playerPlay":"\u518D\u751F","playerPause":"\u4E00\u6642\u505C\u6B62","playerMute":"\u30DF\u30E5\u30FC\u30C8","playerUnmute":"\u30DF\u30E5\u30FC\u30C8\u89E3\u9664","playerVolume":"\u97F3\u91CF","playerSeek":"\u518D\u751F\u4F4D\u7F6E","playerCaptions":"\u5B57\u5E55","playerCaptionsOff":"\u30AA\u30D5","playerChapters":"\u30C1\u30E3\u30D7\u30BF\u30FC","playerFill":"\u67A0\u3044\u3063\u3071\u3044\u306B\u8868\u793A","playerFit":"\u67A0\u306B\u53CE\u3081\u308B","playerCurrentTime":"\u7D4C\u904E\u6642\u9593","playerDuration":"\u518D\u751F\u6642\u9593","splitHandle":"\u30D1\u30CD\u30EB\u306E\u30B5\u30A4\u30BA\u3092\u5909\u66F4"}');export{a as default};
@@ -0,0 +1 @@
1
+ import{u as e}from"./shared-pIVPxZLY.mjs";import{L as o}from"./Label-BGPmD5NF.mjs";function n({props:r}){return e(o,{...r})}export{n as LabelElement};
@@ -1 +1 @@
1
- import{G as q,ad as j,ae as H,U as g,af as O,ag as E,B as J}from"./shared-D2pvbPvF.mjs";import{b as R}from"./imageService-CCKieCxo.mjs";import{c as Q}from"./choice-key-BUNebLKe.mjs";const X=/^((application|audio|video)\/)?(vnd\.apple\.|x-)?mpegurl$/i,tt=(t,e)=>!!(t&&/\.m3u8$/i.test(t.split(/[?#]/)[0]))||!!(e&&X.test(e)),et={width:1600,height:900};function nt(t,e){const n=new Array(t.length);if(!t.length)return n;const o=t.map(N),r=e==="left-to-right"||e==="right-to-left",s=e==="right-to-left"||e==="bottom-to-top",u=r?o[0].height:o[0].width,i=t.map((h,a)=>a);s&&i.reverse();let c=0;for(const h of i){const a=o[h],f=u/(r?a.height:a.width),y=a.width*f,p=a.height*f;n[h]=r?{x:c,y:0,width:y,height:p}:{x:0,y:c,width:y,height:p},c+=r?y:p}return n}function N(t){var s,u;if(t.width&&t.height)return{width:t.width,height:t.height};const e=W(t);if(e!=null&&e.width&&e.height)return{width:e.width,height:e.height};const n=((s=k(t)[0])==null?void 0:s.body)??((u=G(t)[0])==null?void 0:u.body),o=Number(n==null?void 0:n.width),r=Number(n==null?void 0:n.height);return o>0&&r>0?{width:o,height:r}:et}function W(t){return t.accompanyingContainer??t.placeholderContainer}function ot(t,e,n,o,r){return Q(t.id,e.id,n,o,r)}function lt(t){const e=[];for(const n of t)D(n,(o,r)=>{const s=o;if((s==null?void 0:s.type)!=="Choice")return;const u=g(s.items).filter(i=>!!i&&typeof i=="object");u.length>1&&e.push({key:r,canvasId:n.id,label:s.label,items:u.map(i=>({label:i.label,id:i.id,...typeof i.type=="string"?{type:i.type}:{},...typeof i.format=="string"?{format:i.format}:{},...typeof g(i.language)[0]=="string"?{language:g(i.language)[0]}:{}}))})});return e}const F={};function K(t){if(t.type!=="Video"&&!E(t.type)||!t.format||tt(t.id,t.format)||typeof document>"u")return true;const e=t.type==="Video"?"video":"audio",n=F[e]??(F[e]=document.createElement(e));return typeof n.canPlayType!="function"?true:n.canPlayType(t.format)!==""}function yt(t,e){const n={};for(const o of t){const r=o.items.filter(K),s=[...new Set(r.flatMap(c=>c.language??[]))],u=s.length>1?q(s,e):void 0,i=o.items.findIndex(c=>K(c)&&(!u||c.language===u));i>0&&(n[o.key]=i)}return n}const V=new WeakMap,z=[];function it(t){return O(t).some(e=>((e==null?void 0:e.type)==="Choice"?g(e.items):[e]).some(o=>(o==null?void 0:o.type)==="Video"||E(o==null?void 0:o.type)))}function rt(t){var u;const e=V.get(t);if(e)return e;const n=[];for(const i of t.items??[])for(const c of i.items??[]){if(!j(c))continue;const h=c.target?(u=H(c.target))==null?void 0:u.t:void 0;if(!h)continue;const[a,f]=h.split(",").map(Number);Number.isFinite(a)&&n.push({annotation:c,start:a,end:Number.isFinite(f)?f:NaN})}if(n.every(i=>it(i.annotation)))return V.set(t,z),z;n.sort((i,c)=>i.start-c.start);const o=Number(t.duration),r=Number.isFinite(o)&&o/n.length||.5;n.forEach((i,c)=>{var a;const h=(a=n[c+1])==null?void 0:a.start;i.end>i.start||(h!=null?i.end=h>i.start?h:i.start+r:Number.isFinite(o)&&o>i.start?i.end=o:i.end>i.start||(i.end=i.start+r))});const s=n.length>1?n:z;return V.set(t,s),s}const A=t=>`frame:${t.id}`;function D(t,e){(t.items??[]).forEach((n,o)=>{(n.items??[]).forEach((r,s)=>{j(r)&&O(r).forEach((u,i)=>e(u,ot(t,r,o,s,i),r))})})}function k(t,e={},{allFrames:n=false}={}){const o=[];return B(t,e,(r,s,u)=>{r.body.type==="Image"&&o.push({body:r.body,region:r.region,...r.rotation?{rotation:r.rotation}:{},target:s,...u>=0?{frame:u}:{}})},n),o}function mt(t,e={}){for(const n of t){let o;if(B(n,e,r=>{o??(o=r.body.type)}),typeof o=="string")return o.toLowerCase()}}function G(t,e={}){const n=[];return B(t,e,(o,r,s,u)=>{const i=o.body.type;if(i!=="Video"&&!E(i))return;const c=J(u);n.push({kind:i==="Video"?"video":"audio",body:o.body,target:r,...c?{time:c}:{}})}),n}function st(t){const e=t.filter(o=>o.time&&typeof o.body.id=="string"),n=new Set(e.map(o=>o.time.start));if(!(e.length<2||n.size!==e.length))return e.sort((o,r)=>o.time.start-r.time.start).map(o=>{const r=Number(o.body.duration)||(o.time.end!==void 0?o.time.end-o.time.start:void 0);return{src:o.body.id,...o.body.format?{format:o.body.format}:{},start:o.time.start,...r?{duration:r}:{}}})}function B(t,e,n,o=false){const r=t.width??0,s=t.height??0,u=rt(t),i=Math.min(e[A(t)]??0,Math.max(0,u.length-1));D(t,(c,h,a)=>{const f=u.findIndex(x=>x.annotation===a);if(!o&&f>=0&&f!==i)return;const y=M(c,e[h]??0);if(!y)return;const p=a.target?H(a.target):void 0,b=p==null?void 0:p.rect;n(y,b?{x:b.x,y:b.y,width:b.w,height:b.h}:{x:0,y:0,width:r||Number(y.body.width)||0,height:s||Number(y.body.height)||0},f,p==null?void 0:p.t)})}function ct(t){return dt(t).filter(e=>e.kind!=="transcript")}function ut(t){const e=g(t.provides);return e.includes("closedCaptions")?"captions":e.includes("subtitles")||e.includes("translation")?"subtitles":e.includes("transcript")?"transcript":"captions"}function dt(t){const e=[],n=[...t.annotations??[],...t.items??[]];for(const o of n)for(const r of o.items??[])if(g(r.motivation).includes("supplementing"))for(const s of g(r.body)){const u=s,i=(u==null?void 0:u.type)==="Choice"?g(u.items):[u];for(const c of i){const h=c==null?void 0:c.id;!((c==null?void 0:c.format)==="text/vtt"||typeof h=="string"&&/\.vtt(\?|$)/i.test(h))||typeof h!="string"||e.push({id:h,label:c.label,language:g(c.language)[0],kind:ut(r)})}}return e}function bt(t){const e=[],n=r=>{const s=r,u=s==null?void 0:s.id;if(typeof u!="string"||e.some(c=>c.id===u))return;const i=s==null?void 0:s.format;(i?i!=="text/plain":!/\.txt(\?|$)/i.test(u))||e.push({id:u,label:s==null?void 0:s.label,language:g(s==null?void 0:s.language)[0]})},o=[...t.annotations??[],...t.items??[]];for(const r of o)for(const s of r.items??[])if(g(s.motivation).includes("supplementing"))for(const u of g(s.body)){const i=u;((i==null?void 0:i.type)==="Choice"?g(i.items):[i]).forEach(n)}return g(t.rendering).forEach(n),e}function M(t,e=0){if(!t||typeof t!="object")return null;const n=t;if(n.type==="Choice"){const o=g(n.items);return M(o[e]??o[0])}if(n.type==="SpecificResource"&&n.source){const o=typeof n.source=="string"?{id:n.source}:n.source,r=g(n.selector).find(i=>(i==null?void 0:i.type)==="ImageApiSelector"),s=M({type:"Image",...o});if(!s)return null;const u=(r==null?void 0:r.rotation)!=null?String(r.rotation):void 0;return{...s,region:(r==null?void 0:r.region)||s.region,...u?{rotation:u}:{}}}return n.type!=="Image"&&n.type!=="Video"&&!E(n.type)?null:{body:n,region:typeof n.region=="string"?n.region:void 0}}function wt(t,e,n={},{standIns:o=true}={}){const r=nt(t,e),s=[],u=[],i={};return t.forEach((c,h)=>{const a=r[h],f=N(c),y=a.width/f.width,p=a.height/f.height,b=d=>({x:a.x+d.x*y,y:a.y+d.y*p,width:d.width*y,height:d.height*p}),x=G(c,n),T=k(c,n,{allFrames:true}).map(d=>({...d,canvas:c})),S=W(c);if(o&&!T.length&&x.some(d=>d.kind==="audio")&&S){const d=N(S);for(const l of k(S))T.push({...l,canvas:S,target:{x:l.target.x/d.width*f.width,y:l.target.y/d.height*f.height,width:l.target.width/d.width*f.width,height:l.target.height/d.height*f.height}})}const U=n[A(c)]??0;T.forEach(({body:d,target:l,region:v,rotation:I,frame:w,canvas:Y},Z)=>{var L;const C=R(d.service);if(!C&&!d.id)return;const _=`${Y.id}|${Z}|${d.id??C}|${v??""}|${I??""}`,P=!(C&&v);if(s.push({id:_,service:C,url:d.id,width:P&&Number(d.width)||void 0,height:P&&Number(d.height)||void 0,region:v,...I?{rotation:I}:{},placement:b(l),...w!=null&&w!==U?{hidden:true}:{}}),w!=null){const $=i[L=A(c)]??(i[L]=[]);($[w]??($[w]=[])).push(_)}});const[m]=x;if(m!=null&&m.body.id){const d=st(x),l=d?d[0]:void 0;u.push({id:`${c.id}|media|${m.body.id}`,kind:m.kind,src:(l==null?void 0:l.src)??m.body.id,format:l?l.format:m.body.format,placement:b(m.target),duration:d?Number(c.duration)||void 0:Number(m.body.duration??c.duration)||void 0,...d?{segments:d}:{},poster:at(c),captions:ct(c)})}}),{images:s,media:u,placements:r,frames:i}}function at(t){var e;return(e=ht(t))==null?void 0:e.source}const xt=1280;function ht(t){var c;const e=t.placeholderContainer;if(!e)return;const n=(c=k(e)[0])==null?void 0:c.body;if(!n)return;const o=R(n.service),r=typeof n.id=="string"?n.id:void 0,s=o?{service:o,fallback:r}:r?{src:r}:void 0;if(!s)return;const{width:u,height:i}=N(e);return{source:s,width:u,height:i}}function Nt(t,e,n){const o=N(t),r=e.width/o.width,s=e.height/o.height;return{x:e.x+n.x*r,y:e.y+n.y*s,width:n.width*r,height:n.height*s}}export{xt as S,bt as a,rt as b,dt as c,wt as d,ht as e,lt as f,A as g,Nt as h,N as i,G as j,ct as k,tt as l,K as m,mt as p,M as r,yt as s};
1
+ import{G as J,ae as j,af as H,V as g,ag as O,ah as E,B as Q}from"./shared-pIVPxZLY.mjs";import{b as R}from"./imageService-BBwzg9uY.mjs";import{c as U}from"./choice-key-BUNebLKe.mjs";const X=/^((application|audio|video)\/)?(vnd\.apple\.|x-)?mpegurl$/i,tt=(t,e)=>!!(t&&/\.m3u8$/i.test(t.split(/[?#]/)[0]))||!!(e&&X.test(e)),et={width:1600,height:900};function nt(t,e){const n=new Array(t.length);if(!t.length)return n;const o=t.map(N),r=e==="left-to-right"||e==="right-to-left",s=e==="right-to-left"||e==="bottom-to-top",u=r?o[0].height:o[0].width,i=t.map((h,d)=>d);s&&i.reverse();let c=0;for(const h of i){const d=o[h],f=u/(r?d.height:d.width),y=d.width*f,p=d.height*f;n[h]=r?{x:c,y:0,width:y,height:p}:{x:0,y:c,width:y,height:p},c+=r?y:p}return n}function N(t){var s,u;if(t.width&&t.height)return{width:t.width,height:t.height};const e=W(t);if(e!=null&&e.width&&e.height)return{width:e.width,height:e.height};const n=((s=k(t)[0])==null?void 0:s.body)??((u=G(t)[0])==null?void 0:u.body),o=Number(n==null?void 0:n.width),r=Number(n==null?void 0:n.height);return o>0&&r>0?{width:o,height:r}:et}function W(t){return t.accompanyingContainer??t.placeholderContainer}function ot(t,e,n,o,r){return U(t.id,e.id,n,o,r)}function lt(t){const e=[];for(const n of t)D(n,(o,r)=>{const s=o;if((s==null?void 0:s.type)!=="Choice")return;const u=g(s.items).filter(i=>!!i&&typeof i=="object");u.length>1&&e.push({key:r,canvasId:n.id,label:s.label,items:u.map(i=>({label:i.label,id:i.id,...typeof i.type=="string"?{type:i.type}:{},...typeof i.format=="string"?{format:i.format}:{},...typeof g(i.language)[0]=="string"?{language:g(i.language)[0]}:{}}))})});return e}const V={};function K(t){if(t.type!=="Video"&&!E(t.type)||!t.format||tt(t.id,t.format)||typeof document>"u")return true;const e=t.type==="Video"?"video":"audio",n=V[e]??(V[e]=document.createElement(e));return typeof n.canPlayType!="function"?true:n.canPlayType(t.format)!==""}function yt(t,e){const n={};for(const o of t){const r=o.items.filter(K),s=[...new Set(r.flatMap(c=>c.language??[]))],u=s.length>1?J(s,e):void 0,i=o.items.findIndex(c=>K(c)&&(!u||c.language===u));i>0&&(n[o.key]=i)}return n}const F=new WeakMap,z=[];function it(t){return O(t).some(e=>((e==null?void 0:e.type)==="Choice"?g(e.items):[e]).some(o=>(o==null?void 0:o.type)==="Video"||E(o==null?void 0:o.type)))}function rt(t){var u;const e=F.get(t);if(e)return e;const n=[];for(const i of t.items??[])for(const c of i.items??[]){if(!j(c))continue;const h=c.target?(u=H(c.target))==null?void 0:u.t:void 0;if(!h)continue;const[d,f]=h.split(",").map(Number);Number.isFinite(d)&&n.push({annotation:c,start:d,end:Number.isFinite(f)?f:NaN})}if(n.every(i=>it(i.annotation)))return F.set(t,z),z;n.sort((i,c)=>i.start-c.start);const o=Number(t.duration),r=Number.isFinite(o)&&o/n.length||.5;n.forEach((i,c)=>{var d;const h=(d=n[c+1])==null?void 0:d.start;i.end>i.start||(h!=null?i.end=h>i.start?h:i.start+r:Number.isFinite(o)&&o>i.start?i.end=o:i.end>i.start||(i.end=i.start+r))});const s=n.length>1?n:z;return F.set(t,s),s}const A=t=>`frame:${t.id}`;function D(t,e){(t.items??[]).forEach((n,o)=>{(n.items??[]).forEach((r,s)=>{j(r)&&O(r).forEach((u,i)=>e(u,ot(t,r,o,s,i),r))})})}function k(t,e={},{allFrames:n=false}={}){const o=[];return B(t,e,(r,s,u)=>{r.body.type==="Image"&&o.push({body:r.body,region:r.region,...r.rotation?{rotation:r.rotation}:{},target:s,...u>=0?{frame:u}:{}})},n),o}function mt(t,e={}){for(const n of t){let o;if(B(n,e,r=>{o??(o=r.body.type)}),typeof o=="string")return o.toLowerCase()}}function G(t,e={}){const n=[];return B(t,e,(o,r,s,u)=>{const i=o.body.type;if(i!=="Video"&&!E(i))return;const c=Q(u);n.push({kind:i==="Video"?"video":"audio",body:o.body,target:r,...c?{time:c}:{}})}),n}function st(t){const e=t.filter(o=>o.time&&typeof o.body.id=="string"),n=new Set(e.map(o=>o.time.start));if(!(e.length<2||n.size!==e.length))return e.sort((o,r)=>o.time.start-r.time.start).map(o=>{const r=Number(o.body.duration)||(o.time.end!==void 0?o.time.end-o.time.start:void 0);return{src:o.body.id,...o.body.format?{format:o.body.format}:{},start:o.time.start,...r?{duration:r}:{}}})}function B(t,e,n,o=false){const r=t.width??0,s=t.height??0,u=rt(t),i=Math.min(e[A(t)]??0,Math.max(0,u.length-1));D(t,(c,h,d)=>{const f=u.findIndex(x=>x.annotation===d);if(!o&&f>=0&&f!==i)return;const y=M(c,e[h]??0);if(!y)return;const p=d.target?H(d.target):void 0,b=p==null?void 0:p.rect;n(y,b?{x:b.x,y:b.y,width:b.w,height:b.h}:{x:0,y:0,width:r||Number(y.body.width)||0,height:s||Number(y.body.height)||0},f,p==null?void 0:p.t)})}function ct(t){return at(t).filter(e=>e.kind!=="transcript")}function ut(t){const e=g(t.provides);return e.includes("closedCaptions")?"captions":e.includes("subtitles")||e.includes("translation")?"subtitles":e.includes("transcript")?"transcript":"captions"}function at(t){const e=[],n=[...t.annotations??[],...t.items??[]];for(const o of n)for(const r of o.items??[])if(g(r.motivation).includes("supplementing"))for(const s of g(r.body)){const u=s,i=(u==null?void 0:u.type)==="Choice"?g(u.items):[u];for(const c of i){const h=c==null?void 0:c.id;!((c==null?void 0:c.format)==="text/vtt"||typeof h=="string"&&/\.vtt(\?|$)/i.test(h))||typeof h!="string"||e.push({id:h,label:c.label,language:g(c.language)[0],kind:ut(r)})}}return e}function bt(t){const e=[],n=r=>{const s=r,u=s==null?void 0:s.id;if(typeof u!="string"||e.some(c=>c.id===u))return;const i=s==null?void 0:s.format;(i?i!=="text/plain":!/\.txt(\?|$)/i.test(u))||e.push({id:u,label:s==null?void 0:s.label,language:g(s==null?void 0:s.language)[0]})},o=[...t.annotations??[],...t.items??[]];for(const r of o)for(const s of r.items??[])if(g(s.motivation).includes("supplementing"))for(const u of g(s.body)){const i=u;((i==null?void 0:i.type)==="Choice"?g(i.items):[i]).forEach(n)}return g(t.rendering).forEach(n),e}function M(t,e=0){if(!t||typeof t!="object")return null;const n=t;if(n.type==="Choice"){const o=g(n.items);return M(o[e]??o[0])}if(n.type==="SpecificResource"&&n.source){const o=typeof n.source=="string"?{id:n.source}:n.source,r=g(n.selector).find(i=>(i==null?void 0:i.type)==="ImageApiSelector"),s=M({type:"Image",...o});if(!s)return null;const u=(r==null?void 0:r.rotation)!=null?String(r.rotation):void 0;return{...s,region:(r==null?void 0:r.region)||s.region,...u?{rotation:u}:{}}}return n.type!=="Image"&&n.type!=="Video"&&!E(n.type)?null:{body:n,region:typeof n.region=="string"?n.region:void 0}}function wt(t,e,n={},{standIns:o=true}={}){const r=nt(t,e),s=[],u=[],i={};return t.forEach((c,h)=>{const d=r[h],f=N(c),y=d.width/f.width,p=d.height/f.height,b=a=>({x:d.x+a.x*y,y:d.y+a.y*p,width:a.width*y,height:a.height*p}),x=G(c,n),T=k(c,n,{allFrames:true}).map(a=>({...a,canvas:c})),S=W(c);if(o&&!T.length&&x.some(a=>a.kind==="audio")&&S){const a=N(S);for(const l of k(S))T.push({...l,canvas:S,target:{x:l.target.x/a.width*f.width,y:l.target.y/a.height*f.height,width:l.target.width/a.width*f.width,height:l.target.height/a.height*f.height}})}const Y=n[A(c)]??0;T.forEach(({body:a,target:l,region:v,rotation:I,frame:w,canvas:Z},q)=>{var L;const C=R(a.service);if(!C&&!a.id)return;const _=`${Z.id}|${q}|${a.id??C}|${v??""}|${I??""}`,P=!(C&&v);if(s.push({id:_,service:C,url:a.id,width:P&&Number(a.width)||void 0,height:P&&Number(a.height)||void 0,region:v,...I?{rotation:I}:{},placement:b(l),...w!=null&&w!==Y?{hidden:true}:{}}),w!=null){const $=i[L=A(c)]??(i[L]=[]);($[w]??($[w]=[])).push(_)}});const[m]=x;if(m!=null&&m.body.id){const a=st(x),l=a?a[0]:void 0;u.push({id:`${c.id}|media|${m.body.id}`,kind:m.kind,src:(l==null?void 0:l.src)??m.body.id,format:l?l.format:m.body.format,placement:b(m.target),duration:a?Number(c.duration)||void 0:Number(m.body.duration??c.duration)||void 0,...a?{segments:a}:{},poster:dt(c),captions:ct(c)})}}),{images:s,media:u,placements:r,frames:i}}function dt(t){var e;return(e=ht(t))==null?void 0:e.source}const xt=1280;function ht(t){var c;const e=t.placeholderContainer;if(!e)return;const n=(c=k(e)[0])==null?void 0:c.body;if(!n)return;const o=R(n.service),r=typeof n.id=="string"?n.id:void 0,s=o?{service:o,fallback:r}:r?{src:r}:void 0;if(!s)return;const{width:u,height:i}=N(e);return{source:s,width:u,height:i}}function Nt(t,e,n){const o=N(t),r=e.width/o.width,s=e.height/o.height;return{x:e.x+n.x*r,y:e.y+n.y*s,width:n.width*r,height:n.height*s}}export{xt as S,bt as a,rt as b,at as c,wt as d,ht as e,lt as f,A as g,Nt as h,N as i,G as j,ct as k,tt as l,K as m,mt as p,M as r,yt as s};
@@ -1 +1 @@
1
- import{U as d,af as o,ae as c}from"./shared-D2pvbPvF.mjs";function g(i){if(d(i==null?void 0:i.motivation).includes("linking"))for(const t of o(i)){const f=u(t);if(!f)continue;const{id:r,source:e}=f;if((e==null?void 0:e.type)==="Canvas"){const n=d(e.partOf).find(s=>(s==null?void 0:s.id)&&(!s.type||s.type==="Manifest")),p=c(r).id;return{id:r,canvasId:p,...n?{manifestId:n.id}:{}}}if((e==null?void 0:e.type)==="Manifest"||(e==null?void 0:e.type)==="Collection")return{id:r,manifestId:r};if(/^https?:\/\//i.test(r))return{id:r}}}function m(i){const t=d(i==null?void 0:i.motivation);if(!(!t.includes("tagging")&&!t.includes("identifying")))for(const f of o(i)){const r=u(f);if(r&&/^https?:\/\//i.test(r.id))return{id:r.id}}}function u(i){if((i==null?void 0:i.type)!=="SpecificResource")return;const t=i.source;if(typeof t=="string")return t?{id:t,source:void 0}:void 0;const f=t==null?void 0:t.id;return typeof f=="string"&&f?{id:f,source:t}:void 0}export{m as a,g as r};
1
+ import{V as d,ag as o,af as c}from"./shared-pIVPxZLY.mjs";function g(i){if(d(i==null?void 0:i.motivation).includes("linking"))for(const t of o(i)){const f=u(t);if(!f)continue;const{id:r,source:e}=f;if((e==null?void 0:e.type)==="Canvas"){const n=d(e.partOf).find(s=>(s==null?void 0:s.id)&&(!s.type||s.type==="Manifest")),p=c(r).id;return{id:r,canvasId:p,...n?{manifestId:n.id}:{}}}if((e==null?void 0:e.type)==="Manifest"||(e==null?void 0:e.type)==="Collection")return{id:r,manifestId:r};if(/^https?:\/\//i.test(r))return{id:r}}}function m(i){const t=d(i==null?void 0:i.motivation);if(!(!t.includes("tagging")&&!t.includes("identifying")))for(const f of o(i)){const r=u(f);if(r&&/^https?:\/\//i.test(r.id))return{id:r.id}}}function u(i){if((i==null?void 0:i.type)!=="SpecificResource")return;const t=i.source;if(typeof t=="string")return t?{id:t,source:void 0}:void 0;const f=t==null?void 0:t.id;return typeof f=="string"&&f?{id:f,source:t}:void 0}export{m as a,g as r};
@@ -0,0 +1 @@
1
+ import{u as t}from"./shared-pIVPxZLY.mjs";import{L as n}from"./Provider-laA0MWws.mjs";function i({hosted:o,props:r}){var e;return((e=o.element.parentElement)==null?void 0:e.localName)==="clover-provider"?null:t(n,{...r})}export{i as LogoElement};
@@ -1 +1 @@
1
- import{ad as M,af as l,U as f}from"./shared-D2pvbPvF.mjs";const d=45,m=75*Math.PI/180,h=5*Math.PI/180,p=Math.PI-h,y=1.1,g=.35,I=4;function P(n,a=1){const t=d*Math.PI/180,o=2*Math.atan(Math.tan(t/2)*a),s=Math.min(t,o);return Math.max(n,1e-6)/Math.sin(s/2)*y}function x(n,a=1){return{theta:0,phi:m,distance:P(n.radius,a)}}function E(n,a,t){return{...n,theta:n.theta+a,phi:Math.min(p,Math.max(h,n.phi+t))}}function R(n,a,t){const o=n.distance/a;return{...n,distance:Math.min(t.distance*I,Math.max(t.distance*g,o))}}function z(n,a){const{theta:t,phi:o,distance:s}=n;return[a[0]+s*Math.sin(o)*Math.sin(t),a[1]+s*Math.cos(o),a[2]+s*Math.sin(o)*Math.cos(t)]}function A(n,a){const t=(s,i)=>Math.abs(s-i)<1e-6,o=(n.theta-a.theta)%(2*Math.PI);return(t(o,0)||t(Math.abs(o),2*Math.PI))&&t(n.phi,a.phi)&&t(n.distance,a.distance)}const O=["model/gltf-binary","model/gltf+json"],c=(n,a)=>{const t=Number(n);return Number.isFinite(t)?t:a};function F(n){return n.format?O.includes(n.format.toLowerCase()):/\.(glb|gltf)(\?|#|$)/i.test(n.src)}function b(n){return f(n.transform).flatMap(a=>{const t=a,o=(t==null?void 0:t.type)==="ScaleTransform"?"scale":(t==null?void 0:t.type)==="RotateTransform"?"rotate":(t==null?void 0:t.type)==="TranslateTransform"?"translate":null;if(!o||!t)return[];const s=o==="scale"?1:0;return[{type:o,x:c(t.x,s),y:c(t.y,s),z:c(t.z,s)}]})}function S(n){for(const a of f(n)){const t=a;if((t==null?void 0:t.type)!=="SpecificResource")continue;const o=f(t.selector).find(s=>(s==null?void 0:s.type)==="PointSelector");if(o)return[c(o.x,0),c(o.y,0),c(o.z,0)]}return[0,0,0]}const u=new WeakMap;function _(n){const a=u.get(n);if(a)return a;const t=[];for(const o of n.items??[])for(const s of(o==null?void 0:o.items)??[])if(M(s))for(let i of l(s)){(i==null?void 0:i.type)==="Choice"&&(i=f(i.items)[0]);const r=(i==null?void 0:i.type)==="SpecificResource"?i:null,e=r?typeof r.source=="string"?{id:r.source,type:"Model"}:r.source:i;(e==null?void 0:e.type)!=="Model"||typeof e.id!="string"||t.push({id:String(s.id??e.id),src:e.id,...typeof e.format=="string"?{format:e.format}:{},...e.label?{label:e.label}:{},position:S(s.target),transforms:r?b(r):[]})}return u.set(n,t),t}function w(n){const a=n.backgroundColor;return typeof a=="string"&&/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(a)?a:void 0}export{d as F,O as M,w as a,A as b,z as c,x as h,F as i,_ as s,E as t,R as z};
1
+ import{ae as M,ag as l,V as f}from"./shared-pIVPxZLY.mjs";const m=45,d=75*Math.PI/180,h=5*Math.PI/180,p=Math.PI-h,y=1.1,g=.35,I=4;function P(n,a=1){const t=m*Math.PI/180,o=2*Math.atan(Math.tan(t/2)*a),s=Math.min(t,o);return Math.max(n,1e-6)/Math.sin(s/2)*y}function x(n,a=1){return{theta:0,phi:d,distance:P(n.radius,a)}}function E(n,a,t){return{...n,theta:n.theta+a,phi:Math.min(p,Math.max(h,n.phi+t))}}function R(n,a,t){const o=n.distance/a;return{...n,distance:Math.min(t.distance*I,Math.max(t.distance*g,o))}}function z(n,a){const{theta:t,phi:o,distance:s}=n;return[a[0]+s*Math.sin(o)*Math.sin(t),a[1]+s*Math.cos(o),a[2]+s*Math.sin(o)*Math.cos(t)]}function A(n,a){const t=(s,e)=>Math.abs(s-e)<1e-6,o=(n.theta-a.theta)%(2*Math.PI);return(t(o,0)||t(Math.abs(o),2*Math.PI))&&t(n.phi,a.phi)&&t(n.distance,a.distance)}const O=["model/gltf-binary","model/gltf+json"],c=(n,a)=>{const t=Number(n);return Number.isFinite(t)?t:a};function F(n){return n.format?O.includes(n.format.toLowerCase()):/\.(glb|gltf)(\?|#|$)/i.test(n.src)}function b(n){return f(n.transform).flatMap(a=>{const t=a,o=(t==null?void 0:t.type)==="ScaleTransform"?"scale":(t==null?void 0:t.type)==="RotateTransform"?"rotate":(t==null?void 0:t.type)==="TranslateTransform"?"translate":null;if(!o||!t)return[];const s=o==="scale"?1:0;return[{type:o,x:c(t.x,s),y:c(t.y,s),z:c(t.z,s)}]})}function S(n){for(const a of f(n)){const t=a;if((t==null?void 0:t.type)!=="SpecificResource")continue;const o=f(t.selector).find(s=>(s==null?void 0:s.type)==="PointSelector");if(o)return[c(o.x,0),c(o.y,0),c(o.z,0)]}return[0,0,0]}const u=new WeakMap;function _(n){const a=u.get(n);if(a)return a;const t=[];for(const o of n.items??[])for(const s of(o==null?void 0:o.items)??[])if(M(s))for(let e of l(s)){(e==null?void 0:e.type)==="Choice"&&(e=f(e.items)[0]);const r=(e==null?void 0:e.type)==="SpecificResource"?e:null,i=r?typeof r.source=="string"?{id:r.source,type:"Model"}:r.source:e;(i==null?void 0:i.type)!=="Model"||typeof i.id!="string"||t.push({id:String(s.id??i.id),src:i.id,...typeof i.format=="string"?{format:i.format}:{},...i.label?{label:i.label}:{},position:S(s.target),transforms:r?b(r):[]})}return u.set(n,t),t}function w(n){const a=n.backgroundColor;return typeof a=="string"&&/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(a)?a:void 0}export{m as F,O as M,w as a,A as b,z as c,x as h,F as i,_ as s,E as t,R as z};