@yoyorast1337/navigator 2.4.0-beta.12

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 (192) hide show
  1. package/README.MD +11 -0
  2. package/dist/ReadiumCSS-after-B_e3a-PY.js +592 -0
  3. package/dist/ReadiumCSS-after-C-T_0paD.js +530 -0
  4. package/dist/ReadiumCSS-after-lr-n3fz2.js +475 -0
  5. package/dist/ReadiumCSS-after-mXeKKPap.js +490 -0
  6. package/dist/ReadiumCSS-before-Bjd3POej.js +426 -0
  7. package/dist/ReadiumCSS-before-CfXPAGaQ.js +425 -0
  8. package/dist/ReadiumCSS-before-CrNWvuyE.js +425 -0
  9. package/dist/ReadiumCSS-before-KVen5ceo.js +425 -0
  10. package/dist/ReadiumCSS-default-BKAG5pGU.js +162 -0
  11. package/dist/ReadiumCSS-default-C63bYOYF.js +183 -0
  12. package/dist/ReadiumCSS-default-CclvbeNC.js +162 -0
  13. package/dist/ReadiumCSS-default-DnlgDaBu.js +180 -0
  14. package/dist/ReadiumCSS-ebpaj_fonts_patch-Dt2XliTg.js +82 -0
  15. package/dist/ar-DyHX_uy2.js +7 -0
  16. package/dist/da-Dct0PS3E.js +7 -0
  17. package/dist/fr-C5HEel98.js +7 -0
  18. package/dist/index.js +10087 -0
  19. package/dist/index.umd.cjs +5133 -0
  20. package/dist/it-DFOBoXGy.js +7 -0
  21. package/dist/pt_PT-Di3sVjze.js +7 -0
  22. package/dist/sv-BfzAFsVN.js +7 -0
  23. package/package.json +66 -0
  24. package/src/Navigator.ts +207 -0
  25. package/src/audio/AudioNavigator.ts +692 -0
  26. package/src/audio/AudioPoolManager.ts +141 -0
  27. package/src/audio/engine/AudioEngine.ts +142 -0
  28. package/src/audio/engine/PreservePitchProcessor.js +149 -0
  29. package/src/audio/engine/PreservePitchWorklet.ts +79 -0
  30. package/src/audio/engine/WebAudioEngine.ts +469 -0
  31. package/src/audio/engine/index.ts +2 -0
  32. package/src/audio/index.ts +3 -0
  33. package/src/audio/preferences/AudioDefaults.ts +43 -0
  34. package/src/audio/preferences/AudioPreferences.ts +54 -0
  35. package/src/audio/preferences/AudioPreferencesEditor.ts +123 -0
  36. package/src/audio/preferences/AudioSettings.ts +36 -0
  37. package/src/audio/preferences/index.ts +4 -0
  38. package/src/audio/protection/AudioNavigatorProtector.ts +38 -0
  39. package/src/css/Properties.ts +47 -0
  40. package/src/css/index.ts +1 -0
  41. package/src/dom/_readium_cssSelectorGenerator.js +1 -0
  42. package/src/dom/_readium_executionCleanup.js +13 -0
  43. package/src/dom/_readium_executionPrevention.js +65 -0
  44. package/src/dom/_readium_webpubExecution.js +4 -0
  45. package/src/epub/EpubNavigator.ts +901 -0
  46. package/src/epub/css/Properties.ts +363 -0
  47. package/src/epub/css/ReadiumCSS.ts +275 -0
  48. package/src/epub/css/index.ts +2 -0
  49. package/src/epub/frame/FrameBlobBuilder.ts +197 -0
  50. package/src/epub/frame/FrameComms.ts +142 -0
  51. package/src/epub/frame/FrameManager.ts +200 -0
  52. package/src/epub/frame/FramePoolManager.ts +273 -0
  53. package/src/epub/frame/index.ts +4 -0
  54. package/src/epub/fxl/FXLCoordinator.ts +152 -0
  55. package/src/epub/fxl/FXLFrameManager.ts +316 -0
  56. package/src/epub/fxl/FXLFramePoolManager.ts +667 -0
  57. package/src/epub/fxl/FXLPeripherals.ts +587 -0
  58. package/src/epub/fxl/FXLPeripheralsDebug.ts +46 -0
  59. package/src/epub/fxl/FXLSpreader.ts +108 -0
  60. package/src/epub/fxl/index.ts +5 -0
  61. package/src/epub/helpers/scriptMode.ts +45 -0
  62. package/src/epub/index.ts +5 -0
  63. package/src/epub/preferences/EpubDefaults.ts +163 -0
  64. package/src/epub/preferences/EpubPreferences.ts +184 -0
  65. package/src/epub/preferences/EpubPreferencesEditor.ts +534 -0
  66. package/src/epub/preferences/EpubSettings.ts +235 -0
  67. package/src/epub/preferences/index.ts +4 -0
  68. package/src/helpers/dimensions.ts +13 -0
  69. package/src/helpers/index.ts +2 -0
  70. package/src/helpers/lineLength.ts +239 -0
  71. package/src/helpers/minify.ts +14 -0
  72. package/src/helpers/sML.ts +143 -0
  73. package/src/index.ts +8 -0
  74. package/src/injection/Injectable.ts +85 -0
  75. package/src/injection/Injector.ts +356 -0
  76. package/src/injection/epubInjectables.ts +167 -0
  77. package/src/injection/index.ts +2 -0
  78. package/src/injection/webpubInjectables.ts +69 -0
  79. package/src/peripherals/KeyboardPeripherals.ts +53 -0
  80. package/src/preferences/Configurable.ts +15 -0
  81. package/src/preferences/Preference.ts +272 -0
  82. package/src/preferences/PreferencesEditor.ts +6 -0
  83. package/src/preferences/Types.ts +91 -0
  84. package/src/preferences/guards.ts +97 -0
  85. package/src/preferences/index.ts +5 -0
  86. package/src/protection/AutomationDetector.ts +66 -0
  87. package/src/protection/ContextMenuProtector.ts +46 -0
  88. package/src/protection/CopyProtector.ts +22 -0
  89. package/src/protection/DevToolsDetector.ts +291 -0
  90. package/src/protection/DragAndDropProtector.ts +34 -0
  91. package/src/protection/IframeEmbeddingDetector.ts +73 -0
  92. package/src/protection/NavigatorProtector.ts +95 -0
  93. package/src/protection/PrintProtector.ts +58 -0
  94. package/src/protection/utils/WorkerConsole.ts +84 -0
  95. package/src/protection/utils/console.ts +16 -0
  96. package/src/protection/utils/match.ts +18 -0
  97. package/src/protection/utils/platform.ts +22 -0
  98. package/src/webpub/WebPubBlobBuilder.ts +119 -0
  99. package/src/webpub/WebPubFrameManager.ts +189 -0
  100. package/src/webpub/WebPubFramePoolManager.ts +253 -0
  101. package/src/webpub/WebPubNavigator.ts +614 -0
  102. package/src/webpub/css/Properties.ts +104 -0
  103. package/src/webpub/css/WebPubCSS.ts +51 -0
  104. package/src/webpub/css/index.ts +2 -0
  105. package/src/webpub/index.ts +6 -0
  106. package/src/webpub/preferences/WebPubDefaults.ts +78 -0
  107. package/src/webpub/preferences/WebPubPreferences.ts +94 -0
  108. package/src/webpub/preferences/WebPubPreferencesEditor.ts +221 -0
  109. package/src/webpub/preferences/WebPubSettings.ts +111 -0
  110. package/src/webpub/preferences/index.ts +4 -0
  111. package/types/src/Navigator.d.ts +110 -0
  112. package/types/src/audio/AudioNavigator.d.ts +124 -0
  113. package/types/src/audio/AudioPoolManager.d.ts +31 -0
  114. package/types/src/audio/engine/AudioEngine.d.ts +120 -0
  115. package/types/src/audio/engine/PreservePitchWorklet.d.ts +18 -0
  116. package/types/src/audio/engine/WebAudioEngine.d.ts +145 -0
  117. package/types/src/audio/engine/index.d.ts +2 -0
  118. package/types/src/audio/index.d.ts +3 -0
  119. package/types/src/audio/preferences/AudioDefaults.d.ts +21 -0
  120. package/types/src/audio/preferences/AudioPreferences.d.ts +23 -0
  121. package/types/src/audio/preferences/AudioPreferencesEditor.d.ts +19 -0
  122. package/types/src/audio/preferences/AudioSettings.d.ts +24 -0
  123. package/types/src/audio/preferences/index.d.ts +4 -0
  124. package/types/src/audio/protection/AudioNavigatorProtector.d.ts +8 -0
  125. package/types/src/css/Properties.d.ts +20 -0
  126. package/types/src/css/index.d.ts +1 -0
  127. package/types/src/epub/EpubNavigator.d.ts +117 -0
  128. package/types/src/epub/css/Properties.d.ts +167 -0
  129. package/types/src/epub/css/ReadiumCSS.d.ts +28 -0
  130. package/types/src/epub/css/index.d.ts +2 -0
  131. package/types/src/epub/frame/FrameBlobBuilder.d.ts +20 -0
  132. package/types/src/epub/frame/FrameComms.d.ts +26 -0
  133. package/types/src/epub/frame/FrameManager.d.ts +31 -0
  134. package/types/src/epub/frame/FramePoolManager.d.ts +29 -0
  135. package/types/src/epub/frame/index.d.ts +4 -0
  136. package/types/src/epub/fxl/FXLCoordinator.d.ts +37 -0
  137. package/types/src/epub/fxl/FXLFrameManager.d.ts +45 -0
  138. package/types/src/epub/fxl/FXLFramePoolManager.d.ts +97 -0
  139. package/types/src/epub/fxl/FXLPeripherals.d.ts +97 -0
  140. package/types/src/epub/fxl/FXLPeripheralsDebug.d.ts +13 -0
  141. package/types/src/epub/fxl/FXLSpreader.d.ts +23 -0
  142. package/types/src/epub/fxl/index.d.ts +5 -0
  143. package/types/src/epub/helpers/scriptMode.d.ts +16 -0
  144. package/types/src/epub/index.d.ts +5 -0
  145. package/types/src/epub/preferences/EpubDefaults.d.ts +88 -0
  146. package/types/src/epub/preferences/EpubPreferences.d.ts +90 -0
  147. package/types/src/epub/preferences/EpubPreferencesEditor.d.ts +55 -0
  148. package/types/src/epub/preferences/EpubSettings.d.ts +91 -0
  149. package/types/src/epub/preferences/index.d.ts +4 -0
  150. package/types/src/helpers/dimensions.d.ts +7 -0
  151. package/types/src/helpers/index.d.ts +2 -0
  152. package/types/src/helpers/lineLength.d.ts +53 -0
  153. package/types/src/helpers/minify.d.ts +12 -0
  154. package/types/src/helpers/sML.d.ts +56 -0
  155. package/types/src/index.d.ts +8 -0
  156. package/types/src/injection/Injectable.d.ts +68 -0
  157. package/types/src/injection/Injector.d.ts +22 -0
  158. package/types/src/injection/epubInjectables.d.ts +8 -0
  159. package/types/src/injection/index.d.ts +2 -0
  160. package/types/src/injection/webpubInjectables.d.ts +6 -0
  161. package/types/src/peripherals/KeyboardPeripherals.d.ts +13 -0
  162. package/types/src/preferences/Configurable.d.ts +12 -0
  163. package/types/src/preferences/Preference.d.ts +117 -0
  164. package/types/src/preferences/PreferencesEditor.d.ts +5 -0
  165. package/types/src/preferences/Types.d.ts +38 -0
  166. package/types/src/preferences/guards.d.ts +11 -0
  167. package/types/src/preferences/index.d.ts +5 -0
  168. package/types/src/protection/AutomationDetector.d.ts +14 -0
  169. package/types/src/protection/ContextMenuProtector.d.ts +11 -0
  170. package/types/src/protection/CopyProtector.d.ts +8 -0
  171. package/types/src/protection/DevToolsDetector.d.ts +75 -0
  172. package/types/src/protection/DragAndDropProtector.d.ts +10 -0
  173. package/types/src/protection/IframeEmbeddingDetector.d.ts +14 -0
  174. package/types/src/protection/NavigatorProtector.d.ts +12 -0
  175. package/types/src/protection/PrintProtector.d.ts +13 -0
  176. package/types/src/protection/utils/WorkerConsole.d.ts +15 -0
  177. package/types/src/protection/utils/console.d.ts +6 -0
  178. package/types/src/protection/utils/match.d.ts +8 -0
  179. package/types/src/protection/utils/platform.d.ts +4 -0
  180. package/types/src/webpub/WebPubBlobBuilder.d.ts +20 -0
  181. package/types/src/webpub/WebPubFrameManager.d.ts +28 -0
  182. package/types/src/webpub/WebPubFramePoolManager.d.ts +28 -0
  183. package/types/src/webpub/WebPubNavigator.d.ts +92 -0
  184. package/types/src/webpub/css/Properties.d.ts +50 -0
  185. package/types/src/webpub/css/WebPubCSS.d.ts +12 -0
  186. package/types/src/webpub/css/index.d.ts +2 -0
  187. package/types/src/webpub/index.d.ts +6 -0
  188. package/types/src/webpub/preferences/WebPubDefaults.d.ts +38 -0
  189. package/types/src/webpub/preferences/WebPubPreferences.d.ts +40 -0
  190. package/types/src/webpub/preferences/WebPubPreferencesEditor.d.ts +30 -0
  191. package/types/src/webpub/preferences/WebPubSettings.d.ts +41 -0
  192. package/types/src/webpub/preferences/index.d.ts +4 -0
package/README.MD ADDED
@@ -0,0 +1,11 @@
1
+ # navigator
2
+
3
+ A navigator for web platforms based on the readium Navigator spec. Work is primarily based on the [kotlin toolkit](https://github.com/readium/kotlin-toolkit/tree/develop/readium/navigator/src/main/java/org/readium/r2/navigator), but adapted for the needs of the web.
4
+
5
+ To build:
6
+
7
+ ```sh
8
+ pnpm run build
9
+ ```
10
+
11
+ It will output 2 files (`index.js` and `index.umd.cjs`) in `dist`.
@@ -0,0 +1,592 @@
1
+ const n = `/*!
2
+ * Readium CSS v.2.0.1
3
+ * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
+ * Use of this source code is governed by a BSD-style license which is detailed in the
5
+ * LICENSE file present in the project repository where this source code is maintained.
6
+ * Core maintainer: Jiminy Panoz <jiminy.panoz@edrlab.org>
7
+ * Contributors:
8
+ * Daniel Weck
9
+ * Hadrien Gardeur
10
+ * Innovimax
11
+ * L. Le Meur
12
+ * Mickaël Menu
13
+ * k_taka
14
+ */
15
+
16
+ @namespace url("http://www.w3.org/1999/xhtml");
17
+
18
+ @namespace epub url("http://www.idpf.org/2007/ops");
19
+
20
+ @namespace m url("http://www.w3.org/1998/Math/MathML");
21
+
22
+ @namespace svg url("http://www.w3.org/2000/svg");
23
+
24
+ :root{
25
+
26
+ --RS__viewportWidth:100%;
27
+
28
+ --RS__pageGutter:0;
29
+
30
+ --RS__defaultLineLength:100%;
31
+
32
+ --RS__colGap:0;
33
+
34
+ --RS__colCount:1;
35
+
36
+ --RS__colWidth:100vw;
37
+ }
38
+
39
+ @page{
40
+ margin:0 !important;
41
+ }
42
+
43
+ :root{
44
+ position:relative;
45
+
46
+ -webkit-column-width:var(--RS__colWidth);
47
+ -moz-column-width:var(--RS__colWidth);
48
+ column-width:var(--RS__colWidth);
49
+ -webkit-column-count:var(--RS__colCount);
50
+ -moz-column-count:var(--RS__colCount);
51
+ column-count:var(--RS__colCount);
52
+
53
+ -webkit-column-gap:var(--RS__colGap);
54
+ -moz-column-gap:var(--RS__colGap);
55
+ column-gap:var(--RS__colGap);
56
+ -moz-column-fill:auto;
57
+ column-fill:auto;
58
+ width:var(--RS__viewportWidth);
59
+ height:100vh;
60
+ max-width:var(--RS__viewportWidth);
61
+ max-height:100vh;
62
+ min-width:var(--RS__viewportWidth);
63
+ min-height:100vh;
64
+ padding:0 !important;
65
+ margin:0 !important;
66
+ font-size:1rem !important;
67
+ box-sizing:border-box;
68
+ -webkit-touch-callout:none;
69
+ }
70
+
71
+ body{
72
+ width:100%;
73
+ max-width:var(--RS__defaultLineLength) !important;
74
+ margin:0 auto !important;
75
+ box-sizing:border-box;
76
+ }
77
+
78
+ :root:not([style*="readium-scroll-on"]) body{
79
+ padding:0 var(--RS__pageGutter) !important;
80
+ }
81
+
82
+ :root:not([style*="readium-noOverflow-on"]) body{
83
+ overflow:hidden;
84
+ }
85
+
86
+ @supports (overflow: clip){
87
+
88
+ :root:not([style*="readium-noOverflow-on"]){
89
+ overflow:clip;
90
+ }
91
+
92
+ :root:not([style*="readium-noOverflow-on"]) body{
93
+ overflow:clip;
94
+ overflow-clip-margin:content-box;
95
+ }
96
+ }
97
+
98
+ :root[style*="readium-scroll-on"]{
99
+ -webkit-columns:auto auto !important;
100
+ -moz-columns:auto auto !important;
101
+ columns:auto auto !important;
102
+ width:auto !important;
103
+ height:auto !important;
104
+ max-width:none !important;
105
+ max-height:none !important;
106
+ min-width:0 !important;
107
+ min-height:0 !important;
108
+ }
109
+
110
+ :root[style*="readium-scroll-on"] body{
111
+ max-width:var(--RS__defaultLineLength) !important;
112
+ box-sizing:border-box !important;
113
+ }
114
+
115
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
116
+ overflow:auto;
117
+ }
118
+
119
+ @supports (overflow: clip){
120
+
121
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]){
122
+ overflow:auto;
123
+ }
124
+
125
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
126
+ overflow:clip;
127
+ }
128
+ }
129
+
130
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
131
+ padding-top:var(--RS__scrollPaddingTop) !important;
132
+ }
133
+
134
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
135
+ padding-bottom:var(--RS__scrollPaddingBottom) !important;
136
+ }
137
+
138
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
139
+ padding-left:var(--RS__scrollPaddingLeft) !important;
140
+ }
141
+
142
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
143
+ padding-right:var(--RS__scrollPaddingRight) !important;
144
+ }
145
+
146
+ :root[style*="--USER__backgroundColor"]{
147
+ background-color:var(--USER__backgroundColor) !important;
148
+ }
149
+
150
+ :root[style*="--USER__backgroundColor"] *{
151
+ background-color:transparent !important;
152
+ }
153
+
154
+ :root[style*="--USER__textColor"]{
155
+ color:var(--USER__textColor) !important;
156
+ }
157
+
158
+ :root[style*="--USER__textColor"] *:not(a){
159
+ color:inherit !important;
160
+ background-color:transparent !important;
161
+ border-color:currentcolor !important;
162
+ }
163
+
164
+ :root[style*="--USER__textColor"] svg text{
165
+ fill:currentcolor !important;
166
+ stroke:none !important;
167
+ }
168
+
169
+ :root[style*="--USER__linkColor"] a:link,
170
+ :root[style*="--USER__linkColor"] a:link *{
171
+ color:var(--USER__linkColor) !important;
172
+ }
173
+
174
+ :root[style*="--USER__visitedColor"] a:visited,
175
+ :root[style*="--USER__visitedColor"] a:visited *{
176
+ color:var(--USER__visitedColor) !important;
177
+ }
178
+
179
+ :root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::-moz-selection{
180
+ color:var(--USER__selectionTextColor) !important;
181
+ background-color:var(--USER__selectionBackgroundColor) !important;
182
+ }
183
+
184
+ :root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::selection{
185
+ color:var(--USER__selectionTextColor) !important;
186
+ background-color:var(--USER__selectionBackgroundColor) !important;
187
+ }
188
+
189
+ :root[style*="--USER__colCount"]{
190
+ -webkit-column-count:var(--USER__colCount);
191
+ -moz-column-count:var(--USER__colCount);
192
+ column-count:var(--USER__colCount);
193
+
194
+ --RS__colWidth:auto;
195
+ }
196
+
197
+ :root[style*="--USER__colCount: 0"],
198
+ :root[style*="--USER__colCount:0"]{
199
+ -webkit-column-count:1;
200
+ -moz-column-count:1;
201
+ column-count:1;
202
+ }
203
+
204
+ :root[style*="--USER__colCount: 0"],
205
+ :root[style*="--USER__colCount:0"],
206
+ :root[style*="--USER__colCount: 1"],
207
+ :root[style*="--USER__colCount:1"]{
208
+ --RS__colWidth:100vw;
209
+ }
210
+
211
+ :root[style*="--USER__lineLength"] body{
212
+ max-width:var(--USER__lineLength) !important;
213
+ }
214
+
215
+ :root[style*="--USER__textAlign"]{
216
+ text-align:var(--USER__textAlign);
217
+ }
218
+
219
+ :root[style*="--USER__textAlign"] body,
220
+ :root[style*="--USER__textAlign"] p:not(
221
+ blockquote p,
222
+ figcaption p,
223
+ header p,
224
+ hgroup p,
225
+ :root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
226
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
227
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
228
+ ),
229
+ :root[style*="--USER__textAlign"] li,
230
+ :root[style*="--USER__textAlign"] dd{
231
+ text-align:var(--USER__textAlign) !important;
232
+ -moz-text-align-last:auto !important;
233
+ -epub-text-align-last:auto !important;
234
+ text-align-last:auto !important;
235
+ }
236
+
237
+ :root[style*="--USER__bodyHyphens"]{
238
+ -webkit-hyphens:var(--USER__bodyHyphens) !important;
239
+ -moz-hyphens:var(--USER__bodyHyphens) !important;
240
+ -ms-hyphens:var(--USER__bodyHyphens) !important;
241
+ -epub-hyphens:var(--USER__bodyHyphens) !important;
242
+ hyphens:var(--USER__bodyHyphens) !important;
243
+ }
244
+
245
+ :root[style*="--USER__bodyHyphens"] body,
246
+ :root[style*="--USER__bodyHyphens"] p,
247
+ :root[style*="--USER__bodyHyphens"] li,
248
+ :root[style*="--USER__bodyHyphens"] div,
249
+ :root[style*="--USER__bodyHyphens"] dd{
250
+ -webkit-hyphens:inherit;
251
+ -moz-hyphens:inherit;
252
+ -ms-hyphens:inherit;
253
+ -epub-hyphens:inherit;
254
+ hyphens:inherit;
255
+ }
256
+
257
+ :root[style*="--USER__fontFamily"]{
258
+ font-family:var(--USER__fontFamily) !important;
259
+ }
260
+
261
+ :root[style*="--USER__fontFamily"] *{
262
+ font-family:revert !important;
263
+ }
264
+
265
+ :root[style*="readium-a11y-on"]{
266
+ font-style:normal !important;
267
+ font-weight:normal !important;
268
+ }
269
+
270
+ :root[style*="readium-a11y-on"] body *:not(code):not(var):not(kbd):not(samp){
271
+ font-family:inherit !important;
272
+ font-style:inherit !important;
273
+ font-weight:inherit !important;
274
+ }
275
+
276
+ :root[style*="readium-a11y-on"] body *:not(a){
277
+ text-decoration:none !important;
278
+ }
279
+
280
+ :root[style*="readium-a11y-on"] body *{
281
+ font-variant-caps:normal !important;
282
+ font-variant-numeric:normal !important;
283
+ font-variant-position:normal !important;
284
+ }
285
+
286
+ :root[style*="readium-a11y-on"] sup,
287
+ :root[style*="readium-a11y-on"] sub{
288
+ font-size:1rem !important;
289
+ vertical-align:baseline !important;
290
+ }
291
+
292
+ :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] body{
293
+ zoom:var(--USER__fontSize) !important;
294
+ }
295
+
296
+ :root:not([style*="readium-deprecatedFontSize-on"])[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{
297
+ -webkit-text-size-adjust:var(--USER__fontSize) !important;
298
+ }
299
+
300
+ @supports selector(figure:has(> img)){
301
+
302
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> img),
303
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> video),
304
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> svg),
305
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> canvas),
306
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> iframe),
307
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> audio),
308
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> img:only-child),
309
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> video:only-child),
310
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> svg:only-child),
311
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> canvas:only-child),
312
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> iframe:only-child),
313
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> audio:only-child),
314
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] table{
315
+ zoom:calc(100% / var(--USER__fontSize)) !important;
316
+ }
317
+
318
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figcaption,
319
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] caption,
320
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] td,
321
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] th{
322
+ zoom:var(--USER__fontSize) !important;
323
+ }
324
+ }
325
+
326
+ @supports not (zoom: 1){
327
+
328
+ :root[style*="--USER__fontSize"]{
329
+ font-size:var(--USER__fontSize) !important;
330
+ }
331
+ }
332
+
333
+ :root[style*="readium-deprecatedFontSize-on"][style*="--USER__fontSize"]{
334
+ font-size:var(--USER__fontSize) !important;
335
+ }
336
+
337
+ :root[style*="--USER__lineHeight"]{
338
+ line-height:var(--USER__lineHeight) !important;
339
+ }
340
+
341
+ :root[style*="--USER__lineHeight"] body,
342
+ :root[style*="--USER__lineHeight"] p,
343
+ :root[style*="--USER__lineHeight"] li,
344
+ :root[style*="--USER__lineHeight"] div{
345
+ line-height:inherit;
346
+ }
347
+
348
+ :root[style*="--USER__paraSpacing"] p{
349
+ margin-top:var(--USER__paraSpacing) !important;
350
+ margin-bottom:var(--USER__paraSpacing) !important;
351
+ }
352
+
353
+ :root[style*="--USER__paraIndent"] p:not(
354
+ blockquote p,
355
+ figcaption p,
356
+ header p,
357
+ hgroup p,
358
+ :root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
359
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
360
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
361
+ ){
362
+ text-indent:var(--USER__paraIndent) !important;
363
+ }
364
+
365
+ :root[style*="--USER__paraIndent"] p *{
366
+ text-indent:0 !important;
367
+ }
368
+
369
+ :root[style*="--USER__wordSpacing"] h1,
370
+ :root[style*="--USER__wordSpacing"] h2,
371
+ :root[style*="--USER__wordSpacing"] h3,
372
+ :root[style*="--USER__wordSpacing"] h4,
373
+ :root[style*="--USER__wordSpacing"] h5,
374
+ :root[style*="--USER__wordSpacing"] h6,
375
+ :root[style*="--USER__wordSpacing"] p,
376
+ :root[style*="--USER__wordSpacing"] li,
377
+ :root[style*="--USER__wordSpacing"] div,
378
+ :root[style*="--USER__wordSpacing"] dt,
379
+ :root[style*="--USER__wordSpacing"] dd{
380
+ word-spacing:var(--USER__wordSpacing);
381
+ }
382
+
383
+ :root[style*="--USER__letterSpacing"] h1,
384
+ :root[style*="--USER__letterSpacing"] h2,
385
+ :root[style*="--USER__letterSpacing"] h3,
386
+ :root[style*="--USER__letterSpacing"] h4,
387
+ :root[style*="--USER__letterSpacing"] h5,
388
+ :root[style*="--USER__letterSpacing"] h6,
389
+ :root[style*="--USER__letterSpacing"] p,
390
+ :root[style*="--USER__letterSpacing"] li,
391
+ :root[style*="--USER__letterSpacing"] div,
392
+ :root[style*="--USER__letterSpacing"] dt,
393
+ :root[style*="--USER__letterSpacing"] dd{
394
+ letter-spacing:var(--USER__letterSpacing);
395
+ font-variant:none;
396
+ }
397
+
398
+ :root[style*="--USER__ligatures"]{
399
+ font-variant-ligatures:var(--USER__ligatures) !important;
400
+ }
401
+
402
+ :root[style*="--USER__ligatures"] *{
403
+ font-variant-ligatures:inherit !important;
404
+ }
405
+
406
+ :root[style*="--USER__fontWeight"] body{
407
+ font-weight:var(--USER__fontWeight) !important;
408
+ }
409
+
410
+ :root[style*="--USER__fontWeight"] b,
411
+ :root[style*="--USER__fontWeight"] strong{
412
+ font-weight:bolder;
413
+ }
414
+
415
+ :root[style*="--USER__fontWidth"] body{
416
+ font-stretch:var(--USER__fontWidth) !important;
417
+ }
418
+
419
+ :root[style*="--USER__fontOpticalSizing"] body{
420
+ font-optical-sizing:var(--USER__fontOpticalSizing) !important;
421
+ }
422
+
423
+ :root[style*="readium-blend-on"] svg,
424
+ :root[style*="readium-blend-on"] img{
425
+ background-color:transparent !important;
426
+ mix-blend-mode:multiply !important;
427
+ }
428
+
429
+ :root[style*="--USER__darkenImages"] img{
430
+ -webkit-filter:brightness(var(--USER__darkenImages)) !important;
431
+ filter:brightness(var(--USER__darkenImages)) !important;
432
+ }
433
+
434
+ :root[style*="readium-darken-on"] img{
435
+ -webkit-filter:brightness(80%) !important;
436
+ filter:brightness(80%) !important;
437
+ }
438
+
439
+ :root[style*="--USER__invertImages"] img{
440
+ -webkit-filter:invert(var(--USER__invertImages)) !important;
441
+ filter:invert(var(--USER__invertImages)) !important;
442
+ }
443
+
444
+ :root[style*="readium-invert-on"] img{
445
+ -webkit-filter:invert(100%) !important;
446
+ filter:invert(100%) !important;
447
+ }
448
+
449
+ :root[style*="--USER__darkenImages"][style*="--USER__invertImages"] img{
450
+ -webkit-filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
451
+ filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
452
+ }
453
+
454
+ :root[style*="readium-darken-on"][style*="--USER__invertImages"] img{
455
+ -webkit-filter:brightness(80%) invert(var(--USER__invertImages)) !important;
456
+ filter:brightness(80%) invert(var(--USER__invertImages)) !important;
457
+ }
458
+
459
+ :root[style*="--USER__darkenImages"][style*="readium-invert-on"] img{
460
+ -webkit-filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
461
+ filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
462
+ }
463
+
464
+ :root[style*="readium-darken-on"][style*="readium-invert-on"] img{
465
+ -webkit-filter:brightness(80%) invert(100%) !important;
466
+ filter:brightness(80%) invert(100%) !important;
467
+ }
468
+
469
+ :root[style*="--USER__invertGaiji"] img[class*="gaiji"]{
470
+ -webkit-filter:invert(var(--USER__invertGaiji)) !important;
471
+ filter:invert(var(--USER__invertGaiji)) !important;
472
+ }
473
+
474
+ :root[style*="readium-invertGaiji-on"] img[class*="gaiji"]{
475
+ -webkit-filter:invert(100%) !important;
476
+ filter:invert(100%) !important;
477
+ }
478
+
479
+ :root[style*="readium-normalize-on"]{
480
+ --USER__typeScale:1.2;
481
+ }
482
+
483
+ :root[style*="readium-normalize-on"] p,
484
+ :root[style*="readium-normalize-on"] li,
485
+ :root[style*="readium-normalize-on"] div,
486
+ :root[style*="readium-normalize-on"] pre,
487
+ :root[style*="readium-normalize-on"] dd{
488
+ font-size:1rem !important;
489
+ }
490
+
491
+ :root[style*="readium-normalize-on"] h1{
492
+ font-size:1.75rem !important;
493
+ font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
494
+ }
495
+
496
+ :root[style*="readium-normalize-on"] h2{
497
+ font-size:1.5rem !important;
498
+ font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
499
+ }
500
+
501
+ :root[style*="readium-normalize-on"] h3{
502
+ font-size:1.25rem !important;
503
+ font-size:calc(1rem * var(--USER__typeScale)) !important;
504
+ }
505
+
506
+ :root[style*="readium-normalize-on"] h4,
507
+ :root[style*="readium-normalize-on"] h5,
508
+ :root[style*="readium-normalize-on"] h6{
509
+ font-size:1rem !important;
510
+ }
511
+
512
+ :root[style*="readium-normalize-on"] small{
513
+ font-size:smaller !important;
514
+ }
515
+
516
+ :root[style*="readium-normalize-on"] sub,
517
+ :root[style*="readium-normalize-on"] sup{
518
+ font-size:67.5% !important;
519
+ }
520
+
521
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h1{
522
+ font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
523
+ }
524
+
525
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h2{
526
+ font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
527
+ }
528
+
529
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h3{
530
+ font-size:calc(1rem * var(--USER__typeScale)) !important;
531
+ }
532
+
533
+ :root[style*="readium-iPadOSPatch-on"] body{
534
+ -webkit-text-size-adjust:none;
535
+ }
536
+
537
+ :root[style*="readium-iPadOSPatch-on"] p,
538
+ :root[style*="readium-iPadOSPatch-on"] h1,
539
+ :root[style*="readium-iPadOSPatch-on"] h2,
540
+ :root[style*="readium-iPadOSPatch-on"] h3,
541
+ :root[style*="readium-iPadOSPatch-on"] h4,
542
+ :root[style*="readium-iPadOSPatch-on"] h5,
543
+ :root[style*="readium-iPadOSPatch-on"] h6,
544
+ :root[style*="readium-iPadOSPatch-on"] li,
545
+ :root[style*="readium-iPadOSPatch-on"] th,
546
+ :root[style*="readium-iPadOSPatch-on"] td,
547
+ :root[style*="readium-iPadOSPatch-on"] dt,
548
+ :root[style*="readium-iPadOSPatch-on"] dd,
549
+ :root[style*="readium-iPadOSPatch-on"] pre,
550
+ :root[style*="readium-iPadOSPatch-on"] address,
551
+ :root[style*="readium-iPadOSPatch-on"] details,
552
+ :root[style*="readium-iPadOSPatch-on"] summary,
553
+ :root[style*="readium-iPadOSPatch-on"] figcaption,
554
+ :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)),
555
+ :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)){
556
+ -webkit-text-zoom:reset;
557
+ }
558
+
559
+ :root[style*="readium-iPadOSPatch-on"] abbr,
560
+ :root[style*="readium-iPadOSPatch-on"] b,
561
+ :root[style*="readium-iPadOSPatch-on"] bdi,
562
+ :root[style*="readium-iPadOSPatch-on"] bdo,
563
+ :root[style*="readium-iPadOSPatch-on"] cite,
564
+ :root[style*="readium-iPadOSPatch-on"] code,
565
+ :root[style*="readium-iPadOSPatch-on"] dfn,
566
+ :root[style*="readium-iPadOSPatch-on"] em,
567
+ :root[style*="readium-iPadOSPatch-on"] i,
568
+ :root[style*="readium-iPadOSPatch-on"] kbd,
569
+ :root[style*="readium-iPadOSPatch-on"] mark,
570
+ :root[style*="readium-iPadOSPatch-on"] q,
571
+ :root[style*="readium-iPadOSPatch-on"] rp,
572
+ :root[style*="readium-iPadOSPatch-on"] rt,
573
+ :root[style*="readium-iPadOSPatch-on"] ruby,
574
+ :root[style*="readium-iPadOSPatch-on"] s,
575
+ :root[style*="readium-iPadOSPatch-on"] samp,
576
+ :root[style*="readium-iPadOSPatch-on"] small,
577
+ :root[style*="readium-iPadOSPatch-on"] span,
578
+ :root[style*="readium-iPadOSPatch-on"] strong,
579
+ :root[style*="readium-iPadOSPatch-on"] sub,
580
+ :root[style*="readium-iPadOSPatch-on"] sup,
581
+ :root[style*="readium-iPadOSPatch-on"] time,
582
+ :root[style*="readium-iPadOSPatch-on"] u,
583
+ :root[style*="readium-iPadOSPatch-on"] var{
584
+ -webkit-text-zoom:normal;
585
+ }
586
+
587
+ :root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
588
+ -webkit-text-zoom:normal;
589
+ }`;
590
+ export {
591
+ n as default
592
+ };