@nulib/clover 4.0.0-beta.0 → 4.0.0-beta.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 (181) hide show
  1. package/dist/components/Map/MapView.mjs +9 -8
  2. package/dist/components/Map/maplibre-worker.mjs +7 -0
  3. package/dist/components/Map/worker.mjs +22 -0
  4. package/dist/components/Panel/About.mjs +14 -9
  5. package/dist/components/Split/Split.mjs +9 -2
  6. package/dist/core/items.mjs +3 -1
  7. package/dist/core/load.mjs +10 -3
  8. package/dist/index.d.mts +23 -12
  9. package/dist/map/index.d.mts +15 -4
  10. package/dist/templates/index.d.mts +5 -2
  11. package/dist/templates.css +1 -1
  12. package/dist/ui/ReadMore.mjs +1 -1
  13. package/dist/web-components/About-DbrFSVBm.mjs +1 -0
  14. package/dist/web-components/{AnnotationMenu-BGIYRXW6.mjs → AnnotationMenu-EBjIQpQl.mjs} +1 -1
  15. package/dist/web-components/{AnnotationState-D2UIgIEC.mjs → AnnotationState-DQTaO6Gz.mjs} +1 -1
  16. package/dist/web-components/{Annotations-C_tBJHo3.mjs → Annotations-Cb9U7HJ_.mjs} +1 -1
  17. package/dist/web-components/{Annotations-BhwAv3ah.mjs → Annotations-Dl0SgHBS.mjs} +1 -1
  18. package/dist/web-components/{Body-DMEERFuB.mjs → Body-DxSz3iST.mjs} +1 -1
  19. package/dist/web-components/{BodyAlert-BP8voSLv.mjs → BodyAlert-C8EOXz24.mjs} +1 -1
  20. package/dist/web-components/{Button-Cl02BFDd.mjs → Button-uWgfvqsL.mjs} +1 -1
  21. package/dist/web-components/{Camera-Dw51CAfF.mjs → Camera-cdCqKMup.mjs} +1 -1
  22. package/dist/web-components/{Canvas2DBackend-RRN2bEkc.mjs → Canvas2DBackend-CnLEHRs4.mjs} +1 -1
  23. package/dist/web-components/{CanvasView-B8lMMSou.mjs → CanvasView-BI3YzNdK.mjs} +1 -1
  24. package/dist/web-components/{CaptionDetails-KLMDv-ec.mjs → CaptionDetails-B80ZhZ7v.mjs} +1 -1
  25. package/dist/web-components/{ChoiceMenu-CXrVOmJl.mjs → ChoiceMenu-DCp7-co7.mjs} +1 -1
  26. package/dist/web-components/{Collection-DL4Ui4hF.mjs → Collection-B1Le2_TU.mjs} +1 -1
  27. package/dist/web-components/{CollectionSelect-DL-bbpwJ.mjs → CollectionSelect-BL_jQog-.mjs} +1 -1
  28. package/dist/web-components/{Connected-BcjRA5si.mjs → Connected-BxqaRL9o.mjs} +1 -1
  29. package/dist/web-components/{Connected-B0S1HXQb.mjs → Connected-DCBI-j9H.mjs} +1 -1
  30. package/dist/web-components/{Connected-Q7iizBb8.mjs → Connected-DkhfVWxd.mjs} +1 -1
  31. package/dist/web-components/{Contents-ZC8TiGaW.mjs → Contents-zYEGHLfe.mjs} +1 -1
  32. package/dist/web-components/{ControlMenu-DIoU797-.mjs → ControlMenu-CAHiLAtl.mjs} +1 -1
  33. package/dist/web-components/{Cue-CJxnDMEy.mjs → Cue-BT2V9VAq.mjs} +1 -1
  34. package/dist/web-components/Document-BdCjGnJN.mjs +1 -0
  35. package/dist/web-components/DocumentPanel-X_Rta0Wu.mjs +1 -0
  36. package/dist/web-components/{DomLayers-BsR2AOy-.mjs → DomLayers-BD4QPbl6.mjs} +1 -1
  37. package/dist/web-components/{Download-DBksL1C0.mjs → Download-DqU-goFi.mjs} +1 -1
  38. package/dist/web-components/{EntryBodies-VwEkTVrw.mjs → EntryBodies-DXAQH0vR.mjs} +1 -1
  39. package/dist/web-components/{ErrorBoundary-Cy9PGoZv.mjs → ErrorBoundary-chQaO-Up.mjs} +1 -1
  40. package/dist/web-components/{FieldPill-DCJBz6Vj.mjs → FieldPill-CyEssPVm.mjs} +1 -1
  41. package/dist/web-components/{FrameAnimation-DRbmgGpF.mjs → FrameAnimation-Bb0pOoRl.mjs} +1 -1
  42. package/dist/web-components/{Gallery-BM7-VJkB.mjs → Gallery-BXU3TcT3.mjs} +1 -1
  43. package/dist/web-components/{HideToggle-BdYgG7us.mjs → HideToggle-BwMrOBMu.mjs} +1 -1
  44. package/dist/web-components/{Items-_1Jz3FMs.mjs → Items-DRj1UEpC.mjs} +1 -1
  45. package/dist/web-components/{Label-CAiJ49eA.mjs → Label-D6aVJB9s.mjs} +1 -1
  46. package/dist/web-components/LightboxBody-BzXQGMDn.mjs +1 -0
  47. package/dist/web-components/{Loaded-wQurAeJz.mjs → Loaded-D5xmFRSo.mjs} +1 -1
  48. package/dist/web-components/{LoadedCanvas-DWz5IK5m.mjs → LoadedCanvas-DOjtxLSe.mjs} +1 -1
  49. package/dist/web-components/LoadedMap-DouDS2lO.mjs +1 -0
  50. package/dist/web-components/{Loading-BmA--pzr.mjs → Loading-CBKfwsML.mjs} +1 -1
  51. package/dist/web-components/{Map-DzVGblIS.mjs → Map-Bcgp_R8H.mjs} +1 -1
  52. package/dist/web-components/MapView-CD5zkTs8.mjs +1 -0
  53. package/dist/web-components/{Markup-D91DbxLk.mjs → Markup-C1hMA8wk.mjs} +1 -1
  54. package/dist/web-components/{MediaBody-BYcVPo2X.mjs → MediaBody-B_Gii4we.mjs} +1 -1
  55. package/dist/web-components/{MediaBody-FEzH8VVw.mjs → MediaBody-BfrKIPte.mjs} +1 -1
  56. package/dist/web-components/{Navigator-CIJFA3q1.mjs → Navigator-BSJbEbuJ.mjs} +1 -1
  57. package/dist/web-components/{Pager-BGwCurxE.mjs → Pager-Di_2hHM3.mjs} +1 -1
  58. package/dist/web-components/{Panel-B-GXOkzF.mjs → Panel-DbsC8A9V.mjs} +1 -1
  59. package/dist/web-components/{PanelToggle-BYjV2t1j.mjs → PanelToggle-mUDw73zI.mjs} +1 -1
  60. package/dist/web-components/{PartOfManifest-ClbGepVM.mjs → PartOfManifest-7eOwURrF.mjs} +1 -1
  61. package/dist/web-components/{Pending-BspZajh5.mjs → Pending-BPOQ2z1L.mjs} +1 -1
  62. package/dist/web-components/{Primitives-CTh59wvs.mjs → Primitives-XQO3m1wG.mjs} +1 -1
  63. package/dist/web-components/{Provider-C6rIiDXH.mjs → Provider-B61118lU.mjs} +1 -1
  64. package/dist/web-components/{ReadMore-BJ2i-0uN.mjs → ReadMore-BJH-qqte.mjs} +1 -1
  65. package/dist/web-components/{Root-DkkYDtur.mjs → Root-Dj277K6p.mjs} +1 -1
  66. package/dist/web-components/Scene-BTWpLeec.mjs +1 -0
  67. package/dist/web-components/{SceneView-qcW_sT3j.mjs → SceneView-BYo7WmPt.mjs} +1 -1
  68. package/dist/web-components/{Search-UOneIUcP.mjs → Search-ZV8FFN4p.mjs} +1 -1
  69. package/dist/web-components/{Sections-we9U9fXq.mjs → Sections-ejwu1_Sm.mjs} +1 -1
  70. package/dist/web-components/{StandaloneItems-DU8oCFc_.mjs → StandaloneItems-BYaiyCca.mjs} +1 -1
  71. package/dist/web-components/{Status-Cs5ZvFvL.mjs → Status-YbQK2KzY.mjs} +1 -1
  72. package/dist/web-components/Timeline-ByyVSd7B.mjs +1 -0
  73. package/dist/web-components/{Tip-C8J3qsIK.mjs → Tip-IO11xX4x.mjs} +1 -1
  74. package/dist/web-components/{Transcript-CRL2zToL.mjs → Transcript-D0gUxUoA.mjs} +1 -1
  75. package/dist/web-components/{annotation-collection-ZPyvpLFc.mjs → annotation-collection-Csv7WIlm.mjs} +1 -1
  76. package/dist/web-components/{annotations-content-BZChKhJZ.mjs → annotations-content-BS_OFz5Z.mjs} +1 -1
  77. package/dist/web-components/{body-UntgrmoV.mjs → body-CKjwwFep.mjs} +1 -1
  78. package/dist/web-components/{canvas-d_U4v_mh.mjs → canvas-CIzpp-Uz.mjs} +1 -1
  79. package/dist/web-components/{cloverEngine-Dbv-26NP.mjs → cloverEngine-B4LinbSt.mjs} +1 -1
  80. package/dist/web-components/{content-state-reader-DjdKWjit.mjs → content-state-reader-D1BkpICh.mjs} +1 -1
  81. package/dist/web-components/{controls-qRYf2jO2.mjs → controls-Dj2BybWb.mjs} +1 -1
  82. package/dist/web-components/{engine-D8JLgzqq.mjs → engine-BSt8LTso.mjs} +1 -1
  83. package/dist/web-components/{engines-BwVb9R_A.mjs → engines-CC0OEsVE.mjs} +1 -1
  84. package/dist/web-components/{fromManifest-UrMJgktp.mjs → fromManifest-BhemHaoA.mjs} +1 -1
  85. package/dist/web-components/{glyphs-BoX0a88P.mjs → glyphs-drROkef9.mjs} +1 -1
  86. package/dist/web-components/{hooks-Dp8pjU8l.mjs → hooks-BXzQSllm.mjs} +1 -1
  87. package/dist/web-components/{imageService-C3yg9DxB.mjs → imageService-dsdmcegU.mjs} +1 -1
  88. package/dist/web-components/{index-DWxMuwDL.mjs → index-B7nZdqLg.mjs} +1 -1
  89. package/dist/web-components/index.mjs +1 -1
  90. package/dist/web-components/{items--Tu7ZM3L.mjs → items-CB2Uk7ts.mjs} +1 -1
  91. package/dist/web-components/items-jfQ5XzEj.mjs +1 -0
  92. package/dist/web-components/label-Vbg_cMOJ.mjs +1 -0
  93. package/dist/web-components/{layout-KL0V-iJu.mjs → layout-mMHI0lsj.mjs} +1 -1
  94. package/dist/web-components/{link-DRRTY4lY.mjs → link-ZRnv5NFR.mjs} +1 -1
  95. package/dist/web-components/logo-Boy6u4m2.mjs +1 -0
  96. package/dist/web-components/{models-BP2qp9nT.mjs → models-D1EE_CmH.mjs} +1 -1
  97. package/dist/web-components/{nodes-Bf-Fb7e5.mjs → nodes-B7JRwBgl.mjs} +1 -1
  98. package/dist/web-components/{overlayImage-DdPs2EGY.mjs → overlayImage-0OgQl1TL.mjs} +1 -1
  99. package/dist/web-components/{panel-CiqEFDzv.mjs → panel-CjXfre-g.mjs} +1 -1
  100. package/dist/web-components/part-cUiPs2-y.mjs +1 -0
  101. package/dist/web-components/{playerSurface-i2TJz-F4.mjs → playerSurface-CU5XxI1j.mjs} +1 -1
  102. package/dist/web-components/{provider-LUmAQSoP.mjs → provider-C1wKfdjb.mjs} +1 -1
  103. package/dist/web-components/{read-more-BaaO77el.mjs → read-more-DNHNtG-a.mjs} +1 -1
  104. package/dist/web-components/{rendererSurface-DAvatpMF.mjs → rendererSurface-DhIlOjGT.mjs} +2 -2
  105. package/dist/web-components/{renderers-Bg4QqawN.mjs → renderers-BMSWEFUR.mjs} +1 -1
  106. package/dist/web-components/{resource-DzIvB_4m.mjs → resource-DLHocQ1C.mjs} +1 -1
  107. package/dist/web-components/{search-DgcgsI3I.mjs → search-CLy2Wj01.mjs} +1 -1
  108. package/dist/web-components/{shared-J3w3gnXD.mjs → shared-YUjOSBKO.mjs} +1 -1
  109. package/dist/web-components/{show-link-DWRRXSBy.mjs → show-link-CyzYE1eS.mjs} +1 -1
  110. package/dist/web-components/{sizedImage-DfjlV2-i.mjs → sizedImage-uv_NlE0l.mjs} +1 -1
  111. package/dist/web-components/{split-m-_XivaW.mjs → split-CYuMjp89.mjs} +1 -1
  112. package/dist/web-components/{status-DDS7jLNd.mjs → status-Ms5L0ghK.mjs} +1 -1
  113. package/dist/web-components/{styles-Ypl9KrSK.mjs → styles-CyuM_fB1.mjs} +1 -1
  114. package/dist/web-components/three.mjs +1 -1
  115. package/dist/web-components/{thumbnail-BZvLSwWW.mjs → thumbnail-c2K_iQsD.mjs} +1 -1
  116. package/dist/web-components/{tip-BXByhOJ9.mjs → tip-dWhupWSr.mjs} +1 -1
  117. package/dist/web-components/{toggle-AS72kq6v.mjs → toggle-BQTjR1I3.mjs} +1 -1
  118. package/dist/web-components/{useContainerName-DCbE5JXi.mjs → useContainerName-BpJ3IWY0.mjs} +1 -1
  119. package/dist/web-components/{useNearViewport-CyoK3l8W.mjs → useNearViewport-CtLyYg9n.mjs} +1 -1
  120. package/dist/web-components/{useScrollTrack-dLFWnT8N.mjs → useScrollTrack-WbG28FPD.mjs} +1 -1
  121. package/dist/web-components/viewer/{AnnotationMenu-Dd4tnzNV.mjs → AnnotationMenu-ZKyBeyUU.mjs} +1 -1
  122. package/dist/web-components/viewer/{AnnotationState-DZaSy5lH.mjs → AnnotationState-DO33zokc.mjs} +1 -1
  123. package/dist/web-components/viewer/{Annotations-D1h-Yi5J.mjs → Annotations-BOjhr5ks.mjs} +1 -1
  124. package/dist/web-components/viewer/{Annotations-sj79EMen.mjs → Annotations-DkLueFLK.mjs} +1 -1
  125. package/dist/web-components/viewer/{Canvas2DBackend-CkvI0wUT.mjs → Canvas2DBackend-CAmzJD5P.mjs} +1 -1
  126. package/dist/web-components/viewer/{CaptionDetails-B_JdNjJ7.mjs → CaptionDetails-DOJlUtOn.mjs} +1 -1
  127. package/dist/web-components/viewer/{ChoiceMenu-xa51a1DV.mjs → ChoiceMenu-BDq6H34G.mjs} +1 -1
  128. package/dist/web-components/viewer/{Collection-CxuLCspj.mjs → Collection-By3puO0V.mjs} +1 -1
  129. package/dist/web-components/viewer/{Connected-BSUBc3Ci.mjs → Connected-DZNO2CPf.mjs} +1 -1
  130. package/dist/web-components/viewer/{Connected-CPIxNjF2.mjs → Connected-ESg5y49m.mjs} +1 -1
  131. package/dist/web-components/viewer/{Contents-DNh9mnsF.mjs → Contents-B_FqDwTW.mjs} +1 -1
  132. package/dist/web-components/viewer/{ControlMenu-DdgIvBdf.mjs → ControlMenu-DdQl-dTf.mjs} +1 -1
  133. package/dist/web-components/viewer/{Cue-90H9_dXz.mjs → Cue-BTRHfiWQ.mjs} +1 -1
  134. package/dist/web-components/viewer/Document-B9_PyD2w.mjs +1 -0
  135. package/dist/web-components/viewer/DocumentPanel-CtEJVPoE.mjs +1 -0
  136. package/dist/web-components/viewer/{DomLayers-Dybz_aJv.mjs → DomLayers-DRdQSEtN.mjs} +1 -1
  137. package/dist/web-components/viewer/{EntryBodies-DGXjFP3N.mjs → EntryBodies-CJuTRcTq.mjs} +1 -1
  138. package/dist/web-components/viewer/{FieldPill-Icmd98OY.mjs → FieldPill-06uwrNwE.mjs} +1 -1
  139. package/dist/web-components/viewer/{FrameAnimation-DJZN3Rd4.mjs → FrameAnimation-3dcDHf5q.mjs} +1 -1
  140. package/dist/web-components/viewer/{Gallery-CEp3-bh2.mjs → Gallery-BYasTqZc.mjs} +1 -1
  141. package/dist/web-components/viewer/{HideToggle-DB6HTmAO.mjs → HideToggle-BxkNMX-T.mjs} +1 -1
  142. package/dist/web-components/viewer/{LightboxBody-ClQ4yrTh.mjs → LightboxBody-CXMc1xOH.mjs} +1 -1
  143. package/dist/web-components/{MapView-BJaN7VBI.mjs → viewer/MapView-DCerrRRV.mjs} +1 -1
  144. package/dist/web-components/viewer/{MediaBody-BzMXMHIF.mjs → MediaBody-BdkJcyGy.mjs} +1 -1
  145. package/dist/web-components/viewer/{MediaBody-BBbSMT1i.mjs → MediaBody-waF4KvHp.mjs} +1 -1
  146. package/dist/web-components/viewer/{Navigator-Duc69Yes.mjs → Navigator-CKwDgG2x.mjs} +1 -1
  147. package/dist/web-components/viewer/{PartOfManifest-X9_q-2t6.mjs → PartOfManifest-DalHJFwC.mjs} +1 -1
  148. package/dist/web-components/viewer/{Search-S4N5QU4R.mjs → Search-Di_QQfDb.mjs} +1 -1
  149. package/dist/web-components/viewer/{StandaloneItems-BO4VyWRW.mjs → StandaloneItems-B9J6nnWn.mjs} +1 -1
  150. package/dist/web-components/viewer/{Transcript-BbDaS064.mjs → Transcript-aHOixfna.mjs} +1 -1
  151. package/dist/web-components/viewer/{annotation-collection-BjZ1DAHq.mjs → annotation-collection-I2UkdobR.mjs} +1 -1
  152. package/dist/web-components/viewer/{annotations-content-jn3n5Y2-.mjs → annotations-content-D-i4j9pD.mjs} +1 -1
  153. package/dist/web-components/viewer/{cloverEngine-CjuYjUhI.mjs → cloverEngine-CynoKdta.mjs} +1 -1
  154. package/dist/web-components/viewer/{content-state-reader-CPiShIjP.mjs → content-state-reader-D7GIMcKK.mjs} +1 -1
  155. package/dist/web-components/viewer/{host-yWi4R1bP.mjs → host-DlCltI_c.mjs} +1 -1
  156. package/dist/web-components/viewer/index.mjs +1 -1
  157. package/dist/web-components/viewer/{link-CwE-fg5G.mjs → link-BX-wzj1u.mjs} +1 -1
  158. package/dist/web-components/viewer/{overlayImage-BpOgqsZ0.mjs → overlayImage-CHqn1fG8.mjs} +1 -1
  159. package/dist/web-components/viewer/{renderers-L-IlGI1r.mjs → renderers-C_wdmw9v.mjs} +1 -1
  160. package/dist/web-components/viewer/{search-DWkwRPo_.mjs → search-BHLyNxZ6.mjs} +1 -1
  161. package/dist/web-components/viewer/{viewer--TreVlJ_.mjs → viewer-ipqAA-xQ.mjs} +5 -5
  162. package/dist/web-components/viewer/{vtt-1ZJwtElI.mjs → vtt-XiS_-5Ao.mjs} +1 -1
  163. package/dist/web-components/viewer-DEHIsIHd.mjs +1 -0
  164. package/dist/web-components/{vtt-GFssZH8Y.mjs → vtt-DYAOuQoK.mjs} +1 -1
  165. package/dist/web-components/worker-CjXN0dku.mjs +1 -0
  166. package/package.json +3 -2
  167. package/dist/web-components/About-uKa1wfDr.mjs +0 -1
  168. package/dist/web-components/Document-DHBRAFEK.mjs +0 -1
  169. package/dist/web-components/DocumentPanel-CqvE2pu9.mjs +0 -1
  170. package/dist/web-components/LightboxBody-DyhUZiDf.mjs +0 -1
  171. package/dist/web-components/LoadedMap-DIeW313M.mjs +0 -1
  172. package/dist/web-components/Scene-B_PU_TiX.mjs +0 -1
  173. package/dist/web-components/Timeline-WtYZ1bIJ.mjs +0 -1
  174. package/dist/web-components/items-W2vrwArM.mjs +0 -1
  175. package/dist/web-components/label-CYQ7tVl6.mjs +0 -1
  176. package/dist/web-components/logo-CnQUCB3Y.mjs +0 -1
  177. package/dist/web-components/part-CUBY90_b.mjs +0 -1
  178. package/dist/web-components/viewer/Document-CNCpzkiN.mjs +0 -1
  179. package/dist/web-components/viewer/DocumentPanel-BdG4TVLE.mjs +0 -1
  180. package/dist/web-components/viewer/MapView-BVSdybIC.mjs +0 -1
  181. package/dist/web-components/viewer-DyV864Qe.mjs +0 -1
@@ -1 +1 @@
1
- var ko=Object.defineProperty;var Oo=(e,t,n)=>t in e?ko(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n;var X=(e,t,n)=>Oo(e,typeof t!="symbol"?t+"":t,n);import{a as Oe}from"./index-DWxMuwDL.mjs";const Po=JSON.parse('{"commonClose":"Close","commonNext":"Next","commonPrevious":"Previous","commonSearch":"Search","commonViewAll":"View all","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Loading...","contentSearchPlaceholder":"Search","contentSearchResultsNone":"No results","contentSearchResult":"1 result","contentSearchResults":"{{count}} results","contentSearchError":"The search could not be completed.","contentSearchPosition":"Result {{index}} of {{total}}","contentSearchClear":"Clear search","canvasPosition":"Item {{index}} of {{total}}","canvasImage":"Image","canvasRoleDescription":"zoomable image","canvasKeysImage":"Use the arrow keys to pan, with Shift for larger steps, plus and minus to zoom, 0 to reset the view, and R or Shift+R to rotate.","canvasKeysMedia":"Press Space or K to play or pause, J or L to skip ten seconds back or forward, and M to mute or unmute.","canvasKeysAnnotations":"Press Escape to clear the selected annotation.","sceneModel":"3D model","sceneRoleDescription":"rotatable 3D model","sceneKeys":"Use the arrow keys to rotate the model, with Shift for larger steps, plus and minus to zoom, 0 to reset the view, and R or Shift+R to rotate it right or left.","sceneRotateUp":"Rotate up","sceneRotateDown":"Rotate down","sceneRotate":"Rotate","sceneResetView":"Reset view","statusLoading":"Loading\u2026","statusError":"This could not be loaded.","itemsLabel":"Items","download":"Download","downloadPage":"This page","downloadAll":"All pages","templateSidebar":"Items","templateSidebarToggle":"Show items","collectionLabel":"Collection","itemsScrollBack":"Show previous items","itemsScrollForward":"Show more items","aboutRights":"Rights","aboutHomepage":"Homepage","aboutSeeAlso":"See also","aboutProvider":"Provider","logo":"Logo","aboutManifest":"IIIF Manifest","aboutCanvas":"IIIF Canvas","aboutPartOf":"Part of","aboutOpenManifest":"Open the full Manifest","aboutCollection":"IIIF Collection","annotationsHide":"Hide annotations","annotationsHideTip":"Hide","readMore":"Read more","readLess":"Read less","annotationsShow":"Find on the image","annotationsShowTime":"Find in the recording","annotationsImage":"Image","annotationsLanguage":"Language","annotationsOpenLink":"Open the link","transcriptLabel":"Transcript","imageViewerOpen":"Open image viewer","imageViewerClose":"Close image viewer","canvasChoice":"Choice","imageFullScreen":"Full screen","imageExitFullScreen":"Exit full screen","imageResetZoom":"Reset zoom","imageRotateLeft":"Rotate left","imageRotateRight":"Rotate right","imageZoomIn":"Zoom in","imageZoomOut":"Zoom out","informationPanelTabs":"Information panel","sectionsScrollBack":"Show previous tabs","sectionsScrollForward":"Show more tabs","informationPanelClose":"Close information panel","informationPanelTabsAbout":"About","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Search","informationPanelTabsContents":"Contents","informationPanelTabsMap":"Map","informationPanelTabsCollection":"Collection","mapUnavailable":"The map could not be shown.","mapLabel":"Map","mapAttribution":"Map credits","mapPlaceUntitled":"Place {{number}}","mapOverlay":"Georeferenced image","mapPlacesListed":"Places listed after the map: {{count}}","informationPanelToggle":"More information","playerPlay":"Play","playerPause":"Pause","playerClose":"Close player","playerMute":"Mute","playerUnmute":"Unmute","playerVolume":"Volume","playerSeek":"Seek","playerCaptions":"Captions","playerCaptionsOff":"Off","playerChapters":"Chapters","framePrevious":"Previous frame","frameNext":"Next frame","frameSeek":"Frame","frameRepeat":"Repeat","framePosition":"Frame {{index}} of {{total}}","playerCurrentTime":"Current time","playerDuration":"Duration","splitHandle":"Resize panels"}'),Sn={es:()=>import("./es-BwMkoRod.mjs"),fi:()=>import("./fi-gPFOn9RK.mjs"),fr:()=>import("./fr-DUHmgdJo.mjs"),nb:()=>import("./nb-BSvnQ6jd.mjs"),nn:()=>import("./nn-Dg2_HdZu.mjs"),no:()=>import("./no-BSvnQ6jd.mjs"),pt:()=>import("./pt-B3J80JgO.mjs")};function Cn(){const e=[];return typeof document<"u"&&e.push(document.documentElement.lang),typeof navigator<"u"&&e.push(...navigator.languages??[],navigator.language),e.filter(Boolean)}const B="clover",W={en:{[B]:{...Po}}};let fe,xn=[],De=0;const Xe=new Set;function ut(){De++,Xe.forEach(e=>e())}function Eo(e){const t=e.split("-")[0];return t&&t!==e?[e,t]:[e]}const Nt=new Map,Io=e=>Object.prototype.hasOwnProperty.call(Sn,e);function Mo(e){let t=Nt.get(e);return t||(t=Sn[e]().then(({default:n})=>{var o;W[e]={...W[e],[B]:{...n,...(o=W[e])==null?void 0:o[B]}},ut()},()=>{}),Nt.set(e,t)),t}function kn(e){const t=e.find(n=>n==="en"||Io(n));return t&&t!=="en"?Mo(t):Promise.resolve()}let Ne=[],$t="";function we(){const e=fe?`${De}`:`${De} ${typeof document<"u"?document.documentElement.lang:""} ${typeof navigator<"u"?navigator.languages:""}`;if(e===$t)return Ne;$t=e;const t=fe?[fe]:Cn();return Ne=[...new Set([...t,...xn].flatMap(Eo).concat("en"))],kn(Ne),Ne}function On(e,t){const n=o=>o.split("-")[0].toLowerCase();return n(e)===n(t)}function Pn(e,t){if(e)return On(e,t||U.resolvedLanguage)?void 0:e}const U={get language(){return fe??we().find(e=>W[e])??"en"},get resolvedLanguage(){return we().find(e=>{var t;return Object.keys(((t=W[e])==null?void 0:t[B])??{}).length>0})??"en"},changeLanguage(e){fe=e,ut()},resolve(e,t,n=B){var r,s;let o={text:e};for(const i of we()){const a=(s=(r=W[i])==null?void 0:r[n])==null?void 0:s[e];if(a!==void 0){o={text:a,lang:i};break}}return t?{...o,text:o.text.replace(/\{\{(\w+)\}\}/g,(i,a)=>a in t?String(t[a]):i)}:o},t(e,t,n=B){return U.resolve(e,t,n).text},langOf(e,t,n=B){return Pn(U.resolve(e,void 0,n).lang,t)},ready(){return kn(we())},subscribe(e){return Xe.add(e),()=>{Xe.delete(e)}},getSnapshot(){return De}};typeof document<"u"&&we();function No(e={}){for(const[t,n]of Object.entries(e.resources??{}))for(const[o,r]of Object.entries(n??{}))W[t]??(W[t]={}),W[t][o]={...W[t][o],...r};return e.fallbackLng!==void 0&&(xn=e.fallbackLng===false?[]:[e.fallbackLng].flat()),e.lng&&(fe=e.lng),ut(),U}const Ds=Object.freeze(Object.defineProperty({__proto__:null,CLOVER_I18N_NAMESPACE:B,cloverI18n:U,initCloverI18n:No,langWithin:Pn,sameLanguage:On},Symbol.toStringTag,{value:"Module"}));var Pe,C,En,ae,At,In,Mn,Nn,ft,Qe,et,$n,xe={},An=[],$o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ee=Array.isArray;function J(e,t){for(var n in t)e[n]=t[n];return e}function _t(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ee(e,t,n){var o,r,s,i={};for(s in t)s=="key"?o=t[s]:s=="ref"?r=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Pe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Ce(e,i,o,r,null)}function Ce(e,t,n,o,r){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++En,__i:-1,__u:0};return r==null&&C.vnode!=null&&C.vnode(s),s}function Ao(){return{current:null}}function q(e){return e.children}function V(e,t){this.props=e,this.context=t}function _e(e,t){if(t==null)return e.__?_e(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?_e(e):null}function Tn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Tn(e)}}function tt(e){(!e.__d&&(e.__d=true)&&ae.push(e)&&!Fe.__r++||At!=C.debounceRendering)&&((At=C.debounceRendering)||In)(Fe)}function Fe(){for(var e,t,n,o,r,s,i,a=1;ae.length;)ae.length>a&&ae.sort(Mn),e=ae.shift(),a=ae.length,e.__d&&(n=void 0,o=void 0,r=(o=(t=e).__v).__e,s=[],i=[],t.__P&&((n=J({},o)).__v=o.__v+1,C.vnode&&C.vnode(n),dt(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,s,r??_e(o),!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,Hn(s,n,i),o.__e=o.__=null,n.__e!=r&&Tn(n)));Fe.__r=0}function Rn(e,t,n,o,r,s,i,a,l,u,f){var c,p,d,g,O,k,b,y=o&&o.__k||An,x=t.length;for(l=To(n,t,y,l,x),c=0;c<x;c++)(d=n.__k[c])!=null&&(p=d.__i==-1?xe:y[d.__i]||xe,d.__i=c,k=dt(e,d,p,r,s,i,a,l,u,f),g=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&pt(p.ref,null,d),f.push(d.ref,d.__c||g,d)),O==null&&g!=null&&(O=g),(b=!!(4&d.__u))||p.__k===d.__k?l=Ln(d,l,e,b):typeof d.type=="function"&&k!==void 0?l=k:g&&(l=g.nextSibling),d.__u&=-7);return n.__e=O,l}function To(e,t,n,o,r){var s,i,a,l,u,f=n.length,c=f,p=0;for(e.__k=new Array(r),s=0;s<r;s++)(i=t[s])!=null&&typeof i!="boolean"&&typeof i!="function"?(l=s+p,(i=e.__k[s]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ce(null,i,null,null,null):Ee(i)?Ce(q,{children:i},null,null,null):i.constructor==null&&i.__b>0?Ce(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,(u=i.__i=Ro(i,n,l,c))!=-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(r>f?p--:r<f&&p++),typeof i.type!="function"&&(i.__u|=4)):u!=l&&(u==l-1?p--:u==l+1?p++:(u>l?p--:p++,i.__u|=4))):e.__k[s]=null;if(c)for(s=0;s<f;s++)(a=n[s])!=null&&!(2&a.__u)&&(a.__e==o&&(o=_e(a)),Dn(a,a));return o}function Ln(e,t,n,o){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Ln(r[s],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=_e(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ee(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function Ro(e,t,n,o){var r,s,i,a=e.key,l=e.type,u=t[n],f=u!=null&&(2&u.__u)==0;if(u===null&&e.key==null||f&&a==u.key&&l==u.type)return n;if(o>(f?1:0)){for(r=n-1,s=n+1;r>=0||s<t.length;)if((u=t[i=r>=0?r--:s++])!=null&&!(2&u.__u)&&a==u.key&&l==u.type)return i}return-1}function Tt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||$o.test(t)?n:n+"px"}function $e(e,t,n,o,r){var s,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Tt(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||Tt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Nn,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?o?n.u=o.u:(n.u=ft,e.addEventListener(t,s?et:Qe,s)):e.removeEventListener(t,s?et:Qe,s);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===false&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Rt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ft++;else if(t.t<n.u)return;return n(C.event?C.event(t):t)}}}function dt(e,t,n,o,r,s,i,a,l,u){var f,c,p,d,g,O,k,b,y,x,T,F,R,te,j,K,G,A=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=C.__b)&&f(t);e:if(typeof A=="function")try{if(b=t.props,y="prototype"in A&&A.prototype.render,x=(f=A.contextType)&&o[f.__c],T=f?x?x.props.value:f.__:o,n.__c?k=(c=t.__c=n.__c).__=c.__E:(y?t.__c=c=new A(b,T):(t.__c=c=new V(b,T),c.constructor=A,c.render=Ho),x&&x.sub(c),c.props=b,c.state||(c.state={}),c.context=T,c.__n=o,p=c.__d=true,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&A.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=J({},c.__s)),J(c.__s,A.getDerivedStateFromProps(b,c.__s))),d=c.props,g=c.state,c.__v=t,p)y&&A.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&A.getDerivedStateFromProps==null&&b!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(b,T),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(b,c.__s,T)===false||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=b,c.state=c.__s,c.__d=false),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(D){D&&(D.__=t)}),F=0;F<c._sb.length;F++)c.__h.push(c._sb[F]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(b,c.__s,T),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,g,O)})}if(c.context=T,c.props=b,c.__P=e,c.__e=false,R=C.__r,te=0,y){for(c.state=c.__s,c.__d=false,R&&R(t),f=c.render(c.props,c.state,c.context),j=0;j<c._sb.length;j++)c.__h.push(c._sb[j]);c._sb=[]}else do c.__d=false,R&&R(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++te<25);c.state=c.__s,c.getChildContext!=null&&(o=J(J({},o),c.getChildContext())),y&&!p&&c.getSnapshotBeforeUpdate!=null&&(O=c.getSnapshotBeforeUpdate(d,g)),K=f,f!=null&&f.type===q&&f.key==null&&(K=Un(f.props.children)),a=Rn(e,Ee(K)?K:[K],t,n,o,r,s,i,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),k&&(c.__E=c.__=null)}catch(D){if(t.__v=null,l||s!=null)if(D.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else{for(G=s.length;G--;)_t(s[G]);nt(t)}else t.__e=n.__e,t.__k=n.__k,D.then||nt(t);C.__e(D,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Lo(n.__e,t,n,o,r,s,i,l,u);return(f=C.diffed)&&f(t),128&t.__u?void 0:a}function nt(e){e&&e.__c&&(e.__c.__e=true),e&&e.__k&&e.__k.forEach(nt)}function Hn(e,t,n){for(var o=0;o<n.length;o++)pt(n[o],n[++o],n[++o]);C.__c&&C.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(s){s.call(r)})}catch(s){C.__e(s,r.__v)}})}function Un(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Ee(e)?e.map(Un):J({},e)}function Lo(e,t,n,o,r,s,i,a,l){var u,f,c,p,d,g,O,k=n.props,b=t.props,y=t.type;if(y=="svg"?r="http://www.w3.org/2000/svg":y=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),s!=null){for(u=0;u<s.length;u++)if((d=s[u])&&"setAttribute"in d==!!y&&(y?d.localName==y:d.nodeType==3)){e=d,s[u]=null;break}}if(e==null){if(y==null)return document.createTextNode(b);e=document.createElementNS(r,y,b.is&&b),a&&(C.__m&&C.__m(t,s),a=false),s=null}if(y==null)k===b||a&&e.data==b||(e.data=b);else{if(s=s&&Pe.call(e.childNodes),k=n.props||xe,!a&&s!=null)for(k={},u=0;u<e.attributes.length;u++)k[(d=e.attributes[u]).name]=d.value;for(u in k)if(d=k[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in b)){if(u=="value"&&"defaultValue"in b||u=="checked"&&"defaultChecked"in b)continue;$e(e,u,null,d,r)}}for(u in b)d=b[u],u=="children"?p=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?g=d:u=="checked"?O=d:a&&typeof d!="function"||k[u]===d||$e(e,u,d,k[u],r);if(f)a||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Rn(t.type=="template"?e.content:e,Ee(p)?p:[p],t,n,o,y=="foreignObject"?"http://www.w3.org/1999/xhtml":r,s,i,s?s[0]:n.__k&&_e(n,0),a,l),s!=null)for(u=s.length;u--;)_t(s[u]);a||(u="value",y=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[u]||y=="progress"&&!g||y=="option"&&g!=k[u])&&$e(e,u,g,k[u],r),u="checked",O!=null&&O!=e[u]&&$e(e,u,O,k[u],r))}return e}function pt(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(r){C.__e(r,n)}}function Dn(e,t,n){var o,r;if(C.unmount&&C.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||pt(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(s){C.__e(s,t)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&Dn(o[r],t,n||typeof e.type!="function");n||_t(e.__e),e.__c=e.__=e.__e=void 0}function Ho(e,t,n){return this.constructor(e,n)}function ke(e,t,n){var o,r,s,i;t==document&&(t=document.documentElement),C.__&&C.__(e,t),r=(o=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],dt(t,e=(!o&&n||t).__k=ee(q,null,[e]),r||xe,xe,t.namespaceURI,!o&&n?[n]:r?null:t.firstChild?Pe.call(t.childNodes):null,s,!o&&n?n:r?r.__e:t.firstChild,o,i),Hn(s,e,i)}function Fn(e,t){ke(e,t,Fn)}function Uo(e,t,n){var o,r,s,i,a=J({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?o=t[s]:s=="ref"?r=t[s]:a[s]=t[s]===void 0&&i!=null?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?Pe.call(arguments,2):n),Ce(e.type,a,o||e.key,r||e.ref,null)}function Ie(e){function t(n){var o,r;return this.getChildContext||(o=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&o.forEach(function(i){i.__e=true,tt(i)})},this.sub=function(s){o.add(s);var i=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),i&&i.call(s)}}),n.children}return t.__c="__cC"+$n++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}Pe=An.slice,C={__e:function(e,t,n,o){for(var r,s,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((s=r.constructor)&&s.getDerivedStateFromError!=null&&(r.setState(s.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),i=r.__d),i)return r.__E=r}catch(a){e=a}throw e}},En=0,V.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=J({},this.state),typeof e=="function"&&(e=e(J({},n),this.props)),e&&J(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),tt(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=true,e&&this.__h.push(e),tt(this))},V.prototype.render=q,ae=[],In=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mn=function(e,t){return e.__v.__b-t.__v.__b},Fe.__r=0,Nn=/(PointerCapture)$|Capture$/i,ft=0,Qe=Rt(false),et=Rt(true),$n=0;var Do=0;function N(e,t,n,o,r,s){t||(t={});var i,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?i=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Do,__i:-1,__u:0,__source:r,__self:s};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)l[a]===void 0&&(l[a]=i[a]);return C.vnode&&C.vnode(u),u}var oe,E,qe,Lt,de=0,jn=[],M=C,Ht=M.__b,Ut=M.__r,Dt=M.diffed,Ft=M.__c,jt=M.unmount,Wt=M.__;function he(e,t){M.__h&&M.__h(E,e,de||t),de=0;var n=E.__H||(E.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function re(e){return de=1,vt(Vn,e)}function vt(e,t,n){var o=he(oe++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):Vn(void 0,t),function(a){var l=o.__N?o.__N[0]:o.__[0],u=o.t(l,a);l!==u&&(o.__N=[u,o.__[1]],o.__c.setState({}))}],o.__c=E,!E.__f)){var r=function(a,l,u){if(!o.__c.__H)return true;var f=o.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!s||s.call(this,a,l,u);var c=o.__c.props!==a;return f.forEach(function(p){if(p.__N){var d=p.__[0];p.__=p.__N,p.__N=void 0,d!==p.__[0]&&(c=true)}}),s&&s.call(this,a,l,u)||c};E.__f=true;var s=E.shouldComponentUpdate,i=E.componentWillUpdate;E.componentWillUpdate=function(a,l,u){if(this.__e){var f=s;s=void 0,r(a,l,u),s=f}i&&i.call(this,a,l,u)},E.shouldComponentUpdate=r}return o.__N||o.__}function $(e,t){var n=he(oe++,3);!M.__s&&mt(n.__H,t)&&(n.__=e,n.u=t,E.__H.__h.push(n))}function Z(e,t){var n=he(oe++,4);!M.__s&&mt(n.__H,t)&&(n.__=e,n.u=t,E.__h.push(n))}function L(e){return de=5,ce(function(){return{current:e}},[])}function Wn(e,t,n){de=6,Z(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function ce(e,t){var n=he(oe++,7);return mt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function pe(e,t){return de=8,ce(function(){return e},t)}function se(e){var t=E.context[e.__c],n=he(oe++,9);return n.c=e,t?(n.__==null&&(n.__=true,t.sub(E)),t.props.value):e.__}function Bn(e,t){M.useDebugValue&&M.useDebugValue(t?t(e):e)}function ht(){var e=he(oe++,11);if(!e.__){for(var t=E.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Fo(){for(var e;e=jn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Le),e.__H.__h.forEach(ot),e.__H.__h=[]}catch(t){e.__H.__h=[],M.__e(t,e.__v)}}M.__b=function(e){E=null,Ht&&Ht(e)},M.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Wt&&Wt(e,t)},M.__r=function(e){Ut&&Ut(e),oe=0;var t=(E=e.__c).__H;t&&(qe===E?(t.__h=[],E.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Le),t.__h.forEach(ot),t.__h=[],oe=0)),qe=E},M.diffed=function(e){Dt&&Dt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jn.push(t)!==1&&Lt===M.requestAnimationFrame||((Lt=M.requestAnimationFrame)||jo)(Fo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),qe=E=null},M.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Le),n.__h=n.__h.filter(function(o){return!o.__||ot(o)})}catch(o){t.some(function(r){r.__h&&(r.__h=[])}),t=[],M.__e(o,n.__v)}}),Ft&&Ft(e,t)},M.unmount=function(e){jt&&jt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Le(o)}catch(r){t=r}}),n.__H=void 0,t&&M.__e(t,n.__v))};var Bt=typeof requestAnimationFrame=="function";function jo(e){var t,n=function(){clearTimeout(o),Bt&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);Bt&&(t=requestAnimationFrame(n))}function Le(e){var t=E,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),E=t}function ot(e){var t=E;e.__c=e.__(),E=t}function mt(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function Vn(e,t){return typeof t=="function"?t(e):t}function zn(e,t){for(var n in t)e[n]=t[n];return e}function rt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return true;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return true;return false}function ie(e,t){var n=t(),o=re({t:{__:n,u:t}}),r=o[0].t,s=o[1];return Z(function(){r.__=n,r.u=t,Ke(r)&&s({t:r})},[e,n,t]),$(function(){return Ke(r)&&s({t:r}),e(function(){Ke(r)&&s({t:r})})},[e]),n}function Ke(e){var t,n,o=e.u,r=e.__;try{var s=o();return!((t=r)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return true}}function qn(e){e()}function Kn(e){return e}function Jn(){return[false,qn]}var Zn=Z;function st(e,t){this.props=e,this.context=t}function gt(e,t){function n(r){var s=this.props.ref,i=s==r.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,r)||!i:rt(this.props,r)}function o(r){return this.shouldComponentUpdate=n,ee(e,r)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=true,o.__f=true,o.type=e,o}(st.prototype=new V).isPureReactComponent=true,st.prototype.shouldComponentUpdate=function(e,t){return rt(this.props,e)||rt(this.state,t)};var Vt=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Vt&&Vt(e)};var Wo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Bo(e){function t(n){var o=zn({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=Wo,t.render=e,t.prototype.isReactComponent=t.__f=true,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var zt=function(e,t){return e==null?null:Q(Q(e).map(t))},Vo={map:zt,forEach:zt,count:function(e){return e?Q(e).length:0},only:function(e){var t=Q(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Q},zo=C.__e;C.__e=function(e,t,n,o){if(e.then){for(var r,s=t;s=s.__;)if((r=s.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}zo(e,t,n,o)};var qt=C.unmount;function Gn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=zn({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=true,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Gn(o,t,n)})),e}function Yn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Yn(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=true,e.__c.__P=n)),e}function He(){this.__u=0,this.o=null,this.__b=null}function Xn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qo(e){var t,n,o;function r(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){o=i}),o)throw o;if(!n)throw t;return ee(n,s)}return r.displayName="Lazy",r.__f=true,r}function Se(){this.i=null,this.l=null}C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),qt&&qt(e)},(He.prototype=new V).__c=function(e,t){var n=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(n);var r=Xn(o.__v),s=false,i=function(){s||(s=true,n.__R=null,r?r(a):a())};n.__R=i;var a=function(){if(!--o.__u){if(o.state.__a){var l=o.state.__a;o.__v.__k[0]=Yn(l,l.__c.__P,l.__c.__O)}var u;for(o.setState({__a:o.__b=null});u=o.o.pop();)u.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(i,i)},He.prototype.componentWillUnmount=function(){this.o=[]},He.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Gn(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&ee(q,null,e.fallback);return r&&(r.__u&=-33),[ee(q,null,t.__a?null:e.children),r]};var Kt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Ko(e){return this.getChildContext=function(){return e.context},e.children}function Jo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){ke(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:o.__m},contains:function(){return true},insertBefore:function(r,s){this.childNodes.push(r),t.h.insertBefore(r,s)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}}ke(ee(Ko,{context:t.context},e.__v),t.v)}function yt(e,t){var n=ee(Jo,{__v:e,h:t});return n.containerInfo=t,n}(Se.prototype=new V).__a=function(e){var t=this,n=Xn(t.__v),o=t.l.get(e);return o[0]++,function(r){var s=function(){t.props.revealOrder?(o.push(r),Kt(t,e,o)):r()};n?n(s):s()}},Se.prototype.render=function(e){this.i=null,this.l=new Map;var t=Q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Se.prototype.componentDidUpdate=Se.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Kt(e,n,t)})};var Qn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Go=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yo=/[A-Z0-9]/g,Xo=typeof document<"u",Qo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function eo(e,t,n){return t.__k==null&&(t.textContent=""),ke(e,t),typeof n=="function"&&n(),e?e.__c:null}function er(e,t,n){return Fn(e,t),typeof n=="function"&&n(),e?e.__c:null}V.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(V.prototype,e,{configurable:true,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:true,writable:true,value:t})}})});var Jt=C.event;function tr(){}function nr(){return this.cancelBubble}function or(){return this.defaultPrevented}C.event=function(e){return Jt&&(e=Jt(e)),e.persist=tr,e.isPropagationStopped=nr,e.isDefaultPrevented=or,e.nativeEvent=e};var bt,rr={enumerable:false,configurable:true,get:function(){return this.class}},Zt=C.vnode;C.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,r={},s=o.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Xo&&i==="children"&&o==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===true?a="":l==="translate"&&a==="no"?a=false:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||o!=="input"&&o!=="textarea"||Qo(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Go.test(i)&&(i=l):l=i="oninput":s&&Zo.test(i)?i=i.replace(Yo,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&r[i=l]&&(i="oninputCapture"),r[i]=a}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Q(n.children).forEach(function(u){u.props.selected=r.value.indexOf(u.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=Q(n.children).forEach(function(u){u.props.selected=r.multiple?r.defaultValue.indexOf(u.props.value)!=-1:r.defaultValue==u.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",rr)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=Qn,Zt&&Zt(e)};var Gt=C.__r;C.__r=function(e){Gt&&Gt(e),bt=e.__c};var Yt=C.diffed;C.diffed=function(e){Yt&&Yt(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),bt=null};var sr={ReactCurrentDispatcher:{current:{readContext:function(e){return bt.__n[e.__c].props.value},useCallback:pe,useContext:se,useDebugValue:Bn,useDeferredValue:Kn,useEffect:$,useId:ht,useImperativeHandle:Wn,useInsertionEffect:Zn,useLayoutEffect:Z,useMemo:ce,useReducer:vt,useRef:L,useState:re,useSyncExternalStore:ie,useTransition:Jn}}};function ir(e){return ee.bind(null,e)}function je(e){return!!e&&e.$$typeof===Qn}function ar(e){return je(e)&&e.type===q}function cr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function lr(e){return je(e)?Uo.apply(null,arguments):e}function to(e){return!!e.__k&&(ke(null,e),true)}function ur(e){return e&&(e.base||e.nodeType===1&&e)||null}var fr=function(e,t){return e(t)},_r=function(e,t){return e(t)},dr=q,pr=je,Fs={useState:re,useId:ht,useReducer:vt,useEffect:$,useLayoutEffect:Z,useInsertionEffect:Zn,useTransition:Jn,useDeferredValue:Kn,useSyncExternalStore:ie,startTransition:qn,useRef:L,useImperativeHandle:Wn,useMemo:ce,useCallback:pe,useContext:se,useDebugValue:Bn,version:"18.3.1",Children:Vo,render:eo,hydrate:er,unmountComponentAtNode:to,createPortal:yt,createElement:ee,createContext:Ie,createFactory:ir,cloneElement:lr,createRef:Ao,Fragment:q,isValidElement:je,isElement:pr,isFragment:ar,isMemo:cr,findDOMNode:ur,Component:V,PureComponent:st,memo:gt,forwardRef:Bo,flushSync:_r,unstable_batchedUpdates:fr,StrictMode:dr,Suspense:He,SuspenseList:Se,lazy:qo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sr};function vr(e){return{render:function(t){eo(t,e)},unmount:function(){to(e)}}}const wt=Ie("");function hr(){return se(wt)+ht()}Oe(1,"styles/scale","@layer clover{:root{--clover-space-3xs: .146rem;--clover-space-2xs: .236rem;--clover-space-xs: .382rem;--clover-space-s: .618rem;--clover-space-m: 1rem;--clover-space-l: 1.618rem;--clover-space-xl: 2.618rem;--clover-space-2xl: 4.236rem;--clover-text-xs: .764rem;--clover-text-s: .854rem;--clover-text-m: 1.146rem;--clover-text-l: 1.236rem;--clover-control: calc(1rem + 2 * var(--clover-space-s));--clover-inset: var(--clover-space-l)}:where(.clover-root,.clover-canvas,.clover-items,.clover-geomap) :where(button,input,select,textarea){font:inherit}:where(.clover-field-pill-query,.clover-collection-select-control){box-sizing:border-box;padding:var(--clover-space-xs) var(--clover-space-s);border:1px solid var( --clover-field-edge, color-mix( in srgb, var(--clover-color-primary-muted, #26292b) 80%, var(--clover-color-secondary, #fff) ) );border-radius:var(--clover-radius, 3px);background-color:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e)}:where(.clover-field-pill-query,.clover-collection-select-control):focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:1px}:where(.clover-field-pill-query)::placeholder{color:color-mix(in srgb,var(--clover-color-primary, #1a1d1e) 65%,var(--clover-color-secondary, #fff));opacity:1}}");const mr="clover-root",no=Symbol("roots"),gr=[];class oo{constructor(t){X(this,"entries",new Map);X(this,"lists",new Map);X(this,"listeners",new Map);X(this,"languages",new yr(t2=>this.entries.has(t2)));this.count=t}list(t){return this.lists.get(t)??gr}subscribe(t,n){let o=this.listeners.get(t);return o||this.listeners.set(t,o=new Set),o.add(n),()=>{o.delete(n)}}connect(t){var s;const n=t.kind==="part"?((s=t.element.parentElement)==null?void 0:s.closest(mr))??null:null,o=this.entries.get(t.element);if(o&&o.root===n)return;const r={hosted:t,key:(o==null?void 0:o.key)??++this.count.made,root:n};this.entries.set(t.element,r),o&&this.change(Je(o),i=>i.filter(a=>a!==o)),this.change(Je(r),i=>[...i,r]),t.needsRoot&&!n&&console.warn(`<${t.element.localName}> shows a <clover-root>'s state: put it inside one.`),t.kind!=="root"&&this.languages.draws(t.element.localName),(t.kind!=="part"||!n)&&this.languages.watch(t.element)}disconnect(t){const n=this.entries.get(t);n&&(this.entries.delete(t),this.change(Je(n),o=>o.filter(r=>r!==n)))}change(t,n){var o;this.lists.set(t,n(this.list(t))),(o=this.listeners.get(t))==null||o.forEach(r=>r())}}const Je=e=>e.hosted.kind==="root"?no:e.root;class yr{constructor(t){X(this,"observer",null);X(this,"tags",new Set);this.isElement=t}draws(t){this.tags.add(t)}watch(t){this.observer??(this.observer=new MutationObserver(n=>{const o=[...this.tags,".clover-announcer"].join(",");for(const{target:r}of n){const s=r;s.getAttribute("lang")!==""||this.isElement(s)||s.closest(o)&&s.removeAttribute("lang")}})),this.observer.observe(t,{subtree:true,attributes:true,attributeFilter:["lang"]})}}function it(e,t){const n=pe(r=>e.subscribe(t,r),[e,t]);return ie(n,()=>e.list(t))}function ro(e){return ie(e.subscribe,e.getProps,e.getProps)}function br({registry:e}){const t=it(e,no),n=it(e,null);return N(q,{children:[t.map(o=>N(wr,{entry:o,registry:e},o.key)),n.map(o=>N(io,{entry:o},o.key))]})}const so=e=>`clover-${e.key}-`,wr=gt(function({entry:t,registry:n}){const{hosted:o}=t,r=it(n,o.element),s=ro(o),i=o.Component;return N(ao,{hosted:o,props:s,children:N(wt.Provider,{value:so(t),children:N(i,{hosted:o,props:s,children:r.map(a=>N(io,{entry:a},a.key))})})})}),io=gt(function({entry:t}){const{hosted:n}=t,o=ro(n);if(n.needsRoot&&!t.root)return null;const r=n.Component;return yt(N(ao,{hosted:n,props:o,children:N(wt.Provider,{value:so(t),children:N(r,{hosted:n,props:o})})}),n.element)});class ao extends V{constructor(){super(...arguments);X(this,"state",{failed:false})}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(n,o){console.error(`<${this.props.hosted.element.localName}>:`,n)}componentDidUpdate(n){this.state.failed&&n.props!==this.props.props&&this.setState({failed:false})}render(){return this.state.failed?null:this.props.children}}const Xt=new WeakMap,Ae=Symbol.for("clover.elements");function Sr(e){let t=Xt.get(e);if(!t){const n=e;n[Ae]&&console.warn("Clover is loaded twice on this page: load one entry."),t=new oo(n[Ae]??(n[Ae]={made:0})),Xt.set(e,t),vr(e.createElement("div")).render(N(br,{registry:t}))}return t}const js=Object.freeze(Object.defineProperty({__proto__:null,Registry:oo,hostOf:Sr},Symbol.toStringTag,{value:"Module"})),St=Ie(void 0);function co(e=B,t){const n=ie(U.subscribe,U.getSnapshot,U.getSnapshot),o=se(St),r=t??o,s=pe((a,l)=>U.t(a,l,e),[e,n]),i=pe(a=>U.langOf(a,r,e),[e,n,r]);return{t:s,langOf:i,hostLanguage:r,i18n:U}}function Cr(e,t,n={}){return((e==null?void 0:e.fetch)??globalThis.fetch)(t,{credentials:(e==null?void 0:e.credentials)??"same-origin",...n,headers:{...n.headers,...e==null?void 0:e.headers}})}const Ws=e=>(e==null?void 0:e.credentials)==="include",xr=e=>JSON.stringify([e==null?void 0:e.credentials,e==null?void 0:e.headers]);class kr extends Error{constructor(t,n,o){super(t),this.url=n,this.status=o,this.name="CloverRequestError"}}async function ve(e,t,n){const o=await Cr(e,t,{signal:n,headers:{Accept:"application/ld+json, application/json"}});if(!o.ok)throw new kr(`${t} answered ${o.status}`,t,o.status);return o.json()}const P=e=>Array.isArray(e)?e:e==null?[]:[e],lo=["Independents","Composite","List"];function uo(e){return P(e==null?void 0:e.body).flatMap(t=>lo.includes(t==null?void 0:t.type)?P(t.items):[t])}function Or(e){const t=P(e==null?void 0:e.motivation);return!t.length||t.includes("painting")}function Pr(e){const t=[];for(const n of P(e==null?void 0:e.items))for(const o of P(n==null?void 0:n.items))if(Or(o))for(let r of uo(o))(r==null?void 0:r.type)==="Choice"&&(r=P(r.items)[0]),(r==null?void 0:r.type)==="SpecificResource"&&(r=typeof r.source=="string"?{id:r.source}:r.source),r&&t.push({body:r,annotation:o});return t}const Ze=e=>e.indexOf("-")===-1?null:e.slice(0,e.indexOf("-"));function Er(e,t,n=[]){if(!t.length)return;if(t.length===1)return t[0];const o=()=>t.includes("none")?"none":t.includes("@none")?"@none":t[0];if(!e)return t.includes("none")?"none":t[0];if(t.includes(e))return e;const r=Ze(e);if(r&&t.includes(r))return r;const s=n.find(a=>t.includes(a));if(s)return s;const i=t.findIndex(a=>Ze(a)===e);if(i!==-1)return t[i];for(const a of n){const l=Ze(a);if(l&&t.includes(l))return l}return o()}function fo(e,t,n=", "){if(!e)return{text:""};if(typeof e=="string")return{text:e};const o=Object.keys(e).filter(u=>{var f;return(f=e[u])==null?void 0:f.length});if(!o.length)return{text:""};const[r,...s]=t?[t]:Cn(),i=Er(r,o,s)??o[0],a=e[i];return{text:Array.isArray(a)?a.join(n):String(a),lang:i==="none"?void 0:i}}const We=Ie(null);function Bs(){return se(We)}function Ir(e="This part"){const t=se(We);if(!t)throw new Error(`${e} must be rendered inside <Clover.Root>.`);return t}function Vs(e,t=Object.is,n){const{clover:o}=Ir(n),r=L(null),s=()=>{const i=e(o.store.get());return r.current&&t(r.current.value,i)?r.current.value:(r.current={value:i},i)};return ie(o.store.subscribe,s)}const Mr={subscribe:()=>()=>{}};function zs(e,t){const n=se(We),o=n==null?void 0:n.clover.store,r=()=>o?e(o.get()):t;return ie(o?o.subscribe:Mr.subscribe,r)}function Nr(e,t){const n=se(St),o=L(null),[r,s]=re(""),i=pe(f=>{o.current=f,typeof e=="function"?e(f):e&&(e.current=f)},[e]);$(()=>{var c,p;const f=(c=o.current)==null?void 0:c.parentElement;t!==void 0||n!==void 0||!f||s(((p=f.closest("[lang]"))==null?void 0:p.getAttribute("lang"))??"")});const l=t??n??r,{langOf:u}=co(void 0,l);return{ref:i,hostLanguage:l,langOf:u}}Oe(19,"ui/ReadMore","@layer clover{.clover-read-more{display:flex;flex-direction:column;align-items:flex-start;gap:var(--clover-space-xs);min-width:0}button.clover-read-more-button{margin:0;padding:0;border:0;background:none;color:var(--clover-color-accent-text, var(--clover-color-accent, #0065c3));font-size:var(--clover-text-s);text-decoration:underline 1px;text-decoration-color:color-mix(in srgb,currentColor 20%,transparent);text-underline-offset:var(--clover-space-3xs);cursor:pointer}button.clover-read-more-button:hover{text-decoration-color:currentColor}button.clover-read-more-button:focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:2px;border-radius:var(--clover-radius, 3px)}}");const $r=["left-to-right","right-to-left","top-to-bottom","bottom-to-top"];function Ar(e){return $r.includes(e)?e:"left-to-right"}const Tr=["individuals","paged","continuous","unordered"];function Rr(e){return P(e).find(n=>Tr.includes(n))??"individuals"}function Lr(e,t){if(!e.length)return[];if(t==="continuous")return[e.map((a,l)=>l)];if(t!=="paged")return e.map((a,l)=>[l]);const n=[];let o=[],r=0,s=false;const i=()=>{o.length&&n.push(o),o=[]};return e.forEach((a,l)=>{const u=P(a.behavior);if(u.includes("non-paged")){l===r&&r++,i(),n.push([l]);return}if(l===r||u.includes("facing-pages")){o.length&&(s=true),i(),n.push([l]);return}if(o.push(l),s){i(),s=false;return}o.length>1&&i()}),i(),n}function Hr(e,t){const n=e.findIndex(o=>o.includes(t));return n===-1?0:n}function _o(e,t){const n=/(?:^|[#&])t=([^&]+)/.exec(t),o=n&&{t:n[1]},r=/(?:^|[#&])xywh=(?:pixel:)?([^&]+)/.exec(t);if(r){const[s,i,a,l]=r[1].split(",").map(Number);if([s,i,a,l].every(Number.isFinite))return{id:e,rect:{x:s,y:i,w:a,h:l},...o}}return o&&{id:e,...o}}function Te(e){const t=e.indexOf("#");if(t>=0){const o=e.slice(0,t);return _o(o,e.slice(t))??{id:o}}const n=e.indexOf("&t=");return n>=0?{id:e.slice(0,n),t:e.slice(n+3)}:{id:e}}const at=e=>{var t;return Array.isArray(e)?at(e[0]):lo.includes(e==null?void 0:e.type)?at((t=e.items)==null?void 0:t[0]):e};function Be(e){return Ur(at(e))}function Ur(e){var n;if(typeof e=="string")return Te(e);if(!e||typeof e!="object")return{id:""};if(e.type!=="SpecificResource"||e.source===void 0)return Te(e.id??"");const t=typeof e.source=="string"?Te(e.source):Te(((n=e.source)==null?void 0:n.id)??"");for(const o of P(e.selector)){const r=o;if((r==null?void 0:r.type)==="PointSelector")return{id:t.id,point:{x:Number(r.x),y:Number(r.y)}};if((r==null?void 0:r.type)==="SvgSelector"&&r.value)return{id:t.id,svg:String(r.value)};if((r==null?void 0:r.type)==="FragmentSelector"&&r.value){const s=_o(t.id,String(r.value));if(s)return s}}return t}const qs=e=>e==="Audio"||e==="Sound",Dr=e=>{const t=P(e);return t.length>0&&t.every(n=>n==="supplementing")},Fr=(e,t)=>Dr(e)&&!!(t.rect||t.svg||t.point)&&!t.t,Qt=new WeakMap,jr={canvases:[],views:[],direction:"left-to-right"};function z(e){if(!e)return jr;let t=Qt.get(e);if(!t){const n=(e.items??[]).filter(o=>(o==null?void 0:o.type)==="Canvas"||(o==null?void 0:o.type)==="Timeline"||(o==null?void 0:o.type)==="Scene");t={canvases:n,views:Lr(n,Rr(e.behavior)),direction:Ar(e.viewingDirection)},Qt.set(e,t)}return t}const en=new WeakMap;function Me(e,t){if(!t)return null;const n=z(e);let o=en.get(n);if(!o){o=new Map;for(const r of n.canvases)o.has(r.id)||o.set(r.id,r);en.set(n,o)}return o.get(t)??null}function Ve(e,t){const{canvases:n,views:o}=z(e),r=n.findIndex(s=>s.id===t);return r===-1?0:Hr(o,r)}const tn=new WeakMap,Wr=[];function Ue(e,t){if(!e)return Wr;const n=Ve(e,t);let o=tn.get(e);o||tn.set(e,o=new Map);let r=o.get(n);if(!r){const s=z(e);r=(s.views[n]??[]).map(i=>s.canvases[i]),o.set(n,r)}return r}function Br(e,t){var s,i;const{canvases:n,views:o}=z(e),r=(s=o[t])==null?void 0:s[0];return r===void 0?null:((i=n[r])==null?void 0:i.id)??null}function Vr(e){const t=e==null?void 0:e.start;if(!t)return null;const n=Be(t);if(!n.id)return null;const o={canvasId:n.id};n.rect&&(o.region=n.rect);const r=n.t?Number(n.t.split(",")[0]):NaN;return Number.isFinite(r)&&(o.time=r),o}const Ks=(e,t)=>{const n=e==null?void 0:e.behavior;return Array.isArray(n)?n.includes(t):n===t},Js=e=>[(e==null?void 0:e.partOf)??[]].flat().find(t=>(t==null?void 0:t.id)&&t.type==="Collection");Oe(24,"components/Primitives/Primitives","@layer clover{.clover-summary:not([data-read-more=open]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--clover-summary-lines, 5);overflow:hidden}:is(.clover-metadata,.clover-required-statement){display:flex;flex-direction:column;gap:var(--clover-space-s);margin:0}:is(.clover-metadata,.clover-required-statement) dt{margin:0;font-weight:500}:is(.clover-metadata,.clover-required-statement) dd{margin:0}.clover-summary,:is(.clover-metadata,.clover-required-statement) :is(dt,dd){overflow-wrap:anywhere}:is(.clover-about,.clover-canvas-caption,.clover-annotations-body,.clover-metadata,.clover-required-statement,.clover-summary) a:not([class]){text-decoration-line:underline;text-underline-offset:var(--clover-space-3xs)}:is(.clover-homepage,.clover-rendering,.clover-see-also,.clover-part-of)>li{min-block-size:24px}:is(.clover-homepage,.clover-rendering,.clover-see-also,.clover-part-of) a,a:is(.clover-id,.clover-rights){color:var(--clover-color-accent-text, var(--clover-color-accent, #0065c3));overflow-wrap:anywhere;text-decoration-line:underline;text-underline-offset:var(--clover-space-3xs)}.clover-link-format{color:var(--clover-color-primary-muted, #26292b);font-size:var(--clover-text-s)}}");const zr=e=>(e==null?void 0:e.format)==="text/vtt"||typeof(e==null?void 0:e.id)=="string"&&/\.vtt(\?|$)/i.test(e.id);function qr(e){const t=[];for(let n of uo(e))if((n==null?void 0:n.type)==="Choice"&&(n=P(n.items)[0]),!(!n||zr(n))){if(n.type==="TextualBody"||typeof n.value=="string")t.push({value:String(n.value??""),format:n.format,language:P(n.language)[0]});else if(n.type==="Image"&&n.id){const o=n.label??e.label;t.push({image:n.id,format:n.format,...o?{label:o}:{}})}}return t}const po="content-search",nn=/\/search\/([0-2])\//;function Kr(e){if(!e)return null;let t=null;for(const n of P(e.service)){const o=(n==null?void 0:n.id)??(n==null?void 0:n["@id"]);if(typeof o!="string")continue;const r=String(n.type??n["@type"]??""),s=[n.profile,n["@context"]].flat().map(a=>String(a??"")).join(" "),i=r==="SearchService2"?2:r==="SearchService1"?1:nn.test(s)?Number(nn.exec(s)[1])>=2?2:1:null;if(i===2)return{id:o,version:i};i===1&&(t??(t={id:o,version:i}))}return t}const Jr=e=>P(e==null?void 0:e.motivation).includes("linking");function vo(e,t,n){const o=[];for(const r of P(e==null?void 0:e.items)){const s=P(r==null?void 0:r.motivation);if(s.includes("painting"))continue;const i=qr(r);if(!i.length&&!Jr(r))continue;const a=Be(P(r.target)[0]),l=a.id||n;!l||!r.id||o.push({id:r.id,setId:t,canvasId:l,target:a,motivation:s,bodies:i,annotation:r})}return o}const on=new WeakMap;function Zr(e){if(!e)return[];let t=on.get(e);if(!t){const n=new Map;for(const o of z(e).canvases)for(const r of P(o.annotations)){if(!Array.isArray(r==null?void 0:r.items))continue;const s=r.id??`${o.id}#annotations`;let i=n.get(s);i||(i={id:s,label:r.label,source:"manifest",entries:[]},n.set(s,i)),i.entries.push(...vo(r,s,o.id))}t=[...n.values()].filter(o=>o.entries.length),on.set(e,t)}return t}const rn=new WeakMap,sn=[];function ze(e,t){const n=Zr(e);if(!t.length)return n.length?n:sn;const o=e??sn;let r=rn.get(o);r||rn.set(o,r=new Map);let s=r.get(t);return s||(s=[...n,...t],r.set(t,s)),s}const an=new WeakMap;function Gr(e,t,n){const o=ze(e,t);if(!(n!=null&&n.entries.length))return o;let r=an.get(o);r||an.set(o,r=new Map);let s=r.get(n);return s||(s=[...o,n],r.set(n,s)),s}const Yr=e=>Number(e==null?void 0:e.duration)>0;function ho(e,t){return e.source==="search"||!e.entries.length?false:e.entries.every(n=>Fr(n.motivation,n.target)&&!Yr(t(n.canvasId)))}const cn=new WeakMap;function Zs(e,t){const n=ze(e,t);let o=cn.get(n);if(!o){const r=n.filter(s=>!ho(s,i=>Me(e,i)??void 0));o=r.length===n.length?n:r,cn.set(n,o)}return o}const ln=new WeakMap;function mo(e,t,n,o){const r=ze(e,t),s=ln.get(r);if(s&&s.hidden===n&&s.shown===o)return s.ids;const i=r.filter(l=>!n.includes(l.id)&&!o.includes(l.id)&&ho(l,u=>Me(e,u)??void 0)).map(l=>l.id),a=i.length?[...n,...i]:n;return ln.set(r,{hidden:n,shown:o,ids:a}),a}const un=new WeakMap;function Gs(e,t,n,o){const r=mo(e,t,n,o),s=un.get(r);if(s&&s.hidden===n)return s.ids;const i=[po,...r.filter(a=>!n.includes(a))];return un.set(r,{hidden:n,ids:i}),i}function Xr(e){for(const t of P(e==null?void 0:e.target)){const n=(t==null?void 0:t.type)==="SpecificResource"?t.source:t,o=P(n==null?void 0:n.partOf).find(r=>(r==null?void 0:r.id)&&(!r.type||r.type==="Manifest"));if(o)return o.id}}function Ge(e,t){if(!t)return null;for(const n of e){const o=n.entries.find(r=>r.id===t);if(o)return o}return null}function fn(e){const t=e;return!t||typeof t!="object"?false:t.type==="Annotation"?P(t.motivation).includes("contentState"):t.type==="SpecificResource"}function Qr(e){return btoa(encodeURIComponent(JSON.stringify(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function es({manifestId:e,canvasId:t,region:n,time:o}){const r={id:t,type:"Canvas",partOf:[{id:e,type:"Manifest"}]},s=o!=null&&o>0?`t=${Math.round(o*100)/100}`:n?`xywh=${[n.x,n.y,n.w,n.h].map(Math.round).join(",")}`:null,i={"@context":"http://iiif.io/api/presentation/3/context.json",id:`${t}#content-state`,type:"Annotation",motivation:["contentState"],target:s?{type:"SpecificResource",source:r,selector:{type:"FragmentSelector",value:s}}:r};return{json:i,encoded:Qr(i)}}const ts=/iiif\.io\/api\/presentation\/4\/context\.json/;function go(e){const t=e==null?void 0:e["@context"];return(Array.isArray(t)?t:[t]).some(o=>typeof o=="string"&&ts.test(o))}let _n=null;function Ct(){return _n??(_n=import("./upgrader-XNxI-5jo.mjs")),_n}async function le(e){if(go(e))return e;const[{upgradeToPresentation4:t},{keepFragments:n}]=await Promise.all([Ct(),import("./keep-fragments-B5nlv2ck.mjs")]);return t(n(e))}const dn=()=>import("./content-state-reader-DjdKWjit.mjs"),ns=["summary","metadata","requiredStatement","rights","provider","homepage","seeAlso","rendering","thumbnail","navDate","partOf"];function os(e){const t={"@context":ss,id:e.id,type:"Manifest",label:e.label??{none:[""]},items:[e]};for(const n of ns)e[n]!==void 0&&n!=="label"&&(t[n]=e[n]);return t}const Ys=e=>{var t,n;return!!e&&((n=(t=e.items)==null?void 0:t[0])==null?void 0:n.id)===e.id},rs=/^(oa:)?Annotation(Page|Collection)$/;class Re extends Error{constructor(){super(...arguments);X(this,"name","CloverContentError")}}const ss="http://iiif.io/api/presentation/4/context.json",is=e=>/^https?:\/\//i.test(e);async function ct(e,{request:t,signal:n}){return Array.isArray(e.items)&&e.items.length>0||!e.id?e:await ve(t,e.id,n)}const as=50;async function xt(e,t){const n=e;if(Array.isArray(n.items)&&n.items.length||!n.first)return e;const o=[],r=new Set;let s=n.first;for(let i=0;s&&i<as;i++){const a=typeof s=="string"?{id:s}:s;if(r.has(a.id??a))break;r.add(a.id??a);const l=a.items?a:await ve(t.request,a.id,t.signal),u=await le({"@context":l["@context"]??n["@context"],...l,type:"Collection"});o.push(...u.items??[]),s=l.next}return{...n,items:o}}async function yo(e,t={}){return le(await ct(e,t))}async function bo(e,t,n=0){for(const o of e.items??[]){if(o.type==="Manifest")return le(await ct(o,t));if(o.type==="Collection"&&n<8){const r=await xt(await le(await ct(o,t)),t),s=await bo(r,t,n+1);if(s)return s}}return null}async function cs(e,{request:t,signal:n}={}){Ct();const o=typeof e=="string"?await ve(t,e.trim(),n):e,r=await le(o);return r.type==="Collection"?xt(r,{request:t,signal:n}):r}async function ls(e,t={}){var f;const{request:n,signal:o}=t;Ct();let r,s,i,a;const l=async c=>{const{resolveContentState:p}=await dn(),d=p(c);if(!d)throw new Re("Unreadable content state");return r=d.target??r,s=d.manifestId??s,i=d.annotation??i,ve(n,d.id,o)};if(typeof e=="string")if(is(e.trim()))a=await ve(n,e.trim(),o);else{const{decodeContentState:c}=await dn(),p=c(e);if(!p)throw new Re("Unreadable iiifContent");a=fn(p)?await l(p):p}else a=e;if(fn(a)&&(a=await l(a)),rs.test(String((a==null?void 0:a.type)??""))){const{annotationsContent:c}=await import("./annotations-content-BZChKhJZ.mjs");return c(a,t)}const u=await le(a);switch((f=o==null?void 0:o.throwIfAborted)==null||f.call(o),u.type){case"Manifest":return{manifest:u,target:r,annotation:i};case"Collection":{const c=await xt(u,t),p=t.manifestId??s,d=p?(c.items??[]).find(O=>O.id===p&&O.type==="Manifest"):void 0,g=d?await yo(d,t):await bo(c,t);if(!g)throw new Re("The Collection holds no Manifest");return{manifest:g,collection:c,target:r,annotation:i}}case"Canvas":case"Timeline":case"Scene":{const c=u;return r??(r={canvasId:c.id}),{manifest:os(c),target:r,annotation:i}}default:throw new Re(`Cannot show a ${String(u.type??"resource without a type")}`)}}const wo=e=>!!(e!=null&&e.id)&&e.type==="AnnotationPage"&&!e.items;function us(e){const t=[];for(const n of e)for(const o of["items","annotations"])for(const r of n[o]??[])wo(r)&&t.push([n.id,o,r.id]);return t}async function fs(e,t,n,o){return _s(await ve(n,e,o),t)}async function _s(e,t="urn:clover:annotation-page"){var r;const n=e;return go(n)?n:((r=(await le({"@context":n["@context"]??"http://iiif.io/api/presentation/3/context.json",id:t,type:"Canvas",items:[{...n,"@context":void 0}]})).items)==null?void 0:r[0])??n}function ds(e,t,n,o){let r=false;const s=(e.items??[]).map(i=>{if(i.id!==t||!Array.isArray(i[n]))return i;const a=i[n].map(l=>l.id!==o.id||!wo(l)?l:(r=true,o));return r?{...i,[n]:a}:i});return r?{...e,items:s}:e}function ps(e){let t=e;const n=new Set;return{get:()=>t,set(o){const r=typeof o=="function"?o(t):o;Object.keys(r).some(i=>!Object.is(r[i],t[i]))&&(t={...t,...r},n.forEach(i=>i()))},subscribe(o){return n.add(o),()=>n.delete(o)}}}function be(e){let t=e;const n=new Set;return{get:()=>t,emit(o){t=o,n.forEach(r=>r(o))},subscribe(o){return n.add(o),()=>n.delete(o)}}}function vs(e,t,n){return{position:t,total:n,hasPrevious:t>0,hasNext:t+1<n,previous:()=>e.previous(),next:()=>e.next(),first:()=>e.first(),last:()=>e.last(),goTo:o=>e.goTo(o)}}const lt={query:"",status:"idle",hits:[],set:null},pn={status:"idle",error:null,manifest:null,collection:null,canvasId:null,target:null,annotationId:null,hiddenSets:[],shownSets:[],addedSets:[],search:lt};function hs(e={}){const t=ps(pn),n=be(null),o=be(null),r=be(null),s=be(null),i=be(null);let a=null,l=null,u=[],f=[],c=null;const p=()=>u.length||f.length?[...u,...f]:pn.addedSets;let d=e.request,g=null;const O=new Set;let k="view",b=0;const y=()=>{const{manifest:_,canvasId:h}=t.get();if(!_)return;const v=g==null?void 0:g.signal;for(const[m,S,w]of us(k==="all"||b>0?z(_).canvases:Ue(_,h)))O.has(w)||(O.add(w),fs(w,m,d,v).then(I=>{v!=null&&v.aborted||t.set(H=>H.manifest?{manifest:ds(H.manifest,m,S,I)}:{})}).catch(()=>O.delete(w)))};t.subscribe(y);const x=(_,h,v,m,S)=>{var Pt,Et,It;const{canvases:w}=z(_),I=Mt=>!!Mt&&w.some(xo=>xo.id===Mt),H=Vr(_),ne=I(v==null?void 0:v.canvasId)?v:I(H==null?void 0:H.canvasId)?H:null,Y=I(m.canvasId)?m.canvasId:(ne==null?void 0:ne.canvasId)??(I(m.defaultCanvasId)?m.defaultCanvasId:null)??((Pt=w[0])==null?void 0:Pt.id)??null;l==null||l.abort();const ge=S&&((Et=Ge(f,S))==null?void 0:Et.canvasId)===Y?S:null,ye=ne&&ge?{...ne,region:void 0}:ne;t.set({status:"ready",search:lt,manifest:_,collection:h,canvasId:Y,target:ye&&ye.canvasId===Y?ye:null,addedSets:p(),annotationId:ge}),Y&&Y!==m.canvasId&&((It=e.onCanvasChange)==null||It.call(e,Y))},T=(_,h)=>t.set(v=>{const m=v.hiddenSets.filter(w=>w!==_),S=v.shownSets.filter(w=>w!==_);return h?{hiddenSets:m,shownSets:[...S,_]}:{hiddenSets:[...m,_],shownSets:S}}),F=(_,h)=>{var m,S,w;if(!_)return;if((m=e.isControlled)!=null&&m.call(e)){h&&t.set({target:h}),(S=e.onCanvasChange)==null||S.call(e,_);return}const v=t.get().canvasId!==_;t.set({canvasId:_,target:h}),v&&((w=e.onCanvasChange)==null||w.call(e,_))},R=(_,h=false)=>{const{manifest:v}=t.get(),m=Br(v,_);F(m,m&&h?{canvasId:m,autoplay:h}:null)},te=()=>{const{manifest:_,canvasId:h}=t.get();return{at:Ve(_,h),total:z(_).views.length}},j=()=>{g==null||g.abort();const _=new AbortController;return g=_,O.clear(),t.set({status:"loading",error:null,annotationId:null}),_.signal},K=_=>t.set({status:"error",error:_ instanceof Error?_:new Error(String(_))});async function G(_,h={}){var m;const v=j();try{const S=await ls(_,{request:d,signal:v,manifestId:h.manifestId??void 0});if(v.aborted)return;const w=S.annotation,I=w?vo({items:[w]},`${w.id}#content-state`):[];f=I.length?[{id:`${w.id}#content-state`,source:"added",entries:I}]:S.annotationSets??[];const H=c??((m=I[0])==null?void 0:m.id)??S.pick;c=null,x(S.manifest,S.collection??null,S.target,h,H)}catch(S){v.aborted||K(S)}}const A=_=>{const{manifest:h,collection:v}=t.get();return(h==null?void 0:h.id)===_||(v==null?void 0:v.id)===_},D=_=>{var h;return(((h=t.get().collection)==null?void 0:h.items)??[]).find(v=>v.id===_)??{id:_,type:"Manifest"}},me=(_,h)=>{var v,m;if(c=h,(v=e.isManifestControlled)!=null&&v.call(e)){(m=e.onManifestChange)==null||m.call(e,_);return}ue({id:_,type:"Manifest"}).then(S=>{var w;return S&&((w=e.onManifestChange)==null?void 0:w.call(e,_))})},ue=async(_,h)=>{if(_.type==="Collection")return await G(_.id),t.get().status==="ready";const{collection:v}=t.get(),m=j(),S=c;c=null;const w=S?Ge(f,S):null;try{const I=await yo(_,{request:d,signal:m});return m.aborted?false:(x(I,v,w?{canvasId:w.canvasId}:h?{canvasId:h}:void 0,{},S),true)}catch(I){return m.aborted||K(I),false}};return{store:t,viewport:n,media:o,captions:r,highlight:s,chapter:i,get request(){return d},setRequest(_){d=_},load:G,async openCollection(_){var v;const h=t.get().manifest;if(!(!h||((v=t.get().collection)==null?void 0:v.id)===_))try{const m=await cs(_,{request:d});if(m.type!=="Collection"||t.get().manifest!==h)return;t.set({collection:m})}catch{}},async goToManifest(_,h){var m,S,w;if(A(_))return;const v=D(_);if(v.type!=="Collection"&&((m=e.isManifestControlled)!=null&&m.call(e))){(S=e.onManifestChange)==null||S.call(e,_);return}await ue(v,h)&&((w=e.onManifestChange)==null||w.call(e,t.get().manifest.id))},async syncManifest(_){!_||A(_)||t.get().status!=="ready"||await ue(D(_))},goTo(_,h){F(_,h?{...h,canvasId:_}:null)},next({autoplay:_=false,wrap:h=false}={}){const{at:v,total:m}=te();v+1<m?R(v+1,_):h&&m>1&&R(0,_)},previous(){const{at:_}=te();_>0&&R(_-1)},first(){R(0)},last(){R(te().total-1)},consumeTarget(){t.set({target:null})},syncCanvas(_){_&&t.set({canvasId:_})},selectAnnotation(_){const{manifest:h,addedSets:v,canvasId:m,search:S}=t.get(),w=Ge(Gr(h,v,S.set),_);if(t.set({annotationId:w?_:null}),!w)return;const{hiddenSets:I,shownSets:H}=t.get();w.setId!==po&&mo(h,v,I,H).includes(w.setId)&&T(w.setId,true);const ne=Ue(h,m).some(ye=>ye.id===w.canvasId),Y=Me(h,w.canvasId)!==null;!ne&&Y&&F(w.canvasId,null);const ge=Y?void 0:Xr(w.annotation);ge&&me(ge,w.id)},async search(_){l==null||l.abort();const h=Kr(t.get().manifest),v=_.trim();if(!v||!h){l=null,t.set({search:lt,annotationId:null});return}const m=new AbortController;l=m,t.set(S=>({search:{...S.search,query:v,status:"loading"}}));try{const{searchInto:S}=await import("./search-DgcgsI3I.mjs");await S(t,h,v,d,m.signal)}catch{t.set({search:{query:v,status:"error",hits:[],set:null}})}},setSetVisible(_,h){T(_,h)},async loadAnnotations(_){if(a==null||a.abort(),!_){u=[],t.set({addedSets:p()});return}const h=new AbortController;a=h;try{const{loadAnnotationSets:v}=await import("./annotation-collection-ZPyvpLFc.mjs"),m=await v(_,{request:d,signal:h.signal});if(h.signal.aborted)return;u=m,t.set({addedSets:p()})}catch{}},getContentState(){const{manifest:_,canvasId:h}=t.get();if(!_||!h)return null;const v=n.get(),m=o.get(),S=m&&m.currentTime>0?m.currentTime:null,I=v&&Ue(_,h).some(H=>H.id===v.canvasId)&&!S?v:null;return es({manifestId:_.id,canvasId:(I==null?void 0:I.canvasId)??h,region:I==null?void 0:I.region,time:S})},setAnnotationPages(_){_!==k&&(k=_,y())},holdAllAnnotationPages(){b++,y();let _=true;return()=>{_&&b--,_=false}},dispose(){g==null||g.abort(),a==null||a.abort(),l==null||l.abort()}}}const ms={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap",border:0};function gs({clover:e,language:t}){const{t:n,langOf:o}=co(),[r,s]=re(null),i=L(n);return i.current=n,$(()=>{let a=null;return e.store.subscribe(()=>{const{manifest:l,canvasId:u,status:f}=e.store.get();if(f!=="ready"||u===a)return;const c=a===null;if(a=u,c)return;const p=Me(l,u),d=fo(p==null?void 0:p.label,t),g=i.current("canvasPosition",{index:Ve(l,u)+1,total:z(l).views.length});s({label:d.text,lang:d.lang,position:g})})},[e,t]),N("div",{className:"clover-announcer",role:"status","aria-live":"polite","aria-atomic":"true",style:ms,children:[r!=null&&r.label?N(q,{children:[N("span",{lang:r.lang,children:r.label}),","," "]}):null,r&&N("span",{lang:o("canvasPosition"),children:r.position})]})}function Xs(e){return e.flatMap(t=>Pr(t).map(({body:n})=>n))}function Qs(e,t){if(!(e!=null&&e.length)||!t.canvases.length)return null;const n=t.canvases.map(r=>r.id),o=t.bodies.map(r=>r==null?void 0:r.format).filter(Boolean);return e.find(r=>{var s,i,a;return((s=r.canvasId)==null?void 0:s.some(l=>n.includes(l)))||((i=r.format)==null?void 0:i.some(l=>o.includes(l)))||!!((a=r.match)!=null&&a.call(r,t))})??null}function ys(e,t){return e===t?true:!e||!t||e.length!==t.length?false:e.every((n,o)=>n.component===t[o].component&&n.match===t[o].match&&JSON.stringify([n.canvasId,n.format])===JSON.stringify([t[o].canvasId,t[o].format]))}function bs({iiifContent:e,canvasId:t,defaultCanvasId:n,onCanvasChange:o,onStatusChange:r,manifestId:s,defaultManifestId:i,onManifestChange:a,searchQuery:l,request:u,language:f,renderers:c,annotations:p,annotationPages:d="view",onContentStateChange:g,...O}){const k=t!==void 0,b=s!==void 0,y=L({controlled:k,manifestControlled:b,onCanvasChange:o,onStatusChange:r,onManifestChange:a});y.current={controlled:k,manifestControlled:b,onCanvasChange:o,onStatusChange:r,onManifestChange:a};const[x]=re(()=>hs({request:u,onCanvasChange:h=>{var v,m;return(m=(v=y.current).onCanvasChange)==null?void 0:m.call(v,h)},onManifestChange:h=>{var v,m;return(m=(v=y.current).onManifestChange)==null?void 0:m.call(v,h)},isControlled:()=>y.current.controlled,isManifestControlled:()=>y.current.manifestControlled}));x.setRequest(u);const T=L({});T.current={canvasId:t,defaultCanvasId:n,manifestId:s??i};const F=xr(u),R=L(e);R.current=e;const te=ks(e);$(()=>(x.load(R.current,T.current),()=>x.dispose()),[x,te,F]),$(()=>{k&&x.syncCanvas(t??null)},[x,k,t]);const[j,K]=re(x.store.get().status);$(()=>{let h=x.store.get().status;return x.store.subscribe(()=>{var S,w;const{status:v,error:m}=x.store.get();v!==h&&(h=v,K(v),(w=(S=y.current).onStatusChange)==null||w.call(S,v,m))})},[x]);const G=L(p);G.current=p;const A=Ss(p);$(()=>{x.loadAnnotations(G.current??null)},[x,A,F]),$(()=>{x.setAnnotationPages(d)},[x,d]),xs(x,g),$(()=>{b&&j==="ready"&&x.syncManifest(s??null)},[x,b,s,j]);const D=ws(x,h=>{var v;return h.status==="ready"?((v=h.manifest)==null?void 0:v.id)??null:null});$(()=>{l&&D&&x.search(l)},[x,l,D]);const me=L(c);ys(me.current,c)||(me.current=c);const ue=me.current;return[ce(()=>({clover:x,language:f,renderers:ue}),[x,f,ue]),j,O]}function ws(e,t){return ie(e.store.subscribe,()=>t(e.store.get()))}function Ss(e){const t=Array.isArray(e)?e:e?[e]:[];return JSON.stringify(t.map(n=>typeof n=="string"?n:(n==null?void 0:n.id)??"object"))}const Cs=300;function xs(e,t){const n=L(t);n.current=t;const o=!!t;$(()=>{if(!o)return;let r,s="";const i=()=>{clearTimeout(r),r=setTimeout(()=>{var g;const d=e.getContentState();!d||d.encoded===s||(s=d.encoded,(g=n.current)==null||g.call(n,d))},Cs)};let a=e.store.get().canvasId;const l=e.store.subscribe(()=>{const d=e.store.get().canvasId;d!==a&&(a=d,i())}),u=e.viewport.subscribe(i);let f=null;const c=d=>{f==null||f.removeEventListener("pause",i),f==null||f.removeEventListener("seeked",i),f=d,f==null||f.addEventListener("pause",i),f==null||f.addEventListener("seeked",i)};c(e.media.get());const p=e.media.subscribe(c);return i(),()=>{clearTimeout(r),l(),u(),p(),c(null)}},[e,o])}function ks(e){return typeof e=="string"?e:e.id??e["@id"]??e}const Ye=new Map;function ei(e,t){const n=hr(),o=L(t);o.current=t,$(()=>e?So(n,o):void 0,[e,n])}function So(e,t){for(const[n,o]of[...Ye])n!==e&&o.current();return Ye.set(e,t),()=>{Ye.delete(e)}}let Os=0;const Ps=e=>So(`page-${Os+=1}`,{current:e}),vn=new WeakMap;function Es(e,t){const[n,o]=re(()=>vn.get(e)??null);return $(()=>{if(!t||n)return;let r=true;return e().then(s=>{vn.set(e,s),r&&o(()=>s)},()=>{}),()=>{r=false}},[e,t,n]),n}function kt(e){if(!e)return;const[t,n]=e.split(","),o=Number(t);if(t===""||Number.isNaN(o))return;if(n===void 0||n==="")return{start:o};const r=Number(n);return Number.isNaN(r)?{start:o}:{start:o,end:r}}function Ot(e){if(typeof e=="string")return hn(e);const t=e;return(t==null?void 0:t.type)==="SpecificResource"?t:typeof(t==null?void 0:t.id)=="string"?hn(t.id):t}const hn=e=>e.replace(/\/((?:t|xywh)=[^/#]*)$/,"#$1"),mn=new WeakMap,gn=[];function Is(e,t,n){if(!e||!t)return gn;let o=mn.get(e);o||mn.set(e,o=new Map);const r=`${t}|${n??""}`,s=o.get(r);if(s)return s;const i=[],a=new Set,l=f=>{if(!(!f||a.has(f.id??f))){a.add(f.id??f);for(const c of P(f.items)){if((c==null?void 0:c.type)==="Range"){l(c);continue}const p=Be(Ot(c));if(p.id.split("#")[0]!==t)continue;const d=kt(p.t);d&&i.push({...f.id?{id:f.id}:{},label:f.label,...d})}}};for(const f of P(e.structures))l(f);i.sort((f,c)=>f.start-c.start);const u=i.length?i.map((f,c)=>{var p;return{...f,end:f.end??((p=i[c+1])==null?void 0:p.start)??n}}):gn;return o.set(r,u),u}const yn=new WeakMap,bn=[];function Co(e){if(!e)return bn;const t=yn.get(e);if(t)return t;const n=new Set,o=a=>{var O,k;if(!a||n.has(a.id??a))return[];n.add(a.id??a);const l=[],u=[];let f;for(const b of P(a.items))if((b==null?void 0:b.type)==="Range"){const y=o(b);l.push(...y),y.forEach(x=>u.push(...x.canvasIds))}else{const y=Be(Ot(b));if(!y.id)continue;f??(f=y),u.push(y.id)}if(P(a.behavior).includes("no-nav"))return l;const p=f??void 0,d={id:a.id??`range-${n.size}`,label:a.label,canvasId:(p==null?void 0:p.id)??((O=l[0])==null?void 0:O.canvasId),canvasIds:[...new Set(u)],children:l},g=kt(p==null?void 0:p.t);return g?d.time=g:!p&&((k=l[0])!=null&&k.time)&&(d.time=l[0].time),p!=null&&p.rect&&(d.region=p.rect),[d]},r=P(e.structures).flatMap(o),s=r.length===1&&r[0].children.length?r[0].children:r,i=s.length?s:bn;return yn.set(e,i),i}function Ms(e,t,n){let o=null;const r=(s,i)=>{t&&s.canvasIds.includes(t)&&(!s.time||n!==void 0&&n>=s.time.start&&(s.time.end===void 0||n<s.time.end))&&(!o||i>=o.depth)&&(o={id:s.id,depth:i}),s.children.forEach(a=>r(a,i+1))};return e.forEach(s=>r(s,0)),o?o.id:null}const ti=Object.freeze(Object.defineProperty({__proto__:null,chaptersOf:Is,currentContents:Ms,parseTime:kt,rangeItemTarget:Ot,tableOfContents:Co},Symbol.toStringTag,{value:"Module"}));Oe(26,"components/Label/Label","@layer clover{.clover-label{text-wrap:balance}}");Oe(27,"components/Status/Status","@layer clover{.clover-status{margin:0;padding:var(--clover-space-m);color:var(--clover-color-primary-muted, #26292b)}.clover-status[data-status=loading]{display:flex}.clover-status[data-status=error] p{margin:0}.clover-status-detail{font-size:var(--clover-text-s)}}");const ni=()=>import("./controls-qRYf2jO2.mjs"),Ns=()=>import("./renderers-Bg4QqawN.mjs");function oi(e){Z(()=>()=>e==null?void 0:e(null),[e])}function $s(e,t,n){const o=()=>e.store.get();return{get state(){return o()},subscribe(r){return e.store.subscribe(()=>r(o()))},get language(){return t()},status(){const{status:r,error:s}=o();return{status:r,error:s}},manifest(){return o().manifest},sequence(){return z(o().manifest)},visibleCanvases(){return Ue(o().manifest,o().canvasId)},activeCanvas(){return Me(o().manifest,o().canvasId)},navigation(){const{manifest:r,canvasId:s}=o();return vs(e,Ve(r,s),z(r).views.length)},annotationSets(){return ze(o().manifest,o().addedSets)},contents(){return Co(o().manifest)},localize(r){return fo(r,t())},t(r,s){return U.t(r,s,B)},langOf(r){return U.langOf(r,n(),B)},oneOpen(r){return Ps(r)}}}function As(e,t,n){return Object.defineProperties(Object.create(e),Object.getOwnPropertyDescriptors($s(e,t,n)))}const Ts=Ie(null);function Rs({hosted:e,props:t,children:n}){const o=Es(Ns,!!t.renderers);return!t.iiifContent||t.renderers&&!o?null:N(Ls,{element:e.element,props:t,toRenderers:o==null?void 0:o.toRenderers,children:n})}function Ls({element:e,props:t,toRenderers:n,children:o}){const{canvasId:r,manifestId:s,lang:i,onReady:a,renderers:l,...u}=t,f=Nr(void 0,i);f.ref(e);const c=ce(()=>n==null?void 0:n(l),[n,l]),[p,d]=bs({...u,defaultCanvasId:r,defaultManifestId:s,renderers:c}),{clover:g,language:O}=p,k=L({language:O,host:f.hostLanguage});k.current={language:O,host:f.hostLanguage};const b=ce(()=>As(g,()=>k.current.language,()=>k.current.host),[g]);return Z(()=>(a==null||a(b),()=>a==null?void 0:a(null)),[b,a]),wn(g,r,y=>g.goTo(y)),wn(g,s,y=>void g.goToManifest(y)),Z(()=>(e.classList.add("clover-root"),()=>e.classList.remove("clover-root")),[e]),Z(()=>{e.setAttribute("data-status",d)},[e,d]),Z(()=>()=>e.removeAttribute("data-status"),[e]),N(We.Provider,{value:p,children:N(St.Provider,{value:f.hostLanguage,children:N(Ts.Provider,{value:b,children:[o,yt(N(gs,{clover:g,language:O}),e)]})})})}function wn(e,t,n){const o=L(t);$(()=>{t&&t!==o.current&&n(t),o.current=t},[e,t])}const ri=Object.freeze(Object.defineProperty({__proto__:null,RootElement:Rs},Symbol.toStringTag,{value:"Module"}));export{yt as $,L as A,kt as B,ie as C,Bo as D,z as E,Xr as F,Pn as G,yo as H,Js as I,qs as J,Bs as K,Ve as L,Nr as M,St as N,Pr as O,He as P,Ie as Q,Fs as R,Co as S,ce as T,Ms as U,Kr as V,po as W,Ys as X,zs as Y,Me as Z,Z as _,co as a,Ws as a0,Cr as a1,Ar as a2,uo as a3,ei as a4,vs as a5,bs as a6,gs as a7,We as a8,Ks as a9,Gr as aa,Is as ab,Gs as ac,xr as ad,ve as ae,_s as af,vo as ag,Re as ah,Ts as ai,cs as aj,Fr as ak,lo as al,qr as am,ee as an,ls as ao,Ds as ap,js as aq,ti as ar,ri as as,hr as b,Es as c,re as d,oi as e,ni as f,Ir as g,Qs as h,Vs as i,P as j,q as k,Ns as l,Or as m,Be as n,fo as o,Xs as p,pe as q,Ue as r,Zs as s,mo as t,N as u,ms as v,Ge as w,se as x,$ as y,qo as z};
1
+ var ko=Object.defineProperty;var Oo=(e,t,n)=>t in e?ko(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n;var X=(e,t,n)=>Oo(e,typeof t!="symbol"?t+"":t,n);import{a as Oe}from"./index-B7nZdqLg.mjs";const Po=JSON.parse('{"commonClose":"Close","commonNext":"Next","commonPrevious":"Previous","commonSearch":"Search","commonViewAll":"View all","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Loading...","contentSearchPlaceholder":"Search","contentSearchResultsNone":"No results","contentSearchResult":"1 result","contentSearchResults":"{{count}} results","contentSearchError":"The search could not be completed.","contentSearchPosition":"Result {{index}} of {{total}}","contentSearchClear":"Clear search","canvasPosition":"Item {{index}} of {{total}}","canvasImage":"Image","canvasRoleDescription":"zoomable image","canvasKeysImage":"Use the arrow keys to pan, with Shift for larger steps, plus and minus to zoom, 0 to reset the view, and R or Shift+R to rotate.","canvasKeysMedia":"Press Space or K to play or pause, J or L to skip ten seconds back or forward, and M to mute or unmute.","canvasKeysAnnotations":"Press Escape to clear the selected annotation.","sceneModel":"3D model","sceneRoleDescription":"rotatable 3D model","sceneKeys":"Use the arrow keys to rotate the model, with Shift for larger steps, plus and minus to zoom, 0 to reset the view, and R or Shift+R to rotate it right or left.","sceneRotateUp":"Rotate up","sceneRotateDown":"Rotate down","sceneRotate":"Rotate","sceneResetView":"Reset view","statusLoading":"Loading\u2026","statusError":"This could not be loaded.","itemsLabel":"Items","download":"Download","downloadPage":"This page","downloadAll":"All pages","templateSidebar":"Items","templateSidebarToggle":"Show items","collectionLabel":"Collection","itemsScrollBack":"Show previous items","itemsScrollForward":"Show more items","aboutRights":"Rights","aboutHomepage":"Homepage","aboutSeeAlso":"See also","aboutProvider":"Provider","logo":"Logo","aboutManifest":"IIIF Manifest","aboutCanvas":"IIIF Canvas","aboutPartOf":"Part of","aboutOpenManifest":"Open the full Manifest","aboutCollection":"IIIF Collection","annotationsHide":"Hide annotations","annotationsHideTip":"Hide","readMore":"Read more","readLess":"Read less","annotationsShow":"Find on the image","annotationsShowTime":"Find in the recording","annotationsImage":"Image","annotationsLanguage":"Language","annotationsOpenLink":"Open the link","transcriptLabel":"Transcript","imageViewerOpen":"Open image viewer","imageViewerClose":"Close image viewer","canvasChoice":"Choice","imageFullScreen":"Full screen","imageExitFullScreen":"Exit full screen","imageResetZoom":"Reset zoom","imageRotateLeft":"Rotate left","imageRotateRight":"Rotate right","imageZoomIn":"Zoom in","imageZoomOut":"Zoom out","informationPanelTabs":"Information panel","sectionsScrollBack":"Show previous tabs","sectionsScrollForward":"Show more tabs","informationPanelClose":"Close information panel","informationPanelTabsAbout":"About","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Search","informationPanelTabsContents":"Contents","informationPanelTabsMap":"Map","informationPanelTabsCollection":"Collection","mapUnavailable":"The map could not be shown.","mapLabel":"Map","mapAttribution":"Map credits","mapPlaceUntitled":"Place {{number}}","mapOverlay":"Georeferenced image","mapPlacesListed":"Places listed after the map: {{count}}","informationPanelToggle":"More information","playerPlay":"Play","playerPause":"Pause","playerClose":"Close player","playerMute":"Mute","playerUnmute":"Unmute","playerVolume":"Volume","playerSeek":"Seek","playerCaptions":"Captions","playerCaptionsOff":"Off","playerChapters":"Chapters","framePrevious":"Previous frame","frameNext":"Next frame","frameSeek":"Frame","frameRepeat":"Repeat","framePosition":"Frame {{index}} of {{total}}","playerCurrentTime":"Current time","playerDuration":"Duration","splitHandle":"Resize panels"}'),Sn={es:()=>import("./es-BwMkoRod.mjs"),fi:()=>import("./fi-gPFOn9RK.mjs"),fr:()=>import("./fr-DUHmgdJo.mjs"),nb:()=>import("./nb-BSvnQ6jd.mjs"),nn:()=>import("./nn-Dg2_HdZu.mjs"),no:()=>import("./no-BSvnQ6jd.mjs"),pt:()=>import("./pt-B3J80JgO.mjs")};function Cn(){const e=[];return typeof document<"u"&&e.push(document.documentElement.lang),typeof navigator<"u"&&e.push(...navigator.languages??[],navigator.language),e.filter(Boolean)}const B="clover",W={en:{[B]:{...Po}}};let fe,xn=[],De=0;const Xe=new Set;function ut(){De++,Xe.forEach(e=>e())}function Eo(e){const t=e.split("-")[0];return t&&t!==e?[e,t]:[e]}const Nt=new Map,Io=e=>Object.prototype.hasOwnProperty.call(Sn,e);function Mo(e){let t=Nt.get(e);return t||(t=Sn[e]().then(({default:n})=>{var o;W[e]={...W[e],[B]:{...n,...(o=W[e])==null?void 0:o[B]}},ut()},()=>{}),Nt.set(e,t)),t}function kn(e){const t=e.find(n=>n==="en"||Io(n));return t&&t!=="en"?Mo(t):Promise.resolve()}let Ne=[],$t="";function we(){const e=fe?`${De}`:`${De} ${typeof document<"u"?document.documentElement.lang:""} ${typeof navigator<"u"?navigator.languages:""}`;if(e===$t)return Ne;$t=e;const t=fe?[fe]:Cn();return Ne=[...new Set([...t,...xn].flatMap(Eo).concat("en"))],kn(Ne),Ne}function On(e,t){const n=o=>o.split("-")[0].toLowerCase();return n(e)===n(t)}function Pn(e,t){if(e)return On(e,t||U.resolvedLanguage)?void 0:e}const U={get language(){return fe??we().find(e=>W[e])??"en"},get resolvedLanguage(){return we().find(e=>{var t;return Object.keys(((t=W[e])==null?void 0:t[B])??{}).length>0})??"en"},changeLanguage(e){fe=e,ut()},resolve(e,t,n=B){var r,s;let o={text:e};for(const i of we()){const a=(s=(r=W[i])==null?void 0:r[n])==null?void 0:s[e];if(a!==void 0){o={text:a,lang:i};break}}return t?{...o,text:o.text.replace(/\{\{(\w+)\}\}/g,(i,a)=>a in t?String(t[a]):i)}:o},t(e,t,n=B){return U.resolve(e,t,n).text},langOf(e,t,n=B){return Pn(U.resolve(e,void 0,n).lang,t)},ready(){return kn(we())},subscribe(e){return Xe.add(e),()=>{Xe.delete(e)}},getSnapshot(){return De}};typeof document<"u"&&we();function No(e={}){for(const[t,n]of Object.entries(e.resources??{}))for(const[o,r]of Object.entries(n??{}))W[t]??(W[t]={}),W[t][o]={...W[t][o],...r};return e.fallbackLng!==void 0&&(xn=e.fallbackLng===false?[]:[e.fallbackLng].flat()),e.lng&&(fe=e.lng),ut(),U}const Ds=Object.freeze(Object.defineProperty({__proto__:null,CLOVER_I18N_NAMESPACE:B,cloverI18n:U,initCloverI18n:No,langWithin:Pn,sameLanguage:On},Symbol.toStringTag,{value:"Module"}));var Pe,C,En,ae,At,In,Mn,Nn,ft,Qe,et,$n,xe={},An=[],$o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ee=Array.isArray;function J(e,t){for(var n in t)e[n]=t[n];return e}function _t(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ee(e,t,n){var o,r,s,i={};for(s in t)s=="key"?o=t[s]:s=="ref"?r=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Pe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Ce(e,i,o,r,null)}function Ce(e,t,n,o,r){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++En,__i:-1,__u:0};return r==null&&C.vnode!=null&&C.vnode(s),s}function Ao(){return{current:null}}function q(e){return e.children}function V(e,t){this.props=e,this.context=t}function _e(e,t){if(t==null)return e.__?_e(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?_e(e):null}function Tn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Tn(e)}}function tt(e){(!e.__d&&(e.__d=true)&&ae.push(e)&&!Fe.__r++||At!=C.debounceRendering)&&((At=C.debounceRendering)||In)(Fe)}function Fe(){for(var e,t,n,o,r,s,i,a=1;ae.length;)ae.length>a&&ae.sort(Mn),e=ae.shift(),a=ae.length,e.__d&&(n=void 0,o=void 0,r=(o=(t=e).__v).__e,s=[],i=[],t.__P&&((n=J({},o)).__v=o.__v+1,C.vnode&&C.vnode(n),dt(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,s,r??_e(o),!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,Hn(s,n,i),o.__e=o.__=null,n.__e!=r&&Tn(n)));Fe.__r=0}function Rn(e,t,n,o,r,s,i,a,l,u,f){var c,p,d,g,O,k,b,y=o&&o.__k||An,x=t.length;for(l=To(n,t,y,l,x),c=0;c<x;c++)(d=n.__k[c])!=null&&(p=d.__i==-1?xe:y[d.__i]||xe,d.__i=c,k=dt(e,d,p,r,s,i,a,l,u,f),g=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&pt(p.ref,null,d),f.push(d.ref,d.__c||g,d)),O==null&&g!=null&&(O=g),(b=!!(4&d.__u))||p.__k===d.__k?l=Ln(d,l,e,b):typeof d.type=="function"&&k!==void 0?l=k:g&&(l=g.nextSibling),d.__u&=-7);return n.__e=O,l}function To(e,t,n,o,r){var s,i,a,l,u,f=n.length,c=f,p=0;for(e.__k=new Array(r),s=0;s<r;s++)(i=t[s])!=null&&typeof i!="boolean"&&typeof i!="function"?(l=s+p,(i=e.__k[s]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ce(null,i,null,null,null):Ee(i)?Ce(q,{children:i},null,null,null):i.constructor==null&&i.__b>0?Ce(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,(u=i.__i=Ro(i,n,l,c))!=-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(r>f?p--:r<f&&p++),typeof i.type!="function"&&(i.__u|=4)):u!=l&&(u==l-1?p--:u==l+1?p++:(u>l?p--:p++,i.__u|=4))):e.__k[s]=null;if(c)for(s=0;s<f;s++)(a=n[s])!=null&&!(2&a.__u)&&(a.__e==o&&(o=_e(a)),Dn(a,a));return o}function Ln(e,t,n,o){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Ln(r[s],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=_e(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ee(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function Ro(e,t,n,o){var r,s,i,a=e.key,l=e.type,u=t[n],f=u!=null&&(2&u.__u)==0;if(u===null&&e.key==null||f&&a==u.key&&l==u.type)return n;if(o>(f?1:0)){for(r=n-1,s=n+1;r>=0||s<t.length;)if((u=t[i=r>=0?r--:s++])!=null&&!(2&u.__u)&&a==u.key&&l==u.type)return i}return-1}function Tt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||$o.test(t)?n:n+"px"}function $e(e,t,n,o,r){var s,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Tt(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||Tt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Nn,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?o?n.u=o.u:(n.u=ft,e.addEventListener(t,s?et:Qe,s)):e.removeEventListener(t,s?et:Qe,s);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===false&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Rt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ft++;else if(t.t<n.u)return;return n(C.event?C.event(t):t)}}}function dt(e,t,n,o,r,s,i,a,l,u){var f,c,p,d,g,O,k,b,y,x,T,F,R,te,j,K,G,A=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=C.__b)&&f(t);e:if(typeof A=="function")try{if(b=t.props,y="prototype"in A&&A.prototype.render,x=(f=A.contextType)&&o[f.__c],T=f?x?x.props.value:f.__:o,n.__c?k=(c=t.__c=n.__c).__=c.__E:(y?t.__c=c=new A(b,T):(t.__c=c=new V(b,T),c.constructor=A,c.render=Ho),x&&x.sub(c),c.props=b,c.state||(c.state={}),c.context=T,c.__n=o,p=c.__d=true,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&A.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=J({},c.__s)),J(c.__s,A.getDerivedStateFromProps(b,c.__s))),d=c.props,g=c.state,c.__v=t,p)y&&A.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&A.getDerivedStateFromProps==null&&b!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(b,T),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(b,c.__s,T)===false||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=b,c.state=c.__s,c.__d=false),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(D){D&&(D.__=t)}),F=0;F<c._sb.length;F++)c.__h.push(c._sb[F]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(b,c.__s,T),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,g,O)})}if(c.context=T,c.props=b,c.__P=e,c.__e=false,R=C.__r,te=0,y){for(c.state=c.__s,c.__d=false,R&&R(t),f=c.render(c.props,c.state,c.context),j=0;j<c._sb.length;j++)c.__h.push(c._sb[j]);c._sb=[]}else do c.__d=false,R&&R(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++te<25);c.state=c.__s,c.getChildContext!=null&&(o=J(J({},o),c.getChildContext())),y&&!p&&c.getSnapshotBeforeUpdate!=null&&(O=c.getSnapshotBeforeUpdate(d,g)),K=f,f!=null&&f.type===q&&f.key==null&&(K=Un(f.props.children)),a=Rn(e,Ee(K)?K:[K],t,n,o,r,s,i,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),k&&(c.__E=c.__=null)}catch(D){if(t.__v=null,l||s!=null)if(D.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else{for(G=s.length;G--;)_t(s[G]);nt(t)}else t.__e=n.__e,t.__k=n.__k,D.then||nt(t);C.__e(D,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Lo(n.__e,t,n,o,r,s,i,l,u);return(f=C.diffed)&&f(t),128&t.__u?void 0:a}function nt(e){e&&e.__c&&(e.__c.__e=true),e&&e.__k&&e.__k.forEach(nt)}function Hn(e,t,n){for(var o=0;o<n.length;o++)pt(n[o],n[++o],n[++o]);C.__c&&C.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(s){s.call(r)})}catch(s){C.__e(s,r.__v)}})}function Un(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Ee(e)?e.map(Un):J({},e)}function Lo(e,t,n,o,r,s,i,a,l){var u,f,c,p,d,g,O,k=n.props,b=t.props,y=t.type;if(y=="svg"?r="http://www.w3.org/2000/svg":y=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),s!=null){for(u=0;u<s.length;u++)if((d=s[u])&&"setAttribute"in d==!!y&&(y?d.localName==y:d.nodeType==3)){e=d,s[u]=null;break}}if(e==null){if(y==null)return document.createTextNode(b);e=document.createElementNS(r,y,b.is&&b),a&&(C.__m&&C.__m(t,s),a=false),s=null}if(y==null)k===b||a&&e.data==b||(e.data=b);else{if(s=s&&Pe.call(e.childNodes),k=n.props||xe,!a&&s!=null)for(k={},u=0;u<e.attributes.length;u++)k[(d=e.attributes[u]).name]=d.value;for(u in k)if(d=k[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in b)){if(u=="value"&&"defaultValue"in b||u=="checked"&&"defaultChecked"in b)continue;$e(e,u,null,d,r)}}for(u in b)d=b[u],u=="children"?p=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?g=d:u=="checked"?O=d:a&&typeof d!="function"||k[u]===d||$e(e,u,d,k[u],r);if(f)a||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Rn(t.type=="template"?e.content:e,Ee(p)?p:[p],t,n,o,y=="foreignObject"?"http://www.w3.org/1999/xhtml":r,s,i,s?s[0]:n.__k&&_e(n,0),a,l),s!=null)for(u=s.length;u--;)_t(s[u]);a||(u="value",y=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[u]||y=="progress"&&!g||y=="option"&&g!=k[u])&&$e(e,u,g,k[u],r),u="checked",O!=null&&O!=e[u]&&$e(e,u,O,k[u],r))}return e}function pt(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(r){C.__e(r,n)}}function Dn(e,t,n){var o,r;if(C.unmount&&C.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||pt(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(s){C.__e(s,t)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&Dn(o[r],t,n||typeof e.type!="function");n||_t(e.__e),e.__c=e.__=e.__e=void 0}function Ho(e,t,n){return this.constructor(e,n)}function ke(e,t,n){var o,r,s,i;t==document&&(t=document.documentElement),C.__&&C.__(e,t),r=(o=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],dt(t,e=(!o&&n||t).__k=ee(q,null,[e]),r||xe,xe,t.namespaceURI,!o&&n?[n]:r?null:t.firstChild?Pe.call(t.childNodes):null,s,!o&&n?n:r?r.__e:t.firstChild,o,i),Hn(s,e,i)}function Fn(e,t){ke(e,t,Fn)}function Uo(e,t,n){var o,r,s,i,a=J({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?o=t[s]:s=="ref"?r=t[s]:a[s]=t[s]===void 0&&i!=null?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?Pe.call(arguments,2):n),Ce(e.type,a,o||e.key,r||e.ref,null)}function Ie(e){function t(n){var o,r;return this.getChildContext||(o=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&o.forEach(function(i){i.__e=true,tt(i)})},this.sub=function(s){o.add(s);var i=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),i&&i.call(s)}}),n.children}return t.__c="__cC"+$n++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}Pe=An.slice,C={__e:function(e,t,n,o){for(var r,s,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((s=r.constructor)&&s.getDerivedStateFromError!=null&&(r.setState(s.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),i=r.__d),i)return r.__E=r}catch(a){e=a}throw e}},En=0,V.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=J({},this.state),typeof e=="function"&&(e=e(J({},n),this.props)),e&&J(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),tt(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=true,e&&this.__h.push(e),tt(this))},V.prototype.render=q,ae=[],In=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mn=function(e,t){return e.__v.__b-t.__v.__b},Fe.__r=0,Nn=/(PointerCapture)$|Capture$/i,ft=0,Qe=Rt(false),et=Rt(true),$n=0;var Do=0;function N(e,t,n,o,r,s){t||(t={});var i,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?i=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Do,__i:-1,__u:0,__source:r,__self:s};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)l[a]===void 0&&(l[a]=i[a]);return C.vnode&&C.vnode(u),u}var oe,E,qe,Lt,de=0,jn=[],M=C,Ht=M.__b,Ut=M.__r,Dt=M.diffed,Ft=M.__c,jt=M.unmount,Wt=M.__;function he(e,t){M.__h&&M.__h(E,e,de||t),de=0;var n=E.__H||(E.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function re(e){return de=1,vt(Vn,e)}function vt(e,t,n){var o=he(oe++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):Vn(void 0,t),function(a){var l=o.__N?o.__N[0]:o.__[0],u=o.t(l,a);l!==u&&(o.__N=[u,o.__[1]],o.__c.setState({}))}],o.__c=E,!E.__f)){var r=function(a,l,u){if(!o.__c.__H)return true;var f=o.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!s||s.call(this,a,l,u);var c=o.__c.props!==a;return f.forEach(function(p){if(p.__N){var d=p.__[0];p.__=p.__N,p.__N=void 0,d!==p.__[0]&&(c=true)}}),s&&s.call(this,a,l,u)||c};E.__f=true;var s=E.shouldComponentUpdate,i=E.componentWillUpdate;E.componentWillUpdate=function(a,l,u){if(this.__e){var f=s;s=void 0,r(a,l,u),s=f}i&&i.call(this,a,l,u)},E.shouldComponentUpdate=r}return o.__N||o.__}function $(e,t){var n=he(oe++,3);!M.__s&&mt(n.__H,t)&&(n.__=e,n.u=t,E.__H.__h.push(n))}function Z(e,t){var n=he(oe++,4);!M.__s&&mt(n.__H,t)&&(n.__=e,n.u=t,E.__h.push(n))}function L(e){return de=5,ce(function(){return{current:e}},[])}function Wn(e,t,n){de=6,Z(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function ce(e,t){var n=he(oe++,7);return mt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function pe(e,t){return de=8,ce(function(){return e},t)}function se(e){var t=E.context[e.__c],n=he(oe++,9);return n.c=e,t?(n.__==null&&(n.__=true,t.sub(E)),t.props.value):e.__}function Bn(e,t){M.useDebugValue&&M.useDebugValue(t?t(e):e)}function ht(){var e=he(oe++,11);if(!e.__){for(var t=E.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Fo(){for(var e;e=jn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Le),e.__H.__h.forEach(ot),e.__H.__h=[]}catch(t){e.__H.__h=[],M.__e(t,e.__v)}}M.__b=function(e){E=null,Ht&&Ht(e)},M.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Wt&&Wt(e,t)},M.__r=function(e){Ut&&Ut(e),oe=0;var t=(E=e.__c).__H;t&&(qe===E?(t.__h=[],E.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Le),t.__h.forEach(ot),t.__h=[],oe=0)),qe=E},M.diffed=function(e){Dt&&Dt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jn.push(t)!==1&&Lt===M.requestAnimationFrame||((Lt=M.requestAnimationFrame)||jo)(Fo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),qe=E=null},M.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Le),n.__h=n.__h.filter(function(o){return!o.__||ot(o)})}catch(o){t.some(function(r){r.__h&&(r.__h=[])}),t=[],M.__e(o,n.__v)}}),Ft&&Ft(e,t)},M.unmount=function(e){jt&&jt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Le(o)}catch(r){t=r}}),n.__H=void 0,t&&M.__e(t,n.__v))};var Bt=typeof requestAnimationFrame=="function";function jo(e){var t,n=function(){clearTimeout(o),Bt&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);Bt&&(t=requestAnimationFrame(n))}function Le(e){var t=E,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),E=t}function ot(e){var t=E;e.__c=e.__(),E=t}function mt(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function Vn(e,t){return typeof t=="function"?t(e):t}function zn(e,t){for(var n in t)e[n]=t[n];return e}function rt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return true;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return true;return false}function ie(e,t){var n=t(),o=re({t:{__:n,u:t}}),r=o[0].t,s=o[1];return Z(function(){r.__=n,r.u=t,Ke(r)&&s({t:r})},[e,n,t]),$(function(){return Ke(r)&&s({t:r}),e(function(){Ke(r)&&s({t:r})})},[e]),n}function Ke(e){var t,n,o=e.u,r=e.__;try{var s=o();return!((t=r)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return true}}function qn(e){e()}function Kn(e){return e}function Jn(){return[false,qn]}var Zn=Z;function st(e,t){this.props=e,this.context=t}function gt(e,t){function n(r){var s=this.props.ref,i=s==r.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,r)||!i:rt(this.props,r)}function o(r){return this.shouldComponentUpdate=n,ee(e,r)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=true,o.__f=true,o.type=e,o}(st.prototype=new V).isPureReactComponent=true,st.prototype.shouldComponentUpdate=function(e,t){return rt(this.props,e)||rt(this.state,t)};var Vt=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Vt&&Vt(e)};var Wo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Bo(e){function t(n){var o=zn({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=Wo,t.render=e,t.prototype.isReactComponent=t.__f=true,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var zt=function(e,t){return e==null?null:Q(Q(e).map(t))},Vo={map:zt,forEach:zt,count:function(e){return e?Q(e).length:0},only:function(e){var t=Q(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Q},zo=C.__e;C.__e=function(e,t,n,o){if(e.then){for(var r,s=t;s=s.__;)if((r=s.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}zo(e,t,n,o)};var qt=C.unmount;function Gn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=zn({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=true,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Gn(o,t,n)})),e}function Yn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Yn(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=true,e.__c.__P=n)),e}function He(){this.__u=0,this.o=null,this.__b=null}function Xn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qo(e){var t,n,o;function r(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){o=i}),o)throw o;if(!n)throw t;return ee(n,s)}return r.displayName="Lazy",r.__f=true,r}function Se(){this.i=null,this.l=null}C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),qt&&qt(e)},(He.prototype=new V).__c=function(e,t){var n=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(n);var r=Xn(o.__v),s=false,i=function(){s||(s=true,n.__R=null,r?r(a):a())};n.__R=i;var a=function(){if(!--o.__u){if(o.state.__a){var l=o.state.__a;o.__v.__k[0]=Yn(l,l.__c.__P,l.__c.__O)}var u;for(o.setState({__a:o.__b=null});u=o.o.pop();)u.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(i,i)},He.prototype.componentWillUnmount=function(){this.o=[]},He.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Gn(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&ee(q,null,e.fallback);return r&&(r.__u&=-33),[ee(q,null,t.__a?null:e.children),r]};var Kt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Ko(e){return this.getChildContext=function(){return e.context},e.children}function Jo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){ke(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:o.__m},contains:function(){return true},insertBefore:function(r,s){this.childNodes.push(r),t.h.insertBefore(r,s)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}}ke(ee(Ko,{context:t.context},e.__v),t.v)}function yt(e,t){var n=ee(Jo,{__v:e,h:t});return n.containerInfo=t,n}(Se.prototype=new V).__a=function(e){var t=this,n=Xn(t.__v),o=t.l.get(e);return o[0]++,function(r){var s=function(){t.props.revealOrder?(o.push(r),Kt(t,e,o)):r()};n?n(s):s()}},Se.prototype.render=function(e){this.i=null,this.l=new Map;var t=Q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Se.prototype.componentDidUpdate=Se.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Kt(e,n,t)})};var Qn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Go=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yo=/[A-Z0-9]/g,Xo=typeof document<"u",Qo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function eo(e,t,n){return t.__k==null&&(t.textContent=""),ke(e,t),typeof n=="function"&&n(),e?e.__c:null}function er(e,t,n){return Fn(e,t),typeof n=="function"&&n(),e?e.__c:null}V.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(V.prototype,e,{configurable:true,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:true,writable:true,value:t})}})});var Jt=C.event;function tr(){}function nr(){return this.cancelBubble}function or(){return this.defaultPrevented}C.event=function(e){return Jt&&(e=Jt(e)),e.persist=tr,e.isPropagationStopped=nr,e.isDefaultPrevented=or,e.nativeEvent=e};var bt,rr={enumerable:false,configurable:true,get:function(){return this.class}},Zt=C.vnode;C.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,r={},s=o.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Xo&&i==="children"&&o==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===true?a="":l==="translate"&&a==="no"?a=false:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||o!=="input"&&o!=="textarea"||Qo(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Go.test(i)&&(i=l):l=i="oninput":s&&Zo.test(i)?i=i.replace(Yo,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&r[i=l]&&(i="oninputCapture"),r[i]=a}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Q(n.children).forEach(function(u){u.props.selected=r.value.indexOf(u.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=Q(n.children).forEach(function(u){u.props.selected=r.multiple?r.defaultValue.indexOf(u.props.value)!=-1:r.defaultValue==u.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",rr)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=Qn,Zt&&Zt(e)};var Gt=C.__r;C.__r=function(e){Gt&&Gt(e),bt=e.__c};var Yt=C.diffed;C.diffed=function(e){Yt&&Yt(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),bt=null};var sr={ReactCurrentDispatcher:{current:{readContext:function(e){return bt.__n[e.__c].props.value},useCallback:pe,useContext:se,useDebugValue:Bn,useDeferredValue:Kn,useEffect:$,useId:ht,useImperativeHandle:Wn,useInsertionEffect:Zn,useLayoutEffect:Z,useMemo:ce,useReducer:vt,useRef:L,useState:re,useSyncExternalStore:ie,useTransition:Jn}}};function ir(e){return ee.bind(null,e)}function je(e){return!!e&&e.$$typeof===Qn}function ar(e){return je(e)&&e.type===q}function cr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function lr(e){return je(e)?Uo.apply(null,arguments):e}function to(e){return!!e.__k&&(ke(null,e),true)}function ur(e){return e&&(e.base||e.nodeType===1&&e)||null}var fr=function(e,t){return e(t)},_r=function(e,t){return e(t)},dr=q,pr=je,Fs={useState:re,useId:ht,useReducer:vt,useEffect:$,useLayoutEffect:Z,useInsertionEffect:Zn,useTransition:Jn,useDeferredValue:Kn,useSyncExternalStore:ie,startTransition:qn,useRef:L,useImperativeHandle:Wn,useMemo:ce,useCallback:pe,useContext:se,useDebugValue:Bn,version:"18.3.1",Children:Vo,render:eo,hydrate:er,unmountComponentAtNode:to,createPortal:yt,createElement:ee,createContext:Ie,createFactory:ir,cloneElement:lr,createRef:Ao,Fragment:q,isValidElement:je,isElement:pr,isFragment:ar,isMemo:cr,findDOMNode:ur,Component:V,PureComponent:st,memo:gt,forwardRef:Bo,flushSync:_r,unstable_batchedUpdates:fr,StrictMode:dr,Suspense:He,SuspenseList:Se,lazy:qo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sr};function vr(e){return{render:function(t){eo(t,e)},unmount:function(){to(e)}}}const wt=Ie("");function hr(){return se(wt)+ht()}Oe(1,"styles/scale","@layer clover{:root{--clover-space-3xs: .146rem;--clover-space-2xs: .236rem;--clover-space-xs: .382rem;--clover-space-s: .618rem;--clover-space-m: 1rem;--clover-space-l: 1.618rem;--clover-space-xl: 2.618rem;--clover-space-2xl: 4.236rem;--clover-text-xs: .764rem;--clover-text-s: .854rem;--clover-text-m: 1.146rem;--clover-text-l: 1.236rem;--clover-control: calc(1rem + 2 * var(--clover-space-s));--clover-inset: var(--clover-space-l)}:where(.clover-root,.clover-canvas,.clover-items,.clover-geomap) :where(button,input,select,textarea){font:inherit}:where(.clover-field-pill-query,.clover-collection-select-control){box-sizing:border-box;padding:var(--clover-space-xs) var(--clover-space-s);border:1px solid var( --clover-field-edge, color-mix( in srgb, var(--clover-color-primary-muted, #26292b) 80%, var(--clover-color-secondary, #fff) ) );border-radius:var(--clover-radius, 3px);background-color:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e)}:where(.clover-field-pill-query,.clover-collection-select-control):focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:1px}:where(.clover-field-pill-query)::placeholder{color:color-mix(in srgb,var(--clover-color-primary, #1a1d1e) 65%,var(--clover-color-secondary, #fff));opacity:1}}");const mr="clover-root",no=Symbol("roots"),gr=[];class oo{constructor(t){X(this,"entries",new Map);X(this,"lists",new Map);X(this,"listeners",new Map);X(this,"languages",new yr(t2=>this.entries.has(t2)));this.count=t}list(t){return this.lists.get(t)??gr}subscribe(t,n){let o=this.listeners.get(t);return o||this.listeners.set(t,o=new Set),o.add(n),()=>{o.delete(n)}}connect(t){var s;const n=t.kind==="part"?((s=t.element.parentElement)==null?void 0:s.closest(mr))??null:null,o=this.entries.get(t.element);if(o&&o.root===n)return;const r={hosted:t,key:(o==null?void 0:o.key)??++this.count.made,root:n};this.entries.set(t.element,r),o&&this.change(Je(o),i=>i.filter(a=>a!==o)),this.change(Je(r),i=>[...i,r]),t.needsRoot&&!n&&console.warn(`<${t.element.localName}> shows a <clover-root>'s state: put it inside one.`),t.kind!=="root"&&this.languages.draws(t.element.localName),(t.kind!=="part"||!n)&&this.languages.watch(t.element)}disconnect(t){const n=this.entries.get(t);n&&(this.entries.delete(t),this.change(Je(n),o=>o.filter(r=>r!==n)))}change(t,n){var o;this.lists.set(t,n(this.list(t))),(o=this.listeners.get(t))==null||o.forEach(r=>r())}}const Je=e=>e.hosted.kind==="root"?no:e.root;class yr{constructor(t){X(this,"observer",null);X(this,"tags",new Set);this.isElement=t}draws(t){this.tags.add(t)}watch(t){this.observer??(this.observer=new MutationObserver(n=>{const o=[...this.tags,".clover-announcer"].join(",");for(const{target:r}of n){const s=r;s.getAttribute("lang")!==""||this.isElement(s)||s.closest(o)&&s.removeAttribute("lang")}})),this.observer.observe(t,{subtree:true,attributes:true,attributeFilter:["lang"]})}}function it(e,t){const n=pe(r=>e.subscribe(t,r),[e,t]);return ie(n,()=>e.list(t))}function ro(e){return ie(e.subscribe,e.getProps,e.getProps)}function br({registry:e}){const t=it(e,no),n=it(e,null);return N(q,{children:[t.map(o=>N(wr,{entry:o,registry:e},o.key)),n.map(o=>N(io,{entry:o},o.key))]})}const so=e=>`clover-${e.key}-`,wr=gt(function({entry:t,registry:n}){const{hosted:o}=t,r=it(n,o.element),s=ro(o),i=o.Component;return N(ao,{hosted:o,props:s,children:N(wt.Provider,{value:so(t),children:N(i,{hosted:o,props:s,children:r.map(a=>N(io,{entry:a},a.key))})})})}),io=gt(function({entry:t}){const{hosted:n}=t,o=ro(n);if(n.needsRoot&&!t.root)return null;const r=n.Component;return yt(N(ao,{hosted:n,props:o,children:N(wt.Provider,{value:so(t),children:N(r,{hosted:n,props:o})})}),n.element)});class ao extends V{constructor(){super(...arguments);X(this,"state",{failed:false})}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(n,o){console.error(`<${this.props.hosted.element.localName}>:`,n)}componentDidUpdate(n){this.state.failed&&n.props!==this.props.props&&this.setState({failed:false})}render(){return this.state.failed?null:this.props.children}}const Xt=new WeakMap,Ae=Symbol.for("clover.elements");function Sr(e){let t=Xt.get(e);if(!t){const n=e;n[Ae]&&console.warn("Clover is loaded twice on this page: load one entry."),t=new oo(n[Ae]??(n[Ae]={made:0})),Xt.set(e,t),vr(e.createElement("div")).render(N(br,{registry:t}))}return t}const js=Object.freeze(Object.defineProperty({__proto__:null,Registry:oo,hostOf:Sr},Symbol.toStringTag,{value:"Module"})),St=Ie(void 0);function co(e=B,t){const n=ie(U.subscribe,U.getSnapshot,U.getSnapshot),o=se(St),r=t??o,s=pe((a,l)=>U.t(a,l,e),[e,n]),i=pe(a=>U.langOf(a,r,e),[e,n,r]);return{t:s,langOf:i,hostLanguage:r,i18n:U}}function Cr(e,t,n={}){return((e==null?void 0:e.fetch)??globalThis.fetch)(t,{credentials:(e==null?void 0:e.credentials)??"same-origin",...n,headers:{...n.headers,...e==null?void 0:e.headers}})}const Ws=e=>(e==null?void 0:e.credentials)==="include",xr=e=>JSON.stringify([e==null?void 0:e.credentials,e==null?void 0:e.headers]);class kr extends Error{constructor(t,n,o){super(t),this.url=n,this.status=o,this.name="CloverRequestError"}}async function ve(e,t,n){const o=await Cr(e,t,{signal:n,headers:{Accept:"application/ld+json, application/json"}});if(!o.ok)throw new kr(`${t} answered ${o.status}`,t,o.status);return o.json()}const P=e=>Array.isArray(e)?e:e==null?[]:[e],lo=["Independents","Composite","List"];function uo(e){return P(e==null?void 0:e.body).flatMap(t=>lo.includes(t==null?void 0:t.type)?P(t.items):[t])}function Or(e){const t=P(e==null?void 0:e.motivation);return!t.length||t.includes("painting")}function Pr(e){const t=[];for(const n of P(e==null?void 0:e.items))for(const o of P(n==null?void 0:n.items))if(Or(o))for(let r of uo(o))(r==null?void 0:r.type)==="Choice"&&(r=P(r.items)[0]),(r==null?void 0:r.type)==="SpecificResource"&&(r=typeof r.source=="string"?{id:r.source}:r.source),r&&t.push({body:r,annotation:o});return t}const Ze=e=>e.indexOf("-")===-1?null:e.slice(0,e.indexOf("-"));function Er(e,t,n=[]){if(!t.length)return;if(t.length===1)return t[0];const o=()=>t.includes("none")?"none":t.includes("@none")?"@none":t[0];if(!e)return t.includes("none")?"none":t[0];if(t.includes(e))return e;const r=Ze(e);if(r&&t.includes(r))return r;const s=n.find(a=>t.includes(a));if(s)return s;const i=t.findIndex(a=>Ze(a)===e);if(i!==-1)return t[i];for(const a of n){const l=Ze(a);if(l&&t.includes(l))return l}return o()}function fo(e,t,n=", "){if(!e)return{text:""};if(typeof e=="string")return{text:e};const o=Object.keys(e).filter(u=>{var f;return(f=e[u])==null?void 0:f.length});if(!o.length)return{text:""};const[r,...s]=t?[t]:Cn(),i=Er(r,o,s)??o[0],a=e[i];return{text:Array.isArray(a)?a.join(n):String(a),lang:i==="none"?void 0:i}}const We=Ie(null);function Bs(){return se(We)}function Ir(e="This part"){const t=se(We);if(!t)throw new Error(`${e} must be rendered inside <Clover.Root>.`);return t}function Vs(e,t=Object.is,n){const{clover:o}=Ir(n),r=L(null),s=()=>{const i=e(o.store.get());return r.current&&t(r.current.value,i)?r.current.value:(r.current={value:i},i)};return ie(o.store.subscribe,s)}const Mr={subscribe:()=>()=>{}};function zs(e,t){const n=se(We),o=n==null?void 0:n.clover.store,r=()=>o?e(o.get()):t;return ie(o?o.subscribe:Mr.subscribe,r)}function Nr(e,t){const n=se(St),o=L(null),[r,s]=re(""),i=pe(f=>{o.current=f,typeof e=="function"?e(f):e&&(e.current=f)},[e]);$(()=>{var c,p;const f=(c=o.current)==null?void 0:c.parentElement;t!==void 0||n!==void 0||!f||s(((p=f.closest("[lang]"))==null?void 0:p.getAttribute("lang"))??"")});const l=t??n??r,{langOf:u}=co(void 0,l);return{ref:i,hostLanguage:l,langOf:u}}Oe(19,"ui/ReadMore","@layer clover{.clover-read-more{display:flex;flex-direction:column;align-items:flex-start;gap:var(--clover-space-xs);min-width:0}button.clover-read-more-button{margin:0;padding:0;border:0;background:none;color:var(--clover-color-accent-text, var(--clover-color-accent, #0065c3));font-size:var(--clover-text-s);text-decoration:underline 1px;text-decoration-color:color-mix(in srgb,currentColor 20%,transparent);text-underline-offset:var(--clover-space-3xs);cursor:pointer}button.clover-read-more-button:hover{text-decoration-color:currentColor}button.clover-read-more-button:focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:2px;border-radius:var(--clover-radius, 3px)}}");const $r=["left-to-right","right-to-left","top-to-bottom","bottom-to-top"];function Ar(e){return $r.includes(e)?e:"left-to-right"}const Tr=["individuals","paged","continuous","unordered"];function Rr(e){return P(e).find(n=>Tr.includes(n))??"individuals"}function Lr(e,t){if(!e.length)return[];if(t==="continuous")return[e.map((a,l)=>l)];if(t!=="paged")return e.map((a,l)=>[l]);const n=[];let o=[],r=0,s=false;const i=()=>{o.length&&n.push(o),o=[]};return e.forEach((a,l)=>{const u=P(a.behavior);if(u.includes("non-paged")){l===r&&r++,i(),n.push([l]);return}if(l===r||u.includes("facing-pages")){o.length&&(s=true),i(),n.push([l]);return}if(o.push(l),s){i(),s=false;return}o.length>1&&i()}),i(),n}function Hr(e,t){const n=e.findIndex(o=>o.includes(t));return n===-1?0:n}function _o(e,t){const n=/(?:^|[#&])t=([^&]+)/.exec(t),o=n&&{t:n[1]},r=/(?:^|[#&])xywh=(?:pixel:)?([^&]+)/.exec(t);if(r){const[s,i,a,l]=r[1].split(",").map(Number);if([s,i,a,l].every(Number.isFinite))return{id:e,rect:{x:s,y:i,w:a,h:l},...o}}return o&&{id:e,...o}}function Te(e){const t=e.indexOf("#");if(t>=0){const o=e.slice(0,t);return _o(o,e.slice(t))??{id:o}}const n=e.indexOf("&t=");return n>=0?{id:e.slice(0,n),t:e.slice(n+3)}:{id:e}}const at=e=>{var t;return Array.isArray(e)?at(e[0]):lo.includes(e==null?void 0:e.type)?at((t=e.items)==null?void 0:t[0]):e};function Be(e){return Ur(at(e))}function Ur(e){var n;if(typeof e=="string")return Te(e);if(!e||typeof e!="object")return{id:""};if(e.type!=="SpecificResource"||e.source===void 0)return Te(e.id??"");const t=typeof e.source=="string"?Te(e.source):Te(((n=e.source)==null?void 0:n.id)??"");for(const o of P(e.selector)){const r=o;if((r==null?void 0:r.type)==="PointSelector")return{id:t.id,point:{x:Number(r.x),y:Number(r.y)}};if((r==null?void 0:r.type)==="SvgSelector"&&r.value)return{id:t.id,svg:String(r.value)};if((r==null?void 0:r.type)==="FragmentSelector"&&r.value){const s=_o(t.id,String(r.value));if(s)return s}}return t}const qs=e=>e==="Audio"||e==="Sound",Dr=e=>{const t=P(e);return t.length>0&&t.every(n=>n==="supplementing")},Fr=(e,t)=>Dr(e)&&!!(t.rect||t.svg||t.point)&&!t.t,Qt=new WeakMap,jr={canvases:[],views:[],direction:"left-to-right"};function z(e){if(!e)return jr;let t=Qt.get(e);if(!t){const n=(e.items??[]).filter(o=>(o==null?void 0:o.type)==="Canvas"||(o==null?void 0:o.type)==="Timeline"||(o==null?void 0:o.type)==="Scene");t={canvases:n,views:Lr(n,Rr(e.behavior)),direction:Ar(e.viewingDirection)},Qt.set(e,t)}return t}const en=new WeakMap;function Me(e,t){if(!t)return null;const n=z(e);let o=en.get(n);if(!o){o=new Map;for(const r of n.canvases)o.has(r.id)||o.set(r.id,r);en.set(n,o)}return o.get(t)??null}function Ve(e,t){const{canvases:n,views:o}=z(e),r=n.findIndex(s=>s.id===t);return r===-1?0:Hr(o,r)}const tn=new WeakMap,Wr=[];function Ue(e,t){if(!e)return Wr;const n=Ve(e,t);let o=tn.get(e);o||tn.set(e,o=new Map);let r=o.get(n);if(!r){const s=z(e);r=(s.views[n]??[]).map(i=>s.canvases[i]),o.set(n,r)}return r}function Br(e,t){var s,i;const{canvases:n,views:o}=z(e),r=(s=o[t])==null?void 0:s[0];return r===void 0?null:((i=n[r])==null?void 0:i.id)??null}function Vr(e){const t=e==null?void 0:e.start;if(!t)return null;const n=Be(t);if(!n.id)return null;const o={canvasId:n.id};n.rect&&(o.region=n.rect);const r=n.t?Number(n.t.split(",")[0]):NaN;return Number.isFinite(r)&&(o.time=r),o}const Ks=(e,t)=>{const n=e==null?void 0:e.behavior;return Array.isArray(n)?n.includes(t):n===t},Js=e=>[(e==null?void 0:e.partOf)??[]].flat().find(t=>(t==null?void 0:t.id)&&t.type==="Collection");Oe(24,"components/Primitives/Primitives","@layer clover{.clover-summary:not([data-read-more=open]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--clover-summary-lines, 5);overflow:hidden}:is(.clover-metadata,.clover-required-statement){display:flex;flex-direction:column;gap:var(--clover-space-s);margin:0}:is(.clover-metadata,.clover-required-statement) dt{margin:0;font-weight:500}:is(.clover-metadata,.clover-required-statement) dd{margin:0}.clover-summary,:is(.clover-metadata,.clover-required-statement) :is(dt,dd){overflow-wrap:anywhere}:is(.clover-about,.clover-canvas-caption,.clover-annotations-body,.clover-metadata,.clover-required-statement,.clover-summary) a:not([class]){text-decoration-line:underline;text-underline-offset:var(--clover-space-3xs)}:is(.clover-homepage,.clover-rendering,.clover-see-also,.clover-part-of)>li{min-block-size:24px}:is(.clover-homepage,.clover-rendering,.clover-see-also,.clover-part-of) a,a:is(.clover-id,.clover-rights){color:var(--clover-color-accent-text, var(--clover-color-accent, #0065c3));overflow-wrap:anywhere;text-decoration-line:underline;text-underline-offset:var(--clover-space-3xs)}.clover-link-format{color:var(--clover-color-primary-muted, #26292b);font-size:var(--clover-text-s)}}");const zr=e=>(e==null?void 0:e.format)==="text/vtt"||typeof(e==null?void 0:e.id)=="string"&&/\.vtt(\?|$)/i.test(e.id);function qr(e){const t=[];for(let n of uo(e))if((n==null?void 0:n.type)==="Choice"&&(n=P(n.items)[0]),!(!n||zr(n))){if(n.type==="TextualBody"||typeof n.value=="string")t.push({value:String(n.value??""),format:n.format,language:P(n.language)[0]});else if(n.type==="Image"&&n.id){const o=n.label??e.label;t.push({image:n.id,format:n.format,...o?{label:o}:{}})}}return t}const po="content-search",nn=/\/search\/([0-2])\//;function Kr(e){if(!e)return null;let t=null;for(const n of P(e.service)){const o=(n==null?void 0:n.id)??(n==null?void 0:n["@id"]);if(typeof o!="string")continue;const r=String(n.type??n["@type"]??""),s=[n.profile,n["@context"]].flat().map(a=>String(a??"")).join(" "),i=r==="SearchService2"?2:r==="SearchService1"?1:nn.test(s)?Number(nn.exec(s)[1])>=2?2:1:null;if(i===2)return{id:o,version:i};i===1&&(t??(t={id:o,version:i}))}return t}const Jr=e=>P(e==null?void 0:e.motivation).includes("linking");function vo(e,t,n){const o=[];for(const r of P(e==null?void 0:e.items)){const s=P(r==null?void 0:r.motivation);if(s.includes("painting"))continue;const i=qr(r);if(!i.length&&!Jr(r))continue;const a=Be(P(r.target)[0]),l=a.id||n;!l||!r.id||o.push({id:r.id,setId:t,canvasId:l,target:a,motivation:s,bodies:i,annotation:r})}return o}const on=new WeakMap;function Zr(e){if(!e)return[];let t=on.get(e);if(!t){const n=new Map;for(const o of z(e).canvases)for(const r of P(o.annotations)){if(!Array.isArray(r==null?void 0:r.items))continue;const s=r.id??`${o.id}#annotations`;let i=n.get(s);i||(i={id:s,label:r.label,source:"manifest",entries:[]},n.set(s,i)),i.entries.push(...vo(r,s,o.id))}t=[...n.values()].filter(o=>o.entries.length),on.set(e,t)}return t}const rn=new WeakMap,sn=[];function ze(e,t){const n=Zr(e);if(!t.length)return n.length?n:sn;const o=e??sn;let r=rn.get(o);r||rn.set(o,r=new Map);let s=r.get(t);return s||(s=[...n,...t],r.set(t,s)),s}const an=new WeakMap;function Gr(e,t,n){const o=ze(e,t);if(!(n!=null&&n.entries.length))return o;let r=an.get(o);r||an.set(o,r=new Map);let s=r.get(n);return s||(s=[...o,n],r.set(n,s)),s}const Yr=e=>Number(e==null?void 0:e.duration)>0;function ho(e,t){return e.source==="search"||!e.entries.length?false:e.entries.every(n=>Fr(n.motivation,n.target)&&!Yr(t(n.canvasId)))}const cn=new WeakMap;function Zs(e,t){const n=ze(e,t);let o=cn.get(n);if(!o){const r=n.filter(s=>!ho(s,i=>Me(e,i)??void 0));o=r.length===n.length?n:r,cn.set(n,o)}return o}const ln=new WeakMap;function mo(e,t,n,o){const r=ze(e,t),s=ln.get(r);if(s&&s.hidden===n&&s.shown===o)return s.ids;const i=r.filter(l=>!n.includes(l.id)&&!o.includes(l.id)&&ho(l,u=>Me(e,u)??void 0)).map(l=>l.id),a=i.length?[...n,...i]:n;return ln.set(r,{hidden:n,shown:o,ids:a}),a}const un=new WeakMap;function Gs(e,t,n,o){const r=mo(e,t,n,o),s=un.get(r);if(s&&s.hidden===n)return s.ids;const i=[po,...r.filter(a=>!n.includes(a))];return un.set(r,{hidden:n,ids:i}),i}function Xr(e){for(const t of P(e==null?void 0:e.target)){const n=(t==null?void 0:t.type)==="SpecificResource"?t.source:t,o=P(n==null?void 0:n.partOf).find(r=>(r==null?void 0:r.id)&&(!r.type||r.type==="Manifest"));if(o)return o.id}}function Ge(e,t){if(!t)return null;for(const n of e){const o=n.entries.find(r=>r.id===t);if(o)return o}return null}function fn(e){const t=e;return!t||typeof t!="object"?false:t.type==="Annotation"?P(t.motivation).includes("contentState"):t.type==="SpecificResource"}function Qr(e){return btoa(encodeURIComponent(JSON.stringify(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function es({manifestId:e,canvasId:t,region:n,time:o}){const r={id:t,type:"Canvas",partOf:[{id:e,type:"Manifest"}]},s=o!=null&&o>0?`t=${Math.round(o*100)/100}`:n?`xywh=${[n.x,n.y,n.w,n.h].map(Math.round).join(",")}`:null,i={"@context":"http://iiif.io/api/presentation/3/context.json",id:`${t}#content-state`,type:"Annotation",motivation:["contentState"],target:s?{type:"SpecificResource",source:r,selector:{type:"FragmentSelector",value:s}}:r};return{json:i,encoded:Qr(i)}}const ts=/iiif\.io\/api\/presentation\/4\/context\.json/;function go(e){const t=e==null?void 0:e["@context"];return(Array.isArray(t)?t:[t]).some(o=>typeof o=="string"&&ts.test(o))}let _n=null;function Ct(){return _n??(_n=import("./upgrader-XNxI-5jo.mjs")),_n}async function le(e){if(go(e))return e;const[{upgradeToPresentation4:t},{keepFragments:n}]=await Promise.all([Ct(),import("./keep-fragments-B5nlv2ck.mjs")]);return t(n(e))}const dn=()=>import("./content-state-reader-D1BkpICh.mjs"),ns=["summary","metadata","requiredStatement","rights","provider","homepage","seeAlso","rendering","thumbnail","navDate","partOf"];function os(e){const t={"@context":ss,id:e.id,type:"Manifest",label:e.label??{none:[""]},items:[e]};for(const n of ns)e[n]!==void 0&&n!=="label"&&(t[n]=e[n]);return t}const Ys=e=>{var t,n;return!!e&&((n=(t=e.items)==null?void 0:t[0])==null?void 0:n.id)===e.id},rs=/^(oa:)?Annotation(Page|Collection)$/;class Re extends Error{constructor(){super(...arguments);X(this,"name","CloverContentError")}}const ss="http://iiif.io/api/presentation/4/context.json",is=e=>/^https?:\/\//i.test(e);async function ct(e,{request:t,signal:n}){return Array.isArray(e.items)&&e.items.length>0||!e.id?e:await ve(t,e.id,n)}const as=50;async function xt(e,t){const n=e;if(Array.isArray(n.items)&&n.items.length||!n.first)return e;const o=[],r=new Set;let s=n.first;for(let i=0;s&&i<as;i++){const a=typeof s=="string"?{id:s}:s;if(r.has(a.id??a))break;r.add(a.id??a);const l=a.items?a:await ve(t.request,a.id,t.signal),u=await le({"@context":l["@context"]??n["@context"],...l,type:"Collection"});o.push(...u.items??[]),s=l.next}return{...n,items:o}}async function yo(e,t={}){return le(await ct(e,t))}async function bo(e,t,n=0){for(const o of e.items??[]){if(o.type==="Manifest")return le(await ct(o,t));if(o.type==="Collection"&&n<8){const r=await xt(await le(await ct(o,t)),t),s=await bo(r,t,n+1);if(s)return s}}return null}async function cs(e,{request:t,signal:n}={}){Ct();const o=typeof e=="string"?await ve(t,e.trim(),n):e,r=await le(o);return r.type==="Collection"?xt(r,{request:t,signal:n}):r}async function ls(e,t={}){var f;const{request:n,signal:o}=t;Ct();let r,s,i,a;const l=async c=>{const{resolveContentState:p}=await dn(),d=p(c);if(!d)throw new Re("Unreadable content state");return r=d.target??r,s=d.manifestId??s,i=d.annotation??i,ve(n,d.id,o)};if(typeof e=="string")if(is(e.trim()))a=await ve(n,e.trim(),o);else{const{decodeContentState:c}=await dn(),p=c(e);if(!p)throw new Re("Unreadable iiifContent");a=fn(p)?await l(p):p}else a=e;if(fn(a)&&(a=await l(a)),rs.test(String((a==null?void 0:a.type)??""))){const{annotationsContent:c}=await import("./annotations-content-BS_OFz5Z.mjs");return c(a,t)}const u=await le(a);switch((f=o==null?void 0:o.throwIfAborted)==null||f.call(o),u.type){case"Manifest":return{manifest:u,target:r,annotation:i};case"Collection":{const c=await xt(u,t),p=t.manifestId??s,d=p?(c.items??[]).find(O=>O.id===p&&O.type==="Manifest"):void 0,g=d?await yo(d,t):await bo(c,t);if(!g)throw new Re("The Collection holds no Manifest");return{manifest:g,collection:c,target:r,annotation:i}}case"Canvas":case"Timeline":case"Scene":{const c=u;return r??(r={canvasId:c.id}),{manifest:os(c),target:r,annotation:i}}default:throw new Re(`Cannot show a ${String(u.type??"resource without a type")}`)}}const wo=e=>!!(e!=null&&e.id)&&e.type==="AnnotationPage"&&!e.items;function us(e){const t=[];for(const n of e)for(const o of["items","annotations"])for(const r of n[o]??[])wo(r)&&t.push([n.id,o,r.id]);return t}async function fs(e,t,n,o){return _s(await ve(n,e,o),t)}async function _s(e,t="urn:clover:annotation-page"){var r;const n=e;return go(n)?n:((r=(await le({"@context":n["@context"]??"http://iiif.io/api/presentation/3/context.json",id:t,type:"Canvas",items:[{...n,"@context":void 0}]})).items)==null?void 0:r[0])??n}function ds(e,t,n,o){let r=false;const s=(e.items??[]).map(i=>{if(i.id!==t||!Array.isArray(i[n]))return i;const a=i[n].map(l=>l.id!==o.id||!wo(l)?l:(r=true,o));return r?{...i,[n]:a}:i});return r?{...e,items:s}:e}function ps(e){let t=e;const n=new Set;return{get:()=>t,set(o){const r=typeof o=="function"?o(t):o;Object.keys(r).some(i=>!Object.is(r[i],t[i]))&&(t={...t,...r},n.forEach(i=>i()))},subscribe(o){return n.add(o),()=>n.delete(o)}}}function be(e){let t=e;const n=new Set;return{get:()=>t,emit(o){t=o,n.forEach(r=>r(o))},subscribe(o){return n.add(o),()=>n.delete(o)}}}function vs(e,t,n){return{position:t,total:n,hasPrevious:t>0,hasNext:t+1<n,previous:()=>e.previous(),next:()=>e.next(),first:()=>e.first(),last:()=>e.last(),goTo:o=>e.goTo(o)}}const lt={query:"",status:"idle",hits:[],set:null},pn={status:"idle",error:null,manifest:null,collection:null,canvasId:null,target:null,annotationId:null,hiddenSets:[],shownSets:[],addedSets:[],search:lt};function hs(e={}){const t=ps(pn),n=be(null),o=be(null),r=be(null),s=be(null),i=be(null);let a=null,l=null,u=[],f=[],c=null;const p=()=>u.length||f.length?[...u,...f]:pn.addedSets;let d=e.request,g=null;const O=new Set;let k="view",b=0;const y=()=>{const{manifest:_,canvasId:h}=t.get();if(!_)return;const v=g==null?void 0:g.signal;for(const[m,S,w]of us(k==="all"||b>0?z(_).canvases:Ue(_,h)))O.has(w)||(O.add(w),fs(w,m,d,v).then(I=>{v!=null&&v.aborted||t.set(H=>H.manifest?{manifest:ds(H.manifest,m,S,I)}:{})}).catch(()=>O.delete(w)))};t.subscribe(y);const x=(_,h,v,m,S)=>{var Pt,Et,It;const{canvases:w}=z(_),I=Mt=>!!Mt&&w.some(xo=>xo.id===Mt),H=Vr(_),ne=I(v==null?void 0:v.canvasId)?v:I(H==null?void 0:H.canvasId)?H:null,Y=I(m.canvasId)?m.canvasId:(ne==null?void 0:ne.canvasId)??(I(m.defaultCanvasId)?m.defaultCanvasId:null)??((Pt=w[0])==null?void 0:Pt.id)??null;l==null||l.abort();const ge=S&&((Et=Ge(f,S))==null?void 0:Et.canvasId)===Y?S:null,ye=ne&&ge?{...ne,region:void 0}:ne;t.set({status:"ready",search:lt,manifest:_,collection:h,canvasId:Y,target:ye&&ye.canvasId===Y?ye:null,addedSets:p(),annotationId:ge}),Y&&Y!==m.canvasId&&((It=e.onCanvasChange)==null||It.call(e,Y))},T=(_,h)=>t.set(v=>{const m=v.hiddenSets.filter(w=>w!==_),S=v.shownSets.filter(w=>w!==_);return h?{hiddenSets:m,shownSets:[...S,_]}:{hiddenSets:[...m,_],shownSets:S}}),F=(_,h)=>{var m,S,w;if(!_)return;if((m=e.isControlled)!=null&&m.call(e)){h&&t.set({target:h}),(S=e.onCanvasChange)==null||S.call(e,_);return}const v=t.get().canvasId!==_;t.set({canvasId:_,target:h}),v&&((w=e.onCanvasChange)==null||w.call(e,_))},R=(_,h=false)=>{const{manifest:v}=t.get(),m=Br(v,_);F(m,m&&h?{canvasId:m,autoplay:h}:null)},te=()=>{const{manifest:_,canvasId:h}=t.get();return{at:Ve(_,h),total:z(_).views.length}},j=()=>{g==null||g.abort();const _=new AbortController;return g=_,O.clear(),t.set({status:"loading",error:null,annotationId:null}),_.signal},K=_=>t.set({status:"error",error:_ instanceof Error?_:new Error(String(_))});async function G(_,h={}){var m;const v=j();try{const S=await ls(_,{request:d,signal:v,manifestId:h.manifestId??void 0});if(v.aborted)return;const w=S.annotation,I=w?vo({items:[w]},`${w.id}#content-state`):[];f=I.length?[{id:`${w.id}#content-state`,source:"added",entries:I}]:S.annotationSets??[];const H=c??((m=I[0])==null?void 0:m.id)??S.pick;c=null,x(S.manifest,S.collection??null,S.target,h,H)}catch(S){v.aborted||K(S)}}const A=_=>{const{manifest:h,collection:v}=t.get();return(h==null?void 0:h.id)===_||(v==null?void 0:v.id)===_},D=_=>{var h;return(((h=t.get().collection)==null?void 0:h.items)??[]).find(v=>v.id===_)??{id:_,type:"Manifest"}},me=(_,h)=>{var v,m;if(c=h,(v=e.isManifestControlled)!=null&&v.call(e)){(m=e.onManifestChange)==null||m.call(e,_);return}ue({id:_,type:"Manifest"}).then(S=>{var w;return S&&((w=e.onManifestChange)==null?void 0:w.call(e,_))})},ue=async(_,h)=>{if(_.type==="Collection")return await G(_.id),t.get().status==="ready";const{collection:v}=t.get(),m=j(),S=c;c=null;const w=S?Ge(f,S):null;try{const I=await yo(_,{request:d,signal:m});return m.aborted?false:(x(I,v,w?{canvasId:w.canvasId}:h?{canvasId:h}:void 0,{},S),true)}catch(I){return m.aborted||K(I),false}};return{store:t,viewport:n,media:o,captions:r,highlight:s,chapter:i,get request(){return d},setRequest(_){d=_},load:G,async openCollection(_){var v;const h=t.get().manifest;if(!(!h||((v=t.get().collection)==null?void 0:v.id)===_))try{const m=await cs(_,{request:d});if(m.type!=="Collection"||t.get().manifest!==h)return;t.set({collection:m})}catch{}},async goToManifest(_,h){var m,S,w;if(A(_))return;const v=D(_);if(v.type!=="Collection"&&((m=e.isManifestControlled)!=null&&m.call(e))){(S=e.onManifestChange)==null||S.call(e,_);return}await ue(v,h)&&((w=e.onManifestChange)==null||w.call(e,t.get().manifest.id))},async syncManifest(_){!_||A(_)||t.get().status!=="ready"||await ue(D(_))},goTo(_,h){F(_,h?{...h,canvasId:_}:null)},next({autoplay:_=false,wrap:h=false}={}){const{at:v,total:m}=te();v+1<m?R(v+1,_):h&&m>1&&R(0,_)},previous(){const{at:_}=te();_>0&&R(_-1)},first(){R(0)},last(){R(te().total-1)},consumeTarget(){t.set({target:null})},syncCanvas(_){_&&t.set({canvasId:_})},selectAnnotation(_){const{manifest:h,addedSets:v,canvasId:m,search:S}=t.get(),w=Ge(Gr(h,v,S.set),_);if(t.set({annotationId:w?_:null}),!w)return;const{hiddenSets:I,shownSets:H}=t.get();w.setId!==po&&mo(h,v,I,H).includes(w.setId)&&T(w.setId,true);const ne=Ue(h,m).some(ye=>ye.id===w.canvasId),Y=Me(h,w.canvasId)!==null;!ne&&Y&&F(w.canvasId,null);const ge=Y?void 0:Xr(w.annotation);ge&&me(ge,w.id)},async search(_){l==null||l.abort();const h=Kr(t.get().manifest),v=_.trim();if(!v||!h){l=null,t.set({search:lt,annotationId:null});return}const m=new AbortController;l=m,t.set(S=>({search:{...S.search,query:v,status:"loading"}}));try{const{searchInto:S}=await import("./search-CLy2Wj01.mjs");await S(t,h,v,d,m.signal)}catch{t.set({search:{query:v,status:"error",hits:[],set:null}})}},setSetVisible(_,h){T(_,h)},async loadAnnotations(_){if(a==null||a.abort(),!_){u=[],t.set({addedSets:p()});return}const h=new AbortController;a=h;try{const{loadAnnotationSets:v}=await import("./annotation-collection-Csv7WIlm.mjs"),m=await v(_,{request:d,signal:h.signal});if(h.signal.aborted)return;u=m,t.set({addedSets:p()})}catch{}},getContentState(){const{manifest:_,canvasId:h}=t.get();if(!_||!h)return null;const v=n.get(),m=o.get(),S=m&&m.currentTime>0?m.currentTime:null,I=v&&Ue(_,h).some(H=>H.id===v.canvasId)&&!S?v:null;return es({manifestId:_.id,canvasId:(I==null?void 0:I.canvasId)??h,region:I==null?void 0:I.region,time:S})},setAnnotationPages(_){_!==k&&(k=_,y())},holdAllAnnotationPages(){b++,y();let _=true;return()=>{_&&b--,_=false}},dispose(){g==null||g.abort(),a==null||a.abort(),l==null||l.abort()}}}const ms={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap",border:0};function gs({clover:e,language:t}){const{t:n,langOf:o}=co(),[r,s]=re(null),i=L(n);return i.current=n,$(()=>{let a=null;return e.store.subscribe(()=>{const{manifest:l,canvasId:u,status:f}=e.store.get();if(f!=="ready"||u===a)return;const c=a===null;if(a=u,c)return;const p=Me(l,u),d=fo(p==null?void 0:p.label,t),g=i.current("canvasPosition",{index:Ve(l,u)+1,total:z(l).views.length});s({label:d.text,lang:d.lang,position:g})})},[e,t]),N("div",{className:"clover-announcer",role:"status","aria-live":"polite","aria-atomic":"true",style:ms,children:[r!=null&&r.label?N(q,{children:[N("span",{lang:r.lang,children:r.label}),","," "]}):null,r&&N("span",{lang:o("canvasPosition"),children:r.position})]})}function Xs(e){return e.flatMap(t=>Pr(t).map(({body:n})=>n))}function Qs(e,t){if(!(e!=null&&e.length)||!t.canvases.length)return null;const n=t.canvases.map(r=>r.id),o=t.bodies.map(r=>r==null?void 0:r.format).filter(Boolean);return e.find(r=>{var s,i,a;return((s=r.canvasId)==null?void 0:s.some(l=>n.includes(l)))||((i=r.format)==null?void 0:i.some(l=>o.includes(l)))||!!((a=r.match)!=null&&a.call(r,t))})??null}function ys(e,t){return e===t?true:!e||!t||e.length!==t.length?false:e.every((n,o)=>n.component===t[o].component&&n.match===t[o].match&&JSON.stringify([n.canvasId,n.format])===JSON.stringify([t[o].canvasId,t[o].format]))}function bs({iiifContent:e,canvasId:t,defaultCanvasId:n,onCanvasChange:o,onStatusChange:r,manifestId:s,defaultManifestId:i,onManifestChange:a,searchQuery:l,request:u,language:f,renderers:c,annotations:p,annotationPages:d="view",onContentStateChange:g,...O}){const k=t!==void 0,b=s!==void 0,y=L({controlled:k,manifestControlled:b,onCanvasChange:o,onStatusChange:r,onManifestChange:a});y.current={controlled:k,manifestControlled:b,onCanvasChange:o,onStatusChange:r,onManifestChange:a};const[x]=re(()=>hs({request:u,onCanvasChange:h=>{var v,m;return(m=(v=y.current).onCanvasChange)==null?void 0:m.call(v,h)},onManifestChange:h=>{var v,m;return(m=(v=y.current).onManifestChange)==null?void 0:m.call(v,h)},isControlled:()=>y.current.controlled,isManifestControlled:()=>y.current.manifestControlled}));x.setRequest(u);const T=L({});T.current={canvasId:t,defaultCanvasId:n,manifestId:s??i};const F=xr(u),R=L(e);R.current=e;const te=ks(e);$(()=>(x.load(R.current,T.current),()=>x.dispose()),[x,te,F]),$(()=>{k&&x.syncCanvas(t??null)},[x,k,t]);const[j,K]=re(x.store.get().status);$(()=>{let h=x.store.get().status;return x.store.subscribe(()=>{var S,w;const{status:v,error:m}=x.store.get();v!==h&&(h=v,K(v),(w=(S=y.current).onStatusChange)==null||w.call(S,v,m))})},[x]);const G=L(p);G.current=p;const A=Ss(p);$(()=>{x.loadAnnotations(G.current??null)},[x,A,F]),$(()=>{x.setAnnotationPages(d)},[x,d]),xs(x,g),$(()=>{b&&j==="ready"&&x.syncManifest(s??null)},[x,b,s,j]);const D=ws(x,h=>{var v;return h.status==="ready"?((v=h.manifest)==null?void 0:v.id)??null:null});$(()=>{l&&D&&x.search(l)},[x,l,D]);const me=L(c);ys(me.current,c)||(me.current=c);const ue=me.current;return[ce(()=>({clover:x,language:f,renderers:ue}),[x,f,ue]),j,O]}function ws(e,t){return ie(e.store.subscribe,()=>t(e.store.get()))}function Ss(e){const t=Array.isArray(e)?e:e?[e]:[];return JSON.stringify(t.map(n=>typeof n=="string"?n:(n==null?void 0:n.id)??"object"))}const Cs=300;function xs(e,t){const n=L(t);n.current=t;const o=!!t;$(()=>{if(!o)return;let r,s="";const i=()=>{clearTimeout(r),r=setTimeout(()=>{var g;const d=e.getContentState();!d||d.encoded===s||(s=d.encoded,(g=n.current)==null||g.call(n,d))},Cs)};let a=e.store.get().canvasId;const l=e.store.subscribe(()=>{const d=e.store.get().canvasId;d!==a&&(a=d,i())}),u=e.viewport.subscribe(i);let f=null;const c=d=>{f==null||f.removeEventListener("pause",i),f==null||f.removeEventListener("seeked",i),f=d,f==null||f.addEventListener("pause",i),f==null||f.addEventListener("seeked",i)};c(e.media.get());const p=e.media.subscribe(c);return i(),()=>{clearTimeout(r),l(),u(),p(),c(null)}},[e,o])}function ks(e){return typeof e=="string"?e:e.id??e["@id"]??e}const Ye=new Map;function ei(e,t){const n=hr(),o=L(t);o.current=t,$(()=>e?So(n,o):void 0,[e,n])}function So(e,t){for(const[n,o]of[...Ye])n!==e&&o.current();return Ye.set(e,t),()=>{Ye.delete(e)}}let Os=0;const Ps=e=>So(`page-${Os+=1}`,{current:e}),vn=new WeakMap;function Es(e,t){const[n,o]=re(()=>vn.get(e)??null);return $(()=>{if(!t||n)return;let r=true;return e().then(s=>{vn.set(e,s),r&&o(()=>s)},()=>{}),()=>{r=false}},[e,t,n]),n}function kt(e){if(!e)return;const[t,n]=e.split(","),o=Number(t);if(t===""||Number.isNaN(o))return;if(n===void 0||n==="")return{start:o};const r=Number(n);return Number.isNaN(r)?{start:o}:{start:o,end:r}}function Ot(e){if(typeof e=="string")return hn(e);const t=e;return(t==null?void 0:t.type)==="SpecificResource"?t:typeof(t==null?void 0:t.id)=="string"?hn(t.id):t}const hn=e=>e.replace(/\/((?:t|xywh)=[^/#]*)$/,"#$1"),mn=new WeakMap,gn=[];function Is(e,t,n){if(!e||!t)return gn;let o=mn.get(e);o||mn.set(e,o=new Map);const r=`${t}|${n??""}`,s=o.get(r);if(s)return s;const i=[],a=new Set,l=f=>{if(!(!f||a.has(f.id??f))){a.add(f.id??f);for(const c of P(f.items)){if((c==null?void 0:c.type)==="Range"){l(c);continue}const p=Be(Ot(c));if(p.id.split("#")[0]!==t)continue;const d=kt(p.t);d&&i.push({...f.id?{id:f.id}:{},label:f.label,...d})}}};for(const f of P(e.structures))l(f);i.sort((f,c)=>f.start-c.start);const u=i.length?i.map((f,c)=>{var p;return{...f,end:f.end??((p=i[c+1])==null?void 0:p.start)??n}}):gn;return o.set(r,u),u}const yn=new WeakMap,bn=[];function Co(e){if(!e)return bn;const t=yn.get(e);if(t)return t;const n=new Set,o=a=>{var O,k;if(!a||n.has(a.id??a))return[];n.add(a.id??a);const l=[],u=[];let f;for(const b of P(a.items))if((b==null?void 0:b.type)==="Range"){const y=o(b);l.push(...y),y.forEach(x=>u.push(...x.canvasIds))}else{const y=Be(Ot(b));if(!y.id)continue;f??(f=y),u.push(y.id)}if(P(a.behavior).includes("no-nav"))return l;const p=f??void 0,d={id:a.id??`range-${n.size}`,label:a.label,canvasId:(p==null?void 0:p.id)??((O=l[0])==null?void 0:O.canvasId),canvasIds:[...new Set(u)],children:l},g=kt(p==null?void 0:p.t);return g?d.time=g:!p&&((k=l[0])!=null&&k.time)&&(d.time=l[0].time),p!=null&&p.rect&&(d.region=p.rect),[d]},r=P(e.structures).flatMap(o),s=r.length===1&&r[0].children.length?r[0].children:r,i=s.length?s:bn;return yn.set(e,i),i}function Ms(e,t,n){let o=null;const r=(s,i)=>{t&&s.canvasIds.includes(t)&&(!s.time||n!==void 0&&n>=s.time.start&&(s.time.end===void 0||n<s.time.end))&&(!o||i>=o.depth)&&(o={id:s.id,depth:i}),s.children.forEach(a=>r(a,i+1))};return e.forEach(s=>r(s,0)),o?o.id:null}const ti=Object.freeze(Object.defineProperty({__proto__:null,chaptersOf:Is,currentContents:Ms,parseTime:kt,rangeItemTarget:Ot,tableOfContents:Co},Symbol.toStringTag,{value:"Module"}));Oe(26,"components/Label/Label","@layer clover{.clover-label{text-wrap:balance}}");Oe(27,"components/Status/Status","@layer clover{.clover-status{margin:0;padding:var(--clover-space-m);color:var(--clover-color-primary-muted, #26292b)}.clover-status[data-status=loading]{display:flex}.clover-status[data-status=error] p{margin:0}.clover-status-detail{font-size:var(--clover-text-s)}}");const ni=()=>import("./controls-Dj2BybWb.mjs"),Ns=()=>import("./renderers-BMSWEFUR.mjs");function oi(e){Z(()=>()=>e==null?void 0:e(null),[e])}function $s(e,t,n){const o=()=>e.store.get();return{get state(){return o()},subscribe(r){return e.store.subscribe(()=>r(o()))},get language(){return t()},status(){const{status:r,error:s}=o();return{status:r,error:s}},manifest(){return o().manifest},sequence(){return z(o().manifest)},visibleCanvases(){return Ue(o().manifest,o().canvasId)},activeCanvas(){return Me(o().manifest,o().canvasId)},navigation(){const{manifest:r,canvasId:s}=o();return vs(e,Ve(r,s),z(r).views.length)},annotationSets(){return ze(o().manifest,o().addedSets)},contents(){return Co(o().manifest)},localize(r){return fo(r,t())},t(r,s){return U.t(r,s,B)},langOf(r){return U.langOf(r,n(),B)},oneOpen(r){return Ps(r)}}}function As(e,t,n){return Object.defineProperties(Object.create(e),Object.getOwnPropertyDescriptors($s(e,t,n)))}const Ts=Ie(null);function Rs({hosted:e,props:t,children:n}){const o=Es(Ns,!!t.renderers);return!t.iiifContent||t.renderers&&!o?null:N(Ls,{element:e.element,props:t,toRenderers:o==null?void 0:o.toRenderers,children:n})}function Ls({element:e,props:t,toRenderers:n,children:o}){const{canvasId:r,manifestId:s,lang:i,onReady:a,renderers:l,...u}=t,f=Nr(void 0,i);f.ref(e);const c=ce(()=>n==null?void 0:n(l),[n,l]),[p,d]=bs({...u,defaultCanvasId:r,defaultManifestId:s,renderers:c}),{clover:g,language:O}=p,k=L({language:O,host:f.hostLanguage});k.current={language:O,host:f.hostLanguage};const b=ce(()=>As(g,()=>k.current.language,()=>k.current.host),[g]);return Z(()=>(a==null||a(b),()=>a==null?void 0:a(null)),[b,a]),wn(g,r,y=>g.goTo(y)),wn(g,s,y=>void g.goToManifest(y)),Z(()=>(e.classList.add("clover-root"),()=>e.classList.remove("clover-root")),[e]),Z(()=>{e.setAttribute("data-status",d)},[e,d]),Z(()=>()=>e.removeAttribute("data-status"),[e]),N(We.Provider,{value:p,children:N(St.Provider,{value:f.hostLanguage,children:N(Ts.Provider,{value:b,children:[o,yt(N(gs,{clover:g,language:O}),e)]})})})}function wn(e,t,n){const o=L(t);$(()=>{t&&t!==o.current&&n(t),o.current=t},[e,t])}const ri=Object.freeze(Object.defineProperty({__proto__:null,RootElement:Rs},Symbol.toStringTag,{value:"Module"}));export{yt as $,L as A,kt as B,ie as C,Bo as D,z as E,Xr as F,Pn as G,yo as H,Js as I,qs as J,Bs as K,Ve as L,Nr as M,St as N,Pr as O,He as P,Ie as Q,Fs as R,Co as S,ce as T,Ms as U,Kr as V,po as W,Ys as X,zs as Y,Me as Z,Z as _,co as a,Ws as a0,Cr as a1,Ar as a2,uo as a3,ei as a4,vs as a5,bs as a6,gs as a7,We as a8,Ks as a9,Gr as aa,Is as ab,Gs as ac,xr as ad,ve as ae,_s as af,vo as ag,Re as ah,Ts as ai,cs as aj,Fr as ak,lo as al,qr as am,ee as an,ls as ao,Ds as ap,js as aq,ti as ar,ri as as,hr as b,Es as c,re as d,oi as e,ni as f,Ir as g,Qs as h,Vs as i,P as j,q as k,Ns as l,Or as m,Be as n,fo as o,Xs as p,pe as q,Ue as r,Zs as s,mo as t,N as u,ms as v,Ge as w,se as x,$ as y,qo as z};
@@ -1 +1 @@
1
- import{E as n}from"./shared-J3w3gnXD.mjs";function f(a,e){const s=a.store.get().manifest;if(e.canvasId&&n(s).canvases.some(t=>t.id===e.canvasId))a.goTo(e.canvasId);else if(e.manifestId&&e.manifestId!==(s==null?void 0:s.id))a.goToManifest(e.manifestId,e.canvasId);else return false;return true}export{f as s};
1
+ import{E as n}from"./shared-YUjOSBKO.mjs";function f(a,e){const s=a.store.get().manifest;if(e.canvasId&&n(s).canvases.some(t=>t.id===e.canvasId))a.goTo(e.canvasId);else if(e.manifestId&&e.manifestId!==(s==null?void 0:s.id))a.goToManifest(e.manifestId,e.canvasId);else return false;return true}export{f as s};
@@ -1 +1 @@
1
- import{i as l}from"./imageService-C3yg9DxB.mjs";function s(t,g,e){const a=(h,d)=>Math.min(Math.max(Math.round(h),0),d),m=e?a(e.x*t.width,t.width-1):0,w=e?a(e.y*t.height,t.height-1):0,i={x:m,y:w,width:e?Math.max(1,a(e.width*t.width,t.width-m)):t.width,height:e?Math.max(1,a(e.height*t.height,t.height-w)):t.height},x=i.width===t.width&&i.height===t.height;if(!x&&!t.regionByPx)return null;if(t.sizeByW){let h=Math.min(1,g/Math.max(i.width,i.height));return t.maxWidth&&(h=Math.min(h,t.maxWidth/i.width)),t.maxHeight&&(h=Math.min(h,t.maxHeight/i.height)),t.maxArea&&(h=Math.min(h,Math.sqrt(t.maxArea/(i.width*i.height)))),l(t,i,Math.max(1,Math.floor(i.width*h)),Math.max(1,Math.floor(i.height*h)))}if(!x)return null;const M=[...t.sizes].sort((h,d)=>h.width-d.width),r=M.find(h=>Math.max(h.width,h.height)>=g)??M.at(-1)??{width:t.width,height:t.height};return l(t,i,r.width,r.height)}export{s};
1
+ import{i as l}from"./imageService-dsdmcegU.mjs";function s(t,g,e){const a=(h,d)=>Math.min(Math.max(Math.round(h),0),d),m=e?a(e.x*t.width,t.width-1):0,w=e?a(e.y*t.height,t.height-1):0,i={x:m,y:w,width:e?Math.max(1,a(e.width*t.width,t.width-m)):t.width,height:e?Math.max(1,a(e.height*t.height,t.height-w)):t.height},x=i.width===t.width&&i.height===t.height;if(!x&&!t.regionByPx)return null;if(t.sizeByW){let h=Math.min(1,g/Math.max(i.width,i.height));return t.maxWidth&&(h=Math.min(h,t.maxWidth/i.width)),t.maxHeight&&(h=Math.min(h,t.maxHeight/i.height)),t.maxArea&&(h=Math.min(h,Math.sqrt(t.maxArea/(i.width*i.height)))),l(t,i,Math.max(1,Math.floor(i.width*h)),Math.max(1,Math.floor(i.height*h)))}if(!x)return null;const M=[...t.sizes].sort((h,d)=>h.width-d.width),r=M.find(h=>Math.max(h.width,h.height)>=g)??M.at(-1)??{width:t.width,height:t.height};return l(t,i,r.width,r.height)}export{s};
@@ -1 +1 @@
1
- var R=Object.defineProperty;var C=(n,e,t)=>e in n?R(n,e,{enumerable:true,configurable:true,writable:true,value:t}):n[e]=t;var w=(n,e,t)=>C(n,typeof e!="symbol"?e+"":e,t);import{_ as p,C as H,a as B,d as F,A as Z,u as _}from"./shared-J3w3gnXD.mjs";import{r as M,w as $,c as A,l as q,t as G,n as j,h as D,a as J}from"./splitting-BnQUxxgH.mjs";import{T as Q}from"./Tip-C8J3qsIK.mjs";import"./styles-Ypl9KrSK.mjs";class U{constructor(e){w(this,"sizes");w(this,"listeners",new Set);w(this,"subscribe",e2=>(this.listeners.add(e2),()=>{this.listeners.delete(e2)}));this.storageKey=e,this.sizes=M(e)}keyed(e){e!==this.storageKey&&(this.storageKey=e,this.sizes=M(e),this.listeners.forEach(t=>t()))}set(e,t){const o={...this.sizes};t===void 0?delete o[e]:o[e]=Math.round(t),this.sizes=o,$(this.storageKey,o),this.listeners.forEach(l=>l())}}const P=new WeakMap;function S(n){let e=P.get(n);return e||(e=new U(n.getAttribute("storage-key")??void 0),P.set(n,e)),e}const V={},X=()=>()=>{},N=n=>{var e;return((e=n.parentElement)==null?void 0:e.localName)==="clover-split"?n.parentElement:null},v=n=>n==null||n.trim()===""?void 0:/^\d+(\.\d+)?$/.test(n.trim())?Number(n):n.trim();function W(n){const e={};for(const t of T(n))e[t.dataset.splitKey??""]={size:v(t.getAttribute("size")),min:v(t.getAttribute("min")),max:v(t.getAttribute("max"))};return e}const T=n=>[...n.children].filter(e=>e.localName==="clover-split-pane");function ie({hosted:n,props:e}){const t=n.element;return p(()=>(t.classList.add("clover-split"),()=>t.classList.remove("clover-split")),[t]),p(()=>{S(t).keyed(e.storageKey)},[t,e.storageKey]),null}function re({hosted:n,props:e}){const t=n.element,o=N(t),l=o?S(o):null,f=H((l==null?void 0:l.subscribe)??X,()=>(l==null?void 0:l.sizes)??V),h=v(e.size),i=v(e.min),c=v(e.max),u=e.name||String(o?T(o).indexOf(t):0),a=f[u];return p(()=>(t.classList.add("clover-split-pane"),()=>t.classList.remove("clover-split-pane")),[t]),p(()=>{t.dataset.splitKey=u,t.toggleAttribute("data-sized",h!==void 0),t.style.minWidth=A(i)??"0";const g=a!==void 0?`${a}px`:A(h);g?t.style.setProperty("--clover-split-size",g):t.style.removeProperty("--clover-split-size");const d=A(c);d?t.style.setProperty("--clover-split-max",d):t.style.removeProperty("--clover-split-max")},[t,u,h,i,c,a]),null}const K=new WeakMap;function oe({hosted:n}){const e=n.element,{t,langOf:o}=B(),[l]=F(()=>{const i=e.getAttribute("aria-label");return i!==null&&i!==K.get(e)?i:null}),f=l??t("splitHandle");p(()=>(e.classList.add("clover-split-handle"),e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical"),e.hasAttribute("tabindex")||(e.tabIndex=0),()=>e.classList.remove("clover-split-handle")),[e]),p(()=>{if(l)return;e.setAttribute("aria-label",f),K.set(e,f);const i=o("splitHandle");i?e.setAttribute("lang",i):e.removeAttribute("lang")},[e,l,f,o]);const h=Z(null);return p(()=>{const i=N(e);if(!i)return;const c=S(i),y=s=>Math.round(s/(i.clientWidth||1)*100),u=(s,r)=>{e.setAttribute("aria-valuenow",String(y(s))),e.setAttribute("aria-valuemin",String(y(r.min))),e.setAttribute("aria-valuemax",String(y(r.max)))},a=()=>q(e,i,W(i)),g=s=>{const r=a();if(!r)return;const z=Math.min(r.max,Math.max(r.min,s));c.set(r.key,z),u(z,r)};h.current={limits:a,resize:g,step:()=>{var L;const s=a();if(!s)return;const r=G((L=W(i)[s.key])==null?void 0:L.size,i.clientWidth),z=j(s,r,c.sizes[s.key]);if(!z.own)return g(z.to);c.set(s.key,void 0),u(r,s)}};const d=()=>{const s=a();s&&u(s.sized.getBoundingClientRect().width,s)};d();const b=typeof ResizeObserver>"u"?null:new ResizeObserver(d);b==null||b.observe(i);const I=c.subscribe(()=>requestAnimationFrame(d));let x=false;const k=()=>{var r;const s=!!((r=J(e).sized)!=null&&r.hidden);s&&!e.hidden?e.hidden=x=true:!s&&x&&(x=false,e.hidden=false)};k();const E=new MutationObserver(()=>{k(),d()});E.observe(i,{attributes:true,subtree:true,attributeFilter:["hidden","data-sized"]});const m=D(()=>e,()=>h.current),O=[["pointerdown",s=>m.down(s)],["pointermove",s=>m.move(s)],["pointerup",s=>m.up(s)],["pointercancel",s=>m.up(s)],["click",s=>m.click(s)],["keydown",s=>m.key(s)]];for(const[s,r]of O)e.addEventListener(s,r);return()=>{for(const[s,r]of O)e.removeEventListener(s,r);m.dispose(),b==null||b.disconnect(),E.disconnect(),I()}},[e]),_(Q,{label:f})}export{ie as SplitElement,oe as SplitHandleElement,re as SplitPaneElement};
1
+ var R=Object.defineProperty;var C=(n,e,t)=>e in n?R(n,e,{enumerable:true,configurable:true,writable:true,value:t}):n[e]=t;var w=(n,e,t)=>C(n,typeof e!="symbol"?e+"":e,t);import{_ as p,C as H,a as B,d as F,A as Z,u as _}from"./shared-YUjOSBKO.mjs";import{r as M,w as $,c as A,l as q,t as G,n as j,h as D,a as J}from"./splitting-BnQUxxgH.mjs";import{T as Q}from"./Tip-IO11xX4x.mjs";import"./styles-CyuM_fB1.mjs";class U{constructor(e){w(this,"sizes");w(this,"listeners",new Set);w(this,"subscribe",e2=>(this.listeners.add(e2),()=>{this.listeners.delete(e2)}));this.storageKey=e,this.sizes=M(e)}keyed(e){e!==this.storageKey&&(this.storageKey=e,this.sizes=M(e),this.listeners.forEach(t=>t()))}set(e,t){const o={...this.sizes};t===void 0?delete o[e]:o[e]=Math.round(t),this.sizes=o,$(this.storageKey,o),this.listeners.forEach(l=>l())}}const P=new WeakMap;function S(n){let e=P.get(n);return e||(e=new U(n.getAttribute("storage-key")??void 0),P.set(n,e)),e}const V={},X=()=>()=>{},N=n=>{var e;return((e=n.parentElement)==null?void 0:e.localName)==="clover-split"?n.parentElement:null},v=n=>n==null||n.trim()===""?void 0:/^\d+(\.\d+)?$/.test(n.trim())?Number(n):n.trim();function W(n){const e={};for(const t of T(n))e[t.dataset.splitKey??""]={size:v(t.getAttribute("size")),min:v(t.getAttribute("min")),max:v(t.getAttribute("max"))};return e}const T=n=>[...n.children].filter(e=>e.localName==="clover-split-pane");function ie({hosted:n,props:e}){const t=n.element;return p(()=>(t.classList.add("clover-split"),()=>t.classList.remove("clover-split")),[t]),p(()=>{S(t).keyed(e.storageKey)},[t,e.storageKey]),null}function re({hosted:n,props:e}){const t=n.element,o=N(t),l=o?S(o):null,f=H((l==null?void 0:l.subscribe)??X,()=>(l==null?void 0:l.sizes)??V),h=v(e.size),i=v(e.min),c=v(e.max),u=e.name||String(o?T(o).indexOf(t):0),a=f[u];return p(()=>(t.classList.add("clover-split-pane"),()=>t.classList.remove("clover-split-pane")),[t]),p(()=>{t.dataset.splitKey=u,t.toggleAttribute("data-sized",h!==void 0),t.style.minWidth=A(i)??"0";const g=a!==void 0?`${a}px`:A(h);g?t.style.setProperty("--clover-split-size",g):t.style.removeProperty("--clover-split-size");const d=A(c);d?t.style.setProperty("--clover-split-max",d):t.style.removeProperty("--clover-split-max")},[t,u,h,i,c,a]),null}const K=new WeakMap;function oe({hosted:n}){const e=n.element,{t,langOf:o}=B(),[l]=F(()=>{const i=e.getAttribute("aria-label");return i!==null&&i!==K.get(e)?i:null}),f=l??t("splitHandle");p(()=>(e.classList.add("clover-split-handle"),e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical"),e.hasAttribute("tabindex")||(e.tabIndex=0),()=>e.classList.remove("clover-split-handle")),[e]),p(()=>{if(l)return;e.setAttribute("aria-label",f),K.set(e,f);const i=o("splitHandle");i?e.setAttribute("lang",i):e.removeAttribute("lang")},[e,l,f,o]);const h=Z(null);return p(()=>{const i=N(e);if(!i)return;const c=S(i),y=s=>Math.round(s/(i.clientWidth||1)*100),u=(s,r)=>{e.setAttribute("aria-valuenow",String(y(s))),e.setAttribute("aria-valuemin",String(y(r.min))),e.setAttribute("aria-valuemax",String(y(r.max)))},a=()=>q(e,i,W(i)),g=s=>{const r=a();if(!r)return;const z=Math.min(r.max,Math.max(r.min,s));c.set(r.key,z),u(z,r)};h.current={limits:a,resize:g,step:()=>{var L;const s=a();if(!s)return;const r=G((L=W(i)[s.key])==null?void 0:L.size,i.clientWidth),z=j(s,r,c.sizes[s.key]);if(!z.own)return g(z.to);c.set(s.key,void 0),u(r,s)}};const d=()=>{const s=a();s&&u(s.sized.getBoundingClientRect().width,s)};d();const b=typeof ResizeObserver>"u"?null:new ResizeObserver(d);b==null||b.observe(i);const I=c.subscribe(()=>requestAnimationFrame(d));let x=false;const k=()=>{var r;const s=!!((r=J(e).sized)!=null&&r.hidden);s&&!e.hidden?e.hidden=x=true:!s&&x&&(x=false,e.hidden=false)};k();const E=new MutationObserver(()=>{k(),d()});E.observe(i,{attributes:true,subtree:true,attributeFilter:["hidden","data-sized"]});const m=D(()=>e,()=>h.current),O=[["pointerdown",s=>m.down(s)],["pointermove",s=>m.move(s)],["pointerup",s=>m.up(s)],["pointercancel",s=>m.up(s)],["click",s=>m.click(s)],["keydown",s=>m.key(s)]];for(const[s,r]of O)e.addEventListener(s,r);return()=>{for(const[s,r]of O)e.removeEventListener(s,r);m.dispose(),b==null||b.disconnect(),E.disconnect(),I()}},[e]),_(Q,{label:f})}export{ie as SplitElement,oe as SplitHandleElement,re as SplitPaneElement};
@@ -1 +1 @@
1
- import{u as o}from"./shared-J3w3gnXD.mjs";import{S as m}from"./Status-Cs5ZvFvL.mjs";import{a,C as i}from"./nodes-Bf-Fb7e5.mjs";function u({hosted:r,props:t}){const e=a(r.element,"loading"),n=a(r.element,"error");return o(m,{...t,loading:e?o(i,{of:e}):t.loading,error:n?()=>o(i,{of:n}):void 0})}export{u as StatusElement};
1
+ import{u as o}from"./shared-YUjOSBKO.mjs";import{S as m}from"./Status-YbQK2KzY.mjs";import{a,C as i}from"./nodes-B7JRwBgl.mjs";function u({hosted:r,props:t}){const e=a(r.element,"loading"),n=a(r.element,"error");return o(m,{...t,loading:e?o(i,{of:e}):t.loading,error:n?()=>o(i,{of:n}):void 0})}export{u as StatusElement};