paginar 0.2.8 → 0.3.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.
- package/.editorconfig +13 -13
- package/.env +1 -1
- package/.vscode/extensions.json +3 -3
- package/LICENSE.md +21 -0
- package/README.md +244 -14
- package/demo/slot/slot-chapter1.html +384 -357
- package/demo/slot/slot-chapter2.html +366 -366
- package/demo/slot/slot-chapter3.html +265 -265
- package/demo/summary/_content/1chapter.html +100 -97
- package/demo/summary/_content/2chapter.html +311 -311
- package/demo/summary/_content/3chapter.html +211 -211
- package/demo/summary/index.html +134 -123
- package/dist/index.es.js +991 -920
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +14 -17
- package/index.html +18 -18
- package/package.json +1 -1
- package/src/App.ce.vue +148 -153
- package/src/assets/main.css +392 -392
- package/src/components/BookContent.vue +23 -23
- package/src/components/FooterSlot.vue +32 -32
- package/src/components/FootnotesAside.vue +123 -123
- package/src/components/HeaderSlot/HeaderSlot.vue +30 -30
- package/src/components/HeaderSlot/OptionsButton/OptionsButton.vue +67 -67
- package/src/components/HeaderSlot/OptionsButton/OptionsColor.vue +28 -28
- package/src/components/HeaderSlot/OptionsButton/OptionsColumns.vue +51 -49
- package/src/components/HeaderSlot/OptionsButton/OptionsDropdown.vue +59 -55
- package/src/components/HeaderSlot/OptionsButton/OptionsFontFamily.vue +17 -17
- package/src/components/HeaderSlot/OptionsButton/OptionsFontSize.vue +17 -17
- package/src/components/HeaderSlot/SummaryButton/SummaryButton.vue +70 -65
- package/src/components/HeaderSlot/SummaryButton/SummaryDropdown.vue +8 -7
- package/src/components/ReaderWrapper.vue +37 -37
- package/src/components/ReferencePopup.vue +36 -36
- package/src/components/icons/Close.vue +6 -6
- package/src/components/icons/DoubleColumn.vue +15 -15
- package/src/components/icons/Expand.vue +7 -7
- package/src/components/icons/Eye.vue +9 -9
- package/src/components/icons/Footnote.vue +5 -5
- package/src/components/icons/Home.vue +6 -6
- package/src/components/icons/Moon.vue +5 -5
- package/src/components/icons/Notes.vue +5 -5
- package/src/components/icons/SingleColumn.vue +3 -3
- package/src/components/icons/Summary.vue +10 -10
- package/src/components/icons/Sun.vue +5 -5
- package/src/components/icons/ThreeDots.vue +8 -8
- package/src/composables/useBrowser.js +16 -16
- package/src/composables/useFootnotes.js +50 -50
- package/src/composables/usePagination.js +125 -125
- package/src/composables/useReaderSettings.js +174 -153
- package/src/composables/useReferences.js +67 -67
- package/src/composables/useStyles.js +60 -43
- package/src/composables/useTextContent.js +113 -113
- package/src/main.js +19 -19
- package/src/tailwind.css +5 -8
- package/tailwind.config.js +16 -16
- package/vite.config.js +36 -36
package/dist/index.es.js
CHANGED
|
@@ -9103,199 +9103,237 @@ function useWindowSize(options = {}) {
|
|
|
9103
9103
|
return { width, height };
|
|
9104
9104
|
}
|
|
9105
9105
|
|
|
9106
|
-
function
|
|
9107
|
-
const
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
}
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
}
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
const
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9106
|
+
function initStyles(props, rootComponent) {
|
|
9107
|
+
const settings = props.readerSettings
|
|
9108
|
+
? JSON.parse(props.readerSettings)
|
|
9109
|
+
: null;
|
|
9110
|
+
|
|
9111
|
+
if (props.cssFile) {
|
|
9112
|
+
stylesheetLoader(props.cssFile, rootComponent);
|
|
9113
|
+
}
|
|
9114
|
+
|
|
9115
|
+
if (props.cssString) {
|
|
9116
|
+
applyStylesheet(props.cssString, rootComponent);
|
|
9117
|
+
}
|
|
9118
|
+
|
|
9119
|
+
if (settings?.cssString) {
|
|
9120
|
+
applyStylesheet(settings.cssString, rootComponent);
|
|
9121
|
+
}
|
|
9122
|
+
}
|
|
9123
|
+
|
|
9124
|
+
function fontLoader(fontsOptions) {
|
|
9125
|
+
const fontsToLoad = fontsOptions.filter(item => item.link);
|
|
9126
|
+
|
|
9127
|
+
if (fontsToLoad.length > 0) {
|
|
9128
|
+
const style = document.createElement('style');
|
|
9129
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
|
9130
|
+
head.appendChild(style);
|
|
9131
|
+
|
|
9132
|
+
style.type = 'text/css';
|
|
9133
|
+
let css = '';
|
|
9134
|
+
fontsToLoad.forEach(
|
|
9135
|
+
item => css = css + `@import url(${item.link}); \n`
|
|
9136
|
+
);
|
|
9137
|
+
style.appendChild(document.createTextNode(css));
|
|
9138
|
+
}
|
|
9139
|
+
}
|
|
9140
|
+
|
|
9141
|
+
async function stylesheetLoader(stylesheet, ref) {
|
|
9142
|
+
if (stylesheet) {
|
|
9143
|
+
try {
|
|
9144
|
+
const dataRef = await fetch(stylesheet);
|
|
9145
|
+
const cssText = await dataRef.text();
|
|
9146
|
+
|
|
9147
|
+
applyStylesheet(cssText, ref);
|
|
9148
|
+
|
|
9149
|
+
} catch (_) {}
|
|
9150
|
+
}
|
|
9151
|
+
}
|
|
9152
|
+
|
|
9153
|
+
async function applyStylesheet(stylesheet, ref) {
|
|
9154
|
+
const style = document.createElement('style');
|
|
9155
|
+
ref.value.appendChild(style);
|
|
9156
|
+
style.type = 'text/css';
|
|
9157
|
+
style.appendChild(document.createTextNode(stylesheet));
|
|
9158
|
+
}
|
|
9159
|
+
|
|
9160
|
+
const useStyles = {
|
|
9161
|
+
initStyles,
|
|
9162
|
+
fontLoader,
|
|
9163
|
+
stylesheetLoader,
|
|
9164
|
+
applyStylesheet
|
|
9148
9165
|
};
|
|
9149
9166
|
|
|
9150
|
-
const state$5 = reactive({
|
|
9151
|
-
baseFont: 'Arial, sans-serif',
|
|
9152
|
-
textFont: 'Times New Roman, serif',
|
|
9153
|
-
fontsOptions: [
|
|
9154
|
-
{ name: 'Times New Roman, serif' },
|
|
9155
|
-
{ name: 'Georgia, serif' },
|
|
9156
|
-
{ name: 'Arial, sans-serif' },
|
|
9157
|
-
{ name: 'Verdana, sans-serif' },
|
|
9158
|
-
],
|
|
9159
|
-
fontSize: 16,
|
|
9160
|
-
columns: 'double',
|
|
9161
|
-
mode: 'light',
|
|
9162
|
-
blocked: false
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
const
|
|
9170
|
-
const
|
|
9171
|
-
const
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
state$5.
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
}
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
}
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9167
|
+
const state$5 = reactive({
|
|
9168
|
+
baseFont: 'Arial, sans-serif',
|
|
9169
|
+
textFont: 'Times New Roman, serif',
|
|
9170
|
+
fontsOptions: [
|
|
9171
|
+
{ name: 'Times New Roman, serif' },
|
|
9172
|
+
{ name: 'Georgia, serif' },
|
|
9173
|
+
{ name: 'Arial, sans-serif' },
|
|
9174
|
+
{ name: 'Verdana, sans-serif' },
|
|
9175
|
+
],
|
|
9176
|
+
fontSize: 16,
|
|
9177
|
+
columns: 'double',
|
|
9178
|
+
mode: 'light',
|
|
9179
|
+
blocked: false,
|
|
9180
|
+
|
|
9181
|
+
bookTitle: null,
|
|
9182
|
+
chapterTitle: null,
|
|
9183
|
+
homeUrl: null,
|
|
9184
|
+
});
|
|
9185
|
+
|
|
9186
|
+
const baseFont = computed(() => state$5.baseFont);
|
|
9187
|
+
const textFont = computed(() => state$5.textFont);
|
|
9188
|
+
const fontSize = computed(() => state$5.fontSize);
|
|
9189
|
+
const fontsOptions = computed(() => state$5.fontsOptions);
|
|
9190
|
+
const columns = computed(() => state$5.columns);
|
|
9191
|
+
const mode = computed(() => state$5.mode);
|
|
9192
|
+
const blocked = computed(() => state$5.blocked);
|
|
9193
|
+
|
|
9194
|
+
const bookTitle = computed(() => state$5.bookTitle);
|
|
9195
|
+
const chapterTitle = computed(() => state$5.chapterTitle);
|
|
9196
|
+
const homeUrl = computed(() => state$5.homeUrl);
|
|
9197
|
+
|
|
9198
|
+
watch(
|
|
9199
|
+
[baseFont, textFont, fontSize, columns, mode],
|
|
9200
|
+
() => saveSettings()
|
|
9201
|
+
);
|
|
9202
|
+
|
|
9203
|
+
async function initSettings(settingsString) {
|
|
9204
|
+
const settings = settingsString
|
|
9205
|
+
? JSON.parse(settingsString)
|
|
9206
|
+
: null;
|
|
9207
|
+
|
|
9208
|
+
if (settings?.baseFont)
|
|
9209
|
+
state$5.baseFont = settings.baseFont;
|
|
9210
|
+
|
|
9211
|
+
if (settings?.textFont)
|
|
9212
|
+
state$5.textFont = settings.textFont;
|
|
9213
|
+
|
|
9214
|
+
if (settings?.fontSize)
|
|
9215
|
+
state$5.fontSize = Number(settings.fontSize);
|
|
9216
|
+
|
|
9217
|
+
if (settings?.fontsOptions) {
|
|
9218
|
+
state$5.fontsOptions = settings.fontsOptions;
|
|
9219
|
+
useStyles.fontLoader(settings.fontsOptions);
|
|
9220
|
+
|
|
9221
|
+
// baseFont
|
|
9222
|
+
const defaultBaseFont = settings.fontsOptions.find(
|
|
9223
|
+
item => item.defaultBaseFont
|
|
9224
|
+
);
|
|
9225
|
+
if (defaultBaseFont)
|
|
9226
|
+
state$5.baseFont = defaultBaseFont.name;
|
|
9227
|
+
|
|
9228
|
+
// textFont
|
|
9229
|
+
const defaultTextFont = settings.fontsOptions.find(
|
|
9230
|
+
item => item.defaultTextFont
|
|
9231
|
+
);
|
|
9232
|
+
if (defaultTextFont)
|
|
9233
|
+
state$5.textFont = defaultTextFont.name;
|
|
9234
|
+
}
|
|
9235
|
+
|
|
9236
|
+
if (settings?.bookTitle)
|
|
9237
|
+
state$5.bookTitle = settings.bookTitle;
|
|
9238
|
+
|
|
9239
|
+
if (settings?.chapterTitle)
|
|
9240
|
+
state$5.chapterTitle = settings.chapterTitle;
|
|
9241
|
+
|
|
9242
|
+
if (settings?.homeUrl)
|
|
9243
|
+
state$5.homeUrl = settings.homeUrl;
|
|
9244
|
+
|
|
9245
|
+
loadSavedSettings(settings);
|
|
9246
|
+
}
|
|
9247
|
+
|
|
9248
|
+
function loadSavedSettings(settings) {
|
|
9249
|
+
const hasSettings = localStorage.getItem('readerSettings');
|
|
9250
|
+
|
|
9251
|
+
if (hasSettings) {
|
|
9252
|
+
const savedSettings = JSON.parse(hasSettings);
|
|
9253
|
+
|
|
9254
|
+
state$5.fontSize = savedSettings.fontSize;
|
|
9255
|
+
state$5.columns = savedSettings.columns;
|
|
9256
|
+
state$5.mode = savedSettings.mode;
|
|
9257
|
+
|
|
9258
|
+
if (settings?.fontsOptions &&
|
|
9259
|
+
settings?.fontsOptions?.find(item => item.name === savedSettings.textFont)
|
|
9260
|
+
) {
|
|
9261
|
+
state$5.textFont = savedSettings.textFont;
|
|
9262
|
+
}
|
|
9263
|
+
|
|
9264
|
+
if (savedSettings.mode === 'dark') {
|
|
9265
|
+
const htmlRoot = document.querySelector('html');
|
|
9266
|
+
if (htmlRoot) {
|
|
9267
|
+
htmlRoot.classList.remove("light");
|
|
9268
|
+
htmlRoot.classList.add("dark");
|
|
9269
|
+
}
|
|
9270
|
+
}
|
|
9271
|
+
}
|
|
9272
|
+
}
|
|
9273
|
+
|
|
9274
|
+
function setColumns(value) {
|
|
9275
|
+
state$5.columns = value;
|
|
9276
|
+
}
|
|
9277
|
+
|
|
9278
|
+
function setTextFont(value) {
|
|
9279
|
+
state$5.textFont = value;
|
|
9280
|
+
}
|
|
9281
|
+
|
|
9282
|
+
function setFontSize(value) {
|
|
9283
|
+
state$5.fontSize = value;
|
|
9284
|
+
}
|
|
9285
|
+
|
|
9286
|
+
function setBlocked(value) {
|
|
9287
|
+
state$5.blocked = value;
|
|
9288
|
+
}
|
|
9289
|
+
|
|
9290
|
+
function setMode(value) {
|
|
9291
|
+
state$5.mode = value;
|
|
9292
|
+
|
|
9293
|
+
const htmlRoot = document.querySelector('html');
|
|
9294
|
+
if (htmlRoot) {
|
|
9295
|
+
if (htmlRoot.classList.contains("dark")) {
|
|
9296
|
+
htmlRoot.classList.remove("dark");
|
|
9297
|
+
htmlRoot.classList.add("light");
|
|
9298
|
+
|
|
9299
|
+
} else {
|
|
9300
|
+
htmlRoot.classList.remove("light");
|
|
9301
|
+
htmlRoot.classList.add("dark");
|
|
9302
|
+
}
|
|
9303
|
+
}
|
|
9304
|
+
}
|
|
9305
|
+
|
|
9306
|
+
function saveSettings() {
|
|
9307
|
+
localStorage.setItem(
|
|
9308
|
+
'readerSettings',
|
|
9309
|
+
JSON.stringify({
|
|
9310
|
+
textFont: textFont.value,
|
|
9311
|
+
fontSize: fontSize.value,
|
|
9312
|
+
columns: columns.value,
|
|
9313
|
+
mode: mode.value
|
|
9314
|
+
})
|
|
9315
|
+
);
|
|
9316
|
+
}
|
|
9317
|
+
|
|
9318
|
+
const useReaderSettings = {
|
|
9319
|
+
baseFont,
|
|
9320
|
+
textFont,
|
|
9321
|
+
fontSize,
|
|
9322
|
+
fontsOptions,
|
|
9323
|
+
columns,
|
|
9324
|
+
initSettings,
|
|
9325
|
+
setColumns,
|
|
9326
|
+
setTextFont,
|
|
9327
|
+
setFontSize,
|
|
9328
|
+
setBlocked,
|
|
9329
|
+
mode,
|
|
9330
|
+
blocked,
|
|
9331
|
+
setMode,
|
|
9332
|
+
saveSettings,
|
|
9333
|
+
|
|
9334
|
+
bookTitle,
|
|
9335
|
+
chapterTitle,
|
|
9336
|
+
homeUrl
|
|
9299
9337
|
};
|
|
9300
9338
|
|
|
9301
9339
|
const _export_sfc = (sfc, props) => {
|
|
@@ -9314,21 +9352,21 @@ const _hoisted_1$q = {
|
|
|
9314
9352
|
viewBox: "0 0 20 22",
|
|
9315
9353
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9316
9354
|
};
|
|
9317
|
-
const _hoisted_2$
|
|
9355
|
+
const _hoisted_2$o = /*#__PURE__*/createBaseVNode("path", {
|
|
9318
9356
|
d: "M1 8L10 1L19 8V19C19 19.5304 18.7893 20.0391 18.4142 20.4142C18.0391 20.7893 17.5304 21 17 21H3C2.46957 21 1.96086 20.7893 1.58579 20.4142C1.21071 20.0391 1 19.5304 1 19V8Z",
|
|
9319
9357
|
"stroke-width": "2",
|
|
9320
9358
|
"stroke-linecap": "round",
|
|
9321
9359
|
"stroke-linejoin": "round"
|
|
9322
9360
|
}, null, -1);
|
|
9323
|
-
const _hoisted_3$
|
|
9361
|
+
const _hoisted_3$f = /*#__PURE__*/createBaseVNode("path", {
|
|
9324
9362
|
d: "M7 21V11H13V21",
|
|
9325
9363
|
"stroke-width": "2",
|
|
9326
9364
|
"stroke-linecap": "round",
|
|
9327
9365
|
"stroke-linejoin": "round"
|
|
9328
9366
|
}, null, -1);
|
|
9329
9367
|
const _hoisted_4$5 = [
|
|
9330
|
-
_hoisted_2$
|
|
9331
|
-
_hoisted_3$
|
|
9368
|
+
_hoisted_2$o,
|
|
9369
|
+
_hoisted_3$f
|
|
9332
9370
|
];
|
|
9333
9371
|
|
|
9334
9372
|
function _sfc_render$c(_ctx, _cache) {
|
|
@@ -9344,18 +9382,18 @@ const _hoisted_1$p = {
|
|
|
9344
9382
|
viewBox: "0 0 24 24",
|
|
9345
9383
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9346
9384
|
};
|
|
9347
|
-
const _hoisted_2$
|
|
9385
|
+
const _hoisted_2$n = /*#__PURE__*/createBaseVNode("path", {
|
|
9348
9386
|
"stroke-linecap": "round",
|
|
9349
9387
|
"stroke-linejoin": "round",
|
|
9350
9388
|
"stroke-width": "2",
|
|
9351
9389
|
d: "M6 18L18 6M6 6l12 12"
|
|
9352
9390
|
}, null, -1);
|
|
9353
|
-
const _hoisted_3$
|
|
9354
|
-
_hoisted_2$
|
|
9391
|
+
const _hoisted_3$e = [
|
|
9392
|
+
_hoisted_2$n
|
|
9355
9393
|
];
|
|
9356
9394
|
|
|
9357
9395
|
function _sfc_render$b(_ctx, _cache) {
|
|
9358
|
-
return (openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$
|
|
9396
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$e))
|
|
9359
9397
|
}
|
|
9360
9398
|
const IconClose = /*#__PURE__*/_export_sfc(_sfc_main$r, [['render',_sfc_render$b]]);
|
|
9361
9399
|
|
|
@@ -9369,237 +9407,237 @@ const _hoisted_1$o = {
|
|
|
9369
9407
|
stroke: "currentColor",
|
|
9370
9408
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9371
9409
|
};
|
|
9372
|
-
const _hoisted_2$
|
|
9373
|
-
const _hoisted_8$
|
|
9374
|
-
_hoisted_2$
|
|
9410
|
+
const _hoisted_2$m = /*#__PURE__*/createStaticVNode("<line x1=\"5\" y1=\"1.08447\" x2=\"1\" y2=\"1.08447\" stroke-width=\"2\" stroke-linecap=\"round\"></line><line x1=\"23\" y1=\"1.04248\" x2=\"11\" y2=\"1.04248\" stroke-width=\"2\" stroke-linecap=\"round\"></line><line x1=\"23\" y1=\"9.08447\" x2=\"14\" y2=\"9.08447\" stroke-width=\"2\" stroke-linecap=\"round\"></line><line x1=\"8\" y1=\"9.14905\" x2=\"4\" y2=\"9.14905\" stroke-width=\"2\" stroke-linecap=\"round\"></line><line x1=\"23\" y1=\"17.149\" x2=\"10.9993\" y2=\"17.149\" stroke-width=\"2\" stroke-linecap=\"round\"></line><line x1=\"5\" y1=\"17.2429\" x2=\"1\" y2=\"17.2429\" stroke-width=\"2\" stroke-linecap=\"round\"></line>", 6);
|
|
9411
|
+
const _hoisted_8$2 = [
|
|
9412
|
+
_hoisted_2$m
|
|
9375
9413
|
];
|
|
9376
9414
|
|
|
9377
9415
|
function _sfc_render$a(_ctx, _cache) {
|
|
9378
|
-
return (openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_8$
|
|
9416
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_8$2))
|
|
9379
9417
|
}
|
|
9380
9418
|
const IconSummary = /*#__PURE__*/_export_sfc(_sfc_main$q, [['render',_sfc_render$a]]);
|
|
9381
9419
|
|
|
9382
|
-
const state$4 = reactive({
|
|
9383
|
-
references: [],
|
|
9384
|
-
reference: null
|
|
9385
|
-
});
|
|
9386
|
-
|
|
9387
|
-
const references = computed(() => state$4.references);
|
|
9388
|
-
|
|
9389
|
-
function setReferences(references) {
|
|
9390
|
-
state$4.references = references;
|
|
9391
|
-
}
|
|
9392
|
-
|
|
9393
|
-
const reference = computed(() => state$4.reference);
|
|
9394
|
-
|
|
9395
|
-
function setHighlightedReference(reference) {
|
|
9396
|
-
state$4.reference = reference;
|
|
9397
|
-
}
|
|
9398
|
-
|
|
9399
|
-
function applyReferences(contentRaw) {
|
|
9400
|
-
if (state$4.references.length === 0 || !contentRaw)
|
|
9401
|
-
return contentRaw
|
|
9402
|
-
|
|
9403
|
-
return state$4.references.reduce((content, reference) => {
|
|
9404
|
-
if (!content) return content
|
|
9405
|
-
|
|
9406
|
-
if (content.includes(reference.cit)) {
|
|
9407
|
-
const regex = new RegExp(reference.cit, 'g');
|
|
9408
|
-
const newContent = content.replace(
|
|
9409
|
-
regex,
|
|
9410
|
-
`<span class='reference reference-${reference.cit.replaceAll(' ', '')}'>
|
|
9411
|
-
${reference.cit}
|
|
9412
|
-
</span>`
|
|
9413
|
-
);
|
|
9414
|
-
return newContent
|
|
9415
|
-
}
|
|
9416
|
-
return content
|
|
9417
|
-
}, contentRaw)
|
|
9418
|
-
}
|
|
9419
|
-
|
|
9420
|
-
function applyReference(event) {
|
|
9421
|
-
const classList = event.target.closest('.reference')?.classList.value.split(' ');
|
|
9422
|
-
|
|
9423
|
-
if (classList.length === 0)
|
|
9424
|
-
return
|
|
9425
|
-
|
|
9426
|
-
const target = classList.find(item => item.startsWith('reference-'));
|
|
9427
|
-
|
|
9428
|
-
if (target) {
|
|
9429
|
-
const ref = state$4.references.find(
|
|
9430
|
-
item => target && item.cit.replaceAll(' ', '') === target.replace('reference-', '')
|
|
9431
|
-
);
|
|
9432
|
-
if (ref) {
|
|
9433
|
-
state$4.reference = ref;
|
|
9434
|
-
}
|
|
9435
|
-
}
|
|
9436
|
-
|
|
9437
|
-
}
|
|
9438
|
-
|
|
9439
|
-
const useReferences = {
|
|
9440
|
-
references,
|
|
9441
|
-
reference,
|
|
9442
|
-
applyReference,
|
|
9443
|
-
setReferences,
|
|
9444
|
-
setHighlightedReference,
|
|
9445
|
-
applyReferences,
|
|
9420
|
+
const state$4 = reactive({
|
|
9421
|
+
references: [],
|
|
9422
|
+
reference: null
|
|
9423
|
+
});
|
|
9424
|
+
|
|
9425
|
+
const references = computed(() => state$4.references);
|
|
9426
|
+
|
|
9427
|
+
function setReferences(references) {
|
|
9428
|
+
state$4.references = references;
|
|
9429
|
+
}
|
|
9430
|
+
|
|
9431
|
+
const reference = computed(() => state$4.reference);
|
|
9432
|
+
|
|
9433
|
+
function setHighlightedReference(reference) {
|
|
9434
|
+
state$4.reference = reference;
|
|
9435
|
+
}
|
|
9436
|
+
|
|
9437
|
+
function applyReferences(contentRaw) {
|
|
9438
|
+
if (state$4.references.length === 0 || !contentRaw)
|
|
9439
|
+
return contentRaw
|
|
9440
|
+
|
|
9441
|
+
return state$4.references.reduce((content, reference) => {
|
|
9442
|
+
if (!content) return content
|
|
9443
|
+
|
|
9444
|
+
if (content.includes(reference.cit)) {
|
|
9445
|
+
const regex = new RegExp(reference.cit, 'g');
|
|
9446
|
+
const newContent = content.replace(
|
|
9447
|
+
regex,
|
|
9448
|
+
`<span class='reference reference-${reference.cit.replaceAll(' ', '')}'>
|
|
9449
|
+
${reference.cit}
|
|
9450
|
+
</span>`
|
|
9451
|
+
);
|
|
9452
|
+
return newContent
|
|
9453
|
+
}
|
|
9454
|
+
return content
|
|
9455
|
+
}, contentRaw)
|
|
9456
|
+
}
|
|
9457
|
+
|
|
9458
|
+
function applyReference(event) {
|
|
9459
|
+
const classList = event.target.closest('.reference')?.classList.value.split(' ');
|
|
9460
|
+
|
|
9461
|
+
if (classList.length === 0)
|
|
9462
|
+
return
|
|
9463
|
+
|
|
9464
|
+
const target = classList.find(item => item.startsWith('reference-'));
|
|
9465
|
+
|
|
9466
|
+
if (target) {
|
|
9467
|
+
const ref = state$4.references.find(
|
|
9468
|
+
item => target && item.cit.replaceAll(' ', '') === target.replace('reference-', '')
|
|
9469
|
+
);
|
|
9470
|
+
if (ref) {
|
|
9471
|
+
state$4.reference = ref;
|
|
9472
|
+
}
|
|
9473
|
+
}
|
|
9474
|
+
|
|
9475
|
+
}
|
|
9476
|
+
|
|
9477
|
+
const useReferences = {
|
|
9478
|
+
references,
|
|
9479
|
+
reference,
|
|
9480
|
+
applyReference,
|
|
9481
|
+
setReferences,
|
|
9482
|
+
setHighlightedReference,
|
|
9483
|
+
applyReferences,
|
|
9446
9484
|
};
|
|
9447
9485
|
|
|
9448
|
-
const state$3 = reactive({
|
|
9449
|
-
footnotes: [],
|
|
9450
|
-
showFootnotes: false,
|
|
9451
|
-
footnote: null
|
|
9452
|
-
});
|
|
9453
|
-
|
|
9454
|
-
const footnotes = computed(() => state$3.footnotes);
|
|
9455
|
-
function setFootnotes(footnotes) {
|
|
9456
|
-
state$3.footnotes = footnotes;
|
|
9457
|
-
}
|
|
9458
|
-
|
|
9459
|
-
const showFootnotes = computed(() => state$3.showFootnotes);
|
|
9460
|
-
function setShowFootnotes(value) {
|
|
9461
|
-
state$3.showFootnotes = value;
|
|
9462
|
-
}
|
|
9463
|
-
|
|
9464
|
-
const footnote = computed(() => state$3.footnote);
|
|
9465
|
-
function setHighlightedFootnote(footnote) {
|
|
9466
|
-
state$3.footnote = footnote;
|
|
9467
|
-
}
|
|
9468
|
-
|
|
9469
|
-
function applyFootnote(event) {
|
|
9470
|
-
const classList = event.target.closest('.footnote')?.classList.value.split(' ');
|
|
9471
|
-
|
|
9472
|
-
if (classList.length === 0)
|
|
9473
|
-
return
|
|
9474
|
-
|
|
9475
|
-
const footnoteTarget = classList.find(
|
|
9476
|
-
item => item.includes('footnote') && item !== 'footnote'
|
|
9477
|
-
);
|
|
9478
|
-
|
|
9479
|
-
if (footnoteTarget) {
|
|
9480
|
-
const ref = state$3.footnotes.find(item => item.id === footnoteTarget);
|
|
9481
|
-
if (ref) {
|
|
9482
|
-
state$3.footnote = ref;
|
|
9483
|
-
}
|
|
9484
|
-
}
|
|
9485
|
-
}
|
|
9486
|
-
|
|
9487
|
-
const useFootnotes = {
|
|
9488
|
-
footnotes,
|
|
9489
|
-
footnote,
|
|
9490
|
-
setFootnotes,
|
|
9491
|
-
applyFootnote,
|
|
9492
|
-
setHighlightedFootnote,
|
|
9493
|
-
setShowFootnotes,
|
|
9494
|
-
showFootnotes
|
|
9486
|
+
const state$3 = reactive({
|
|
9487
|
+
footnotes: [],
|
|
9488
|
+
showFootnotes: false,
|
|
9489
|
+
footnote: null
|
|
9490
|
+
});
|
|
9491
|
+
|
|
9492
|
+
const footnotes = computed(() => state$3.footnotes);
|
|
9493
|
+
function setFootnotes(footnotes) {
|
|
9494
|
+
state$3.footnotes = footnotes;
|
|
9495
|
+
}
|
|
9496
|
+
|
|
9497
|
+
const showFootnotes = computed(() => state$3.showFootnotes);
|
|
9498
|
+
function setShowFootnotes(value) {
|
|
9499
|
+
state$3.showFootnotes = value;
|
|
9500
|
+
}
|
|
9501
|
+
|
|
9502
|
+
const footnote = computed(() => state$3.footnote);
|
|
9503
|
+
function setHighlightedFootnote(footnote) {
|
|
9504
|
+
state$3.footnote = footnote;
|
|
9505
|
+
}
|
|
9506
|
+
|
|
9507
|
+
function applyFootnote(event) {
|
|
9508
|
+
const classList = event.target.closest('.footnote')?.classList.value.split(' ');
|
|
9509
|
+
|
|
9510
|
+
if (classList.length === 0)
|
|
9511
|
+
return
|
|
9512
|
+
|
|
9513
|
+
const footnoteTarget = classList.find(
|
|
9514
|
+
item => item.includes('footnote') && item !== 'footnote'
|
|
9515
|
+
);
|
|
9516
|
+
|
|
9517
|
+
if (footnoteTarget) {
|
|
9518
|
+
const ref = state$3.footnotes.find(item => item.id === footnoteTarget);
|
|
9519
|
+
if (ref) {
|
|
9520
|
+
state$3.footnote = ref;
|
|
9521
|
+
}
|
|
9522
|
+
}
|
|
9523
|
+
}
|
|
9524
|
+
|
|
9525
|
+
const useFootnotes = {
|
|
9526
|
+
footnotes,
|
|
9527
|
+
footnote,
|
|
9528
|
+
setFootnotes,
|
|
9529
|
+
applyFootnote,
|
|
9530
|
+
setHighlightedFootnote,
|
|
9531
|
+
setShowFootnotes,
|
|
9532
|
+
showFootnotes
|
|
9495
9533
|
};
|
|
9496
9534
|
|
|
9497
|
-
const state$2 = reactive({
|
|
9498
|
-
summary: null,
|
|
9499
|
-
content: null
|
|
9500
|
-
});
|
|
9501
|
-
|
|
9502
|
-
const content = computed(() => state$2.content);
|
|
9503
|
-
const summary = computed(() => state$2.summary);
|
|
9504
|
-
const context = computed(() => {
|
|
9505
|
-
const current = state$2.summary.findIndex(
|
|
9506
|
-
chapter => window.location.href.includes(chapter.link)
|
|
9507
|
-
);
|
|
9508
|
-
return {
|
|
9509
|
-
chapter: state$2.summary[current],
|
|
9510
|
-
surround: {
|
|
9511
|
-
before: current - 1 >= 0
|
|
9512
|
-
? state$2.summary[current - 1]
|
|
9513
|
-
: null,
|
|
9514
|
-
after: current + 1 <= state$2.summary.length
|
|
9515
|
-
? state$2.summary[current + 1]
|
|
9516
|
-
: null,
|
|
9517
|
-
}
|
|
9518
|
-
}
|
|
9519
|
-
});
|
|
9520
|
-
|
|
9521
|
-
async function initContent(contentString, contentWrapper) {
|
|
9522
|
-
const { setReferences, applyReferences } = useReferences;
|
|
9523
|
-
const { setFootnotes } = useFootnotes;
|
|
9524
|
-
|
|
9525
|
-
const content = contentString
|
|
9526
|
-
? JSON.parse(contentString)
|
|
9527
|
-
: null;
|
|
9528
|
-
|
|
9529
|
-
if (content?.summary)
|
|
9530
|
-
state$2.summary = content.summary;
|
|
9531
|
-
|
|
9532
|
-
if (content?.references)
|
|
9533
|
-
setReferences(content.references);
|
|
9534
|
-
|
|
9535
|
-
if (content?.footnotes)
|
|
9536
|
-
setFootnotes(content.footnotes);
|
|
9537
|
-
|
|
9538
|
-
// if content comes from file, apply references to file
|
|
9539
|
-
if (content?.summary?.[0]?.file) {
|
|
9540
|
-
const text = await getContent(content.summary?.[0]?.file);
|
|
9541
|
-
const newContent = content.applyReferences
|
|
9542
|
-
? applyReferences(text)
|
|
9543
|
-
: text;
|
|
9544
|
-
state$2.content = newContent;
|
|
9545
|
-
|
|
9546
|
-
// else if content comes from slot, apply references to slot
|
|
9547
|
-
} else {
|
|
9548
|
-
const content = document.querySelectorAll('[slot="content"]');
|
|
9549
|
-
|
|
9550
|
-
if (content && content?.[0]?.innerHTML && content.applyReferences) {
|
|
9551
|
-
const newContent = applyReferences(content?.[0]?.innerHTML);
|
|
9552
|
-
if (newContent) {
|
|
9553
|
-
content[0].innerHTML = newContent;
|
|
9554
|
-
}
|
|
9555
|
-
}
|
|
9556
|
-
}
|
|
9557
|
-
|
|
9558
|
-
// after applying references above, now we start to listen to its clicks
|
|
9559
|
-
listenToClicks(contentWrapper);
|
|
9560
|
-
}
|
|
9561
|
-
|
|
9562
|
-
async function getContent(location) {
|
|
9563
|
-
try {
|
|
9564
|
-
const dataRef = await fetch(location);
|
|
9565
|
-
const text = await dataRef.text();
|
|
9566
|
-
return text
|
|
9567
|
-
} catch (err) {
|
|
9568
|
-
console.log({ err });
|
|
9569
|
-
state$2.content = 'Ops, não foi possível carregar o arquivo solicitado.';
|
|
9570
|
-
}
|
|
9571
|
-
}
|
|
9572
|
-
|
|
9573
|
-
function applyContent(text) {
|
|
9574
|
-
const { applyReferences } = useReferences;
|
|
9575
|
-
const newContent = applyReferences(text);
|
|
9576
|
-
state$2.content = newContent;
|
|
9577
|
-
}
|
|
9578
|
-
|
|
9579
|
-
function listenToClicks(contentWrapper) {
|
|
9580
|
-
setTimeout(() => {
|
|
9581
|
-
useEventListener(contentWrapper, 'click', getClickedReferenceData);
|
|
9582
|
-
}, 100);
|
|
9583
|
-
}
|
|
9584
|
-
|
|
9585
|
-
function getClickedReferenceData(event) {
|
|
9586
|
-
if (event.target.closest('.reference')) {
|
|
9587
|
-
useReferences.applyReference(event);
|
|
9588
|
-
}
|
|
9589
|
-
|
|
9590
|
-
if (event.target.closest('.footnote')) {
|
|
9591
|
-
useFootnotes.applyFootnote(event);
|
|
9592
|
-
}
|
|
9593
|
-
}
|
|
9594
|
-
|
|
9595
|
-
const useTextContent = {
|
|
9596
|
-
content,
|
|
9597
|
-
summary,
|
|
9598
|
-
initContent,
|
|
9599
|
-
getContent,
|
|
9600
|
-
applyContent,
|
|
9601
|
-
listenToClicks,
|
|
9602
|
-
context
|
|
9535
|
+
const state$2 = reactive({
|
|
9536
|
+
summary: null,
|
|
9537
|
+
content: null
|
|
9538
|
+
});
|
|
9539
|
+
|
|
9540
|
+
const content = computed(() => state$2.content);
|
|
9541
|
+
const summary = computed(() => state$2.summary);
|
|
9542
|
+
const context = computed(() => {
|
|
9543
|
+
const current = state$2.summary.findIndex(
|
|
9544
|
+
chapter => window.location.href.includes(chapter.link)
|
|
9545
|
+
);
|
|
9546
|
+
return {
|
|
9547
|
+
chapter: state$2.summary[current],
|
|
9548
|
+
surround: {
|
|
9549
|
+
before: current - 1 >= 0
|
|
9550
|
+
? state$2.summary[current - 1]
|
|
9551
|
+
: null,
|
|
9552
|
+
after: current + 1 <= state$2.summary.length
|
|
9553
|
+
? state$2.summary[current + 1]
|
|
9554
|
+
: null,
|
|
9555
|
+
}
|
|
9556
|
+
}
|
|
9557
|
+
});
|
|
9558
|
+
|
|
9559
|
+
async function initContent(contentString, contentWrapper) {
|
|
9560
|
+
const { setReferences, applyReferences } = useReferences;
|
|
9561
|
+
const { setFootnotes } = useFootnotes;
|
|
9562
|
+
|
|
9563
|
+
const content = contentString
|
|
9564
|
+
? JSON.parse(contentString)
|
|
9565
|
+
: null;
|
|
9566
|
+
|
|
9567
|
+
if (content?.summary)
|
|
9568
|
+
state$2.summary = content.summary;
|
|
9569
|
+
|
|
9570
|
+
if (content?.references)
|
|
9571
|
+
setReferences(content.references);
|
|
9572
|
+
|
|
9573
|
+
if (content?.footnotes)
|
|
9574
|
+
setFootnotes(content.footnotes);
|
|
9575
|
+
|
|
9576
|
+
// if content comes from file, apply references to file
|
|
9577
|
+
if (content?.summary?.[0]?.file) {
|
|
9578
|
+
const text = await getContent(content.summary?.[0]?.file);
|
|
9579
|
+
const newContent = content.applyReferences
|
|
9580
|
+
? applyReferences(text)
|
|
9581
|
+
: text;
|
|
9582
|
+
state$2.content = newContent;
|
|
9583
|
+
|
|
9584
|
+
// else if content comes from slot, apply references to slot
|
|
9585
|
+
} else {
|
|
9586
|
+
const content = document.querySelectorAll('[slot="content"]');
|
|
9587
|
+
|
|
9588
|
+
if (content && content?.[0]?.innerHTML && content.applyReferences) {
|
|
9589
|
+
const newContent = applyReferences(content?.[0]?.innerHTML);
|
|
9590
|
+
if (newContent) {
|
|
9591
|
+
content[0].innerHTML = newContent;
|
|
9592
|
+
}
|
|
9593
|
+
}
|
|
9594
|
+
}
|
|
9595
|
+
|
|
9596
|
+
// after applying references above, now we start to listen to its clicks
|
|
9597
|
+
listenToClicks(contentWrapper);
|
|
9598
|
+
}
|
|
9599
|
+
|
|
9600
|
+
async function getContent(location) {
|
|
9601
|
+
try {
|
|
9602
|
+
const dataRef = await fetch(location);
|
|
9603
|
+
const text = await dataRef.text();
|
|
9604
|
+
return text
|
|
9605
|
+
} catch (err) {
|
|
9606
|
+
console.log({ err });
|
|
9607
|
+
state$2.content = 'Ops, não foi possível carregar o arquivo solicitado.';
|
|
9608
|
+
}
|
|
9609
|
+
}
|
|
9610
|
+
|
|
9611
|
+
function applyContent(text) {
|
|
9612
|
+
const { applyReferences } = useReferences;
|
|
9613
|
+
const newContent = applyReferences(text);
|
|
9614
|
+
state$2.content = newContent;
|
|
9615
|
+
}
|
|
9616
|
+
|
|
9617
|
+
function listenToClicks(contentWrapper) {
|
|
9618
|
+
setTimeout(() => {
|
|
9619
|
+
useEventListener(contentWrapper, 'click', getClickedReferenceData);
|
|
9620
|
+
}, 100);
|
|
9621
|
+
}
|
|
9622
|
+
|
|
9623
|
+
function getClickedReferenceData(event) {
|
|
9624
|
+
if (event.target.closest('.reference')) {
|
|
9625
|
+
useReferences.applyReference(event);
|
|
9626
|
+
}
|
|
9627
|
+
|
|
9628
|
+
if (event.target.closest('.footnote')) {
|
|
9629
|
+
useFootnotes.applyFootnote(event);
|
|
9630
|
+
}
|
|
9631
|
+
}
|
|
9632
|
+
|
|
9633
|
+
const useTextContent = {
|
|
9634
|
+
content,
|
|
9635
|
+
summary,
|
|
9636
|
+
initContent,
|
|
9637
|
+
getContent,
|
|
9638
|
+
applyContent,
|
|
9639
|
+
listenToClicks,
|
|
9640
|
+
context
|
|
9603
9641
|
};
|
|
9604
9642
|
|
|
9605
9643
|
const state$1 = reactive({
|
|
@@ -9632,141 +9670,143 @@ const useEstimatePages = {
|
|
|
9632
9670
|
estimate
|
|
9633
9671
|
};
|
|
9634
9672
|
|
|
9635
|
-
const isSafari = [
|
|
9636
|
-
'iPad Simulator',
|
|
9637
|
-
'iPhone Simulator',
|
|
9638
|
-
'iPod Simulator',
|
|
9639
|
-
'iPad',
|
|
9640
|
-
'iPhone',
|
|
9641
|
-
'iPod'
|
|
9642
|
-
].includes(navigator.platform)
|
|
9643
|
-
|| (navigator.userAgent.includes("Mac") && "ontouchend" in document);
|
|
9644
|
-
|
|
9645
|
-
const isApple = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
|
|
9646
|
-
|
|
9647
|
-
const useBrowser = {
|
|
9648
|
-
isSafari,
|
|
9649
|
-
isApple
|
|
9673
|
+
const isSafari = [
|
|
9674
|
+
'iPad Simulator',
|
|
9675
|
+
'iPhone Simulator',
|
|
9676
|
+
'iPod Simulator',
|
|
9677
|
+
'iPad',
|
|
9678
|
+
'iPhone',
|
|
9679
|
+
'iPod'
|
|
9680
|
+
].includes(navigator.platform)
|
|
9681
|
+
|| (navigator.userAgent.includes("Mac") && "ontouchend" in document);
|
|
9682
|
+
|
|
9683
|
+
const isApple = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
|
|
9684
|
+
|
|
9685
|
+
const useBrowser = {
|
|
9686
|
+
isSafari,
|
|
9687
|
+
isApple
|
|
9650
9688
|
};
|
|
9651
9689
|
|
|
9652
|
-
const state = reactive({
|
|
9653
|
-
currentPage: 1,
|
|
9654
|
-
nextTry: 0,
|
|
9655
|
-
prevTry: 0,
|
|
9656
|
-
willRedirect: false
|
|
9657
|
-
});
|
|
9658
|
-
|
|
9659
|
-
const currentPage = computed(() => state.currentPage);
|
|
9660
|
-
const totalPages = computed(() => useEstimatePages.totalPages.value);
|
|
9661
|
-
|
|
9662
|
-
function init(viewport, content) {
|
|
9663
|
-
useEstimatePages.estimate(viewport, content);
|
|
9664
|
-
|
|
9665
|
-
// check if there is a query string for oring, and
|
|
9666
|
-
// if previews chapter was the next one. If so,
|
|
9667
|
-
// start from the end, as we are coming backwards
|
|
9668
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
9669
|
-
const origin = urlParams.get('origin');
|
|
9670
|
-
if (origin && origin === 'next') {
|
|
9671
|
-
setTimeout(() => {
|
|
9672
|
-
state.currentPage = totalPages.value;
|
|
9673
|
-
}, 200);
|
|
9674
|
-
}
|
|
9675
|
-
|
|
9676
|
-
if (!useBrowser.isApple && !useBrowser.isSafari) {
|
|
9677
|
-
addEventListener('wheel', onWheel);
|
|
9678
|
-
}
|
|
9679
|
-
|
|
9680
|
-
setInterval(() => {
|
|
9681
|
-
useEstimatePages.estimate(viewport, content);
|
|
9682
|
-
}, 5000);
|
|
9683
|
-
}
|
|
9684
|
-
|
|
9685
|
-
// when resizing the viewport, totalPages change
|
|
9686
|
-
// this watch is to currentPage inside totalPages range
|
|
9687
|
-
watch(totalPages, () => {
|
|
9688
|
-
if (totalPages.value < currentPage.value) {
|
|
9689
|
-
set(totalPages.value);
|
|
9690
|
-
}
|
|
9691
|
-
});
|
|
9692
|
-
|
|
9693
|
-
// navigate by increase/decrease value
|
|
9694
|
-
function next(usingScroll = false) {
|
|
9695
|
-
if (!useReaderSettings.blocked.value) {
|
|
9696
|
-
if ((state.currentPage + 1) <= totalPages.value) {
|
|
9697
|
-
state.currentPage = state.currentPage + 1;
|
|
9698
|
-
} else {
|
|
9699
|
-
// prevent going too fast to next chapter on
|
|
9700
|
-
// stronger scroll
|
|
9701
|
-
if (usingScroll && state.nextTry < 4) {
|
|
9702
|
-
state.nextTry += 1;
|
|
9703
|
-
return
|
|
9704
|
-
}
|
|
9705
|
-
|
|
9706
|
-
if (state.willRedirect === false) {
|
|
9707
|
-
const context = useTextContent.context.value;
|
|
9708
|
-
if (context.surround?.after) {
|
|
9709
|
-
window.location.href = context.surround.after.link + (`?origin=prev`);
|
|
9710
|
-
state.willRedirect = true;
|
|
9711
|
-
}
|
|
9712
|
-
}
|
|
9713
|
-
}
|
|
9714
|
-
}
|
|
9715
|
-
}
|
|
9716
|
-
onKeyStroke('ArrowRight', (e) => {
|
|
9717
|
-
e.preventDefault();
|
|
9718
|
-
next();
|
|
9719
|
-
});
|
|
9720
|
-
|
|
9721
|
-
function onWheel(event) {
|
|
9722
|
-
if (event.wheelDelta < 0) {
|
|
9723
|
-
next(true);
|
|
9724
|
-
} else {
|
|
9725
|
-
prev(true);
|
|
9726
|
-
}
|
|
9727
|
-
}
|
|
9728
|
-
function prev(usingScroll = false) {
|
|
9729
|
-
if (!useReaderSettings.blocked.value) {
|
|
9730
|
-
if ((state.currentPage - 1) > 0) {
|
|
9731
|
-
state.currentPage = state.currentPage - 1;
|
|
9732
|
-
} else {
|
|
9733
|
-
// prevent going too fast to prev chapter on
|
|
9734
|
-
// stronger scroll
|
|
9735
|
-
if (usingScroll && state.prevTry < 4) {
|
|
9736
|
-
state.prevTry += 1;
|
|
9737
|
-
return
|
|
9738
|
-
}
|
|
9739
|
-
|
|
9740
|
-
if (state.willRedirect === false) {
|
|
9741
|
-
const context = useTextContent.context.value;
|
|
9742
|
-
if (context.surround?.before) {
|
|
9743
|
-
window.location.href = context.surround.before.link + (`?origin=next`);
|
|
9744
|
-
}
|
|
9745
|
-
state.willRedirect = true;
|
|
9746
|
-
}
|
|
9747
|
-
}
|
|
9748
|
-
}
|
|
9749
|
-
}
|
|
9750
|
-
onKeyStroke('ArrowLeft', (e) => {
|
|
9751
|
-
e.preventDefault();
|
|
9752
|
-
prev();
|
|
9753
|
-
});
|
|
9754
|
-
|
|
9755
|
-
// navigate to specific page
|
|
9756
|
-
function set(val) {
|
|
9757
|
-
state.currentPage = val;
|
|
9758
|
-
}
|
|
9759
|
-
|
|
9760
|
-
const usePagination = {
|
|
9761
|
-
currentPage,
|
|
9762
|
-
totalPages,
|
|
9763
|
-
next,
|
|
9764
|
-
prev,
|
|
9765
|
-
init,
|
|
9766
|
-
set
|
|
9690
|
+
const state = reactive({
|
|
9691
|
+
currentPage: 1,
|
|
9692
|
+
nextTry: 0,
|
|
9693
|
+
prevTry: 0,
|
|
9694
|
+
willRedirect: false
|
|
9695
|
+
});
|
|
9696
|
+
|
|
9697
|
+
const currentPage = computed(() => state.currentPage);
|
|
9698
|
+
const totalPages = computed(() => useEstimatePages.totalPages.value);
|
|
9699
|
+
|
|
9700
|
+
function init(viewport, content) {
|
|
9701
|
+
useEstimatePages.estimate(viewport, content);
|
|
9702
|
+
|
|
9703
|
+
// check if there is a query string for oring, and
|
|
9704
|
+
// if previews chapter was the next one. If so,
|
|
9705
|
+
// start from the end, as we are coming backwards
|
|
9706
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
9707
|
+
const origin = urlParams.get('origin');
|
|
9708
|
+
if (origin && origin === 'next') {
|
|
9709
|
+
setTimeout(() => {
|
|
9710
|
+
state.currentPage = totalPages.value;
|
|
9711
|
+
}, 200);
|
|
9712
|
+
}
|
|
9713
|
+
|
|
9714
|
+
if (!useBrowser.isApple && !useBrowser.isSafari) {
|
|
9715
|
+
addEventListener('wheel', onWheel);
|
|
9716
|
+
}
|
|
9717
|
+
|
|
9718
|
+
setInterval(() => {
|
|
9719
|
+
useEstimatePages.estimate(viewport, content);
|
|
9720
|
+
}, 5000);
|
|
9721
|
+
}
|
|
9722
|
+
|
|
9723
|
+
// when resizing the viewport, totalPages change
|
|
9724
|
+
// this watch is to currentPage inside totalPages range
|
|
9725
|
+
watch(totalPages, () => {
|
|
9726
|
+
if (totalPages.value < currentPage.value) {
|
|
9727
|
+
set(totalPages.value);
|
|
9728
|
+
}
|
|
9729
|
+
});
|
|
9730
|
+
|
|
9731
|
+
// navigate by increase/decrease value
|
|
9732
|
+
function next(usingScroll = false) {
|
|
9733
|
+
if (!useReaderSettings.blocked.value) {
|
|
9734
|
+
if ((state.currentPage + 1) <= totalPages.value) {
|
|
9735
|
+
state.currentPage = state.currentPage + 1;
|
|
9736
|
+
} else {
|
|
9737
|
+
// prevent going too fast to next chapter on
|
|
9738
|
+
// stronger scroll
|
|
9739
|
+
if (usingScroll && state.nextTry < 4) {
|
|
9740
|
+
state.nextTry += 1;
|
|
9741
|
+
return
|
|
9742
|
+
}
|
|
9743
|
+
|
|
9744
|
+
if (state.willRedirect === false) {
|
|
9745
|
+
const context = useTextContent.context.value;
|
|
9746
|
+
if (context.surround?.after) {
|
|
9747
|
+
window.location.href = context.surround.after.link + (`?origin=prev`);
|
|
9748
|
+
state.willRedirect = true;
|
|
9749
|
+
}
|
|
9750
|
+
}
|
|
9751
|
+
}
|
|
9752
|
+
}
|
|
9753
|
+
}
|
|
9754
|
+
onKeyStroke('ArrowRight', (e) => {
|
|
9755
|
+
e.preventDefault();
|
|
9756
|
+
next();
|
|
9757
|
+
});
|
|
9758
|
+
|
|
9759
|
+
function onWheel(event) {
|
|
9760
|
+
if (event.wheelDelta < 0) {
|
|
9761
|
+
next(true);
|
|
9762
|
+
} else {
|
|
9763
|
+
prev(true);
|
|
9764
|
+
}
|
|
9765
|
+
}
|
|
9766
|
+
function prev(usingScroll = false) {
|
|
9767
|
+
if (!useReaderSettings.blocked.value) {
|
|
9768
|
+
if ((state.currentPage - 1) > 0) {
|
|
9769
|
+
state.currentPage = state.currentPage - 1;
|
|
9770
|
+
} else {
|
|
9771
|
+
// prevent going too fast to prev chapter on
|
|
9772
|
+
// stronger scroll
|
|
9773
|
+
if (usingScroll && state.prevTry < 4) {
|
|
9774
|
+
state.prevTry += 1;
|
|
9775
|
+
return
|
|
9776
|
+
}
|
|
9777
|
+
|
|
9778
|
+
if (state.willRedirect === false) {
|
|
9779
|
+
const context = useTextContent.context.value;
|
|
9780
|
+
if (context.surround?.before) {
|
|
9781
|
+
window.location.href = context.surround.before.link + (`?origin=next`);
|
|
9782
|
+
}
|
|
9783
|
+
state.willRedirect = true;
|
|
9784
|
+
}
|
|
9785
|
+
}
|
|
9786
|
+
}
|
|
9787
|
+
}
|
|
9788
|
+
onKeyStroke('ArrowLeft', (e) => {
|
|
9789
|
+
e.preventDefault();
|
|
9790
|
+
prev();
|
|
9791
|
+
});
|
|
9792
|
+
|
|
9793
|
+
// navigate to specific page
|
|
9794
|
+
function set(val) {
|
|
9795
|
+
state.currentPage = val;
|
|
9796
|
+
}
|
|
9797
|
+
|
|
9798
|
+
const usePagination = {
|
|
9799
|
+
currentPage,
|
|
9800
|
+
totalPages,
|
|
9801
|
+
next,
|
|
9802
|
+
prev,
|
|
9803
|
+
init,
|
|
9804
|
+
set
|
|
9767
9805
|
};
|
|
9768
9806
|
|
|
9769
9807
|
const _hoisted_1$n = ["role"];
|
|
9808
|
+
const _hoisted_2$l = { class: "item-title" };
|
|
9809
|
+
const _hoisted_3$d = { key: 0 };
|
|
9770
9810
|
|
|
9771
9811
|
const _sfc_main$p = {
|
|
9772
9812
|
__name: 'SummaryDropdown',
|
|
@@ -9782,7 +9822,8 @@ async function getChapter(item) {
|
|
|
9782
9822
|
|
|
9783
9823
|
return (_ctx, _cache) => {
|
|
9784
9824
|
return (openBlock(), createElementBlock("div", {
|
|
9785
|
-
|
|
9825
|
+
id: "summary-menu-dropdown",
|
|
9826
|
+
class: "absolute top-14 py-4 px-3 shadow-lg w-60 md:w-104 text-areia z-10 bg-white",
|
|
9786
9827
|
role: _ctx.Sumário,
|
|
9787
9828
|
"aria-orientation": "vertical",
|
|
9788
9829
|
"aria-labelledby": "summary-menu"
|
|
@@ -9798,7 +9839,10 @@ return (_ctx, _cache) => {
|
|
|
9798
9839
|
onClick: $event => (item.file ? getChapter(item) : null)
|
|
9799
9840
|
}, {
|
|
9800
9841
|
default: withCtx(() => [
|
|
9801
|
-
|
|
9842
|
+
createBaseVNode("span", _hoisted_2$l, toDisplayString(item.title), 1),
|
|
9843
|
+
(item.author)
|
|
9844
|
+
? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(item.author), 1))
|
|
9845
|
+
: createCommentVNode("", true)
|
|
9802
9846
|
]),
|
|
9803
9847
|
_: 2
|
|
9804
9848
|
}, 1032, ["href", "title", "onClick"]))
|
|
@@ -9812,81 +9856,91 @@ return (_ctx, _cache) => {
|
|
|
9812
9856
|
};
|
|
9813
9857
|
|
|
9814
9858
|
const _hoisted_1$m = { class: "flex" };
|
|
9815
|
-
const _hoisted_2$
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
const _hoisted_3$c = ["aria-expanded"];
|
|
9821
|
-
const _hoisted_4$4 = /*#__PURE__*/createBaseVNode("span", { class: "block ml-3" }, " Sumário ", -1);
|
|
9822
|
-
|
|
9859
|
+
const _hoisted_2$k = ["href"];
|
|
9860
|
+
const _hoisted_3$c = { class: "position-relative" };
|
|
9861
|
+
const _hoisted_4$4 = ["aria-expanded"];
|
|
9862
|
+
const _hoisted_5$3 = /*#__PURE__*/createBaseVNode("span", { class: "block ml-3" }, " Sumário ", -1);
|
|
9863
|
+
|
|
9823
9864
|
|
|
9824
9865
|
const _sfc_main$o = {
|
|
9825
9866
|
__name: 'SummaryButton',
|
|
9826
9867
|
setup(__props) {
|
|
9827
|
-
|
|
9828
|
-
const show = ref(false);
|
|
9829
|
-
const button = ref(null);
|
|
9830
|
-
|
|
9831
|
-
const
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9868
|
+
|
|
9869
|
+
const show = ref(false);
|
|
9870
|
+
const button = ref(null);
|
|
9871
|
+
|
|
9872
|
+
const { homeUrl } = useReaderSettings;
|
|
9873
|
+
|
|
9874
|
+
const toggleSummary = () => show.value = !show.value;
|
|
9875
|
+
const hide = () => {
|
|
9876
|
+
if (!useReaderSettings.blocked.value) {
|
|
9877
|
+
show.value = false;
|
|
9878
|
+
}
|
|
9879
|
+
};
|
|
9880
|
+
|
|
9881
|
+
onClickOutside(button, () => hide());
|
|
9882
|
+
onKeyStroke('Escape', () => hide());
|
|
9840
9883
|
|
|
9841
9884
|
return (_ctx, _cache) => {
|
|
9842
9885
|
return (openBlock(), createElementBlock("div", {
|
|
9886
|
+
id: "summary-menu",
|
|
9843
9887
|
ref_key: "button",
|
|
9844
9888
|
ref: button,
|
|
9845
9889
|
class: "relative"
|
|
9846
9890
|
}, [
|
|
9847
9891
|
createBaseVNode("div", _hoisted_1$m, [
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
(
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9892
|
+
(unref(homeUrl))
|
|
9893
|
+
? (openBlock(), createElementBlock("a", {
|
|
9894
|
+
key: 0,
|
|
9895
|
+
href: unref(homeUrl),
|
|
9896
|
+
title: "Homepage",
|
|
9897
|
+
id: "home-button",
|
|
9898
|
+
class: "hidden md:flex items-center border p-3 shadow mr-3 border-white text-white"
|
|
9899
|
+
}, [
|
|
9900
|
+
createVNode(IconHome, { class: "w-6 h-6" })
|
|
9901
|
+
], 8, _hoisted_2$k))
|
|
9902
|
+
: createCommentVNode("", true),
|
|
9903
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
9904
|
+
createBaseVNode("button", {
|
|
9905
|
+
onClick: _cache[0] || (_cache[0] = withModifiers($event => (toggleSummary()), ["prevent"])),
|
|
9906
|
+
class: "border p-3 shadow flex items-center border-white text-white",
|
|
9907
|
+
id: "summary-button",
|
|
9908
|
+
"aria-haspopup": "true",
|
|
9909
|
+
"aria-expanded": show.value
|
|
9910
|
+
}, [
|
|
9911
|
+
(!show.value)
|
|
9912
|
+
? (openBlock(), createBlock(IconSummary, { key: 0 }))
|
|
9913
|
+
: (openBlock(), createBlock(IconClose, {
|
|
9914
|
+
key: 1,
|
|
9915
|
+
class: "w-6 h-6"
|
|
9916
|
+
})),
|
|
9917
|
+
_hoisted_5$3
|
|
9918
|
+
], 8, _hoisted_4$4),
|
|
9919
|
+
createVNode(Transition, {
|
|
9920
|
+
"enter-active-class": "transition ease-out duration-100 transform",
|
|
9921
|
+
"enter-class": "opacity-0 scale-95",
|
|
9922
|
+
"enter-to-class": "opacity-100 scale-100",
|
|
9923
|
+
"leave-active-class": "transition ease-in duration-75 transform",
|
|
9924
|
+
"leave-class": "opacity-100 scale-100",
|
|
9925
|
+
"leave-to-class": "opacity-0 scale-95"
|
|
9926
|
+
}, {
|
|
9927
|
+
default: withCtx(() => [
|
|
9928
|
+
(show.value)
|
|
9929
|
+
? (openBlock(), createBlock(_sfc_main$p, { key: 0 }, {
|
|
9930
|
+
summaryTop: withCtx(() => [
|
|
9931
|
+
renderSlot(_ctx.$slots, "summaryTop")
|
|
9932
|
+
]),
|
|
9933
|
+
summaryBottom: withCtx(() => [
|
|
9934
|
+
renderSlot(_ctx.$slots, "summaryBottom")
|
|
9935
|
+
]),
|
|
9936
|
+
_: 3
|
|
9937
|
+
}))
|
|
9938
|
+
: createCommentVNode("", true)
|
|
9939
|
+
]),
|
|
9940
|
+
_: 3
|
|
9941
|
+
})
|
|
9942
|
+
])
|
|
9943
|
+
])
|
|
9890
9944
|
], 512))
|
|
9891
9945
|
}
|
|
9892
9946
|
}
|
|
@@ -9901,14 +9955,14 @@ const _hoisted_1$l = {
|
|
|
9901
9955
|
viewBox: "0 0 24 24",
|
|
9902
9956
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9903
9957
|
};
|
|
9904
|
-
const _hoisted_2$
|
|
9958
|
+
const _hoisted_2$j = /*#__PURE__*/createBaseVNode("path", {
|
|
9905
9959
|
"stroke-linecap": "round",
|
|
9906
9960
|
"stroke-linejoin": "round",
|
|
9907
9961
|
"stroke-width": "2",
|
|
9908
9962
|
d: "M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"
|
|
9909
9963
|
}, null, -1);
|
|
9910
9964
|
const _hoisted_3$b = [
|
|
9911
|
-
_hoisted_2$
|
|
9965
|
+
_hoisted_2$j
|
|
9912
9966
|
];
|
|
9913
9967
|
|
|
9914
9968
|
function _sfc_render$9(_ctx, _cache) {
|
|
@@ -9924,14 +9978,14 @@ const _hoisted_1$k = {
|
|
|
9924
9978
|
viewBox: "0 0 24 24",
|
|
9925
9979
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9926
9980
|
};
|
|
9927
|
-
const _hoisted_2$
|
|
9981
|
+
const _hoisted_2$i = /*#__PURE__*/createBaseVNode("path", {
|
|
9928
9982
|
"stroke-linecap": "round",
|
|
9929
9983
|
"stroke-linejoin": "round",
|
|
9930
9984
|
"stroke-width": "2",
|
|
9931
9985
|
d: "M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"
|
|
9932
9986
|
}, null, -1);
|
|
9933
9987
|
const _hoisted_3$a = [
|
|
9934
|
-
_hoisted_2$
|
|
9988
|
+
_hoisted_2$i
|
|
9935
9989
|
];
|
|
9936
9990
|
|
|
9937
9991
|
function _sfc_render$8(_ctx, _cache) {
|
|
@@ -9947,7 +10001,7 @@ const _hoisted_1$j = {
|
|
|
9947
10001
|
viewBox: "0 0 24 24",
|
|
9948
10002
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9949
10003
|
};
|
|
9950
|
-
const _hoisted_2$
|
|
10004
|
+
const _hoisted_2$h = /*#__PURE__*/createBaseVNode("path", {
|
|
9951
10005
|
"stroke-linecap": "round",
|
|
9952
10006
|
"stroke-linejoin": "round",
|
|
9953
10007
|
"stroke-width": "2",
|
|
@@ -9960,7 +10014,7 @@ const _hoisted_3$9 = /*#__PURE__*/createBaseVNode("path", {
|
|
|
9960
10014
|
d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
|
|
9961
10015
|
}, null, -1);
|
|
9962
10016
|
const _hoisted_4$3 = [
|
|
9963
|
-
_hoisted_2$
|
|
10017
|
+
_hoisted_2$h,
|
|
9964
10018
|
_hoisted_3$9
|
|
9965
10019
|
];
|
|
9966
10020
|
|
|
@@ -9977,14 +10031,14 @@ const _hoisted_1$i = {
|
|
|
9977
10031
|
viewBox: "0 0 24 24",
|
|
9978
10032
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9979
10033
|
};
|
|
9980
|
-
const _hoisted_2$
|
|
10034
|
+
const _hoisted_2$g = /*#__PURE__*/createBaseVNode("path", {
|
|
9981
10035
|
"stroke-linecap": "round",
|
|
9982
10036
|
"stroke-linejoin": "round",
|
|
9983
10037
|
"stroke-width": "2",
|
|
9984
10038
|
d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
9985
10039
|
}, null, -1);
|
|
9986
10040
|
const _hoisted_3$8 = [
|
|
9987
|
-
_hoisted_2$
|
|
10041
|
+
_hoisted_2$g
|
|
9988
10042
|
];
|
|
9989
10043
|
|
|
9990
10044
|
function _sfc_render$6(_ctx, _cache) {
|
|
@@ -9998,9 +10052,9 @@ const _hoisted_1$h = {
|
|
|
9998
10052
|
viewBox: "0 0 341.5 441.2",
|
|
9999
10053
|
fill: "currentColor"
|
|
10000
10054
|
};
|
|
10001
|
-
const _hoisted_2$
|
|
10055
|
+
const _hoisted_2$f = /*#__PURE__*/createStaticVNode("<rect data-v-acadaaca=\"\" x=\"73.2\" y=\"143.7\" width=\"195.2\" height=\"20\"></rect><rect data-v-acadaaca=\"\" x=\"73.2\" y=\"82.7\" width=\"195.2\" height=\"20\"></rect><rect data-v-acadaaca=\"\" x=\"73.2\" y=\"203.7\" width=\"195.2\" height=\"20\"></rect><rect data-v-acadaaca=\"\" x=\"73.2\" y=\"263.7\" width=\"195.2\" height=\"20\"></rect><rect data-v-acadaaca=\"\" x=\"73.2\" y=\"319\" width=\"195.2\" height=\"20\"></rect><rect data-v-acadaaca=\"\" x=\"0\" y=\"-0.6\" width=\"332.3\" height=\"15\"></rect><rect data-v-acadaaca=\"\" x=\"0\" y=\"426.2\" width=\"332.3\" height=\"15\"></rect><rect data-v-acadaaca=\"\" x=\"-209.4\" y=\"216.2\" transform=\"matrix(6.123234e-17 -1 1 6.123234e-17 -216.2339 231.2339)\" width=\"433.7\" height=\"15\"></rect><rect data-v-acadaaca=\"\" x=\"108\" y=\"211.9\" transform=\"matrix(6.123234e-17 -1 1 6.123234e-17 105.4808 544.1859)\" width=\"433.7\" height=\"15\"></rect>", 9);
|
|
10002
10056
|
const _hoisted_11 = [
|
|
10003
|
-
_hoisted_2$
|
|
10057
|
+
_hoisted_2$f
|
|
10004
10058
|
];
|
|
10005
10059
|
|
|
10006
10060
|
function _sfc_render$5(_ctx, _cache) {
|
|
@@ -10014,9 +10068,9 @@ const _hoisted_1$g = {
|
|
|
10014
10068
|
viewBox: "0 0 653 441.2",
|
|
10015
10069
|
fill: "currentColor"
|
|
10016
10070
|
};
|
|
10017
|
-
const _hoisted_2$
|
|
10071
|
+
const _hoisted_2$e = /*#__PURE__*/createStaticVNode("<rect x=\"73.2\" y=\"143.7\" width=\"195.2\" height=\"20\"></rect><rect x=\"73.2\" y=\"82.7\" width=\"195.2\" height=\"20\"></rect><rect x=\"73.2\" y=\"203.7\" width=\"195.2\" height=\"20\"></rect><rect x=\"73.2\" y=\"263.7\" width=\"195.2\" height=\"20\"></rect><rect x=\"73.2\" y=\"319\" width=\"195.2\" height=\"20\"></rect><rect x=\"384.7\" y=\"143.7\" width=\"195.2\" height=\"20\"></rect><rect x=\"384.7\" y=\"82.7\" width=\"195.2\" height=\"20\"></rect><rect x=\"384.7\" y=\"203.7\" width=\"195.2\" height=\"20\"></rect><rect x=\"384.7\" y=\"263.7\" width=\"195.2\" height=\"20\"></rect><rect x=\"384.7\" y=\"319\" width=\"195.2\" height=\"20\"></rect><path d=\"M0-0.6v7.5v7.5v411.8v14.4v0.6h653v-5v-10V14.4V2.5v-3.1H0z M638,426.2H15V14.4h623V426.2z\"></path>", 11);
|
|
10018
10072
|
const _hoisted_13 = [
|
|
10019
|
-
_hoisted_2$
|
|
10073
|
+
_hoisted_2$e
|
|
10020
10074
|
];
|
|
10021
10075
|
|
|
10022
10076
|
function _sfc_render$4(_ctx, _cache) {
|
|
@@ -10024,41 +10078,46 @@ function _sfc_render$4(_ctx, _cache) {
|
|
|
10024
10078
|
}
|
|
10025
10079
|
const DoubleColumn = /*#__PURE__*/_export_sfc(_sfc_main$i, [['render',_sfc_render$4]]);
|
|
10026
10080
|
|
|
10027
|
-
const _hoisted_1$f = {
|
|
10028
|
-
|
|
10081
|
+
const _hoisted_1$f = {
|
|
10082
|
+
id: "columns-menu",
|
|
10083
|
+
class: "w-full hidden md:grid grid-cols-3 gap-2 mt-3"
|
|
10084
|
+
};
|
|
10085
|
+
const _hoisted_2$d = ["title"];
|
|
10029
10086
|
|
|
10030
10087
|
const _sfc_main$h = {
|
|
10031
10088
|
__name: 'OptionsColumns',
|
|
10032
10089
|
setup(__props) {
|
|
10033
|
-
|
|
10034
|
-
const { columns, setColumns } = useReaderSettings;
|
|
10035
|
-
const { width } = useWindowSize();
|
|
10036
|
-
|
|
10037
|
-
const isSafari = computed(() => {
|
|
10038
|
-
const ua = navigator.userAgent.toLowerCase();
|
|
10039
|
-
return ua.indexOf('safari') !== -1 && ua.indexOf('chrome') === -1
|
|
10040
|
-
});
|
|
10041
|
-
|
|
10090
|
+
|
|
10091
|
+
const { columns, setColumns } = useReaderSettings;
|
|
10092
|
+
const { width } = useWindowSize();
|
|
10093
|
+
|
|
10094
|
+
const isSafari = computed(() => {
|
|
10095
|
+
const ua = navigator.userAgent.toLowerCase();
|
|
10096
|
+
return ua.indexOf('safari') !== -1 && ua.indexOf('chrome') === -1
|
|
10097
|
+
});
|
|
10098
|
+
|
|
10042
10099
|
|
|
10043
10100
|
return (_ctx, _cache) => {
|
|
10044
10101
|
return (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
10045
10102
|
createBaseVNode("button", {
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
'
|
|
10049
|
-
'
|
|
10103
|
+
id: "single-column-button",
|
|
10104
|
+
class: normalizeClass(["col-span-1 text-primary text-center cursor-pointer py-3 rounded-sm border", {
|
|
10105
|
+
'border-gray-300': unref(columns) !== 'single',
|
|
10106
|
+
'bg-primary-extralight border-2 border-primary': unref(columns) === 'single',
|
|
10107
|
+
'opacity-30 cursor-default': unref(isSafari)
|
|
10050
10108
|
}]),
|
|
10051
10109
|
onClick: _cache[0] || (_cache[0] = withModifiers($event => (!unref(isSafari) ? unref(setColumns)('single') : null), ["prevent"])),
|
|
10052
10110
|
"aria-label": "Coluna única",
|
|
10053
10111
|
title: unref(isSafari) ? 'O navegador Safari não aceita visualização de coluna única.' : 'Coluna única'
|
|
10054
10112
|
}, [
|
|
10055
10113
|
createVNode(SingleColumn, { class: "mx-auto h-10 opacity-75" })
|
|
10056
|
-
], 10, _hoisted_2$
|
|
10114
|
+
], 10, _hoisted_2$d),
|
|
10057
10115
|
createBaseVNode("button", {
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
'
|
|
10061
|
-
'
|
|
10116
|
+
id: "double-column-button",
|
|
10117
|
+
class: normalizeClass(["col-span-2 text-primary text-center cursor-pointer py-3 rounded-sm border", {
|
|
10118
|
+
'border-gray-300': unref(columns) !== 'double',
|
|
10119
|
+
'bg-primary-extralight border-2 border-primary': unref(columns) === 'double',
|
|
10120
|
+
'opacity-30': unref(width) < 1024
|
|
10062
10121
|
}]),
|
|
10063
10122
|
onClick: _cache[1] || (_cache[1] = withModifiers($event => (unref(width) >= 1024 && unref(setColumns)('double')), ["prevent"])),
|
|
10064
10123
|
"aria-label": "Coluna dupla",
|
|
@@ -10075,15 +10134,18 @@ return (_ctx, _cache) => {
|
|
|
10075
10134
|
|
|
10076
10135
|
};
|
|
10077
10136
|
|
|
10078
|
-
const _hoisted_1$e = {
|
|
10079
|
-
|
|
10137
|
+
const _hoisted_1$e = {
|
|
10138
|
+
id: "font-family-menu",
|
|
10139
|
+
class: "w-full grid grid-cols-4 gap-2 my-3"
|
|
10140
|
+
};
|
|
10141
|
+
const _hoisted_2$c = ["onClick", "title"];
|
|
10080
10142
|
|
|
10081
10143
|
const _sfc_main$g = {
|
|
10082
10144
|
__name: 'OptionsFontFamily',
|
|
10083
10145
|
setup(__props) {
|
|
10084
|
-
|
|
10085
|
-
const { textFont, fontsOptions, setTextFont } = useReaderSettings;
|
|
10086
|
-
|
|
10146
|
+
|
|
10147
|
+
const { textFont, fontsOptions, setTextFont } = useReaderSettings;
|
|
10148
|
+
|
|
10087
10149
|
|
|
10088
10150
|
return (_ctx, _cache) => {
|
|
10089
10151
|
return (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
@@ -10091,12 +10153,12 @@ return (_ctx, _cache) => {
|
|
|
10091
10153
|
return (openBlock(), createElementBlock("button", {
|
|
10092
10154
|
key: font.name,
|
|
10093
10155
|
onClick: withModifiers($event => (unref(setTextFont)(font.name)), ["prevent"]),
|
|
10094
|
-
class: normalizeClass(["font-light text-lg text-primary tracking-wide border border-urucum w-full h-10 flex justify-center items-center", {
|
|
10095
|
-
'bg-primary-extralight border-2 border-primary': unref(textFont) === font.name
|
|
10156
|
+
class: normalizeClass(["font-light text-lg text-primary tracking-wide border border-urucum w-full h-10 flex justify-center items-center", {
|
|
10157
|
+
'bg-primary-extralight border-2 border-primary': unref(textFont) === font.name
|
|
10096
10158
|
}]),
|
|
10097
10159
|
style: normalizeStyle(`font-family: ${font.name}`),
|
|
10098
10160
|
title: font.label ?? font.name
|
|
10099
|
-
}, " Ff ", 14, _hoisted_2$
|
|
10161
|
+
}, " Ff ", 14, _hoisted_2$c))
|
|
10100
10162
|
}), 128))
|
|
10101
10163
|
]))
|
|
10102
10164
|
}
|
|
@@ -10107,17 +10169,19 @@ return (_ctx, _cache) => {
|
|
|
10107
10169
|
const _sfc_main$f = {
|
|
10108
10170
|
__name: 'OptionsFontSize',
|
|
10109
10171
|
setup(__props) {
|
|
10110
|
-
|
|
10111
|
-
const { fontSize, setFontSize } = useReaderSettings;
|
|
10112
|
-
|
|
10172
|
+
|
|
10173
|
+
const { fontSize, setFontSize } = useReaderSettings;
|
|
10174
|
+
|
|
10113
10175
|
|
|
10114
10176
|
return (_ctx, _cache) => {
|
|
10115
10177
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
10116
10178
|
createBaseVNode("button", {
|
|
10179
|
+
id: "fontsize-add-button",
|
|
10117
10180
|
onClick: _cache[0] || (_cache[0] = withModifiers($event => (unref(setFontSize)(unref(fontSize) + 1)), ["prevent"])),
|
|
10118
10181
|
class: "font-light text-base border border-urucum w-full h-10 flex justify-center items-center"
|
|
10119
10182
|
}, " + A "),
|
|
10120
10183
|
createBaseVNode("button", {
|
|
10184
|
+
id: "fontsize-subtr-button",
|
|
10121
10185
|
onClick: _cache[1] || (_cache[1] = withModifiers($event => (unref(setFontSize)(unref(fontSize) - 1)), ["prevent"])),
|
|
10122
10186
|
class: "font-light text-base border border-urucum w-full h-10 flex justify-center items-center"
|
|
10123
10187
|
}, " - A ")
|
|
@@ -10135,14 +10199,14 @@ const _hoisted_1$d = {
|
|
|
10135
10199
|
viewBox: "0 0 24 24",
|
|
10136
10200
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10137
10201
|
};
|
|
10138
|
-
const _hoisted_2$
|
|
10202
|
+
const _hoisted_2$b = /*#__PURE__*/createBaseVNode("path", {
|
|
10139
10203
|
"stroke-linecap": "round",
|
|
10140
10204
|
"stroke-linejoin": "round",
|
|
10141
10205
|
"stroke-width": "2",
|
|
10142
10206
|
d: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"
|
|
10143
10207
|
}, null, -1);
|
|
10144
10208
|
const _hoisted_3$7 = [
|
|
10145
|
-
_hoisted_2$
|
|
10209
|
+
_hoisted_2$b
|
|
10146
10210
|
];
|
|
10147
10211
|
|
|
10148
10212
|
function _sfc_render$3(_ctx, _cache) {
|
|
@@ -10158,14 +10222,14 @@ const _hoisted_1$c = {
|
|
|
10158
10222
|
viewBox: "0 0 24 24",
|
|
10159
10223
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10160
10224
|
};
|
|
10161
|
-
const _hoisted_2$
|
|
10225
|
+
const _hoisted_2$a = /*#__PURE__*/createBaseVNode("path", {
|
|
10162
10226
|
"stroke-linecap": "round",
|
|
10163
10227
|
"stroke-linejoin": "round",
|
|
10164
10228
|
"stroke-width": "2",
|
|
10165
10229
|
d: "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"
|
|
10166
10230
|
}, null, -1);
|
|
10167
10231
|
const _hoisted_3$6 = [
|
|
10168
|
-
_hoisted_2$
|
|
10232
|
+
_hoisted_2$a
|
|
10169
10233
|
];
|
|
10170
10234
|
|
|
10171
10235
|
function _sfc_render$2(_ctx, _cache) {
|
|
@@ -10176,26 +10240,28 @@ const IconMoon = /*#__PURE__*/_export_sfc(_sfc_main$d, [['render',_sfc_render$2]
|
|
|
10176
10240
|
const _sfc_main$c = {
|
|
10177
10241
|
__name: 'OptionsColor',
|
|
10178
10242
|
setup(__props) {
|
|
10179
|
-
|
|
10180
|
-
const { mode, setMode } = useReaderSettings;
|
|
10181
|
-
|
|
10243
|
+
|
|
10244
|
+
const { mode, setMode } = useReaderSettings;
|
|
10245
|
+
|
|
10182
10246
|
|
|
10183
10247
|
return (_ctx, _cache) => {
|
|
10184
10248
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
10185
10249
|
createBaseVNode("button", {
|
|
10250
|
+
id: "lightmode-button",
|
|
10186
10251
|
onClick: _cache[0] || (_cache[0] = withModifiers($event => (unref(setMode)('light')), ["prevent"])),
|
|
10187
10252
|
title: "Leitura diurna",
|
|
10188
|
-
class: normalizeClass(["font-light text-base border w-full h-10 flex justify-center items-center", {
|
|
10189
|
-
'bg-primary-extralight text-primary border-2 border-primary': unref(mode) === 'light'
|
|
10253
|
+
class: normalizeClass(["font-light text-base border w-full h-10 flex justify-center items-center", {
|
|
10254
|
+
'bg-primary-extralight text-primary border-2 border-primary': unref(mode) === 'light'
|
|
10190
10255
|
}])
|
|
10191
10256
|
}, [
|
|
10192
10257
|
createVNode(IconSun, { class: "w-5 h-5" })
|
|
10193
10258
|
], 2),
|
|
10194
10259
|
createBaseVNode("button", {
|
|
10260
|
+
id: "darkmode-button",
|
|
10195
10261
|
onClick: _cache[1] || (_cache[1] = withModifiers($event => (unref(setMode)('dark')), ["prevent"])),
|
|
10196
10262
|
title: "Leitura noturna",
|
|
10197
|
-
class: normalizeClass(["font-light text-base border w-full h-10 flex justify-center items-center", {
|
|
10198
|
-
'bg-primary-extralight text-primary border-2 border-primary': unref(mode) === 'dark'
|
|
10263
|
+
class: normalizeClass(["font-light text-base border w-full h-10 flex justify-center items-center", {
|
|
10264
|
+
'bg-primary-extralight text-primary border-2 border-primary': unref(mode) === 'dark'
|
|
10199
10265
|
}])
|
|
10200
10266
|
}, [
|
|
10201
10267
|
createVNode(IconMoon, { class: "w-5 h-5" })
|
|
@@ -10212,42 +10278,48 @@ const _hoisted_1$b = {
|
|
|
10212
10278
|
"aria-orientation": "vertical",
|
|
10213
10279
|
"aria-labelledby": "options-menu"
|
|
10214
10280
|
};
|
|
10215
|
-
const _hoisted_2$
|
|
10216
|
-
const _hoisted_3$5 = /*#__PURE__*/createBaseVNode("
|
|
10217
|
-
const _hoisted_4$2 = { class: "w-full
|
|
10218
|
-
const _hoisted_5$2 =
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10281
|
+
const _hoisted_2$9 = { id: "footnotes-button" };
|
|
10282
|
+
const _hoisted_3$5 = /*#__PURE__*/createBaseVNode("span", { class: "ml-4" }, "Notas de rodapé", -1);
|
|
10283
|
+
const _hoisted_4$2 = /*#__PURE__*/createBaseVNode("div", { class: "w-full border-b border-areia my-3" }, null, -1);
|
|
10284
|
+
const _hoisted_5$2 = {
|
|
10285
|
+
class: "w-full flex justify-center items-center py-3 lowercase",
|
|
10286
|
+
id: "visualize-title"
|
|
10287
|
+
};
|
|
10288
|
+
const _hoisted_6$2 = /*#__PURE__*/createBaseVNode("span", { class: "ml-4" }, "Visualização", -1);
|
|
10289
|
+
const _hoisted_7$1 = { class: "w-full grid grid-cols-4 gap-2 my-3" };
|
|
10290
|
+
const _hoisted_8$1 = /*#__PURE__*/createBaseVNode("div", { class: "hidden w-full border-b border-areia my-8" }, null, -1);
|
|
10291
|
+
|
|
10222
10292
|
|
|
10223
10293
|
const _sfc_main$b = {
|
|
10224
10294
|
__name: 'OptionsDropdown',
|
|
10225
10295
|
setup(__props) {
|
|
10226
|
-
|
|
10296
|
+
|
|
10227
10297
|
|
|
10228
10298
|
return (_ctx, _cache) => {
|
|
10229
10299
|
return (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
10230
10300
|
createBaseVNode("div", null, [
|
|
10231
10301
|
renderSlot(_ctx.$slots, "optionsTop"),
|
|
10232
|
-
createBaseVNode("
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10302
|
+
createBaseVNode("div", _hoisted_2$9, [
|
|
10303
|
+
createBaseVNode("button", {
|
|
10304
|
+
onClick: _cache[0] || (_cache[0] = withModifiers($event => (unref(useFootnotes).setShowFootnotes(true)), ["prevent"])),
|
|
10305
|
+
class: "w-full flex justify-center items-center py-3 lowercase"
|
|
10306
|
+
}, [
|
|
10307
|
+
createVNode(IconFootnote, { class: "w-6 h-6" }),
|
|
10308
|
+
_hoisted_3$5
|
|
10309
|
+
]),
|
|
10310
|
+
_hoisted_4$2
|
|
10238
10311
|
]),
|
|
10239
|
-
|
|
10240
|
-
createBaseVNode("div", _hoisted_4$2, [
|
|
10312
|
+
createBaseVNode("div", _hoisted_5$2, [
|
|
10241
10313
|
createVNode(IconEye, { class: "w-6 h-6" }),
|
|
10242
|
-
|
|
10314
|
+
_hoisted_6$2
|
|
10243
10315
|
]),
|
|
10244
10316
|
createVNode(_sfc_main$h),
|
|
10245
10317
|
createVNode(_sfc_main$g),
|
|
10246
|
-
createBaseVNode("div",
|
|
10318
|
+
createBaseVNode("div", _hoisted_7$1, [
|
|
10247
10319
|
createVNode(_sfc_main$f),
|
|
10248
10320
|
createVNode(_sfc_main$c)
|
|
10249
10321
|
]),
|
|
10250
|
-
|
|
10322
|
+
_hoisted_8$1,
|
|
10251
10323
|
renderSlot(_ctx.$slots, "optionsBottom")
|
|
10252
10324
|
])
|
|
10253
10325
|
]))
|
|
@@ -10257,31 +10329,32 @@ return (_ctx, _cache) => {
|
|
|
10257
10329
|
};
|
|
10258
10330
|
|
|
10259
10331
|
const _hoisted_1$a = { class: "flex" };
|
|
10260
|
-
const _hoisted_2$
|
|
10332
|
+
const _hoisted_2$8 = ["aria-expanded"];
|
|
10261
10333
|
const _hoisted_3$4 = /*#__PURE__*/createBaseVNode("span", { class: "block mr-3" }, " Opções ", -1);
|
|
10262
|
-
|
|
10334
|
+
|
|
10263
10335
|
|
|
10264
10336
|
const _sfc_main$a = {
|
|
10265
10337
|
__name: 'OptionsButton',
|
|
10266
10338
|
setup(__props) {
|
|
10267
|
-
|
|
10268
|
-
const show = ref(false);
|
|
10269
|
-
const button = ref(null);
|
|
10270
|
-
|
|
10271
|
-
const toggleSummary = () => show.value = !show.value;
|
|
10272
|
-
const hide = () => {
|
|
10273
|
-
if (!useReaderSettings.blocked.value) {
|
|
10274
|
-
show.value = false;
|
|
10275
|
-
}
|
|
10276
|
-
};
|
|
10277
|
-
|
|
10278
|
-
onClickOutside(button, () => hide());
|
|
10279
|
-
onKeyStroke('Escape', () => hide());
|
|
10280
|
-
|
|
10281
|
-
const { toggle: toggleFullScreen } = useFullscreen();
|
|
10339
|
+
|
|
10340
|
+
const show = ref(false);
|
|
10341
|
+
const button = ref(null);
|
|
10342
|
+
|
|
10343
|
+
const toggleSummary = () => show.value = !show.value;
|
|
10344
|
+
const hide = () => {
|
|
10345
|
+
if (!useReaderSettings.blocked.value) {
|
|
10346
|
+
show.value = false;
|
|
10347
|
+
}
|
|
10348
|
+
};
|
|
10349
|
+
|
|
10350
|
+
onClickOutside(button, () => hide());
|
|
10351
|
+
onKeyStroke('Escape', () => hide());
|
|
10352
|
+
|
|
10353
|
+
const { toggle: toggleFullScreen } = useFullscreen();
|
|
10282
10354
|
|
|
10283
10355
|
return (_ctx, _cache) => {
|
|
10284
10356
|
return (openBlock(), createElementBlock("div", {
|
|
10357
|
+
id: "options-menu",
|
|
10285
10358
|
ref_key: "button",
|
|
10286
10359
|
ref: button,
|
|
10287
10360
|
class: "relative"
|
|
@@ -10290,7 +10363,7 @@ return (_ctx, _cache) => {
|
|
|
10290
10363
|
createBaseVNode("button", {
|
|
10291
10364
|
onClick: _cache[0] || (_cache[0] = withModifiers($event => (toggleSummary()), ["prevent"])),
|
|
10292
10365
|
class: "border p-3 shadow flex items-center border-white text-white",
|
|
10293
|
-
id: "
|
|
10366
|
+
id: "options-button",
|
|
10294
10367
|
"aria-haspopup": "true",
|
|
10295
10368
|
"aria-expanded": show.value
|
|
10296
10369
|
}, [
|
|
@@ -10304,7 +10377,7 @@ return (_ctx, _cache) => {
|
|
|
10304
10377
|
key: 1,
|
|
10305
10378
|
class: "w-6 h-6"
|
|
10306
10379
|
}))
|
|
10307
|
-
], 8, _hoisted_2$
|
|
10380
|
+
], 8, _hoisted_2$8),
|
|
10308
10381
|
createBaseVNode("button", {
|
|
10309
10382
|
onClick: _cache[1] || (_cache[1] = withModifiers($event => (unref(toggleFullScreen)()), ["prevent"])),
|
|
10310
10383
|
class: "hidden md:flex items-center border p-3 shadow ml-3 border-white text-white"
|
|
@@ -10341,15 +10414,19 @@ return (_ctx, _cache) => {
|
|
|
10341
10414
|
|
|
10342
10415
|
};
|
|
10343
10416
|
|
|
10344
|
-
const _hoisted_1$9 = {
|
|
10417
|
+
const _hoisted_1$9 = {
|
|
10418
|
+
id: "component-header",
|
|
10419
|
+
class: "bg-primary flex justify-between items-center p-4"
|
|
10420
|
+
};
|
|
10421
|
+
const _hoisted_2$7 = { id: "header-titles" };
|
|
10345
10422
|
|
|
10346
10423
|
const _sfc_main$9 = {
|
|
10347
10424
|
__name: 'HeaderSlot',
|
|
10348
10425
|
setup(__props) {
|
|
10349
|
-
|
|
10426
|
+
|
|
10350
10427
|
|
|
10351
10428
|
return (_ctx, _cache) => {
|
|
10352
|
-
return (openBlock(), createElementBlock("
|
|
10429
|
+
return (openBlock(), createElementBlock("header", _hoisted_1$9, [
|
|
10353
10430
|
createVNode(_sfc_main$o, null, {
|
|
10354
10431
|
summaryTop: withCtx(() => [
|
|
10355
10432
|
renderSlot(_ctx.$slots, "summaryTop")
|
|
@@ -10359,7 +10436,7 @@ return (_ctx, _cache) => {
|
|
|
10359
10436
|
]),
|
|
10360
10437
|
_: 3
|
|
10361
10438
|
}),
|
|
10362
|
-
createBaseVNode("div",
|
|
10439
|
+
createBaseVNode("div", _hoisted_2$7, [
|
|
10363
10440
|
renderSlot(_ctx.$slots, "header")
|
|
10364
10441
|
]),
|
|
10365
10442
|
createVNode(_sfc_main$a, null, {
|
|
@@ -10381,22 +10458,22 @@ const _hoisted_1$8 = ["innerHTML"];
|
|
|
10381
10458
|
|
|
10382
10459
|
const _sfc_main$8 = {
|
|
10383
10460
|
__name: 'BookContent',
|
|
10384
|
-
props: {
|
|
10385
|
-
bookContent: String
|
|
10461
|
+
props: {
|
|
10462
|
+
bookContent: String
|
|
10386
10463
|
},
|
|
10387
10464
|
setup(__props) {
|
|
10388
10465
|
|
|
10389
10466
|
const props = __props;
|
|
10390
|
-
|
|
10391
|
-
const { content, initContent } = useTextContent;
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
const contentWrapper = ref(null);
|
|
10396
|
-
|
|
10397
|
-
onMounted(() => {
|
|
10398
|
-
initContent(props.bookContent, contentWrapper);
|
|
10399
|
-
});
|
|
10467
|
+
|
|
10468
|
+
const { content, initContent } = useTextContent;
|
|
10469
|
+
|
|
10470
|
+
|
|
10471
|
+
|
|
10472
|
+
const contentWrapper = ref(null);
|
|
10473
|
+
|
|
10474
|
+
onMounted(() => {
|
|
10475
|
+
initContent(props.bookContent, contentWrapper);
|
|
10476
|
+
});
|
|
10400
10477
|
|
|
10401
10478
|
return (_ctx, _cache) => {
|
|
10402
10479
|
return (openBlock(), createElementBlock("div", {
|
|
@@ -10435,13 +10512,13 @@ const _hoisted_1$7 = {
|
|
|
10435
10512
|
fill: "currentColor",
|
|
10436
10513
|
class: "[ viewer-nav-icon nav-prev ] arrow-narrow-left"
|
|
10437
10514
|
};
|
|
10438
|
-
const _hoisted_2$
|
|
10515
|
+
const _hoisted_2$6 = /*#__PURE__*/createBaseVNode("path", {
|
|
10439
10516
|
"fill-rule": "evenodd",
|
|
10440
10517
|
d: "M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",
|
|
10441
10518
|
"clip-rule": "evenodd"
|
|
10442
10519
|
}, null, -1);
|
|
10443
10520
|
const _hoisted_3$3 = [
|
|
10444
|
-
_hoisted_2$
|
|
10521
|
+
_hoisted_2$6
|
|
10445
10522
|
];
|
|
10446
10523
|
const _hoisted_4$1 = {
|
|
10447
10524
|
key: 1,
|
|
@@ -10478,7 +10555,7 @@ const _hoisted_1$6 = {
|
|
|
10478
10555
|
id: "engine",
|
|
10479
10556
|
class: "pt-10 transition-colors"
|
|
10480
10557
|
};
|
|
10481
|
-
const _hoisted_2$
|
|
10558
|
+
const _hoisted_2$5 = { class: "engineWrapper overflow-hidden" };
|
|
10482
10559
|
|
|
10483
10560
|
const _sfc_main$6 = {
|
|
10484
10561
|
__name: 'EngineWrapper',
|
|
@@ -10488,7 +10565,7 @@ const { next, prev } = usePagination;
|
|
|
10488
10565
|
|
|
10489
10566
|
return (_ctx, _cache) => {
|
|
10490
10567
|
return (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
10491
|
-
createBaseVNode("div", _hoisted_2$
|
|
10568
|
+
createBaseVNode("div", _hoisted_2$5, [
|
|
10492
10569
|
createVNode(NavigationButton, {
|
|
10493
10570
|
target: "prev",
|
|
10494
10571
|
onClicked: _cache[0] || (_cache[0] = $event => (unref(prev)()))
|
|
@@ -10506,29 +10583,29 @@ return (_ctx, _cache) => {
|
|
|
10506
10583
|
};
|
|
10507
10584
|
|
|
10508
10585
|
const _hoisted_1$5 = { class: "[ typeArea ] h-full relative transition-opacity duration-100 opacity-100 px-2 md:px-24" };
|
|
10509
|
-
|
|
10586
|
+
|
|
10510
10587
|
|
|
10511
10588
|
const _sfc_main$5 = {
|
|
10512
10589
|
__name: 'ReaderWrapper',
|
|
10513
10590
|
setup(__props) {
|
|
10514
|
-
const { currentPage } = usePagination;
|
|
10515
|
-
|
|
10516
|
-
const el = ref(null);
|
|
10517
|
-
|
|
10518
|
-
const { width } = useWindowSize();
|
|
10519
|
-
const { distanceX } = usePointerSwipe(el, {
|
|
10520
|
-
onSwipeEnd() {
|
|
10521
|
-
if (width.value < 600) {
|
|
10522
|
-
if (distanceX.value > 100) {
|
|
10523
|
-
usePagination.next();
|
|
10524
|
-
}
|
|
10525
|
-
if (distanceX.value < -100) {
|
|
10526
|
-
usePagination.prev();
|
|
10527
|
-
}
|
|
10528
|
-
}
|
|
10529
|
-
}
|
|
10530
|
-
});
|
|
10531
|
-
|
|
10591
|
+
const { currentPage } = usePagination;
|
|
10592
|
+
|
|
10593
|
+
const el = ref(null);
|
|
10594
|
+
|
|
10595
|
+
const { width } = useWindowSize();
|
|
10596
|
+
const { distanceX } = usePointerSwipe(el, {
|
|
10597
|
+
onSwipeEnd() {
|
|
10598
|
+
if (width.value < 600) {
|
|
10599
|
+
if (distanceX.value > 100) {
|
|
10600
|
+
usePagination.next();
|
|
10601
|
+
}
|
|
10602
|
+
if (distanceX.value < -100) {
|
|
10603
|
+
usePagination.prev();
|
|
10604
|
+
}
|
|
10605
|
+
}
|
|
10606
|
+
}
|
|
10607
|
+
});
|
|
10608
|
+
|
|
10532
10609
|
|
|
10533
10610
|
return (_ctx, _cache) => {
|
|
10534
10611
|
return (openBlock(), createElementBlock("div", {
|
|
@@ -10551,26 +10628,26 @@ const _hoisted_1$4 = {
|
|
|
10551
10628
|
tabindex: "0",
|
|
10552
10629
|
class: "[ reference-popup ] bg-gray-800 text-white fixed z-40 bottom-0 md:bottom-14 right-0 md:right-3 rounded flex justify-between p-4 shadow w-full md:w-2/5"
|
|
10553
10630
|
};
|
|
10554
|
-
const _hoisted_2$
|
|
10631
|
+
const _hoisted_2$4 = ["innerHTML"];
|
|
10555
10632
|
const _hoisted_3$2 = { class: "mt-3 flex self-end" };
|
|
10556
|
-
|
|
10633
|
+
|
|
10557
10634
|
|
|
10558
10635
|
const _sfc_main$4 = {
|
|
10559
10636
|
__name: 'ReferencePopup',
|
|
10560
10637
|
setup(__props) {
|
|
10561
|
-
|
|
10562
|
-
const { reference, setHighlightedReference } = useReferences;
|
|
10563
|
-
|
|
10564
|
-
function closeRef() {
|
|
10565
|
-
setHighlightedReference(null);
|
|
10566
|
-
}
|
|
10567
|
-
|
|
10568
|
-
onKeyStroke('Escape', () => {
|
|
10569
|
-
if (!useReaderSettings.blocked.value) {
|
|
10570
|
-
setHighlightedReference(null);
|
|
10571
|
-
}
|
|
10572
|
-
});
|
|
10573
|
-
|
|
10638
|
+
|
|
10639
|
+
const { reference, setHighlightedReference } = useReferences;
|
|
10640
|
+
|
|
10641
|
+
function closeRef() {
|
|
10642
|
+
setHighlightedReference(null);
|
|
10643
|
+
}
|
|
10644
|
+
|
|
10645
|
+
onKeyStroke('Escape', () => {
|
|
10646
|
+
if (!useReaderSettings.blocked.value) {
|
|
10647
|
+
setHighlightedReference(null);
|
|
10648
|
+
}
|
|
10649
|
+
});
|
|
10650
|
+
|
|
10574
10651
|
|
|
10575
10652
|
return (_ctx, _cache) => {
|
|
10576
10653
|
return (openBlock(), createBlock(Transition, {
|
|
@@ -10587,7 +10664,7 @@ return (_ctx, _cache) => {
|
|
|
10587
10664
|
createBaseVNode("p", {
|
|
10588
10665
|
class: "w-4/5",
|
|
10589
10666
|
innerHTML: unref(reference).ref
|
|
10590
|
-
}, null, 8, _hoisted_2$
|
|
10667
|
+
}, null, 8, _hoisted_2$4),
|
|
10591
10668
|
createBaseVNode("div", _hoisted_3$2, [
|
|
10592
10669
|
createBaseVNode("button", {
|
|
10593
10670
|
onClick: _cache[0] || (_cache[0] = withModifiers($event => (closeRef()), ["prevent"])),
|
|
@@ -10607,23 +10684,23 @@ return (_ctx, _cache) => {
|
|
|
10607
10684
|
function u(e){return -1!==[null,void 0,!1].indexOf(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e){var t={exports:{}};return e(t,t.exports),t.exports}var d=p((function(e,t){e.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function r(e,t){return e.substring(0,t.length)===t}function i(e,t){return e.slice(-1*t.length)===t}function n(e,t,r){if((e[t]||e[r])&&e[t]===e[r])throw new Error(t)}function o(e){return "number"==typeof e&&isFinite(e)}function a(e,t){return e=e.toString().split("e"),(+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))).toFixed(t)}function s(e,r,i,n,s,l,u,c,p,d,f,h){var m,v,g,b=h,y="",S="";return l&&(h=l(h)),!!o(h)&&(!1!==e&&0===parseFloat(h.toFixed(e))&&(h=0),h<0&&(m=!0,h=Math.abs(h)),!1!==e&&(h=a(h,e)),-1!==(h=h.toString()).indexOf(".")?(g=(v=h.split("."))[0],i&&(y=i+v[1])):g=h,r&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(r)))),m&&c&&(S+=c),n&&(S+=n),m&&p&&(S+=p),S+=g,S+=y,s&&(S+=s),d&&(S=d(S,b)),S)}function l(e,t,n,a,s,l,u,c,p,d,f,h){var m,v="";return f&&(h=f(h)),!(!h||"string"!=typeof h)&&(c&&r(h,c)&&(h=h.replace(c,""),m=!0),a&&r(h,a)&&(h=h.replace(a,"")),p&&r(h,p)&&(h=h.replace(p,""),m=!0),s&&i(h,s)&&(h=h.slice(0,-1*s.length)),t&&(h=h.split(t).join("")),n&&(h=h.replace(n,".")),m&&(v+="-"),""!==(v=(v+=h).replace(/[^0-9\.\-.]/g,""))&&(v=Number(v),u&&(v=u(v)),!!o(v)&&v))}function u(t){var r,i,o,a={};for(void 0===t.suffix&&(t.suffix=t.postfix),r=0;r<e.length;r+=1)if(void 0===(o=t[i=e[r]]))"negative"!==i||a.negativeBefore?"mark"===i&&"."!==a.thousand?a[i]=".":a[i]=!1:a[i]="-";else if("decimals"===i){if(!(o>=0&&o<8))throw new Error(i);a[i]=o;}else if("encoder"===i||"decoder"===i||"edit"===i||"undo"===i){if("function"!=typeof o)throw new Error(i);a[i]=o;}else {if("string"!=typeof o)throw new Error(i);a[i]=o;}return n(a,"mark","thousand"),n(a,"prefix","negative"),n(a,"prefix","negativeBefore"),a}function c(t,r,i){var n,o=[];for(n=0;n<e.length;n+=1)o.push(t[e[n]]);return o.push(i),r.apply("",o)}function p(e){if(!(this instanceof p))return new p(e);"object"==typeof e&&(e=u(e),this.to=function(t){return c(e,s,t)},this.from=function(t){return c(e,l,t)});}return p}();}));var f=c(p((function(e,t){!function(e){function t(e){return r(e)&&"function"==typeof e.from}function r(e){return "object"==typeof e&&"function"==typeof e.to}function i(e){e.parentElement.removeChild(e);}function n(e){return null!=e}function o(e){e.preventDefault();}function a(e){return e.filter((function(e){return !this[e]&&(this[e]=!0)}),{})}function s(e,t){return Math.round(e/t)*t}function l(e,t){var r=e.getBoundingClientRect(),i=e.ownerDocument,n=i.documentElement,o=g(i);return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),t?r.top+o.y-n.clientTop:r.left+o.x-n.clientLeft}function u(e){return "number"==typeof e&&!isNaN(e)&&isFinite(e)}function c(e,t,r){r>0&&(h(e,t),setTimeout((function(){m(e,t);}),r));}function p(e){return Math.max(Math.min(e,100),0)}function d(e){return Array.isArray(e)?e:[e]}function f(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function h(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t;}function m(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ");}function v(e,t){return e.classList?e.classList.contains(t):new RegExp("\\b"+t+"\\b").test(e.className)}function g(e){var t=void 0!==window.pageXOffset,r="CSS1Compat"===(e.compatMode||"");return {x:t?window.pageXOffset:r?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:r?e.documentElement.scrollTop:e.body.scrollTop}}function b(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function y(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0;}});window.addEventListener("test",null,t);}catch(e){}return e}function S(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function x(e,t){return 100/(t-e)}function w(e,t,r){return 100*t/(e[r+1]-e[r])}function E(e,t){return w(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}function P(e,t){return t*(e[1]-e[0])/100+e[0]}function N(e,t){for(var r=1;e>=t[r];)r+=1;return r}function C(e,t,r){if(r>=e.slice(-1)[0])return 100;var i=N(r,e),n=e[i-1],o=e[i],a=t[i-1],s=t[i];return a+E([n,o],r)/x(a,s)}function k(e,t,r){if(r>=100)return e.slice(-1)[0];var i=N(r,t),n=e[i-1],o=e[i],a=t[i-1];return P([n,o],(r-a)*x(a,t[i]))}function A(e,t,r,i){if(100===i)return i;var n=N(i,e),o=e[n-1],a=e[n];return r?i-o>(a-o)/2?a:o:t[n-1]?e[n-1]+s(i-e[n-1],t[n-1]):i}var V,M;e.PipsMode=void 0,(M=e.PipsMode||(e.PipsMode={})).Range="range",M.Steps="steps",M.Positions="positions",M.Count="count",M.Values="values",e.PipsType=void 0,(V=e.PipsType||(e.PipsType={}))[V.None=-1]="None",V[V.NoValue=0]="NoValue",V[V.LargeValue=1]="LargeValue",V[V.SmallValue=2]="SmallValue";var L=function(){function e(e,t,r){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=t;var n=[];for(Object.keys(e).forEach((function(t){n.push([d(e[t]),t]);})),n.sort((function(e,t){return e[0][0]-t[0][0]})),i=0;i<n.length;i++)this.handleEntryPoint(n[i][1],n[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i]);}return e.prototype.getDistance=function(e){for(var t=[],r=0;r<this.xNumSteps.length-1;r++)t[r]=w(this.xVal,e,r);return t},e.prototype.getAbsoluteDistance=function(e,t,r){var i,n=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[n+1];)n++;else e===this.xPct[this.xPct.length-1]&&(n=this.xPct.length-2);r||e!==this.xPct[n+1]||n++,null===t&&(t=[]);var o=1,a=t[n],s=0,l=0,u=0,c=0;for(i=r?(e-this.xPct[n])/(this.xPct[n+1]-this.xPct[n]):(this.xPct[n+1]-e)/(this.xPct[n+1]-this.xPct[n]);a>0;)s=this.xPct[n+1+c]-this.xPct[n+c],t[n+c]*o+100-100*i>100?(l=s*i,o=(a-100*i)/t[n+c],i=1):(l=t[n+c]*s/100*o,o=0),r?(u-=l,this.xPct.length+c>=1&&c--):(u+=l,this.xPct.length-c>=1&&c++),a=t[n+c]*o;return e+u},e.prototype.toStepping=function(e){return e=C(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return k(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return e=A(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,r){var i=N(e,this.xPct);return (100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/r},e.prototype.getNearbySteps=function(e){var t=N(e,this.xPct);return {stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(f);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var r;if(!u(r="min"===e?0:"max"===e?100:parseFloat(e))||!u(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(r),this.xVal.push(t[0]);var i=Number(t[1]);r?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0);},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=w([this.xVal[e],this.xVal[e+1]],t,0)/x(this.xPct[e],this.xPct[e+1]);var r=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(r.toFixed(3))-1),n=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=n;}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];},e}(),U={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},O={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},D={tooltips:".__tooltips",aria:".__aria"};function j(e,t){if(!u(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t;}function F(e,t){if(!u(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t;}function T(e,t){if(!u(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t;}function z(e,t){if(!u(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t;}function H(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new L(t,e.snap||!1,e.singleStep);}function q(e,t){if(t=d(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t;}function R(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t;}function B(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t;}function _(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t;}function $(e,t){var r,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(r=1;r<e.handles;r++)i.push(t);i.push(!1);}else {if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t;}e.connect=i;}function X(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Y(e,t){if(!u(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t));}function I(e,t){if(!u(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function W(e,t){var r;if(!u(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!u(t[0])&&!u(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],r=0;r<e.spectrum.xNumSteps.length-1;r++)if(e.padding[0][r]<0||e.padding[1][r]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],n=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-n)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function G(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function J(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var r=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,n=t.indexOf("fixed")>=0,o=t.indexOf("snap")>=0,a=t.indexOf("hover")>=0,s=t.indexOf("unconstrained")>=0,l=t.indexOf("drag-all")>=0,u=t.indexOf("smooth-steps")>=0;if(n){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Y(e,e.start[1]-e.start[0]);}if(s&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:r||o,drag:i,dragAll:l,smoothSteps:u,fixed:n,snap:o,hover:a,unconstrained:s};}function K(e,t){if(!1!==t)if(!0===t||r(t)){e.tooltips=[];for(var i=0;i<e.handles;i++)e.tooltips.push(t);}else {if((t=d(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach((function(e){if("boolean"!=typeof e&&!r(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})),e.tooltips=t;}}function Q(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t;}function Z(e,t){if(!r(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t;}function ee(e,r){if(!t(r))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=r;}function te(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t;}function re(e,t){e.documentElement=t;}function ie(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t;}function ne(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach((function(r){e.cssClasses[r]=e.cssPrefix+t[r];}))):e.cssClasses=t;}function oe(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:U,format:U},r={step:{r:!1,t:j},keyboardPageMultiplier:{r:!1,t:F},keyboardMultiplier:{r:!1,t:T},keyboardDefaultStep:{r:!1,t:z},start:{r:!0,t:q},connect:{r:!0,t:$},direction:{r:!0,t:G},snap:{r:!1,t:R},animate:{r:!1,t:B},animationDuration:{r:!1,t:_},range:{r:!0,t:H},orientation:{r:!1,t:X},margin:{r:!1,t:Y},limit:{r:!1,t:I},padding:{r:!1,t:W},behaviour:{r:!0,t:J},ariaFormat:{r:!1,t:Z},format:{r:!1,t:ee},tooltips:{r:!1,t:K},keyboardSupport:{r:!0,t:te},documentElement:{r:!1,t:re},cssPrefix:{r:!0,t:ie},cssClasses:{r:!0,t:ne},handleAttributes:{r:!1,t:Q}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:O,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(r).forEach((function(o){if(n(e[o])||void 0!==i[o])r[o].t(t,n(e[o])?e[o]:i[o]);else if(r[o].r)throw new Error("noUiSlider: '"+o+"' is required.")})),t.pips=e.pips;var o=document.createElement("div"),a=void 0!==o.style.msTransform,s=void 0!==o.style.transform;t.transformRule=s?"transform":a?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return t.style=l[t.dir][t.ort],t}function ae(t,r,s){var u,f,x,w,E,P=b(),N=S()&&y(),C=t,k=r.spectrum,A=[],V=[],M=[],L=0,U={},O=t.ownerDocument,j=r.documentElement||O.documentElement,F=O.body,T="rtl"===O.dir||1===r.ort?0:100;function z(e,t){var r=O.createElement("div");return t&&h(r,t),e.appendChild(r),r}function H(e,t){var i=z(e,r.cssClasses.origin),n=z(i,r.cssClasses.handle);if(z(n,r.cssClasses.touchArea),n.setAttribute("data-handle",String(t)),r.keyboardSupport&&(n.setAttribute("tabindex","0"),n.addEventListener("keydown",(function(e){return fe(e,t)}))),void 0!==r.handleAttributes){var o=r.handleAttributes[t];Object.keys(o).forEach((function(e){n.setAttribute(e,o[e]);}));}return n.setAttribute("role","slider"),n.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),0===t?h(n,r.cssClasses.handleLower):t===r.handles-1&&h(n,r.cssClasses.handleUpper),i}function q(e,t){return !!t&&z(e,r.cssClasses.connect)}function R(e,t){var i=z(t,r.cssClasses.connects);f=[],(x=[]).push(q(i,e[0]));for(var n=0;n<r.handles;n++)f.push(H(t,n)),M[n]=n,x.push(q(i,e[n+1]));}function B(e){return h(e,r.cssClasses.target),0===r.dir?h(e,r.cssClasses.ltr):h(e,r.cssClasses.rtl),0===r.ort?h(e,r.cssClasses.horizontal):h(e,r.cssClasses.vertical),h(e,"rtl"===getComputedStyle(e).direction?r.cssClasses.textDirectionRtl:r.cssClasses.textDirectionLtr),z(e,r.cssClasses.base)}function _(e,t){return !(!r.tooltips||!r.tooltips[t])&&z(e.firstChild,r.cssClasses.tooltip)}function $(){return C.hasAttribute("disabled")}function X(e){return f[e].hasAttribute("disabled")}function Y(){E&&(ge("update"+D.tooltips),E.forEach((function(e){e&&i(e);})),E=null);}function I(){Y(),E=f.map(_),me("update"+D.tooltips,(function(e,t,i){if(E&&r.tooltips&&!1!==E[t]){var n=e[t];!0!==r.tooltips[t]&&(n=r.tooltips[t].to(i[t])),E[t].innerHTML=n;}}));}function W(){ge("update"+D.aria),me("update"+D.aria,(function(e,t,i,n,o){M.forEach((function(e){var t=f[e],n=ye(V,e,0,!0,!0,!0),a=ye(V,e,100,!0,!0,!0),s=o[e],l=String(r.ariaFormat.to(i[e]));n=k.fromStepping(n).toFixed(1),a=k.fromStepping(a).toFixed(1),s=k.fromStepping(s).toFixed(1),t.children[0].setAttribute("aria-valuemin",n),t.children[0].setAttribute("aria-valuemax",a),t.children[0].setAttribute("aria-valuenow",s),t.children[0].setAttribute("aria-valuetext",l);}));}));}function G(t){if(t.mode===e.PipsMode.Range||t.mode===e.PipsMode.Steps)return k.xVal;if(t.mode===e.PipsMode.Count){if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var r=t.values-1,i=100/r,n=[];r--;)n[r]=r*i;return n.push(100),J(n,t.stepped)}return t.mode===e.PipsMode.Positions?J(t.values,t.stepped):t.mode===e.PipsMode.Values?t.stepped?t.values.map((function(e){return k.fromStepping(k.getStep(k.toStepping(e)))})):t.values:[]}function J(e,t){return e.map((function(e){return k.fromStepping(t?k.getStep(e):e)}))}function K(t){function r(e,t){return Number((e+t).toFixed(7))}var i=G(t),n={},o=k.xVal[0],s=k.xVal[k.xVal.length-1],l=!1,u=!1,c=0;return (i=a(i.slice().sort((function(e,t){return e-t}))))[0]!==o&&(i.unshift(o),l=!0),i[i.length-1]!==s&&(i.push(s),u=!0),i.forEach((function(o,a){var s,p,d,f,h,m,v,g,b,y,S=o,x=i[a+1],w=t.mode===e.PipsMode.Steps;for(w&&(s=k.xNumSteps[a]),s||(s=x-S),void 0===x&&(x=S),s=Math.max(s,1e-7),p=S;p<=x;p=r(p,s)){for(g=(h=(f=k.toStepping(p))-c)/(t.density||1),y=h/(b=Math.round(g)),d=1;d<=b;d+=1)n[(m=c+d*y).toFixed(5)]=[k.fromStepping(m),0];v=i.indexOf(p)>-1?e.PipsType.LargeValue:w?e.PipsType.SmallValue:e.PipsType.NoValue,!a&&l&&p!==x&&(v=0),p===x&&u||(n[f.toFixed(5)]=[p,v]),c=f;}})),n}function Q(t,i,n){var o,a,s=O.createElement("div"),l=((o={})[e.PipsType.None]="",o[e.PipsType.NoValue]=r.cssClasses.valueNormal,o[e.PipsType.LargeValue]=r.cssClasses.valueLarge,o[e.PipsType.SmallValue]=r.cssClasses.valueSub,o),u=((a={})[e.PipsType.None]="",a[e.PipsType.NoValue]=r.cssClasses.markerNormal,a[e.PipsType.LargeValue]=r.cssClasses.markerLarge,a[e.PipsType.SmallValue]=r.cssClasses.markerSub,a),c=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],p=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];function d(e,t){var i=t===r.cssClasses.value,n=i?l:u;return t+" "+(i?c:p)[r.ort]+" "+n[e]}function f(t,o,a){if((a=i?i(o,a):a)!==e.PipsType.None){var l=z(s,!1);l.className=d(a,r.cssClasses.marker),l.style[r.style]=t+"%",a>e.PipsType.NoValue&&((l=z(s,!1)).className=d(a,r.cssClasses.value),l.setAttribute("data-value",String(o)),l.style[r.style]=t+"%",l.innerHTML=String(n.to(o)));}}return h(s,r.cssClasses.pips),h(s,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(t).forEach((function(e){f(e,t[e][0],t[e][1]);})),s}function Z(){w&&(i(w),w=null);}function ee(e){Z();var t=K(e),r=e.filter,i=e.format||{to:function(e){return String(Math.round(e))}};return w=C.appendChild(Q(t,r,i))}function te(){var e=u.getBoundingClientRect(),t="offset"+["Width","Height"][r.ort];return 0===r.ort?e.width||u[t]:e.height||u[t]}function re(e,t,i,n){var o=function(o){var a=ie(o,n.pageOffset,n.target||t);return !!a&&!($()&&!n.doNotReject)&&!(v(C,r.cssClasses.tap)&&!n.doNotReject)&&!(e===P.start&&void 0!==a.buttons&&a.buttons>1)&&(!n.hover||!a.buttons)&&(N||a.preventDefault(),a.calcPoint=a.points[r.ort],void i(a,n))},a=[];return e.split(" ").forEach((function(e){t.addEventListener(e,o,!!N&&{passive:!0}),a.push([e,o]);})),a}function ie(e,t,r){var i=0===e.type.indexOf("touch"),n=0===e.type.indexOf("mouse"),o=0===e.type.indexOf("pointer"),a=0,s=0;if(0===e.type.indexOf("MSPointer")&&(o=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return !1;if(i){var l=function(t){var i=t.target;return i===r||r.contains(i)||e.composed&&e.composedPath().shift()===r};if("touchstart"===e.type){var u=Array.prototype.filter.call(e.touches,l);if(u.length>1)return !1;a=u[0].pageX,s=u[0].pageY;}else {var c=Array.prototype.find.call(e.changedTouches,l);if(!c)return !1;a=c.pageX,s=c.pageY;}}return t=t||g(O),(n||o)&&(a=e.clientX+t.x,s=e.clientY+t.y),e.pageOffset=t,e.points=[a,s],e.cursor=n||o,e}function ne(e){var t=100*(e-l(u,r.ort))/te();return t=p(t),r.dir?100-t:t}function ae(e){var t=100,r=!1;return f.forEach((function(i,n){if(!X(n)){var o=V[n],a=Math.abs(o-e);(a<t||a<=t&&e>o||100===a&&100===t)&&(r=n,t=a);}})),r}function se(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&ue(e,t);}function le(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return ue(e,t);var i=(r.dir?-1:1)*(e.calcPoint-t.startCalcPoint);xe(i>0,100*i/t.baseSize,t.locations,t.handleNumbers,t.connect);}function ue(e,t){t.handle&&(m(t.handle,r.cssClasses.active),L-=1),t.listeners.forEach((function(e){j.removeEventListener(e[0],e[1]);})),0===L&&(m(C,r.cssClasses.drag),Pe(),e.cursor&&(F.style.cursor="",F.removeEventListener("selectstart",o))),r.events.smoothSteps&&(t.handleNumbers.forEach((function(e){Ne(e,V[e],!0,!0,!1,!1);})),t.handleNumbers.forEach((function(e){be("update",e);}))),t.handleNumbers.forEach((function(e){be("change",e),be("set",e),be("end",e);}));}function ce(e,t){if(!t.handleNumbers.some(X)){var i;1===t.handleNumbers.length&&(i=f[t.handleNumbers[0]].children[0],L+=1,h(i,r.cssClasses.active)),e.stopPropagation();var n=[],a=re(P.move,j,le,{target:e.target,handle:i,connect:t.connect,listeners:n,startCalcPoint:e.calcPoint,baseSize:te(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:V.slice()}),s=re(P.end,j,ue,{target:e.target,handle:i,listeners:n,doNotReject:!0,handleNumbers:t.handleNumbers}),l=re("mouseout",j,se,{target:e.target,handle:i,listeners:n,doNotReject:!0,handleNumbers:t.handleNumbers});n.push.apply(n,a.concat(s,l)),e.cursor&&(F.style.cursor=getComputedStyle(e.target).cursor,f.length>1&&h(C,r.cssClasses.drag),F.addEventListener("selectstart",o,!1)),t.handleNumbers.forEach((function(e){be("start",e);}));}}function pe(e){e.stopPropagation();var t=ne(e.calcPoint),i=ae(t);!1!==i&&(r.events.snap||c(C,r.cssClasses.tap,r.animationDuration),Ne(i,t,!0,!0),Pe(),be("slide",i,!0),be("update",i,!0),r.events.snap?ce(e,{handleNumbers:[i]}):(be("change",i,!0),be("set",i,!0)));}function de(e){var t=ne(e.calcPoint),r=k.getStep(t),i=k.fromStepping(r);Object.keys(U).forEach((function(e){"hover"===e.split(".")[0]&&U[e].forEach((function(e){e.call(Te,i);}));}));}function fe(e,t){if($()||X(t))return !1;var i=["Left","Right"],n=["Down","Up"],o=["PageDown","PageUp"],a=["Home","End"];r.dir&&!r.ort?i.reverse():r.ort&&!r.dir&&(n.reverse(),o.reverse());var s,l=e.key.replace("Arrow",""),u=l===o[0],c=l===o[1],p=l===n[0]||l===i[0]||u,d=l===n[1]||l===i[1]||c,f=l===a[0],h=l===a[1];if(!(p||d||f||h))return !0;if(e.preventDefault(),d||p){var m=p?0:1,v=Oe(t)[m];if(null===v)return !1;!1===v&&(v=k.getDefaultStep(V[t],p,r.keyboardDefaultStep)),v*=c||u?r.keyboardPageMultiplier:r.keyboardMultiplier,v=Math.max(v,1e-7),v*=p?-1:1,s=A[t]+v;}else s=h?r.spectrum.xVal[r.spectrum.xVal.length-1]:r.spectrum.xVal[0];return Ne(t,k.toStepping(s),!0,!0),be("slide",t),be("update",t),be("change",t),be("set",t),!1}function he(e){e.fixed||f.forEach((function(e,t){re(P.start,e.children[0],ce,{handleNumbers:[t]});})),e.tap&&re(P.start,u,pe,{}),e.hover&&re(P.move,u,de,{hover:!0}),e.drag&&x.forEach((function(t,i){if(!1!==t&&0!==i&&i!==x.length-1){var n=f[i-1],o=f[i],a=[t],s=[n,o],l=[i-1,i];h(t,r.cssClasses.draggable),e.fixed&&(a.push(n.children[0]),a.push(o.children[0])),e.dragAll&&(s=f,l=M),a.forEach((function(e){re(P.start,e,ce,{handles:s,handleNumbers:l,connect:t});}));}}));}function me(e,t){U[e]=U[e]||[],U[e].push(t),"update"===e.split(".")[0]&&f.forEach((function(e,t){be("update",t);}));}function ve(e){return e===D.aria||e===D.tooltips}function ge(e){var t=e&&e.split(".")[0],r=t?e.substring(t.length):e;Object.keys(U).forEach((function(e){var i=e.split(".")[0],n=e.substring(i.length);t&&t!==i||r&&r!==n||ve(n)&&r!==n||delete U[e];}));}function be(e,t,i){Object.keys(U).forEach((function(n){var o=n.split(".")[0];e===o&&U[n].forEach((function(e){e.call(Te,A.map(r.format.to),t,A.slice(),i||!1,V.slice(),Te);}));}));}function ye(e,t,i,n,o,a,s){var l;return f.length>1&&!r.events.unconstrained&&(n&&t>0&&(l=k.getAbsoluteDistance(e[t-1],r.margin,!1),i=Math.max(i,l)),o&&t<f.length-1&&(l=k.getAbsoluteDistance(e[t+1],r.margin,!0),i=Math.min(i,l))),f.length>1&&r.limit&&(n&&t>0&&(l=k.getAbsoluteDistance(e[t-1],r.limit,!1),i=Math.min(i,l)),o&&t<f.length-1&&(l=k.getAbsoluteDistance(e[t+1],r.limit,!0),i=Math.max(i,l))),r.padding&&(0===t&&(l=k.getAbsoluteDistance(0,r.padding[0],!1),i=Math.max(i,l)),t===f.length-1&&(l=k.getAbsoluteDistance(100,r.padding[1],!0),i=Math.min(i,l))),s||(i=k.getStep(i)),!((i=p(i))===e[t]&&!a)&&i}function Se(e,t){var i=r.ort;return (i?t:e)+", "+(i?e:t)}function xe(e,t,i,n,o){var a=i.slice(),s=n[0],l=r.events.smoothSteps,u=[!e,e],c=[e,!e];n=n.slice(),e&&n.reverse(),n.length>1?n.forEach((function(e,r){var i=ye(a,e,a[e]+t,u[r],c[r],!1,l);!1===i?t=0:(t=i-a[e],a[e]=i);})):u=c=[!0];var p=!1;n.forEach((function(e,r){p=Ne(e,i[e]+t,u[r],c[r],!1,l)||p;})),p&&(n.forEach((function(e){be("update",e),be("slide",e);})),null!=o&&be("drag",s));}function we(e,t){return r.dir?100-e-t:e}function Ee(e,t){V[e]=t,A[e]=k.fromStepping(t);var i="translate("+Se(we(t,0)-T+"%","0")+")";f[e].style[r.transformRule]=i,Ce(e),Ce(e+1);}function Pe(){M.forEach((function(e){var t=V[e]>50?-1:1,r=3+(f.length+t*e);f[e].style.zIndex=String(r);}));}function Ne(e,t,r,i,n,o){return n||(t=ye(V,e,t,r,i,!1,o)),!1!==t&&(Ee(e,t),!0)}function Ce(e){if(x[e]){var t=0,i=100;0!==e&&(t=V[e-1]),e!==x.length-1&&(i=V[e]);var n=i-t,o="translate("+Se(we(t,n)+"%","0")+")",a="scale("+Se(n/100,"1")+")";x[e].style[r.transformRule]=o+" "+a;}}function ke(e,t){return null===e||!1===e||void 0===e?V[t]:("number"==typeof e&&(e=String(e)),!1!==(e=r.format.from(e))&&(e=k.toStepping(e)),!1===e||isNaN(e)?V[t]:e)}function Ae(e,t,i){var n=d(e),o=void 0===V[0];t=void 0===t||t,r.animate&&!o&&c(C,r.cssClasses.tap,r.animationDuration),M.forEach((function(e){Ne(e,ke(n[e],e),!0,!1,i);}));var a=1===M.length?0:1;if(o&&k.hasNoSize()&&(i=!0,V[0]=0,M.length>1)){var s=100/(M.length-1);M.forEach((function(e){V[e]=e*s;}));}for(;a<M.length;++a)M.forEach((function(e){Ne(e,V[e],!0,!0,i);}));Pe(),M.forEach((function(e){be("update",e),null!==n[e]&&t&&be("set",e);}));}function Ve(e){Ae(r.start,e);}function Me(e,t,r,i){if(!((e=Number(e))>=0&&e<M.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Ne(e,ke(t,e),!0,!0,i),be("update",e),r&&be("set",e);}function Le(e){if(void 0===e&&(e=!1),e)return 1===A.length?A[0]:A.slice(0);var t=A.map(r.format.to);return 1===t.length?t[0]:t}function Ue(){for(ge(D.aria),ge(D.tooltips),Object.keys(r.cssClasses).forEach((function(e){m(C,r.cssClasses[e]);}));C.firstChild;)C.removeChild(C.firstChild);delete C.noUiSlider;}function Oe(e){var t=V[e],i=k.getNearbySteps(t),n=A[e],o=i.thisStep.step,a=null;if(r.snap)return [n-i.stepBefore.startValue||null,i.stepAfter.startValue-n||null];!1!==o&&n+o>i.stepAfter.startValue&&(o=i.stepAfter.startValue-n),a=n>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&n-i.stepBefore.highestStep,100===t?o=null:0===t&&(a=null);var s=k.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(s))),null!==a&&!1!==a&&(a=Number(a.toFixed(s))),[a,o]}function De(){return M.map(Oe)}function je(e,t){var i=Le(),o=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];o.forEach((function(t){void 0!==e[t]&&(s[t]=e[t]);}));var a=oe(s);o.forEach((function(t){void 0!==e[t]&&(r[t]=a[t]);})),k=a.spectrum,r.margin=a.margin,r.limit=a.limit,r.padding=a.padding,r.pips?ee(r.pips):Z(),r.tooltips?I():Y(),V=[],Ae(n(e.start)?e.start:i,t);}function Fe(){u=B(C),R(r.connect,u),he(r.events),Ae(r.start),r.pips&&ee(r.pips),r.tooltips&&I(),W();}Fe();var Te={destroy:Ue,steps:De,on:me,off:ge,get:Le,set:Ae,setHandle:Me,reset:Ve,__moveHandles:function(e,t,r){xe(e,t,V,r);},options:s,updateOptions:je,target:C,removePips:Z,removeTooltips:Y,getPositions:function(){return V.slice()},getTooltips:function(){return E},getOrigins:function(){return f},pips:ee};return Te}function se(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var r=ae(e,oe(t),t);return e.noUiSlider=r,r}var le={__spectrum:L,cssClasses:O,create:se};e.create=se,e.cssClasses=O,e.default=le,Object.defineProperty(e,"__esModule",{value:!0});}(t);})));function h(e,t){if(!Array.isArray(e)||!Array.isArray(t))return !1;const r=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===r[t]}))}var m={name:"Slider",emits:["input","update:modelValue","update","change"],props:{...{value:{validator:function(e){return e=>"number"==typeof e||e instanceof Array||null==e||!1===e},required:!1},modelValue:{validator:function(e){return e=>"number"==typeof e||e instanceof Array||null==e||!1===e},required:!1}},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},ariaLabelledby:{type:String,required:!1,default:void 0},aria:{required:!1,type:Object,default:()=>({})}},setup(a,s){const l=function(r,i,n){const{value:o,modelValue:a}=toRefs(r),s=a&&void 0!==a.value?a:o,l=ref(s.value);if(u(s.value))throw new Error("Slider v-model must be a Number or Array");if(Array.isArray(s.value)&&0==s.value.length)throw new Error("Slider v-model must not be an empty array");return {value:s,initialValue:l}}(a),c=function(t,i,n){const{classes:o,showTooltip:a,tooltipPosition:s,orientation:l}=toRefs(t),u=computed((()=>({target:"slider-target",focused:"slider-focused",tooltipFocus:"slider-tooltip-focus",tooltipDrag:"slider-tooltip-drag",ltr:"slider-ltr",rtl:"slider-rtl",horizontal:"slider-horizontal",vertical:"slider-vertical",textDirectionRtl:"slider-txt-dir-rtl",textDirectionLtr:"slider-txt-dir-ltr",base:"slider-base",connects:"slider-connects",connect:"slider-connect",origin:"slider-origin",handle:"slider-handle",handleLower:"slider-handle-lower",handleUpper:"slider-handle-upper",touchArea:"slider-touch-area",tooltip:"slider-tooltip",tooltipTop:"slider-tooltip-top",tooltipBottom:"slider-tooltip-bottom",tooltipLeft:"slider-tooltip-left",tooltipRight:"slider-tooltip-right",tooltipHidden:"slider-tooltip-hidden",active:"slider-active",draggable:"slider-draggable",tap:"slider-state-tap",drag:"slider-state-drag",pips:"slider-pips",pipsHorizontal:"slider-pips-horizontal",pipsVertical:"slider-pips-vertical",marker:"slider-marker",markerHorizontal:"slider-marker-horizontal",markerVertical:"slider-marker-vertical",markerNormal:"slider-marker-normal",markerLarge:"slider-marker-large",markerSub:"slider-marker-sub",value:"slider-value",valueHorizontal:"slider-value-horizontal",valueVertical:"slider-value-vertical",valueNormal:"slider-value-normal",valueLarge:"slider-value-large",valueSub:"slider-value-sub",...o.value})));return {classList:computed((()=>{const e={...u.value};return Object.keys(e).forEach((t=>{e[t]=Array.isArray(e[t])?e[t].filter((e=>null!==e)).join(" "):e[t];})),"always"!==a.value&&(e.target+=` ${"drag"===a.value?e.tooltipDrag:e.tooltipFocus}`),"horizontal"===l.value&&(e.tooltip+="bottom"===s.value?` ${e.tooltipBottom}`:` ${e.tooltipTop}`),"vertical"===l.value&&(e.tooltip+="right"===s.value?` ${e.tooltipRight}`:` ${e.tooltipLeft}`),e}))}}(a),p=function(t,i,n){const{format:o,step:a}=toRefs(t),s=n.value,l=n.classList,u=computed((()=>o&&o.value?"function"==typeof o.value?{to:o.value}:d({...o.value}):d({decimals:a.value>=0?0:2}))),c=computed((()=>Array.isArray(s.value)?s.value.map((e=>u.value)):u.value));return {tooltipFormat:u,tooltipsFormat:c,tooltipsMerge:(e,t,r)=>{var i="rtl"===getComputedStyle(e).direction,n="rtl"===e.noUiSlider.options.direction,o="vertical"===e.noUiSlider.options.orientation,a=e.noUiSlider.getTooltips(),s=e.noUiSlider.getOrigins();a.forEach((function(e,t){e&&s[t].appendChild(e);})),e.noUiSlider.on("update",(function(e,s,c,p,d){var f=[[]],h=[[]],m=[[]],v=0;a[0]&&(f[0][0]=0,h[0][0]=d[0],m[0][0]=u.value.to(parseFloat(e[0])));for(var g=1;g<e.length;g++)(!a[g]||e[g]-e[g-1]>t)&&(f[++v]=[],m[v]=[],h[v]=[]),a[g]&&(f[v].push(g),m[v].push(u.value.to(parseFloat(e[g]))),h[v].push(d[g]));f.forEach((function(e,t){for(var s=e.length,u=0;u<s;u++){var c=e[u];if(u===s-1){var p=0;h[t].forEach((function(e){p+=1e3-e;}));var d=o?"bottom":"right",f=n?0:s-1,v=1e3-h[t][f];p=(i&&!o?100:0)+p/s-v,a[c].innerHTML=m[t].join(r),a[c].style.display="block",a[c].style[d]=p+"%",l.value.tooltipHidden.split(" ").forEach((e=>{a[c].classList.contains(e)&&a[c].classList.remove(e);}));}else a[c].style.display="none",l.value.tooltipHidden.split(" ").forEach((e=>{a[c].classList.add(e);}));}}));}));}}}(a,0,{value:l.value,classList:c.classList}),m=function(a,s,l){const{orientation:c,direction:p,tooltips:d,step:m,min:v,max:g,merge:b,id:y,disabled:S,options:x,classes:w,format:E,lazy:P,ariaLabelledby:N,aria:C}=toRefs(a),k=l.value,A=l.initialValue,V=l.tooltipsFormat,M=l.tooltipsMerge,L=l.tooltipFormat,U=l.classList,O=ref(null),D=ref(null),j=ref(!1),F=computed((()=>{let e={cssPrefix:"",cssClasses:U.value,orientation:c.value,direction:p.value,tooltips:!!d.value&&V.value,connect:"lower",start:u(k.value)?v.value:k.value,range:{min:v.value,max:g.value}};if(m.value>0&&(e.step=m.value),Array.isArray(k.value)&&(e.connect=!0),N&&N.value||C&&Object.keys(C.value).length){let t=Array.isArray(k.value)?k.value:[k.value];e.handleAttributes=t.map((e=>Object.assign({},C.value,N&&N.value?{"aria-labelledby":N.value}:{})));}return E.value&&(e.ariaFormat=L.value),e})),T=computed((()=>{let e={id:y&&y.value?y.value:void 0};return S.value&&(e.disabled=!0),e})),z=computed((()=>Array.isArray(k.value))),H=()=>{let e=D.value.get();return Array.isArray(e)?e.map((e=>parseFloat(e))):parseFloat(e)},q=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];D.value.set(e,t);},R=e=>{s.emit("input",e),s.emit("update:modelValue",e),s.emit("update",e);},B=()=>{D.value=f.create(O.value,Object.assign({},F.value,x.value)),d.value&&z.value&&b.value>=0&&M(O.value,b.value," - "),D.value.on("set",(e=>{const t=H();s.emit("change",t),P.value&&R(t);})),D.value.on("update",(e=>{if(!j.value)return;const t=H();z.value&&h(k.value,t)||!z.value&&k.value==t?s.emit("update",t):P.value||R(t);})),O.value.querySelectorAll("[data-handle]").forEach((e=>{e.onblur=()=>{U.value.focused.split(" ").forEach((e=>{O.value.classList.remove(e);}));},e.onfocus=()=>{U.value.focused.split(" ").forEach((e=>{O.value.classList.add(e);}));};})),j.value=!0;},_=()=>{D.value.off(),D.value.destroy(),D.value=null;},$=(e,t)=>{j.value=!1,_(),B();};return onMounted(B),onUnmounted(_),watch(k,((e,t)=>{t&&("object"==typeof t&&"object"==typeof e&&e&&Object.keys(t)>Object.keys(e)||"object"==typeof t&&"object"!=typeof e||!e)&&$();}),{immediate:!1}),watch(z,$,{immediate:!1}),watch(v,$,{immediate:!1}),watch(g,$,{immediate:!1}),watch(m,$,{immediate:!1}),watch(c,$,{immediate:!1}),watch(p,$,{immediate:!1}),watch(d,$,{immediate:!1}),watch(b,$,{immediate:!1}),watch(E,$,{immediate:!1,deep:!0}),watch(x,$,{immediate:!1,deep:!0}),watch(w,$,{immediate:!1,deep:!0}),watch(k,(e=>{if(u(e))return void q(v.value,!1);let t=H();z.value&&!Array.isArray(t)&&(t=[t]),(z.value&&!h(e,t)||!z.value&&e!=t)&&q(e,!1);}),{deep:!0}),{slider:O,slider$:D,isRange:z,sliderProps:T,init:B,destroy:_,refresh:$,update:q,reset:()=>{R(A.value);}}}(a,s,{value:l.value,initialValue:l.initialValue,tooltipFormat:p.tooltipFormat,tooltipsFormat:p.tooltipsFormat,tooltipsMerge:p.tooltipsMerge,classList:c.classList});return {...c,...p,...m}}};m.render=function(e,t,r,i,n,o){return openBlock(),createElementBlock("div",mergeProps(e.sliderProps,{ref:"slider"}),null,16)},m.__file="src/Slider.vue";
|
|
10608
10685
|
|
|
10609
10686
|
const _hoisted_1$3 = { class: "py-2 px-10 text-gray-700 dark:text-white" };
|
|
10610
|
-
const _hoisted_2$
|
|
10687
|
+
const _hoisted_2$3 = /*#__PURE__*/createBaseVNode("p", null, " ", -1);
|
|
10611
10688
|
|
|
10612
10689
|
const _sfc_main$3 = {
|
|
10613
10690
|
__name: 'FooterSlot',
|
|
10614
10691
|
setup(__props) {
|
|
10615
|
-
|
|
10616
|
-
const { totalPages, currentPage, set } = usePagination;
|
|
10617
|
-
|
|
10618
|
-
function format() {
|
|
10619
|
-
return `${currentPage.value} de ${totalPages.value}`
|
|
10620
|
-
}
|
|
10621
|
-
|
|
10692
|
+
|
|
10693
|
+
const { totalPages, currentPage, set } = usePagination;
|
|
10694
|
+
|
|
10695
|
+
function format() {
|
|
10696
|
+
return `${currentPage.value} de ${totalPages.value}`
|
|
10697
|
+
}
|
|
10698
|
+
|
|
10622
10699
|
|
|
10623
10700
|
return (_ctx, _cache) => {
|
|
10624
10701
|
return (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
10625
10702
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
10626
|
-
_hoisted_2$
|
|
10703
|
+
_hoisted_2$3
|
|
10627
10704
|
]),
|
|
10628
10705
|
createVNode(unref(m), {
|
|
10629
10706
|
modelValue: unref(currentPage),
|
|
@@ -10650,14 +10727,14 @@ const _hoisted_1$2 = {
|
|
|
10650
10727
|
viewBox: "0 0 24 24",
|
|
10651
10728
|
stroke: "currentColor"
|
|
10652
10729
|
};
|
|
10653
|
-
const _hoisted_2$
|
|
10730
|
+
const _hoisted_2$2 = /*#__PURE__*/createBaseVNode("path", {
|
|
10654
10731
|
"stroke-linecap": "round",
|
|
10655
10732
|
"stroke-linejoin": "round",
|
|
10656
10733
|
"stroke-width": "2",
|
|
10657
10734
|
d: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
|
|
10658
10735
|
}, null, -1);
|
|
10659
10736
|
const _hoisted_3$1 = [
|
|
10660
|
-
_hoisted_2$
|
|
10737
|
+
_hoisted_2$2
|
|
10661
10738
|
];
|
|
10662
10739
|
|
|
10663
10740
|
function _sfc_render(_ctx, _cache) {
|
|
@@ -10665,71 +10742,71 @@ function _sfc_render(_ctx, _cache) {
|
|
|
10665
10742
|
}
|
|
10666
10743
|
const IconNotes = /*#__PURE__*/_export_sfc(_sfc_main$2, [['render',_sfc_render]]);
|
|
10667
10744
|
|
|
10668
|
-
const
|
|
10745
|
+
const FootnotesAside_vue_vue_type_style_index_0_scoped_5391e486_lang = '';
|
|
10669
10746
|
|
|
10670
10747
|
const _hoisted_1$1 = {
|
|
10671
10748
|
key: 0,
|
|
10672
10749
|
id: "asidebar",
|
|
10673
10750
|
class: "absolute top-0 right-0 w-96 md:w-[40em] flex-shrink-0 h-screen overflow-auto overflow-x-hidden z-20 shadow-2xl"
|
|
10674
10751
|
};
|
|
10675
|
-
const _hoisted_2 = { class: "w-full p-4" };
|
|
10752
|
+
const _hoisted_2$1 = { class: "w-full p-4" };
|
|
10676
10753
|
const _hoisted_3 = { class: "text-areia py-4 pl-4" };
|
|
10677
10754
|
const _hoisted_4 = { class: "flex items-center mb-6" };
|
|
10678
10755
|
const _hoisted_5 = { class: "ml-4" };
|
|
10679
10756
|
const _hoisted_6 = /*#__PURE__*/createTextVNode(" Notas de rodapé ");
|
|
10680
10757
|
const _hoisted_7 = { class: "ml-10" };
|
|
10681
10758
|
const _hoisted_8 = ["id", "innerHTML"];
|
|
10682
|
-
|
|
10759
|
+
|
|
10683
10760
|
|
|
10684
10761
|
const _sfc_main$1 = {
|
|
10685
10762
|
__name: 'FootnotesAside',
|
|
10686
10763
|
setup(__props) {
|
|
10687
|
-
|
|
10688
|
-
const show = computed(() => useFootnotes.footnote.value);
|
|
10689
|
-
const footnote = computed(() => useFootnotes.footnote.value);
|
|
10690
|
-
const showFootnotes = computed(() => useFootnotes.showFootnotes.value);
|
|
10691
|
-
const footnotes = computed(() => useFootnotes.footnotes.value);
|
|
10692
|
-
|
|
10693
|
-
const oldBlockedValue = ref(null);
|
|
10694
|
-
const footnoteList = ref(null);
|
|
10695
|
-
|
|
10696
|
-
function hideAside() {
|
|
10697
|
-
useFootnotes.setHighlightedFootnote(null);
|
|
10698
|
-
useFootnotes.setShowFootnotes(false);
|
|
10699
|
-
}
|
|
10700
|
-
|
|
10701
|
-
onKeyStroke('Escape', () => {
|
|
10702
|
-
if (footnote.value || showFootnotes.value) {
|
|
10703
|
-
hideAside();
|
|
10704
|
-
}
|
|
10705
|
-
});
|
|
10706
|
-
|
|
10707
|
-
watch(
|
|
10708
|
-
[footnote, showFootnotes],
|
|
10709
|
-
() => {
|
|
10710
|
-
if (footnote.value || showFootnotes.value) {
|
|
10711
|
-
if (useReaderSettings.blocked.value === false) {
|
|
10712
|
-
oldBlockedValue.value = useReaderSettings.blocked.value;
|
|
10713
|
-
}
|
|
10714
|
-
useReaderSettings.setBlocked(true);
|
|
10715
|
-
|
|
10716
|
-
} else {
|
|
10717
|
-
if (oldBlockedValue.value === false) {
|
|
10718
|
-
useReaderSettings.setBlocked(oldBlockedValue.value);
|
|
10719
|
-
}
|
|
10720
|
-
oldBlockedValue.value = null;
|
|
10721
|
-
}
|
|
10722
|
-
|
|
10723
|
-
if (footnote.value) {
|
|
10724
|
-
setTimeout(() => {
|
|
10725
|
-
const element = footnoteList.value.querySelector(`#${footnote.value.id}`);
|
|
10726
|
-
element.scrollIntoView();
|
|
10727
|
-
element.focus();
|
|
10728
|
-
}, 50);
|
|
10729
|
-
}
|
|
10730
|
-
}
|
|
10731
|
-
);
|
|
10732
|
-
|
|
10764
|
+
|
|
10765
|
+
const show = computed(() => useFootnotes.footnote.value);
|
|
10766
|
+
const footnote = computed(() => useFootnotes.footnote.value);
|
|
10767
|
+
const showFootnotes = computed(() => useFootnotes.showFootnotes.value);
|
|
10768
|
+
const footnotes = computed(() => useFootnotes.footnotes.value);
|
|
10769
|
+
|
|
10770
|
+
const oldBlockedValue = ref(null);
|
|
10771
|
+
const footnoteList = ref(null);
|
|
10772
|
+
|
|
10773
|
+
function hideAside() {
|
|
10774
|
+
useFootnotes.setHighlightedFootnote(null);
|
|
10775
|
+
useFootnotes.setShowFootnotes(false);
|
|
10776
|
+
}
|
|
10777
|
+
|
|
10778
|
+
onKeyStroke('Escape', () => {
|
|
10779
|
+
if (footnote.value || showFootnotes.value) {
|
|
10780
|
+
hideAside();
|
|
10781
|
+
}
|
|
10782
|
+
});
|
|
10783
|
+
|
|
10784
|
+
watch(
|
|
10785
|
+
[footnote, showFootnotes],
|
|
10786
|
+
() => {
|
|
10787
|
+
if (footnote.value || showFootnotes.value) {
|
|
10788
|
+
if (useReaderSettings.blocked.value === false) {
|
|
10789
|
+
oldBlockedValue.value = useReaderSettings.blocked.value;
|
|
10790
|
+
}
|
|
10791
|
+
useReaderSettings.setBlocked(true);
|
|
10792
|
+
|
|
10793
|
+
} else {
|
|
10794
|
+
if (oldBlockedValue.value === false) {
|
|
10795
|
+
useReaderSettings.setBlocked(oldBlockedValue.value);
|
|
10796
|
+
}
|
|
10797
|
+
oldBlockedValue.value = null;
|
|
10798
|
+
}
|
|
10799
|
+
|
|
10800
|
+
if (footnote.value) {
|
|
10801
|
+
setTimeout(() => {
|
|
10802
|
+
const element = footnoteList.value.querySelector(`#${footnote.value.id}`);
|
|
10803
|
+
element.scrollIntoView();
|
|
10804
|
+
element.focus();
|
|
10805
|
+
}, 50);
|
|
10806
|
+
}
|
|
10807
|
+
}
|
|
10808
|
+
);
|
|
10809
|
+
|
|
10733
10810
|
|
|
10734
10811
|
return (_ctx, _cache) => {
|
|
10735
10812
|
return (openBlock(), createBlock(Transition, { name: "width" }, {
|
|
@@ -10742,7 +10819,7 @@ return (_ctx, _cache) => {
|
|
|
10742
10819
|
}, [
|
|
10743
10820
|
createVNode(IconClose, { class: "w-6 h-6 text-white" })
|
|
10744
10821
|
]),
|
|
10745
|
-
createBaseVNode("div", _hoisted_2, [
|
|
10822
|
+
createBaseVNode("div", _hoisted_2$1, [
|
|
10746
10823
|
createBaseVNode("header", _hoisted_3, [
|
|
10747
10824
|
createBaseVNode("div", _hoisted_4, [
|
|
10748
10825
|
createVNode(IconNotes, { class: "w-8 h-8" }),
|
|
@@ -10762,9 +10839,9 @@ return (_ctx, _cache) => {
|
|
|
10762
10839
|
key: footnoteItem.id,
|
|
10763
10840
|
id: footnoteItem.id,
|
|
10764
10841
|
innerHTML: `<span class='footnote-index'>${index + 1}.</span> ${footnoteItem.text}`,
|
|
10765
|
-
class: normalizeClass(["text-left border-b border-b-white/25 last:border-transparent p-10 relative", unref(footnote) && unref(footnote).id !== footnoteItem.id
|
|
10766
|
-
? 'opacity-50'
|
|
10767
|
-
: 'opacity-100'
|
|
10842
|
+
class: normalizeClass(["text-left border-b border-b-white/25 last:border-transparent p-10 relative", unref(footnote) && unref(footnote).id !== footnoteItem.id
|
|
10843
|
+
? 'opacity-50'
|
|
10844
|
+
: 'opacity-100'
|
|
10768
10845
|
])
|
|
10769
10846
|
}, null, 10, _hoisted_8))
|
|
10770
10847
|
}), 128))
|
|
@@ -10780,89 +10857,82 @@ return (_ctx, _cache) => {
|
|
|
10780
10857
|
}
|
|
10781
10858
|
|
|
10782
10859
|
};
|
|
10783
|
-
const FootnotesAside = /*#__PURE__*/_export_sfc(_sfc_main$1, [['__scopeId',"data-v-
|
|
10860
|
+
const FootnotesAside = /*#__PURE__*/_export_sfc(_sfc_main$1, [['__scopeId',"data-v-5391e486"]]);
|
|
10784
10861
|
|
|
10785
|
-
const _style_0 = ".border-primary { border-color: var(--theme-primary, #690000);\n}\n.text-primary { color: var(--theme-primary, #690000);\n}\n.bg-primary { background-color: var(--theme-primary, #690000);\n}\n.border-primary-extralight { border-color: var(--theme-primary-extralight, #f3f4f6);\n}\n.text-primary-extralight { color: var(--theme-primary-extralight, #f3f4f6);\n}\n.bg-primary-extralight { background-color: var(--theme-primary-extralight, #f3f4f6);\n}\n.border-secondary { border-color: var(--theme-secondary, #ffa03c);\n}\n.text-secondary { color: var(--theme-secondary, #ffa03c);\n}\n.bg-secondary { background-color: var(--theme-secondary, #ffa03c);\n}\n.rootWrapper {\n\tmax-height: 100%;\n height: 100%;\n}\nmain#rootComponent {\n\theight: 100%;\n\tmax-height: 100%;\n}\nmain#rootComponent.light {\n\t\tbackground-color: var(--bg-light-mode, #fff7e0)\n}\nmain#rootComponent.dark {\n\t\tbackground-color: var(--bg-dark-mode, #2d2d2d);\n}\nmain#rootComponent.dark #content-area {\n\t\t\tcolor: #fff\n}\nheader.wrapper {\n\twidth: 200px;\n\tmargin: 0 auto;\n}\n#engine {\n\theight: calc(100% - 8.4rem);\n\tposition: relative;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n}\n.rootWrapper.safari {\n\tmax-height: initial;\n\theight: initial;\n}\n.rootWrapper.safari #engine {\n\theight: auto !important;\n}\n#reader-component {\n\twidth: 100%;\n}\n.typeArea {\n\twidth: 100%;\n}\n.engineWrapper {\n\theight: 100%;\n display: flex;\n justify-content: space-between;\n\tposition: relative;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n}\n.rootWrapper:not(.safari) .columns-double .columnsArea {\n\t-moz-column-count: 2;\n column-count: 2;\n grid-column-gap: 0;\n -moz-column-gap: 0;\n column-gap: 0;\n height: 100%;\n padding: 0;\n width: 100%;\n}\n@media only screen and (max-width: 1020px) {\n.rootWrapper:not(.safari) .columns-double .columnsArea {\n\t\t-moz-column-count: 1;\n \tcolumn-count: 1\n}\n}\n.rootWrapper:not(.safari) .columns-single .columnsArea {\n\t-moz-column-count: 1;\n\t column-count: 1;\n\t-moz-column-gap: 0;\n\t column-gap: 0;\n\theight: 100%;\n padding: 0;\n width: 100%;\n}\n.rootWrapper:not(.safari) .columns-single .columnsArea #content-area {\n\t\tmax-width: 37em;\n\t\tmargin: 0 auto;\n}\n.nav-prev { left: 0px;\n}\n.nav-next { right: 0px;\n}\n.viewer-nav {\n\theight: 100%;\n\tposition: relative;\n\ttop: 0px;\n\tbottom: 0px;\n\tz-index: 10;\n\twidth: 2.5rem;\n\tflex-shrink: 0;\n\tcursor: pointer;\n\talign-self: center;\n\ttransition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\ttransition-duration: 500ms;\n\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.viewer-nav:focus,\n\t.viewer-nav:active {\n\t\tborder: none !important;\n\t\tbox-shadow: none !important;\n\t\toutline-color: transparent !important;\n}\n#content-area *::-moz-selection {\n\tcolor: var(--theme-primary-extralight, #690000);\n\tbackground: var(--theme-secondary, #ffa03c);\n}\n#content-area *::selection {\n\tcolor: var(--theme-primary-extralight, #690000);\n\tbackground: var(--theme-secondary, #ffa03c);\n}\n.viewer-nav-icon { opacity: 0;\n}\n@media (min-width: 768px) {\n.viewer-nav-icon { opacity: 0.8;\n}\n}\n@media only screen and (max-width: 600px) {\n.columnsArea {\n\t\ttransition: margin 100ms\n}\n}\n#asidebar {\n\tbackground: var(--sidebar-backgorund, #690000);\n\tcolor: var(--sidebar-text, #f3f4f6);\n}\n\n/* slider */\n.rootWrapper.safari .slider-target,\n.rootWrapper.safari .slider-target *{\n\tdisplay: none !important;\n}\n.slider-target,.slider-target *{\n -webkit-touch-callout:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n box-sizing:border-box;\n touch-action:none;\n -webkit-user-select:none;\n -moz-user-select:none;\n user-select:none\n}\n.slider-target{\n position:relative\n}\n.slider-base,.slider-connects{\n height:100%;\n position:relative;\n width:100%;\n z-index:1\n}\n.slider-connects{\n overflow:hidden;\n z-index:0\n}\n.slider-connect,.slider-origin{\n height:100%;\n position:absolute;\n right:0;\n top:0;\n transform-origin:0 0;\n transform-style:flat;\n width:100%;\n will-change:transform;\n z-index:1\n}\n.slider-txt-dir-rtl.slider-horizontal .slider-origin{\n left:0;\n right:auto\n}\n.slider-vertical .slider-origin{\n top:-100%;\n width:0\n}\n.slider-horizontal .slider-origin{\n height:0\n}\n.slider-handle{\n -webkit-backface-visibility:hidden;\n backface-visibility:hidden;\n position:absolute\n}\n.slider-touch-area{\n height:100%;\n width:100%\n}\n.slider-state-tap .slider-connect,.slider-state-tap .slider-origin{\n transition:transform .3s\n}\n.slider-state-drag *{\n cursor:inherit!important\n}\n.slider-tooltip-drag .slider-tooltip,.slider-tooltip-focus .slider-tooltip{\n display:none!important\n}\n.slider-tooltip-drag .slider-active .slider-tooltip,.slider-tooltip-drag.slider-state-drag .slider-tooltip:not(.slider-tooltip-hidden),.slider-tooltip-focus.slider-focused .slider-tooltip:not(.slider-tooltip-hidden){\n display:block!important\n}\n.slider-horizontal{\n height:var(--slider-height,6px)\n}\n.slider-horizontal .slider-handle{\n height:var(--slider-handle-height,16px);\n right:calc(var(--slider-handle-width, 16px)/2*-1);\n top:calc((var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2*-1 + -1px);\n width:var(--slider-handle-width,16px)\n}\n.slider-vertical{\n height:var(--slider-vertical-height,300px);\n width:var(--slider-height,6px)\n}\n.slider-vertical .slider-handle{\n bottom:calc(var(--slider-handle-width, 16px)/2*-1);\n height:var(--slider-handle-width,16px);\n right:calc((var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2*-1 + -1px);\n width:var(--slider-handle-height,16px)\n}\n.slider-txt-dir-rtl.slider-horizontal .slider-handle{\n left:calc(var(--slider-handle-width, 16px)/2*-1);\n right:auto\n}\n.slider-base{\n background-color:var(--slider-bg,#d1d5db)\n}\n.slider-base,.slider-connects{\n border-radius:var(--slider-radius,9999px)\n}\n.slider-connect{\n background:var(--theme-secondary, #690000);\n cursor:pointer\n}\n.slider-draggable{\n cursor:ew-resize\n}\n.slider-vertical .slider-draggable{\n cursor:ns-resize\n}\n.slider-handle{\n background:var(--slider-handle-bg,#fff);\n border:var(--slider-handle-border,0);\n border-radius:var(--slider-handle-radius,9999px);\n box-shadow:var(--slider-handle-shadow,.5px .5px 2px 1px rgba(0,0,0,.32));\n cursor:-webkit-grab;\n cursor:grab;\n height:var(--slider-handle-height,16px);\n width:var(--slider-handle-width,16px)\n}\n.slider-handle:focus{\n box-shadow:0 0 0 var(--slider-handle-ring-width,3px) var(--slider-handle-ring-color,rgba(16,185,129,.188)),var(--slider-handle-shadow,.5px .5px 2px 1px rgba(0,0,0,.32));\n outline:none\n}\n.slider-active{\n box-shadow:var(--slider-handle-shadow-active,.5px .5px 2px 1px rgba(0,0,0,.42));\n cursor:-webkit-grabbing;\n cursor:grabbing\n}\n[disabled] .slider-connect{\n background:var(--slider-connect-bg-disabled,#9ca3af)\n}\n[disabled] .slider-handle,[disabled].slider-handle,[disabled].slider-target{\n cursor:not-allowed\n}\n[disabled] .slider-tooltip{\n background:var(--theme-secondary, #690000);\n border-color:var(--theme-secondary, #690000);\n\topacity: 0.5;\n}\n.slider-tooltip{\n background:var(--theme-secondary, #690000);\n border:1px solid var(--theme-secondary, #690000);\n border-radius:var(--slider-tooltip-radius,5px);\n color:var(--slider-tooltip-color,#fff);\n display:block;\n font-size:var(--slider-tooltip-font-size,.875rem);\n font-weight:var(--slider-tooltip-font-weight,600);\n line-height:var(--slider-tooltip-line-height,1.25rem);\n min-width:var(--slider-tooltip-min-width,20px);\n padding:var(--slider-tooltip-py,2px) var(--slider-tooltip-px,6px);\n position:absolute;\n text-align:center;\n white-space:nowrap\n}\n.slider-horizontal .slider-tooltip-top{\n bottom:calc(var(--slider-handle-height, 16px) + var(--slider-tooltip-arrow-size, 5px) + var(--slider-tooltip-distance, 3px));\n left:50%;\n transform:translate(-50%)\n}\n.slider-horizontal .slider-tooltip-top:before{\n border:var(--slider-tooltip-arrow-size,5px) solid transparent;\n border-top-color:inherit;\n bottom:calc(var(--slider-tooltip-arrow-size, 5px)*-2);\n content:\"\";\n height:0;\n left:50%;\n position:absolute;\n transform:translate(-50%);\n width:0\n}\n.slider-horizontal .slider-tooltip-bottom{\n left:50%;\n top:calc(var(--slider-handle-height, 16px) + var(--slider-tooltip-arrow-size, 5px) + var(--slider-tooltip-distance, 3px));\n transform:translate(-50%)\n}\n.slider-horizontal .slider-tooltip-bottom:before{\n border:var(--slider-tooltip-arrow-size,5px) solid transparent;\n border-bottom-color:inherit;\n content:\"\";\n height:0;\n left:50%;\n position:absolute;\n top:calc(var(--slider-tooltip-arrow-size, 5px)*-2);\n transform:translate(-50%);\n width:0\n}\n.slider-vertical .slider-tooltip-left{\n right:calc(var(--slider-handle-height, 16px) + var(--slider-tooltip-arrow-size, 5px) + var(--slider-tooltip-distance, 3px));\n top:50%;\n transform:translateY(-50%)\n}\n.slider-vertical .slider-tooltip-left:before{\n border:var(--slider-tooltip-arrow-size,5px) solid transparent;\n border-left-color:inherit;\n content:\"\";\n height:0;\n position:absolute;\n right:calc(var(--slider-tooltip-arrow-size, 5px)*-2);\n top:50%;\n transform:translateY(-50%);\n width:0\n}\n.slider-vertical .slider-tooltip-right{\n left:calc(var(--slider-handle-height, 16px) + var(--slider-tooltip-arrow-size, 5px) + var(--slider-tooltip-distance, 3px));\n top:50%;\n transform:translateY(-50%)\n}\n.slider-vertical .slider-tooltip-right:before{\n border:var(--slider-tooltip-arrow-size,5px) solid transparent;\n border-right-color:inherit;\n content:\"\";\n height:0;\n left:calc(var(--slider-tooltip-arrow-size, 5px)*-2);\n position:absolute;\n top:50%;\n transform:translateY(-50%);\n width:0\n}\n.slider-horizontal .slider-origin>.slider-tooltip{\n left:auto;\n transform:translate(50%)\n}\n.slider-horizontal .slider-origin>.slider-tooltip-top{\n bottom:calc(var(--slider-tooltip-arrow-size, 5px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2 + var(--slider-tooltip-distance, 3px) + 1px)\n}\n.slider-horizontal .slider-origin>.slider-tooltip-bottom{\n top:calc(var(--slider-tooltip-arrow-size, 5px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2 + var(--slider-tooltip-distance, 3px) + var(--slider-height, 6px) - 1px)\n}\n.slider-vertical .slider-origin>.slider-tooltip{\n top:auto;\n transform:translateY(calc((var(--slider-tooltip-line-height, 1.25rem) - var(--slider-tooltip-py, 2px))*-1 + 1px))\n}\n.slider-vertical .slider-origin>.slider-tooltip-left{\n right:calc(var(--slider-tooltip-arrow-size, 5px) + var(--slider-height, 6px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2 + var(--slider-tooltip-distance, 3px) - 1px)\n}\n.slider-vertical .slider-origin>.slider-tooltip-right{\n left:calc(var(--slider-tooltip-arrow-size, 5px) + var(--slider-height, 6px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2 + var(--slider-tooltip-distance, 3px) - var(--slider-height, 6px) + 1px)\n}\n\n";
|
|
10786
|
-
|
|
10787
|
-
const _hoisted_1 = { class: "text-white text-center text-xs" };
|
|
10862
|
+
const _style_0 = ".border-primary { border-color: var(--theme-primary, #690000);\n}\n.text-primary { color: var(--theme-primary, #690000);\n}\n.bg-primary { background-color: var(--theme-primary, #690000);\n}\n.border-primary-extralight { border-color: var(--theme-primary-extralight, #f3f4f6);\n}\n.text-primary-extralight { color: var(--theme-primary-extralight, #f3f4f6);\n}\n.bg-primary-extralight { background-color: var(--theme-primary-extralight, #f3f4f6);\n}\n.border-secondary { border-color: var(--theme-secondary, #ffa03c);\n}\n.text-secondary { color: var(--theme-secondary, #ffa03c);\n}\n.bg-secondary { background-color: var(--theme-secondary, #ffa03c);\n}\n.rootWrapper {\r\n\tmax-height: 100%;\r\n height: 100%;\n}\nmain#rootComponent {\r\n\theight: 100%;\r\n\tmax-height: 100%;\n}\nmain#rootComponent.light {\r\n\t\tbackground-color: var(--bg-light-mode, #fff7e0)\n}\nmain#rootComponent.dark {\r\n\t\tbackground-color: var(--bg-dark-mode, #2d2d2d);\n}\nmain#rootComponent.dark #content-area {\r\n\t\t\tcolor: #fff\n}\nheader.wrapper {\r\n\twidth: 200px;\r\n\tmargin: 0 auto;\n}\n#engine {\r\n\theight: calc(100% - 8.4rem);\r\n\tposition: relative;\r\n right: 0;\r\n left: 0;\r\n bottom: 0;\r\n width: 100%;\n}\n.rootWrapper.safari {\r\n\tmax-height: initial;\r\n\theight: initial;\n}\n.rootWrapper.safari #engine {\r\n\theight: auto !important;\n}\n#reader-component {\r\n\twidth: 100%;\n}\n.typeArea {\r\n\twidth: 100%;\n}\n.engineWrapper {\r\n\theight: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n\tposition: relative;\r\n right: 0;\r\n left: 0;\r\n bottom: 0;\r\n width: 100%;\n}\n.rootWrapper:not(.safari) .columns-double .columnsArea {\r\n\t-moz-column-count: 2;\r\n column-count: 2;\r\n grid-column-gap: 0;\r\n -moz-column-gap: 0;\r\n column-gap: 0;\r\n height: 100%;\r\n padding: 0;\r\n width: 100%;\n}\n@media only screen and (max-width: 1020px) {\n.rootWrapper:not(.safari) .columns-double .columnsArea {\r\n\t\t-moz-column-count: 1;\r\n \tcolumn-count: 1\n}\n}\n.rootWrapper:not(.safari) .columns-single .columnsArea {\r\n\t-moz-column-count: 1;\r\n\t column-count: 1;\r\n\t-moz-column-gap: 0;\r\n\t column-gap: 0;\r\n\theight: 100%;\r\n padding: 0;\r\n width: 100%;\n}\n.rootWrapper:not(.safari) .columns-single .columnsArea #content-area {\r\n\t\tmax-width: 37em;\r\n\t\tmargin: 0 auto;\n}\n.nav-prev { left: 0px;\n}\n.nav-next { right: 0px;\n}\n.viewer-nav {\r\n\theight: 100%;\r\n\tposition: relative;\r\n\ttop: 0px;\r\n\tbottom: 0px;\r\n\tz-index: 10;\r\n\twidth: 2.5rem;\r\n\tflex-shrink: 0;\r\n\tcursor: pointer;\r\n\talign-self: center;\r\n\ttransition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\r\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\r\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\r\n\ttransition-duration: 500ms;\r\n\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.viewer-nav:focus,\r\n\t.viewer-nav:active {\r\n\t\tborder: none !important;\r\n\t\tbox-shadow: none !important;\r\n\t\toutline-color: transparent !important;\n}\n#content-area *::-moz-selection {\r\n\tcolor: var(--theme-primary-extralight, #690000);\r\n\tbackground: var(--theme-secondary, #ffa03c);\n}\n#content-area *::selection {\r\n\tcolor: var(--theme-primary-extralight, #690000);\r\n\tbackground: var(--theme-secondary, #ffa03c);\n}\n.viewer-nav-icon { opacity: 0;\n}\n@media (min-width: 768px) {\n.viewer-nav-icon { opacity: 0.8;\n}\n}\n@media only screen and (max-width: 600px) {\n.columnsArea {\r\n\t\ttransition: margin 100ms\n}\n}\n#asidebar {\r\n\tbackground: var(--sidebar-backgorund, #690000);\r\n\tcolor: var(--sidebar-text, #f3f4f6);\n}\r\n\r\n/* slider */\n.rootWrapper.safari .slider-target,\r\n.rootWrapper.safari .slider-target *{\r\n\tdisplay: none !important;\n}\n.slider-target,.slider-target *{\r\n -webkit-touch-callout:none;\r\n -webkit-tap-highlight-color:rgba(0,0,0,0);\r\n box-sizing:border-box;\r\n touch-action:none;\r\n -webkit-user-select:none;\r\n -moz-user-select:none;\r\n user-select:none\n}\n.slider-target{\r\n position:relative\n}\n.slider-base,.slider-connects{\r\n height:100%;\r\n position:relative;\r\n width:100%;\r\n z-index:1\n}\n.slider-connects{\r\n overflow:hidden;\r\n z-index:0\n}\n.slider-connect,.slider-origin{\r\n height:100%;\r\n position:absolute;\r\n right:0;\r\n top:0;\r\n transform-origin:0 0;\r\n transform-style:flat;\r\n width:100%;\r\n will-change:transform;\r\n z-index:1\n}\n.slider-txt-dir-rtl.slider-horizontal .slider-origin{\r\n left:0;\r\n right:auto\n}\n.slider-vertical .slider-origin{\r\n top:-100%;\r\n width:0\n}\n.slider-horizontal .slider-origin{\r\n height:0\n}\n.slider-handle{\r\n -webkit-backface-visibility:hidden;\r\n backface-visibility:hidden;\r\n position:absolute\n}\n.slider-touch-area{\r\n height:100%;\r\n width:100%\n}\n.slider-state-tap .slider-connect,.slider-state-tap .slider-origin{\r\n transition:transform .3s\n}\n.slider-state-drag *{\r\n cursor:inherit!important\n}\n.slider-tooltip-drag .slider-tooltip,.slider-tooltip-focus .slider-tooltip{\r\n display:none!important\n}\n.slider-tooltip-drag .slider-active .slider-tooltip,.slider-tooltip-drag.slider-state-drag .slider-tooltip:not(.slider-tooltip-hidden),.slider-tooltip-focus.slider-focused .slider-tooltip:not(.slider-tooltip-hidden){\r\n display:block!important\n}\n.slider-horizontal{\r\n height:var(--slider-height,6px)\n}\n.slider-horizontal .slider-handle{\r\n height:var(--slider-handle-height,16px);\r\n right:calc(var(--slider-handle-width, 16px)/2*-1);\r\n top:calc((var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2*-1 + -1px);\r\n width:var(--slider-handle-width,16px)\n}\n.slider-vertical{\r\n height:var(--slider-vertical-height,300px);\r\n width:var(--slider-height,6px)\n}\n.slider-vertical .slider-handle{\r\n bottom:calc(var(--slider-handle-width, 16px)/2*-1);\r\n height:var(--slider-handle-width,16px);\r\n right:calc((var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2*-1 + -1px);\r\n width:var(--slider-handle-height,16px)\n}\n.slider-txt-dir-rtl.slider-horizontal .slider-handle{\r\n left:calc(var(--slider-handle-width, 16px)/2*-1);\r\n right:auto\n}\n.slider-base{\r\n background-color:var(--slider-bg,#d1d5db)\n}\n.slider-base,.slider-connects{\r\n border-radius:var(--slider-radius,9999px)\n}\n.slider-connect{\r\n background:var(--theme-secondary, #690000);\r\n cursor:pointer\n}\n.slider-draggable{\r\n cursor:ew-resize\n}\n.slider-vertical .slider-draggable{\r\n cursor:ns-resize\n}\n.slider-handle{\r\n background:var(--slider-handle-bg,#fff);\r\n border:var(--slider-handle-border,0);\r\n border-radius:var(--slider-handle-radius,9999px);\r\n box-shadow:var(--slider-handle-shadow,.5px .5px 2px 1px rgba(0,0,0,.32));\r\n cursor:-webkit-grab;\r\n cursor:grab;\r\n height:var(--slider-handle-height,16px);\r\n width:var(--slider-handle-width,16px)\n}\n.slider-handle:focus{\r\n box-shadow:0 0 0 var(--slider-handle-ring-width,3px) var(--slider-handle-ring-color,rgba(16,185,129,.188)),var(--slider-handle-shadow,.5px .5px 2px 1px rgba(0,0,0,.32));\r\n outline:none\n}\n.slider-active{\r\n box-shadow:var(--slider-handle-shadow-active,.5px .5px 2px 1px rgba(0,0,0,.42));\r\n cursor:-webkit-grabbing;\r\n cursor:grabbing\n}\n[disabled] .slider-connect{\r\n background:var(--slider-connect-bg-disabled,#9ca3af)\n}\n[disabled] .slider-handle,[disabled].slider-handle,[disabled].slider-target{\r\n cursor:not-allowed\n}\n[disabled] .slider-tooltip{\r\n background:var(--theme-secondary, #690000);\r\n border-color:var(--theme-secondary, #690000);\r\n\topacity: 0.5;\n}\n.slider-tooltip{\r\n background:var(--theme-secondary, #690000);\r\n border:1px solid var(--theme-secondary, #690000);\r\n border-radius:var(--slider-tooltip-radius,5px);\r\n color:var(--slider-tooltip-color,#fff);\r\n display:block;\r\n font-size:var(--slider-tooltip-font-size,.875rem);\r\n font-weight:var(--slider-tooltip-font-weight,600);\r\n line-height:var(--slider-tooltip-line-height,1.25rem);\r\n min-width:var(--slider-tooltip-min-width,20px);\r\n padding:var(--slider-tooltip-py,2px) var(--slider-tooltip-px,6px);\r\n position:absolute;\r\n text-align:center;\r\n white-space:nowrap\n}\n.slider-horizontal .slider-tooltip-top{\r\n bottom:calc(var(--slider-handle-height, 16px) + var(--slider-tooltip-arrow-size, 5px) + var(--slider-tooltip-distance, 3px));\r\n left:50%;\r\n transform:translate(-50%)\n}\n.slider-horizontal .slider-tooltip-top:before{\r\n border:var(--slider-tooltip-arrow-size,5px) solid transparent;\r\n border-top-color:inherit;\r\n bottom:calc(var(--slider-tooltip-arrow-size, 5px)*-2);\r\n content:\"\";\r\n height:0;\r\n left:50%;\r\n position:absolute;\r\n transform:translate(-50%);\r\n width:0\n}\n.slider-horizontal .slider-tooltip-bottom{\r\n left:50%;\r\n top:calc(var(--slider-handle-height, 16px) + var(--slider-tooltip-arrow-size, 5px) + var(--slider-tooltip-distance, 3px));\r\n transform:translate(-50%)\n}\n.slider-horizontal .slider-tooltip-bottom:before{\r\n border:var(--slider-tooltip-arrow-size,5px) solid transparent;\r\n border-bottom-color:inherit;\r\n content:\"\";\r\n height:0;\r\n left:50%;\r\n position:absolute;\r\n top:calc(var(--slider-tooltip-arrow-size, 5px)*-2);\r\n transform:translate(-50%);\r\n width:0\n}\n.slider-vertical .slider-tooltip-left{\r\n right:calc(var(--slider-handle-height, 16px) + var(--slider-tooltip-arrow-size, 5px) + var(--slider-tooltip-distance, 3px));\r\n top:50%;\r\n transform:translateY(-50%)\n}\n.slider-vertical .slider-tooltip-left:before{\r\n border:var(--slider-tooltip-arrow-size,5px) solid transparent;\r\n border-left-color:inherit;\r\n content:\"\";\r\n height:0;\r\n position:absolute;\r\n right:calc(var(--slider-tooltip-arrow-size, 5px)*-2);\r\n top:50%;\r\n transform:translateY(-50%);\r\n width:0\n}\n.slider-vertical .slider-tooltip-right{\r\n left:calc(var(--slider-handle-height, 16px) + var(--slider-tooltip-arrow-size, 5px) + var(--slider-tooltip-distance, 3px));\r\n top:50%;\r\n transform:translateY(-50%)\n}\n.slider-vertical .slider-tooltip-right:before{\r\n border:var(--slider-tooltip-arrow-size,5px) solid transparent;\r\n border-right-color:inherit;\r\n content:\"\";\r\n height:0;\r\n left:calc(var(--slider-tooltip-arrow-size, 5px)*-2);\r\n position:absolute;\r\n top:50%;\r\n transform:translateY(-50%);\r\n width:0\n}\n.slider-horizontal .slider-origin>.slider-tooltip{\r\n left:auto;\r\n transform:translate(50%)\n}\n.slider-horizontal .slider-origin>.slider-tooltip-top{\r\n bottom:calc(var(--slider-tooltip-arrow-size, 5px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2 + var(--slider-tooltip-distance, 3px) + 1px)\n}\n.slider-horizontal .slider-origin>.slider-tooltip-bottom{\r\n top:calc(var(--slider-tooltip-arrow-size, 5px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2 + var(--slider-tooltip-distance, 3px) + var(--slider-height, 6px) - 1px)\n}\n.slider-vertical .slider-origin>.slider-tooltip{\r\n top:auto;\r\n transform:translateY(calc((var(--slider-tooltip-line-height, 1.25rem) - var(--slider-tooltip-py, 2px))*-1 + 1px))\n}\n.slider-vertical .slider-origin>.slider-tooltip-left{\r\n right:calc(var(--slider-tooltip-arrow-size, 5px) + var(--slider-height, 6px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2 + var(--slider-tooltip-distance, 3px) - 1px)\n}\n.slider-vertical .slider-origin>.slider-tooltip-right{\r\n left:calc(var(--slider-tooltip-arrow-size, 5px) + var(--slider-height, 6px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px))/2 + var(--slider-tooltip-distance, 3px) - var(--slider-height, 6px) + 1px)\n}\r\n\r\n";
|
|
10788
10863
|
|
|
10864
|
+
const _hoisted_1 = { class: "text-white text-center text-sm" };
|
|
10865
|
+
const _hoisted_2 = { class: "text-white text-center text-xs" };
|
|
10866
|
+
|
|
10789
10867
|
|
|
10790
10868
|
const _sfc_main = {
|
|
10791
10869
|
__name: 'App.ce',
|
|
10792
|
-
props: {
|
|
10793
|
-
bookTitle: String,
|
|
10794
|
-
bookContent: String,
|
|
10795
|
-
readerSettings: String,
|
|
10796
|
-
readerBlocked: Boolean,
|
|
10797
|
-
rootClass: {
|
|
10798
|
-
type: String,
|
|
10799
|
-
default: ''
|
|
10800
|
-
},
|
|
10801
|
-
cssFile: String,
|
|
10802
|
-
cssString: String
|
|
10870
|
+
props: {
|
|
10871
|
+
bookTitle: String,
|
|
10872
|
+
bookContent: String,
|
|
10873
|
+
readerSettings: String,
|
|
10874
|
+
readerBlocked: Boolean,
|
|
10875
|
+
rootClass: {
|
|
10876
|
+
type: String,
|
|
10877
|
+
default: ''
|
|
10878
|
+
},
|
|
10879
|
+
cssFile: String,
|
|
10880
|
+
cssString: String
|
|
10803
10881
|
},
|
|
10804
10882
|
setup(__props) {
|
|
10805
10883
|
|
|
10806
10884
|
const props = __props;
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
const {
|
|
10811
|
-
const { currentPage, totalPages
|
|
10812
|
-
const { content, listenToClicks } = useTextContent;
|
|
10813
|
-
const { width, height } = useWindowSize();
|
|
10814
|
-
|
|
10815
|
-
const readerComponent = ref(null);
|
|
10816
|
-
const contentArea = ref(null);
|
|
10817
|
-
const rootComponent = ref(null);
|
|
10818
|
-
|
|
10819
|
-
onMounted(async () => {
|
|
10820
|
-
init(readerComponent, contentArea);
|
|
10821
|
-
initSettings(props.readerSettings);
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
);
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
{ debounce: 125, maxWait: 250 }
|
|
10859
|
-
);
|
|
10860
|
-
|
|
10861
|
-
watchDebounced(content,
|
|
10862
|
-
() => listenToClicks(contentArea),
|
|
10863
|
-
{ debounce: 125, maxWait: 250 }
|
|
10864
|
-
);
|
|
10865
|
-
|
|
10885
|
+
|
|
10886
|
+
|
|
10887
|
+
|
|
10888
|
+
const { baseFont, bookTitle, chapterTitle, textFont, fontSize, columns, setColumns, mode } = useReaderSettings;
|
|
10889
|
+
const { currentPage, totalPages } = usePagination;
|
|
10890
|
+
const { content, listenToClicks } = useTextContent;
|
|
10891
|
+
const { width, height } = useWindowSize();
|
|
10892
|
+
|
|
10893
|
+
const readerComponent = ref(null);
|
|
10894
|
+
const contentArea = ref(null);
|
|
10895
|
+
const rootComponent = ref(null);
|
|
10896
|
+
|
|
10897
|
+
onMounted(async () => {
|
|
10898
|
+
usePagination.init(readerComponent, contentArea);
|
|
10899
|
+
useReaderSettings.initSettings(props.readerSettings);
|
|
10900
|
+
useStyles.initStyles(props, rootComponent);
|
|
10901
|
+
|
|
10902
|
+
if (['string', 'boolean'].includes(typeof props.readerBlocked)) {
|
|
10903
|
+
useReaderSettings.setBlocked(props.readerBlocked);
|
|
10904
|
+
}
|
|
10905
|
+
|
|
10906
|
+
});
|
|
10907
|
+
|
|
10908
|
+
watch(
|
|
10909
|
+
props,
|
|
10910
|
+
() => {
|
|
10911
|
+
if (props.hasOwnProperty('readerBlocked')) {
|
|
10912
|
+
const readerBlocked = typeof props.readerBlocked === 'boolean'
|
|
10913
|
+
? props.readerBlocked
|
|
10914
|
+
: props.readerBlocked === 'true';
|
|
10915
|
+
useReaderSettings.setBlocked(readerBlocked);
|
|
10916
|
+
}
|
|
10917
|
+
}
|
|
10918
|
+
);
|
|
10919
|
+
|
|
10920
|
+
watchDebounced(
|
|
10921
|
+
[width, height, content, columns, fontSize, textFont],
|
|
10922
|
+
() => {
|
|
10923
|
+
if (width.value < 1024 && columns.value === 'double')
|
|
10924
|
+
setColumns('single');
|
|
10925
|
+
else
|
|
10926
|
+
useEstimatePages.estimate(readerComponent, contentArea);
|
|
10927
|
+
},
|
|
10928
|
+
{ debounce: 125, maxWait: 250 }
|
|
10929
|
+
);
|
|
10930
|
+
|
|
10931
|
+
watchDebounced(content,
|
|
10932
|
+
() => listenToClicks(contentArea),
|
|
10933
|
+
{ debounce: 125, maxWait: 250 }
|
|
10934
|
+
);
|
|
10935
|
+
|
|
10866
10936
|
|
|
10867
10937
|
return (_ctx, _cache) => {
|
|
10868
10938
|
return (openBlock(), createElementBlock("div", {
|
|
@@ -10872,18 +10942,19 @@ return (_ctx, _cache) => {
|
|
|
10872
10942
|
id: "rootComponent",
|
|
10873
10943
|
ref_key: "rootComponent",
|
|
10874
10944
|
ref: rootComponent,
|
|
10875
|
-
class: normalizeClass(unref(mode)
|
|
10876
|
-
.concat(` ${props.rootClass}`)
|
|
10877
|
-
.concat(` currentPage-${unref(currentPage)}`)
|
|
10878
|
-
.concat(` totalPages-${unref(totalPages)}`)
|
|
10879
|
-
.concat(` columns-${unref(columns)}`)
|
|
10945
|
+
class: normalizeClass(unref(mode)
|
|
10946
|
+
.concat(` ${props.rootClass}`)
|
|
10947
|
+
.concat(` currentPage-${unref(currentPage)}`)
|
|
10948
|
+
.concat(` totalPages-${unref(totalPages)}`)
|
|
10949
|
+
.concat(` columns-${unref(columns)}`)
|
|
10880
10950
|
),
|
|
10881
10951
|
style: normalizeStyle(`font-family: ${unref(baseFont)}`)
|
|
10882
10952
|
}, [
|
|
10883
10953
|
createVNode(_sfc_main$9, null, {
|
|
10884
10954
|
header: withCtx(() => [
|
|
10885
10955
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
10886
|
-
createBaseVNode("p", _hoisted_1, toDisplayString(props.bookTitle), 1)
|
|
10956
|
+
createBaseVNode("p", _hoisted_1, toDisplayString(props.bookTitle || unref(bookTitle)), 1),
|
|
10957
|
+
createBaseVNode("p", _hoisted_2, toDisplayString(props.chapterTitle || unref(chapterTitle)), 1)
|
|
10887
10958
|
])
|
|
10888
10959
|
]),
|
|
10889
10960
|
summaryTop: withCtx(() => [
|
|
@@ -10943,20 +11014,20 @@ return (_ctx, _cache) => {
|
|
|
10943
11014
|
};
|
|
10944
11015
|
const App = /*#__PURE__*/_export_sfc(_sfc_main, [['styles',[_style_0]]]);
|
|
10945
11016
|
|
|
10946
|
-
const tailwindStyles = "/*\n! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com\n*/\n\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box;\n /* 1 */\n border-width: 0;\n /* 2 */\n border-style: solid;\n /* 2 */\n border-color: #e5e7eb;\n /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n*/\n\nhtml {\n line-height: 1.5;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n -moz-tab-size: 4;\n /* 3 */\n -o-tab-size: 4;\n tab-size: 4;\n /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n /* 4 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0;\n /* 1 */\n line-height: inherit;\n /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0;\n /* 1 */\n color: inherit;\n /* 2 */\n border-top-width: 1px;\n /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0;\n /* 1 */\n border-color: inherit;\n /* 2 */\n border-collapse: collapse;\n /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n /* 1 */\n font-size: 100%;\n /* 1 */\n font-weight: inherit;\n /* 1 */\n line-height: inherit;\n /* 1 */\n color: inherit;\n /* 1 */\n margin: 0;\n /* 2 */\n padding: 0;\n /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block;\n /* 1 */\n vertical-align: middle;\n /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::-webkit-backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.top-0 {\n top: 0px;\n}\n\n.right-0 {\n right: 0px;\n}\n\n.top-4 {\n top: 1rem;\n}\n\n.right-8 {\n right: 2rem;\n}\n\n.bottom-0 {\n bottom: 0px;\n}\n\n.top-14 {\n top: 3.5rem;\n}\n\n.-right-2 {\n right: -0.5rem;\n}\n\n.-left-2 {\n left: -0.5rem;\n}\n\n.z-20 {\n z-index: 20;\n}\n\n.z-40 {\n z-index: 40;\n}\n\n.z-10 {\n z-index: 10;\n}\n\n.col-span-1 {\n grid-column: span 1 / span 1;\n}\n\n.col-span-2 {\n grid-column: span 2 / span 2;\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.my-3 {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n.my-8 {\n margin-top: 2rem;\n margin-bottom: 2rem;\n}\n\n.mb-6 {\n margin-bottom: 1.5rem;\n}\n\n.ml-4 {\n margin-left: 1rem;\n}\n\n.ml-10 {\n margin-left: 2.5rem;\n}\n\n.mt-3 {\n margin-top: 0.75rem;\n}\n\n.mr-3 {\n margin-right: 0.75rem;\n}\n\n.ml-3 {\n margin-left: 0.75rem;\n}\n\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n\n.block {\n display: block;\n}\n\n.flex {\n display: flex;\n}\n\n.grid {\n display: grid;\n}\n\n.hidden {\n display: none;\n}\n\n.h-screen {\n height: 100vh;\n}\n\n.h-6 {\n height: 1.5rem;\n}\n\n.h-8 {\n height: 2rem;\n}\n\n.h-full {\n height: 100%;\n}\n\n.h-10 {\n height: 2.5rem;\n}\n\n.h-5 {\n height: 1.25rem;\n}\n\n.w-full {\n width: 100%;\n}\n\n.w-96 {\n width: 24rem;\n}\n\n.w-6 {\n width: 1.5rem;\n}\n\n.w-8 {\n width: 2rem;\n}\n\n.w-4\\/5 {\n width: 80%;\n}\n\n.w-5 {\n width: 1.25rem;\n}\n\n.w-60 {\n width: 15rem;\n}\n\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n\n.scale-95 {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.cursor-default {\n cursor: default;\n}\n\n.grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n\n.grid-cols-4 {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-2 {\n gap: 0.5rem;\n}\n\n.divide-opacity-75 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 0.75;\n}\n\n.self-end {\n align-self: flex-end;\n}\n\n.overflow-auto {\n overflow: auto;\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n\n.rounded {\n border-radius: 0.25rem;\n}\n\n.rounded-sm {\n border-radius: 0.125rem;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-2 {\n border-width: 2px;\n}\n\n.border-b {\n border-bottom-width: 1px;\n}\n\n.border-white {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity));\n}\n\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n\n.border-b-white\\/25 {\n border-bottom-color: rgb(255 255 255 / 0.25);\n}\n\n.bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(31 41 55 / var(--tw-bg-opacity));\n}\n\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n.p-4 {\n padding: 1rem;\n}\n\n.p-10 {\n padding: 2.5rem;\n}\n\n.p-3 {\n padding: 0.75rem;\n}\n\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.pt-10 {\n padding-top: 2.5rem;\n}\n\n.pl-4 {\n padding-left: 1rem;\n}\n\n.text-left {\n text-align: left;\n}\n\n.text-center {\n text-align: center;\n}\n\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n\n.font-light {\n font-weight: 300;\n}\n\n.lowercase {\n text-transform: lowercase;\n}\n\n.tracking-wide {\n letter-spacing: 0.025em;\n}\n\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n\n.text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n\n.opacity-50 {\n opacity: 0.5;\n}\n\n.opacity-100 {\n opacity: 1;\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.opacity-30 {\n opacity: 0.3;\n}\n\n.opacity-75 {\n opacity: 0.75;\n}\n\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.transition-colors {\n transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.transition {\n transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.duration-100 {\n transition-duration: 100ms;\n}\n\n.duration-200 {\n transition-duration: 200ms;\n}\n\n.duration-75 {\n transition-duration: 75ms;\n}\n\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n\n.last\\:border-transparent:last-child {\n border-color: transparent;\n}\n\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n\n@media (prefers-color-scheme: dark) {\n .dark\\:text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n }\n}\n\n@media (min-width: 768px) {\n .md\\:bottom-14 {\n bottom: 3.5rem;\n }\n\n .md\\:right-3 {\n right: 0.75rem;\n }\n\n .md\\:right-16 {\n right: 4rem;\n }\n\n .md\\:left-16 {\n left: 4rem;\n }\n\n .md\\:flex {\n display: flex;\n }\n\n .md\\:grid {\n display: grid;\n }\n\n .md\\:w-\\[40em\\] {\n width: 40em;\n }\n\n .md\\:w-2\\/5 {\n width: 40%;\n }\n\n .md\\:px-24 {\n padding-left: 6rem;\n padding-right: 6rem;\n }\n}";
|
|
11017
|
+
const tailwindStyles = "/*\n! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com\n*/\n\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box;\n /* 1 */\n border-width: 0;\n /* 2 */\n border-style: solid;\n /* 2 */\n border-color: #e5e7eb;\n /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n*/\n\nhtml {\n line-height: 1.5;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n -moz-tab-size: 4;\n /* 3 */\n -o-tab-size: 4;\n tab-size: 4;\n /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n /* 4 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0;\n /* 1 */\n line-height: inherit;\n /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0;\n /* 1 */\n color: inherit;\n /* 2 */\n border-top-width: 1px;\n /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0;\n /* 1 */\n border-color: inherit;\n /* 2 */\n border-collapse: collapse;\n /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n /* 1 */\n font-size: 100%;\n /* 1 */\n font-weight: inherit;\n /* 1 */\n line-height: inherit;\n /* 1 */\n color: inherit;\n /* 1 */\n margin: 0;\n /* 2 */\n padding: 0;\n /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block;\n /* 1 */\n vertical-align: middle;\n /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::-webkit-backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.top-0 {\n top: 0px;\n}\n\n.right-0 {\n right: 0px;\n}\n\n.top-4 {\n top: 1rem;\n}\n\n.right-8 {\n right: 2rem;\n}\n\n.bottom-0 {\n bottom: 0px;\n}\n\n.top-14 {\n top: 3.5rem;\n}\n\n.-right-2 {\n right: -0.5rem;\n}\n\n.z-20 {\n z-index: 20;\n}\n\n.z-40 {\n z-index: 40;\n}\n\n.z-10 {\n z-index: 10;\n}\n\n.col-span-1 {\n grid-column: span 1 / span 1;\n}\n\n.col-span-2 {\n grid-column: span 2 / span 2;\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.my-3 {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n.my-8 {\n margin-top: 2rem;\n margin-bottom: 2rem;\n}\n\n.mb-6 {\n margin-bottom: 1.5rem;\n}\n\n.ml-4 {\n margin-left: 1rem;\n}\n\n.ml-10 {\n margin-left: 2.5rem;\n}\n\n.mt-3 {\n margin-top: 0.75rem;\n}\n\n.mr-3 {\n margin-right: 0.75rem;\n}\n\n.ml-3 {\n margin-left: 0.75rem;\n}\n\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n\n.block {\n display: block;\n}\n\n.flex {\n display: flex;\n}\n\n.grid {\n display: grid;\n}\n\n.hidden {\n display: none;\n}\n\n.h-screen {\n height: 100vh;\n}\n\n.h-6 {\n height: 1.5rem;\n}\n\n.h-8 {\n height: 2rem;\n}\n\n.h-full {\n height: 100%;\n}\n\n.h-10 {\n height: 2.5rem;\n}\n\n.h-5 {\n height: 1.25rem;\n}\n\n.w-full {\n width: 100%;\n}\n\n.w-96 {\n width: 24rem;\n}\n\n.w-6 {\n width: 1.5rem;\n}\n\n.w-8 {\n width: 2rem;\n}\n\n.w-4\\/5 {\n width: 80%;\n}\n\n.w-5 {\n width: 1.25rem;\n}\n\n.w-60 {\n width: 15rem;\n}\n\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n\n.scale-95 {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.cursor-default {\n cursor: default;\n}\n\n.grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n\n.grid-cols-4 {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-2 {\n gap: 0.5rem;\n}\n\n.divide-opacity-75 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 0.75;\n}\n\n.self-end {\n align-self: flex-end;\n}\n\n.overflow-auto {\n overflow: auto;\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n\n.rounded {\n border-radius: 0.25rem;\n}\n\n.rounded-sm {\n border-radius: 0.125rem;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-2 {\n border-width: 2px;\n}\n\n.border-b {\n border-bottom-width: 1px;\n}\n\n.border-white {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity));\n}\n\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n\n.border-b-white\\/25 {\n border-bottom-color: rgb(255 255 255 / 0.25);\n}\n\n.bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(31 41 55 / var(--tw-bg-opacity));\n}\n\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n.p-4 {\n padding: 1rem;\n}\n\n.p-10 {\n padding: 2.5rem;\n}\n\n.p-3 {\n padding: 0.75rem;\n}\n\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.pt-10 {\n padding-top: 2.5rem;\n}\n\n.pl-4 {\n padding-left: 1rem;\n}\n\n.text-left {\n text-align: left;\n}\n\n.text-center {\n text-align: center;\n}\n\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n\n.font-light {\n font-weight: 300;\n}\n\n.lowercase {\n text-transform: lowercase;\n}\n\n.tracking-wide {\n letter-spacing: 0.025em;\n}\n\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n\n.text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n\n.opacity-50 {\n opacity: 0.5;\n}\n\n.opacity-100 {\n opacity: 1;\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.opacity-30 {\n opacity: 0.3;\n}\n\n.opacity-75 {\n opacity: 0.75;\n}\n\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.transition-colors {\n transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.transition {\n transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.duration-100 {\n transition-duration: 100ms;\n}\n\n.duration-200 {\n transition-duration: 200ms;\n}\n\n.duration-75 {\n transition-duration: 75ms;\n}\n\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n\n.last\\:border-transparent:last-child {\n border-color: transparent;\n}\n\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n\n@media (prefers-color-scheme: dark) {\n .dark\\:text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n }\n}\n\n@media (min-width: 768px) {\n .md\\:bottom-14 {\n bottom: 3.5rem;\n }\n\n .md\\:right-3 {\n right: 0.75rem;\n }\n\n .md\\:right-16 {\n right: 4rem;\n }\n\n .md\\:flex {\n display: flex;\n }\n\n .md\\:grid {\n display: grid;\n }\n\n .md\\:w-\\[40em\\] {\n width: 40em;\n }\n\n .md\\:w-2\\/5 {\n width: 40%;\n }\n\n .md\\:px-24 {\n padding-left: 6rem;\n padding-right: 6rem;\n }\n}";
|
|
10947
11018
|
|
|
10948
|
-
// https://maximomussini.com/posts/vue-custom-elements
|
|
10949
|
-
|
|
10950
|
-
const styles = [
|
|
10951
|
-
...[tailwindStyles],
|
|
10952
|
-
...App.styles
|
|
10953
|
-
];
|
|
10954
|
-
|
|
10955
|
-
customElements.define(
|
|
10956
|
-
'paginate-content',
|
|
10957
|
-
defineCustomElement({
|
|
10958
|
-
...App,
|
|
10959
|
-
styles
|
|
10960
|
-
})
|
|
11019
|
+
// https://maximomussini.com/posts/vue-custom-elements
|
|
11020
|
+
|
|
11021
|
+
const styles = [
|
|
11022
|
+
...[tailwindStyles],
|
|
11023
|
+
...App.styles
|
|
11024
|
+
];
|
|
11025
|
+
|
|
11026
|
+
customElements.define(
|
|
11027
|
+
'paginate-content',
|
|
11028
|
+
defineCustomElement({
|
|
11029
|
+
...App,
|
|
11030
|
+
styles
|
|
11031
|
+
})
|
|
10961
11032
|
);
|
|
10962
11033
|
//# sourceMappingURL=index.es.js.map
|