@nulib/clover 4.5.9 → 4.6.1

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 (331) hide show
  1. package/dist/components/Canvas/CanvasView.mjs +37 -4
  2. package/dist/components/Canvas/Connected.mjs +6 -2
  3. package/dist/components/Canvas/FrameAnimation.mjs +4 -48
  4. package/dist/components/Canvas/LoadedCanvas.mjs +26 -6
  5. package/dist/components/Canvas/Placeholder.mjs +1 -1
  6. package/dist/components/Canvas/media/Player.mjs +2 -2
  7. package/dist/components/CollectionSelect/CollectionSelect.mjs +6 -4
  8. package/dist/components/Items/Items.mjs +33 -7
  9. package/dist/components/Items/Position.mjs +2 -5
  10. package/dist/components/Items/StandaloneItems.mjs +6 -0
  11. package/dist/components/Items/vertical/ItemsVertical.mjs +8 -0
  12. package/dist/components/Map/MapView.mjs +2 -8
  13. package/dist/components/Root/useRootState.mjs +15 -14
  14. package/dist/components/Scene/Loaded.mjs +5 -1
  15. package/dist/core/clover.mjs +38 -10
  16. package/dist/core/geo.mjs +5 -4
  17. package/dist/core/request.mjs +7 -0
  18. package/dist/core/save-file.mjs +5 -2
  19. package/dist/core/selectors.mjs +16 -2
  20. package/dist/core/vtt.mjs +6 -4
  21. package/dist/i18n/locales/en.json.mjs +1 -1
  22. package/dist/i18n/locales/es.json.mjs +1 -1
  23. package/dist/i18n/locales/fi.json.mjs +1 -1
  24. package/dist/i18n/locales/fr.json.mjs +1 -1
  25. package/dist/i18n/locales/it.json.mjs +1 -1
  26. package/dist/i18n/locales/ja.json.mjs +1 -1
  27. package/dist/i18n/locales/nb.json.mjs +1 -1
  28. package/dist/i18n/locales/nn.json.mjs +1 -1
  29. package/dist/i18n/locales/no.json.mjs +1 -1
  30. package/dist/i18n/locales/pt.json.mjs +1 -1
  31. package/dist/i18n/locales/zh-Hans.json.mjs +1 -1
  32. package/dist/i18n/locales/zh-Hant.json.mjs +1 -1
  33. package/dist/index.d.mts +14 -2
  34. package/dist/lib/gltf/load.mjs +5 -2
  35. package/dist/lib/renderer/CanvasRenderer.mjs +183 -45
  36. package/dist/lib/renderer/backends/webgl2/shaders.mjs +2 -1
  37. package/dist/lib/renderer/io/TileCache.mjs +1 -1
  38. package/dist/lib/renderer/io/decode.mjs +2 -1
  39. package/dist/lib/renderer/scene/planFrame.mjs +17 -0
  40. package/dist/lib/renderer/scene/sceneItem.mjs +9 -4
  41. package/dist/lib/renderer/sources/imageService.mjs +2 -1
  42. package/dist/lib/renderer/sources/tilePyramid.mjs +14 -3
  43. package/dist/map/index.d.mts +2 -1
  44. package/dist/styles/core.css +1 -1
  45. package/dist/styles/items-vertical.css +1 -0
  46. package/dist/styles/items.css +1 -1
  47. package/dist/styles.css +1 -1
  48. package/dist/ui/EntryThumbnail.mjs +6 -3
  49. package/dist/ui/Loading.mjs +9 -0
  50. package/dist/ui/loadingPass.mjs +52 -0
  51. package/dist/ui/sheets/items-vertical.mjs +5 -0
  52. package/dist/web-components/About-I4h1cfup.mjs +1 -0
  53. package/dist/web-components/AnnotationItems-BfQm1YRD.mjs +1 -0
  54. package/dist/web-components/{AnnotationMenu-CkTdOVgU.mjs → AnnotationMenu-guk9SbaL.mjs} +1 -1
  55. package/dist/web-components/{AnnotationState-DMgUWawu.mjs → AnnotationState-BX7xh-bd.mjs} +1 -1
  56. package/dist/web-components/{Annotations-DZX4QhcQ.mjs → Annotations-BJrje3Ey.mjs} +1 -1
  57. package/dist/web-components/{Annotations-CEshACVg.mjs → Annotations-DBxLDLDf.mjs} +1 -1
  58. package/dist/web-components/{Body-CLEco7_N.mjs → Body-CQuiRv9p.mjs} +1 -1
  59. package/dist/web-components/{BodyAlert-BP4r3Cd6.mjs → BodyAlert-DF9rnG5o.mjs} +1 -1
  60. package/dist/web-components/{Button-JqNjqiWi.mjs → Button-qhI73GCI.mjs} +1 -1
  61. package/dist/web-components/{Camera-Ccshr6VH.mjs → Camera-D2MnETlC.mjs} +1 -1
  62. package/dist/web-components/{Canvas2DBackend-B6073uEb.mjs → Canvas2DBackend-kJpOk_Pb.mjs} +1 -1
  63. package/dist/web-components/CanvasView-B752g1bm.mjs +2 -0
  64. package/dist/web-components/{CaptionDetails-Cg-Qs1Vo.mjs → CaptionDetails-Cl3fLJfr.mjs} +1 -1
  65. package/dist/web-components/ChaptersMenu-CB4zdVOh.mjs +1 -0
  66. package/dist/web-components/{Chevron-h5qzcEcw.mjs → Chevron-CT1ntI6B.mjs} +1 -1
  67. package/dist/web-components/{ChoiceMenu-DJzv0hit.mjs → ChoiceMenu-DoXMSLjk.mjs} +1 -1
  68. package/dist/web-components/{Collection-DdgyAL7y.mjs → Collection-B8ipKdPl.mjs} +1 -1
  69. package/dist/web-components/CollectionSelect-C0Tunk6c.mjs +1 -0
  70. package/dist/web-components/{Connected-Bfk00vQd.mjs → Connected-DaP_DgGw.mjs} +1 -1
  71. package/dist/web-components/{Connected-XzGCGV5F.mjs → Connected-L47VwCva.mjs} +1 -1
  72. package/dist/web-components/Connected-shq2_tc-.mjs +1 -0
  73. package/dist/web-components/{Contents-RRatJCsY.mjs → Contents-_u13TaBJ.mjs} +1 -1
  74. package/dist/web-components/{ControlMenu-CbGB6ddJ.mjs → ControlMenu-BW39OjKC.mjs} +1 -1
  75. package/dist/web-components/ControlsFade-LFHufW32.mjs +1 -0
  76. package/dist/web-components/{CountMenu-sy7-np4i.mjs → CountMenu-CQ7ThPWJ.mjs} +1 -1
  77. package/dist/web-components/Cue-B1IlY4Ae.mjs +1 -0
  78. package/dist/web-components/{Document-CeqDB3XD.mjs → Document-BChOw20c.mjs} +1 -1
  79. package/dist/web-components/{DomLayers-taxnJRum.mjs → DomLayers-BIFA6J56.mjs} +1 -1
  80. package/dist/web-components/{Download-Car7CU2u.mjs → Download-BfZJVu-O.mjs} +1 -1
  81. package/dist/web-components/{EntryBodies-BtpwwwYE.mjs → EntryBodies-Bld2RXeE.mjs} +1 -1
  82. package/dist/web-components/EntryThumbnail-C5df3CaH.mjs +1 -0
  83. package/dist/web-components/{FieldPill-cf9eBuE6.mjs → FieldPill-Dx--yBoK.mjs} +1 -1
  84. package/dist/web-components/FrameAnimation-CpniJMTK.mjs +1 -0
  85. package/dist/web-components/{Gallery-QK3ww9Sn.mjs → Gallery-CkaSdVAP.mjs} +1 -1
  86. package/dist/web-components/{GlobeGlyph-D3XRo_IQ.mjs → GlobeGlyph-CCi1sZgm.mjs} +1 -1
  87. package/dist/web-components/{HideToggle-BdulLE7z.mjs → HideToggle-nvJtMFOZ.mjs} +1 -1
  88. package/dist/web-components/{ImageControls-CiL_D1jJ.mjs → ImageControls-Df-M7F2R.mjs} +1 -1
  89. package/dist/web-components/Items-BsKByN_b.mjs +1 -0
  90. package/dist/web-components/ItemsVertical-Dmhm1DBy.mjs +1 -0
  91. package/dist/web-components/Label-DElSTYS5.mjs +1 -0
  92. package/dist/web-components/{LanguageChoice-CPvKeMS_.mjs → LanguageChoice-t55qbd8x.mjs} +1 -1
  93. package/dist/web-components/{LanguageMenu-DEoDIxlR.mjs → LanguageMenu-BlFBWRSO.mjs} +1 -1
  94. package/dist/web-components/{LightboxView-D42ogB9b.mjs → LightboxView-BhPao9ao.mjs} +1 -1
  95. package/dist/web-components/{ListEnd-1VWK96re.mjs → ListEnd-KSoUQrsM.mjs} +1 -1
  96. package/dist/web-components/Loaded-uGqT3xyD.mjs +1 -0
  97. package/dist/web-components/LoadedCanvas-fqjWHH0H.mjs +3 -0
  98. package/dist/web-components/LoadedMap-BpRHQPoU.mjs +1 -0
  99. package/dist/web-components/Loading-DSaV1vxb.mjs +1 -0
  100. package/dist/web-components/{Map-1SoA6_NY.mjs → Map-CUY8HEgh.mjs} +1 -1
  101. package/dist/web-components/MapView-DIVMYZZ1.mjs +3 -0
  102. package/dist/web-components/{Markup-CGp-sAk0.mjs → Markup-DzUsOaNC.mjs} +1 -1
  103. package/dist/web-components/{MediaBody-nPvqRq1E.mjs → MediaBody-CJELKAWJ.mjs} +1 -1
  104. package/dist/web-components/{MediaBody-BCwNSKUW.mjs → MediaBody-CN2ZTxK0.mjs} +1 -1
  105. package/dist/web-components/{NavDate-BQjEV2AU.mjs → NavDate-CD3sFxZJ.mjs} +1 -1
  106. package/dist/web-components/{Navigator-BVKUD0-V.mjs → Navigator-CVDhe8R_.mjs} +1 -1
  107. package/dist/web-components/{Pager-Ccdj43ZQ.mjs → Pager-BmZaB--9.mjs} +1 -1
  108. package/dist/web-components/PagerLayout-DhIz3hKA.mjs +1 -0
  109. package/dist/web-components/{Panel-xCi9RT4Z.mjs → Panel-CdJyJVBh.mjs} +1 -1
  110. package/dist/web-components/PanelPart-m2QWHh_4.mjs +1 -0
  111. package/dist/web-components/{PanelToggle-CSRKyPCu.mjs → PanelToggle-BqVj7sX0.mjs} +1 -1
  112. package/dist/web-components/PartOfManifest-Dgw1shMM.mjs +1 -0
  113. package/dist/web-components/{Pending-Dagi9Hhc.mjs → Pending-CDXsIk5O.mjs} +1 -1
  114. package/dist/web-components/{PlaceBox-C4_JBM6I.mjs → PlaceBox-DNnl9coD.mjs} +1 -1
  115. package/dist/web-components/Placeholder-D8Sabput.mjs +1 -0
  116. package/dist/web-components/Position-oFMJoo4P.mjs +1 -0
  117. package/dist/web-components/{Primitives-C2f-ZV1J.mjs → Primitives-BdXIEpYW.mjs} +1 -1
  118. package/dist/web-components/{Provider-DQ5Gz-Bh.mjs → Provider-DWIlPOzR.mjs} +1 -1
  119. package/dist/web-components/{ReadMore-D4zZ4ZJ5.mjs → ReadMore-f34RbHMm.mjs} +1 -1
  120. package/dist/web-components/Root-CEtLCE4Y.mjs +1 -0
  121. package/dist/web-components/Scene-BJE8miZL.mjs +1 -0
  122. package/dist/web-components/{SceneView-BgjiTjRe.mjs → SceneView-D635_fRV.mjs} +1 -1
  123. package/dist/web-components/{Search-DGAEkL-h.mjs → Search-219u7M8o.mjs} +1 -1
  124. package/dist/web-components/{Sections-CPCPWIFr.mjs → Sections-C3fPhGNx.mjs} +1 -1
  125. package/dist/web-components/{SeekMarks-DemiDpFP.mjs → SeekMarks-Ds8v3SaW.mjs} +1 -1
  126. package/dist/web-components/StandaloneItems-Mdh-k3w9.mjs +1 -0
  127. package/dist/web-components/{Status-BYnM-ITS.mjs → Status-CEkhPlDF.mjs} +1 -1
  128. package/dist/web-components/{Steps-DByLc8pX.mjs → Steps-BoNd47eB.mjs} +1 -1
  129. package/dist/web-components/{TargetItems-BDt6OXh8.mjs → TargetItems-dFjJs-VP.mjs} +1 -1
  130. package/dist/web-components/Timeline-DPdS6bYG.mjs +1 -0
  131. package/dist/web-components/{Tip-h4Abk6aH.mjs → Tip-mcI7IRQh.mjs} +1 -1
  132. package/dist/web-components/{Transcript-CfOhWPdJ.mjs → Transcript-5wVgmZmU.mjs} +1 -1
  133. package/dist/web-components/{Transport-Xwq6Cpn3.mjs → Transport-DYjd2GnA.mjs} +1 -1
  134. package/dist/web-components/{Transport-B58M-XIa.mjs → Transport-DdNRlSa0.mjs} +1 -1
  135. package/dist/web-components/{annotation-collection-BH66kiGL.mjs → annotation-collection-C3UpNV1K.mjs} +1 -1
  136. package/dist/web-components/{annotation-name-Biu7-abB.mjs → annotation-name-DhMF4ZHj.mjs} +1 -1
  137. package/dist/web-components/{annotations-content-tLJ5sUiC.mjs → annotations-content-CuWJZr4t.mjs} +1 -1
  138. package/dist/web-components/{body-BIieugrZ.mjs → body-Bym9Uvav.mjs} +1 -1
  139. package/dist/web-components/canvas-BIXBggVo.mjs +1 -0
  140. package/dist/web-components/{viewer/cloverEngine-Cd4MoqAY.mjs → cloverEngine-BEdb3g52.mjs} +3 -3
  141. package/dist/web-components/{content-state-reader-DtRv0vnr.mjs → content-state-reader-BGZEChSM.mjs} +1 -1
  142. package/dist/web-components/{controlGlyphs-QLLc8cpa.mjs → controlGlyphs-DMQCxKaT.mjs} +1 -1
  143. package/dist/web-components/{controls-DuLb0zYy.mjs → controls-B1pIwRgH.mjs} +1 -1
  144. package/dist/web-components/{downloads-DUWW30ai.mjs → downloads-DwzBIS-9.mjs} +1 -1
  145. package/dist/web-components/{dragToClose-DAS5OWSl.mjs → dragToClose-BYUJ9qgo.mjs} +1 -1
  146. package/dist/web-components/{engine-DaDzKDum.mjs → engine-DUv-Syum.mjs} +1 -1
  147. package/dist/web-components/{engines-DGQYmjhi.mjs → engines-BzM_oBU_.mjs} +1 -1
  148. package/dist/web-components/{es-Bn4XnLxy.mjs → es-Bx-zZBfZ.mjs} +1 -1
  149. package/dist/web-components/{fetchManifest-CDLkWDgP.mjs → fetchManifest-Cp7c8vs5.mjs} +1 -1
  150. package/dist/web-components/{fi-CjAXeLqH.mjs → fi-DsP1FhBy.mjs} +1 -1
  151. package/dist/web-components/{follow-content-Rav98zXa.mjs → follow-content-CmXq05TW.mjs} +1 -1
  152. package/dist/web-components/{fr-CeFhkxoi.mjs → fr-BuL_F9Jq.mjs} +1 -1
  153. package/dist/web-components/{fromManifest-B8AlKP6a.mjs → fromManifest-DbgwTeBo.mjs} +1 -1
  154. package/dist/web-components/{glyphs-BzZKC9_8.mjs → glyphs-atKuagcd.mjs} +1 -1
  155. package/dist/web-components/{hooks-BGorrvz7.mjs → hooks-DhTYPPVG.mjs} +1 -1
  156. package/dist/web-components/image-layers-CoBPhMZw.mjs +1 -0
  157. package/dist/web-components/{image-service-content-BGBge-Nu.mjs → image-service-content-CL_EZugL.mjs} +1 -1
  158. package/dist/web-components/imageService-BoQQvo1U.mjs +1 -0
  159. package/dist/web-components/{index-GH8QRDv1.mjs → index-Ciz5x8Tt.mjs} +1 -1
  160. package/dist/web-components/index.mjs +1 -1
  161. package/dist/web-components/{it-DxtfVek2.mjs → it-DH3EtrgI.mjs} +1 -1
  162. package/dist/web-components/{items-CtOmANs8.mjs → items-CjtUJjSU.mjs} +1 -1
  163. package/dist/web-components/items-DiQ3K5TV.mjs +1 -0
  164. package/dist/web-components/{ja-rsicBgWR.mjs → ja-BEHbDotv.mjs} +1 -1
  165. package/dist/web-components/label-CKgFcOzZ.mjs +1 -0
  166. package/dist/web-components/{layout-BmDYodJC.mjs → layout-zjkkOHIj.mjs} +1 -1
  167. package/dist/web-components/{link-CQUMZL8-.mjs → link-CrNaByf-.mjs} +1 -1
  168. package/dist/web-components/logo-C2xm9WAL.mjs +1 -0
  169. package/dist/web-components/{models-BbiJP5tM.mjs → models-BFKa5v_H.mjs} +1 -1
  170. package/dist/web-components/{no-BkyI1fhp.mjs → nb-Bdfn_mZs.mjs} +1 -1
  171. package/dist/web-components/{nn-n_xM6AGl.mjs → nn-BCWbSuK0.mjs} +1 -1
  172. package/dist/web-components/{nb-BkyI1fhp.mjs → no-Bdfn_mZs.mjs} +1 -1
  173. package/dist/web-components/{nodes-DARyEM2G.mjs → nodes-BDyXzQhk.mjs} +1 -1
  174. package/dist/web-components/{overlayImage-F-EX6YpI.mjs → overlayImage-BGxovfPN.mjs} +1 -1
  175. package/dist/web-components/{panel-COE-wxFK.mjs → panel-rEGhe5fL.mjs} +1 -1
  176. package/dist/web-components/part-PF-s_vD-.mjs +1 -0
  177. package/dist/web-components/{playerSurface-BAK0g9ik.mjs → playerSurface-BthXi9l2.mjs} +1 -1
  178. package/dist/web-components/{pointer-DnJMax9Y.mjs → pointer-C22ufJ5w.mjs} +1 -1
  179. package/dist/web-components/{provider-B9I7nScH.mjs → provider-B2C3eH9p.mjs} +1 -1
  180. package/dist/web-components/{pt-COchUT7D.mjs → pt-Da5El49z.mjs} +1 -1
  181. package/dist/web-components/{range-regions-DEnDbiy7.mjs → range-regions-Ytq4QkMX.mjs} +1 -1
  182. package/dist/web-components/{read-more-DkDjZsOx.mjs → read-more-B7LHzF4-.mjs} +1 -1
  183. package/dist/web-components/{readingLanguages-DZxj1se7.mjs → readingLanguages-B20n_dkw.mjs} +1 -1
  184. package/dist/web-components/rendererSurface-BfZP5clN.mjs +22 -0
  185. package/dist/web-components/{renderers-17347cy8.mjs → renderers-C569MeQB.mjs} +1 -1
  186. package/dist/web-components/{resource-CtPBxzcn.mjs → resource-C5cMic8z.mjs} +1 -1
  187. package/dist/web-components/save-file-DsYdCZpi.mjs +1 -0
  188. package/dist/web-components/{search-CE2oKdT4.mjs → search-kJ_71fbN.mjs} +1 -1
  189. package/dist/web-components/shared-ByrLMUQa.mjs +1 -0
  190. package/dist/web-components/{show-link-DuRktUta.mjs → show-link-BqrJDDMV.mjs} +1 -1
  191. package/dist/web-components/{sizedImage-DAaoYkRy.mjs → sizedImage-CyCf0GtL.mjs} +1 -1
  192. package/dist/web-components/{split-BP3eTM8x.mjs → split-BZRKCI3g.mjs} +1 -1
  193. package/dist/web-components/{status-CpVNchw2.mjs → status-CwO2mygB.mjs} +1 -1
  194. package/dist/web-components/styles-BOXm_R8o.mjs +1 -0
  195. package/dist/web-components/three.mjs +1 -1
  196. package/dist/web-components/{thumbnail-BcediRH4.mjs → thumbnail-Np4ftjUo.mjs} +1 -1
  197. package/dist/web-components/{tip-BRNRex1D.mjs → tip-CNyxI6xd.mjs} +1 -1
  198. package/dist/web-components/{toggle-hREejXk6.mjs → toggle-lop2se80.mjs} +1 -1
  199. package/dist/web-components/{useContainerName-DeDFbnAs.mjs → useContainerName-DR_6TyDU.mjs} +1 -1
  200. package/dist/web-components/{useControlsVisibility-BYHbIHGH.mjs → useControlsVisibility-Dig_1-0T.mjs} +1 -1
  201. package/dist/web-components/{useNearViewport-BgvHaTUu.mjs → useNearViewport-B_kjW0WB.mjs} +1 -1
  202. package/dist/web-components/{useScrollTrack-B7zWqV5x.mjs → useScrollTrack-6BV6IizZ.mjs} +1 -1
  203. package/dist/web-components/viewer/{AnnotationItems-CDMYXEJY.mjs → AnnotationItems-BDFH_6F_.mjs} +1 -1
  204. package/dist/web-components/viewer/{AnnotationMenu-R-IJnoJr.mjs → AnnotationMenu-BHCrJoNx.mjs} +1 -1
  205. package/dist/web-components/viewer/{AnnotationState-CvRSbJoR.mjs → AnnotationState-BV0fzlj8.mjs} +1 -1
  206. package/dist/web-components/viewer/{Annotations-CX2kTFir.mjs → Annotations-BhA_Bbyj.mjs} +1 -1
  207. package/dist/web-components/viewer/{Annotations-D-vxlAH-.mjs → Annotations-DEqkGlE1.mjs} +1 -1
  208. package/dist/web-components/viewer/{Canvas2DBackend-CRyXTdaF.mjs → Canvas2DBackend-Bq_bo1mL.mjs} +1 -1
  209. package/dist/web-components/viewer/CaptionDetails-D6Gd_EGS.mjs +1 -0
  210. package/dist/web-components/viewer/{ChaptersMenu-B84VO_Mr.mjs → ChaptersMenu-DE2TFesS.mjs} +1 -1
  211. package/dist/web-components/viewer/{ChoiceMenu-CDG8LFjh.mjs → ChoiceMenu-BVlpPUhr.mjs} +1 -1
  212. package/dist/web-components/viewer/{Collection-BE7-wcaT.mjs → Collection-DIgmeOCD.mjs} +1 -1
  213. package/dist/web-components/viewer/{Connected-BgYoWJ9x.mjs → Connected-7TgFouaR.mjs} +1 -1
  214. package/dist/web-components/viewer/{Connected-CDglyxHQ.mjs → Connected-D9dz_v1p.mjs} +1 -1
  215. package/dist/web-components/viewer/{Contents-YlFDgYna.mjs → Contents-ROI1iuuR.mjs} +1 -1
  216. package/dist/web-components/viewer/{ControlMenu-CwOThPXI.mjs → ControlMenu-CZlN7x0D.mjs} +1 -1
  217. package/dist/web-components/viewer/ControlsFade-QEgqI3wY.mjs +1 -0
  218. package/dist/web-components/viewer/{CountMenu-Bio1pBA5.mjs → CountMenu-CCEH_rEu.mjs} +1 -1
  219. package/dist/web-components/viewer/Cue-CLbO9g2X.mjs +1 -0
  220. package/dist/web-components/viewer/{Document-D3QFxaMG.mjs → Document-8ADB98RM.mjs} +1 -1
  221. package/dist/web-components/viewer/{DomLayers-DqluSP_z.mjs → DomLayers-BXPbPq1a.mjs} +1 -1
  222. package/dist/web-components/viewer/{Download-COC-nK6_.mjs → Download-YfjzAcAF.mjs} +1 -1
  223. package/dist/web-components/viewer/{EntryBodies-UbloKBFE.mjs → EntryBodies-B2DBmUYl.mjs} +1 -1
  224. package/dist/web-components/viewer/EntryThumbnail-B2cRaP5D.mjs +1 -0
  225. package/dist/web-components/viewer/{FieldPill-D9c-u2aG.mjs → FieldPill-C7o8586T.mjs} +1 -1
  226. package/dist/web-components/viewer/FrameAnimation-CytZC2Lx.mjs +1 -0
  227. package/dist/web-components/viewer/{Gallery-ByCLq8nD.mjs → Gallery-CQma5dBZ.mjs} +1 -1
  228. package/dist/web-components/viewer/{GlobeGlyph-KKxBlsfc.mjs → GlobeGlyph-UxhwZJy1.mjs} +1 -1
  229. package/dist/web-components/viewer/{HideToggle-BNnJlKG3.mjs → HideToggle-DZMCACLG.mjs} +1 -1
  230. package/dist/web-components/viewer/{ImageControls-BCz88aeX.mjs → ImageControls-fzFWqFVh.mjs} +1 -1
  231. package/dist/web-components/viewer/ItemsVertical-BftsRVJP.mjs +1 -0
  232. package/dist/web-components/viewer/{LanguageChoice-DSERkWEF.mjs → LanguageChoice-B8F2WhUM.mjs} +1 -1
  233. package/dist/web-components/viewer/{LanguageMenu-Cv7bWG0F.mjs → LanguageMenu-BIpATvd4.mjs} +1 -1
  234. package/dist/web-components/viewer/{LightboxView-ClQSmYRQ.mjs → LightboxView-D-6yYXCc.mjs} +1 -1
  235. package/dist/web-components/viewer/{ListEnd-B6VtWReK.mjs → ListEnd-DhrDIRKM.mjs} +1 -1
  236. package/dist/web-components/viewer/MapView-XFUp4DVX.mjs +3 -0
  237. package/dist/web-components/viewer/{MediaBody-Cshfh_3F.mjs → MediaBody-C3fVbzuD.mjs} +1 -1
  238. package/dist/web-components/viewer/{MediaBody-CvXptO7l.mjs → MediaBody-D-1SNnW2.mjs} +1 -1
  239. package/dist/web-components/viewer/{NavDate-l4WnJ7Ph.mjs → NavDate-B47wyKdc.mjs} +1 -1
  240. package/dist/web-components/viewer/{Navigator-DilJ4hOg.mjs → Navigator-BqNBxE5l.mjs} +1 -1
  241. package/dist/web-components/viewer/{PagerLayout-ZMGl6Hso.mjs → PagerLayout-DKdFxLZ1.mjs} +1 -1
  242. package/dist/web-components/viewer/PanelPart-CuddftmQ.mjs +1 -0
  243. package/dist/web-components/viewer/{PartOfManifest-Ci8XArjU.mjs → PartOfManifest-DF40jLNB.mjs} +1 -1
  244. package/dist/web-components/viewer/{PlaceBox-DIKp5Qgf.mjs → PlaceBox-Bi1inmQv.mjs} +1 -1
  245. package/dist/web-components/viewer/{Placeholder-BFtTc4a5.mjs → Placeholder-BhAzmG0d.mjs} +1 -1
  246. package/dist/web-components/viewer/{Search-CffzBngs.mjs → Search-CTkCx-SZ.mjs} +1 -1
  247. package/dist/web-components/viewer/{SeekMarks-BEujwiot.mjs → SeekMarks-8NvVfr4F.mjs} +1 -1
  248. package/dist/web-components/viewer/StandaloneItems-P1ygiZtX.mjs +1 -0
  249. package/dist/web-components/viewer/{Steps-MQSxvD8B.mjs → Steps-DwqiM7sH.mjs} +1 -1
  250. package/dist/web-components/viewer/{TargetItems-BdAvyfvp.mjs → TargetItems-B873PbFR.mjs} +1 -1
  251. package/dist/web-components/viewer/{Transcript-DR4SbDcf.mjs → Transcript-D7cFMWGk.mjs} +1 -1
  252. package/dist/web-components/viewer/{Transport-e9YUnvid.mjs → Transport-DPURF464.mjs} +1 -1
  253. package/dist/web-components/viewer/{Transport-CWkJ1XOL.mjs → Transport-TvkdinN-.mjs} +1 -1
  254. package/dist/web-components/viewer/{annotation-collection-BmIgw-9-.mjs → annotation-collection-BwY8uYqa.mjs} +1 -1
  255. package/dist/web-components/viewer/{annotation-name-BcZahQW_.mjs → annotation-name-DQMCd2DB.mjs} +1 -1
  256. package/dist/web-components/viewer/{annotations-content-BsCUZUiG.mjs → annotations-content-q11OcPdT.mjs} +1 -1
  257. package/dist/web-components/{cloverEngine-qypryrZ2.mjs → viewer/cloverEngine-K2HNl3W1.mjs} +3 -3
  258. package/dist/web-components/viewer/{content-state-reader-CZzZVuIS.mjs → content-state-reader-BhDMcVmC.mjs} +1 -1
  259. package/dist/web-components/viewer/{dragToClose-DwFUE5k_.mjs → dragToClose-BFhEkxmf.mjs} +1 -1
  260. package/dist/web-components/viewer/{fetchManifest--iK6wT8O.mjs → fetchManifest-aJRqlL7Q.mjs} +1 -1
  261. package/dist/web-components/viewer/{follow-content-CEoIPewi.mjs → follow-content-Cy0flRSN.mjs} +1 -1
  262. package/dist/web-components/viewer/{host-B9_p4Vyw.mjs → host-C4OSSUrc.mjs} +1 -1
  263. package/dist/web-components/viewer/{image-layers-TE9lUAo8.mjs → image-layers-BmOyugIr.mjs} +1 -1
  264. package/dist/web-components/viewer/{image-service-content-BghMNjSP.mjs → image-service-content-BuqFuXBZ.mjs} +1 -1
  265. package/dist/web-components/viewer/index.mjs +1 -1
  266. package/dist/web-components/viewer/{link-BDYoIIG6.mjs → link-BtdcvLLg.mjs} +1 -1
  267. package/dist/web-components/viewer/overlayImage-BOilakHT.mjs +1 -0
  268. package/dist/web-components/viewer/{range-regions-BD5RPgtX.mjs → range-regions-S1HcVfpb.mjs} +1 -1
  269. package/dist/web-components/viewer/{renderers-BGTNG2ao.mjs → renderers-CetbXlHH.mjs} +1 -1
  270. package/dist/web-components/viewer/save-file-BohgaD35.mjs +1 -0
  271. package/dist/web-components/viewer/{search-BFTaFcIE.mjs → search-C0ZHXQW-.mjs} +1 -1
  272. package/dist/web-components/viewer/styles-XRfyRUPf.mjs +1 -0
  273. package/dist/web-components/viewer/{useControlsVisibility-CdHbUJ_5.mjs → useControlsVisibility-CmA6PMfv.mjs} +1 -1
  274. package/dist/web-components/viewer/viewer-BXbkj7DJ.mjs +29 -0
  275. package/dist/web-components/viewer/vtt-BIJk7HEl.mjs +5 -0
  276. package/dist/web-components/{viewer-PeMy2VzH.mjs → viewer-f_6tefcG.mjs} +1 -1
  277. package/dist/web-components/vtt-BRwnCWbJ.mjs +5 -0
  278. package/dist/web-components/{zh-Hans-Bfn3LUnq.mjs → zh-Hans-BhTHTZXT.mjs} +1 -1
  279. package/dist/web-components/{zh-Hant-DzmK541A.mjs → zh-Hant-_CJAOTzC.mjs} +1 -1
  280. package/package.json +1 -1
  281. package/dist/web-components/About-CGMm1-_m.mjs +0 -1
  282. package/dist/web-components/AnnotationItems-D5YRBYo7.mjs +0 -1
  283. package/dist/web-components/CanvasView-BCyHQxwA.mjs +0 -2
  284. package/dist/web-components/ChaptersMenu-BlH2m--N.mjs +0 -1
  285. package/dist/web-components/CollectionSelect-CI-gJrdr.mjs +0 -1
  286. package/dist/web-components/Connected-Dz38Bzpd.mjs +0 -1
  287. package/dist/web-components/ControlsFade-BPl7QLD-.mjs +0 -1
  288. package/dist/web-components/Cue-BtLDY60I.mjs +0 -1
  289. package/dist/web-components/EntryThumbnail-BsvULLOE.mjs +0 -1
  290. package/dist/web-components/FrameAnimation-HthNp8Wy.mjs +0 -1
  291. package/dist/web-components/Items-Ch80infd.mjs +0 -1
  292. package/dist/web-components/Label-Bo3CK-L6.mjs +0 -1
  293. package/dist/web-components/Loaded-1HMGKert.mjs +0 -1
  294. package/dist/web-components/LoadedCanvas-CDXDAq7C.mjs +0 -1
  295. package/dist/web-components/LoadedMap-CKE1VBTk.mjs +0 -1
  296. package/dist/web-components/Loading-DJ1DTuTP.mjs +0 -1
  297. package/dist/web-components/MapView-Bh4hjBql.mjs +0 -3
  298. package/dist/web-components/PagerLayout-DwHzuFi9.mjs +0 -1
  299. package/dist/web-components/PanelPart-BZDTLVZL.mjs +0 -1
  300. package/dist/web-components/PartOfManifest-VSzd2d_m.mjs +0 -1
  301. package/dist/web-components/Placeholder-BLHxv7em.mjs +0 -1
  302. package/dist/web-components/Position-SN6EMJW-.mjs +0 -1
  303. package/dist/web-components/Root-ijCOCdMK.mjs +0 -1
  304. package/dist/web-components/Scene-BnuKH1Ht.mjs +0 -1
  305. package/dist/web-components/StandaloneItems-DSTZPmPt.mjs +0 -1
  306. package/dist/web-components/Timeline-DtE58r-z.mjs +0 -1
  307. package/dist/web-components/canvas-Cni09Q09.mjs +0 -1
  308. package/dist/web-components/image-layers-DPZluciF.mjs +0 -1
  309. package/dist/web-components/imageService-DygjhKL0.mjs +0 -1
  310. package/dist/web-components/items-BSsoG42S.mjs +0 -1
  311. package/dist/web-components/label-WSQUfpL6.mjs +0 -1
  312. package/dist/web-components/logo-QdGDNl77.mjs +0 -1
  313. package/dist/web-components/part-CLteOpEJ.mjs +0 -1
  314. package/dist/web-components/rendererSurface-DKU6SaHP.mjs +0 -22
  315. package/dist/web-components/save-file-BF9IHyiG.mjs +0 -1
  316. package/dist/web-components/shared-BzLnvFn3.mjs +0 -1
  317. package/dist/web-components/styles-DbqlZvMR.mjs +0 -1
  318. package/dist/web-components/viewer/CaptionDetails-CpfNg-6d.mjs +0 -1
  319. package/dist/web-components/viewer/ControlsFade-JiHTC1PR.mjs +0 -1
  320. package/dist/web-components/viewer/Cue-Dtgk1XOR.mjs +0 -1
  321. package/dist/web-components/viewer/EntryThumbnail-DftAANer.mjs +0 -1
  322. package/dist/web-components/viewer/FrameAnimation-DljklLUX.mjs +0 -1
  323. package/dist/web-components/viewer/MapView-4SX7XTs-.mjs +0 -3
  324. package/dist/web-components/viewer/PanelPart-BiYn_NxJ.mjs +0 -1
  325. package/dist/web-components/viewer/StandaloneItems-t0PWVVTU.mjs +0 -1
  326. package/dist/web-components/viewer/overlayImage-B43PyGj2.mjs +0 -1
  327. package/dist/web-components/viewer/save-file-B9oonwkE.mjs +0 -1
  328. package/dist/web-components/viewer/styles-nU97HodU.mjs +0 -1
  329. package/dist/web-components/viewer/viewer-xpsvi-tg.mjs +0 -29
  330. package/dist/web-components/viewer/vtt-CDmiwLtu.mjs +0 -5
  331. package/dist/web-components/vtt-DRrShcvI.mjs +0 -5
@@ -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","frameRepeat":"\u7E70\u308A\u8FD4\u3057","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","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-ByrLMUQa.mjs";import{L as o}from"./Label-DElSTYS5.mjs";function n({props:r}){return e(o,{...r})}export{n as LabelElement};
@@ -1 +1 @@
1
- import{G as q,ac as j,ad as H,U as g,ae as O,af as E,B as J}from"./shared-BzLnvFn3.mjs";import{b as R}from"./imageService-DygjhKL0.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-ByrLMUQa.mjs";import{b as R}from"./imageService-BoQQvo1U.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,ae as o,ad as c}from"./shared-BzLnvFn3.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-ByrLMUQa.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-ByrLMUQa.mjs";import{L as n}from"./Provider-DWIlPOzR.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{ac as M,ae as l,U as f}from"./shared-BzLnvFn3.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};
1
+ import{ae as M,ag as l,V as f}from"./shared-ByrLMUQa.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};
@@ -1 +1 @@
1
- const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"Forrige","commonSearch":"S\xF8k","commonViewAll":"Se alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Laster inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultater","contentSearchError":"S\xF8ket kunne ikke fullf\xF8res.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilde","bodyUnloadableImage":"Dette bildet kunne ikke lastes inn.","bodyUnloadableVideo":"Denne videoen kunne ikke lastes inn.","bodyUnloadableAudio":"Denne lyden kunne ikke lastes inn.","bodyUnloadableModel":"Denne modellen kunne ikke lastes inn.","canvasRoleDescription":"zoombart bilde","canvasKeysImage":"Bruk piltastene for \xE5 flytte bildet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spille av eller pause, J eller L for \xE5 spole ti sekunder bakover eller fremover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valget av annoteringen.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastene for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere den mot h\xF8yre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visningen","statusLoading":"Laster inn\u2026","statusError":"Dette kunne ikke lastes inn.","itemsLabel":"Elementer","download":"Last ned","downloadPage":"Denne siden","downloadAll":"Alle sider","templateSidebar":"Elementer","templateSidebarToggle":"Vis elementer","templateBack":"Tilbake","templateBackTo":"Tilbake til {{label}}","collectionLabel":"Samling","itemsScrollBack":"Vis forrige elementer","itemsScrollForward":"Vis flere elementer","aboutRights":"Rettigheter","aboutDate":"Dato","aboutHomepage":"Hjemmeside","aboutSeeAlso":"Se ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"\xC5pne hele manifestet","aboutCollection":"IIIF-samling","readingLanguage":"Spr\xE5k","annotationsHide":"Skjul annoteringer","annotationsHideTip":"Skjul","readMore":"Les mer","readLess":"Les mindre","annotationsShow":"Vis p\xE5 bildet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilde","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"\xC5pne","transcriptLabel":"Transkripsjon","imageViewerOpen":"\xC5pne bildeviseren","imageViewerClose":"Lukk bildeviseren","canvasChoice":"Valg","canvasViewerControls":"Viserkontroller","canvasExpandControls":"Utvid viserkontrollene","canvasCollapseControls":"Sl\xE5 sammen viserkontrollene","canvasScrollBack":"Vis forrige kontroller","canvasScrollForward":"Vis flere kontroller","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8yre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis forrige faner","sectionsScrollForward":"Vis flere faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringer","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhold","contentsSectionsIn":"Deler av","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","informationPanelTabsTargets":"Visninger","mapUnavailable":"Kartet kunne ikke vises.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Sted {{number}}","mapOverlay":"Georeferert bilde","mapPlacesListed":"Steder oppf\xF8rt etter kartet: {{count}}","informationPanelToggle":"Mer informasjon","playerPlay":"Spill av","playerPause":"Pause","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspillingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapitler","playerFill":"Fyll rammen","playerFit":"Tilpass til rammen","frameRepeat":"Gjenta","playerCurrentTime":"N\xE5v\xE6rende tid","playerDuration":"Varighet","splitHandle":"Endre st\xF8rrelse p\xE5 panelene"}');export{e as default};
1
+ const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"Forrige","commonSearch":"S\xF8k","commonViewAll":"Se alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Laster inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultater","contentSearchError":"S\xF8ket kunne ikke fullf\xF8res.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilde","bodyUnloadableImage":"Dette bildet kunne ikke lastes inn.","bodyUnloadableVideo":"Denne videoen kunne ikke lastes inn.","bodyUnloadableAudio":"Denne lyden kunne ikke lastes inn.","bodyUnloadableModel":"Denne modellen kunne ikke lastes inn.","canvasRoleDescription":"zoombart bilde","canvasKeysImage":"Bruk piltastene for \xE5 flytte bildet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spille av eller pause, J eller L for \xE5 spole ti sekunder bakover eller fremover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valget av annoteringen.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastene for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere den mot h\xF8yre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visningen","statusLoading":"Laster inn\u2026","statusError":"Dette kunne ikke lastes inn.","itemsLabel":"Elementer","download":"Last ned","downloadPage":"Denne siden","downloadAll":"Alle sider","templateSidebar":"Elementer","templateSidebarToggle":"Vis elementer","templateBack":"Tilbake","templateBackTo":"Tilbake til {{label}}","collectionLabel":"Samling","itemsScrollBack":"Vis forrige elementer","itemsScrollForward":"Vis flere elementer","aboutRights":"Rettigheter","aboutDate":"Dato","aboutHomepage":"Hjemmeside","aboutSeeAlso":"Se ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"\xC5pne hele manifestet","aboutCollection":"IIIF-samling","readingLanguage":"Spr\xE5k","annotationsHide":"Skjul annoteringer","annotationsHideTip":"Skjul","readMore":"Les mer","readLess":"Les mindre","annotationsShow":"Vis p\xE5 bildet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilde","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"\xC5pne","transcriptLabel":"Transkripsjon","imageViewerOpen":"\xC5pne bildeviseren","imageViewerClose":"Lukk bildeviseren","canvasChoice":"Valg","canvasViewerControls":"Viserkontroller","canvasExpandControls":"Utvid viserkontrollene","canvasCollapseControls":"Sl\xE5 sammen viserkontrollene","canvasScrollBack":"Vis forrige kontroller","canvasScrollForward":"Vis flere kontroller","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8yre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis forrige faner","sectionsScrollForward":"Vis flere faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringer","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhold","contentsSectionsIn":"Deler av","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","informationPanelTabsTargets":"Visninger","mapUnavailable":"Kartet kunne ikke vises.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Sted {{number}}","mapOverlay":"Georeferert bilde","mapPlacesListed":"Steder oppf\xF8rt etter kartet: {{count}}","informationPanelToggle":"Mer informasjon","playerPlay":"Spill av","playerPause":"Pause","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspillingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapitler","playerFill":"Fyll rammen","playerFit":"Tilpass til rammen","playerCurrentTime":"N\xE5v\xE6rende tid","playerDuration":"Varighet","splitHandle":"Endre st\xF8rrelse p\xE5 panelene"}');export{e as default};
@@ -1 +1 @@
1
- const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"F\xF8rre","commonSearch":"S\xF8k","commonViewAll":"Sj\xE5 alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Lastar inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultat","contentSearchError":"S\xF8ket kunne ikkje fullf\xF8rast.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilete","bodyUnloadableImage":"Dette biletet kunne ikkje lastast inn.","bodyUnloadableVideo":"Denne videoen kunne ikkje lastast inn.","bodyUnloadableAudio":"Denne lyden kunne ikkje lastast inn.","bodyUnloadableModel":"Denne modellen kunne ikkje lastast inn.","canvasRoleDescription":"zoombart bilete","canvasKeysImage":"Bruk piltastane for \xE5 flytte biletet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visinga, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spele av eller pause, J eller L for \xE5 spole ti sekund bakover eller framover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valet av annoteringa.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastane for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visinga, og R eller Shift+R for \xE5 rotere han mot h\xF8gre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visinga","statusLoading":"Lastar inn\u2026","statusError":"Dette kunne ikkje lastast inn.","itemsLabel":"Element","download":"Last ned","downloadPage":"Denne sida","downloadAll":"Alle sider","templateSidebar":"Element","templateSidebarToggle":"Vis element","templateBack":"Tilbake","templateBackTo":"Tilbake til {{label}}","collectionLabel":"Samling","itemsScrollBack":"Vis f\xF8rre element","itemsScrollForward":"Vis fleire element","aboutRights":"Rettigheiter","aboutDate":"Dato","aboutHomepage":"Heimeside","aboutSeeAlso":"Sj\xE5 ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"Opne heile manifestet","aboutCollection":"IIIF-samling","readingLanguage":"Spr\xE5k","annotationsHide":"Skjul annoteringar","annotationsHideTip":"Skjul","readMore":"Les meir","readLess":"Les mindre","annotationsShow":"Vis p\xE5 biletet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilete","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"Opne","transcriptLabel":"Transkripsjon","imageViewerOpen":"Opne biletvisaren","imageViewerClose":"Lukk biletvisaren","canvasChoice":"Val","canvasViewerControls":"Visarkontrollar","canvasExpandControls":"Utvid visarkontrollane","canvasCollapseControls":"Sl\xE5 saman visarkontrollane","canvasScrollBack":"Vis f\xF8rre kontrollar","canvasScrollForward":"Vis fleire kontrollar","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8gre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis f\xF8rre faner","sectionsScrollForward":"Vis fleire faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringar","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhald","contentsSectionsIn":"Delar av","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","informationPanelTabsTargets":"Visingar","mapUnavailable":"Kartet kunne ikkje visast.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Stad {{number}}","mapOverlay":"Georeferert bilete","mapPlacesListed":"Stader lista opp etter kartet: {{count}}","informationPanelToggle":"Meir informasjon","playerPlay":"Spel av","playerPause":"Pause","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspelingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapittel","playerFill":"Fyll ramma","playerFit":"Tilpass til ramma","frameRepeat":"Gjenta","playerCurrentTime":"Noverande tid","playerDuration":"Varigheit","splitHandle":"Endre storleiken p\xE5 panela"}');export{e as default};
1
+ const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"F\xF8rre","commonSearch":"S\xF8k","commonViewAll":"Sj\xE5 alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Lastar inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultat","contentSearchError":"S\xF8ket kunne ikkje fullf\xF8rast.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilete","bodyUnloadableImage":"Dette biletet kunne ikkje lastast inn.","bodyUnloadableVideo":"Denne videoen kunne ikkje lastast inn.","bodyUnloadableAudio":"Denne lyden kunne ikkje lastast inn.","bodyUnloadableModel":"Denne modellen kunne ikkje lastast inn.","canvasRoleDescription":"zoombart bilete","canvasKeysImage":"Bruk piltastane for \xE5 flytte biletet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visinga, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spele av eller pause, J eller L for \xE5 spole ti sekund bakover eller framover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valet av annoteringa.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastane for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visinga, og R eller Shift+R for \xE5 rotere han mot h\xF8gre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visinga","statusLoading":"Lastar inn\u2026","statusError":"Dette kunne ikkje lastast inn.","itemsLabel":"Element","download":"Last ned","downloadPage":"Denne sida","downloadAll":"Alle sider","templateSidebar":"Element","templateSidebarToggle":"Vis element","templateBack":"Tilbake","templateBackTo":"Tilbake til {{label}}","collectionLabel":"Samling","itemsScrollBack":"Vis f\xF8rre element","itemsScrollForward":"Vis fleire element","aboutRights":"Rettigheiter","aboutDate":"Dato","aboutHomepage":"Heimeside","aboutSeeAlso":"Sj\xE5 ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"Opne heile manifestet","aboutCollection":"IIIF-samling","readingLanguage":"Spr\xE5k","annotationsHide":"Skjul annoteringar","annotationsHideTip":"Skjul","readMore":"Les meir","readLess":"Les mindre","annotationsShow":"Vis p\xE5 biletet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilete","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"Opne","transcriptLabel":"Transkripsjon","imageViewerOpen":"Opne biletvisaren","imageViewerClose":"Lukk biletvisaren","canvasChoice":"Val","canvasViewerControls":"Visarkontrollar","canvasExpandControls":"Utvid visarkontrollane","canvasCollapseControls":"Sl\xE5 saman visarkontrollane","canvasScrollBack":"Vis f\xF8rre kontrollar","canvasScrollForward":"Vis fleire kontrollar","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8gre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis f\xF8rre faner","sectionsScrollForward":"Vis fleire faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringar","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhald","contentsSectionsIn":"Delar av","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","informationPanelTabsTargets":"Visingar","mapUnavailable":"Kartet kunne ikkje visast.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Stad {{number}}","mapOverlay":"Georeferert bilete","mapPlacesListed":"Stader lista opp etter kartet: {{count}}","informationPanelToggle":"Meir informasjon","playerPlay":"Spel av","playerPause":"Pause","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspelingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapittel","playerFill":"Fyll ramma","playerFit":"Tilpass til ramma","playerCurrentTime":"Noverande tid","playerDuration":"Varigheit","splitHandle":"Endre storleiken p\xE5 panela"}');export{e as default};
@@ -1 +1 @@
1
- const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"Forrige","commonSearch":"S\xF8k","commonViewAll":"Se alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Laster inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultater","contentSearchError":"S\xF8ket kunne ikke fullf\xF8res.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilde","bodyUnloadableImage":"Dette bildet kunne ikke lastes inn.","bodyUnloadableVideo":"Denne videoen kunne ikke lastes inn.","bodyUnloadableAudio":"Denne lyden kunne ikke lastes inn.","bodyUnloadableModel":"Denne modellen kunne ikke lastes inn.","canvasRoleDescription":"zoombart bilde","canvasKeysImage":"Bruk piltastene for \xE5 flytte bildet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spille av eller pause, J eller L for \xE5 spole ti sekunder bakover eller fremover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valget av annoteringen.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastene for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere den mot h\xF8yre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visningen","statusLoading":"Laster inn\u2026","statusError":"Dette kunne ikke lastes inn.","itemsLabel":"Elementer","download":"Last ned","downloadPage":"Denne siden","downloadAll":"Alle sider","templateSidebar":"Elementer","templateSidebarToggle":"Vis elementer","templateBack":"Tilbake","templateBackTo":"Tilbake til {{label}}","collectionLabel":"Samling","itemsScrollBack":"Vis forrige elementer","itemsScrollForward":"Vis flere elementer","aboutRights":"Rettigheter","aboutDate":"Dato","aboutHomepage":"Hjemmeside","aboutSeeAlso":"Se ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"\xC5pne hele manifestet","aboutCollection":"IIIF-samling","readingLanguage":"Spr\xE5k","annotationsHide":"Skjul annoteringer","annotationsHideTip":"Skjul","readMore":"Les mer","readLess":"Les mindre","annotationsShow":"Vis p\xE5 bildet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilde","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"\xC5pne","transcriptLabel":"Transkripsjon","imageViewerOpen":"\xC5pne bildeviseren","imageViewerClose":"Lukk bildeviseren","canvasChoice":"Valg","canvasViewerControls":"Viserkontroller","canvasExpandControls":"Utvid viserkontrollene","canvasCollapseControls":"Sl\xE5 sammen viserkontrollene","canvasScrollBack":"Vis forrige kontroller","canvasScrollForward":"Vis flere kontroller","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8yre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis forrige faner","sectionsScrollForward":"Vis flere faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringer","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhold","contentsSectionsIn":"Deler av","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","informationPanelTabsTargets":"Visninger","mapUnavailable":"Kartet kunne ikke vises.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Sted {{number}}","mapOverlay":"Georeferert bilde","mapPlacesListed":"Steder oppf\xF8rt etter kartet: {{count}}","informationPanelToggle":"Mer informasjon","playerPlay":"Spill av","playerPause":"Pause","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspillingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapitler","playerFill":"Fyll rammen","playerFit":"Tilpass til rammen","frameRepeat":"Gjenta","playerCurrentTime":"N\xE5v\xE6rende tid","playerDuration":"Varighet","splitHandle":"Endre st\xF8rrelse p\xE5 panelene"}');export{e as default};
1
+ const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"Forrige","commonSearch":"S\xF8k","commonViewAll":"Se alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Laster inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultater","contentSearchError":"S\xF8ket kunne ikke fullf\xF8res.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilde","bodyUnloadableImage":"Dette bildet kunne ikke lastes inn.","bodyUnloadableVideo":"Denne videoen kunne ikke lastes inn.","bodyUnloadableAudio":"Denne lyden kunne ikke lastes inn.","bodyUnloadableModel":"Denne modellen kunne ikke lastes inn.","canvasRoleDescription":"zoombart bilde","canvasKeysImage":"Bruk piltastene for \xE5 flytte bildet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spille av eller pause, J eller L for \xE5 spole ti sekunder bakover eller fremover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valget av annoteringen.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastene for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere den mot h\xF8yre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visningen","statusLoading":"Laster inn\u2026","statusError":"Dette kunne ikke lastes inn.","itemsLabel":"Elementer","download":"Last ned","downloadPage":"Denne siden","downloadAll":"Alle sider","templateSidebar":"Elementer","templateSidebarToggle":"Vis elementer","templateBack":"Tilbake","templateBackTo":"Tilbake til {{label}}","collectionLabel":"Samling","itemsScrollBack":"Vis forrige elementer","itemsScrollForward":"Vis flere elementer","aboutRights":"Rettigheter","aboutDate":"Dato","aboutHomepage":"Hjemmeside","aboutSeeAlso":"Se ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"\xC5pne hele manifestet","aboutCollection":"IIIF-samling","readingLanguage":"Spr\xE5k","annotationsHide":"Skjul annoteringer","annotationsHideTip":"Skjul","readMore":"Les mer","readLess":"Les mindre","annotationsShow":"Vis p\xE5 bildet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilde","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"\xC5pne","transcriptLabel":"Transkripsjon","imageViewerOpen":"\xC5pne bildeviseren","imageViewerClose":"Lukk bildeviseren","canvasChoice":"Valg","canvasViewerControls":"Viserkontroller","canvasExpandControls":"Utvid viserkontrollene","canvasCollapseControls":"Sl\xE5 sammen viserkontrollene","canvasScrollBack":"Vis forrige kontroller","canvasScrollForward":"Vis flere kontroller","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8yre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis forrige faner","sectionsScrollForward":"Vis flere faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringer","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhold","contentsSectionsIn":"Deler av","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","informationPanelTabsTargets":"Visninger","mapUnavailable":"Kartet kunne ikke vises.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Sted {{number}}","mapOverlay":"Georeferert bilde","mapPlacesListed":"Steder oppf\xF8rt etter kartet: {{count}}","informationPanelToggle":"Mer informasjon","playerPlay":"Spill av","playerPause":"Pause","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspillingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapitler","playerFill":"Fyll rammen","playerFit":"Tilpass til rammen","playerCurrentTime":"N\xE5v\xE6rende tid","playerDuration":"Varighet","splitHandle":"Endre st\xF8rrelse p\xE5 panelene"}');export{e as default};
@@ -1 +1 @@
1
- import{A as i,q as f,C as p,_ as l,u as a}from"./shared-BzLnvFn3.mjs";const b={childList:true,subtree:true,attributes:true,attributeFilter:["value","label","slot","controls"]};function h(t,e,n){const r=i(null),o=f(s=>{const u=new MutationObserver(s);return u.observe(t,b),()=>u.disconnect()},[t]);return p(o,()=>{const s=e();return r.current&&n(r.current.value,s)?r.current.value:(r.current={value:s},s)})}const v=(t,e)=>[...t.children].find(n=>n.getAttribute("slot")===e)??null;function y(t,e){return h(t,()=>v(t,e),Object.is)}function C({of:t}){const e=i(null);return l(()=>{const n=e.current;if(!n)return;const r=()=>n.replaceChildren(...[...t.childNodes].map(c=>c.cloneNode(true)));r();const o=new MutationObserver(r);return o.observe(t,{childList:true,subtree:true,characterData:true,attributes:true}),()=>o.disconnect()},[t]),a("span",{ref:e,style:{display:"contents"}})}function M({from:t,stays:e}){const n=i(null);return l(()=>{const r=n.current;if(!r)return;const o=()=>{for(const s of[...t.childNodes])e(s)||r.append(s)};o();const c=new MutationObserver(o);return c.observe(t,{childList:true}),()=>{c.disconnect(),t.append(...r.childNodes)}},[t,e]),a("div",{ref:n,style:{display:"contents"}})}function O({from:t,picks:e}){const n=i(null);return l(()=>{const r=n.current;if(!r)return;let o=[];const c=()=>{const u=[...t.childNodes].filter(e);u.length&&(o=o.filter(d=>d.parentNode===r.parentNode),(o.at(-1)??r).after(...u),o.push(...u))};c();const s=new MutationObserver(c);return s.observe(t,{childList:true}),()=>{s.disconnect();for(const u of o)u.parentNode===r.parentNode&&t.append(u)}},[t,e]),a("span",{ref:n,hidden:true})}function N({value:t}){const e=i(null);return l(()=>{var n;(n=e.current)==null||n.replaceChildren(t instanceof Node?t:String(t))},[t]),a("span",{ref:e,style:{display:"contents"}})}function g(t,e){let n=t;for(const r of e){const o=t[r];typeof o=="function"&&(n={...n,[r]:(...c)=>{const s=o(...c);return s==null?s:a(N,{value:s})}})}return n}export{C,M,O as P,y as a,v as s,h as u,g as w};
1
+ import{A as i,q as f,C as p,_ as l,u as a}from"./shared-ByrLMUQa.mjs";const b={childList:true,subtree:true,attributes:true,attributeFilter:["value","label","slot","controls"]};function h(t,e,n){const r=i(null),o=f(s=>{const u=new MutationObserver(s);return u.observe(t,b),()=>u.disconnect()},[t]);return p(o,()=>{const s=e();return r.current&&n(r.current.value,s)?r.current.value:(r.current={value:s},s)})}const v=(t,e)=>[...t.children].find(n=>n.getAttribute("slot")===e)??null;function y(t,e){return h(t,()=>v(t,e),Object.is)}function C({of:t}){const e=i(null);return l(()=>{const n=e.current;if(!n)return;const r=()=>n.replaceChildren(...[...t.childNodes].map(c=>c.cloneNode(true)));r();const o=new MutationObserver(r);return o.observe(t,{childList:true,subtree:true,characterData:true,attributes:true}),()=>o.disconnect()},[t]),a("span",{ref:e,style:{display:"contents"}})}function M({from:t,stays:e}){const n=i(null);return l(()=>{const r=n.current;if(!r)return;const o=()=>{for(const s of[...t.childNodes])e(s)||r.append(s)};o();const c=new MutationObserver(o);return c.observe(t,{childList:true}),()=>{c.disconnect(),t.append(...r.childNodes)}},[t,e]),a("div",{ref:n,style:{display:"contents"}})}function O({from:t,picks:e}){const n=i(null);return l(()=>{const r=n.current;if(!r)return;let o=[];const c=()=>{const u=[...t.childNodes].filter(e);u.length&&(o=o.filter(d=>d.parentNode===r.parentNode),(o.at(-1)??r).after(...u),o.push(...u))};c();const s=new MutationObserver(c);return s.observe(t,{childList:true}),()=>{s.disconnect();for(const u of o)u.parentNode===r.parentNode&&t.append(u)}},[t,e]),a("span",{ref:n,hidden:true})}function N({value:t}){const e=i(null);return l(()=>{var n;(n=e.current)==null||n.replaceChildren(t instanceof Node?t:String(t))},[t]),a("span",{ref:e,style:{display:"contents"}})}function g(t,e){let n=t;for(const r of e){const o=t[r];typeof o=="function"&&(n={...n,[r]:(...c)=>{const s=o(...c);return s==null?s:a(N,{value:s})}})}return n}export{C,M,O as P,y as a,v as s,h as u,g as w};
@@ -1 +1 @@
1
- import{b as c,f as s}from"./imageService-DygjhKL0.mjs";import{s as a}from"./sizedImage-DAaoYkRy.mjs";async function l(r,o,i){const t=typeof r.id=="string"?r.id:void 0,e=c(r.service);if(!e)return t;try{const n=await s(e,{request:i});return a(n,o)??t}catch{return t}}export{l as overlayImageUrl};
1
+ import{b as c,f as s}from"./imageService-BoQQvo1U.mjs";import{s as a}from"./sizedImage-CyCf0GtL.mjs";async function l(r,o,i){const t=typeof r.id=="string"?r.id:void 0,e=c(r.service);if(!e)return t;try{const n=await s(e,{request:i});return a(n,o)??t}catch{return t}}export{l as overlayImageUrl};
@@ -1 +1 @@
1
- import{d as v,A as g,y as p,u as s}from"./shared-BzLnvFn3.mjs";import{T as y,P as S}from"./Panel-xCi9RT4Z.mjs";import{u as b,M as C,C as w,s as A}from"./nodes-DARyEM2G.mjs";const k=l=>[...l.children].filter(t=>t.localName==="clover-tab").map((t,e)=>{const n=t.getAttribute("value")||String(e);return{element:t,value:n,label:t.getAttribute("label")||n,labelSlot:A(t,"label")}}),E=(l,t)=>l.length===t.length&&l.every((e,n)=>e.element===t[n].element&&e.value===t[n].value&&e.label===t[n].label&&e.labelSlot===t[n].labelSlot),M=l=>l instanceof Element&&l.getAttribute("slot")==="label",a=new WeakMap;let O=0;const P=l=>(a.has(l)||a.set(l,++O),a.get(l));function T(l){const t=l.ownerDocument;for(let e=l;e&&e!==t.body;e=e.parentElement){if(!e.id)continue;const n=e.id.replace(/["\\]/g,"\\$&");if(t.querySelector(`[aria-controls~="${n}"]`)){e.hidden=true;return}}l.hidden=true}function q({hosted:l,props:t}){const e=l.element,n=b(e,()=>k(e),E),{value:r,closable:i,onValueChange:m,onClose:f,...d}=t,[h,c]=v(r),u=g(r);return p(()=>{r!==u.current&&(u.current=r,r&&c(r))},[r]),s(S,{...d,value:h,onValueChange:o=>{c(o),m(o)},onClose:i?()=>{f()&&T(e)}:void 0,children:n.length?n.map(o=>s(y,{value:o.value,label:o.labelSlot?s(w,{of:o.labelSlot}):o.label,children:s(C,{from:o.element,stays:M})},P(o.element))):null})}export{q as PanelElement};
1
+ import{d as v,A as g,y as p,u as s}from"./shared-ByrLMUQa.mjs";import{T as y,P as S}from"./Panel-CdJyJVBh.mjs";import{u as b,M as C,C as w,s as A}from"./nodes-BDyXzQhk.mjs";const k=l=>[...l.children].filter(t=>t.localName==="clover-tab").map((t,e)=>{const n=t.getAttribute("value")||String(e);return{element:t,value:n,label:t.getAttribute("label")||n,labelSlot:A(t,"label")}}),E=(l,t)=>l.length===t.length&&l.every((e,n)=>e.element===t[n].element&&e.value===t[n].value&&e.label===t[n].label&&e.labelSlot===t[n].labelSlot),M=l=>l instanceof Element&&l.getAttribute("slot")==="label",a=new WeakMap;let O=0;const P=l=>(a.has(l)||a.set(l,++O),a.get(l));function T(l){const t=l.ownerDocument;for(let e=l;e&&e!==t.body;e=e.parentElement){if(!e.id)continue;const n=e.id.replace(/["\\]/g,"\\$&");if(t.querySelector(`[aria-controls~="${n}"]`)){e.hidden=true;return}}l.hidden=true}function q({hosted:l,props:t}){const e=l.element,n=b(e,()=>k(e),E),{value:r,closable:i,onValueChange:m,onClose:f,...d}=t,[h,c]=v(r),u=g(r);return p(()=>{r!==u.current&&(u.current=r,r&&c(r))},[r]),s(S,{...d,value:h,onValueChange:o=>{c(o),m(o)},onClose:i?()=>{f()&&T(e)}:void 0,children:n.length?n.map(o=>s(y,{value:o.value,label:o.labelSlot?s(w,{of:o.labelSlot}):o.label,children:s(C,{from:o.element,stays:M})},P(o.element))):null})}export{q as PanelElement};
@@ -0,0 +1 @@
1
+ import{T as i,u as e}from"./shared-ByrLMUQa.mjs";import{w as u}from"./nodes-BDyXzQhk.mjs";function a(r,t=[]){return function({props:n}){const o=i(()=>u(n,t),[n]);return e(r,{...o})}}export{a as drawn};
@@ -1 +1 @@
1
- import{a as w,c as E,b,T as v}from"./pointer-DnJMax9Y.mjs";import{u as S}from"./useControlsVisibility-BYHbIHGH.mjs";const M=i=>{const s=new Map,p=e=>{var t;return(t=s.get(e))==null?void 0:t.forEach(r=>r())};let l=false,o=null,n=null,u=false,a=null;const d=e=>{w(e)&&(u=true)},m=e=>{a=e.isPrimary&&e.button===0&&(e.target===i||e.target===n)?{x:e.clientX,y:e.clientY,t:e.timeStamp,direct:E(e.pointerType,u)}:null},f=e=>{const t=a;a=null,!(!t||e.timeStamp-t.t>=b||Math.hypot(e.clientX-t.x,e.clientY-t.y)>v)&&!(o!=null&&o())&&!t.direct&&p("tap")},c=e=>{e!==n&&(n==null||n.remove(),n=e,n&&(Object.assign(n.style,{position:"absolute",inset:"0",width:"100%",height:"100%",objectFit:"contain"}),n.classList.add("clover-canvas-dom-media"),i.append(n)))};return i.addEventListener("pointermove",d),i.addEventListener("pointerdown",m),i.addEventListener("pointerup",f),{host:i,get isOpen(){return l},on(e,t){const r=s.get(e)??new Set;return s.set(e,r.add(t)),()=>r.delete(t)},async setImages(e,{world:t}={}){var g,y;const r=(y=(g=e.find(L=>L.media))==null?void 0:g.media)==null?void 0:y.element;c(r instanceof HTMLVideoElement?r:null),!(!t&&!e.length)&&(p(l?"change":"open"),l=true)},clear:()=>c(null),setDismiss(e){o=e},setGestures(){},dispose(){c(null),s.clear(),i.removeEventListener("pointermove",d),i.removeEventListener("pointerdown",m),i.removeEventListener("pointerup",f)}}};M.controlsVisibility=S;export{M as p};
1
+ import{a as w,c as E,b,T as v}from"./pointer-C22ufJ5w.mjs";import{u as S}from"./useControlsVisibility-Dig_1-0T.mjs";const M=i=>{const s=new Map,p=e=>{var t;return(t=s.get(e))==null?void 0:t.forEach(r=>r())};let l=false,o=null,n=null,u=false,a=null;const d=e=>{w(e)&&(u=true)},m=e=>{a=e.isPrimary&&e.button===0&&(e.target===i||e.target===n)?{x:e.clientX,y:e.clientY,t:e.timeStamp,direct:E(e.pointerType,u)}:null},f=e=>{const t=a;a=null,!(!t||e.timeStamp-t.t>=b||Math.hypot(e.clientX-t.x,e.clientY-t.y)>v)&&!(o!=null&&o())&&!t.direct&&p("tap")},c=e=>{e!==n&&(n==null||n.remove(),n=e,n&&(Object.assign(n.style,{position:"absolute",inset:"0",width:"100%",height:"100%",objectFit:"contain"}),n.classList.add("clover-canvas-dom-media"),i.append(n)))};return i.addEventListener("pointermove",d),i.addEventListener("pointerdown",m),i.addEventListener("pointerup",f),{host:i,get isOpen(){return l},on(e,t){const r=s.get(e)??new Set;return s.set(e,r.add(t)),()=>r.delete(t)},async setImages(e,{world:t}={}){var g,y;const r=(y=(g=e.find(L=>L.media))==null?void 0:g.media)==null?void 0:y.element;c(r instanceof HTMLVideoElement?r:null),!(!t&&!e.length)&&(p(l?"change":"open"),l=true)},clear:()=>c(null),setDismiss(e){o=e},setGestures(){},dispose(){c(null),s.clear(),i.removeEventListener("pointermove",d),i.removeEventListener("pointerdown",m),i.removeEventListener("pointerup",f)}}};M.controlsVisibility=S;export{M as p};
@@ -1 +1 @@
1
- var T=Object.defineProperty;var x=(e,t,n)=>t in e?T(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n;var L=(e,t,n)=>x(e,typeof t!="symbol"?t+"":t,n);import{a as m,A as M,d as h,ag as N,y as b,u as o,t as O,l as p,P as S,z as B,_ as I,q as P,C as H,R as A}from"./shared-BzLnvFn3.mjs";import{C as D}from"./glyphs-BzZKC9_8.mjs";import{B as w}from"./Button-JqNjqiWi.mjs";import"./styles-DbqlZvMR.mjs";import{T as W}from"./Tip-h4Abk6aH.mjs";import{e as _}from"./controlGlyphs-QLLc8cpa.mjs";const q=B(()=>import("./CaptionDetails-Cg-Qs1Vo.mjs"));function oe(e){var t;return!!e.summary||!!((t=e.metadata)!=null&&t.length)}const U=(e,t)=>`${e}-label-${t}`,ae=({id:e,canvases:t,comments:n,open:s,onClose:r,language:a})=>{const{t:u,langOf:c}=m(),i=M(null),[f,v]=h(s);return s&&!f&&v(true),N(s,()=>r(false)),b(()=>{var l;s&&((l=i.current)==null||l.focus())},[s]),o("figcaption",{className:"clover-canvas-caption","data-open":s,"data-testid":"clover-canvas-caption",id:e,onKeyDown:l=>{l.key!=="Escape"||l.defaultPrevented||(l.preventDefault(),l.stopPropagation(),r(true))},ref:i,tabIndex:-1,children:[o(w,{className:"clover-canvas-caption-close",id:`close-${e}`,label:u("commonClose"),lang:c("commonClose"),onClick:()=>r(true),children:o(D,{})}),t.map((l,E)=>{const d=O(l.label,a);return o("section",{className:"clover-canvas-caption-canvas",children:[d.text&&o("p",{className:"clover-canvas-caption-label",id:U(e,E),...p(d.lang),children:d.text}),f&&o(S,{fallback:null,children:o(q,{summary:l.summary,metadata:l.metadata,comments:n==null?void 0:n.get(l.id),language:a})})]},l.id)})]})},z=112,$=128;function j(e){I(()=>{const t=e==null?void 0:e.closest(".clover-canvas");if(!e||!t)return;const n=(a=false)=>{let u=e.offsetWidth,c=0;for(const d of a?[]:Array.from(e.children))!(d instanceof HTMLElement)||!d.offsetParent||(u=Math.min(u,d.offsetLeft),c=Math.max(c,d.offsetTop+d.offsetHeight));const i={width:e.offsetWidth-u,height:c};for(const[d,C]of Object.entries(i)){const y=`--clover-canvas-controls-${d}`;c?t.style.setProperty(y,`${C}px`):t.style.removeProperty(y)}const f=e.offsetTop,v=t.querySelector(":scope > .clover-canvas-media > .clover-canvas-transport"),l=t.clientHeight-2*f-i.height-((v==null?void 0:v.offsetHeight)??0),E=e.offsetLeft+u-f;c&&l<z&&E>=$?t.dataset.popups="beside":delete t.dataset.popups};n();const s=new ResizeObserver(()=>n());s.observe(e),s.observe(t);const r=new MutationObserver(()=>n());return r.observe(e,{childList:true}),r.observe(t,{childList:true}),()=>{s.disconnect(),r.disconnect(),n(true)}},[e])}const g=()=>{if(typeof document>"u")return null;const e=document;return e.fullscreenElement??e.webkitFullscreenElement??null},F=()=>{if(typeof document>"u")return false;const e=document;return!!(e.fullscreenEnabled??e.webkitFullscreenEnabled)},k=e=>{const t=e==null?void 0:e.closest(".clover-root"),n=e==null?void 0:e.closest("dialog");return t&&!(n&&t.contains(n))?t:(e==null?void 0:e.closest(".clover-canvas"))??null},K=(e,t)=>{if(typeof e.webkitEnterFullscreen!="function")return;const n=t.closest(".clover-canvas"),s=!e.isConnected&&!!n;if(s&&n){const a=e.getAttribute("style");e.style.cssText="position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:contain;pointer-events:none",n.prepend(e),e.addEventListener("webkitendfullscreen",()=>{e.remove(),a===null?e.removeAttribute("style"):e.setAttribute("style",a)},{once:true})}const r=()=>{var a;try{(a=e.webkitEnterFullscreen)==null||a.call(e)}catch{}};s?requestAnimationFrame(r):r()},Y=async(e,t)=>{var s,r,a,u;const n=k(e);if(n)try{if(g()){const i=document;await(((s=i.exitFullscreen)==null?void 0:s.call(i))??((r=i.webkitExitFullscreen)==null?void 0:r.call(i)));return}if(!F()){t&&e&&K(t,e);return}const c=n;await(((a=c.requestFullscreen)==null?void 0:a.call(c))??((u=c.webkitRequestFullscreen)==null?void 0:u.call(c)))}catch{}};function R(e){const[t,n]=h(false);return b(()=>{if(!e)return;const s=()=>{var r;return n(!!((r=g())!=null&&r.contains(e)))};return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}function ce({key:e,id:t,label:n,glyph:s,onClick:r,expanded:a,controls:u,shortcut:c,lang:i,unavailable:f},v){const l=v==null?void 0:v[e];return l?o(l,{buttonProps:{id:t,type:"button","aria-label":n,...i&&{lang:i},...c&&{"aria-keyshortcuts":c.keys},onClick:f?void 0:r,...f&&{"aria-disabled":true},...a!==void 0&&{"aria-expanded":a,"aria-controls":u}},icon:o(_,{label:n,children:s}),label:n,tip:o(W,{label:n,shortcut:c})},e):o(w,{id:t,label:n,onClick:f?void 0:r,unavailable:f,expanded:a,controls:u,shortcut:c,lang:i,children:s},e)}const le=({fit:e=false,clusterRef:t,children:n})=>{const[s,r]=h(null),a=R(s);j(s);const u=P(c=>{r(c),t==null||t(c)},[t]);return o("div",{className:"clover-canvas-controls","data-fit":e||void 0,"data-fullscreen":a,"data-testid":"clover-canvas-controls",ref:u,children:n})},V=()=>()=>{};function ie(){return H(V,F)}const ue=({hidden:e})=>{const{t,langOf:n}=m(),s=t("imageExitFullScreen");return o("button",{"aria-label":s,...p(n("imageExitFullScreen")),className:"clover-canvas-exit-full-screen",hidden:e,onClick:r=>void Y(r.currentTarget),type:"button",children:[o("svg",{viewBox:"0 0 512 512",width:"20",height:"20","aria-hidden":"true",focusable:"false",children:o("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})}),s]})};function de(e){const[t,n]=h(false);return b(()=>{if(!e)return;const s=()=>n(g()===e);return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}function fe(e){const[t,n]=h(false);return b(()=>{if(!e)return;const s=()=>{const r=g();n(r===e||!!r&&k(e)===r&&(r==null?void 0:r.querySelector(".clover-canvas"))===e)};return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}class ve extends A.Component{constructor(){super(...arguments);L(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}render(){const{error:n}=this.state;return n?o(G,{error:n}):this.props.children}}function G({error:e}){const{t,langOf:n}=m();return o("div",{className:"clover-canvas-error",role:"alert",children:[o("p",{className:"clover-canvas-error-headline","data-testid":"headline",...p(n("statusError")),children:t("statusError")}),e.message&&o("span",{className:"clover-canvas-error-body",lang:"en",children:e.message})]})}const J={image:"bodyUnloadableImage",video:"bodyUnloadableVideo",audio:"bodyUnloadableAudio",model:"bodyUnloadableModel"};function he({kind:e,shown:t,room:n=false}){const{t:s,langOf:r}=m(),a=J[e];return o("div",{className:"clover-body-unloadable","data-room":n||void 0,role:"status",children:t&&o("p",{...p(r(a)),children:s(a)})})}function pe({text:e,lang:t}){return o("div",{className:"clover-body-note","aria-hidden":"true",children:o("p",{...p(t),children:e})})}const Q=5,me=300,be=Q*4;function ge(e,t=false){return e==="touch"||e==="pen"&&!t}function Ee(e){return e.pointerType==="pen"&&e.buttons===0}function ye(e,t,n){for(let s=e;s&&s!==t;s=s.parentElement)if((n>0?s.scrollHeight-s.clientHeight-s.scrollTop:s.scrollTop)>=1&&/auto|scroll/.test(getComputedStyle(s).overflowY))return true;return false}function Le(e,t){var s;let n=e;for(;n&&n!==t;){if(n instanceof HTMLButtonElement||n instanceof HTMLAnchorElement||n instanceof HTMLInputElement||n instanceof HTMLLabelElement||n instanceof HTMLSelectElement||((s=n.dataset)==null?void 0:s.cloverCanvasInteractive)!==void 0)return true;n=n.parentElement}return false}export{he as B,le as C,be as D,ve as E,Q as T,Ee as a,me as b,ge as c,R as d,de as e,fe as f,U as g,oe as h,Le as i,ue as j,pe as k,ae as l,ce as r,ye as s,Y as t,ie as u};
1
+ var T=Object.defineProperty;var x=(e,t,n)=>t in e?T(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n;var L=(e,t,n)=>x(e,typeof t!="symbol"?t+"":t,n);import{a as m,A as M,d as h,ai as N,y as b,u as o,t as O,l as p,P as S,z as B,_ as I,q as P,C as H,R as A}from"./shared-ByrLMUQa.mjs";import{C as D}from"./glyphs-atKuagcd.mjs";import{B as w}from"./Button-qhI73GCI.mjs";import"./styles-BOXm_R8o.mjs";import{T as W}from"./Tip-mcI7IRQh.mjs";import{e as _}from"./controlGlyphs-DMQCxKaT.mjs";const q=B(()=>import("./CaptionDetails-Cl3fLJfr.mjs"));function oe(e){var t;return!!e.summary||!!((t=e.metadata)!=null&&t.length)}const U=(e,t)=>`${e}-label-${t}`,ae=({id:e,canvases:t,comments:n,open:s,onClose:r,language:a})=>{const{t:u,langOf:c}=m(),i=M(null),[f,v]=h(s);return s&&!f&&v(true),N(s,()=>r(false)),b(()=>{var l;s&&((l=i.current)==null||l.focus())},[s]),o("figcaption",{className:"clover-canvas-caption","data-open":s,"data-testid":"clover-canvas-caption",id:e,onKeyDown:l=>{l.key!=="Escape"||l.defaultPrevented||(l.preventDefault(),l.stopPropagation(),r(true))},ref:i,tabIndex:-1,children:[o(w,{className:"clover-canvas-caption-close",id:`close-${e}`,label:u("commonClose"),lang:c("commonClose"),onClick:()=>r(true),children:o(D,{})}),t.map((l,E)=>{const d=O(l.label,a);return o("section",{className:"clover-canvas-caption-canvas",children:[d.text&&o("p",{className:"clover-canvas-caption-label",id:U(e,E),...p(d.lang),children:d.text}),f&&o(S,{fallback:null,children:o(q,{summary:l.summary,metadata:l.metadata,comments:n==null?void 0:n.get(l.id),language:a})})]},l.id)})]})},z=112,$=128;function j(e){I(()=>{const t=e==null?void 0:e.closest(".clover-canvas");if(!e||!t)return;const n=(a=false)=>{let u=e.offsetWidth,c=0;for(const d of a?[]:Array.from(e.children))!(d instanceof HTMLElement)||!d.offsetParent||(u=Math.min(u,d.offsetLeft),c=Math.max(c,d.offsetTop+d.offsetHeight));const i={width:e.offsetWidth-u,height:c};for(const[d,C]of Object.entries(i)){const y=`--clover-canvas-controls-${d}`;c?t.style.setProperty(y,`${C}px`):t.style.removeProperty(y)}const f=e.offsetTop,v=t.querySelector(":scope > .clover-canvas-media > .clover-canvas-transport"),l=t.clientHeight-2*f-i.height-((v==null?void 0:v.offsetHeight)??0),E=e.offsetLeft+u-f;c&&l<z&&E>=$?t.dataset.popups="beside":delete t.dataset.popups};n();const s=new ResizeObserver(()=>n());s.observe(e),s.observe(t);const r=new MutationObserver(()=>n());return r.observe(e,{childList:true}),r.observe(t,{childList:true}),()=>{s.disconnect(),r.disconnect(),n(true)}},[e])}const g=()=>{if(typeof document>"u")return null;const e=document;return e.fullscreenElement??e.webkitFullscreenElement??null},F=()=>{if(typeof document>"u")return false;const e=document;return!!(e.fullscreenEnabled??e.webkitFullscreenEnabled)},k=e=>{const t=e==null?void 0:e.closest(".clover-root"),n=e==null?void 0:e.closest("dialog");return t&&!(n&&t.contains(n))?t:(e==null?void 0:e.closest(".clover-canvas"))??null},K=(e,t)=>{if(typeof e.webkitEnterFullscreen!="function")return;const n=t.closest(".clover-canvas"),s=!e.isConnected&&!!n;if(s&&n){const a=e.getAttribute("style");e.style.cssText="position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:contain;pointer-events:none",n.prepend(e),e.addEventListener("webkitendfullscreen",()=>{e.remove(),a===null?e.removeAttribute("style"):e.setAttribute("style",a)},{once:true})}const r=()=>{var a;try{(a=e.webkitEnterFullscreen)==null||a.call(e)}catch{}};s?requestAnimationFrame(r):r()},Y=async(e,t)=>{var s,r,a,u;const n=k(e);if(n)try{if(g()){const i=document;await(((s=i.exitFullscreen)==null?void 0:s.call(i))??((r=i.webkitExitFullscreen)==null?void 0:r.call(i)));return}if(!F()){t&&e&&K(t,e);return}const c=n;await(((a=c.requestFullscreen)==null?void 0:a.call(c))??((u=c.webkitRequestFullscreen)==null?void 0:u.call(c)))}catch{}};function R(e){const[t,n]=h(false);return b(()=>{if(!e)return;const s=()=>{var r;return n(!!((r=g())!=null&&r.contains(e)))};return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}function ce({key:e,id:t,label:n,glyph:s,onClick:r,expanded:a,controls:u,shortcut:c,lang:i,unavailable:f},v){const l=v==null?void 0:v[e];return l?o(l,{buttonProps:{id:t,type:"button","aria-label":n,...i&&{lang:i},...c&&{"aria-keyshortcuts":c.keys},onClick:f?void 0:r,...f&&{"aria-disabled":true},...a!==void 0&&{"aria-expanded":a,"aria-controls":u}},icon:o(_,{label:n,children:s}),label:n,tip:o(W,{label:n,shortcut:c})},e):o(w,{id:t,label:n,onClick:f?void 0:r,unavailable:f,expanded:a,controls:u,shortcut:c,lang:i,children:s},e)}const le=({fit:e=false,clusterRef:t,children:n})=>{const[s,r]=h(null),a=R(s);j(s);const u=P(c=>{r(c),t==null||t(c)},[t]);return o("div",{className:"clover-canvas-controls","data-fit":e||void 0,"data-fullscreen":a,"data-testid":"clover-canvas-controls",ref:u,children:n})},V=()=>()=>{};function ie(){return H(V,F)}const ue=({hidden:e})=>{const{t,langOf:n}=m(),s=t("imageExitFullScreen");return o("button",{"aria-label":s,...p(n("imageExitFullScreen")),className:"clover-canvas-exit-full-screen",hidden:e,onClick:r=>void Y(r.currentTarget),type:"button",children:[o("svg",{viewBox:"0 0 512 512",width:"20",height:"20","aria-hidden":"true",focusable:"false",children:o("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})}),s]})};function de(e){const[t,n]=h(false);return b(()=>{if(!e)return;const s=()=>n(g()===e);return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}function fe(e){const[t,n]=h(false);return b(()=>{if(!e)return;const s=()=>{const r=g();n(r===e||!!r&&k(e)===r&&(r==null?void 0:r.querySelector(".clover-canvas"))===e)};return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}class ve extends A.Component{constructor(){super(...arguments);L(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}render(){const{error:n}=this.state;return n?o(G,{error:n}):this.props.children}}function G({error:e}){const{t,langOf:n}=m();return o("div",{className:"clover-canvas-error",role:"alert",children:[o("p",{className:"clover-canvas-error-headline","data-testid":"headline",...p(n("statusError")),children:t("statusError")}),e.message&&o("span",{className:"clover-canvas-error-body",lang:"en",children:e.message})]})}const J={image:"bodyUnloadableImage",video:"bodyUnloadableVideo",audio:"bodyUnloadableAudio",model:"bodyUnloadableModel"};function he({kind:e,shown:t,room:n=false}){const{t:s,langOf:r}=m(),a=J[e];return o("div",{className:"clover-body-unloadable","data-room":n||void 0,role:"status",children:t&&o("p",{...p(r(a)),children:s(a)})})}function pe({text:e,lang:t}){return o("div",{className:"clover-body-note","aria-hidden":"true",children:o("p",{...p(t),children:e})})}const Q=5,me=300,be=Q*4;function ge(e,t=false){return e==="touch"||e==="pen"&&!t}function Ee(e){return e.pointerType==="pen"&&e.buttons===0}function ye(e,t,n){for(let s=e;s&&s!==t;s=s.parentElement)if((n>0?s.scrollHeight-s.clientHeight-s.scrollTop:s.scrollTop)>=1&&/auto|scroll/.test(getComputedStyle(s).overflowY))return true;return false}function Le(e,t){var s;let n=e;for(;n&&n!==t;){if(n instanceof HTMLButtonElement||n instanceof HTMLAnchorElement||n instanceof HTMLInputElement||n instanceof HTMLLabelElement||n instanceof HTMLSelectElement||((s=n.dataset)==null?void 0:s.cloverCanvasInteractive)!==void 0)return true;n=n.parentElement}return false}export{he as B,le as C,be as D,ve as E,Q as T,Ee as a,me as b,ge as c,R as d,de as e,fe as f,U as g,oe as h,Le as i,ue as j,pe as k,ae as l,ce as r,ye as s,Y as t,ie as u};
@@ -1 +1 @@
1
- import{u as r}from"./shared-BzLnvFn3.mjs";import{L as n,P as a}from"./Provider-DQ5Gz-Bh.mjs";import{u as i}from"./nodes-DARyEM2G.mjs";const s=t=>[...t.children].filter(e=>e.localName==="clover-logo").map(e=>({element:e,alt:e.getAttribute("alt")??void 0})),c=(t,e)=>t.length===e.length&&t.every((l,o)=>l.element===e[o].element&&l.alt===e[o].alt);function u({hosted:t,props:e}){const l=i(t.element,()=>s(t.element),c);return r(a,{...e,children:l.length?l.map((o,m)=>r(n,{alt:o.alt},m)):void 0})}export{u as ProviderElement};
1
+ import{u as r}from"./shared-ByrLMUQa.mjs";import{L as n,P as a}from"./Provider-DWIlPOzR.mjs";import{u as i}from"./nodes-BDyXzQhk.mjs";const s=t=>[...t.children].filter(e=>e.localName==="clover-logo").map(e=>({element:e,alt:e.getAttribute("alt")??void 0})),c=(t,e)=>t.length===e.length&&t.every((l,o)=>l.element===e[o].element&&l.alt===e[o].alt);function u({hosted:t,props:e}){const l=i(t.element,()=>s(t.element),c);return r(a,{...e,children:l.length?l.map((o,m)=>r(n,{alt:o.alt},m)):void 0})}export{u as ProviderElement};
@@ -1 +1 @@
1
- const a=JSON.parse('{"commonClose":"Fechar","commonNext":"Seguinte","commonPrevious":"Anterior","commonSearch":"Pesquisar","commonViewAll":"Ver tudo","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"A carregar...","contentSearchPlaceholder":"Pesquisar","contentSearchResultsNone":"Sem resultados","contentSearchResult":"1 resultado","contentSearchResults":"{{count}} resultados","contentSearchError":"N\xE3o foi poss\xEDvel concluir a pesquisa.","contentSearchPosition":"Resultado {{index}} de {{total}}","contentSearchClear":"Limpar a pesquisa","canvasPosition":"Item {{index}} de {{total}}","canvasImage":"Imagem","bodyUnloadableImage":"N\xE3o foi poss\xEDvel carregar esta imagem.","bodyUnloadableVideo":"N\xE3o foi poss\xEDvel carregar este v\xEDdeo.","bodyUnloadableAudio":"N\xE3o foi poss\xEDvel carregar este \xE1udio.","bodyUnloadableModel":"N\xE3o foi poss\xEDvel carregar este modelo.","canvasRoleDescription":"imagem ampli\xE1vel","canvasKeysImage":"Use as teclas de seta para deslocar a imagem, com Shift para ir mais longe, mais e menos para ampliar e reduzir, 0 para repor a vista, e R ou Shift+R para rodar.","canvasKeysMedia":"Prima Espa\xE7o ou K para reproduzir ou pausar, J ou L para recuar ou avan\xE7ar dez segundos, e M para silenciar ou ativar o som.","canvasKeysAnnotations":"Prima Esc para desmarcar a anota\xE7\xE3o.","sceneModel":"Modelo 3D","sceneRoleDescription":"modelo 3D rotativo","sceneKeys":"Use as teclas de seta para rodar o modelo, com Shift para ir mais longe, mais e menos para ampliar e reduzir, 0 para repor a vista, e R ou Shift+R para o rodar para a direita ou para a esquerda.","sceneRotateUp":"Rodar para cima","sceneRotateDown":"Rodar para baixo","sceneRotate":"Rodar","sceneResetView":"Repor a vista","statusLoading":"A carregar\u2026","statusError":"N\xE3o foi poss\xEDvel carregar este conte\xFAdo.","itemsLabel":"Itens","download":"Transferir","downloadPage":"Esta p\xE1gina","downloadAll":"Todas as p\xE1ginas","templateSidebar":"Itens","templateSidebarToggle":"Mostrar itens","templateBack":"Voltar","templateBackTo":"Voltar a {{label}}","collectionLabel":"Cole\xE7\xE3o","itemsScrollBack":"Mostrar itens anteriores","itemsScrollForward":"Mostrar mais itens","aboutRights":"Direitos","aboutDate":"Data","aboutHomepage":"P\xE1gina inicial","aboutSeeAlso":"Ver tamb\xE9m","aboutProvider":"Fornecedor","logo":"Log\xF3tipo","aboutManifest":"Manifesto IIIF","aboutCanvas":"Tela IIIF","aboutPartOf":"Parte de","aboutOpenManifest":"Abrir o manifesto completo","aboutCollection":"Cole\xE7\xE3o IIIF","readingLanguage":"Idioma","annotationsHide":"Ocultar anota\xE7\xF5es","annotationsHideTip":"Ocultar","readMore":"Ler mais","readLess":"Ler menos","annotationsShow":"Mostrar na imagem","annotationsShowTime":"Mostrar na grava\xE7\xE3o","annotationsImage":"Imagem","annotationsLanguage":"Idioma","annotationsOpenLink":"Abrir","transcriptLabel":"Transcri\xE7\xE3o","imageViewerOpen":"Abrir o visualizador de imagens","imageViewerClose":"Fechar o visualizador de imagens","canvasChoice":"Alternativas","canvasViewerControls":"Controlos do visualizador","canvasExpandControls":"Expandir os controlos do visualizador","canvasCollapseControls":"Recolher os controlos do visualizador","canvasScrollBack":"Mostrar controlos anteriores","canvasScrollForward":"Mostrar mais controlos","imageFullScreen":"Ecr\xE3 completo","imageExitFullScreen":"Sair do ecr\xE3 completo","imageResetZoom":"Repor o zoom","imageRotateLeft":"Rodar para a esquerda","imageRotateRight":"Rodar para a direita","imageZoomIn":"Ampliar","imageZoomOut":"Reduzir","informationPanelTabs":"Painel de informa\xE7\xF5es","sectionsScrollBack":"Mostrar separadores anteriores","sectionsScrollForward":"Mostrar mais separadores","informationPanelClose":"Fechar o painel de informa\xE7\xF5es","informationPanelTabsAbout":"Sobre","informationPanelTabsAnnotations":"Anota\xE7\xF5es","informationPanelTabsSearch":"Pesquisa","informationPanelTabsContents":"Conte\xFAdo","contentsSectionsIn":"Sec\xE7\xF5es de","informationPanelTabsMap":"Mapa","informationPanelTabsCollection":"Cole\xE7\xE3o","informationPanelTabsTargets":"Vistas","mapUnavailable":"N\xE3o foi poss\xEDvel mostrar o mapa.","mapLabel":"Mapa","mapAttribution":"Cr\xE9ditos do mapa","mapPlaceUntitled":"Local {{number}}","mapOverlay":"Imagem georreferenciada","mapPlacesListed":"Locais listados depois do mapa: {{count}}","informationPanelToggle":"Mais informa\xE7\xF5es","playerPlay":"Reproduzir","playerPause":"Pausar","playerMute":"Silenciar","playerUnmute":"Ativar o som","playerVolume":"Volume","playerSeek":"Posi\xE7\xE3o de reprodu\xE7\xE3o","playerCaptions":"Legendas","playerCaptionsOff":"Desativadas","playerChapters":"Cap\xEDtulos","playerFill":"Preencher o enquadramento","playerFit":"Ajustar ao enquadramento","frameRepeat":"Repetir","playerCurrentTime":"Tempo atual","playerDuration":"Dura\xE7\xE3o","splitHandle":"Redimensionar os pain\xE9is"}');export{a as default};
1
+ const a=JSON.parse('{"commonClose":"Fechar","commonNext":"Seguinte","commonPrevious":"Anterior","commonSearch":"Pesquisar","commonViewAll":"Ver tudo","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"A carregar...","contentSearchPlaceholder":"Pesquisar","contentSearchResultsNone":"Sem resultados","contentSearchResult":"1 resultado","contentSearchResults":"{{count}} resultados","contentSearchError":"N\xE3o foi poss\xEDvel concluir a pesquisa.","contentSearchPosition":"Resultado {{index}} de {{total}}","contentSearchClear":"Limpar a pesquisa","canvasPosition":"Item {{index}} de {{total}}","canvasImage":"Imagem","bodyUnloadableImage":"N\xE3o foi poss\xEDvel carregar esta imagem.","bodyUnloadableVideo":"N\xE3o foi poss\xEDvel carregar este v\xEDdeo.","bodyUnloadableAudio":"N\xE3o foi poss\xEDvel carregar este \xE1udio.","bodyUnloadableModel":"N\xE3o foi poss\xEDvel carregar este modelo.","canvasRoleDescription":"imagem ampli\xE1vel","canvasKeysImage":"Use as teclas de seta para deslocar a imagem, com Shift para ir mais longe, mais e menos para ampliar e reduzir, 0 para repor a vista, e R ou Shift+R para rodar.","canvasKeysMedia":"Prima Espa\xE7o ou K para reproduzir ou pausar, J ou L para recuar ou avan\xE7ar dez segundos, e M para silenciar ou ativar o som.","canvasKeysAnnotations":"Prima Esc para desmarcar a anota\xE7\xE3o.","sceneModel":"Modelo 3D","sceneRoleDescription":"modelo 3D rotativo","sceneKeys":"Use as teclas de seta para rodar o modelo, com Shift para ir mais longe, mais e menos para ampliar e reduzir, 0 para repor a vista, e R ou Shift+R para o rodar para a direita ou para a esquerda.","sceneRotateUp":"Rodar para cima","sceneRotateDown":"Rodar para baixo","sceneRotate":"Rodar","sceneResetView":"Repor a vista","statusLoading":"A carregar\u2026","statusError":"N\xE3o foi poss\xEDvel carregar este conte\xFAdo.","itemsLabel":"Itens","download":"Transferir","downloadPage":"Esta p\xE1gina","downloadAll":"Todas as p\xE1ginas","templateSidebar":"Itens","templateSidebarToggle":"Mostrar itens","templateBack":"Voltar","templateBackTo":"Voltar a {{label}}","collectionLabel":"Cole\xE7\xE3o","itemsScrollBack":"Mostrar itens anteriores","itemsScrollForward":"Mostrar mais itens","aboutRights":"Direitos","aboutDate":"Data","aboutHomepage":"P\xE1gina inicial","aboutSeeAlso":"Ver tamb\xE9m","aboutProvider":"Fornecedor","logo":"Log\xF3tipo","aboutManifest":"Manifesto IIIF","aboutCanvas":"Tela IIIF","aboutPartOf":"Parte de","aboutOpenManifest":"Abrir o manifesto completo","aboutCollection":"Cole\xE7\xE3o IIIF","readingLanguage":"Idioma","annotationsHide":"Ocultar anota\xE7\xF5es","annotationsHideTip":"Ocultar","readMore":"Ler mais","readLess":"Ler menos","annotationsShow":"Mostrar na imagem","annotationsShowTime":"Mostrar na grava\xE7\xE3o","annotationsImage":"Imagem","annotationsLanguage":"Idioma","annotationsOpenLink":"Abrir","transcriptLabel":"Transcri\xE7\xE3o","imageViewerOpen":"Abrir o visualizador de imagens","imageViewerClose":"Fechar o visualizador de imagens","canvasChoice":"Alternativas","canvasViewerControls":"Controlos do visualizador","canvasExpandControls":"Expandir os controlos do visualizador","canvasCollapseControls":"Recolher os controlos do visualizador","canvasScrollBack":"Mostrar controlos anteriores","canvasScrollForward":"Mostrar mais controlos","imageFullScreen":"Ecr\xE3 completo","imageExitFullScreen":"Sair do ecr\xE3 completo","imageResetZoom":"Repor o zoom","imageRotateLeft":"Rodar para a esquerda","imageRotateRight":"Rodar para a direita","imageZoomIn":"Ampliar","imageZoomOut":"Reduzir","informationPanelTabs":"Painel de informa\xE7\xF5es","sectionsScrollBack":"Mostrar separadores anteriores","sectionsScrollForward":"Mostrar mais separadores","informationPanelClose":"Fechar o painel de informa\xE7\xF5es","informationPanelTabsAbout":"Sobre","informationPanelTabsAnnotations":"Anota\xE7\xF5es","informationPanelTabsSearch":"Pesquisa","informationPanelTabsContents":"Conte\xFAdo","contentsSectionsIn":"Sec\xE7\xF5es de","informationPanelTabsMap":"Mapa","informationPanelTabsCollection":"Cole\xE7\xE3o","informationPanelTabsTargets":"Vistas","mapUnavailable":"N\xE3o foi poss\xEDvel mostrar o mapa.","mapLabel":"Mapa","mapAttribution":"Cr\xE9ditos do mapa","mapPlaceUntitled":"Local {{number}}","mapOverlay":"Imagem georreferenciada","mapPlacesListed":"Locais listados depois do mapa: {{count}}","informationPanelToggle":"Mais informa\xE7\xF5es","playerPlay":"Reproduzir","playerPause":"Pausar","playerMute":"Silenciar","playerUnmute":"Ativar o som","playerVolume":"Volume","playerSeek":"Posi\xE7\xE3o de reprodu\xE7\xE3o","playerCaptions":"Legendas","playerCaptionsOff":"Desativadas","playerChapters":"Cap\xEDtulos","playerFill":"Preencher o enquadramento","playerFit":"Ajustar ao enquadramento","playerCurrentTime":"Tempo atual","playerDuration":"Dura\xE7\xE3o","splitHandle":"Redimensionar os pain\xE9is"}');export{a as default};
@@ -1 +1 @@
1
- import{U as c,az as l,ad as g,aA as v,M as E}from"./shared-BzLnvFn3.mjs";const b=t=>t&&typeof t=="object"?Object.entries(t).flatMap(([i,r])=>c(r).filter(s=>typeof s=="string").map(s=>({value:s,...i!=="none"?{language:i}:{}}))):typeof t=="string"?[{value:t}]:[],a=new WeakMap;function O(t){if(!t)return null;if(a.has(t))return a.get(t);const i=[],r=new Set,s=n=>{if(!n||r.has(n.id??n))return;r.add(n.id??n);const w=typeof n.id=="string"&&!c(n.behavior).includes("no-nav"),d=b(n.label),h=c(n.items).filter(o=>(o==null?void 0:o.type)!=="Range"&&g(v(o)).id).length;let x=0;for(const o of c(n.items)){if((o==null?void 0:o.type)==="Range"){s(o);continue}const e=g(v(o));if(!e.id)continue;const f=x++;if(!w||!e.rect)continue;const{x:T,y:I,w:S,h:$}=e.rect,u=E(n.id,f);i.push({id:u,setId:l,canvasId:e.id,target:{id:e.id,rect:e.rect},motivation:["highlighting"],bodies:d,...h>1?{place:{index:f+1,total:h}}:{},annotation:{id:u,type:"Annotation",motivation:["highlighting"],...d.length&&{body:d.map(({value:A,language:y})=>({type:"TextualBody",value:A,...y?{language:y}:{}}))},target:`${e.id}#xywh=${T},${I},${S},${$}`}})}};c(t.structures).forEach(s);const p=i.length?{id:l,source:"contents",entries:i}:null;return a.set(t,p),p}export{O as contentsSet};
1
+ import{V as c,aC as l,af as g,aD as v,N as b}from"./shared-ByrLMUQa.mjs";const A=t=>t&&typeof t=="object"?Object.entries(t).flatMap(([i,r])=>c(r).filter(s=>typeof s=="string").map(s=>({value:s,...i!=="none"?{language:i}:{}}))):typeof t=="string"?[{value:t}]:[],a=new WeakMap;function O(t){if(!t)return null;if(a.has(t))return a.get(t);const i=[],r=new Set,s=n=>{if(!n||r.has(n.id??n))return;r.add(n.id??n);const w=typeof n.id=="string"&&!c(n.behavior).includes("no-nav"),d=A(n.label),f=c(n.items).filter(o=>(o==null?void 0:o.type)!=="Range"&&g(v(o)).id).length;let x=0;for(const o of c(n.items)){if((o==null?void 0:o.type)==="Range"){s(o);continue}const e=g(v(o));if(!e.id)continue;const h=x++;if(!w||!e.rect)continue;const{x:T,y:I,w:S,h:$}=e.rect,u=b(n.id,h);i.push({id:u,setId:l,canvasId:e.id,target:{id:e.id,rect:e.rect},motivation:["highlighting"],bodies:d,...f>1?{place:{index:h+1,total:f}}:{},annotation:{id:u,type:"Annotation",motivation:["highlighting"],...d.length&&{body:d.map(({value:E,language:y})=>({type:"TextualBody",value:E,...y?{language:y}:{}}))},target:`${e.id}#xywh=${T},${I},${S},${$}`}})}};c(t.structures).forEach(s);const p=i.length?{id:l,source:"contents",entries:i}:null;return a.set(t,p),p}export{O as contentsSet};
@@ -1 +1 @@
1
- import{a as m,a5 as f,b,A as p,_ as n,u as v,l as g}from"./shared-BzLnvFn3.mjs";import{u as L}from"./ReadMore-D4zZ4ZJ5.mjs";import{u as A}from"./nodes-DARyEM2G.mjs";const M=o=>[...o.children].find(r=>!r.classList.contains("clover-read-more-button"))??null;function k({hosted:o}){const r=o.element,e=A(r,()=>M(r),Object.is),{t:s}=m(),i=f(),a=b(),l=p(null);l.current=e;const{open:t,cut:c,toggle:d}=L(l);return n(()=>(r.classList.add("clover-read-more"),()=>r.classList.remove("clover-read-more")),[r]),n(()=>{if(!e)return;const u=e.id;return u||(e.id=a),()=>{u||e.removeAttribute("id"),e.removeAttribute("data-read-more")}},[e,a]),n(()=>{e==null||e.setAttribute("data-read-more",t?"open":"")},[e,t]),!e||!(c||t)?null:v("button",{type:"button",className:"clover-read-more-button","aria-expanded":t,"aria-controls":e.id||a,onClick:d,ref:i.ref,...g(i.langOf(t?"readLess":"readMore")),children:s(t?"readLess":"readMore")})}export{k as ReadMoreElement};
1
+ import{a as m,a7 as f,b,A as p,_ as n,u as v,l as g}from"./shared-ByrLMUQa.mjs";import{u as L}from"./ReadMore-f34RbHMm.mjs";import{u as A}from"./nodes-BDyXzQhk.mjs";const M=o=>[...o.children].find(r=>!r.classList.contains("clover-read-more-button"))??null;function k({hosted:o}){const r=o.element,e=A(r,()=>M(r),Object.is),{t:s}=m(),i=f(),a=b(),l=p(null);l.current=e;const{open:t,cut:c,toggle:d}=L(l);return n(()=>(r.classList.add("clover-read-more"),()=>r.classList.remove("clover-read-more")),[r]),n(()=>{if(!e)return;const u=e.id;return u||(e.id=a),()=>{u||e.removeAttribute("id"),e.removeAttribute("data-read-more")}},[e,a]),n(()=>{e==null||e.setAttribute("data-read-more",t?"open":"")},[e,t]),!e||!(c||t)?null:v("button",{type:"button",className:"clover-read-more-button","aria-expanded":t,"aria-controls":e.id||a,onClick:d,ref:i.ref,...g(i.langOf(t?"readLess":"readMore")),children:s(t?"readLess":"readMore")})}export{k as ReadMoreElement};
@@ -1 +1 @@
1
- import{t as c,e as l,c as u,T as g,G as m,O as y}from"./shared-BzLnvFn3.mjs";const i=e=>e&&typeof e=="object"&&!Array.isArray(e)?Object.keys(e).filter(n=>n!=="none"&&n!=="@none"&&c({[n]:e[n]}).text):[];function b(e){if(!e)return[];const n=[...Array.isArray(e.metadata)?e.metadata:[],e.requiredStatement].filter(Boolean),a=[e.label,e.summary,...n.flatMap(s=>[s==null?void 0:s.label,s==null?void 0:s.value])].map(i).filter(s=>s.length>1);return[...new Set(a.flat())]}function L(){const{language:e,chooseLanguage:n,toggleDrawn:t}=l("About"),a=u(r=>r.manifest),s=g(()=>b(a),[a]),o=m(s,e);return o&&n?{languages:s,chosen:o,onChange:n,drawn:t??false}:null}function h(e,n){return e!=null&&e.drawn?n.every(t=>!!t&&t!=="none"&&e.languages.some(a=>y(a,t))):false}export{h as c,L as u};
1
+ import{t as c,e as l,c as u,T as g,G as m,S as y}from"./shared-ByrLMUQa.mjs";const i=e=>e&&typeof e=="object"&&!Array.isArray(e)?Object.keys(e).filter(n=>n!=="none"&&n!=="@none"&&c({[n]:e[n]}).text):[];function b(e){if(!e)return[];const n=[...Array.isArray(e.metadata)?e.metadata:[],e.requiredStatement].filter(Boolean),a=[e.label,e.summary,...n.flatMap(s=>[s==null?void 0:s.label,s==null?void 0:s.value])].map(i).filter(s=>s.length>1);return[...new Set(a.flat())]}function L(){const{language:e,chooseLanguage:n,toggleDrawn:t}=l("About"),a=u(r=>r.manifest),s=g(()=>b(a),[a]),o=m(s,e);return o&&n?{languages:s,chosen:o,onChange:n,drawn:t??false}:null}function h(e,n){return e!=null&&e.drawn?n.every(t=>!!t&&t!=="none"&&e.languages.some(a=>y(a,t))):false}export{h as c,L as u};
@@ -0,0 +1,22 @@
1
+ var Bt=Object.defineProperty;var Ot=(n,t,e)=>t in n?Bt(n,t,{enumerable:true,configurable:true,writable:true,value:e}):n[t]=e;var h=(n,t,e)=>Ot(n,typeof t!="symbol"?t+"":t,e);import{c as Ct,r as et}from"./contexts-ByL3eA_T.mjs";import{c as A,s as I,t as S,a as Dt,u as D,i as zt,b as Et,d as kt,e as Ut,r as Wt,f as C,g as Ft}from"./CanvasView-B752g1bm.mjs";import{a as z,w as Nt,v as q,f as Ht,s as it,b as st,c as Zt}from"./Camera-D2MnETlC.mjs";import{i as nt,a as Gt,T as Xt,b as ot,c as rt,D as Kt,s as qt}from"./pointer-C22ufJ5w.mjs";import{a4 as Vt,a5 as Yt,a6 as $t}from"./shared-ByrLMUQa.mjs";import{a as Qt,i as at,f as jt}from"./imageService-BoQQvo1U.mjs";function Jt(n){return typeof HTMLImageElement<"u"&&n instanceof HTMLImageElement?n.complete&&n.naturalWidth>0:true}function te(n,t){if(!n.bleed)return{x:0,y:0};const e=n.transform,i=Math.hypot(e.a,e.b)*t,s=Math.hypot(e.c,e.d)*t;return{x:n.bleed.right&&i>0?1/i:0,y:n.bleed.bottom&&s>0?1/s:0}}const ee=`#version 300 es
2
+ in vec2 a_position;
3
+ uniform mat3 u_matrix;
4
+ uniform vec4 u_crop;
5
+ out vec2 v_uv;
6
+
7
+ void main() {
8
+ vec3 clip = u_matrix * vec3(a_position, 1.0);
9
+ gl_Position = vec4(clip.xy, 0.0, 1.0);
10
+ v_uv = u_crop.xy + a_position * u_crop.zw;
11
+ }
12
+ `,ie=-.5,se=`#version 300 es
13
+ precision highp float;
14
+ in vec2 v_uv;
15
+ uniform sampler2D u_texture;
16
+ uniform float u_opacity;
17
+ out vec4 outColor;
18
+
19
+ void main() {
20
+ outColor = texture(u_texture, v_uv, ${ie.toFixed(1)}) * u_opacity;
21
+ }
22
+ `;class U{constructor(t,e,i){h(this,"kind","webgl2");h(this,"canvas");h(this,"maxTextureSize");h(this,"gl");h(this,"program",null);h(this,"vao",null);h(this,"uniforms",{matrix:null,crop:null,opacity:null,texture:null});h(this,"textures",new Map);h(this,"cssWidth",1);h(this,"cssHeight",1);h(this,"pixelRatio",1);h(this,"matrixScratch",new Float32Array(9));h(this,"isLost",false);h(this,"callbacks");h(this,"handleLost",()=>{var t2,e2;this.isLost=true,this.textures.clear(),(e2=(t2=this.callbacks).onLost)==null||e2.call(t2)});this.canvas=t,this.gl=e,this.callbacks=i,this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)||4096;const s=ne(e,ee,se);this.program=s,this.uniforms={matrix:e.getUniformLocation(s,"u_matrix"),crop:e.getUniformLocation(s,"u_crop"),opacity:e.getUniformLocation(s,"u_opacity"),texture:e.getUniformLocation(s,"u_texture")};const o=e.createVertexArray();e.bindVertexArray(o);const r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),e.STATIC_DRAW);const a=e.getAttribLocation(s,"a_position");e.enableVertexAttribArray(a),e.vertexAttribPointer(a,2,e.FLOAT,false,0,0),e.bindVertexArray(null),this.vao=o,e.enable(e.BLEND),e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,true),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,false),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.BROWSER_DEFAULT_WEBGL),t.addEventListener("webglcontextlost",this.handleLost)}static create(t,e={}){let i=null;try{i=t.getContext("webgl2",{alpha:true,premultipliedAlpha:true,antialias:false,depth:false,stencil:false,preserveDrawingBuffer:false})}catch{i=null}if(!i||typeof i.createShader!="function")return null;try{return new U(t,i,e)}catch{return null}}resize(t,e,i){this.cssWidth=Math.max(1,t),this.cssHeight=Math.max(1,e),this.pixelRatio=i;const s=Math.max(1,Math.round(t*i)),o=Math.max(1,Math.round(e*i));this.canvas.width!==s&&(this.canvas.width=s),this.canvas.height!==o&&(this.canvas.height=o)}begin(){if(this.isLost)return;const t=this.gl;t.viewport(0,0,this.canvas.width,this.canvas.height),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(this.program),t.bindVertexArray(this.vao),t.activeTexture(t.TEXTURE0),t.uniform1i(this.uniforms.texture,0)}draw(t){if(this.isLost||!Jt(t.source))return"skipped";const e=this.gl,i=this.upload(t);if(i==="tainted")return"tainted";if(!i)return"skipped";const s=t.crop??{x:0,y:0,width:t.width,height:t.height},o=te(t,this.pixelRatio),r=A(t.transform,S(s.x,s.y),I(s.width+o.x,s.height+o.y));return e.uniformMatrix3fv(this.uniforms.matrix,false,Dt(r,this.cssWidth,this.cssHeight,this.matrixScratch)),e.uniform4f(this.uniforms.crop,s.x/t.width,s.y/t.height,s.width/t.width,s.height/t.height),e.uniform1f(this.uniforms.opacity,t.opacity),e.bindTexture(e.TEXTURE_2D,i.texture),e.drawArrays(e.TRIANGLE_STRIP,0,4),"drawn"}end(){this.isLost||this.gl.bindVertexArray(null)}has(t){return!this.isLost&&this.textures.has(t)}release(t){const e=this.textures.get(t);e&&(this.isLost||this.gl.deleteTexture(e.texture),this.textures.delete(t))}dispose(){var t;if(this.canvas.removeEventListener("webglcontextlost",this.handleLost),!this.isLost){for(const e of[...this.textures.keys()])this.release(e);this.program&&this.gl.deleteProgram(this.program),this.vao&&this.gl.deleteVertexArray(this.vao)}this.textures.clear(),(t=this.gl.getExtension("WEBGL_lose_context"))==null||t.loseContext(),this.isLost=true}upload(t){const e=this.gl,i=this.textures.get(t.key);if(i&&i.width===t.width&&i.height===t.height)return i;const s=(i==null?void 0:i.texture)??e.createTexture();if(!s)return null;e.bindTexture(e.TEXTURE_2D,s);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t.source)}catch(r){if(i||e.deleteTexture(s),oe(r))return"tainted";throw r}e.generateMipmap(e.TEXTURE_2D),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);const o={texture:s,width:t.width,height:t.height};return this.textures.set(t.key,o),o}}function ne(n,t,e){const i=ht(n,n.VERTEX_SHADER,t),s=ht(n,n.FRAGMENT_SHADER,e),o=n.createProgram();if(!o)throw new Error("Could not create WebGL program");if(n.attachShader(o,i),n.attachShader(o,s),n.linkProgram(o),n.deleteShader(i),n.deleteShader(s),!n.getProgramParameter(o,n.LINK_STATUS)){const r=n.getProgramInfoLog(o);throw n.deleteProgram(o),new Error(`Could not link WebGL program: ${r}`)}return o}function ht(n,t,e){const i=n.createShader(t);if(!i)throw new Error("Could not create WebGL shader");if(n.shaderSource(i,e),n.compileShader(i),!n.getShaderParameter(i,n.COMPILE_STATUS)){const s=n.getShaderInfoLog(i);throw n.deleteShader(i),new Error(`Could not compile WebGL shader: ${s}`)}return i}function oe(n){return typeof n=="object"&&n!==null&&n.name==="SecurityError"}const re=.09,ae=1e-4,ct=.05,he=1e-4;class ce{constructor(t,e=re,i){h(this,"current");h(this,"target",null);h(this,"timeConstant");h(this,"spring");h(this,"start");h(this,"elapsed",0);this.current={...t},this.start={...t},this.timeConstant=e,this.spring=i}get destination(){return this.target?{...this.target.state}:{...this.current}}set(t){this.current={...t},this.target=null}animateTo(t,e,i=false){const s=this.spring?this.spring.duration<=0:this.timeConstant===0;if(i||s){this.set(t.state);return}let o=t.anchor;if(o){const r=z(o.world,o.screen,t.state.zoom,t.state.rotation,e);Math.hypot(r.x-t.state.x,r.y-t.state.y)*t.state.zoom>ct&&(o=void 0)}this.start={...this.current},this.elapsed=0,this.target={state:{...t.state},anchor:o}}stop(){this.target=null}step(t,e){const i=this.target;if(!i)return false;const s=i.state;let o,r;if(this.spring){this.elapsed+=Math.max(t,0);const g=this.elapsed/this.spring.duration;if(g>=1)return this.current={...s},this.target=null,false;const p=this.spring.stiffness;o=this.start,r=(1-Math.exp(-p*g))/(1-Math.exp(-p))}else o=this.current,r=1-Math.exp(-Math.max(t,0)/this.timeConstant);const a=Math.exp(Math.log(o.zoom)+(Math.log(s.zoom)-Math.log(o.zoom))*r),u=o.rotation+(s.rotation-o.rotation)*r,c=i.anchor?z(i.anchor.world,i.anchor.screen,a,u,e):{x:o.x+(s.x-o.x)*r,y:o.y+(s.y-o.y)*r};return this.current={x:c.x,y:c.y,zoom:a,rotation:u},this.spring?true:Math.abs(Math.log(s.zoom/a))<ae&&Math.abs(s.rotation-u)<he&&Math.hypot(s.x-c.x,s.y-c.y)*a<ct?(this.current={...s},this.target=null,false):true}}const V={clickToZoom:true,dblClickToZoom:true,pinchToZoom:true,scrollToZoom:false,navigable:true,flickEnabled:true,flickMinSpeed:200,flickMomentum:.25},N=2,lt=1.5,dt=.1,le=100,de=.002,ue=.01;class fe{constructor(t,e,i=V){h(this,"pointers",new Map);h(this,"samples",[]);h(this,"down",null);h(this,"pinch",null);h(this,"lastTap",null);h(this,"lastPointerType","");h(this,"penHovers",false);h(this,"onPointerDown",t2=>{var i2,s;if(this.lastPointerType=t2.pointerType,t2.pointerType==="mouse"&&t2.button!==0||nt(t2.target,this.element))return;(s=(i2=this.element).setPointerCapture)==null||s.call(i2,t2.pointerId);const e2=this.local(t2);this.pointers.set(t2.pointerId,e2),this.pointers.size===1?(this.down={x:e2.x,y:e2.y,t:t2.timeStamp,moved:false},this.samples=[{x:e2.x,y:e2.y,t:t2.timeStamp}],this.target.setInteracting(true)):this.pointers.size===2&&(this.pinch=this.pinchState(),this.down&&(this.down.moved=true))});h(this,"onPointerMove",t2=>{var s;Gt(t2)&&(this.penHovers=true);const e2=this.pointers.get(t2.pointerId);if(!e2)return;const i2=this.local(t2);if(this.pointers.set(t2.pointerId,i2),this.pointers.size===1){const o=i2.x-e2.x,r=i2.y-e2.y;this.down&&Math.hypot(i2.x-this.down.x,i2.y-this.down.y)>Xt&&(this.down.moved=true),(s=this.down)!=null&&s.moved&&this.options.navigable&&this.target.panBy(o,r,!this.tracksPointer(t2.pointerType)),this.samples.push({x:i2.x,y:i2.y,t:t2.timeStamp});const a=t2.timeStamp-le;for(;this.samples.length>2&&this.samples[0].t<a;)this.samples.shift()}else if(this.pointers.size===2&&this.pinch&&this.options.navigable){const o=this.pinchState();this.options.pinchToZoom&&this.pinch.distance>0&&this.target.zoomBy(o.distance/this.pinch.distance,o.mid,false),this.target.panBy(o.mid.x-this.pinch.mid.x,o.mid.y-this.pinch.mid.y,false),this.pinch=o}});h(this,"onPointerUp",t2=>{var u,c,m,g,p,l;if(!this.pointers.has(t2.pointerId))return;if(this.pointers.delete(t2.pointerId),(c=(u=this.element).releasePointerCapture)==null||c.call(u,t2.pointerId),this.pointers.size===1){this.pinch=null;const[d]=this.pointers.values();this.samples=[{...d,t:t2.timeStamp}];return}if(this.pointers.size>0)return;const e2=this.down;if(this.down=null,this.pinch=null,this.target.setInteracting(false),!e2)return;const i2=this.local(t2);if(!e2.moved&&t2.type==="pointerup"&&t2.timeStamp-e2.t<ot){if((g=(m=this.target).dismiss)!=null&&g.call(m)){this.lastTap=null;return}if(rt(t2.pointerType,this.penHovers)){const d=this.lastTap;this.options.navigable&&(this.options.clickToZoom||this.options.dblClickToZoom)&&d&&t2.timeStamp-d.t<ot&&Math.hypot(i2.x-d.x,i2.y-d.y)<Kt?(this.lastTap=null,this.zoomIn(i2)):this.lastTap={x:i2.x,y:i2.y,t:t2.timeStamp};return}this.options.clickToZoom&&this.options.navigable?t2.shiftKey?this.target.zoomBy(1/N,i2,true):this.zoomIn(i2):(l=(p=this.target).tap)==null||l.call(p,i2);return}if(!this.options.navigable||!this.tracksPointer(t2.pointerType))return;const o=this.samples[0],r=this.samples[this.samples.length-1],a=((r==null?void 0:r.t)??0)-((o==null?void 0:o.t)??0);if(o&&r&&a>0&&t2.timeStamp-r.t<50){const d=(r.x-o.x)/a*1e3,w=(r.y-o.y)/a*1e3,f=this.options.flickMomentum;f>0&&Math.hypot(d,w)>this.options.flickMinSpeed&&this.target.panBy(d*f,w*f,true)}});h(this,"onDoubleClick",t2=>{this.options.navigable&&(this.options.clickToZoom||!this.options.dblClickToZoom||rt(this.lastPointerType,this.penHovers)||nt(t2.target,this.element)||(t2.shiftKey?this.target.zoomBy(1/N,this.local(t2),true):this.zoomIn(this.local(t2))))});h(this,"onWheel",t2=>{const e2=t2.ctrlKey;if(!this.options.navigable||!e2&&!this.options.scrollToZoom||!e2&&qt(t2.target,this.element,t2.deltaY))return;t2.preventDefault();const i2=me(t2),s=e2?ue:de;this.target.zoomBy(Math.exp(-i2*s),this.local(t2),!e2)});h(this,"onKeyDown",t2=>{if(t2.target!==this.element||!this.options.navigable||t2.altKey||t2.metaKey||t2.ctrlKey)return;const e2=this.element.getBoundingClientRect(),i2=e2.width*dt*(t2.shiftKey?3:1),s=e2.height*dt*(t2.shiftKey?3:1);switch(t2.key){case"ArrowLeft":this.target.panBy(i2,0,true);break;case"ArrowRight":this.target.panBy(-i2,0,true);break;case"ArrowUp":this.target.panBy(0,s,true);break;case"ArrowDown":this.target.panBy(0,-s,true);break;case"+":case"=":this.target.zoomBy(lt,void 0,true);break;case"-":case"_":this.target.zoomBy(1/lt,void 0,true);break;case"0":this.target.home();break;case"r":this.target.rotateBy(90);break;case"R":this.target.rotateBy(-90);break;default:return}t2.preventDefault()});this.element=t,this.target=e,this.options=i,t.addEventListener("pointerdown",this.onPointerDown),t.addEventListener("pointermove",this.onPointerMove),t.addEventListener("pointerup",this.onPointerUp),t.addEventListener("pointercancel",this.onPointerUp),t.addEventListener("dblclick",this.onDoubleClick),t.addEventListener("wheel",this.onWheel,{passive:false}),t.addEventListener("keydown",this.onKeyDown)}setOptions(t){this.options=t}dispose(){const t=this.element;t.removeEventListener("pointerdown",this.onPointerDown),t.removeEventListener("pointermove",this.onPointerMove),t.removeEventListener("pointerup",this.onPointerUp),t.removeEventListener("pointercancel",this.onPointerUp),t.removeEventListener("dblclick",this.onDoubleClick),t.removeEventListener("wheel",this.onWheel),t.removeEventListener("keydown",this.onKeyDown)}local(t){const e=this.element.getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}}zoomIn(t){var e,i;(i=(e=this.target).atMaxZoom)!=null&&i.call(e)?this.target.home():this.target.zoomBy(N,t,true)}tracksPointer(t){return t==="touch"||this.options.flickEnabled}pinchState(){const[t,e]=[...this.pointers.values()];return{distance:Math.hypot(e.x-t.x,e.y-t.y),mid:{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}}}function me(n){return n.deltaMode===1?n.deltaY*16:n.deltaMode===2?n.deltaY*400:n.deltaY}class Lt extends Error{constructor(t,e,i){super(t),this.url=e,this.status=i,this.name="ImageLoadError"}}const ut=new Set;async function pe(n,t={}){const{signal:e,maxTextureSize:i,request:s}=t,o=Vt(s),r=we(n);if(typeof createImageBitmap!="function"||typeof fetch!="function")return H(n,{signal:e,cors:true,withCredentials:o});if(r&&ut.has(r))return H(n,{signal:e,cors:false,withCredentials:o});let a;try{a=await Yt(s,n,{mode:"cors",signal:e})}catch(p){if(ye(p,e))throw p;const l=await H(n,{signal:e,cors:false,withCredentials:o});return r&&ut.add(r),l}if(!a.ok)throw $t(a),new Lt(`Image request failed with ${a.status}`,n,a.status);const u=await a.blob();let c=await ge(u);const m=c.width,g=c.height;if(i&&(c.width>i||c.height>i)){const p=i/Math.max(c.width,c.height),l=await createImageBitmap(c,{resizeWidth:Math.max(1,Math.floor(c.width*p)),resizeHeight:Math.max(1,Math.floor(c.height*p)),resizeQuality:"high"});c.close(),c=l}if(e!=null&&e.aborted)throw c.close(),Y();return{kind:"bitmap",source:c,width:c.width,height:c.height,naturalWidth:m,naturalHeight:g,opaque:false}}async function ge(n){const t={imageOrientation:"from-image",premultiplyAlpha:"premultiply",colorSpaceConversion:"default"};try{return await createImageBitmap(n,t)}catch(e){if(e instanceof TypeError)return createImageBitmap(n);throw e}}function H(n,{signal:t,cors:e,withCredentials:i}){return new Promise((s,o)=>{if(t!=null&&t.aborted){o(Y());return}const r=new Image;r.decoding="async",e&&(r.crossOrigin=i?"use-credentials":"anonymous");const a=()=>{r.onload=null,r.onerror=null,t==null||t.removeEventListener("abort",u)},u=()=>{a(),r.src="",o(Y())};t==null||t.addEventListener("abort",u),r.onload=()=>{a();const c=()=>s({kind:"element",source:r,width:r.naturalWidth,height:r.naturalHeight,naturalWidth:r.naturalWidth,naturalHeight:r.naturalHeight,opaque:!e});typeof r.decode=="function"?r.decode().then(c,c):c()},r.onerror=()=>{a(),o(new Lt("Image failed to load",n))},r.src=n})}function we(n){var t;try{return new URL(n,(t=globalThis.location)==null?void 0:t.href).origin}catch{return null}}function ye(n,t){return!!(t!=null&&t.aborted)||typeof n=="object"&&n!==null&&n.name==="AbortError"}function Y(){const n=new Error("Aborted");return n.name="AbortError",n}function ft(n){n.kind==="bitmap"&&n.source.close()}const xe=192*1024*1024,ve=16,be=2;class Te{constructor(t){h(this,"entries",new Map);h(this,"inFlight",0);h(this,"frame",0);h(this,"bytes",0);h(this,"wanted",[]);h(this,"disposed",false);h(this,"budget");h(this,"maxInFlight");this.options=t,this.budget=t.byteBudget??xe,this.maxInFlight=t.maxInFlight??ve}get(t){const e=this.entries.get(t);if((e==null?void 0:e.state)==="ready")return e.lastUsed=this.frame,e.image}has(t){var e;return((e=this.entries.get(t))==null?void 0:e.state)==="ready"}failed(t){var e;return((e=this.entries.get(t))==null?void 0:e.state)==="failed"}get byteSize(){return this.bytes}get pending(){return this.inFlight}seed(t,e){var s;const i=this.entries.get(t);(i==null?void 0:i.state)!=="ready"&&((s=i==null?void 0:i.controller)==null||s.abort(),this.entries.set(t,{url:t,state:"ready",image:e,bytes:Z(e),lastUsed:this.frame,attempts:0,pinned:false,waiters:(i==null?void 0:i.waiters)??[]}),this.bytes+=Z(e),this.flushWaiters(t))}prefetch(t){return Promise.all(t.map(e=>new Promise(i=>{const s=this.entries.get(e.url);if(s&&s.state!=="loading")return i();if(s){s.waiters.push(i);return}this.start({...e,priority:-1},i)}))).then(()=>{})}update(t){if(this.disposed)return;this.frame++;const e=new Set(t.map(i=>i.url));this.wanted=[...t].sort((i,s)=>i.priority-s.priority);for(const i of this.entries.values())i.state==="loading"&&!i.pinned&&!e.has(i.url)&&i.controller&&(i.controller.abort(),this.entries.delete(i.url),this.inFlight--);for(const i of this.wanted){const s=this.entries.get(i.url);s&&(s.lastUsed=this.frame)}this.pump(),this.evict(e)}dispose(){var t;this.disposed=true;for(const e of this.entries.values())(t=e.controller)==null||t.abort(),this.flushWaiters(e.url);this.entries.clear(),this.bytes=0}forEachReady(t){for(const e of this.entries.values())e.state==="ready"&&e.image&&t(e.url,e.image)}pump(){for(const t of this.wanted){if(this.inFlight>=this.maxInFlight)break;this.entries.has(t.url)||this.start(t)}}start(t,e){const i=new AbortController,s={url:t.url,state:"loading",bytes:0,lastUsed:this.frame,attempts:0,controller:i,pinned:!!e,waiters:e?[e]:[]};this.entries.set(t.url,s),this.inFlight++,this.attempt(s,t,i,t.url)}attempt(t,e,i,s){t.attempts++,this.options.load(s,i.signal).then(o=>{if(this.disposed||this.entries.get(t.url)!==t){ft(o);return}t.state="ready",t.image=o,t.bytes=Z(o),t.controller=void 0,t.pinned=false,this.bytes+=t.bytes,this.settle(t)},o=>{if(!(i.signal.aborted||this.disposed)&&this.entries.get(t.url)===t){if(t.attempts<be&&!Me(o,e)){this.attempt(t,e,i,e.fallbackUrl??e.url);return}t.state="failed",t.controller=void 0,t.pinned=false,this.settle(t)}})}settle(t){this.inFlight--,this.flushWaiters(t.url),this.options.onSettled(),this.pump()}flushWaiters(t){const e=this.entries.get(t);if(!e)return;const i=e.waiters;e.waiters=[],i.forEach(s=>s())}evict(t){if(this.bytes<=this.budget)return;const e=[...this.entries.values()].filter(i=>i.state==="ready"&&!t.has(i.url)).sort((i,s)=>i.lastUsed-s.lastUsed);for(const i of e){if(this.bytes<=this.budget)break;this.entries.delete(i.url),this.bytes-=i.bytes,i.image&&ft(i.image),this.options.onEvict(i.url)}}}function Z(n){return n.width*n.height*4}function Me(n,t){if(t.fallbackUrl)return false;const e=n==null?void 0:n.status;return typeof e=="number"&&e>=400&&e<500&&e!==408&&e!==429}const Ee=.1;class ke{constructor(t,e=s=>requestAnimationFrame(s),i=s=>cancelAnimationFrame(s)){h(this,"handle",0);h(this,"last",0);h(this,"disposed",false);h(this,"frame",t2=>{if(this.handle=0,this.disposed)return;const e2=this.last?Math.min((t2-this.last)/1e3,Ee):1/60;this.last=t2,this.tick(e2,t2)?this.invalidate():this.last=0});this.tick=t,this.raf=e,this.caf=i}invalidate(){this.disposed||this.handle||(this.handle=this.raf(this.frame))}drawNow(){this.disposed||(this.handle&&this.caf(this.handle),this.frame(performance.now()))}dispose(){this.disposed=true,this.handle&&this.caf(this.handle),this.handle=0}}const Le=2*1024*1024;function _e(n,t,e=Le){const i=new Set;let s=e,o=false;return{get deferred(){return o},getTile(r){const a=n(r);if(!a||a.kind==="media"||a.opaque||i.has(r)||t(r))return a;const u=a.width*a.height*4;if(i.size>0&&u>s){o=true;return}return s-=u,i.add(r),a}}}function Pe(n){const t=/^(!)?(\d+(?:\.\d+)?)$/.exec((n==null?void 0:n.trim())??"");if(!t)return null;const e=Number(t[2]);if(e>360)return null;const i=e%360,s=!!t[1];return i||s?{degrees:i,mirror:s}:null}function Ae(n,t,e){if(!n)return null;let i=n.trim().replace(/^xywh=/,""),s=false;i.startsWith("pct:")?(s=true,i=i.slice(4)):i.startsWith("pixel:")&&(i=i.slice(6));const o=i.split(",").map(Number);if(o.length!==4||o.some(d=>!Number.isFinite(d)))return null;let[r,a,u,c]=o;s&&(r=r/100*t,a=a/100*e,u=u/100*t,c=c/100*e);const m=Math.max(0,r),g=Math.max(0,a),p=Math.min(t,r+u),l=Math.min(e,a+c);return p<=m||l<=g?null:{x:m,y:g,width:p-m,height:l-g}}const G=512,Ie=1024,Se=16e6;function _t(n,t,e){return{width:t,height:e,levels:[{scaleFactor:1,width:t,height:e,tileWidth:t,tileHeight:e,cols:1,rows:1}],tile:s=>({...s,url:n,region:{x:0,y:0,width:t,height:e}})}}function Re(n,t=Ie){const{width:e,height:i}=n,s=[],o=n.regionByPx&&n.sizeByW,r=(l,d,w)=>{const f=Math.ceil(e/l),x=Math.ceil(i/l);return{scaleFactor:l,width:f,height:x,tileWidth:d,tileHeight:w,cols:Math.ceil(f/d),rows:Math.ceil(x/w)}},a=(l,d)=>({scaleFactor:e/l,width:l,height:d,tileWidth:l,tileHeight:d,cols:1,rows:1,whole:true}),u=n.tiles[0];if(u){const{width:l,height:d}=o?Be(n,u,t):u;for(const w of u.scaleFactors)s.push(r(w,l,d))}else if(o){let l=Math.max(G,t);for(;l>G&&!$(n,l,l);)l/=2;for(let d=1;;d*=2){const w=r(d,l,l);if(s.push(w),w.cols===1&&w.rows===1)break}}const c=Math.max(0,...s.map(l=>l.scaleFactor));for(const l of n.sizes){const d=e/l.width;$(n,l.width,l.height)&&d>c+1e-9&&s.push(a(l.width,l.height))}const m=s.reduce((l,d)=>!l||d.scaleFactor>l.scaleFactor?d:l,null);if(m&&m.cols*m.rows>1&&n.sizeByW){const l=Math.max(e,i)/G;s.push(a(Math.ceil(e/l),Math.ceil(i/l)))}(!s.length||!u&&!o&&e*i<=Se)&&(s.some(l=>l.scaleFactor===1)||s.push(a(e,i)));const g=Oe(s).sort((l,d)=>d.scaleFactor-l.scaleFactor),p=Qt(n);return{width:e,height:i,levels:g,tile(l){const d=g[l.level],w=d.scaleFactor,f=d.cols===1&&d.rows===1;let x,v,b;if(f)x={x:0,y:0,width:e,height:i},v=d.width,b=d.height;else{const M=Math.round(l.col*d.tileWidth*w),E=Math.round(l.row*d.tileHeight*w);x={x:M,y:E,width:Math.min(Math.round(d.tileWidth*w),e-M),height:Math.min(Math.round(d.tileHeight*w),i-E)},v=Math.ceil(x.width/w),b=Math.ceil(x.height/w)}return{...l,region:x,url:at(n,x,v,b),fallbackUrl:p?at(n,x,v,b,p):void 0}}}}function Be(n,t,e){let i=Math.max(1,Math.floor(e/Math.max(t.width,t.height)));for(;i>1&&!$(n,t.width*i,t.height*i);)i--;return{width:t.width*i,height:t.height*i}}function $(n,t,e){return!(n.maxWidth&&t>n.maxWidth||n.maxHeight&&e>n.maxHeight||n.maxArea&&t*e>n.maxArea)}function Oe(n){const t=new Map;for(const e of n){const i=`${e.width}x${e.height}`,s=t.get(i);(!s||s.cols*s.rows<e.cols*e.rows)&&t.set(i,e)}return[...t.values()]}function Ce(n,t){const e=n.levels;for(let i=0;i<e.length;i++)if(e[i].scaleFactor<=t*(1+1e-6))return i;return e.length-1}function P(n,t,e){const i=n.levels[t],s=i.tileWidth*i.scaleFactor,o=i.tileHeight*i.scaleFactor,r=Math.max(0,e.x),a=Math.max(0,e.y),u=Math.min(n.width,e.x+e.width),c=Math.min(n.height,e.y+e.height);if(u<=r||c<=a)return[];const m=Math.max(0,Math.floor(r/s)),g=Math.min(i.cols-1,Math.floor((u-1e-9)/s)),p=Math.max(0,Math.floor(a/o)),l=Math.min(i.rows-1,Math.floor((c-1e-9)/o)),d=[];for(let w=p;w<=l;w++)for(let f=m;f<=g;f++)d.push({level:t,col:f,row:w});return d}async function mt(n,t){if(n.media)return ze(n,n.media);let e=null,i=null;if(n.service)try{e=Re(await jt(n.service,t.infoOptions))}catch(p){i=p}if(!e){if(!n.url)throw i??new Error("Image has no source");const p=await t.loadStatic(n.url);t.cache.seed(n.url,p),e=_t(n.url,p.naturalWidth,p.naturalHeight)}const s=n.width&&n.height&&n.width>0&&n.height>0?{width:n.width,height:n.height}:{width:e.width,height:e.height},o=Ae(n.region,s.width,s.height)??{x:0,y:0,width:s.width,height:s.height},r=e.width/s.width,a=e.height/s.height,u={x:o.x*r,y:o.y*a,width:o.width*r,height:o.height*a},c=Pe(n.rotation),m=c?Ue(u,c):void 0;return{id:n.id,spec:n,pyramid:e,size:s,clip:u,contentClip:o,rect:{x:0,y:0,width:o.width,height:o.height},...m?{turn:m}:{}}}function De(n,t){if(n.media)return Promise.resolve();const{pyramid:e,clip:i}=n;return t.prefetch(P(e,0,i).map(s=>{const o=e.tile(s);return{url:o.url,fallbackUrl:o.fallbackUrl}}))}const Pt="media:";function ze(n,t){var a,u;const e=n.width||((a=n.placement)==null?void 0:a.width)||t.element.videoWidth||1600,i=n.height||((u=n.placement)==null?void 0:u.height)||t.element.videoHeight||900,s=`${Pt}${n.id}`,o={width:e,height:i},r={x:0,y:0,width:e,height:i};return{id:n.id,spec:n,pyramid:_t(s,e,i),media:{kind:"media",source:t.element,width:e,height:i,naturalWidth:e,naturalHeight:i},size:o,clip:r,contentClip:r,rect:{...r}}}function Ue(n,{degrees:t,mirror:e}){const i=t*Math.PI/180,s=m=>Math.abs(m)<1e-12?0:m,o=s(Math.cos(i)),r=s(Math.sin(i)),a=Math.abs(n.width*o)+Math.abs(n.height*r),u=Math.abs(n.width*r)+Math.abs(n.height*o),c=A(S(a/2,u/2),{a:o,b:r,c:-r,d:o,e:0,f:0},I(e?-1:1,1),S(-(n.x+n.width/2),-(n.y+n.height/2)));return{orient:c,unorient:zt(c),width:a,height:u}}function At(n){var t;return((t=n.turn)==null?void 0:t.orient)??S(-n.clip.x,-n.clip.y)}function We(n,t){const{turn:e,clip:i}=n;if(!e)return{...t,x:i.x+t.x,y:i.y+t.y};const s=kt(e.unorient,t),o=Math.max(s.x,i.x),r=Math.max(s.y,i.y);return{x:o,y:r,width:Math.max(0,Math.min(s.x+s.width,i.x+i.width)-o),height:Math.max(0,Math.min(s.y+s.height,i.y+i.height)-r)}}function Fe(n,t){const{turn:e,clip:i}=n;return e?Et(e.unorient,t):{x:i.x+t.x,y:i.y+t.y}}function pt(n){const{turn:t,clip:e,contentClip:i}=n;return t?{width:t.width*i.width/e.width,height:t.height*i.height/e.height}:i}function gt(n){if(!n.length)return null;if(n.every(i=>i.spec.placement)){for(const i of n)i.rect={...i.spec.placement};return D(n.map(i=>i.rect))}const t=pt(n[0]).height;let e=0;for(const i of n){const s=pt(i),o=s.width*t/s.height;i.rect={x:e,y:0,width:o,height:t},e+=o}return{x:0,y:0,width:e,height:t}}function W(n){const t=n.turn??n.clip;return{x:n.rect.width/t.width,y:n.rect.height/t.height}}function Ne(n){const t=W(n);return A(S(n.rect.x,n.rect.y),I(t.x,t.y),At(n))}function He(n,t){var e,i;return n.service===t.service&&n.url===t.url&&n.width===t.width&&n.height===t.height&&n.region===t.region&&n.rotation===t.rotation&&((e=n.media)==null?void 0:e.element)===((i=t.media)==null?void 0:i.element)&&JSON.stringify(n.placement)===JSON.stringify(t.placement)}const Ze=5e6,It=1e7,Ge=15e6,Xe=2e7,wt=2;function yt(n){const{items:t,camera:e,viewport:i,pixelRatio:s,getTile:o,destination:r}=n,a=n.has??(l=>o(l)!==void 0),u=Nt(e,i),c=[],m=[],g=[],p=(l,d,w)=>{const f=l.tile(d);m.push({url:f.url,fallbackUrl:f.fallbackUrl,priority:w})};for(const l of t){const{pyramid:d,clip:w,rect:f}=l,x=W(l);if(n.wantOverview)for(const y of P(d,0,w))p(d,y,Xe);const v=xt(l,e,i,s),b=r?xt(l,r,i,s):v;if(g.push((v==null?void 0:v.target)??-1),!v&&!b)continue;const M=y=>T=>{const _=d.tile(T).region;return Math.hypot(_.x+_.width/2-y.x,_.y+_.height/2-y.y)};if(b){const y=M(b.center);for(const T of P(d,0,b.area))p(d,T,y(T)/1e3);if(b.target>0)for(const T of P(d,b.target,b.area))p(d,T,It+y(T))}if(!v)continue;const{area:E,target:k}=v,L=M(v.center),O=P(d,0,E),F=k===0?[]:P(d,k,E);if(b!==v){for(const T of O)p(d,T,L(T)/1e3);const y=k-wt;if(y>0)for(const T of P(d,y,E))p(d,T,Ge+L(T))}const j=k-wt;if(b===v&&j>0){const y=new Set;for(const T of F){const _=d.tile(T);if(!a(_.url))for(const R of P(d,j,_.region)){const B=`${R.col},${R.row}`;y.has(B)||(y.add(B),p(d,R,Ze+L(R)))}}}if(l.spec.hidden)continue;const St=(k===0?O:F).every(y=>o(d.tile(y).url)!==void 0)?[k]:Array.from({length:k+1},(y,T)=>T),Rt=A(u,S(f.x,f.y),I(x.x,x.y),At(l));for(const y of St){const T=y===0?O:y===k?F:P(d,y,E),_=d.levels[y].cols*d.levels[y].rows>1;for(const R of T){const B=d.tile(R),J=o(B.url);if(!J)continue;const tt=Ke(l,B.region,J,Rt,_);tt&&c.push({...tt,url:B.url})}}}return m.sort((l,d)=>l.priority-d.priority),{draws:c,wants:qe(m),levels:g}}function xt(n,t,e,i){const{pyramid:s,rect:o}=n,r=q(t,e);if(!Ut(r,o))return null;const a=W(n),u=Math.max(r.x,o.x),c=Math.max(r.y,o.y),m=Math.min(r.x+r.width,o.x+o.width),g=Math.min(r.y+r.height,o.y+o.height),p=1/(a.x*t.zoom*i);return{area:We(n,{x:(u-o.x)/a.x,y:(c-o.y)/a.y,width:(m-u)/a.x,height:(g-c)/a.y}),center:Fe(n,{x:(t.x-o.x)/a.x,y:(t.y-o.y)/a.y}),target:Ce(s,p)}}function Ke(n,t,e,i,s){const{clip:o}=n,r=Math.max(t.x,o.x),a=Math.max(t.y,o.y),u=Math.min(t.x+t.width,o.x+o.width),c=Math.min(t.y+t.height,o.y+o.height);if(u<=r||c<=a)return null;const m=e.width/t.width,g=e.height/t.height,p=1e-6;return{item:n,image:e,transform:A(i,S(t.x,t.y),I(1/m,1/g)),crop:{x:(r-t.x)*m,y:(a-t.y)*g,width:(u-r)*m,height:(c-a)*g},bleed:{right:s&&u<o.x+o.width-p,bottom:s&&c<o.y+o.height-p}}}function qe(n){const t=new Set;return n.filter(e=>t.has(e.url)?false:(t.add(e.url),true))}const Ve={maxZoomPixelRatio:1.1,minZoomImageRatio:.9,upscale:true,animationTime:.09,animationDuration:void 0,springStiffness:6.5,constrainDuringPan:true,request:void 0,byteBudget:192*1024*1024,maxInFlight:16,releaseAfterMs:2e3},Ye=2,$e=3,Qe=.1,X=1e-6,vt=1e8,je=6,Q={top:0,right:0,bottom:0,left:0};function bt(n,t="padding"){if(!n||typeof getComputedStyle!="function")return Q;const e=getComputedStyle(n),i=s=>parseFloat(e.getPropertyValue(`${t}-${s}`))||0;return{top:i("top"),right:i("right"),bottom:i("bottom"),left:i("left")}}const Je=(n,t)=>n.top===t.top&&n.right===t.right&&n.bottom===t.bottom&&n.left===t.left;let ti;class ei{constructor(t,e={}){h(this,"host");h(this,"overlays",null);h(this,"options");h(this,"backend",null);h(this,"backendPreference");h(this,"contextLosses",0);h(this,"holder",{hiddenSince:null,release:()=>this.giveBack()});h(this,"visible",true);h(this,"dom",null);h(this,"domAsked",false);h(this,"pending",null);h(this,"camera");h(this,"loop");h(this,"gestures");h(this,"gestureOptions",{});h(this,"cache");h(this,"navigator",null);h(this,"navigatorAsked",0);h(this,"viewport",{width:1,height:1});h(this,"inset",Q);h(this,"pixelRatio",1);h(this,"items",[]);h(this,"worldBounds",null);h(this,"contentVersion",0);h(this,"opaqueUrls",new Set);h(this,"mediaByKey",new Map);h(this,"detachMedia",[]);h(this,"opened",false);h(this,"atHome",true);h(this,"interacting",false);h(this,"lastEmitted",null);h(this,"generation",0);h(this,"landing",[]);h(this,"ahead",null);h(this,"listeners",new Map);h(this,"unloadable",false);h(this,"resizeObserver",null);h(this,"intersectionObserver",null);h(this,"releaseTimer",null);h(this,"dprQuery",null);h(this,"disposed",false);h(this,"dismisser",null);h(this,"tick",t2=>{var u,c;if(this.disposed)return false;const e2=this.camera.step(t2,this.viewport),i2=this.camera.current,s2=this.backend,o=_e(this.getTile,m=>s2?s2.has(m):true),r=yt({items:this.items,camera:i2,viewport:this.viewport,pixelRatio:this.pixelRatio,getTile:o.getTile,has:this.hasTile,wantOverview:!!this.navigator,destination:e2?this.camera.destination:void 0}),a=(this.landing.length?[...this.landing,...r.wants]:r.wants).filter(m=>!m.url.startsWith(Pt));if(this.cache.update(a),this.ahead&&!e2&&!this.cache.pending){const m=this.ahead;this.ahead=null,this.readAhead(m)}return r.draws.length?this.setUnloadable(false):a.length&&a.every(m=>this.cache.failed(m.url))&&this.setUnloadable(true),this.paint(r.draws),(u=this.overlays)==null||u.position(i2,this.viewport),(c=this.navigator)==null||c.render(this.items.filter(m=>!m.spec.hidden),this.worldBounds,q(i2,this.viewport),this.pixelRatio,this.getTile,this.contentVersion),(!this.lastEmitted||!st(this.lastEmitted,i2))&&(this.lastEmitted={...i2},this.opened&&this.emit("viewport")),e2||o.deferred});h(this,"getTile",t2=>this.mediaByKey.get(t2)??this.cache.get(t2));h(this,"hasTile",t2=>this.mediaByKey.has(t2)||this.cache.has(t2));h(this,"onContextLost",()=>{this.contextLosses+=1,this.releaseBackend(),this.visible?this.acquireBackend(false):this.host.dataset.backend="released"});h(this,"onPixelRatioChange",()=>{this.measure(),this.watchPixelRatio()});this.host=t,this.backendPreference=e.backend??"auto",this.options={...Ve,...K(e)},Mt()&&(this.options.animationTime=0,this.options.animationDuration!==void 0&&(this.options.animationDuration=0));const{animationDuration:i,springStiffness:s}=this.options;this.camera=new ce({x:0,y:0,zoom:1,rotation:0},this.options.animationTime,i===void 0?void 0:{duration:i,stiffness:s}),this.loop=new ke(this.tick),this.gestureOptions=K(e.gestures??{}),Mt()&&(this.gestureOptions.flickMomentum=0),this.gestures=new fe(t,this,{...V,...this.gestureOptions}),this.cache=new Te({load:(o,r)=>this.loadTile(o,r),onSettled:()=>{this.contentVersion++,this.invalidate()},onEvict:o=>{var r;return(r=this.backend)==null?void 0:r.release(o)},byteBudget:this.options.byteBudget,maxInFlight:this.options.maxInFlight}),this.visible=ii(t),this.visible?this.acquireBackend():this.holder.hiddenSince=Tt(),this.measure(),this.observe()}get backendKind(){var t;return((t=this.backend)==null?void 0:t.kind)??"none"}get isOpen(){return this.opened}get isAtHome(){return this.atHome}on(t,e){let i=this.listeners.get(t);return i||(i=new Set,this.listeners.set(t,i)),i.add(e),()=>i==null?void 0:i.delete(e)}async setImages(t,{world:e,fit:i=false}={}){const s=++this.generation,o=()=>s!==this.generation||this.disposed,r=new Map(this.items.map(f=>[f.id,f]));this.landing=[],this.ahead=null;const a=this.prepareContext(),u=[],c=t.map(f=>{const x=r.get(f.id);if(x&&He(x.spec,f))return x.spec=f,{item:Promise.resolve(x),ready:Promise.resolve()};let v,b,M;const E=new Promise((L,O)=>{v=L,b=O}),k=new Promise(L=>M=L);return u.push(()=>mt(f,a).then(L=>(v(L),De(L,this.cache)),b).then(M,M)),{item:E,ready:k}}),m=()=>{var f;return(f=u.shift())==null?void 0:f().then(m)};for(let f=0;f<je;f++)m();const g=t.flatMap(f=>f.placement?[f.placement]:[]);let p=false;if(!this.items.length&&t.length>1&&g.length===t.length){const f=D(e?[e,...g]:g),x=[];c.forEach(({item:v,ready:b},M)=>{Promise.all([v,b]).then(([E])=>{o()||(x[M]=E,this.place(x.filter(Boolean),f,i,!p,false),p=true)},()=>{})})}const l=await Promise.allSettled(c.map(({item:f})=>f));if(o()||(this.landing=this.landingWants(l.flatMap(f=>f.status==="fulfilled"?[f.value]:[]),e,i||!this.opened),this.invalidate(),await Promise.all(c.map(({ready:f})=>f)),o()))return;this.landing=[];const d=l.filter(f=>f.status==="fulfilled").map(f=>f.value),w=l.filter(f=>f.status==="rejected").map(f=>f.reason);w.length&&this.emit("error",w),this.setUnloadable(t.length>0&&!d.length&&w.length>0),this.place(d,e,i,!p,true)}place(t,e,i,s,o){this.items=t,this.watchMedia(t);const r=gt(t);this.worldBounds=e?r?D([e,r]):e:r,this.contentVersion++,this.worldBounds&&(this.opened?s?(i?this.home(true):this.camera.set(this.constrain(this.camera.current)),this.emit("change")):o&&this.emit("change"):(this.opened=true,this.home(true),this.emit("open"))),this.invalidate()}prefetch(t,{world:e}={}){const i=t.filter(s=>!s.media);this.ahead=i.length?{images:i,world:e}:null,this.ahead&&this.invalidate()}async readAhead({images:t,world:e}){const i=this.generation,s=this.prepareContext(),o=(await Promise.allSettled(t.map(a=>mt(a,s)))).flatMap(a=>a.status==="fulfilled"?[a.value]:[]);if(!o.length||i!==this.generation||this.disposed)return;const r=this.landingWants(o,e,true).filter(a=>a.priority<It-vt);await this.cache.prefetch(r)}prepareContext(){return{cache:this.cache,loadStatic:t=>this.loadTile(t),infoOptions:{request:this.options.request}}}clear(){this.setUnloadable(false),this.generation++,this.landing=[],this.ahead=null,this.items=[],this.watchMedia([]),this.worldBounds=null,this.contentVersion++,this.invalidate()}setHidden(t){const e=new Set(t);let i=false;for(const s of this.items){const o=e.has(s.id);!!s.spec.hidden!==o&&(s.spec={...s.spec,hidden:o},i=true)}i&&this.invalidate()}isReady(t){const e=this.items.find(s=>s.id===t);if(!e)return false;if(e.spec.media)return true;const i=e.pyramid.levels[0];if(!i)return false;for(let s=0;s<i.rows;s++)for(let o=0;o<i.cols;o++)if(!this.getTile(e.pyramid.tile({level:0,col:o,row:s}).url))return false;return true}fitBounds(t,e=false,i=Q){const s=this.fit(t,this.camera.destination.rotation,i);this.atHome=false,this.animateTo(this.constrain(s,{allowBeyondLimits:true}),e)}fit(t,e,{top:i,right:s,bottom:o,left:r},a=1/0){const{width:u,height:c}=this.viewport,m=Ht(t,{width:Math.max(1,u-r-s),height:Math.max(1,c-i-o)},e),g=Math.min(m.zoom,a);return{...z(Wt(t),{x:(u+r-s)/2,y:(c+i-o)/2},g,e,this.viewport),zoom:g,rotation:e}}fitItemRect(t,e,i=false){const s=this.itemRectToWorld(t,e);s&&this.fitAnnotation(s,i)}fitAnnotation(t,e=false){var o;const i=this.items[0];if(!i)return;const s=i.rect.width*Qe;this.fitBounds({x:t.x-s,y:t.y-s,width:t.width+s*2,height:t.height+s*2},e,bt((o=this.overlays)==null?void 0:o.container,"scroll-padding"))}getBounds(){return q(this.camera.current,this.viewport)}getHomeBounds(){return this.worldBounds?{...this.worldBounds}:null}getCamera(){return{...this.camera.current}}getZoomLimits(){var e;const t=((e=this.homeCamera())==null?void 0:e.zoom)??1;return{home:t,min:t*this.options.minZoomImageRatio,max:Math.max(t,this.closestZoom())}}closestZoom(t=this.items){const e=t.length?Math.min(...t.map(i=>W(i).x)):1;return this.options.maxZoomPixelRatio/e}home(t=false){const e=this.homeCamera();if(!e)return;const i=this.atHome;this.atHome=true,this.animateTo(e,t),!i&&this.opened&&this.emit("viewport")}atMaxZoom(){return this.camera.destination.zoom>=this.getZoomLimits().max*(1-X)}viewLimits(){const{zoom:t,x:e,y:i,rotation:s}=this.camera.destination,{min:o,max:r}=this.getZoomLimits(),a=this.atHome?this.homeCamera():null;return{atMax:t>=r*(1-X),atMin:t<=o*(1+X),atHome:this.atHome&&(!a||Math.abs(t/a.zoom-1)<.001&&Math.hypot(e-a.x,i-a.y)*t<.5&&Math.abs(s-a.rotation)<.001)}}zoomBy(t,e,i=true){const s=i?this.camera.destination:this.camera.current,o=e??{x:this.viewport.width/2,y:this.viewport.height/2},r=it(s,this.viewport,o),{min:a,max:u}=this.getZoomLimits(),c=C(s.zoom*t,a,u),m=z(r,o,c,s.rotation,this.viewport),g=this.constrain({...s,...m,zoom:c});this.atHome=false,i?this.camera.animateTo({state:g,anchor:{world:r,screen:o}},this.viewport):this.camera.set(g),this.invalidate()}panBy(t,e,i=false){const s=i?this.camera.destination:this.camera.current,o=Et(A(I(1/s.zoom),Ft(-s.rotation)),{x:t,y:e}),r=this.constrain({...s,x:s.x-o.x,y:s.y-o.y});this.atHome=false,i?this.camera.animateTo({state:r},this.viewport):this.camera.set(r),this.invalidate()}panTo(t,e=false){const i=e?this.camera.current:this.camera.destination;this.atHome=false,this.animateTo(this.constrain({...i,...t}),e)}rotateBy(t){const e=this.camera.destination;this.setRotation(e.rotation*180/Math.PI+t)}setRotation(t,e=false){const i=this.camera.destination,s=t*Math.PI/180;this.animateTo(this.constrain({...i,rotation:s}),e)}getRotation(){return this.camera.destination.rotation*180/Math.PI}tap(t){this.emit("tap",t)}setDismiss(t){this.dismisser=t}dismiss(){var t;return((t=this.dismisser)==null?void 0:t.call(this))??false}setGestures(t){this.gestures.setOptions({...V,...this.gestureOptions,...K(t)})}setInteracting(t){if(this.interacting=t,t){this.camera.stop();return}if(this.options.constrainDuringPan)return;const e=this.camera.destination,i=this.constrain(e);st(e,i)||this.animateTo(i,false)}worldToScreenPoint(t){return Zt(this.camera.current,this.viewport,t)}screenToWorldPoint(t){return it(this.camera.current,this.viewport,t)}itemRectToWorld(t,e){const i=this.items[t];if(!i)return null;const{contentClip:s,clip:o}=i;if(i.turn)return kt(A(Ne(i),I(o.width/s.width,o.height/s.height)),e);const r=i.rect.width/s.width,a=i.rect.height/s.height;return{x:i.rect.x+(e.x-s.x)*r,y:i.rect.y+(e.y-s.y)*a,width:e.width*r,height:e.height*a}}attachNavigator(t){var o;(o=this.navigator)==null||o.dispose(),this.navigator=null;const e=++this.navigatorAsked;let i=null,s=false;return import("./Navigator-CVDhe8R_.mjs").then(r=>{s||this.disposed||e!==this.navigatorAsked||(i=new r.Navigator(t,(a,u)=>this.panTo(a,u)),this.navigator=i,this.invalidate())}),()=>{s=true,i==null||i.dispose(),i&&this.navigator===i&&(this.navigator=null)}}invalidate(){this.loop.invalidate()}dispose(){var t,e,i,s,o,r,a;this.disposed||(this.disposed=true,this.generation++,this.loop.dispose(),this.gestures.dispose(),(t=this.resizeObserver)==null||t.disconnect(),(e=this.intersectionObserver)==null||e.disconnect(),(s=(i=this.dprQuery)==null?void 0:i.removeEventListener)==null||s.call(i,"change",this.onPixelRatioChange),this.releaseTimer&&clearTimeout(this.releaseTimer),(o=this.navigator)==null||o.dispose(),this.navigator=null,this.releaseBackend(),this.cache.dispose(),(r=this.dom)==null||r.dispose(),(a=this.overlays)==null||a.dispose(),this.items=[],this.detachMedia.forEach(u=>u()),this.mediaByKey.clear(),this.listeners.clear(),delete this.host.dataset.backend)}landingWants(t,e,i){const s=t.map(c=>({...c,rect:{...c.rect}})),o=gt(s),r=e?o?D([e,o]):e:o;if(!r)return[];const a=i?this.homeCamera(r,s):this.camera.destination;if(!a)return[];const{wants:u}=yt({items:s,camera:a,viewport:this.viewport,pixelRatio:this.pixelRatio,getTile:c=>this.cache.get(c)});return u.map(c=>({...c,priority:c.priority-vt}))}watchMedia(t){this.detachMedia.forEach(e=>e()),this.detachMedia=[],this.mediaByKey.clear();for(const e of t){if(!e.media||e.media.kind!=="media")continue;const i=e.pyramid.tile({level:0,col:0,row:0}).url;this.mediaByKey.set(i,e.media);const s=e.media.source,o=()=>this.invalidate(),r=["play","seeked","loadeddata","resize"];r.forEach(a=>s.addEventListener(a,o)),this.detachMedia.push(()=>r.forEach(a=>s.removeEventListener(a,o)))}}paint(t){const e=this.backend,i=[],s=(e==null?void 0:e.kind)==="webgl2";e==null||e.begin();for(const o of t){const{image:r}=o;if(!(r.kind==="media"||r.kind==="element"&&s&&(r.opaque||this.opaqueUrls.has(o.url)))&&e){if(e.draw({key:o.url,source:r.source,width:r.width,height:r.height,transform:o.transform,crop:o.crop,opacity:1,bleed:o.bleed})!=="tainted"||r.kind==="bitmap")continue;this.opaqueUrls.add(o.url)}(r.kind==="element"||r.kind==="media")&&i.push({key:`${o.item.id}|${o.url}`,element:r.source,width:r.width,height:r.height,transform:o.transform,crop:o.crop,opacity:1})}e==null||e.end(),this.dom?this.dom.sync(i):i.length&&!this.domAsked&&(this.domAsked=true,import("./DomLayers-BIFA6J56.mjs").then(({DomLayers:o})=>{if(this.disposed)return;const r=new o(this.host);this.overlays&&this.host.insertBefore(r.container,this.overlays.container),this.dom=r,this.invalidate()}))}loadTile(t,e){return pe(t,{signal:e,request:this.options.request,maxTextureSize:this.backend instanceof U?this.backend.maxTextureSize:void 0})}animateTo(t,e){this.camera.animateTo({state:t},this.viewport,e),this.invalidate()}homeCamera(t=this.worldBounds,e=this.items){if(!t)return null;const i=2*Math.PI,s=Math.round(this.camera.destination.rotation/i)*i||0;return this.fit(t,s,this.inset,this.options.upscale?1/0:this.closestZoom(e))}constrain(t,{allowBeyondLimits:e=false}={}){const i=this.worldBounds;if(!i)return t;const{min:s,max:o}=this.getZoomLimits(),r=e?C(t.zoom,s,Math.max(o,t.zoom)):C(t.zoom,s,o);return this.interacting&&!this.options.constrainDuringPan?{...t,zoom:r}:{...t,zoom:r,x:C(t.x,i.x,i.x+i.width),y:C(t.y,i.y,i.y+i.height)}}acquireBackend(t=true){var o,r;if(this.backend||this.pending||this.disposed)return;const e=document.createElement("canvas");e.className="clover-canvas-surface",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",inset:"0",width:"100%",height:"100%",display:"block",pointerEvents:"none"}),this.host.insertBefore(e,((o=this.dom)==null?void 0:o.container)??((r=this.overlays)==null?void 0:r.container)??null);const i=t&&(this.backendPreference==="webgl2"||this.backendPreference==="auto"&&this.contextLosses<$e);let s=null;i&&(Ct(this.holder)||this.backendPreference==="webgl2")&&(s=U.create(e,{onLost:this.onContextLost}),s||et(this.holder)),s?this.install(s):this.backendPreference==="webgl2"?this.none(e):(this.pending=e,(ti??(ti=import("./Canvas2DBackend-kJpOk_Pb.mjs"))).then(({Canvas2DBackend:a})=>{if(this.pending!==e)return;this.pending=null;const u=a.create(e);u?this.install(u):this.none(e)}))}none(t){t.remove(),this.host.dataset.backend="none"}install(t){this.backend=t,this.host.dataset.backend=t.kind,t.resize(this.viewport.width,this.viewport.height,this.pixelRatio),t.kind==="canvas2d"&&this.opaqueUrls.clear(),this.emit("backend",t.kind),this.invalidate()}releaseBackend(){var e;if(et(this.holder),(e=this.pending)==null||e.remove(),this.pending=null,!this.backend)return;const t=this.backend.canvas;this.backend.dispose(),t.remove(),this.backend=null}giveBack(){this.releaseTimer&&clearTimeout(this.releaseTimer),this.releaseTimer=null,this.releaseBackend(),this.host.dataset.backend="released"}observe(){typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(()=>this.measure(true)),this.resizeObserver.observe(this.host)),typeof IntersectionObserver<"u"&&(this.intersectionObserver=new IntersectionObserver(t=>{const e=t.some(i=>i.isIntersecting);this.setVisible(e)}),this.intersectionObserver.observe(this.host)),this.watchPixelRatio()}setVisible(t){var e;if(this.visible=t,t){this.holder.hiddenSince=null,this.releaseTimer&&clearTimeout(this.releaseTimer),this.releaseTimer=null,this.backend||this.acquireBackend();return}(e=this.holder).hiddenSince??(e.hiddenSince=Tt()),!(!this.backend||this.releaseTimer)&&(this.releaseTimer=setTimeout(()=>this.giveBack(),this.options.releaseAfterMs))}measure(t=false){var u;const e=this.host.getBoundingClientRect(),i=Math.max(1,e.width),s=Math.max(1,e.height),o=bt(this.host),r=Math.min(typeof window<"u"&&window.devicePixelRatio||1,Ye);if(i===this.viewport.width&&s===this.viewport.height&&r===this.pixelRatio&&Je(o,this.inset))return;const a=this.viewport;if(this.viewport={width:i,height:s},this.inset=o,this.pixelRatio=r,(u=this.backend)==null||u.resize(i,s,r),this.opened){if(this.atHome)this.home(true);else{const c=this.camera.current,m=i/Math.max(a.width,1);this.camera.set(this.constrain({...c,zoom:c.zoom*m}))}this.emit("viewport")}t?this.loop.drawNow():this.invalidate()}watchPixelRatio(){var t,e,i,s;typeof window>"u"||typeof window.matchMedia!="function"||((e=(t=this.dprQuery)==null?void 0:t.removeEventListener)==null||e.call(t,"change",this.onPixelRatioChange),this.dprQuery=window.matchMedia(`(resolution: ${window.devicePixelRatio||1}dppx)`),(s=(i=this.dprQuery).addEventListener)==null||s.call(i,"change",this.onPixelRatioChange))}setUnloadable(t){t!==this.unloadable&&(this.unloadable=t,this.emit("unloadable",t))}emit(t,e){var i;(i=this.listeners.get(t))==null||i.forEach(s=>s(e))}}const Tt=()=>typeof performance<"u"?performance.now():Date.now();function ii(n){if(typeof IntersectionObserver>"u"||typeof window>"u")return true;const{top:t,left:e,width:i,height:s}=n.getBoundingClientRect();return t+s>=0&&e+i>=0&&t<=window.innerHeight&&e<=window.innerWidth}function Mt(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function K(n){return Object.fromEntries(Object.entries(n).filter(([,t])=>t!==void 0))}const ui=(n,t)=>new ei(n,t);export{te as b,Jt as h,yt as p,ui as r};
@@ -1 +1 @@
1
- import{u as c,A as l,x as u,aH as p,_ as d,k as m}from"./shared-BzLnvFn3.mjs";import"./styles-DbqlZvMR.mjs";const f=new WeakMap;function v(t){let n=f.get(t);if(!n){const{render:o}=t;n={canvasId:t.canvasId,format:t.format,match:t.match,component:r=>c(y,{...r,render:o})},f.set(t,n)}return n}function b(t){if(Array.isArray(t))return t.filter(n=>typeof n=="object"&&n!==null&&typeof n.render=="function").map(v)}function y({render:t,canvases:n,bodies:o,children:r}){const a=l(null),i=u(p);return d(()=>{const e=a.current;if(!e)return;const s=t(e,{canvases:n,bodies:o,clover:i});return()=>{typeof s=="function"&&s(),e.replaceChildren()}},[t,n,o,i]),c(m,{children:[c("div",{ref:a,className:"clover-body-renderer",style:{position:"absolute",inset:0}}),r&&c("div",{className:"clover-canvas-controls",children:r})]})}export{b as toRenderers};
1
+ import{u as c,A as l,x as u,aK as p,_ as d,k as m}from"./shared-ByrLMUQa.mjs";import"./styles-BOXm_R8o.mjs";const f=new WeakMap;function v(t){let n=f.get(t);if(!n){const{render:o}=t;n={canvasId:t.canvasId,format:t.format,match:t.match,component:r=>c(y,{...r,render:o})},f.set(t,n)}return n}function b(t){if(Array.isArray(t))return t.filter(n=>typeof n=="object"&&n!==null&&typeof n.render=="function").map(v)}function y({render:t,canvases:n,bodies:o,children:r}){const a=l(null),i=u(p);return d(()=>{const e=a.current;if(!e)return;const s=t(e,{canvases:n,bodies:o,clover:i});return()=>{typeof s=="function"&&s(),e.replaceChildren()}},[t,n,o,i]),c(m,{children:[c("div",{ref:a,className:"clover-body-renderer",style:{position:"absolute",inset:0}}),r&&c("div",{className:"clover-canvas-controls",children:r})]})}export{b as toRenderers};
@@ -1 +1 @@
1
- import{x as n,a2 as o,Q as r}from"./shared-BzLnvFn3.mjs";const t=(s,a)=>a==="canvas"?o(s.manifest,s.canvasId):s.manifest,e=r(null),i=()=>n(e);export{e as P,t as r,i as u};
1
+ import{x as n,a3 as o,Q as r}from"./shared-ByrLMUQa.mjs";const t=(s,a)=>a==="canvas"?o(s.manifest,s.canvasId):s.manifest,e=r(null),i=()=>n(e);export{e as P,t as r,i as u};
@@ -0,0 +1 @@
1
+ import{a5 as a,a6 as c}from"./shared-ByrLMUQa.mjs";function l(t){try{const o=new URL(t).pathname.split("/").filter(Boolean).pop();return o?decodeURIComponent(o):"download"}catch{return"download"}}async function d(t,o){try{const r=await a(o,t,{referrerPolicy:"no-referrer"});if(!r.ok)return c(r),false;const n=URL.createObjectURL(await r.blob()),e=document.createElement("a");return e.href=n,e.download=l(t),document.body.append(e),e.click(),e.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e4),true}catch{return false}}export{l as fileName,d as saveFile};
@@ -1 +1 @@
1
- import{aC as w,U as f,ad as x,W as S}from"./shared-BzLnvFn3.mjs";const A=10;async function R(r,t,s,o,e){var n,d;const i=(n=r.get().manifest)==null?void 0:n.id;try{const{hits:c,set:u}=await b(t,s,{request:o,signal:e});if(e.aborted||((d=r.get().manifest)==null?void 0:d.id)!==i)return;r.set({search:{query:s,status:"ready",hits:c,set:u}})}catch{if(e.aborted)return;r.set({search:{query:s,status:"error",hits:[],set:null}})}}async function b(r,t,{request:s,signal:o}={}){const e=new URL(r.id);e.searchParams.set("q",t);const i=[];let n=e.toString();const d=new Set;for(;n&&i.length<A&&!d.has(n);){d.add(n);const c=await w(s,n,o);i.push(c),n=$(c)}return E(i,t)}function T(r){var e;const t=f(r)[0];if(typeof t=="string"||!t)return t;const s=t.full??t["@id"],o=(e=f(t.selector)[0])==null?void 0:e.value;return typeof o=="string"&&typeof s=="string"?`${s}#${o}`:s}function $(r){var o;const t=r.next??((o=r.within)==null?void 0:o.next),s=typeof t=="string"?t:(t==null?void 0:t.id)??(t==null?void 0:t["@id"]);return typeof s=="string"?s:null}function E(r,t){var e,i;const s=[],o=[];for(const n of r){const d=Array.isArray(n.resources),c=d?n.resources:f(n.items),u=new Map;for(const a of c){const p=a.id??a["@id"],m=d?T(a.on):f(a.target)[0],v=x(m);if(!p||!v.id)continue;const y=d?(e=a.resource)==null?void 0:e.chars:f(a.body).map(l=>l==null?void 0:l.value).find(l=>typeof l=="string"),I={id:p,setId:S,canvasId:v.id,target:v,motivation:["highlighting"],bodies:[{value:String(y??t)}],annotation:{id:p,type:"Annotation",motivation:["highlighting"],body:{type:"TextualBody",value:String(y??t)},target:m}};u.set(p,I),s.push(I)}const g=d?H(n,u):M(n,u),h=new Set(g.flatMap(a=>a.entryIds));o.push(...g);for(const a of u.values())h.has(a.id)||o.push({id:a.id,canvasId:a.canvasId,entryIds:[a.id],match:((i=a.bodies[0])==null?void 0:i.value)??t})}return{query:t,hits:o,set:{id:S,label:{none:[t]},source:"search",entries:s}}}function H(r,t){var o;const s=[];for(const e of f(r.hits)){const i=f(e.annotations).filter(n=>t.has(n));i.length&&s.push({id:i.join(" "),canvasId:t.get(i[0]).canvasId,entryIds:i,before:e.before,match:String(e.match??((o=t.get(i[0]).bodies[0])==null?void 0:o.value)??""),after:e.after})}return s}function M(r,t){var o,e;const s=[];for(const i of f(r.annotations))for(const n of f(i==null?void 0:i.items))if(f(n==null?void 0:n.motivation).includes("contextualizing"))for(const c of f(n.target)){const u=typeof(c==null?void 0:c.source)=="string"?c.source:(o=c==null?void 0:c.source)==null?void 0:o.id,g=u?t.get(u):void 0;if(!g)continue;const h=f(c.selector).find(a=>(a==null?void 0:a.type)==="TextQuoteSelector");s.push({id:`${n.id??u}#${u}`,canvasId:g.canvasId,entryIds:[g.id],before:h==null?void 0:h.prefix,match:String((h==null?void 0:h.exact)??((e=g.bodies[0])==null?void 0:e.value)??""),after:h==null?void 0:h.suffix})}return s}export{E as readResults,b as search,R as searchInto};
1
+ import{aF as w,V as f,af as x,X as S}from"./shared-ByrLMUQa.mjs";const A=10;async function P(r,t,s,o,e){var n,d;const i=(n=r.get().manifest)==null?void 0:n.id;try{const{hits:c,set:u}=await b(t,s,{request:o,signal:e});if(e.aborted||((d=r.get().manifest)==null?void 0:d.id)!==i)return;r.set({search:{query:s,status:"ready",hits:c,set:u}})}catch{if(e.aborted)return;r.set({search:{query:s,status:"error",hits:[],set:null}})}}async function b(r,t,{request:s,signal:o}={}){const e=new URL(r.id);e.searchParams.set("q",t);const i=[];let n=e.toString();const d=new Set;for(;n&&i.length<A&&!d.has(n);){d.add(n);const c=await w(s,n,o);i.push(c),n=V(c)}return $(i,t)}function T(r){var e;const t=f(r)[0];if(typeof t=="string"||!t)return t;const s=t.full??t["@id"],o=(e=f(t.selector)[0])==null?void 0:e.value;return typeof o=="string"&&typeof s=="string"?`${s}#${o}`:s}function V(r){var o;const t=r.next??((o=r.within)==null?void 0:o.next),s=typeof t=="string"?t:(t==null?void 0:t.id)??(t==null?void 0:t["@id"]);return typeof s=="string"?s:null}function $(r,t){var e,i;const s=[],o=[];for(const n of r){const d=Array.isArray(n.resources),c=d?n.resources:f(n.items),u=new Map;for(const a of c){const p=a.id??a["@id"],m=d?T(a.on):f(a.target)[0],v=x(m);if(!p||!v.id)continue;const y=d?(e=a.resource)==null?void 0:e.chars:f(a.body).map(l=>l==null?void 0:l.value).find(l=>typeof l=="string"),I={id:p,setId:S,canvasId:v.id,target:v,motivation:["highlighting"],bodies:[{value:String(y??t)}],annotation:{id:p,type:"Annotation",motivation:["highlighting"],body:{type:"TextualBody",value:String(y??t)},target:m}};u.set(p,I),s.push(I)}const g=d?E(n,u):H(n,u),h=new Set(g.flatMap(a=>a.entryIds));o.push(...g);for(const a of u.values())h.has(a.id)||o.push({id:a.id,canvasId:a.canvasId,entryIds:[a.id],match:((i=a.bodies[0])==null?void 0:i.value)??t})}return{query:t,hits:o,set:{id:S,label:{none:[t]},source:"search",entries:s}}}function E(r,t){var o;const s=[];for(const e of f(r.hits)){const i=f(e.annotations).filter(n=>t.has(n));i.length&&s.push({id:i.join(" "),canvasId:t.get(i[0]).canvasId,entryIds:i,before:e.before,match:String(e.match??((o=t.get(i[0]).bodies[0])==null?void 0:o.value)??""),after:e.after})}return s}function H(r,t){var o,e;const s=[];for(const i of f(r.annotations))for(const n of f(i==null?void 0:i.items))if(f(n==null?void 0:n.motivation).includes("contextualizing"))for(const c of f(n.target)){const u=typeof(c==null?void 0:c.source)=="string"?c.source:(o=c==null?void 0:c.source)==null?void 0:o.id,g=u?t.get(u):void 0;if(!g)continue;const h=f(c.selector).find(a=>(a==null?void 0:a.type)==="TextQuoteSelector");s.push({id:`${n.id??u}#${u}`,canvasId:g.canvasId,entryIds:[g.id],before:h==null?void 0:h.prefix,match:String((h==null?void 0:h.exact)??((e=g.bodies[0])==null?void 0:e.value)??""),after:h==null?void 0:h.suffix})}return s}export{$ as readResults,b as search,P as searchInto};