@ankhorage/zora 23.4.2 → 24.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/constants/authoring.d.ts +3 -3
  4. package/dist/constants/authoring.d.ts.map +1 -1
  5. package/dist/constants/authoring.js +1 -1
  6. package/dist/constants/authoring.js.map +1 -1
  7. package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
  8. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  9. package/dist/features/card/cardMeta.d.ts +1 -1
  10. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  11. package/dist/features/card/postCardMeta.d.ts +1 -1
  12. package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
  13. package/dist/features/dialog/dialogMeta.d.ts +2 -2
  14. package/dist/features/gradient/gradientMeta.d.ts +1 -1
  15. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  16. package/dist/features/layout/gridMeta.d.ts +1 -1
  17. package/dist/features/layout/screenMeta.d.ts +1 -1
  18. package/dist/features/layout/scrollViewMeta.d.ts +1 -1
  19. package/dist/features/layout/viewMeta.d.ts +1 -1
  20. package/dist/features/list/flatListMeta.d.ts +1 -1
  21. package/dist/features/list/sectionListMeta.d.ts +1 -1
  22. package/dist/features/reader/adapters/inbound/Reader.d.ts +9 -0
  23. package/dist/features/reader/adapters/inbound/Reader.d.ts.map +1 -0
  24. package/dist/features/reader/adapters/inbound/{ReaderSurface.js → Reader.js} +33 -9
  25. package/dist/features/reader/adapters/inbound/Reader.js.map +1 -0
  26. package/dist/features/reader/composition/useReaderController.d.ts +24 -0
  27. package/dist/features/reader/composition/useReaderController.d.ts.map +1 -0
  28. package/dist/features/reader/composition/useReaderController.js +73 -0
  29. package/dist/features/reader/composition/useReaderController.js.map +1 -0
  30. package/dist/features/reader/meta.d.ts +5 -9
  31. package/dist/features/reader/meta.d.ts.map +1 -1
  32. package/dist/features/reader/meta.js +3 -7
  33. package/dist/features/reader/meta.js.map +1 -1
  34. package/dist/features/reader/public.d.ts +2 -2
  35. package/dist/features/reader/public.d.ts.map +1 -1
  36. package/dist/features/reader/public.js +1 -1
  37. package/dist/features/reader/public.js.map +1 -1
  38. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +2 -2
  39. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -1
  40. package/dist/features/registry/bindableComponentMeta.d.ts +5 -9
  41. package/dist/features/registry/bindableComponentMeta.d.ts.map +1 -1
  42. package/dist/features/registry/bindableComponentMeta.js +4 -4
  43. package/dist/features/registry/bindableComponentMeta.js.map +1 -1
  44. package/dist/features/registry/componentMeta.js +2 -2
  45. package/dist/features/registry/componentMeta.js.map +1 -1
  46. package/dist/features/scanner/meta.d.ts +2 -2
  47. package/dist/features/section/screenSectionMeta.d.ts +1 -1
  48. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  49. package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
  50. package/dist/index.d.ts +2 -2
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +1 -1
  53. package/dist/index.js.map +1 -1
  54. package/dist/types/reader.d.ts +3 -21
  55. package/dist/types/reader.d.ts.map +1 -1
  56. package/dist/types/reader.js.map +1 -1
  57. package/package.json +6 -5
  58. package/src/constants/authoring.ts +1 -1
  59. package/src/features/reader/adapters/inbound/{ReaderSurface.test.ts → Reader.test.ts} +6 -5
  60. package/src/features/reader/adapters/inbound/{ReaderSurface.tsx → Reader.tsx} +67 -33
  61. package/src/features/reader/composition/useReaderController.ts +110 -0
  62. package/src/features/reader/meta.ts +3 -8
  63. package/src/features/reader/public.ts +2 -2
  64. package/src/features/reader/utils/resolveReaderProgress.test.ts +1 -1
  65. package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +2 -2
  66. package/src/features/registry/bindableComponentMeta.test.ts +2 -2
  67. package/src/features/registry/bindableComponentMeta.ts +4 -4
  68. package/src/features/registry/componentMeta.test.ts +5 -5
  69. package/src/features/registry/componentMeta.ts +2 -2
  70. package/src/index.ts +2 -2
  71. package/src/interactionPolicy.test.ts +3 -3
  72. package/src/showcaseCoverage.test.ts +1 -1
  73. package/src/types/reader.ts +16 -29
  74. package/web-dist/chunks/{Accordion-ct805sm7.js → Accordion-0acrkcyd.js} +3 -3
  75. package/web-dist/chunks/{Accordion-m4brcz8v.js → Accordion-122fdtp0.js} +6 -6
  76. package/web-dist/chunks/{Accordion-6xrse5my.js → Accordion-1dah5bqg.js} +1 -1
  77. package/web-dist/chunks/{Accordion-yae3m7g7.js → Accordion-2afa2z5x.js} +4 -4
  78. package/web-dist/chunks/{Accordion-0047zyx7.js → Accordion-2bsecqwf.js} +4 -4
  79. package/web-dist/chunks/{Accordion-basd2gyf.js → Accordion-2csc57rv.js} +2 -2
  80. package/web-dist/chunks/{Accordion-73x0gt11.js → Accordion-2d3hbryv.js} +7 -7
  81. package/web-dist/chunks/{Accordion-8fne0gf9.js → Accordion-2q6p67xe.js} +5 -5
  82. package/web-dist/chunks/{Accordion-axxgq453.js → Accordion-3f5vnfk8.js} +7 -7
  83. package/web-dist/chunks/{Accordion-gkx1kszz.js → Accordion-3hg1wprb.js} +2 -2
  84. package/web-dist/chunks/{Accordion-d24n7srd.js → Accordion-3rv8psbv.js} +4 -4
  85. package/web-dist/chunks/{Accordion-8z7naxj2.js → Accordion-74rt38d4.js} +1 -1
  86. package/web-dist/chunks/{Accordion-2dqpjya2.js → Accordion-7bb37pdc.js} +7 -7
  87. package/web-dist/chunks/{Accordion-adc7k14q.js → Accordion-7q1qf7c0.js} +5 -5
  88. package/web-dist/chunks/{Accordion-zgzrah0a.js → Accordion-7rvtpcwt.js} +6 -6
  89. package/web-dist/chunks/{Accordion-a1ervhyg.js → Accordion-9rhbc32v.js} +14 -14
  90. package/web-dist/chunks/{Accordion-37n4bt3g.js → Accordion-ae7m1dkn.js} +2 -2
  91. package/web-dist/chunks/{Accordion-ekjwm5dw.js → Accordion-ansfkmye.js} +4 -4
  92. package/web-dist/chunks/{Accordion-qyssgtwe.js → Accordion-apwk2wjr.js} +2 -2
  93. package/web-dist/chunks/{Accordion-vjgk1sz7.js → Accordion-avnt7nkz.js} +2 -2
  94. package/web-dist/chunks/{Accordion-wxbh98kp.js → Accordion-brt4drx3.js} +9 -9
  95. package/web-dist/chunks/{Accordion-6ytrt7xj.js → Accordion-cs8k948c.js} +6 -6
  96. package/web-dist/chunks/{Accordion-693gvpde.js → Accordion-egq42kdy.js} +4 -4
  97. package/web-dist/chunks/{Accordion-8bxy3g7a.js → Accordion-fvkwq99h.js} +4 -4
  98. package/web-dist/chunks/{Accordion-mbqtk7y0.js → Accordion-g0c439br.js} +2 -2
  99. package/web-dist/chunks/{Accordion-3m6de80j.js → Accordion-h46676ex.js} +2 -2
  100. package/web-dist/chunks/{Accordion-7y9wt946.js → Accordion-hwd5ntgm.js} +2 -2
  101. package/web-dist/chunks/{Accordion-k6dg8zd2.js → Accordion-jdwwf626.js} +3 -3
  102. package/web-dist/chunks/{Accordion-q9zge7kd.js → Accordion-jkhq422b.js} +2 -2
  103. package/web-dist/chunks/{Accordion-p0fh69qq.js → Accordion-jtrpmvzs.js} +6 -6
  104. package/web-dist/chunks/{Accordion-tdjh81ax.js → Accordion-k8tfv274.js} +6 -6
  105. package/web-dist/chunks/{Accordion-1xpq9bxk.js → Accordion-kcwdwd5z.js} +8 -8
  106. package/web-dist/chunks/{Accordion-v4n4ygwn.js → Accordion-kpap0trj.js} +1 -1
  107. package/web-dist/chunks/{Accordion-rmp9sfra.js → Accordion-kpxyryke.js} +2 -2
  108. package/web-dist/chunks/{Accordion-wgesygtk.js → Accordion-mdc214tk.js} +11 -11
  109. package/web-dist/chunks/{Accordion-nkd7nhyx.js → Accordion-nanvzve9.js} +5 -5
  110. package/web-dist/chunks/{Accordion-ph15h010.js → Accordion-nay7yexy.js} +11 -11
  111. package/web-dist/chunks/{Accordion-9qvmwkxe.js → Accordion-nh0cs9hq.js} +31 -1
  112. package/web-dist/chunks/{Accordion-snyacfyh.js → Accordion-nj9g6p48.js} +9 -9
  113. package/web-dist/chunks/{Accordion-dbxpv5eq.js → Accordion-q1mnv5g8.js} +4 -4
  114. package/web-dist/chunks/{Accordion-1e1nfhtc.js → Accordion-qj4qxx1p.js} +6 -6
  115. package/web-dist/chunks/{Accordion-bz2dzbad.js → Accordion-qsxx5q34.js} +10 -10
  116. package/web-dist/chunks/{Accordion-ancjf7q8.js → Accordion-rg763dfb.js} +4 -4
  117. package/web-dist/chunks/{Accordion-g2d4fskg.js → Accordion-rkt7qdmj.js} +2 -2
  118. package/web-dist/chunks/{Accordion-pvz3r99n.js → Accordion-sek2q4r1.js} +1 -1
  119. package/web-dist/chunks/{Accordion-0yhkg017.js → Accordion-sxfqnnx6.js} +10 -10
  120. package/web-dist/chunks/{Accordion-wytj5wwc.js → Accordion-sxzax4x4.js} +4 -4
  121. package/web-dist/chunks/{Accordion-e2kr1z3g.js → Accordion-t3hm5tcv.js} +6 -6
  122. package/web-dist/chunks/{Accordion-0yvepteg.js → Accordion-vewrj1kr.js} +6 -6
  123. package/web-dist/chunks/Accordion-vgkvvdvg.js +4295 -0
  124. package/web-dist/chunks/{Accordion-kxa15n19.js → Accordion-x3tphbvw.js} +1 -1
  125. package/web-dist/chunks/{Accordion-ebw6xj6x.js → Accordion-x5v1p4df.js} +5 -5
  126. package/web-dist/chunks/{Accordion-70g7n6tk.js → Accordion-y2eyyqrk.js} +9 -9
  127. package/web-dist/chunks/ReadiumCSS-after.css-2389epxb.js +477 -0
  128. package/web-dist/chunks/ReadiumCSS-after.css-8se5z2w3.js +492 -0
  129. package/web-dist/chunks/ReadiumCSS-after.css-x15y26r7.js +532 -0
  130. package/web-dist/chunks/ReadiumCSS-after.css-z23c32jh.js +594 -0
  131. package/web-dist/chunks/ReadiumCSS-before.css-1t98py7y.js +531 -0
  132. package/web-dist/chunks/ReadiumCSS-before.css-hszzyv5p.js +531 -0
  133. package/web-dist/chunks/ReadiumCSS-before.css-mjvegqjq.js +532 -0
  134. package/web-dist/chunks/ReadiumCSS-before.css-pnpxcrwx.js +531 -0
  135. package/web-dist/chunks/ReadiumCSS-default.css-8gxjy9na.js +185 -0
  136. package/web-dist/chunks/ReadiumCSS-default.css-m8ts96nj.js +182 -0
  137. package/web-dist/chunks/ReadiumCSS-default.css-rg94gstv.js +164 -0
  138. package/web-dist/chunks/ReadiumCSS-default.css-y8p5hk56.js +164 -0
  139. package/web-dist/chunks/ReadiumCSS-ebpaj_fonts_patch.css-50yy1az9.js +84 -0
  140. package/web-dist/chunks/zip-reader-f0yphjb9.js +103 -0
  141. package/web-dist/components/accordion/Accordion.js +12 -12
  142. package/web-dist/components/accordion-item/AccordionItem.js +12 -12
  143. package/web-dist/components/activity-indicator/ActivityIndicator.js +4 -4
  144. package/web-dist/components/app-bar/AppBar.js +19 -19
  145. package/web-dist/components/app-header/AppHeader.js +19 -19
  146. package/web-dist/components/app-shell/AppShell.js +6 -6
  147. package/web-dist/components/auth-screen/AuthScreen.js +21 -21
  148. package/web-dist/components/avatar/Avatar.js +12 -12
  149. package/web-dist/components/avatar-group/AvatarGroup.js +12 -12
  150. package/web-dist/components/badge/Badge.js +7 -7
  151. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +20 -20
  152. package/web-dist/components/bottom-sheet/BottomSheet.js +8 -8
  153. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +8 -8
  154. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +8 -8
  155. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +8 -8
  156. package/web-dist/components/bottom-sheet-view/BottomSheetView.js +8 -8
  157. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +8 -8
  158. package/web-dist/components/breadcrumbs/Breadcrumbs.js +14 -14
  159. package/web-dist/components/button/Button.js +12 -12
  160. package/web-dist/components/button-group/ButtonGroup.js +12 -12
  161. package/web-dist/components/camera-permission-view/CameraPermissionView.js +20 -20
  162. package/web-dist/components/card/Card.js +19 -19
  163. package/web-dist/components/card-back/CardBack.js +4 -4
  164. package/web-dist/components/card-hand/CardHand.js +4 -4
  165. package/web-dist/components/chat-list-item/ChatListItem.js +16 -16
  166. package/web-dist/components/checkbox/Checkbox.js +12 -12
  167. package/web-dist/components/checkbox-group/CheckboxGroup.js +12 -12
  168. package/web-dist/components/chess-board/ChessBoard.js +4 -4
  169. package/web-dist/components/chip/Chip.js +13 -13
  170. package/web-dist/components/chip-group/ChipGroup.js +13 -13
  171. package/web-dist/components/collection-editor/CollectionEditor.js +19 -19
  172. package/web-dist/components/content-rail/ContentRail.js +14 -14
  173. package/web-dist/components/data-table/DataTable.js +27 -27
  174. package/web-dist/components/date-picker/DatePicker.js +17 -17
  175. package/web-dist/components/dialog/Dialog.js +12 -12
  176. package/web-dist/components/divider/Divider.js +6 -6
  177. package/web-dist/components/empty-state/EmptyState.js +20 -20
  178. package/web-dist/components/field/Field.js +12 -12
  179. package/web-dist/components/flat-list/FlatList.js +13 -13
  180. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +21 -21
  181. package/web-dist/components/form/Form.js +16 -16
  182. package/web-dist/components/form-actions/FormActions.js +16 -16
  183. package/web-dist/components/form-error/FormError.js +16 -16
  184. package/web-dist/components/game/Game.js +7 -7
  185. package/web-dist/components/game-entity/GameEntity.js +7 -7
  186. package/web-dist/components/game-field/GameField.js +7 -7
  187. package/web-dist/components/game-input-zone/GameInputZone.js +7 -7
  188. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +7 -7
  189. package/web-dist/components/game-overlay/GameOverlay.js +7 -7
  190. package/web-dist/components/gradient/Gradient.js +7 -7
  191. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +7 -7
  192. package/web-dist/components/graph-view/GraphView.js +1 -1
  193. package/web-dist/components/grid/Grid.js +6 -6
  194. package/web-dist/components/heading/Heading.js +6 -6
  195. package/web-dist/components/hero/Hero.js +19 -19
  196. package/web-dist/components/icon/Icon.js +4 -4
  197. package/web-dist/components/icon-button/IconButton.js +12 -12
  198. package/web-dist/components/image/Image.js +10 -10
  199. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +3 -3
  200. package/web-dist/components/list/List.js +13 -13
  201. package/web-dist/components/list-item/ListItem.js +13 -13
  202. package/web-dist/components/list-section/ListSection.js +13 -13
  203. package/web-dist/components/media-card/MediaCard.js +19 -19
  204. package/web-dist/components/message-bubble/MessageBubble.js +16 -16
  205. package/web-dist/components/metric-card/MetricCard.js +19 -19
  206. package/web-dist/components/missing-element/MissingElement.js +12 -12
  207. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +21 -21
  208. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +21 -21
  209. package/web-dist/components/opening-book/OpeningBook.js +4 -4
  210. package/web-dist/components/otp-form/OtpForm.js +21 -21
  211. package/web-dist/components/pagination/Pagination.js +13 -13
  212. package/web-dist/components/palette-item/PaletteItem.js +19 -19
  213. package/web-dist/components/playing-card/PlayingCard.js +4 -4
  214. package/web-dist/components/poker-training-table/PokerTrainingTable.js +4 -4
  215. package/web-dist/components/popover-menu/PopoverMenu.js +14 -14
  216. package/web-dist/components/post-card/PostCard.js +19 -19
  217. package/web-dist/components/product-card/ProductCard.js +19 -19
  218. package/web-dist/components/progress/Progress.js +10 -10
  219. package/web-dist/components/progress-ring/ProgressRing.js +10 -10
  220. package/web-dist/components/radio/Radio.js +14 -14
  221. package/web-dist/components/radio-group/RadioGroup.js +14 -14
  222. package/web-dist/components/rating/Rating.js +9 -9
  223. package/web-dist/components/reader/Reader.d.ts +3 -0
  224. package/web-dist/components/reader/Reader.js +38562 -0
  225. package/web-dist/components/reader/index.d.ts +1 -0
  226. package/web-dist/components/reader/index.js +2 -0
  227. package/web-dist/components/scan-overlay/ScanOverlay.js +20 -20
  228. package/web-dist/components/screen/Screen.js +6 -6
  229. package/web-dist/components/screen-section/ScreenSection.js +10 -10
  230. package/web-dist/components/scroll-view/ScrollView.js +6 -6
  231. package/web-dist/components/search-input/SearchInput.js +13 -13
  232. package/web-dist/components/section-header/SectionHeader.js +10 -10
  233. package/web-dist/components/section-list/SectionList.js +13 -13
  234. package/web-dist/components/select/Select.js +16 -16
  235. package/web-dist/components/selectable-item/SelectableItem.js +6 -6
  236. package/web-dist/components/selection-provider/SelectionProvider.js +6 -6
  237. package/web-dist/components/sign-in-form/SignInForm.js +21 -21
  238. package/web-dist/components/sign-up-form/SignUpForm.js +21 -21
  239. package/web-dist/components/skeleton/Skeleton.js +22 -22
  240. package/web-dist/components/skeleton-card/SkeletonCard.js +22 -22
  241. package/web-dist/components/skeleton-list/SkeletonList.js +22 -22
  242. package/web-dist/components/skeleton-text/SkeletonText.js +22 -22
  243. package/web-dist/components/surface/Surface.js +7 -7
  244. package/web-dist/components/switch/Switch.js +7 -7
  245. package/web-dist/components/tab/Tab.js +7 -7
  246. package/web-dist/components/tab-list/TabList.js +7 -7
  247. package/web-dist/components/tab-panel/TabPanel.js +7 -7
  248. package/web-dist/components/tabletop-table/TabletopTable.js +4 -4
  249. package/web-dist/components/tabs/Tabs.js +7 -7
  250. package/web-dist/components/text/Text.js +6 -6
  251. package/web-dist/components/text-input/TextInput.js +13 -13
  252. package/web-dist/components/time-picker/TimePicker.js +18 -18
  253. package/web-dist/components/timeline/Timeline.js +11 -11
  254. package/web-dist/components/toast/Toast.js +9 -9
  255. package/web-dist/components/toast-provider/ToastProvider.js +9 -9
  256. package/web-dist/components/toolbar/Toolbar.js +19 -19
  257. package/web-dist/components/tree-item/TreeItem.js +18 -18
  258. package/web-dist/components/uploader/Uploader.js +22 -22
  259. package/web-dist/components/view/View.js +6 -6
  260. package/web-dist/manifest.json +1615 -1601
  261. package/web-dist/runtime/ZoraProvider.js +9 -9
  262. package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts +0 -11
  263. package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts.map +0 -1
  264. package/dist/features/reader/adapters/inbound/ReaderSurface.js.map +0 -1
  265. package/web-dist/components/reader-surface/ReaderSurface.d.ts +0 -3
  266. package/web-dist/components/reader-surface/ReaderSurface.js +0 -360
  267. package/web-dist/components/reader-surface/index.d.ts +0 -1
  268. package/web-dist/components/reader-surface/index.js +0 -2
@@ -0,0 +1,532 @@
1
+ 'use client';
2
+ // node_modules/@readium/navigator/dist/node_modules/.pnpm/@readium_css@2.0.5/node_modules/@readium/css/css/dist/rtl/ReadiumCSS-after.css.js
3
+ var n = `/*!
4
+ * Readium CSS v.2.0.5
5
+ * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
6
+ * Use of this source code is governed by a BSD-style license which is detailed in the
7
+ * LICENSE file present in the project repository where this source code is maintained.
8
+ * Core maintainer: Jiminy Panoz <jiminy.panoz@edrlab.org>
9
+ * Contributors:
10
+ * Daniel Weck
11
+ * Hadrien Gardeur
12
+ * Innovimax
13
+ * L. Le Meur
14
+ * Mickaël Menu
15
+ * k_taka
16
+ */
17
+
18
+ @namespace url("http://www.w3.org/1999/xhtml");
19
+
20
+ @namespace epub url("http://www.idpf.org/2007/ops");
21
+
22
+ @namespace m url("http://www.w3.org/1998/Math/MathML");
23
+
24
+ @namespace svg url("http://www.w3.org/2000/svg");
25
+
26
+ :root{
27
+
28
+ --RS__viewportWidth:100%;
29
+
30
+ --RS__pageGutter:0;
31
+
32
+ --RS__defaultLineLength:100%;
33
+
34
+ --RS__colGap:0;
35
+
36
+ --RS__colCount:1;
37
+
38
+ --RS__colWidth:100vw;
39
+ }
40
+
41
+ @page{
42
+ margin:0 !important;
43
+ }
44
+
45
+ :root{
46
+ position:relative;
47
+
48
+ -webkit-column-width:var(--RS__colWidth);
49
+ -moz-column-width:var(--RS__colWidth);
50
+ column-width:var(--RS__colWidth);
51
+ -webkit-column-count:var(--RS__colCount);
52
+ -moz-column-count:var(--RS__colCount);
53
+ column-count:var(--RS__colCount);
54
+
55
+ -webkit-column-gap:var(--RS__colGap);
56
+ -moz-column-gap:var(--RS__colGap);
57
+ column-gap:var(--RS__colGap);
58
+ -moz-column-fill:auto;
59
+ column-fill:auto;
60
+ width:var(--RS__viewportWidth);
61
+ height:100vh;
62
+ max-width:var(--RS__viewportWidth);
63
+ max-height:100vh;
64
+ min-width:var(--RS__viewportWidth);
65
+ min-height:100vh;
66
+ padding:0 !important;
67
+ margin:0 !important;
68
+ font-size:1rem !important;
69
+ box-sizing:border-box;
70
+ -webkit-touch-callout:none;
71
+ }
72
+
73
+ body{
74
+ width:100%;
75
+ max-width:var(--RS__defaultLineLength) !important;
76
+ margin:0 auto !important;
77
+ box-sizing:border-box;
78
+ }
79
+
80
+ :root:not([style*="readium-scroll-on"]) body{
81
+ padding:0 var(--RS__pageGutter) !important;
82
+ }
83
+
84
+ :root:not([style*="readium-noOverflow-on"]) body{
85
+ overflow:hidden;
86
+ }
87
+
88
+ @supports (overflow: clip){
89
+
90
+ :root:not([style*="readium-noOverflow-on"]){
91
+ overflow:clip;
92
+ }
93
+
94
+ :root:not([style*="readium-noOverflow-on"]) body{
95
+ overflow:clip;
96
+ overflow-clip-margin:content-box;
97
+ }
98
+ }
99
+
100
+ :root[style*="readium-scroll-on"]{
101
+ -webkit-columns:auto auto !important;
102
+ -moz-columns:auto auto !important;
103
+ columns:auto auto !important;
104
+ width:auto !important;
105
+ height:auto !important;
106
+ max-width:none !important;
107
+ max-height:none !important;
108
+ min-width:0 !important;
109
+ min-height:0 !important;
110
+ }
111
+
112
+ :root[style*="readium-scroll-on"] body{
113
+ max-width:var(--RS__defaultLineLength) !important;
114
+ box-sizing:border-box !important;
115
+ }
116
+
117
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
118
+ overflow:auto;
119
+ }
120
+
121
+ @supports (overflow: clip){
122
+
123
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]){
124
+ overflow:auto;
125
+ }
126
+
127
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
128
+ overflow:clip;
129
+ }
130
+ }
131
+
132
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
133
+ padding-top:var(--RS__scrollPaddingTop) !important;
134
+ }
135
+
136
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
137
+ padding-bottom:var(--RS__scrollPaddingBottom) !important;
138
+ }
139
+
140
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
141
+ padding-left:var(--RS__scrollPaddingLeft) !important;
142
+ }
143
+
144
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
145
+ padding-right:var(--RS__scrollPaddingRight) !important;
146
+ }
147
+
148
+ :root[style*="--USER__backgroundColor"]{
149
+ background-color:var(--USER__backgroundColor) !important;
150
+ }
151
+
152
+ :root[style*="--USER__backgroundColor"] *{
153
+ background-color:transparent !important;
154
+ }
155
+
156
+ :root[style*="--USER__textColor"]{
157
+ color:var(--USER__textColor) !important;
158
+ }
159
+
160
+ :root[style*="--USER__textColor"] *:not(a){
161
+ color:inherit !important;
162
+ background-color:transparent !important;
163
+ border-color:currentcolor !important;
164
+ }
165
+
166
+ :root[style*="--USER__textColor"] svg text{
167
+ fill:currentcolor !important;
168
+ stroke:none !important;
169
+ }
170
+
171
+ :root[style*="--USER__linkColor"] a:link,
172
+ :root[style*="--USER__linkColor"] a:link *{
173
+ color:var(--USER__linkColor) !important;
174
+ }
175
+
176
+ :root[style*="--USER__visitedColor"] a:visited,
177
+ :root[style*="--USER__visitedColor"] a:visited *{
178
+ color:var(--USER__visitedColor) !important;
179
+ }
180
+
181
+ :root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::-moz-selection{
182
+ color:var(--USER__selectionTextColor) !important;
183
+ background-color:var(--USER__selectionBackgroundColor) !important;
184
+ }
185
+
186
+ :root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::selection{
187
+ color:var(--USER__selectionTextColor) !important;
188
+ background-color:var(--USER__selectionBackgroundColor) !important;
189
+ }
190
+
191
+ :root[style*="--USER__colCount"]{
192
+ -webkit-column-count:var(--USER__colCount);
193
+ -moz-column-count:var(--USER__colCount);
194
+ column-count:var(--USER__colCount);
195
+
196
+ --RS__colWidth:auto;
197
+ }
198
+
199
+ :root[style*="--USER__colCount: 0"],
200
+ :root[style*="--USER__colCount:0"]{
201
+ -webkit-column-count:1;
202
+ -moz-column-count:1;
203
+ column-count:1;
204
+ }
205
+
206
+ :root[style*="--USER__colCount: 0"],
207
+ :root[style*="--USER__colCount:0"],
208
+ :root[style*="--USER__colCount: 1"],
209
+ :root[style*="--USER__colCount:1"]{
210
+ --RS__colWidth:100vw;
211
+ }
212
+
213
+ :root[style*="--USER__lineLength"] body{
214
+ max-width:var(--USER__lineLength) !important;
215
+ }
216
+
217
+ :root[style*="--USER__textAlign"]{
218
+ text-align:var(--USER__textAlign);
219
+ }
220
+
221
+ :root[style*="--USER__textAlign"] body,
222
+ :root[style*="--USER__textAlign"] p:not(
223
+ blockquote p,
224
+ figcaption p,
225
+ header p,
226
+ hgroup p,
227
+ :root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
228
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
229
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
230
+ ),
231
+ :root[style*="--USER__textAlign"] li,
232
+ :root[style*="--USER__textAlign"] dd{
233
+ text-align:var(--USER__textAlign) !important;
234
+ -moz-text-align-last:auto !important;
235
+ -epub-text-align-last:auto !important;
236
+ text-align-last:auto !important;
237
+ }
238
+
239
+ :root[style*="--USER__fontFamily"]{
240
+ font-family:var(--USER__fontFamily) !important;
241
+ }
242
+
243
+ :root[style*="--USER__fontFamily"] *{
244
+ font-family:revert !important;
245
+ }
246
+
247
+ :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] body{
248
+ zoom:var(--USER__fontSize) !important;
249
+ }
250
+
251
+ :root:not([style*="readium-deprecatedFontSize-on"])[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{
252
+ -webkit-text-size-adjust:var(--USER__fontSize) !important;
253
+ }
254
+
255
+ @supports selector(figure:has(> img)){
256
+
257
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> img),
258
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> video),
259
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> svg),
260
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> canvas),
261
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> iframe),
262
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> audio),
263
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> img:only-child),
264
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> video:only-child),
265
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> svg:only-child),
266
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> canvas:only-child),
267
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> iframe:only-child),
268
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> audio:only-child),
269
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] table{
270
+ zoom:calc(100% / var(--USER__fontSize)) !important;
271
+ }
272
+
273
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figcaption,
274
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] caption,
275
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] td,
276
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] th{
277
+ zoom:var(--USER__fontSize) !important;
278
+ }
279
+ }
280
+
281
+ @supports not (zoom: 1){
282
+
283
+ :root[style*="--USER__fontSize"]{
284
+ font-size:var(--USER__fontSize) !important;
285
+ }
286
+ }
287
+
288
+ :root[style*="readium-deprecatedFontSize-on"][style*="--USER__fontSize"]{
289
+ font-size:var(--USER__fontSize) !important;
290
+ }
291
+
292
+ :root[style*="--USER__lineHeight"]{
293
+ line-height:var(--USER__lineHeight) !important;
294
+ }
295
+
296
+ :root[style*="--USER__lineHeight"] body,
297
+ :root[style*="--USER__lineHeight"] p,
298
+ :root[style*="--USER__lineHeight"] li,
299
+ :root[style*="--USER__lineHeight"] div{
300
+ line-height:var(--USER__lineHeight) !important;
301
+ }
302
+
303
+ :root[style*="--USER__paraSpacing"] p{
304
+ margin-top:var(--USER__paraSpacing) !important;
305
+ margin-bottom:var(--USER__paraSpacing) !important;
306
+ }
307
+
308
+ :root[style*="--USER__paraIndent"] p:not(
309
+ blockquote p,
310
+ figcaption p,
311
+ header p,
312
+ hgroup p,
313
+ :root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
314
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
315
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
316
+ ){
317
+ text-indent:var(--USER__paraIndent) !important;
318
+ }
319
+
320
+ :root[style*="--USER__paraIndent"] p *{
321
+ text-indent:0 !important;
322
+ }
323
+
324
+ :root[style*="--USER__wordSpacing"] h1,
325
+ :root[style*="--USER__wordSpacing"] h2,
326
+ :root[style*="--USER__wordSpacing"] h3,
327
+ :root[style*="--USER__wordSpacing"] h4,
328
+ :root[style*="--USER__wordSpacing"] h5,
329
+ :root[style*="--USER__wordSpacing"] h6,
330
+ :root[style*="--USER__wordSpacing"] p,
331
+ :root[style*="--USER__wordSpacing"] li,
332
+ :root[style*="--USER__wordSpacing"] div,
333
+ :root[style*="--USER__wordSpacing"] dt,
334
+ :root[style*="--USER__wordSpacing"] dd{
335
+ word-spacing:var(--USER__wordSpacing) !important;
336
+ }
337
+
338
+ :root[style*="--USER__ligatures"]{
339
+ font-variant-ligatures:var(--USER__ligatures) !important;
340
+ }
341
+
342
+ :root[style*="--USER__ligatures"] *{
343
+ font-variant-ligatures:inherit !important;
344
+ }
345
+
346
+ :root[style*="--USER__fontWeight"] body{
347
+ font-weight:var(--USER__fontWeight) !important;
348
+ }
349
+
350
+ :root[style*="--USER__fontWeight"] b,
351
+ :root[style*="--USER__fontWeight"] strong{
352
+ font-weight:bolder;
353
+ }
354
+
355
+ :root[style*="--USER__fontWidth"] body{
356
+ font-stretch:var(--USER__fontWidth) !important;
357
+ }
358
+
359
+ :root[style*="--USER__fontOpticalSizing"] body{
360
+ font-optical-sizing:var(--USER__fontOpticalSizing) !important;
361
+ }
362
+
363
+ :root[style*="readium-blend-on"] svg,
364
+ :root[style*="readium-blend-on"] img{
365
+ background-color:transparent !important;
366
+ mix-blend-mode:multiply !important;
367
+ }
368
+
369
+ :root[style*="--USER__darkenImages"] img{
370
+ -webkit-filter:brightness(var(--USER__darkenImages)) !important;
371
+ filter:brightness(var(--USER__darkenImages)) !important;
372
+ }
373
+
374
+ :root[style*="readium-darken-on"] img{
375
+ -webkit-filter:brightness(80%) !important;
376
+ filter:brightness(80%) !important;
377
+ }
378
+
379
+ :root[style*="--USER__invertImages"] img{
380
+ -webkit-filter:invert(var(--USER__invertImages)) !important;
381
+ filter:invert(var(--USER__invertImages)) !important;
382
+ }
383
+
384
+ :root[style*="readium-invert-on"] img{
385
+ -webkit-filter:invert(100%) !important;
386
+ filter:invert(100%) !important;
387
+ }
388
+
389
+ :root[style*="--USER__darkenImages"][style*="--USER__invertImages"] img{
390
+ -webkit-filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
391
+ filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
392
+ }
393
+
394
+ :root[style*="readium-darken-on"][style*="--USER__invertImages"] img{
395
+ -webkit-filter:brightness(80%) invert(var(--USER__invertImages)) !important;
396
+ filter:brightness(80%) invert(var(--USER__invertImages)) !important;
397
+ }
398
+
399
+ :root[style*="--USER__darkenImages"][style*="readium-invert-on"] img{
400
+ -webkit-filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
401
+ filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
402
+ }
403
+
404
+ :root[style*="readium-darken-on"][style*="readium-invert-on"] img{
405
+ -webkit-filter:brightness(80%) invert(100%) !important;
406
+ filter:brightness(80%) invert(100%) !important;
407
+ }
408
+
409
+ :root[style*="--USER__invertGaiji"] img[class*="gaiji"]{
410
+ -webkit-filter:invert(var(--USER__invertGaiji)) !important;
411
+ filter:invert(var(--USER__invertGaiji)) !important;
412
+ }
413
+
414
+ :root[style*="readium-invertGaiji-on"] img[class*="gaiji"]{
415
+ -webkit-filter:invert(100%) !important;
416
+ filter:invert(100%) !important;
417
+ }
418
+
419
+ :root[style*="readium-normalize-on"]{
420
+ --USER__typeScale:1.2;
421
+ }
422
+
423
+ :root[style*="readium-normalize-on"] p,
424
+ :root[style*="readium-normalize-on"] li,
425
+ :root[style*="readium-normalize-on"] div,
426
+ :root[style*="readium-normalize-on"] pre,
427
+ :root[style*="readium-normalize-on"] dd{
428
+ font-size:1rem !important;
429
+ }
430
+
431
+ :root[style*="readium-normalize-on"] h1{
432
+ font-size:1.75rem !important;
433
+ font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
434
+ }
435
+
436
+ :root[style*="readium-normalize-on"] h2{
437
+ font-size:1.5rem !important;
438
+ font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
439
+ }
440
+
441
+ :root[style*="readium-normalize-on"] h3{
442
+ font-size:1.25rem !important;
443
+ font-size:calc(1rem * var(--USER__typeScale)) !important;
444
+ }
445
+
446
+ :root[style*="readium-normalize-on"] h4,
447
+ :root[style*="readium-normalize-on"] h5,
448
+ :root[style*="readium-normalize-on"] h6{
449
+ font-size:1rem !important;
450
+ }
451
+
452
+ :root[style*="readium-normalize-on"] small{
453
+ font-size:smaller !important;
454
+ }
455
+
456
+ :root[style*="readium-normalize-on"] sub,
457
+ :root[style*="readium-normalize-on"] sup{
458
+ font-size:67.5% !important;
459
+ }
460
+
461
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h1{
462
+ font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
463
+ }
464
+
465
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h2{
466
+ font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
467
+ }
468
+
469
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h3{
470
+ font-size:calc(1rem * var(--USER__typeScale)) !important;
471
+ }
472
+
473
+ :root[style*="readium-iPadOSPatch-on"] body{
474
+ -webkit-text-size-adjust:none;
475
+ }
476
+
477
+ :root[style*="readium-iPadOSPatch-on"] p,
478
+ :root[style*="readium-iPadOSPatch-on"] h1,
479
+ :root[style*="readium-iPadOSPatch-on"] h2,
480
+ :root[style*="readium-iPadOSPatch-on"] h3,
481
+ :root[style*="readium-iPadOSPatch-on"] h4,
482
+ :root[style*="readium-iPadOSPatch-on"] h5,
483
+ :root[style*="readium-iPadOSPatch-on"] h6,
484
+ :root[style*="readium-iPadOSPatch-on"] li,
485
+ :root[style*="readium-iPadOSPatch-on"] th,
486
+ :root[style*="readium-iPadOSPatch-on"] td,
487
+ :root[style*="readium-iPadOSPatch-on"] dt,
488
+ :root[style*="readium-iPadOSPatch-on"] dd,
489
+ :root[style*="readium-iPadOSPatch-on"] pre,
490
+ :root[style*="readium-iPadOSPatch-on"] address,
491
+ :root[style*="readium-iPadOSPatch-on"] details,
492
+ :root[style*="readium-iPadOSPatch-on"] summary,
493
+ :root[style*="readium-iPadOSPatch-on"] figcaption,
494
+ :root[style*="readium-iPadOSPatch-on"] div:not(:has(p, h1, h2, h3, h4, h5, h6, li, th, td, dt, dd, pre, address, aside, details, figcaption, summary)),
495
+ :root[style*="readium-iPadOSPatch-on"] aside:not(:has(p, h1, h2, h3, h4, h5, h6, li, th, td, dt, dd, pre, address, aside, details, figcaption, summary)){
496
+ -webkit-text-zoom:reset;
497
+ }
498
+
499
+ :root[style*="readium-iPadOSPatch-on"] abbr,
500
+ :root[style*="readium-iPadOSPatch-on"] b,
501
+ :root[style*="readium-iPadOSPatch-on"] bdi,
502
+ :root[style*="readium-iPadOSPatch-on"] bdo,
503
+ :root[style*="readium-iPadOSPatch-on"] cite,
504
+ :root[style*="readium-iPadOSPatch-on"] code,
505
+ :root[style*="readium-iPadOSPatch-on"] dfn,
506
+ :root[style*="readium-iPadOSPatch-on"] em,
507
+ :root[style*="readium-iPadOSPatch-on"] i,
508
+ :root[style*="readium-iPadOSPatch-on"] kbd,
509
+ :root[style*="readium-iPadOSPatch-on"] mark,
510
+ :root[style*="readium-iPadOSPatch-on"] q,
511
+ :root[style*="readium-iPadOSPatch-on"] rp,
512
+ :root[style*="readium-iPadOSPatch-on"] rt,
513
+ :root[style*="readium-iPadOSPatch-on"] ruby,
514
+ :root[style*="readium-iPadOSPatch-on"] s,
515
+ :root[style*="readium-iPadOSPatch-on"] samp,
516
+ :root[style*="readium-iPadOSPatch-on"] small,
517
+ :root[style*="readium-iPadOSPatch-on"] span,
518
+ :root[style*="readium-iPadOSPatch-on"] strong,
519
+ :root[style*="readium-iPadOSPatch-on"] sub,
520
+ :root[style*="readium-iPadOSPatch-on"] sup,
521
+ :root[style*="readium-iPadOSPatch-on"] time,
522
+ :root[style*="readium-iPadOSPatch-on"] u,
523
+ :root[style*="readium-iPadOSPatch-on"] var{
524
+ -webkit-text-zoom:normal;
525
+ }
526
+
527
+ :root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
528
+ -webkit-text-zoom:normal;
529
+ }`;
530
+ export {
531
+ n as default
532
+ };