@marimo-team/islands 0.25.1-dev2 → 0.25.1-dev4
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/dist/{ErrorBoundary-DO0ie20N.js → ErrorBoundary-pV36lYEK.js} +1 -1
- package/dist/{cells-DYIkSxs6.js → cells-B5-y5EY3.js} +4121 -4148
- package/dist/{chat-ui-BXj3uYjy.js → chat-ui-HJZsTl7o.js} +45 -45
- package/dist/{code-visibility-64_ACQvC.js → code-visibility-CgZS2a3W.js} +17 -17
- package/dist/{common-LlPE7GR6.js → common-DnMDPPaW.js} +611 -611
- package/dist/{data-grid-overlay-editor-BUvmnptP.js → data-grid-overlay-editor-hHYgD_Sm.js} +1 -1
- package/dist/{error-entries-C0NsUqXl.js → error-entries-Bkbpx0T0.js} +18 -18
- package/dist/{feedback-button-B98mEc3M.js → feedback-button-CvKssdG_.js} +19 -19
- package/dist/{formats-BR5iGb4s.js → formats-C8rLgZT9.js} +1 -1
- package/dist/{glide-data-editor-CBIPbkXG.js → glide-data-editor-Ohetlgag.js} +3 -3
- package/dist/{globals-VpAtGRbg.js → globals-CPNNcOJI.js} +1 -1
- package/dist/{html-to-image-CeYYvQNb.js → html-to-image-BAgJOlSW.js} +31 -30
- package/dist/main.js +581 -581
- package/dist/{number-overlay-editor-ClZmv3Qw.js → number-overlay-editor-CHWg5gGO.js} +1 -1
- package/dist/{process-output-BCTjlyuH.js → process-output-zDX4jbhd.js} +2 -2
- package/dist/{reveal-component-C1s_K6O8.js → reveal-component-BujcZI2B.js} +744 -743
- package/dist/{toDate-WXg1yLcI.js → toDate-C67bxMWn.js} +139 -111
- package/dist/{vega-component-D0QXopU8.js → vega-component-CNf5gcrm.js} +9 -9
- package/package.json +1 -1
- package/src/core/kernel/__tests__/session.test.ts +110 -1
- package/src/core/kernel/session.ts +46 -15
|
@@ -3,27 +3,28 @@ import { c as t, g as n, h as r, m as i, t as a } from "./button-DdXAm8iz.js";
|
|
|
3
3
|
import { t as o } from "./react-ofJbxM4x.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
5
|
import { g as c, t as l } from "./tooltip-qB8NlSqV.js";
|
|
6
|
-
import {
|
|
7
|
-
import { $ as
|
|
8
|
-
import { M as
|
|
9
|
-
import { J as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
6
|
+
import { w as u } from "./cells-B5-y5EY3.js";
|
|
7
|
+
import { $ as d, Q as f, Z as p, an as m, i as h, l as g, ln as _, n as v, on as y, r as b, t as x, u as S } from "./common-DnMDPPaW.js";
|
|
8
|
+
import { M as C } from "./select-C6plhmZr.js";
|
|
9
|
+
import { J as ee } from "./dropdown-menu-CZgjYSAh.js";
|
|
10
|
+
import { y as w } from "./toDate-C67bxMWn.js";
|
|
11
|
+
import { t as T } from "./jsx-runtime-DgDPJV9S.js";
|
|
12
|
+
import { q as te } from "./use-restore-focus-D5D9xEjZ.js";
|
|
13
|
+
import { A as E, C as D, b as O } from "./useTheme-DzXmYZ5V.js";
|
|
14
|
+
import { a as k, n as ne, t as re } from "./code-visibility-CgZS2a3W.js";
|
|
14
15
|
/* empty css */
|
|
15
|
-
var
|
|
16
|
+
var A = c("sticky-note", [["path", {
|
|
16
17
|
d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
|
|
17
18
|
key: "1dfntj"
|
|
18
19
|
}], ["path", {
|
|
19
20
|
d: "M15 3v5a1 1 0 0 0 1 1h5",
|
|
20
21
|
key: "6s6qgf"
|
|
21
|
-
}]]),
|
|
22
|
+
}]]), j = /* @__PURE__ */ e(o(), 1), M = s(), ie = (e, t) => {
|
|
22
23
|
for (let n in t) e[n] = t[n];
|
|
23
24
|
return e;
|
|
24
|
-
},
|
|
25
|
+
}, N = (e, t) => Array.from(e.querySelectorAll(t)), ae = (e, t, n) => {
|
|
25
26
|
n ? e.classList.add(t) : e.classList.remove(t);
|
|
26
|
-
},
|
|
27
|
+
}, oe = (e) => {
|
|
27
28
|
if (typeof e == "string") {
|
|
28
29
|
if (e === "null") return null;
|
|
29
30
|
if (e === "true") return !0;
|
|
@@ -31,23 +32,23 @@ var j = c("sticky-note", [["path", {
|
|
|
31
32
|
if (e.match(/^-?[\d\.]+$/)) return parseFloat(e);
|
|
32
33
|
}
|
|
33
34
|
return e;
|
|
34
|
-
},
|
|
35
|
+
}, se = (e, t) => {
|
|
35
36
|
e.style.transform = t;
|
|
36
|
-
},
|
|
37
|
+
}, P = (e, t) => {
|
|
37
38
|
let n = e.matches || e.matchesSelector || e.msMatchesSelector;
|
|
38
39
|
return !!(n && n.call(e, t));
|
|
39
|
-
},
|
|
40
|
+
}, F = (e, t) => {
|
|
40
41
|
if (e && typeof e.closest == "function") return e.closest(t);
|
|
41
42
|
for (; e;) {
|
|
42
|
-
if (
|
|
43
|
+
if (P(e, t)) return e;
|
|
43
44
|
e = e.parentElement;
|
|
44
45
|
}
|
|
45
46
|
return null;
|
|
46
|
-
},
|
|
47
|
+
}, ce = (e) => {
|
|
47
48
|
e ||= document.documentElement;
|
|
48
49
|
let t = e.requestFullscreen || e.webkitRequestFullscreen || e.webkitRequestFullScreen || e.mozRequestFullScreen || e.msRequestFullscreen;
|
|
49
50
|
t && t.apply(e);
|
|
50
|
-
},
|
|
51
|
+
}, le = (e, t, n, r = "") => {
|
|
51
52
|
let i = e.querySelectorAll("." + n);
|
|
52
53
|
for (let t = 0; t < i.length; t++) {
|
|
53
54
|
let n = i[t];
|
|
@@ -55,10 +56,10 @@ var j = c("sticky-note", [["path", {
|
|
|
55
56
|
}
|
|
56
57
|
let a = document.createElement(t);
|
|
57
58
|
return a.className = n, a.innerHTML = r, e.appendChild(a), a;
|
|
58
|
-
},
|
|
59
|
+
}, I = (e) => {
|
|
59
60
|
let t = document.createElement("style");
|
|
60
61
|
return e && e.length > 0 && t.appendChild(document.createTextNode(e)), document.head.appendChild(t), t;
|
|
61
|
-
},
|
|
62
|
+
}, ue = () => {
|
|
62
63
|
let e = {};
|
|
63
64
|
location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi, (t) => {
|
|
64
65
|
let n = t.split("=").shift(), r = t.split("=").pop();
|
|
@@ -66,27 +67,27 @@ var j = c("sticky-note", [["path", {
|
|
|
66
67
|
});
|
|
67
68
|
for (let t in e) {
|
|
68
69
|
let n = e[t];
|
|
69
|
-
e[t] =
|
|
70
|
+
e[t] = oe(unescape(n));
|
|
70
71
|
}
|
|
71
72
|
return e.dependencies !== void 0 && delete e.dependencies, e;
|
|
72
|
-
},
|
|
73
|
+
}, de = (e, t = 0) => {
|
|
73
74
|
if (e) {
|
|
74
75
|
let n, r = e.style.height;
|
|
75
76
|
return e.style.height = "0px", e.parentElement && (e.parentElement.style.height = "auto"), n = t - (e.parentElement?.offsetHeight || 0), e.style.height = r + "px", e.parentElement && e.parentElement.style.removeProperty("height"), n;
|
|
76
77
|
}
|
|
77
78
|
return t;
|
|
78
|
-
},
|
|
79
|
+
}, fe = {
|
|
79
80
|
mp4: "video/mp4",
|
|
80
81
|
m4a: "video/mp4",
|
|
81
82
|
ogv: "video/ogg",
|
|
82
83
|
mpeg: "video/mpeg",
|
|
83
84
|
webm: "video/webm"
|
|
84
|
-
},
|
|
85
|
+
}, pe = (e = "") => {
|
|
85
86
|
let t = e.split(".").pop();
|
|
86
|
-
return t ?
|
|
87
|
-
},
|
|
88
|
-
/chrome/i.test(
|
|
89
|
-
var
|
|
87
|
+
return t ? fe[t] : void 0;
|
|
88
|
+
}, me = (e = "") => encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`), he = navigator.userAgent, ge = /(iphone|ipod|ipad|android)/gi.test(he) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
89
|
+
/chrome/i.test(he) && /edge/i.test(he);
|
|
90
|
+
var L = /android/gi.test(he), _e = function(e) {
|
|
90
91
|
if (e) {
|
|
91
92
|
var t = function(e) {
|
|
92
93
|
return [].slice.call(e);
|
|
@@ -165,17 +166,17 @@ var R = /android/gi.test(me), ge = function(e) {
|
|
|
165
166
|
childList: !0,
|
|
166
167
|
characterData: !0
|
|
167
168
|
}
|
|
168
|
-
},
|
|
169
|
-
e.clearTimeout(
|
|
170
|
-
},
|
|
171
|
-
return Object.defineProperty(
|
|
169
|
+
}, ee = null, w = function() {
|
|
170
|
+
e.clearTimeout(ee), ee = e.setTimeout(l(i), E.observeWindowDelay);
|
|
171
|
+
}, T = ["resize", "orientationchange"];
|
|
172
|
+
return Object.defineProperty(E, "observeWindow", { set: function(t) {
|
|
172
173
|
var n = `${t ? "add" : "remove"}EventListener`;
|
|
173
|
-
|
|
174
|
-
e[n](t,
|
|
174
|
+
T.forEach((function(t) {
|
|
175
|
+
e[n](t, w);
|
|
175
176
|
}));
|
|
176
|
-
} }),
|
|
177
|
+
} }), E.observeWindow = !0, E.observeWindowDelay = 100, E.fitAll = l(a), E;
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
+
function te(e, t) {
|
|
179
180
|
var n = Object.assign({}, C, t), r = e.map((function(e) {
|
|
180
181
|
var t = Object.assign({}, n, {
|
|
181
182
|
element: e,
|
|
@@ -197,44 +198,44 @@ var R = /android/gi.test(me), ge = function(e) {
|
|
|
197
198
|
}));
|
|
198
199
|
return c(), r;
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
+
function E(e) {
|
|
201
202
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
202
|
-
return typeof e == "string" ?
|
|
203
|
+
return typeof e == "string" ? te(t(document.querySelectorAll(e)), n) : te([e], n)[0];
|
|
203
204
|
}
|
|
204
205
|
}(typeof window > "u" ? null : window);
|
|
205
|
-
function
|
|
206
|
+
function ve(e) {
|
|
206
207
|
"@babel/helpers - typeof";
|
|
207
|
-
return
|
|
208
|
+
return ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
208
209
|
return typeof e;
|
|
209
210
|
} : function(e) {
|
|
210
211
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
211
|
-
},
|
|
212
|
+
}, ve(e);
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
-
if (
|
|
214
|
+
function ye(e, t) {
|
|
215
|
+
if (ve(e) != "object" || !e) return e;
|
|
215
216
|
var n = e[Symbol.toPrimitive];
|
|
216
217
|
if (n !== void 0) {
|
|
217
218
|
var r = n.call(e, t || "default");
|
|
218
|
-
if (
|
|
219
|
+
if (ve(r) != "object") return r;
|
|
219
220
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
220
221
|
}
|
|
221
222
|
return (t === "string" ? String : Number)(e);
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
-
var t =
|
|
225
|
-
return
|
|
224
|
+
function be(e) {
|
|
225
|
+
var t = ye(e, "string");
|
|
226
|
+
return ve(t) == "symbol" ? t : t + "";
|
|
226
227
|
}
|
|
227
|
-
function
|
|
228
|
-
return (t =
|
|
228
|
+
function R(e, t, n) {
|
|
229
|
+
return (t = be(t)) in e ? Object.defineProperty(e, t, {
|
|
229
230
|
value: n,
|
|
230
231
|
enumerable: !0,
|
|
231
232
|
configurable: !0,
|
|
232
233
|
writable: !0
|
|
233
234
|
}) : e[t] = n, e;
|
|
234
235
|
}
|
|
235
|
-
var
|
|
236
|
+
var xe = class {
|
|
236
237
|
constructor(e) {
|
|
237
|
-
|
|
238
|
+
R(this, "allowedToPlayAudio", null), this.Reveal = e, this.startEmbeddedMedia = this.startEmbeddedMedia.bind(this), this.startEmbeddedIframe = this.startEmbeddedIframe.bind(this), this.preventIframeAutoFocus = this.preventIframeAutoFocus.bind(this), this.ensureMobileMediaPlaying = this.ensureMobileMediaPlaying.bind(this), this.failedAudioPlaybackTargets = /* @__PURE__ */ new Set(), this.failedVideoPlaybackTargets = /* @__PURE__ */ new Set(), this.failedMutedVideoPlaybackTargets = /* @__PURE__ */ new Set(), this.renderMediaPlayButton();
|
|
238
239
|
}
|
|
239
240
|
renderMediaPlayButton() {
|
|
240
241
|
this.mediaPlayButton = document.createElement("button"), this.mediaPlayButton.className = "r-overlay-button r-media-play-button", this.mediaPlayButton.addEventListener("click", () => {
|
|
@@ -258,14 +259,14 @@ var be = class {
|
|
|
258
259
|
let t = n.replace(/\s*!important\s*$/, "").trim();
|
|
259
260
|
e.style.setProperty("display", t, "important");
|
|
260
261
|
} else e.style.display = n;
|
|
261
|
-
|
|
262
|
+
N(e, "img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e) => {
|
|
262
263
|
let t = e.tagName === "IFRAME";
|
|
263
264
|
(!t || this.shouldPreload(e)) && (e.setAttribute("src", e.getAttribute("data-src")), e.setAttribute("data-lazy-loaded", ""), e.removeAttribute("data-src"), t && e.addEventListener("load", this.preventIframeAutoFocus));
|
|
264
|
-
}),
|
|
265
|
+
}), N(e, "video, audio").forEach((e) => {
|
|
265
266
|
let t = 0;
|
|
266
|
-
|
|
267
|
+
N(e, "source[data-src]").forEach((e) => {
|
|
267
268
|
e.setAttribute("src", e.getAttribute("data-src")), e.removeAttribute("data-src"), e.setAttribute("data-lazy-loaded", ""), t += 1;
|
|
268
|
-
}),
|
|
269
|
+
}), ge && e.tagName === "VIDEO" && e.setAttribute("playsinline", ""), t > 0 && e.load();
|
|
269
270
|
});
|
|
270
271
|
let r = e.slideBackgroundElement;
|
|
271
272
|
if (r) {
|
|
@@ -274,13 +275,13 @@ var be = class {
|
|
|
274
275
|
if (r.hasAttribute("data-loaded") === !1) {
|
|
275
276
|
r.setAttribute("data-loaded", "true");
|
|
276
277
|
let a = e.getAttribute("data-background-image"), o = e.getAttribute("data-background-video"), s = e.hasAttribute("data-background-video-loop"), c = e.hasAttribute("data-background-video-muted");
|
|
277
|
-
if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${
|
|
278
|
+
if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${me(decodeURI(e.trim()))})`).join(",");
|
|
278
279
|
else if (o) {
|
|
279
280
|
let e = document.createElement("video");
|
|
280
|
-
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0),
|
|
281
|
+
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0), ge && e.setAttribute("playsinline", ""), o.split(",").forEach((t) => {
|
|
281
282
|
let n = document.createElement("source");
|
|
282
283
|
n.setAttribute("src", t);
|
|
283
|
-
let r =
|
|
284
|
+
let r = pe(t);
|
|
284
285
|
r && n.setAttribute("type", r), e.appendChild(n);
|
|
285
286
|
}), n.appendChild(e);
|
|
286
287
|
} else if (i && t.excludeIframes !== !0) {
|
|
@@ -295,7 +296,7 @@ var be = class {
|
|
|
295
296
|
}
|
|
296
297
|
layout(e) {
|
|
297
298
|
Array.from(e.querySelectorAll(".r-fit-text")).forEach((e) => {
|
|
298
|
-
|
|
299
|
+
_e(e, {
|
|
299
300
|
minSize: 24,
|
|
300
301
|
maxSize: this.Reveal.getConfig().height * .8,
|
|
301
302
|
observeMutations: !1,
|
|
@@ -306,17 +307,17 @@ var be = class {
|
|
|
306
307
|
unload(e) {
|
|
307
308
|
e.style.display = "none";
|
|
308
309
|
let t = this.Reveal.getSlideBackground(e);
|
|
309
|
-
t && (t.style.display = "none",
|
|
310
|
+
t && (t.style.display = "none", N(t, "iframe[src]").forEach((e) => {
|
|
310
311
|
e.removeAttribute("src");
|
|
311
|
-
})),
|
|
312
|
+
})), N(e, "video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e) => {
|
|
312
313
|
e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
|
|
313
|
-
}),
|
|
314
|
+
}), N(e, "video[data-lazy-loaded] source[src], audio source[src]").forEach((e) => {
|
|
314
315
|
e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
318
|
formatEmbeddedContent() {
|
|
318
319
|
let e = (e, t, n) => {
|
|
319
|
-
|
|
320
|
+
N(this.Reveal.getSlidesElement(), "iframe[" + e + "*=\"" + t + "\"]").forEach((t) => {
|
|
320
321
|
let r = t.getAttribute(e);
|
|
321
322
|
r && r.indexOf(n) === -1 && t.setAttribute(e, r + (/\?/.test(r) ? "&" : "?") + n);
|
|
322
323
|
});
|
|
@@ -326,19 +327,19 @@ var be = class {
|
|
|
326
327
|
startEmbeddedContent(e) {
|
|
327
328
|
if (e) {
|
|
328
329
|
let t = this.Reveal.isSpeakerNotes();
|
|
329
|
-
|
|
330
|
+
N(e, "img[src$=\".gif\"]").forEach((e) => {
|
|
330
331
|
e.setAttribute("src", e.getAttribute("src"));
|
|
331
|
-
}),
|
|
332
|
-
if (
|
|
332
|
+
}), N(e, "video, audio").forEach((e) => {
|
|
333
|
+
if (F(e, ".fragment") && !F(e, ".fragment.visible")) return;
|
|
333
334
|
let n = this.Reveal.getConfig().autoPlayMedia;
|
|
334
|
-
if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!
|
|
335
|
+
if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!F(e, ".slide-background")), n && typeof e.play == "function") {
|
|
335
336
|
if (t && !e.muted) return;
|
|
336
|
-
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) :
|
|
337
|
+
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) : ge ? (e.addEventListener("canplay", this.ensureMobileMediaPlaying), this.playMediaElement(e)) : (e.removeEventListener("loadeddata", this.startEmbeddedMedia), e.addEventListener("loadeddata", this.startEmbeddedMedia));
|
|
337
338
|
}
|
|
338
|
-
}), t || (
|
|
339
|
-
|
|
340
|
-
}),
|
|
341
|
-
|
|
339
|
+
}), t || (N(e, "iframe[src]").forEach((e) => {
|
|
340
|
+
F(e, ".fragment") && !F(e, ".fragment.visible") || this.startEmbeddedIframe({ target: e });
|
|
341
|
+
}), N(e, "iframe[data-src]").forEach((e) => {
|
|
342
|
+
F(e, ".fragment") && !F(e, ".fragment.visible") || e.getAttribute("src") !== e.getAttribute("data-src") && (e.removeEventListener("load", this.startEmbeddedIframe), e.addEventListener("load", this.startEmbeddedIframe), e.setAttribute("src", e.getAttribute("data-src")));
|
|
342
343
|
}));
|
|
343
344
|
}
|
|
344
345
|
}
|
|
@@ -350,7 +351,7 @@ var be = class {
|
|
|
350
351
|
}, 1e3);
|
|
351
352
|
}
|
|
352
353
|
startEmbeddedMedia(e) {
|
|
353
|
-
let t = !!
|
|
354
|
+
let t = !!F(e.target, "html"), n = !!F(e.target, ".present");
|
|
354
355
|
t && n && (e.target.paused || e.target.ended) && (e.target.currentTime = 0, this.playMediaElement(e.target)), e.target.removeEventListener("loadeddata", this.startEmbeddedMedia);
|
|
355
356
|
}
|
|
356
357
|
playMediaElement(e) {
|
|
@@ -361,7 +362,7 @@ var be = class {
|
|
|
361
362
|
if (t.name === "NotAllowedError") {
|
|
362
363
|
if (this.allowedToPlayAudio = !1, e.tagName === "VIDEO") {
|
|
363
364
|
this.onVideoPlaybackNotAllowed(e);
|
|
364
|
-
let t = !!
|
|
365
|
+
let t = !!F(e, "html"), n = !!F(e, ".present"), r = e.muted;
|
|
365
366
|
t && n && !r && (e.setAttribute("data-muted-by-reveal", "true"), e.muted = !0, e.play().catch(() => {
|
|
366
367
|
this.onMutedVideoPlaybackNotAllowed(e);
|
|
367
368
|
}));
|
|
@@ -372,23 +373,23 @@ var be = class {
|
|
|
372
373
|
startEmbeddedIframe(e) {
|
|
373
374
|
let t = e.target;
|
|
374
375
|
if (this.preventIframeAutoFocus(e), t && t.contentWindow) {
|
|
375
|
-
let n = !!
|
|
376
|
+
let n = !!F(e.target, "html"), r = !!F(e.target, ".present");
|
|
376
377
|
if (n && r) {
|
|
377
378
|
let e = this.Reveal.getConfig().autoPlayMedia;
|
|
378
|
-
typeof e != "boolean" && (e = t.hasAttribute("data-autoplay") || !!
|
|
379
|
+
typeof e != "boolean" && (e = t.hasAttribute("data-autoplay") || !!F(t, ".slide-background")), /youtube\.com\/embed\//.test(t.getAttribute("src")) && e ? t.contentWindow.postMessage("{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}", "*") : /player\.vimeo\.com\//.test(t.getAttribute("src")) && e ? t.contentWindow.postMessage("{\"method\":\"play\"}", "*") : t.contentWindow.postMessage("slide:start", "*");
|
|
379
380
|
}
|
|
380
381
|
}
|
|
381
382
|
}
|
|
382
383
|
stopEmbeddedContent(e, t = {}) {
|
|
383
|
-
t =
|
|
384
|
-
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(),
|
|
385
|
-
}),
|
|
384
|
+
t = ie({ unloadIframes: !0 }, t), e && e.parentNode && (N(e, "video, audio").forEach((e) => {
|
|
385
|
+
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(), ge && e.removeEventListener("canplay", this.ensureMobileMediaPlaying));
|
|
386
|
+
}), N(e, "iframe").forEach((e) => {
|
|
386
387
|
e.contentWindow && e.contentWindow.postMessage("slide:stop", "*"), e.removeEventListener("load", this.preventIframeAutoFocus), e.removeEventListener("load", this.startEmbeddedIframe);
|
|
387
|
-
}),
|
|
388
|
+
}), N(e, "iframe[src*=\"youtube.com/embed/\"]").forEach((e) => {
|
|
388
389
|
!e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}", "*");
|
|
389
|
-
}),
|
|
390
|
+
}), N(e, "iframe[src*=\"player.vimeo.com/\"]").forEach((e) => {
|
|
390
391
|
!e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"method\":\"pause\"}", "*");
|
|
391
|
-
}), t.unloadIframes === !0 &&
|
|
392
|
+
}), t.unloadIframes === !0 && N(e, "iframe[data-src]").forEach((e) => {
|
|
392
393
|
e.setAttribute("src", "about:blank"), e.removeAttribute("src");
|
|
393
394
|
}));
|
|
394
395
|
}
|
|
@@ -432,7 +433,7 @@ var be = class {
|
|
|
432
433
|
afterSlideChanged() {
|
|
433
434
|
this.clearMediaPlaybackErrors();
|
|
434
435
|
}
|
|
435
|
-
},
|
|
436
|
+
}, z = ".slides section", Se = ".slides>section", Ce = ".slides>section.present>section", we = ".backgrounds>.slide-background", Te = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/, Ee = class {
|
|
436
437
|
constructor(e) {
|
|
437
438
|
this.Reveal = e;
|
|
438
439
|
}
|
|
@@ -481,7 +482,7 @@ var be = class {
|
|
|
481
482
|
destroy() {
|
|
482
483
|
this.element.remove();
|
|
483
484
|
}
|
|
484
|
-
},
|
|
485
|
+
}, B = class {
|
|
485
486
|
constructor(e) {
|
|
486
487
|
this.Reveal = e, this.onInput = this.onInput.bind(this), this.onBlur = this.onBlur.bind(this), this.onKeyDown = this.onKeyDown.bind(this);
|
|
487
488
|
}
|
|
@@ -534,7 +535,7 @@ var be = class {
|
|
|
534
535
|
onBlur() {
|
|
535
536
|
setTimeout(() => this.hide(), 1);
|
|
536
537
|
}
|
|
537
|
-
},
|
|
538
|
+
}, De = (e) => {
|
|
538
539
|
let t = e.match(/^#([0-9a-f]{3})$/i);
|
|
539
540
|
if (t && t[1]) {
|
|
540
541
|
let e = t[1];
|
|
@@ -566,7 +567,7 @@ var be = class {
|
|
|
566
567
|
b: parseInt(i[3], 10),
|
|
567
568
|
a: parseFloat(i[4])
|
|
568
569
|
} : null;
|
|
569
|
-
},
|
|
570
|
+
}, Oe = (e) => (typeof e == "string" && (e = De(e)), e ? (e.r * 299 + e.g * 587 + e.b * 114) / 1e3 : null), ke = class {
|
|
570
571
|
constructor(e) {
|
|
571
572
|
this.Reveal = e;
|
|
572
573
|
}
|
|
@@ -576,7 +577,7 @@ var be = class {
|
|
|
576
577
|
create() {
|
|
577
578
|
this.element.innerHTML = "", this.element.classList.add("no-transition"), this.Reveal.getHorizontalSlides().forEach((e) => {
|
|
578
579
|
let t = this.createBackground(e, this.element);
|
|
579
|
-
|
|
580
|
+
N(e, "section").forEach((e) => {
|
|
580
581
|
this.createBackground(e, t), t.classList.add("stack");
|
|
581
582
|
});
|
|
582
583
|
}), this.Reveal.getConfig().parallaxBackgroundImage ? (this.element.style.backgroundImage = "url(\"" + this.Reveal.getConfig().parallaxBackgroundImage + "\")", this.element.style.backgroundSize = this.Reveal.getConfig().parallaxBackgroundSize, this.element.style.backgroundRepeat = this.Reveal.getConfig().parallaxBackgroundRepeat, this.element.style.backgroundPosition = this.Reveal.getConfig().parallaxBackgroundPosition, setTimeout(() => {
|
|
@@ -609,13 +610,13 @@ var be = class {
|
|
|
609
610
|
}
|
|
610
611
|
getContrastClass(e) {
|
|
611
612
|
let t = e.slideBackgroundElement, n = e.getAttribute("data-background-color");
|
|
612
|
-
if (!n || !
|
|
613
|
+
if (!n || !De(n)) {
|
|
613
614
|
let e = window.getComputedStyle(t);
|
|
614
615
|
e && e.backgroundColor && (n = e.backgroundColor);
|
|
615
616
|
}
|
|
616
617
|
if (n) {
|
|
617
|
-
let e =
|
|
618
|
-
if (e && e.a !== 0) return
|
|
618
|
+
let e = De(n);
|
|
619
|
+
if (e && e.a !== 0) return Oe(n) < 128 ? "has-dark-background" : "has-light-background";
|
|
619
620
|
}
|
|
620
621
|
return null;
|
|
621
622
|
}
|
|
@@ -627,7 +628,7 @@ var be = class {
|
|
|
627
628
|
update(e = !1) {
|
|
628
629
|
let t = this.Reveal.getConfig(), n = this.Reveal.getCurrentSlide(), r = this.Reveal.getIndices(), i = null, a = t.rtl ? "future" : "past", o = t.rtl ? "past" : "future";
|
|
629
630
|
if (Array.from(this.element.childNodes).forEach((t, n) => {
|
|
630
|
-
t.classList.remove("past", "present", "future"), n < r.h ? t.classList.add(a) : n > r.h ? t.classList.add(o) : (t.classList.add("present"), i = t), (e || n === r.h) &&
|
|
631
|
+
t.classList.remove("past", "present", "future"), n < r.h ? t.classList.add(a) : n > r.h ? t.classList.add(o) : (t.classList.add("present"), i = t), (e || n === r.h) && N(t, ".slide-background").forEach((e, t) => {
|
|
631
632
|
e.classList.remove("past", "present", "future");
|
|
632
633
|
let a = typeof r.v == "number" ? r.v : 0;
|
|
633
634
|
t < a ? e.classList.add("past") : t > a ? e.classList.add("future") : (e.classList.add("present"), n === r.h && (i = e));
|
|
@@ -671,7 +672,7 @@ var be = class {
|
|
|
671
672
|
destroy() {
|
|
672
673
|
this.element.remove();
|
|
673
674
|
}
|
|
674
|
-
},
|
|
675
|
+
}, Ae = 0, je = class {
|
|
675
676
|
constructor(e) {
|
|
676
677
|
this.Reveal = e;
|
|
677
678
|
}
|
|
@@ -679,17 +680,17 @@ var be = class {
|
|
|
679
680
|
this.reset();
|
|
680
681
|
let n = this.Reveal.getSlides(), r = n.indexOf(t), i = n.indexOf(e);
|
|
681
682
|
if (e && t && e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(r > i ? t : e).hasAttribute("data-auto-animate-restart")) {
|
|
682
|
-
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet ||
|
|
683
|
+
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet || I();
|
|
683
684
|
let n = this.getAutoAnimateOptions(t);
|
|
684
685
|
e.dataset.autoAnimate = "pending", t.dataset.autoAnimate = "pending", n.slideDirection = r > i ? "forward" : "backward";
|
|
685
686
|
let a = e.style.display === "none";
|
|
686
687
|
a && (e.style.display = this.Reveal.getConfig().display);
|
|
687
|
-
let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n,
|
|
688
|
+
let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n, Ae++));
|
|
688
689
|
if (a && (e.style.display = "none"), t.dataset.autoAnimateUnmatched !== "false" && this.Reveal.getConfig().autoAnimateUnmatched === !0) {
|
|
689
690
|
let e = n.duration * .8, r = n.duration * .2;
|
|
690
691
|
this.getUnmatchedAutoAnimateElements(t).forEach((e) => {
|
|
691
692
|
let t = this.getAutoAnimateOptions(e, n), r = "unmatched";
|
|
692
|
-
(t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" +
|
|
693
|
+
(t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" + Ae++, o.push(`[data-auto-animate="running"] [data-auto-animate-target="${r}"] { transition: opacity ${t.duration}s ease ${t.delay}s; }`)), e.dataset.autoAnimateTarget = r;
|
|
693
694
|
}, this), o.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${e}s ease ${r}s; }`);
|
|
694
695
|
}
|
|
695
696
|
this.autoAnimateStyleSheet.innerHTML = o.join(""), requestAnimationFrame(() => {
|
|
@@ -705,9 +706,9 @@ var be = class {
|
|
|
705
706
|
}
|
|
706
707
|
}
|
|
707
708
|
reset() {
|
|
708
|
-
|
|
709
|
+
N(this.Reveal.getRevealElement(), "[data-auto-animate]:not([data-auto-animate=\"\"])").forEach((e) => {
|
|
709
710
|
e.dataset.autoAnimate = "";
|
|
710
|
-
}),
|
|
711
|
+
}), N(this.Reveal.getRevealElement(), "[data-auto-animate-target]").forEach((e) => {
|
|
711
712
|
delete e.dataset.autoAnimateTarget;
|
|
712
713
|
}), this.autoAnimateStyleSheet && this.autoAnimateStyleSheet.parentNode && (this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet), this.autoAnimateStyleSheet = null);
|
|
713
714
|
}
|
|
@@ -748,8 +749,8 @@ var be = class {
|
|
|
748
749
|
duration: this.Reveal.getConfig().autoAnimateDuration,
|
|
749
750
|
delay: 0
|
|
750
751
|
};
|
|
751
|
-
if (n =
|
|
752
|
-
let t =
|
|
752
|
+
if (n = ie(n, t), e.parentNode) {
|
|
753
|
+
let t = F(e.parentNode, "[data-auto-animate-target]");
|
|
753
754
|
t && (n = this.getAutoAnimateOptions(t, n));
|
|
754
755
|
}
|
|
755
756
|
return e.dataset.autoAnimateEasing && (n.easing = e.dataset.autoAnimateEasing), e.dataset.autoAnimateDuration && (n.duration = parseFloat(e.dataset.autoAnimateDuration)), e.dataset.autoAnimateDelay && (n.delay = parseFloat(e.dataset.autoAnimateDelay)), n;
|
|
@@ -792,7 +793,7 @@ var be = class {
|
|
|
792
793
|
getAutoAnimatePairs(e, t) {
|
|
793
794
|
let n = [], r = "h1, h2, h3, h4, h5, h6, p, li";
|
|
794
795
|
return this.findAutoAnimateMatches(n, e, t, "[data-id]", (e) => e.nodeName + ":::" + e.getAttribute("data-id")), this.findAutoAnimateMatches(n, e, t, r, (e) => e.nodeName + ":::" + e.textContent.trim()), this.findAutoAnimateMatches(n, e, t, "img, video, iframe", (e) => e.nodeName + ":::" + (e.getAttribute("src") || e.getAttribute("data-src"))), this.findAutoAnimateMatches(n, e, t, "pre", (e) => e.nodeName + ":::" + e.textContent.trim()), n.forEach((e) => {
|
|
795
|
-
|
|
796
|
+
P(e.from, r) ? e.options = { scale: !1 } : P(e.from, "pre") && (e.options = {
|
|
796
797
|
scale: !1,
|
|
797
798
|
styles: ["width", "height"]
|
|
798
799
|
}, this.findAutoAnimateMatches(n, e.from, e.to, ".hljs .hljs-ln-code", (e) => e.textContent, {
|
|
@@ -841,7 +842,7 @@ var be = class {
|
|
|
841
842
|
return !t.hasAttribute("data-auto-animate-target") && !n && e.push(t), t.querySelector("[data-auto-animate-target]") && (e = e.concat(this.getUnmatchedAutoAnimateElements(t))), e;
|
|
842
843
|
}, []);
|
|
843
844
|
}
|
|
844
|
-
},
|
|
845
|
+
}, Me = 500, Ne = 4, Pe = 6, Fe = 8, Ie = class {
|
|
845
846
|
constructor(e) {
|
|
846
847
|
this.Reveal = e, this.active = !1, this.activatedCallbacks = [], this.onScroll = this.onScroll.bind(this);
|
|
847
848
|
}
|
|
@@ -849,7 +850,7 @@ var be = class {
|
|
|
849
850
|
if (this.active) return;
|
|
850
851
|
let e = this.Reveal.getState();
|
|
851
852
|
this.active = !0, this.slideHTMLBeforeActivation = this.Reveal.getSlidesElement().innerHTML;
|
|
852
|
-
let t =
|
|
853
|
+
let t = N(this.Reveal.getRevealElement(), Se), n = N(this.Reveal.getRevealElement(), we);
|
|
853
854
|
this.viewportElement.classList.add("loading-scroll-mode", "reveal-scroll");
|
|
854
855
|
let r, i = window.getComputedStyle(this.viewportElement);
|
|
855
856
|
i && i.background && (r = i.background);
|
|
@@ -871,7 +872,7 @@ var be = class {
|
|
|
871
872
|
this.Reveal.isVerticalStack(e) ? e.querySelectorAll("section").forEach((e, n) => {
|
|
872
873
|
c(e, t, n, !0);
|
|
873
874
|
}) : c(e, t, 0);
|
|
874
|
-
}, this), this.createProgressBar(),
|
|
875
|
+
}, this), this.createProgressBar(), N(this.Reveal.getRevealElement(), ".stack").forEach((e) => e.remove()), a.forEach((e) => o.appendChild(e)), this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()), this.Reveal.layout(), this.Reveal.setState(e), this.activatedCallbacks.forEach((e) => e()), this.activatedCallbacks = [], this.restoreScrollPosition(), this.viewportElement.classList.remove("loading-scroll-mode"), this.viewportElement.addEventListener("scroll", this.onScroll, { passive: !0 });
|
|
875
876
|
}
|
|
876
877
|
deactivate() {
|
|
877
878
|
if (!this.active) return;
|
|
@@ -970,9 +971,9 @@ var be = class {
|
|
|
970
971
|
syncProgressBar() {
|
|
971
972
|
this.progressBarInner.querySelectorAll(".scrollbar-slide").forEach((e) => e.remove());
|
|
972
973
|
let e = this.viewportElement.scrollHeight, t = this.viewportElement.offsetHeight, n = t / e;
|
|
973
|
-
this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight,
|
|
974
|
-
let r = t / e * this.progressBarHeight, i = Math.min(r / 8,
|
|
975
|
-
this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r >
|
|
974
|
+
this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight, Fe), this.progressBarScrollableHeight = this.progressBarHeight - this.playheadHeight;
|
|
975
|
+
let r = t / e * this.progressBarHeight, i = Math.min(r / 8, Ne);
|
|
976
|
+
this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r > Pe ? this.slideTriggers.forEach((e) => {
|
|
976
977
|
let { page: t } = e;
|
|
977
978
|
t.progressBarSlide = document.createElement("div"), t.progressBarSlide.className = "scrollbar-slide", t.progressBarSlide.style.top = e.range[0] * this.progressBarHeight + "px", t.progressBarSlide.style.height = (e.range[1] - e.range[0]) * this.progressBarHeight - i + "px", t.progressBarSlide.classList.toggle("has-triggers", t.scrollTriggers.length > 0), this.progressBarInner.appendChild(t.progressBarSlide), t.scrollTriggerElements = t.scrollTriggers.map((n, r) => {
|
|
978
979
|
let a = document.createElement("div");
|
|
@@ -999,7 +1000,7 @@ var be = class {
|
|
|
999
1000
|
showProgressBar() {
|
|
1000
1001
|
this.progressBar.classList.add("visible"), clearTimeout(this.hideProgressBarTimeout), this.Reveal.getConfig().scrollProgress === "auto" && !this.draggingProgressBar && (this.hideProgressBarTimeout = setTimeout(() => {
|
|
1001
1002
|
this.progressBar && this.progressBar.classList.remove("visible");
|
|
1002
|
-
},
|
|
1003
|
+
}, Me));
|
|
1003
1004
|
}
|
|
1004
1005
|
prev() {
|
|
1005
1006
|
this.viewportElement.scrollTop -= this.scrollTriggerHeight;
|
|
@@ -1058,7 +1059,7 @@ var be = class {
|
|
|
1058
1059
|
return this.Reveal.getViewportElement();
|
|
1059
1060
|
}
|
|
1060
1061
|
};
|
|
1061
|
-
function
|
|
1062
|
+
function Le(e, t, n, r, i, a, o) {
|
|
1062
1063
|
try {
|
|
1063
1064
|
var s = e[a](o), c = s.value;
|
|
1064
1065
|
} catch (e) {
|
|
@@ -1067,30 +1068,30 @@ function Ie(e, t, n, r, i, a, o) {
|
|
|
1067
1068
|
}
|
|
1068
1069
|
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
1069
1070
|
}
|
|
1070
|
-
function
|
|
1071
|
+
function Re(e) {
|
|
1071
1072
|
return function() {
|
|
1072
1073
|
var t = this, n = arguments;
|
|
1073
1074
|
return new Promise(function(r, i) {
|
|
1074
1075
|
var a = e.apply(t, n);
|
|
1075
1076
|
function o(e) {
|
|
1076
|
-
|
|
1077
|
+
Le(a, r, i, o, s, "next", e);
|
|
1077
1078
|
}
|
|
1078
1079
|
function s(e) {
|
|
1079
|
-
|
|
1080
|
+
Le(a, r, i, o, s, "throw", e);
|
|
1080
1081
|
}
|
|
1081
1082
|
o(void 0);
|
|
1082
1083
|
});
|
|
1083
1084
|
};
|
|
1084
1085
|
}
|
|
1085
|
-
var
|
|
1086
|
+
var ze = class {
|
|
1086
1087
|
constructor(e) {
|
|
1087
1088
|
this.Reveal = e;
|
|
1088
1089
|
}
|
|
1089
1090
|
activate() {
|
|
1090
1091
|
var e = this;
|
|
1091
|
-
return
|
|
1092
|
-
let t = e.Reveal.getConfig(), n =
|
|
1093
|
-
yield new Promise(requestAnimationFrame),
|
|
1092
|
+
return Re(function* () {
|
|
1093
|
+
let t = e.Reveal.getConfig(), n = N(e.Reveal.getRevealElement(), z), r = t.slideNumber && /all|print/i.test(t.showSlideNumber), i = e.Reveal.getComputedSlideSize(window.innerWidth, window.innerHeight), a = Math.floor(i.width * (1 + t.margin)), o = Math.floor(i.height * (1 + t.margin)), s = i.width, c = i.height;
|
|
1094
|
+
yield new Promise(requestAnimationFrame), I("@page{size:" + a + "px " + o + "px; margin: 0px;}"), I(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: " + s + "px; max-height:" + c + "px}"), document.documentElement.classList.add("reveal-print", "print-pdf"), document.body.style.width = a + "px", document.body.style.height = o + "px";
|
|
1094
1095
|
let l = e.Reveal.getViewportElement(), u;
|
|
1095
1096
|
if (l) {
|
|
1096
1097
|
let e = window.getComputedStyle(l);
|
|
@@ -1133,7 +1134,7 @@ var Re = class {
|
|
|
1133
1134
|
e.classList.remove("visible", "current-fragment");
|
|
1134
1135
|
});
|
|
1135
1136
|
});
|
|
1136
|
-
} else
|
|
1137
|
+
} else N(g, ".fragment:not(.fade-out)").forEach(function(e) {
|
|
1137
1138
|
e.classList.add("visible");
|
|
1138
1139
|
});
|
|
1139
1140
|
}
|
|
@@ -1143,7 +1144,7 @@ var Re = class {
|
|
|
1143
1144
|
isActive() {
|
|
1144
1145
|
return this.Reveal.getConfig().view === "print";
|
|
1145
1146
|
}
|
|
1146
|
-
},
|
|
1147
|
+
}, Be = class {
|
|
1147
1148
|
constructor(e) {
|
|
1148
1149
|
this.Reveal = e;
|
|
1149
1150
|
}
|
|
@@ -1151,12 +1152,12 @@ var Re = class {
|
|
|
1151
1152
|
e.fragments === !1 ? this.disable() : t.fragments === !1 && this.enable();
|
|
1152
1153
|
}
|
|
1153
1154
|
disable() {
|
|
1154
|
-
|
|
1155
|
+
N(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
|
|
1155
1156
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
1156
1157
|
});
|
|
1157
1158
|
}
|
|
1158
1159
|
enable() {
|
|
1159
|
-
|
|
1160
|
+
N(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
|
|
1160
1161
|
e.classList.remove("visible"), e.classList.remove("current-fragment");
|
|
1161
1162
|
});
|
|
1162
1163
|
}
|
|
@@ -1192,7 +1193,7 @@ var Re = class {
|
|
|
1192
1193
|
}
|
|
1193
1194
|
sortAll() {
|
|
1194
1195
|
this.Reveal.getHorizontalSlides().forEach((e) => {
|
|
1195
|
-
let t =
|
|
1196
|
+
let t = N(e, "section");
|
|
1196
1197
|
t.forEach((e, t) => {
|
|
1197
1198
|
this.sort(e.querySelectorAll(".fragment"));
|
|
1198
1199
|
}, this), t.length === 0 && this.sort(e.querySelectorAll(".fragment"));
|
|
@@ -1266,13 +1267,13 @@ var Re = class {
|
|
|
1266
1267
|
prev() {
|
|
1267
1268
|
return this.goto(null, -1);
|
|
1268
1269
|
}
|
|
1269
|
-
},
|
|
1270
|
+
}, Ve = class {
|
|
1270
1271
|
constructor(e) {
|
|
1271
1272
|
this.Reveal = e, this.active = !1, this.onSlideClicked = this.onSlideClicked.bind(this);
|
|
1272
1273
|
}
|
|
1273
1274
|
activate() {
|
|
1274
1275
|
if (this.Reveal.getConfig().overview && !this.Reveal.isScrollView() && !this.isActive()) {
|
|
1275
|
-
this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),
|
|
1276
|
+
this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()), N(this.Reveal.getRevealElement(), z).forEach((e) => {
|
|
1276
1277
|
e.classList.contains("stack") || e.addEventListener("click", this.onSlideClicked, !0);
|
|
1277
1278
|
});
|
|
1278
1279
|
let e = this.Reveal.getComputedSlideSize();
|
|
@@ -1290,12 +1291,12 @@ var Re = class {
|
|
|
1290
1291
|
}
|
|
1291
1292
|
layout() {
|
|
1292
1293
|
this.Reveal.getHorizontalSlides().forEach((e, t) => {
|
|
1293
|
-
e.setAttribute("data-index-h", t),
|
|
1294
|
-
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n),
|
|
1294
|
+
e.setAttribute("data-index-h", t), se(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), e.classList.contains("stack") && N(e, "section").forEach((e, n) => {
|
|
1295
|
+
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n), se(e, "translate3d(0, " + n * this.overviewSlideHeight + "px, 0)");
|
|
1295
1296
|
});
|
|
1296
1297
|
}), Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e, t) => {
|
|
1297
|
-
|
|
1298
|
-
|
|
1298
|
+
se(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), N(e, ".slide-background").forEach((e, t) => {
|
|
1299
|
+
se(e, "translate3d(0, " + t * this.overviewSlideHeight + "px, 0)");
|
|
1299
1300
|
});
|
|
1300
1301
|
});
|
|
1301
1302
|
}
|
|
@@ -1311,10 +1312,10 @@ var Re = class {
|
|
|
1311
1312
|
if (this.Reveal.getConfig().overview) {
|
|
1312
1313
|
this.active = !1, this.Reveal.getRevealElement().classList.remove("overview"), this.Reveal.getRevealElement().classList.add("overview-deactivating"), setTimeout(() => {
|
|
1313
1314
|
this.Reveal.getRevealElement().classList.remove("overview-deactivating");
|
|
1314
|
-
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),
|
|
1315
|
-
|
|
1316
|
-
}),
|
|
1317
|
-
|
|
1315
|
+
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), N(this.Reveal.getRevealElement(), z).forEach((e) => {
|
|
1316
|
+
se(e, ""), e.removeEventListener("click", this.onSlideClicked, !0);
|
|
1317
|
+
}), N(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
|
|
1318
|
+
se(e, "");
|
|
1318
1319
|
}), this.Reveal.transformSlides({ overview: "" });
|
|
1319
1320
|
let e = this.Reveal.getIndices();
|
|
1320
1321
|
this.Reveal.slide(e.h, e.v), this.Reveal.layout(), this.Reveal.cueAutoSlide(), this.Reveal.dispatchEvent({
|
|
@@ -1344,7 +1345,7 @@ var Re = class {
|
|
|
1344
1345
|
}
|
|
1345
1346
|
}
|
|
1346
1347
|
}
|
|
1347
|
-
},
|
|
1348
|
+
}, He = class {
|
|
1348
1349
|
constructor(e) {
|
|
1349
1350
|
this.Reveal = e, this.shortcuts = {}, this.bindings = {}, this.onDocumentKeyDown = this.onDocumentKeyDown.bind(this);
|
|
1350
1351
|
}
|
|
@@ -1434,10 +1435,10 @@ var Re = class {
|
|
|
1434
1435
|
66,
|
|
1435
1436
|
86,
|
|
1436
1437
|
190
|
|
1437
|
-
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ?
|
|
1438
|
+
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ? ce(t.embedded ? this.Reveal.getViewportElement() : document.documentElement) : n === 65 ? t.autoSlideStoppable && this.Reveal.toggleAutoSlide(r) : n === 71 ? t.jumpToSlide && this.Reveal.toggleJumpToSlide() : n === 67 && this.Reveal.isOverlayOpen() ? this.Reveal.closeOverlay() : (n === 63 || n === 191) && e.shiftKey || n === 112 ? this.Reveal.toggleHelp() : d = !1), d ? e.preventDefault && e.preventDefault() : n === 27 || n === 79 ? (this.Reveal.closeOverlay() === !1 && this.Reveal.overview.toggle(), e.preventDefault && e.preventDefault()) : n === 13 && this.Reveal.overview.isActive() && (this.Reveal.overview.deactivate(), e.preventDefault && e.preventDefault()), this.Reveal.cueAutoSlide();
|
|
1438
1439
|
}
|
|
1439
1440
|
};
|
|
1440
|
-
function
|
|
1441
|
+
function V(e, t) {
|
|
1441
1442
|
var n = Object.keys(e);
|
|
1442
1443
|
if (Object.getOwnPropertySymbols) {
|
|
1443
1444
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1447,20 +1448,20 @@ function H(e, t) {
|
|
|
1447
1448
|
}
|
|
1448
1449
|
return n;
|
|
1449
1450
|
}
|
|
1450
|
-
function
|
|
1451
|
+
function H(e) {
|
|
1451
1452
|
for (var t = 1; t < arguments.length; t++) {
|
|
1452
1453
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1453
|
-
t % 2 ?
|
|
1454
|
-
|
|
1455
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1454
|
+
t % 2 ? V(Object(n), !0).forEach(function(t) {
|
|
1455
|
+
R(e, t, n[t]);
|
|
1456
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V(Object(n)).forEach(function(t) {
|
|
1456
1457
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1457
1458
|
});
|
|
1458
1459
|
}
|
|
1459
1460
|
return e;
|
|
1460
1461
|
}
|
|
1461
|
-
var
|
|
1462
|
+
var Ue = class {
|
|
1462
1463
|
constructor(e) {
|
|
1463
|
-
|
|
1464
|
+
R(this, "MAX_REPLACE_STATE_FREQUENCY", 1e3), this.Reveal = e, this.writeURLTimeout = 0, this.replaceStateTimestamp = 0, this.onWindowHashChange = this.onWindowHashChange.bind(this);
|
|
1464
1465
|
}
|
|
1465
1466
|
bind() {
|
|
1466
1467
|
window.addEventListener("hashchange", this.onWindowHashChange, !1);
|
|
@@ -1477,7 +1478,7 @@ var He = class {
|
|
|
1477
1478
|
let t = decodeURIComponent(n);
|
|
1478
1479
|
e = (document.getElementById(t) || document.querySelector(`[data-id="${t}"]`)).closest(".slides section");
|
|
1479
1480
|
} catch {}
|
|
1480
|
-
if (e) return
|
|
1481
|
+
if (e) return H(H({}, this.Reveal.getIndices(e)), {}, { f: t });
|
|
1481
1482
|
} else {
|
|
1482
1483
|
let e = this.Reveal.getConfig(), n = e.hashOneBasedIndex || t.oneBasedIndex ? 1 : 0, i = parseInt(r[0], 10) - n || 0, a = parseInt(r[1], 10) - n || 0, o;
|
|
1483
1484
|
return e.fragmentInURL && (o = parseInt(r[2], 10), isNaN(o) && (o = void 0)), {
|
|
@@ -1520,7 +1521,7 @@ var He = class {
|
|
|
1520
1521
|
onWindowHashChange(e) {
|
|
1521
1522
|
this.readURL();
|
|
1522
1523
|
}
|
|
1523
|
-
},
|
|
1524
|
+
}, We = class {
|
|
1524
1525
|
constructor(e) {
|
|
1525
1526
|
this.Reveal = e, this.onNavigateLeftClicked = this.onNavigateLeftClicked.bind(this), this.onNavigateRightClicked = this.onNavigateRightClicked.bind(this), this.onNavigateUpClicked = this.onNavigateUpClicked.bind(this), this.onNavigateDownClicked = this.onNavigateDownClicked.bind(this), this.onNavigatePrevClicked = this.onNavigatePrevClicked.bind(this), this.onNavigateNextClicked = this.onNavigateNextClicked.bind(this), this.onEnterFullscreen = this.onEnterFullscreen.bind(this);
|
|
1526
1527
|
}
|
|
@@ -1529,7 +1530,7 @@ var He = class {
|
|
|
1529
1530
|
this.element = document.createElement("aside"), this.element.className = "controls", this.element.innerHTML = `<button class="navigate-left" aria-label="${e ? "next slide" : "previous slide"}"><div class="controls-arrow"></div></button>
|
|
1530
1531
|
<button class="navigate-right" aria-label="${e ? "previous slide" : "next slide"}"><div class="controls-arrow"></div></button>
|
|
1531
1532
|
<button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
|
|
1532
|
-
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft =
|
|
1533
|
+
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft = N(t, ".navigate-left"), this.controlsRight = N(t, ".navigate-right"), this.controlsUp = N(t, ".navigate-up"), this.controlsDown = N(t, ".navigate-down"), this.controlsPrev = N(t, ".navigate-prev"), this.controlsNext = N(t, ".navigate-next"), this.controlsFullscreen = N(t, ".enter-fullscreen"), this.controlsRightArrow = this.element.querySelector(".navigate-right"), this.controlsLeftArrow = this.element.querySelector(".navigate-left"), this.controlsDownArrow = this.element.querySelector(".navigate-down");
|
|
1533
1534
|
}
|
|
1534
1535
|
configure(e, t) {
|
|
1535
1536
|
let n = e.controls === "speaker" || e.controls === "speaker-only";
|
|
@@ -1537,7 +1538,7 @@ var He = class {
|
|
|
1537
1538
|
}
|
|
1538
1539
|
bind() {
|
|
1539
1540
|
let e = ["touchstart", "click"];
|
|
1540
|
-
|
|
1541
|
+
L && (e = ["touchend"]), e.forEach((e) => {
|
|
1541
1542
|
this.controlsLeft.forEach((t) => t.addEventListener(e, this.onNavigateLeftClicked, !1)), this.controlsRight.forEach((t) => t.addEventListener(e, this.onNavigateRightClicked, !1)), this.controlsUp.forEach((t) => t.addEventListener(e, this.onNavigateUpClicked, !1)), this.controlsDown.forEach((t) => t.addEventListener(e, this.onNavigateDownClicked, !1)), this.controlsPrev.forEach((t) => t.addEventListener(e, this.onNavigatePrevClicked, !1)), this.controlsNext.forEach((t) => t.addEventListener(e, this.onNavigateNextClicked, !1)), this.controlsFullscreen.forEach((t) => t.addEventListener(e, this.onEnterFullscreen, !1));
|
|
1542
1543
|
});
|
|
1543
1544
|
}
|
|
@@ -1621,9 +1622,9 @@ var He = class {
|
|
|
1621
1622
|
}
|
|
1622
1623
|
onEnterFullscreen(e) {
|
|
1623
1624
|
let t = this.Reveal.getConfig(), n = this.Reveal.getViewportElement();
|
|
1624
|
-
|
|
1625
|
+
ce(t.embedded ? n : n.parentElement);
|
|
1625
1626
|
}
|
|
1626
|
-
},
|
|
1627
|
+
}, Ge = class {
|
|
1627
1628
|
constructor(e) {
|
|
1628
1629
|
this.Reveal = e, this.onProgressClicked = this.onProgressClicked.bind(this);
|
|
1629
1630
|
}
|
|
@@ -1658,7 +1659,7 @@ var He = class {
|
|
|
1658
1659
|
destroy() {
|
|
1659
1660
|
this.element.remove();
|
|
1660
1661
|
}
|
|
1661
|
-
},
|
|
1662
|
+
}, Ke = class {
|
|
1662
1663
|
constructor(e) {
|
|
1663
1664
|
this.Reveal = e, this.lastMouseWheelStep = 0, this.cursorHidden = !1, this.cursorInactiveTimeout = 0, this.onDocumentCursorActive = this.onDocumentCursorActive.bind(this), this.onDocumentMouseScroll = this.onDocumentMouseScroll.bind(this);
|
|
1664
1665
|
}
|
|
@@ -1684,7 +1685,7 @@ var He = class {
|
|
|
1684
1685
|
t > 0 ? this.Reveal.next() : t < 0 && this.Reveal.prev();
|
|
1685
1686
|
}
|
|
1686
1687
|
}
|
|
1687
|
-
},
|
|
1688
|
+
}, qe = (e, t) => {
|
|
1688
1689
|
let n = document.createElement("script");
|
|
1689
1690
|
n.type = "text/javascript", n.async = !1, n.defer = !1, n.src = e, typeof t == "function" && (n.onload = (e) => {
|
|
1690
1691
|
e.type === "load" && (n.onload = n.onerror = null, t());
|
|
@@ -1693,7 +1694,7 @@ var He = class {
|
|
|
1693
1694
|
});
|
|
1694
1695
|
let r = document.querySelector("head");
|
|
1695
1696
|
r && r.insertBefore(n, r.lastChild);
|
|
1696
|
-
},
|
|
1697
|
+
}, Je = class {
|
|
1697
1698
|
constructor(e) {
|
|
1698
1699
|
this.Reveal = e, this.state = "idle", this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1699
1700
|
}
|
|
@@ -1708,7 +1709,7 @@ var He = class {
|
|
|
1708
1709
|
t && typeof t.callback == "function" && t.callback(), --r === 0 && this.initPlugins().then(e);
|
|
1709
1710
|
};
|
|
1710
1711
|
n.forEach((e) => {
|
|
1711
|
-
typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ?
|
|
1712
|
+
typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ? qe(e.src, () => t(e)) : (console.warn("Unrecognized plugin format", e), t());
|
|
1712
1713
|
});
|
|
1713
1714
|
} else this.initPlugins().then(e);
|
|
1714
1715
|
});
|
|
@@ -1733,7 +1734,7 @@ var He = class {
|
|
|
1733
1734
|
}
|
|
1734
1735
|
loadAsync() {
|
|
1735
1736
|
return this.state = "loaded", this.asyncDependencies.length && this.asyncDependencies.forEach((e) => {
|
|
1736
|
-
|
|
1737
|
+
qe(e.src, e.callback);
|
|
1737
1738
|
}), Promise.resolve();
|
|
1738
1739
|
}
|
|
1739
1740
|
registerPlugin(e) {
|
|
@@ -1755,7 +1756,7 @@ var He = class {
|
|
|
1755
1756
|
typeof e.destroy == "function" && e.destroy();
|
|
1756
1757
|
}), this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1757
1758
|
}
|
|
1758
|
-
},
|
|
1759
|
+
}, Ye = class {
|
|
1759
1760
|
constructor(e) {
|
|
1760
1761
|
this.Reveal = e, this.onSlidesClicked = this.onSlidesClicked.bind(this), this.iframeTriggerSelector = null, this.mediaTriggerSelector = "[data-preview-image], [data-preview-video]", this.stateProps = [
|
|
1761
1762
|
"previewIframe",
|
|
@@ -1899,7 +1900,7 @@ var He = class {
|
|
|
1899
1900
|
destroy() {
|
|
1900
1901
|
this.close();
|
|
1901
1902
|
}
|
|
1902
|
-
},
|
|
1903
|
+
}, Xe = 40, Ze = class {
|
|
1903
1904
|
constructor(e) {
|
|
1904
1905
|
this.Reveal = e, this.touchStartX = 0, this.touchStartY = 0, this.touchStartCount = 0, this.touchCaptured = !1, this.onPointerDown = this.onPointerDown.bind(this), this.onPointerMove = this.onPointerMove.bind(this), this.onPointerUp = this.onPointerUp.bind(this), this.onTouchStart = this.onTouchStart.bind(this), this.onTouchMove = this.onTouchMove.bind(this), this.onTouchEnd = this.onTouchEnd.bind(this);
|
|
1905
1906
|
}
|
|
@@ -1912,7 +1913,7 @@ var He = class {
|
|
|
1912
1913
|
e.removeEventListener("pointerdown", this.onPointerDown, !1), e.removeEventListener("pointermove", this.onPointerMove, !1), e.removeEventListener("pointerup", this.onPointerUp, !1), e.removeEventListener("MSPointerDown", this.onPointerDown, !1), e.removeEventListener("MSPointerMove", this.onPointerMove, !1), e.removeEventListener("MSPointerUp", this.onPointerUp, !1), e.removeEventListener("touchstart", this.onTouchStart, !1), e.removeEventListener("touchmove", this.onTouchMove, !1), e.removeEventListener("touchend", this.onTouchEnd, !1);
|
|
1913
1914
|
}
|
|
1914
1915
|
isSwipePrevented(e) {
|
|
1915
|
-
if (
|
|
1916
|
+
if (P(e, "video[controls], audio[controls]")) return !0;
|
|
1916
1917
|
for (; e && typeof e.hasAttribute == "function";) {
|
|
1917
1918
|
if (e.hasAttribute("data-prevent-swipe")) return !0;
|
|
1918
1919
|
e = e.parentNode;
|
|
@@ -1926,13 +1927,13 @@ var He = class {
|
|
|
1926
1927
|
onTouchMove(e) {
|
|
1927
1928
|
if (this.isSwipePrevented(e.target)) return !0;
|
|
1928
1929
|
let t = this.Reveal.getConfig();
|
|
1929
|
-
if (this.touchCaptured)
|
|
1930
|
+
if (this.touchCaptured) L && e.preventDefault();
|
|
1930
1931
|
else {
|
|
1931
1932
|
this.Reveal.onUserInput(e);
|
|
1932
1933
|
let n = e.touches[0].clientX, r = e.touches[0].clientY;
|
|
1933
1934
|
if (e.touches.length === 1 && this.touchStartCount !== 2) {
|
|
1934
1935
|
let i = this.Reveal.availableRoutes({ includeFragments: !0 }), a = n - this.touchStartX, o = r - this.touchStartY;
|
|
1935
|
-
a >
|
|
1936
|
+
a > Xe && Math.abs(a) > Math.abs(o) ? (this.touchCaptured = !0, t.navigationMode === "linear" ? t.rtl ? this.Reveal.next() : this.Reveal.prev() : this.Reveal.left()) : a < -Xe && Math.abs(a) > Math.abs(o) ? (this.touchCaptured = !0, t.navigationMode === "linear" ? t.rtl ? this.Reveal.prev() : this.Reveal.next() : this.Reveal.right()) : o > Xe && i.up ? (this.touchCaptured = !0, t.navigationMode === "linear" ? this.Reveal.prev() : this.Reveal.up()) : o < -Xe && i.down && (this.touchCaptured = !0, t.navigationMode === "linear" ? this.Reveal.next() : this.Reveal.down()), t.embedded ? (this.touchCaptured || this.Reveal.isVerticalSlide()) && e.preventDefault() : e.preventDefault();
|
|
1936
1937
|
}
|
|
1937
1938
|
}
|
|
1938
1939
|
}
|
|
@@ -1957,7 +1958,7 @@ var He = class {
|
|
|
1957
1958
|
clientY: e.clientY
|
|
1958
1959
|
}], this.onTouchEnd(e));
|
|
1959
1960
|
}
|
|
1960
|
-
},
|
|
1961
|
+
}, U = "focus", Qe = "blur", $e = class {
|
|
1961
1962
|
constructor(e) {
|
|
1962
1963
|
this.Reveal = e, this.onRevealPointerDown = this.onRevealPointerDown.bind(this), this.onDocumentPointerDown = this.onDocumentPointerDown.bind(this);
|
|
1963
1964
|
}
|
|
@@ -1971,13 +1972,13 @@ var He = class {
|
|
|
1971
1972
|
this.Reveal.getRevealElement().removeEventListener("pointerdown", this.onRevealPointerDown, !1), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1);
|
|
1972
1973
|
}
|
|
1973
1974
|
focus() {
|
|
1974
|
-
this.state !==
|
|
1975
|
+
this.state !== U && (this.Reveal.getRevealElement().classList.add("focused"), document.addEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = U;
|
|
1975
1976
|
}
|
|
1976
1977
|
blur() {
|
|
1977
|
-
this.state !==
|
|
1978
|
+
this.state !== Qe && (this.Reveal.getRevealElement().classList.remove("focused"), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = Qe;
|
|
1978
1979
|
}
|
|
1979
1980
|
isFocused() {
|
|
1980
|
-
return this.state ===
|
|
1981
|
+
return this.state === U;
|
|
1981
1982
|
}
|
|
1982
1983
|
destroy() {
|
|
1983
1984
|
this.Reveal.getRevealElement().classList.remove("focused");
|
|
@@ -1986,10 +1987,10 @@ var He = class {
|
|
|
1986
1987
|
this.focus();
|
|
1987
1988
|
}
|
|
1988
1989
|
onDocumentPointerDown(e) {
|
|
1989
|
-
let t =
|
|
1990
|
+
let t = F(e.target, ".reveal");
|
|
1990
1991
|
(!t || t !== this.Reveal.getRevealElement()) && this.blur();
|
|
1991
1992
|
}
|
|
1992
|
-
},
|
|
1993
|
+
}, et = class {
|
|
1993
1994
|
constructor(e) {
|
|
1994
1995
|
this.Reveal = e;
|
|
1995
1996
|
}
|
|
@@ -2019,7 +2020,7 @@ var He = class {
|
|
|
2019
2020
|
destroy() {
|
|
2020
2021
|
this.element.remove();
|
|
2021
2022
|
}
|
|
2022
|
-
},
|
|
2023
|
+
}, tt = class {
|
|
2023
2024
|
constructor(e, t) {
|
|
2024
2025
|
this.diameter = 100, this.diameter2 = this.diameter / 2, this.thickness = 6, this.playing = !1, this.progress = 0, this.progressOffset = 1, this.container = e, this.progressCheck = t, this.canvas = document.createElement("canvas"), this.canvas.className = "playback", this.canvas.width = this.diameter, this.canvas.height = this.diameter, this.canvas.style.width = this.diameter2 + "px", this.canvas.style.height = this.diameter2 + "px", this.context = this.canvas.getContext("2d"), this.container.appendChild(this.canvas), this.render();
|
|
2025
2026
|
}
|
|
@@ -2046,7 +2047,7 @@ var He = class {
|
|
|
2046
2047
|
destroy() {
|
|
2047
2048
|
this.playing = !1, this.canvas.parentNode && this.container.removeChild(this.canvas);
|
|
2048
2049
|
}
|
|
2049
|
-
},
|
|
2050
|
+
}, nt = {
|
|
2050
2051
|
width: 960,
|
|
2051
2052
|
height: 700,
|
|
2052
2053
|
margin: .04,
|
|
@@ -2136,8 +2137,8 @@ var He = class {
|
|
|
2136
2137
|
pdfPageHeightOffset: -1,
|
|
2137
2138
|
dependencies: [],
|
|
2138
2139
|
plugins: []
|
|
2139
|
-
},
|
|
2140
|
-
function
|
|
2140
|
+
}, rt = "6.0.1";
|
|
2141
|
+
function it(e, t) {
|
|
2141
2142
|
arguments.length < 2 && (t = arguments[0], e = document.querySelector(".reveal"));
|
|
2142
2143
|
let n = {}, r = {}, i = !1, a = !1, o, s, c, l, u = {
|
|
2143
2144
|
hasNavigatedHorizontally: !1,
|
|
@@ -2145,19 +2146,19 @@ function rt(e, t) {
|
|
|
2145
2146
|
}, d = [], f = 1, p = {
|
|
2146
2147
|
layout: "",
|
|
2147
2148
|
overview: ""
|
|
2148
|
-
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new
|
|
2149
|
-
function
|
|
2149
|
+
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new xe(n), S = new Ee(n), C = new B(n), ee = new je(n), w = new ke(n), T = new Ie(n), te = new ze(n), E = new Be(n), D = new Ve(n), O = new He(n), k = new Ue(n), ne = new We(n), re = new Ge(n), A = new Ke(n), j = new Je(n), M = new Ye(n), P = new $e(n), ce = new Ze(n), I = new et(n);
|
|
2150
|
+
function fe(a) {
|
|
2150
2151
|
if (!e) throw "Unable to find presentation root (<div class=\"reveal\">).";
|
|
2151
2152
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2152
2153
|
if (i = !0, m.wrapper = e, m.slides = e.querySelector(".slides"), !m.slides) throw "Unable to find slides container (<div class=\"slides\">).";
|
|
2153
|
-
return r =
|
|
2154
|
-
}
|
|
2155
|
-
function fe() {
|
|
2156
|
-
r.embedded === !0 ? m.viewport = I(e, ".reveal-viewport") || e : (m.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), m.viewport.classList.add("reveal-viewport");
|
|
2154
|
+
return r = H(H(H(H(H({}, nt), r), t), a), ue()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), pe(), window.addEventListener("load", U, !1), j.load(r.plugins, r.dependencies).then(me), new Promise((e) => n.on("ready", e));
|
|
2157
2155
|
}
|
|
2158
2156
|
function pe() {
|
|
2159
|
-
|
|
2160
|
-
|
|
2157
|
+
r.embedded === !0 ? m.viewport = F(e, ".reveal-viewport") || e : (m.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), m.viewport.classList.add("reveal-viewport");
|
|
2158
|
+
}
|
|
2159
|
+
function me() {
|
|
2160
|
+
i !== !1 && (a = !0, L(), _e(), Oe(), we(), De(), q(), Ae(), w.update(!0), he(), k.readURL(), setTimeout(() => {
|
|
2161
|
+
m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"), V({
|
|
2161
2162
|
type: "ready",
|
|
2162
2163
|
data: {
|
|
2163
2164
|
indexh: o,
|
|
@@ -2167,27 +2168,27 @@ function rt(e, t) {
|
|
|
2167
2168
|
});
|
|
2168
2169
|
}, 1));
|
|
2169
2170
|
}
|
|
2170
|
-
function
|
|
2171
|
+
function he() {
|
|
2171
2172
|
let e = r.view === "print", t = r.view === "scroll" || r.view === "reader";
|
|
2172
|
-
(e || t) && (e ?
|
|
2173
|
+
(e || t) && (e ? Ne() : ce.unbind(), m.viewport.classList.add("loading-scroll-mode"), e ? document.readyState === "complete" ? te.activate() : window.addEventListener("load", () => te.activate()) : T.activate());
|
|
2173
2174
|
}
|
|
2174
|
-
function
|
|
2175
|
-
r.showHiddenSlides ||
|
|
2175
|
+
function L() {
|
|
2176
|
+
r.showHiddenSlides || N(m.wrapper, "section[data-visibility=\"hidden\"]").forEach((e) => {
|
|
2176
2177
|
let t = e.parentNode;
|
|
2177
2178
|
t.childElementCount === 1 && /section/i.test(t.nodeName) ? t.remove() : e.remove();
|
|
2178
2179
|
});
|
|
2179
2180
|
}
|
|
2180
|
-
function ge() {
|
|
2181
|
-
m.slides.classList.add("no-transition"), he ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), T.render(), S.render(), C.render(), te.render(), ne.render(), L.render(), m.pauseOverlay = ce(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = _e(), m.wrapper.setAttribute("role", "application");
|
|
2182
|
-
}
|
|
2183
2181
|
function _e() {
|
|
2182
|
+
m.slides.classList.add("no-transition"), ge ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), w.render(), S.render(), C.render(), ne.render(), re.render(), I.render(), m.pauseOverlay = le(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = ve(), m.wrapper.setAttribute("role", "application");
|
|
2183
|
+
}
|
|
2184
|
+
function ve() {
|
|
2184
2185
|
let e = m.wrapper.querySelector(".aria-status");
|
|
2185
2186
|
return e || (e = document.createElement("div"), e.style.position = "absolute", e.style.height = "1px", e.style.width = "1px", e.style.overflow = "hidden", e.style.clip = "rect( 1px, 1px, 1px, 1px )", e.classList.add("aria-status"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), m.wrapper.appendChild(e)), e;
|
|
2186
2187
|
}
|
|
2187
|
-
function
|
|
2188
|
+
function ye(e) {
|
|
2188
2189
|
m.statusElement.textContent = e;
|
|
2189
2190
|
}
|
|
2190
|
-
function
|
|
2191
|
+
function be(e) {
|
|
2191
2192
|
let t = "";
|
|
2192
2193
|
if (e.nodeType === 3) t += e.textContent.trim();
|
|
2193
2194
|
else if (e.nodeType === 1) {
|
|
@@ -2195,10 +2196,10 @@ function rt(e, t) {
|
|
|
2195
2196
|
if (n !== "true" && !r) {
|
|
2196
2197
|
if (e.tagName === "IMG" || e.tagName === "VIDEO") {
|
|
2197
2198
|
let n = e.getAttribute("alt");
|
|
2198
|
-
n && (t +=
|
|
2199
|
+
n && (t += R(n));
|
|
2199
2200
|
}
|
|
2200
2201
|
Array.from(e.childNodes).forEach((e) => {
|
|
2201
|
-
t +=
|
|
2202
|
+
t += be(e);
|
|
2202
2203
|
}), [
|
|
2203
2204
|
"P",
|
|
2204
2205
|
"DIV",
|
|
@@ -2212,58 +2213,58 @@ function rt(e, t) {
|
|
|
2212
2213
|
"H5",
|
|
2213
2214
|
"H6",
|
|
2214
2215
|
"BLOCKQUOTE"
|
|
2215
|
-
].includes(e.tagName) && t.trim() !== "" && (t =
|
|
2216
|
+
].includes(e.tagName) && t.trim() !== "" && (t = R(t));
|
|
2216
2217
|
}
|
|
2217
2218
|
}
|
|
2218
2219
|
return t = t.trim(), t === "" ? "" : t + " ";
|
|
2219
2220
|
}
|
|
2220
|
-
function
|
|
2221
|
+
function R(e) {
|
|
2221
2222
|
let t = e.trim();
|
|
2222
2223
|
return t === "" ? e : /[.!?]$/.test(t) ? t : t + ".";
|
|
2223
2224
|
}
|
|
2224
|
-
function
|
|
2225
|
+
function we() {
|
|
2225
2226
|
setInterval(() => {
|
|
2226
|
-
(!
|
|
2227
|
+
(!T.isActive() && m.wrapper.scrollTop !== 0 || m.wrapper.scrollLeft !== 0) && (m.wrapper.scrollTop = 0, m.wrapper.scrollLeft = 0);
|
|
2227
2228
|
}, 1e3);
|
|
2228
2229
|
}
|
|
2229
|
-
function
|
|
2230
|
+
function De() {
|
|
2230
2231
|
document.addEventListener("fullscreenchange", rn), document.addEventListener("webkitfullscreenchange", rn);
|
|
2231
2232
|
}
|
|
2232
|
-
function
|
|
2233
|
+
function Oe() {
|
|
2233
2234
|
r.postMessage && window.addEventListener("message", Qt, !1);
|
|
2234
2235
|
}
|
|
2235
|
-
function
|
|
2236
|
-
let t =
|
|
2237
|
-
if (typeof e == "object" &&
|
|
2238
|
-
let i = m.wrapper.querySelectorAll(
|
|
2239
|
-
m.wrapper.classList.remove(t.transition), m.wrapper.classList.add(r.transition), m.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), m.wrapper.setAttribute("data-background-transition", r.backgroundTransition), m.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), m.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle && St(),
|
|
2240
|
-
}
|
|
2241
|
-
function je() {
|
|
2242
|
-
window.addEventListener("resize", tn, !1), r.touch && se.bind(), r.keyboard && k.bind(), r.progress && ne.bind(), r.respondToHashChanges && A.bind(), te.bind(), F.bind(), m.slides.addEventListener("click", en, !1), m.slides.addEventListener("transitionend", $t, !1), m.pauseOverlay.addEventListener("click", dt, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", nn, !1);
|
|
2236
|
+
function Ae(e) {
|
|
2237
|
+
let t = H({}, r);
|
|
2238
|
+
if (typeof e == "object" && ie(r, e), n.isReady() === !1) return;
|
|
2239
|
+
let i = m.wrapper.querySelectorAll(z).length;
|
|
2240
|
+
m.wrapper.classList.remove(t.transition), m.wrapper.classList.add(r.transition), m.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), m.wrapper.setAttribute("data-background-transition", r.backgroundTransition), m.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), m.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle && St(), ae(m.wrapper, "embedded", r.embedded), ae(m.wrapper, "rtl", r.rtl), ae(m.wrapper, "center", r.center), r.pause === !1 && ft(), ee.reset(), _ &&= (_.destroy(), null), i > 1 && r.autoSlide && r.autoSlideStoppable && (_ = new tt(m.wrapper, () => Math.min(Math.max((Date.now() - y) / g, 0), 1)), _.on("click", an), b = !1), r.navigationMode === "default" ? m.wrapper.removeAttribute("data-navigation-mode") : m.wrapper.setAttribute("data-navigation-mode", r.navigationMode), I.configure(r, t), P.configure(r, t), A.configure(r, t), ne.configure(r, t), re.configure(r, t), O.configure(r, t), E.configure(r, t), S.configure(r, t), xt();
|
|
2243
2241
|
}
|
|
2244
2242
|
function Me() {
|
|
2245
|
-
|
|
2243
|
+
window.addEventListener("resize", tn, !1), r.touch && ce.bind(), r.keyboard && O.bind(), r.progress && re.bind(), r.respondToHashChanges && k.bind(), ne.bind(), P.bind(), m.slides.addEventListener("click", en, !1), m.slides.addEventListener("transitionend", $t, !1), m.pauseOverlay.addEventListener("click", ft, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", nn, !1);
|
|
2246
2244
|
}
|
|
2247
2245
|
function Ne() {
|
|
2248
|
-
|
|
2246
|
+
ce.unbind(), P.unbind(), O.unbind(), ne.unbind(), re.unbind(), k.unbind(), window.removeEventListener("resize", tn, !1), m.slides.removeEventListener("click", en, !1), m.slides.removeEventListener("transitionend", $t, !1), m.pauseOverlay.removeEventListener("click", ft, !1);
|
|
2247
|
+
}
|
|
2248
|
+
function Pe() {
|
|
2249
|
+
i = !1, a !== !1 && (Ne(), Ht(), I.destroy(), P.destroy(), M.destroy(), j.destroy(), A.destroy(), ne.destroy(), re.destroy(), w.destroy(), S.destroy(), C.destroy(), document.removeEventListener("fullscreenchange", rn), document.removeEventListener("webkitfullscreenchange", rn), document.removeEventListener("visibilitychange", nn, !1), window.removeEventListener("message", Qt, !1), window.removeEventListener("load", U, !1), m.pauseOverlay && m.pauseOverlay.remove(), m.statusElement && m.statusElement.remove(), document.documentElement.classList.remove("reveal-full-page"), m.wrapper.classList.remove("ready", "center", "has-horizontal-slides", "has-vertical-slides"), m.wrapper.removeAttribute("data-transition-speed"), m.wrapper.removeAttribute("data-background-transition"), m.viewport.classList.remove("reveal-viewport"), m.viewport.style.removeProperty("--slide-width"), m.viewport.style.removeProperty("--slide-height"), m.slides.style.removeProperty("width"), m.slides.style.removeProperty("height"), m.slides.style.removeProperty("zoom"), m.slides.style.removeProperty("left"), m.slides.style.removeProperty("top"), m.slides.style.removeProperty("bottom"), m.slides.style.removeProperty("right"), m.slides.style.removeProperty("transform"), Array.from(m.wrapper.querySelectorAll(z)).forEach((e) => {
|
|
2249
2250
|
e.style.removeProperty("display"), e.style.removeProperty("top"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden");
|
|
2250
2251
|
}));
|
|
2251
2252
|
}
|
|
2252
|
-
function
|
|
2253
|
+
function Fe(t, n, r) {
|
|
2253
2254
|
e.addEventListener(t, n, r);
|
|
2254
2255
|
}
|
|
2255
|
-
function
|
|
2256
|
+
function Le(t, n, r) {
|
|
2256
2257
|
e.removeEventListener(t, n, r);
|
|
2257
2258
|
}
|
|
2258
|
-
function
|
|
2259
|
-
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ?
|
|
2259
|
+
function Re(e) {
|
|
2260
|
+
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ? se(m.slides, p.layout + " " + p.overview) : se(m.slides, p.overview);
|
|
2260
2261
|
}
|
|
2261
|
-
function
|
|
2262
|
+
function V({ target: e = m.wrapper, type: t, data: n, bubbles: r = !0 }) {
|
|
2262
2263
|
let i = document.createEvent("HTMLEvents", 1, 2);
|
|
2263
|
-
return i.initEvent(t, r, !0),
|
|
2264
|
+
return i.initEvent(t, r, !0), ie(i, n), e.dispatchEvent(i), e === m.wrapper && Xe(t), i;
|
|
2264
2265
|
}
|
|
2265
|
-
function
|
|
2266
|
-
|
|
2266
|
+
function qe(e) {
|
|
2267
|
+
V({
|
|
2267
2268
|
type: "slidechanged",
|
|
2268
2269
|
data: {
|
|
2269
2270
|
indexh: o,
|
|
@@ -2274,29 +2275,29 @@ function rt(e, t) {
|
|
|
2274
2275
|
}
|
|
2275
2276
|
});
|
|
2276
2277
|
}
|
|
2277
|
-
function
|
|
2278
|
+
function Xe(e, t) {
|
|
2278
2279
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2279
2280
|
let n = {
|
|
2280
2281
|
namespace: "reveal",
|
|
2281
2282
|
eventName: e,
|
|
2282
2283
|
state: zt()
|
|
2283
2284
|
};
|
|
2284
|
-
|
|
2285
|
+
ie(n, t), window.parent.postMessage(JSON.stringify(n), "*");
|
|
2285
2286
|
}
|
|
2286
2287
|
}
|
|
2287
|
-
function
|
|
2288
|
-
if (m.wrapper && !
|
|
2288
|
+
function U() {
|
|
2289
|
+
if (m.wrapper && !te.isActive()) {
|
|
2289
2290
|
let e = m.viewport.offsetWidth, t = m.viewport.offsetHeight;
|
|
2290
2291
|
if (!r.disableLayout) {
|
|
2291
|
-
|
|
2292
|
-
let n =
|
|
2293
|
-
|
|
2294
|
-
let a = Array.from(m.wrapper.querySelectorAll(
|
|
2292
|
+
ge && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * .01 + "px");
|
|
2293
|
+
let n = T.isActive() ? W(e, t) : W(), i = f;
|
|
2294
|
+
Qe(r.width, r.height), m.slides.style.width = n.width + "px", m.slides.style.height = n.height + "px", f = Math.min(n.presentationWidth / n.width, n.presentationHeight / n.height), f = Math.max(f, r.minScale), f = Math.min(f, r.maxScale), f === 1 || T.isActive() ? (m.slides.style.zoom = "", m.slides.style.left = "", m.slides.style.top = "", m.slides.style.bottom = "", m.slides.style.right = "", Re({ layout: "" })) : (m.slides.style.zoom = "", m.slides.style.left = "50%", m.slides.style.top = "50%", m.slides.style.bottom = "auto", m.slides.style.right = "auto", Re({ layout: "translate(-50%, -50%) scale(" + f + ")" }));
|
|
2295
|
+
let a = Array.from(m.wrapper.querySelectorAll(z));
|
|
2295
2296
|
for (let e = 0, t = a.length; e < t; e++) {
|
|
2296
2297
|
let t = a[e];
|
|
2297
2298
|
t.style.display !== "none" && (r.center || t.classList.contains("center") ? t.classList.contains("stack") ? t.style.top = 0 : t.style.top = Math.max((n.height - t.scrollHeight) / 2, 0) + "px" : t.style.top = "");
|
|
2298
2299
|
}
|
|
2299
|
-
i !== f &&
|
|
2300
|
+
i !== f && V({
|
|
2300
2301
|
type: "resize",
|
|
2301
2302
|
data: {
|
|
2302
2303
|
oldScale: i,
|
|
@@ -2305,25 +2306,25 @@ function rt(e, t) {
|
|
|
2305
2306
|
}
|
|
2306
2307
|
});
|
|
2307
2308
|
}
|
|
2308
|
-
|
|
2309
|
+
it(), m.viewport.style.setProperty("--slide-scale", f), m.viewport.style.setProperty("--viewport-width", e + "px"), m.viewport.style.setProperty("--viewport-height", t + "px"), T.layout(), re.update(), w.updateParallax(), D.isActive() && D.update();
|
|
2309
2310
|
}
|
|
2310
2311
|
}
|
|
2311
|
-
function
|
|
2312
|
-
|
|
2313
|
-
let r =
|
|
2312
|
+
function Qe(e, t) {
|
|
2313
|
+
N(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
|
|
2314
|
+
let r = de(n, t);
|
|
2314
2315
|
if (/(img|video)/gi.test(n.nodeName)) {
|
|
2315
2316
|
let t = n.naturalWidth || n.videoWidth, i = n.naturalHeight || n.videoHeight, a = Math.min(e / t, r / i);
|
|
2316
2317
|
n.style.width = t * a + "px", n.style.height = i * a + "px";
|
|
2317
2318
|
} else n.style.width = e + "px", n.style.height = r + "px";
|
|
2318
2319
|
});
|
|
2319
2320
|
}
|
|
2320
|
-
function
|
|
2321
|
-
if (m.wrapper && !r.disableLayout && !
|
|
2322
|
-
let e =
|
|
2323
|
-
e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ?
|
|
2321
|
+
function it() {
|
|
2322
|
+
if (m.wrapper && !r.disableLayout && !te.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2323
|
+
let e = W();
|
|
2324
|
+
e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ? T.isActive() || (w.create(), T.activate()) : T.isActive() && T.deactivate();
|
|
2324
2325
|
}
|
|
2325
2326
|
}
|
|
2326
|
-
function
|
|
2327
|
+
function W(e, t) {
|
|
2327
2328
|
let n = r.width, i = r.height;
|
|
2328
2329
|
r.disableLayout && (n = m.slides.offsetWidth, i = m.slides.offsetHeight);
|
|
2329
2330
|
let a = {
|
|
@@ -2334,58 +2335,58 @@ function rt(e, t) {
|
|
|
2334
2335
|
};
|
|
2335
2336
|
return a.presentationWidth -= a.presentationWidth * r.margin, a.presentationHeight -= a.presentationHeight * r.margin, typeof a.width == "string" && /%$/.test(a.width) && (a.width = parseInt(a.width, 10) / 100 * a.presentationWidth), typeof a.height == "string" && /%$/.test(a.height) && (a.height = parseInt(a.height, 10) / 100 * a.presentationHeight), a;
|
|
2336
2337
|
}
|
|
2337
|
-
function
|
|
2338
|
+
function at(e, t) {
|
|
2338
2339
|
typeof e == "object" && typeof e.setAttribute == "function" && e.setAttribute("data-previous-indexv", t || 0);
|
|
2339
2340
|
}
|
|
2340
|
-
function
|
|
2341
|
+
function G(e) {
|
|
2341
2342
|
if (typeof e == "object" && typeof e.setAttribute == "function" && e.classList.contains("stack")) {
|
|
2342
2343
|
let t = e.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
|
|
2343
2344
|
return parseInt(e.getAttribute(t) || 0, 10);
|
|
2344
2345
|
}
|
|
2345
2346
|
return 0;
|
|
2346
2347
|
}
|
|
2347
|
-
function
|
|
2348
|
+
function ot(e = l) {
|
|
2348
2349
|
return e && e.parentNode && !!e.parentNode.nodeName.match(/section/i);
|
|
2349
2350
|
}
|
|
2350
|
-
function
|
|
2351
|
+
function st(e = l) {
|
|
2351
2352
|
return e.classList.contains(".stack") || e.querySelector("section") !== null;
|
|
2352
2353
|
}
|
|
2353
|
-
function st() {
|
|
2354
|
-
return l && at(l) ? !l.nextElementSibling : !1;
|
|
2355
|
-
}
|
|
2356
2354
|
function ct() {
|
|
2357
|
-
return
|
|
2355
|
+
return l && ot(l) ? !l.nextElementSibling : !1;
|
|
2358
2356
|
}
|
|
2359
2357
|
function lt() {
|
|
2360
|
-
return
|
|
2358
|
+
return o === 0 && s === 0;
|
|
2361
2359
|
}
|
|
2362
2360
|
function ut() {
|
|
2361
|
+
return l ? !(l.nextElementSibling || ot(l) && l.parentNode.nextElementSibling) : !1;
|
|
2362
|
+
}
|
|
2363
|
+
function dt() {
|
|
2363
2364
|
if (r.pause) {
|
|
2364
2365
|
let e = m.wrapper.classList.contains("paused");
|
|
2365
|
-
Ht(), m.wrapper.classList.add("paused"), e === !1 &&
|
|
2366
|
+
Ht(), m.wrapper.classList.add("paused"), e === !1 && V({ type: "paused" });
|
|
2366
2367
|
}
|
|
2367
2368
|
}
|
|
2368
|
-
function
|
|
2369
|
+
function ft() {
|
|
2369
2370
|
let e = m.wrapper.classList.contains("paused");
|
|
2370
|
-
m.wrapper.classList.remove("paused"), Vt(), e &&
|
|
2371
|
+
m.wrapper.classList.remove("paused"), Vt(), e && V({ type: "resumed" });
|
|
2371
2372
|
}
|
|
2372
|
-
function
|
|
2373
|
-
typeof e == "boolean" ? e ?
|
|
2373
|
+
function pt(e) {
|
|
2374
|
+
typeof e == "boolean" ? e ? dt() : ft() : mt() ? ft() : dt();
|
|
2374
2375
|
}
|
|
2375
|
-
function
|
|
2376
|
+
function mt() {
|
|
2376
2377
|
return m.wrapper.classList.contains("paused");
|
|
2377
2378
|
}
|
|
2378
|
-
function
|
|
2379
|
+
function ht(e) {
|
|
2379
2380
|
typeof e == "boolean" ? e ? C.show() : C.hide() : C.isVisible() ? C.hide() : C.show();
|
|
2380
2381
|
}
|
|
2381
|
-
function
|
|
2382
|
+
function gt(e) {
|
|
2382
2383
|
typeof e == "boolean" ? e ? Wt() : Ut() : b ? Wt() : Ut();
|
|
2383
2384
|
}
|
|
2384
|
-
function
|
|
2385
|
+
function _t() {
|
|
2385
2386
|
return !!(g && !b);
|
|
2386
2387
|
}
|
|
2387
|
-
function
|
|
2388
|
-
if (
|
|
2388
|
+
function vt(t, n, i, a) {
|
|
2389
|
+
if (V({
|
|
2389
2390
|
type: "beforeslidechange",
|
|
2390
2391
|
data: {
|
|
2391
2392
|
indexh: t === void 0 ? o : t,
|
|
@@ -2394,26 +2395,26 @@ function rt(e, t) {
|
|
|
2394
2395
|
}
|
|
2395
2396
|
}).defaultPrevented) return;
|
|
2396
2397
|
c = l;
|
|
2397
|
-
let u = m.wrapper.querySelectorAll(
|
|
2398
|
-
if (
|
|
2399
|
-
let e =
|
|
2400
|
-
e &&
|
|
2398
|
+
let u = m.wrapper.querySelectorAll(Se);
|
|
2399
|
+
if (T.isActive()) {
|
|
2400
|
+
let e = T.getSlideByIndices(t, n);
|
|
2401
|
+
e && T.scrollToSlide(e);
|
|
2401
2402
|
return;
|
|
2402
2403
|
}
|
|
2403
2404
|
if (u.length === 0) return;
|
|
2404
|
-
n === void 0 && !
|
|
2405
|
+
n === void 0 && !D.isActive() && (n = G(u[t])), c && c.parentNode && c.parentNode.classList.contains("stack") && at(c.parentNode, s);
|
|
2405
2406
|
let f = d.concat();
|
|
2406
2407
|
d.length = 0;
|
|
2407
2408
|
let p = o || 0, g = s || 0;
|
|
2408
|
-
o = J(
|
|
2409
|
+
o = J(Se, t === void 0 ? o : t), s = J(Ce, n === void 0 ? s : n);
|
|
2409
2410
|
let _ = o !== p || s !== g;
|
|
2410
2411
|
_ || (c = null);
|
|
2411
2412
|
let v = u[o], y = v.querySelectorAll("section");
|
|
2412
2413
|
e.classList.toggle("is-vertical-slide", y.length > 1), l = y[s] || v;
|
|
2413
2414
|
let b = !1;
|
|
2414
|
-
_ && c && l && !
|
|
2415
|
+
_ && c && l && !D.isActive() && (h = "running", b = yt(c, l, p, g), b && m.slides.classList.add("disable-slide-transitions")), Tt(), U(), D.isActive() && D.update(), i !== void 0 && E.goto(i), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), lt() && setTimeout(() => {
|
|
2415
2416
|
Mt().forEach((e) => {
|
|
2416
|
-
|
|
2417
|
+
at(e, 0);
|
|
2417
2418
|
});
|
|
2418
2419
|
}, 0));
|
|
2419
2420
|
stateLoop: for (let e = 0, t = d.length; e < t; e++) {
|
|
@@ -2421,38 +2422,38 @@ function rt(e, t) {
|
|
|
2421
2422
|
f.splice(t, 1);
|
|
2422
2423
|
continue stateLoop;
|
|
2423
2424
|
}
|
|
2424
|
-
m.viewport.classList.add(d[e]),
|
|
2425
|
+
m.viewport.classList.add(d[e]), V({ type: d[e] });
|
|
2425
2426
|
}
|
|
2426
2427
|
for (; f.length;) m.viewport.classList.remove(f.pop());
|
|
2427
|
-
_ && (x.afterSlideChanged(),
|
|
2428
|
-
|
|
2429
|
-
}),
|
|
2428
|
+
_ && (x.afterSlideChanged(), qe(a)), (_ || !c) && (x.stopEmbeddedContent(c), x.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2429
|
+
ye(be(l));
|
|
2430
|
+
}), re.update(), ne.update(), I.update(), w.update(), w.updateParallax(), S.update(), E.update(), k.writeURL(), Vt(), b && (setTimeout(() => {
|
|
2430
2431
|
m.slides.classList.remove("disable-slide-transitions");
|
|
2431
|
-
}, 0), r.autoAnimate &&
|
|
2432
|
+
}, 0), r.autoAnimate && ee.run(c, l));
|
|
2432
2433
|
}
|
|
2433
|
-
function
|
|
2434
|
+
function yt(e, t, n, r) {
|
|
2434
2435
|
return e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(o > n || s > r ? t : e).hasAttribute("data-auto-animate-restart");
|
|
2435
2436
|
}
|
|
2436
|
-
function
|
|
2437
|
+
function bt(e, t, n) {
|
|
2437
2438
|
let i = o || 0;
|
|
2438
2439
|
o = t, s = n;
|
|
2439
2440
|
let a = l !== e;
|
|
2440
|
-
c = l, l = e, l && c && r.autoAnimate &&
|
|
2441
|
-
|
|
2442
|
-
}),
|
|
2441
|
+
c = l, l = e, l && c && r.autoAnimate && yt(c, l, i, s) && ee.run(c, l), a && (x.afterSlideChanged(), c && (x.stopEmbeddedContent(c), x.stopEmbeddedContent(c.slideBackgroundElement)), x.startEmbeddedContent(l), x.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
|
|
2442
|
+
ye(be(l));
|
|
2443
|
+
}), qe();
|
|
2443
2444
|
}
|
|
2444
|
-
function
|
|
2445
|
-
|
|
2445
|
+
function xt() {
|
|
2446
|
+
Ne(), Me(), U(), g = r.autoSlide, Vt(), w.create(), k.writeURL(), r.sortFragmentsOnSync === !0 && E.sortAll(), o !== void 0 && (o = J(Se, o), s = J(Ce, s)), ne.update(), re.update(), Tt(), I.update(), I.updateVisibility(), M.update(), w.update(!0), S.update(), x.formatEmbeddedContent(), r.autoPlayMedia === !1 ? x.stopEmbeddedContent(l, { unloadIframes: !1 }) : x.startEmbeddedContent(l), D.isActive() && D.layout(), V({ type: "sync" });
|
|
2446
2447
|
}
|
|
2447
|
-
function
|
|
2448
|
-
|
|
2448
|
+
function K(e = l) {
|
|
2449
|
+
w.sync(e), E.sync(e), x.load(e), w.update(), I.update(), V({
|
|
2449
2450
|
type: "slidesync",
|
|
2450
2451
|
data: { slide: e }
|
|
2451
2452
|
});
|
|
2452
2453
|
}
|
|
2453
2454
|
function q() {
|
|
2454
2455
|
At().forEach((e) => {
|
|
2455
|
-
|
|
2456
|
+
N(e, "section").forEach((e, t) => {
|
|
2456
2457
|
t > 0 && (e.classList.remove("present"), e.classList.remove("past"), e.classList.add("future"), e.setAttribute("aria-hidden", "true"));
|
|
2457
2458
|
});
|
|
2458
2459
|
});
|
|
@@ -2466,11 +2467,11 @@ function rt(e, t) {
|
|
|
2466
2467
|
});
|
|
2467
2468
|
}
|
|
2468
2469
|
function J(e, t) {
|
|
2469
|
-
let n =
|
|
2470
|
+
let n = N(m.wrapper, e), i = n.length, a = T.isActive() || te.isActive(), o = !1, s = !1;
|
|
2470
2471
|
if (i) {
|
|
2471
2472
|
r.loop && (t >= i && (o = !0), t %= i, t < 0 && (t = i + t, s = !0)), t = Math.max(Math.min(t, i - 1), 0);
|
|
2472
2473
|
for (let e = 0; e < i; e++) {
|
|
2473
|
-
let i = n[e], c = r.rtl && !
|
|
2474
|
+
let i = n[e], c = r.rtl && !ot(i);
|
|
2474
2475
|
if (i.classList.remove("past"), i.classList.remove("present"), i.classList.remove("future"), i.setAttribute("hidden", ""), i.setAttribute("aria-hidden", "true"), i.querySelector("section") && i.classList.add("stack"), a) {
|
|
2475
2476
|
i.classList.add("present");
|
|
2476
2477
|
continue;
|
|
@@ -2478,7 +2479,7 @@ function rt(e, t) {
|
|
|
2478
2479
|
e < t ? (i.classList.add(c ? "future" : "past"), r.fragments && Ct(i)) : e > t ? (i.classList.add(c ? "past" : "future"), r.fragments && wt(i)) : e === t && r.fragments && (o ? wt(i) : s && Ct(i));
|
|
2479
2480
|
}
|
|
2480
2481
|
let e = n[t], c = e.classList.contains("present");
|
|
2481
|
-
e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c ||
|
|
2482
|
+
e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c || V({
|
|
2482
2483
|
target: e,
|
|
2483
2484
|
type: "visible",
|
|
2484
2485
|
bubbles: !1
|
|
@@ -2489,24 +2490,24 @@ function rt(e, t) {
|
|
|
2489
2490
|
return t;
|
|
2490
2491
|
}
|
|
2491
2492
|
function Ct(e) {
|
|
2492
|
-
|
|
2493
|
+
N(e, ".fragment").forEach((e) => {
|
|
2493
2494
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
2494
2495
|
});
|
|
2495
2496
|
}
|
|
2496
2497
|
function wt(e) {
|
|
2497
|
-
|
|
2498
|
+
N(e, ".fragment.visible").forEach((e) => {
|
|
2498
2499
|
e.classList.remove("visible", "current-fragment");
|
|
2499
2500
|
});
|
|
2500
2501
|
}
|
|
2501
2502
|
function Tt() {
|
|
2502
2503
|
let e = At(), t = e.length, n, i;
|
|
2503
2504
|
if (t && o !== void 0) {
|
|
2504
|
-
let a =
|
|
2505
|
-
|
|
2505
|
+
let a = D.isActive(), c = a ? 10 : r.viewDistance;
|
|
2506
|
+
ge && (c = a ? 6 : r.mobileViewDistance), te.isActive() && (c = Number.MAX_VALUE);
|
|
2506
2507
|
for (let l = 0; l < t; l++) {
|
|
2507
|
-
let u = e[l], d =
|
|
2508
|
+
let u = e[l], d = N(u, "section"), f = d.length;
|
|
2508
2509
|
if (n = Math.abs((o || 0) - l) || 0, r.loop && (n = Math.abs(((o || 0) - l) % (t - c)) || 0), n < c ? x.load(u) : x.unload(u), f) {
|
|
2509
|
-
let e = a ? 0 :
|
|
2510
|
+
let e = a ? 0 : G(u);
|
|
2510
2511
|
for (let t = 0; t < f; t++) {
|
|
2511
2512
|
let r = d[t];
|
|
2512
2513
|
i = Math.abs(l === (o || 0) ? (s || 0) - t : t - e), n + i < c ? x.load(r) : x.unload(r);
|
|
@@ -2517,14 +2518,14 @@ function rt(e, t) {
|
|
|
2517
2518
|
}
|
|
2518
2519
|
}
|
|
2519
2520
|
function Y({ includeFragments: e = !1 } = {}) {
|
|
2520
|
-
let t = m.wrapper.querySelectorAll(
|
|
2521
|
+
let t = m.wrapper.querySelectorAll(Se), n = m.wrapper.querySelectorAll(Ce), i = {
|
|
2521
2522
|
left: o > 0,
|
|
2522
2523
|
right: o < t.length - 1,
|
|
2523
2524
|
up: s > 0,
|
|
2524
2525
|
down: s < n.length - 1
|
|
2525
2526
|
};
|
|
2526
2527
|
if (r.loop && (t.length > 1 && (i.left = !0, i.right = !0), n.length > 1 && (i.up = !0, i.down = !0)), t.length > 1 && r.navigationMode === "linear" && (i.right = i.right || i.down, i.left = i.left || i.up), e === !0) {
|
|
2527
|
-
let e =
|
|
2528
|
+
let e = E.availableRoutes();
|
|
2528
2529
|
i.left = i.left || e.prev, i.up = i.up || e.prev, i.down = i.down || e.next, i.right = i.right || e.next;
|
|
2529
2530
|
}
|
|
2530
2531
|
if (r.rtl) {
|
|
@@ -2560,10 +2561,10 @@ function rt(e, t) {
|
|
|
2560
2561
|
function Ot(e) {
|
|
2561
2562
|
let t = o, n = s, r;
|
|
2562
2563
|
if (e) {
|
|
2563
|
-
if (
|
|
2564
|
+
if (T.isActive()) t = parseInt(e.getAttribute("data-index-h"), 10), e.getAttribute("data-index-v") && (n = parseInt(e.getAttribute("data-index-v"), 10));
|
|
2564
2565
|
else {
|
|
2565
|
-
let r =
|
|
2566
|
-
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(
|
|
2566
|
+
let r = ot(e), i = r ? e.parentNode : e, a = At();
|
|
2567
|
+
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(N(e.parentNode, "section").indexOf(e), 0));
|
|
2567
2568
|
}
|
|
2568
2569
|
}
|
|
2569
2570
|
if (!e && l && l.querySelectorAll(".fragment").length > 0) {
|
|
@@ -2577,16 +2578,16 @@ function rt(e, t) {
|
|
|
2577
2578
|
};
|
|
2578
2579
|
}
|
|
2579
2580
|
function kt() {
|
|
2580
|
-
return
|
|
2581
|
+
return N(m.wrapper, z + ":not(.stack):not([data-visibility=\"uncounted\"])");
|
|
2581
2582
|
}
|
|
2582
2583
|
function At() {
|
|
2583
|
-
return
|
|
2584
|
+
return N(m.wrapper, Se);
|
|
2584
2585
|
}
|
|
2585
2586
|
function jt() {
|
|
2586
|
-
return
|
|
2587
|
+
return N(m.wrapper, ".slides>section>section");
|
|
2587
2588
|
}
|
|
2588
2589
|
function Mt() {
|
|
2589
|
-
return
|
|
2590
|
+
return N(m.wrapper, Se + ".stack");
|
|
2590
2591
|
}
|
|
2591
2592
|
function Nt() {
|
|
2592
2593
|
return At().length > 1;
|
|
@@ -2617,27 +2618,27 @@ function rt(e, t) {
|
|
|
2617
2618
|
}
|
|
2618
2619
|
function zt() {
|
|
2619
2620
|
let e = Ot();
|
|
2620
|
-
return
|
|
2621
|
+
return H({
|
|
2621
2622
|
indexh: e.h,
|
|
2622
2623
|
indexv: e.v,
|
|
2623
2624
|
indexf: e.f,
|
|
2624
|
-
paused:
|
|
2625
|
-
overview:
|
|
2626
|
-
},
|
|
2625
|
+
paused: mt(),
|
|
2626
|
+
overview: D.isActive()
|
|
2627
|
+
}, M.getState());
|
|
2627
2628
|
}
|
|
2628
2629
|
function Bt(e) {
|
|
2629
2630
|
if (typeof e == "object") {
|
|
2630
|
-
|
|
2631
|
-
let t =
|
|
2632
|
-
typeof t == "boolean" && t !==
|
|
2631
|
+
vt(oe(e.indexh), oe(e.indexv), oe(e.indexf));
|
|
2632
|
+
let t = oe(e.paused), n = oe(e.overview);
|
|
2633
|
+
typeof t == "boolean" && t !== mt() && pt(t), typeof n == "boolean" && n !== D.isActive() && D.toggle(n), M.setState(e);
|
|
2633
2634
|
}
|
|
2634
2635
|
}
|
|
2635
2636
|
function Vt() {
|
|
2636
2637
|
if (Ht(), l && r.autoSlide !== !1) {
|
|
2637
2638
|
let e = l.querySelector(".current-fragment[data-autoslide]"), t = e ? e.getAttribute("data-autoslide") : null, n = l.parentNode ? l.parentNode.getAttribute("data-autoslide") : null, i = l.getAttribute("data-autoslide");
|
|
2638
|
-
t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 &&
|
|
2639
|
+
t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && N(l, "video, audio").forEach((e) => {
|
|
2639
2640
|
e.hasAttribute("data-autoplay") && g && e.duration * 1e3 / e.playbackRate > g && (g = e.duration * 1e3 / e.playbackRate + 1e3);
|
|
2640
|
-
})), g && !b && !
|
|
2641
|
+
})), g && !b && !mt() && !D.isActive() && (!ut() || E.availableRoutes().next || r.loop === !0) && (v = setTimeout(() => {
|
|
2641
2642
|
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Xt(), Vt();
|
|
2642
2643
|
}, g), y = Date.now()), _ && _.setPlaying(v !== -1);
|
|
2643
2644
|
}
|
|
@@ -2646,45 +2647,45 @@ function rt(e, t) {
|
|
|
2646
2647
|
clearTimeout(v), v = -1;
|
|
2647
2648
|
}
|
|
2648
2649
|
function Ut() {
|
|
2649
|
-
g && !b && (b = !0,
|
|
2650
|
+
g && !b && (b = !0, V({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
|
|
2650
2651
|
}
|
|
2651
2652
|
function Wt() {
|
|
2652
|
-
g && b && (b = !1,
|
|
2653
|
+
g && b && (b = !1, V({ type: "autoslideresumed" }), Vt());
|
|
2653
2654
|
}
|
|
2654
2655
|
function Gt({ skipFragments: e = !1 } = {}) {
|
|
2655
|
-
if (u.hasNavigatedHorizontally = !0,
|
|
2656
|
-
r.rtl ? (
|
|
2656
|
+
if (u.hasNavigatedHorizontally = !0, T.isActive()) return T.prev();
|
|
2657
|
+
r.rtl ? (D.isActive() || e || E.next() === !1) && Y().left && vt(o + 1, r.navigationMode === "grid" ? s : void 0) : (D.isActive() || e || E.prev() === !1) && Y().left && vt(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2657
2658
|
}
|
|
2658
2659
|
function Kt({ skipFragments: e = !1 } = {}) {
|
|
2659
|
-
if (u.hasNavigatedHorizontally = !0,
|
|
2660
|
-
r.rtl ? (
|
|
2660
|
+
if (u.hasNavigatedHorizontally = !0, T.isActive()) return T.next();
|
|
2661
|
+
r.rtl ? (D.isActive() || e || E.prev() === !1) && Y().right && vt(o - 1, r.navigationMode === "grid" ? s : void 0) : (D.isActive() || e || E.next() === !1) && Y().right && vt(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2661
2662
|
}
|
|
2662
2663
|
function qt({ skipFragments: e = !1 } = {}) {
|
|
2663
|
-
if (
|
|
2664
|
-
(
|
|
2664
|
+
if (T.isActive()) return T.prev();
|
|
2665
|
+
(D.isActive() || e || E.prev() === !1) && Y().up && vt(o, s - 1);
|
|
2665
2666
|
}
|
|
2666
2667
|
function Jt({ skipFragments: e = !1 } = {}) {
|
|
2667
|
-
if (u.hasNavigatedVertically = !0,
|
|
2668
|
-
(
|
|
2668
|
+
if (u.hasNavigatedVertically = !0, T.isActive()) return T.next();
|
|
2669
|
+
(D.isActive() || e || E.next() === !1) && Y().down && vt(o, s + 1);
|
|
2669
2670
|
}
|
|
2670
2671
|
function Yt({ skipFragments: e = !1 } = {}) {
|
|
2671
|
-
if (
|
|
2672
|
-
if (e ||
|
|
2672
|
+
if (T.isActive()) return T.prev();
|
|
2673
|
+
if (e || E.prev() === !1) {
|
|
2673
2674
|
if (Y().up) qt({ skipFragments: e });
|
|
2674
2675
|
else {
|
|
2675
2676
|
let t;
|
|
2676
|
-
if (t = r.rtl ?
|
|
2677
|
+
if (t = r.rtl ? N(m.wrapper, Se + ".future").pop() : N(m.wrapper, Se + ".past").pop(), t && t.classList.contains("stack")) {
|
|
2677
2678
|
let e = t.querySelectorAll("section").length - 1 || void 0;
|
|
2678
|
-
|
|
2679
|
+
vt(o - 1, e);
|
|
2679
2680
|
} else r.rtl ? Kt({ skipFragments: e }) : Gt({ skipFragments: e });
|
|
2680
2681
|
}
|
|
2681
2682
|
}
|
|
2682
2683
|
}
|
|
2683
2684
|
function Xt({ skipFragments: e = !1 } = {}) {
|
|
2684
|
-
if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0,
|
|
2685
|
-
if (e ||
|
|
2685
|
+
if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0, T.isActive()) return T.next();
|
|
2686
|
+
if (e || E.next() === !1) {
|
|
2686
2687
|
let t = Y();
|
|
2687
|
-
t.down && t.right && r.loop &&
|
|
2688
|
+
t.down && t.right && r.loop && ct() && (t.down = !1), t.down ? Jt({ skipFragments: e }) : r.rtl ? Gt({ skipFragments: e }) : Kt({ skipFragments: e });
|
|
2688
2689
|
}
|
|
2689
2690
|
}
|
|
2690
2691
|
function Zt(e) {
|
|
@@ -2693,9 +2694,9 @@ function rt(e, t) {
|
|
|
2693
2694
|
function Qt(e) {
|
|
2694
2695
|
let t = e.data;
|
|
2695
2696
|
if (typeof t == "string" && t.charAt(0) === "{" && t.charAt(t.length - 1) === "}" && (t = JSON.parse(t), t.method && typeof n[t.method] == "function")) {
|
|
2696
|
-
if (
|
|
2697
|
+
if (Te.test(t.method) === !1) {
|
|
2697
2698
|
let e = n[t.method].apply(n, t.args);
|
|
2698
|
-
|
|
2699
|
+
Xe("callback", {
|
|
2699
2700
|
method: t.method,
|
|
2700
2701
|
result: e
|
|
2701
2702
|
});
|
|
@@ -2703,7 +2704,7 @@ function rt(e, t) {
|
|
|
2703
2704
|
}
|
|
2704
2705
|
}
|
|
2705
2706
|
function $t(e) {
|
|
2706
|
-
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle",
|
|
2707
|
+
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", V({
|
|
2707
2708
|
type: "slidetransitionend",
|
|
2708
2709
|
data: {
|
|
2709
2710
|
indexh: o,
|
|
@@ -2714,14 +2715,14 @@ function rt(e, t) {
|
|
|
2714
2715
|
}));
|
|
2715
2716
|
}
|
|
2716
2717
|
function en(e) {
|
|
2717
|
-
let t =
|
|
2718
|
+
let t = F(e.target, "a[href^=\"#\"]");
|
|
2718
2719
|
if (t) {
|
|
2719
|
-
let r = t.getAttribute("href"), i =
|
|
2720
|
+
let r = t.getAttribute("href"), i = k.getIndicesFromHash(r);
|
|
2720
2721
|
i && (n.slide(i.h, i.v, i.f), e.preventDefault());
|
|
2721
2722
|
}
|
|
2722
2723
|
}
|
|
2723
2724
|
function tn(e) {
|
|
2724
|
-
|
|
2725
|
+
U();
|
|
2725
2726
|
}
|
|
2726
2727
|
function nn(e) {
|
|
2727
2728
|
document.hidden === !1 && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
@@ -2732,17 +2733,17 @@ function rt(e, t) {
|
|
|
2732
2733
|
}, 1));
|
|
2733
2734
|
}
|
|
2734
2735
|
function an(e) {
|
|
2735
|
-
|
|
2736
|
+
ut() && r.loop === !1 ? (vt(0, 0), Wt()) : b ? Wt() : Ut();
|
|
2736
2737
|
}
|
|
2737
2738
|
let on = {
|
|
2738
|
-
VERSION:
|
|
2739
|
-
initialize:
|
|
2740
|
-
configure:
|
|
2741
|
-
destroy:
|
|
2742
|
-
sync:
|
|
2743
|
-
syncSlide:
|
|
2744
|
-
syncFragments:
|
|
2745
|
-
slide:
|
|
2739
|
+
VERSION: rt,
|
|
2740
|
+
initialize: fe,
|
|
2741
|
+
configure: Ae,
|
|
2742
|
+
destroy: Pe,
|
|
2743
|
+
sync: xt,
|
|
2744
|
+
syncSlide: K,
|
|
2745
|
+
syncFragments: E.sync.bind(E),
|
|
2746
|
+
slide: vt,
|
|
2746
2747
|
left: Gt,
|
|
2747
2748
|
right: Kt,
|
|
2748
2749
|
up: qt,
|
|
@@ -2755,49 +2756,49 @@ function rt(e, t) {
|
|
|
2755
2756
|
navigateDown: Jt,
|
|
2756
2757
|
navigatePrev: Yt,
|
|
2757
2758
|
navigateNext: Xt,
|
|
2758
|
-
navigateFragment:
|
|
2759
|
-
prevFragment:
|
|
2760
|
-
nextFragment:
|
|
2761
|
-
on:
|
|
2762
|
-
off:
|
|
2763
|
-
addEventListener:
|
|
2764
|
-
removeEventListener:
|
|
2765
|
-
layout:
|
|
2759
|
+
navigateFragment: E.goto.bind(E),
|
|
2760
|
+
prevFragment: E.prev.bind(E),
|
|
2761
|
+
nextFragment: E.next.bind(E),
|
|
2762
|
+
on: Fe,
|
|
2763
|
+
off: Le,
|
|
2764
|
+
addEventListener: Fe,
|
|
2765
|
+
removeEventListener: Le,
|
|
2766
|
+
layout: U,
|
|
2766
2767
|
shuffle: St,
|
|
2767
2768
|
availableRoutes: Y,
|
|
2768
|
-
availableFragments:
|
|
2769
|
-
toggleHelp:
|
|
2770
|
-
toggleOverview:
|
|
2771
|
-
toggleScrollView:
|
|
2772
|
-
togglePause:
|
|
2773
|
-
toggleAutoSlide:
|
|
2774
|
-
toggleJumpToSlide:
|
|
2775
|
-
isFirstSlide:
|
|
2776
|
-
isLastSlide:
|
|
2777
|
-
isLastVerticalSlide:
|
|
2778
|
-
isVerticalSlide:
|
|
2779
|
-
isVerticalStack:
|
|
2780
|
-
isPaused:
|
|
2781
|
-
isAutoSliding:
|
|
2782
|
-
isSpeakerNotes:
|
|
2783
|
-
isOverview:
|
|
2784
|
-
isFocused:
|
|
2785
|
-
isOverlayOpen:
|
|
2786
|
-
isScrollView:
|
|
2787
|
-
isPrintView:
|
|
2769
|
+
availableFragments: E.availableRoutes.bind(E),
|
|
2770
|
+
toggleHelp: M.toggleHelp.bind(M),
|
|
2771
|
+
toggleOverview: D.toggle.bind(D),
|
|
2772
|
+
toggleScrollView: T.toggle.bind(T),
|
|
2773
|
+
togglePause: pt,
|
|
2774
|
+
toggleAutoSlide: gt,
|
|
2775
|
+
toggleJumpToSlide: ht,
|
|
2776
|
+
isFirstSlide: lt,
|
|
2777
|
+
isLastSlide: ut,
|
|
2778
|
+
isLastVerticalSlide: ct,
|
|
2779
|
+
isVerticalSlide: ot,
|
|
2780
|
+
isVerticalStack: st,
|
|
2781
|
+
isPaused: mt,
|
|
2782
|
+
isAutoSliding: _t,
|
|
2783
|
+
isSpeakerNotes: I.isSpeakerNotesWindow.bind(I),
|
|
2784
|
+
isOverview: D.isActive.bind(D),
|
|
2785
|
+
isFocused: P.isFocused.bind(P),
|
|
2786
|
+
isOverlayOpen: M.isOpen.bind(M),
|
|
2787
|
+
isScrollView: T.isActive.bind(T),
|
|
2788
|
+
isPrintView: te.isActive.bind(te),
|
|
2788
2789
|
isReady: () => a,
|
|
2789
2790
|
loadSlide: x.load.bind(x),
|
|
2790
2791
|
unloadSlide: x.unload.bind(x),
|
|
2791
2792
|
startEmbeddedContent: () => x.startEmbeddedContent(l),
|
|
2792
2793
|
stopEmbeddedContent: () => x.stopEmbeddedContent(l, { unloadIframes: !1 }),
|
|
2793
|
-
previewIframe:
|
|
2794
|
-
previewImage:
|
|
2795
|
-
previewVideo:
|
|
2796
|
-
showPreview:
|
|
2797
|
-
hidePreview:
|
|
2798
|
-
addEventListeners:
|
|
2799
|
-
removeEventListeners:
|
|
2800
|
-
dispatchEvent:
|
|
2794
|
+
previewIframe: M.previewIframe.bind(M),
|
|
2795
|
+
previewImage: M.previewImage.bind(M),
|
|
2796
|
+
previewVideo: M.previewVideo.bind(M),
|
|
2797
|
+
showPreview: M.previewIframe.bind(M),
|
|
2798
|
+
hidePreview: M.close.bind(M),
|
|
2799
|
+
addEventListeners: Me,
|
|
2800
|
+
removeEventListeners: Ne,
|
|
2801
|
+
dispatchEvent: V,
|
|
2801
2802
|
getState: zt,
|
|
2802
2803
|
setState: Bt,
|
|
2803
2804
|
getProgress: Dt,
|
|
@@ -2809,7 +2810,7 @@ function rt(e, t) {
|
|
|
2809
2810
|
getPreviousSlide: () => c,
|
|
2810
2811
|
getCurrentSlide: () => l,
|
|
2811
2812
|
getSlideBackground: Rt,
|
|
2812
|
-
getSlideNotes:
|
|
2813
|
+
getSlideNotes: I.getSlideNotes.bind(I),
|
|
2813
2814
|
getSlides: kt,
|
|
2814
2815
|
getHorizontalSlides: At,
|
|
2815
2816
|
getVerticalSlides: jt,
|
|
@@ -2817,55 +2818,55 @@ function rt(e, t) {
|
|
|
2817
2818
|
hasVerticalSlides: Pt,
|
|
2818
2819
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2819
2820
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2820
|
-
shouldAutoAnimateBetween:
|
|
2821
|
-
addKeyBinding:
|
|
2822
|
-
removeKeyBinding:
|
|
2823
|
-
triggerKey:
|
|
2824
|
-
registerKeyboardShortcut:
|
|
2825
|
-
getComputedSlideSize:
|
|
2826
|
-
setCurrentScrollPage:
|
|
2827
|
-
removeHiddenSlides:
|
|
2821
|
+
shouldAutoAnimateBetween: yt,
|
|
2822
|
+
addKeyBinding: O.addKeyBinding.bind(O),
|
|
2823
|
+
removeKeyBinding: O.removeKeyBinding.bind(O),
|
|
2824
|
+
triggerKey: O.triggerKey.bind(O),
|
|
2825
|
+
registerKeyboardShortcut: O.registerKeyboardShortcut.bind(O),
|
|
2826
|
+
getComputedSlideSize: W,
|
|
2827
|
+
setCurrentScrollPage: bt,
|
|
2828
|
+
removeHiddenSlides: L,
|
|
2828
2829
|
getScale: () => f,
|
|
2829
2830
|
getConfig: () => r,
|
|
2830
|
-
getQueryHash:
|
|
2831
|
-
getSlidePath:
|
|
2831
|
+
getQueryHash: ue,
|
|
2832
|
+
getSlidePath: k.getHash.bind(k),
|
|
2832
2833
|
getRevealElement: () => e,
|
|
2833
2834
|
getSlidesElement: () => m.slides,
|
|
2834
2835
|
getViewportElement: () => m.viewport,
|
|
2835
|
-
getBackgroundsElement: () =>
|
|
2836
|
-
registerPlugin:
|
|
2837
|
-
hasPlugin:
|
|
2838
|
-
getPlugin:
|
|
2839
|
-
getPlugins:
|
|
2836
|
+
getBackgroundsElement: () => w.element,
|
|
2837
|
+
registerPlugin: j.registerPlugin.bind(j),
|
|
2838
|
+
hasPlugin: j.hasPlugin.bind(j),
|
|
2839
|
+
getPlugin: j.getPlugin.bind(j),
|
|
2840
|
+
getPlugins: j.getRegisteredPlugins.bind(j)
|
|
2840
2841
|
};
|
|
2841
|
-
return
|
|
2842
|
-
announceStatus:
|
|
2843
|
-
getStatusText:
|
|
2844
|
-
focus:
|
|
2845
|
-
scroll:
|
|
2846
|
-
progress:
|
|
2847
|
-
controls:
|
|
2848
|
-
location:
|
|
2849
|
-
overview:
|
|
2850
|
-
keyboard:
|
|
2851
|
-
fragments:
|
|
2852
|
-
backgrounds:
|
|
2842
|
+
return ie(n, H(H({}, on), {}, {
|
|
2843
|
+
announceStatus: ye,
|
|
2844
|
+
getStatusText: be,
|
|
2845
|
+
focus: P,
|
|
2846
|
+
scroll: T,
|
|
2847
|
+
progress: re,
|
|
2848
|
+
controls: ne,
|
|
2849
|
+
location: k,
|
|
2850
|
+
overview: D,
|
|
2851
|
+
keyboard: O,
|
|
2852
|
+
fragments: E,
|
|
2853
|
+
backgrounds: w,
|
|
2853
2854
|
slideContent: x,
|
|
2854
2855
|
slideNumber: S,
|
|
2855
2856
|
onUserInput: Zt,
|
|
2856
|
-
closeOverlay:
|
|
2857
|
+
closeOverlay: M.close.bind(M),
|
|
2857
2858
|
updateSlidesVisibility: Tt,
|
|
2858
|
-
layoutSlideContents:
|
|
2859
|
-
transformSlides:
|
|
2859
|
+
layoutSlideContents: Qe,
|
|
2860
|
+
transformSlides: Re,
|
|
2860
2861
|
cueAutoSlide: Vt,
|
|
2861
2862
|
cancelAutoSlide: Ht
|
|
2862
2863
|
})), on;
|
|
2863
2864
|
}
|
|
2864
|
-
var
|
|
2865
|
-
|
|
2865
|
+
var W = it, at = [];
|
|
2866
|
+
W.initialize = (e) => {
|
|
2866
2867
|
let t = document.querySelector(".reveal");
|
|
2867
2868
|
if (!(t instanceof HTMLElement)) throw Error("Unable to find presentation root (<div class=\"reveal\">).");
|
|
2868
|
-
return Object.assign(
|
|
2869
|
+
return Object.assign(W, new it(t, e)), at.map((e) => e(W)), W.initialize();
|
|
2869
2870
|
}, [
|
|
2870
2871
|
"configure",
|
|
2871
2872
|
"on",
|
|
@@ -2874,14 +2875,14 @@ G.initialize = (e) => {
|
|
|
2874
2875
|
"removeEventListener",
|
|
2875
2876
|
"registerPlugin"
|
|
2876
2877
|
].forEach((e) => {
|
|
2877
|
-
|
|
2878
|
-
|
|
2878
|
+
W[e] = (...t) => {
|
|
2879
|
+
at.push((n) => n[e].call(null, ...t));
|
|
2879
2880
|
};
|
|
2880
|
-
}),
|
|
2881
|
+
}), W.isReady = () => !1, W.VERSION = rt;
|
|
2881
2882
|
//#endregion
|
|
2882
2883
|
//#region ../node_modules/.pnpm/@revealjs+react@0.2.1_react-dom@19.2.8_react@19.2.8__react@19.2.8_reveal.js@6.0.1/node_modules/@revealjs/react/dist/index.mjs
|
|
2883
|
-
var
|
|
2884
|
-
function
|
|
2884
|
+
var G = T(), ot = (0, j.createContext)(null), st = [];
|
|
2885
|
+
function ct(e, t) {
|
|
2885
2886
|
if (e === t) return !1;
|
|
2886
2887
|
if (!e || !t) return e !== t;
|
|
2887
2888
|
let n = Object.keys(e), r = Object.keys(t);
|
|
@@ -2889,43 +2890,43 @@ function st(e, t) {
|
|
|
2889
2890
|
for (let r of n) if (!(r in t) || e[r] !== t[r]) return !0;
|
|
2890
2891
|
return !1;
|
|
2891
2892
|
}
|
|
2892
|
-
function
|
|
2893
|
+
function lt(e, t) {
|
|
2893
2894
|
e && (typeof e == "function" ? e(t) : e.current = t);
|
|
2894
2895
|
}
|
|
2895
|
-
function
|
|
2896
|
+
function ut(e) {
|
|
2896
2897
|
return e.tagName === "SECTION";
|
|
2897
2898
|
}
|
|
2898
|
-
function
|
|
2899
|
-
return Array.from(e.children).filter(
|
|
2899
|
+
function dt(e, t, n) {
|
|
2900
|
+
return Array.from(e.children).filter(ut).map((e) => {
|
|
2900
2901
|
let r = t.get(e);
|
|
2901
2902
|
r === void 0 && (r = n.current++, t.set(e, r));
|
|
2902
|
-
let i =
|
|
2903
|
+
let i = dt(e, t, n);
|
|
2903
2904
|
return i.length > 0 ? [r, i] : r;
|
|
2904
2905
|
});
|
|
2905
2906
|
}
|
|
2906
|
-
function
|
|
2907
|
-
return e ? JSON.stringify(
|
|
2907
|
+
function ft(e, t, n) {
|
|
2908
|
+
return e ? JSON.stringify(dt(e, t, n)) : "[]";
|
|
2908
2909
|
}
|
|
2909
|
-
function
|
|
2910
|
-
let _ = (0,
|
|
2911
|
-
return (0,
|
|
2912
|
-
if (
|
|
2910
|
+
function pt({ config: e, plugins: t = st, onReady: n, onSync: r, onSlideSync: i, onSlideChange: a, onSlideTransitionEnd: o, onFragmentShown: s, onFragmentHidden: c, onOverviewShown: l, onOverviewHidden: u, onPaused: d, onResumed: f, deckRef: p, className: m, style: h, children: g }) {
|
|
2911
|
+
let _ = (0, j.useRef)(null), v = (0, j.useRef)(null), y = (0, j.useRef)(null), [b, x] = (0, j.useState)(null), S = (0, j.useRef)(t), C = (0, j.useRef)(!1), ee = (0, j.useRef)(e), w = (0, j.useRef)(null), T = (0, j.useRef)(/* @__PURE__ */ new WeakMap()), te = (0, j.useRef)(1), E = (0, j.useRef)(!1), D = (0, j.useRef)(0);
|
|
2912
|
+
return (0, j.useEffect)(() => {
|
|
2913
|
+
if (E.current = !0, D.current += 1, y.current) y.current.isReady() && x(y.current);
|
|
2913
2914
|
else {
|
|
2914
|
-
let t = new
|
|
2915
|
+
let t = new W(_.current, {
|
|
2915
2916
|
...e,
|
|
2916
2917
|
plugins: S.current
|
|
2917
2918
|
});
|
|
2918
|
-
|
|
2919
|
-
!
|
|
2919
|
+
ee.current = e, y.current = t, t.initialize().then(() => {
|
|
2920
|
+
!E.current || y.current !== t || (x(t), n?.(t));
|
|
2920
2921
|
});
|
|
2921
2922
|
}
|
|
2922
2923
|
return () => {
|
|
2923
|
-
|
|
2924
|
+
E.current = !1;
|
|
2924
2925
|
let e = y.current;
|
|
2925
2926
|
if (!e) return;
|
|
2926
|
-
let t = ++
|
|
2927
|
+
let t = ++D.current;
|
|
2927
2928
|
Promise.resolve().then(() => {
|
|
2928
|
-
if (!(
|
|
2929
|
+
if (!(E.current || D.current !== t) && y.current === e) {
|
|
2929
2930
|
try {
|
|
2930
2931
|
e.destroy();
|
|
2931
2932
|
} catch {}
|
|
@@ -2933,7 +2934,7 @@ function ft({ config: e, plugins: t = ot, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2933
2934
|
}
|
|
2934
2935
|
});
|
|
2935
2936
|
};
|
|
2936
|
-
}, []), (0,
|
|
2937
|
+
}, []), (0, j.useEffect)(() => (lt(p, b), () => lt(p, null)), [p, b]), (0, j.useEffect)(() => {
|
|
2937
2938
|
if (!b) return;
|
|
2938
2939
|
let e = [
|
|
2939
2940
|
["sync", r],
|
|
@@ -2963,24 +2964,24 @@ function ft({ config: e, plugins: t = ot, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2963
2964
|
u,
|
|
2964
2965
|
d,
|
|
2965
2966
|
f
|
|
2966
|
-
]), (0,
|
|
2967
|
-
!b || !y.current?.isReady() ||
|
|
2968
|
-
}, [b, e]), (0,
|
|
2967
|
+
]), (0, j.useLayoutEffect)(() => {
|
|
2968
|
+
!b || !y.current?.isReady() || ct(ee.current, e) && (C.current = !0, y.current.configure(e ?? {}), ee.current = e);
|
|
2969
|
+
}, [b, e]), (0, j.useLayoutEffect)(() => {
|
|
2969
2970
|
let e = C.current;
|
|
2970
2971
|
C.current = !1;
|
|
2971
|
-
let t =
|
|
2972
|
+
let t = ft(v.current, T.current, te);
|
|
2972
2973
|
if (e) {
|
|
2973
|
-
|
|
2974
|
+
w.current = t;
|
|
2974
2975
|
return;
|
|
2975
2976
|
}
|
|
2976
|
-
y.current?.isReady() &&
|
|
2977
|
-
}), /* @__PURE__ */ (0,
|
|
2977
|
+
y.current?.isReady() && w.current !== t && (y.current.sync(), w.current = t);
|
|
2978
|
+
}), /* @__PURE__ */ (0, G.jsx)(ot.Provider, {
|
|
2978
2979
|
value: b,
|
|
2979
|
-
children: /* @__PURE__ */ (0,
|
|
2980
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
2980
2981
|
className: m ? `reveal ${m}` : "reveal",
|
|
2981
2982
|
style: h,
|
|
2982
2983
|
ref: _,
|
|
2983
|
-
children: /* @__PURE__ */ (0,
|
|
2984
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
2984
2985
|
className: "slides",
|
|
2985
2986
|
ref: v,
|
|
2986
2987
|
children: g
|
|
@@ -2988,7 +2989,7 @@ function ft({ config: e, plugins: t = ot, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2988
2989
|
})
|
|
2989
2990
|
});
|
|
2990
2991
|
}
|
|
2991
|
-
var
|
|
2992
|
+
var mt = {
|
|
2992
2993
|
background: "data-background",
|
|
2993
2994
|
backgroundImage: "data-background-image",
|
|
2994
2995
|
backgroundVideo: "data-background-video",
|
|
@@ -3017,12 +3018,12 @@ var pt = {
|
|
|
3017
3018
|
backgroundInteractive: "data-background-interactive",
|
|
3018
3019
|
preload: "data-preload"
|
|
3019
3020
|
};
|
|
3020
|
-
function
|
|
3021
|
+
function ht(e) {
|
|
3021
3022
|
return JSON.stringify(Object.entries(e).filter(([e]) => e.startsWith("data-")).sort(([e], [t]) => e.localeCompare(t)));
|
|
3022
3023
|
}
|
|
3023
|
-
function
|
|
3024
|
+
function gt(e, t) {
|
|
3024
3025
|
let n = { ...e }, r = n;
|
|
3025
|
-
for (let [e, n] of Object.entries(
|
|
3026
|
+
for (let [e, n] of Object.entries(mt)) {
|
|
3026
3027
|
if (r[n] !== void 0) continue;
|
|
3027
3028
|
let i = t[e];
|
|
3028
3029
|
if (i !== void 0) {
|
|
@@ -3035,8 +3036,8 @@ function ht(e, t) {
|
|
|
3035
3036
|
}
|
|
3036
3037
|
return n;
|
|
3037
3038
|
}
|
|
3038
|
-
function
|
|
3039
|
-
let
|
|
3039
|
+
function _t({ children: e, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: d, backgroundOpacity: f, backgroundTransition: p, visibility: m, autoAnimate: h, autoAnimateId: g, autoAnimateRestart: _, autoAnimateUnmatched: v, autoAnimateEasing: y, autoAnimateDuration: b, autoAnimateDelay: x, transition: S, transitionSpeed: C, autoSlide: ee, notes: w, backgroundInteractive: T, preload: te, ...E }) {
|
|
3040
|
+
let D = (0, j.useContext)(ot), O = (0, j.useRef)(null), k = (0, j.useRef)(null), ne = (0, j.useRef)(null), re = gt(E, {
|
|
3040
3041
|
background: t,
|
|
3041
3042
|
backgroundImage: n,
|
|
3042
3043
|
backgroundVideo: r,
|
|
@@ -3060,35 +3061,35 @@ function gt({ children: e, background: t, backgroundImage: n, backgroundVideo: r
|
|
|
3060
3061
|
autoAnimateDelay: x,
|
|
3061
3062
|
transition: S,
|
|
3062
3063
|
transitionSpeed: C,
|
|
3063
|
-
autoSlide:
|
|
3064
|
-
notes:
|
|
3065
|
-
backgroundInteractive:
|
|
3066
|
-
preload:
|
|
3067
|
-
}),
|
|
3068
|
-
return (0,
|
|
3069
|
-
let e =
|
|
3070
|
-
if (!
|
|
3071
|
-
if (
|
|
3072
|
-
|
|
3064
|
+
autoSlide: ee,
|
|
3065
|
+
notes: w,
|
|
3066
|
+
backgroundInteractive: T,
|
|
3067
|
+
preload: te
|
|
3068
|
+
}), A = ht(re);
|
|
3069
|
+
return (0, j.useLayoutEffect)(() => {
|
|
3070
|
+
let e = O.current;
|
|
3071
|
+
if (!D || !e || typeof D.syncSlide != "function") return;
|
|
3072
|
+
if (k.current !== D) {
|
|
3073
|
+
k.current = D, ne.current = A;
|
|
3073
3074
|
return;
|
|
3074
3075
|
}
|
|
3075
|
-
if (
|
|
3076
|
-
let t =
|
|
3077
|
-
t && n || (
|
|
3078
|
-
}, [
|
|
3079
|
-
ref:
|
|
3080
|
-
...
|
|
3076
|
+
if (A === "[]") return;
|
|
3077
|
+
let t = k.current === D, n = ne.current === A;
|
|
3078
|
+
t && n || (D.syncSlide(e), k.current = D, ne.current = A);
|
|
3079
|
+
}, [D, A]), /* @__PURE__ */ (0, G.jsx)("section", {
|
|
3080
|
+
ref: O,
|
|
3081
|
+
...re,
|
|
3081
3082
|
children: e
|
|
3082
3083
|
});
|
|
3083
3084
|
}
|
|
3084
|
-
function
|
|
3085
|
-
return /* @__PURE__ */ (0,
|
|
3085
|
+
function vt({ className: e, style: t, children: n }) {
|
|
3086
|
+
return /* @__PURE__ */ (0, G.jsx)("section", {
|
|
3086
3087
|
className: e,
|
|
3087
3088
|
style: t,
|
|
3088
3089
|
children: n
|
|
3089
3090
|
});
|
|
3090
3091
|
}
|
|
3091
|
-
function
|
|
3092
|
+
function yt() {
|
|
3092
3093
|
return {
|
|
3093
3094
|
async: !1,
|
|
3094
3095
|
breaks: !1,
|
|
@@ -3102,11 +3103,11 @@ function vt() {
|
|
|
3102
3103
|
walkTokens: null
|
|
3103
3104
|
};
|
|
3104
3105
|
}
|
|
3105
|
-
var
|
|
3106
|
-
function
|
|
3107
|
-
|
|
3106
|
+
var bt = yt();
|
|
3107
|
+
function xt(e) {
|
|
3108
|
+
bt = e;
|
|
3108
3109
|
}
|
|
3109
|
-
var
|
|
3110
|
+
var K = { exec: () => null };
|
|
3110
3111
|
function q(e, t = "") {
|
|
3111
3112
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
3112
3113
|
replace: (e, t) => {
|
|
@@ -3192,7 +3193,7 @@ var St = (() => {
|
|
|
3192
3193
|
list: Ft,
|
|
3193
3194
|
newline: Ct,
|
|
3194
3195
|
paragraph: zt,
|
|
3195
|
-
table:
|
|
3196
|
+
table: K,
|
|
3196
3197
|
text: Mt
|
|
3197
3198
|
}, Vt = q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Y).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", It).getRegex(), Ht = {
|
|
3198
3199
|
...Bt,
|
|
@@ -3204,19 +3205,19 @@ var St = (() => {
|
|
|
3204
3205
|
html: q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Lt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
3205
3206
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
3206
3207
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
3207
|
-
fences:
|
|
3208
|
+
fences: K,
|
|
3208
3209
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
3209
3210
|
paragraph: q(jt).replace("hr", Y).replace("heading", " *#{1,6} *[^\n]").replace("lheading", kt).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
3210
3211
|
}, Wt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Gt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Kt = /^( {2,}|\\)\n(?!\s*$)/, qt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Jt = /[\p{P}\p{S}]/u, Yt = /[\s\p{P}\p{S}]/u, Xt = /[^\s\p{P}\p{S}]/u, Zt = q(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Yt).getRegex(), Qt = /(?!~)[\p{P}\p{S}]/u, $t = /(?!~)[\s\p{P}\p{S}]/u, en = /(?:[^\s\p{P}\p{S}]|~)/u, tn = q(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", St ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), nn = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, rn = q(nn, "u").replace(/punct/g, Jt).getRegex(), an = q(nn, "u").replace(/punct/g, Qt).getRegex(), on = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", sn = q(on, "gu").replace(/notPunctSpace/g, Xt).replace(/punctSpace/g, Yt).replace(/punct/g, Jt).getRegex(), cn = q(on, "gu").replace(/notPunctSpace/g, en).replace(/punctSpace/g, $t).replace(/punct/g, Qt).getRegex(), ln = q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Xt).replace(/punctSpace/g, Yt).replace(/punct/g, Jt).getRegex(), un = q(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Jt).getRegex(), dn = q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Xt).replace(/punctSpace/g, Yt).replace(/punct/g, Jt).getRegex(), fn = q(/\\(punct)/, "gu").replace(/punct/g, Jt).getRegex(), pn = q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), mn = q(Lt).replace("(?:-->|$)", "-->").getRegex(), hn = q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", mn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, _n = q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vn = q(/^!?\[(label)\]\[(ref)\]/).replace("label", gn).replace("ref", Nt).getRegex(), yn = q(/^!?\[(ref)\](?:\[\])?/).replace("ref", Nt).getRegex(), bn = q("reflink|nolink(?!\\()", "g").replace("reflink", vn).replace("nolink", yn).getRegex(), xn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Sn = {
|
|
3211
|
-
_backpedal:
|
|
3212
|
+
_backpedal: K,
|
|
3212
3213
|
anyPunctuation: fn,
|
|
3213
3214
|
autolink: pn,
|
|
3214
3215
|
blockSkip: tn,
|
|
3215
3216
|
br: Kt,
|
|
3216
3217
|
code: Gt,
|
|
3217
|
-
del:
|
|
3218
|
-
delLDelim:
|
|
3219
|
-
delRDelim:
|
|
3218
|
+
del: K,
|
|
3219
|
+
delLDelim: K,
|
|
3220
|
+
delRDelim: K,
|
|
3220
3221
|
emStrongLDelim: rn,
|
|
3221
3222
|
emStrongRDelimAst: sn,
|
|
3222
3223
|
emStrongRDelimUnd: ln,
|
|
@@ -3228,7 +3229,7 @@ var St = (() => {
|
|
|
3228
3229
|
reflinkSearch: bn,
|
|
3229
3230
|
tag: hn,
|
|
3230
3231
|
text: qt,
|
|
3231
|
-
url:
|
|
3232
|
+
url: K
|
|
3232
3233
|
}, Cn = {
|
|
3233
3234
|
...Sn,
|
|
3234
3235
|
link: q(/^!?\[(label)\]\((.*?)\)/).replace("label", gn).getRegex(),
|
|
@@ -3347,7 +3348,7 @@ var Rn = class {
|
|
|
3347
3348
|
rules;
|
|
3348
3349
|
lexer;
|
|
3349
3350
|
constructor(e) {
|
|
3350
|
-
this.options = e ||
|
|
3351
|
+
this.options = e || bt;
|
|
3351
3352
|
}
|
|
3352
3353
|
space(e) {
|
|
3353
3354
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -3803,7 +3804,7 @@ ${c}` : c;
|
|
|
3803
3804
|
inlineQueue;
|
|
3804
3805
|
tokenizer;
|
|
3805
3806
|
constructor(e) {
|
|
3806
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
3807
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || bt, this.options.tokenizer = this.options.tokenizer || new Rn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
3807
3808
|
inLink: !1,
|
|
3808
3809
|
inRawBlock: !1,
|
|
3809
3810
|
top: !0
|
|
@@ -4013,7 +4014,7 @@ ${c}` : c;
|
|
|
4013
4014
|
options;
|
|
4014
4015
|
parser;
|
|
4015
4016
|
constructor(e) {
|
|
4016
|
-
this.options = e ||
|
|
4017
|
+
this.options = e || bt;
|
|
4017
4018
|
}
|
|
4018
4019
|
space(e) {
|
|
4019
4020
|
return "";
|
|
@@ -4152,7 +4153,7 @@ ${e}</tr>
|
|
|
4152
4153
|
renderer;
|
|
4153
4154
|
textRenderer;
|
|
4154
4155
|
constructor(e) {
|
|
4155
|
-
this.options = e ||
|
|
4156
|
+
this.options = e || bt, this.options.renderer = this.options.renderer || new Bn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Vn();
|
|
4156
4157
|
}
|
|
4157
4158
|
static parse(t, n) {
|
|
4158
4159
|
return new e(n).parse(t);
|
|
@@ -4302,7 +4303,7 @@ ${e}</tr>
|
|
|
4302
4303
|
options;
|
|
4303
4304
|
block;
|
|
4304
4305
|
constructor(e) {
|
|
4305
|
-
this.options = e ||
|
|
4306
|
+
this.options = e || bt;
|
|
4306
4307
|
}
|
|
4307
4308
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
4308
4309
|
"preprocess",
|
|
@@ -4334,7 +4335,7 @@ ${e}</tr>
|
|
|
4334
4335
|
return this.block ? Hn.parse : Hn.parseInline;
|
|
4335
4336
|
}
|
|
4336
4337
|
}, Wn = new class {
|
|
4337
|
-
defaults =
|
|
4338
|
+
defaults = yt();
|
|
4338
4339
|
options = this.setOptions;
|
|
4339
4340
|
parse = this.parseMarkdown(!0);
|
|
4340
4341
|
parseInline = this.parseMarkdown(!1);
|
|
@@ -4513,9 +4514,9 @@ function X(e, t) {
|
|
|
4513
4514
|
return Wn.parse(e, t);
|
|
4514
4515
|
}
|
|
4515
4516
|
X.options = X.setOptions = function(e) {
|
|
4516
|
-
return Wn.setOptions(e), X.defaults = Wn.defaults,
|
|
4517
|
-
}, X.getDefaults =
|
|
4518
|
-
return Wn.use(...e), X.defaults = Wn.defaults,
|
|
4517
|
+
return Wn.setOptions(e), X.defaults = Wn.defaults, xt(X.defaults), X;
|
|
4518
|
+
}, X.getDefaults = yt, X.defaults = bt, X.use = function(...e) {
|
|
4519
|
+
return Wn.use(...e), X.defaults = Wn.defaults, xt(X.defaults), X;
|
|
4519
4520
|
}, X.walkTokens = function(e, t) {
|
|
4520
4521
|
return Wn.walkTokens(e, t);
|
|
4521
4522
|
}, X.parseInline = Wn.parseInline, X.Parser = Hn, X.parser = Hn.parse, X.Renderer = Bn, X.TextRenderer = Vn, X.Lexer = zn, X.lexer = zn.lex, X.Tokenizer = Rn, X.Hooks = Un, X.parse = X, X.options, X.setOptions, X.use, X.walkTokens, X.parseInline, Hn.parse, zn.lex;
|
|
@@ -4533,18 +4534,18 @@ function qn({ animation: e, index: t, as: n, asChild: r, className: i, style: a,
|
|
|
4533
4534
|
if (r) {
|
|
4534
4535
|
let e;
|
|
4535
4536
|
try {
|
|
4536
|
-
e =
|
|
4537
|
+
e = j.Children.only(o);
|
|
4537
4538
|
} catch {
|
|
4538
4539
|
throw Error("Fragment with asChild expects exactly one React element child.");
|
|
4539
4540
|
}
|
|
4540
|
-
if (!(0,
|
|
4541
|
+
if (!(0, j.isValidElement)(e) || e.type === j.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
|
|
4541
4542
|
let n = {
|
|
4542
4543
|
className: Gn(e.props.className, s),
|
|
4543
4544
|
style: Kn(e.props.style, a)
|
|
4544
4545
|
};
|
|
4545
|
-
return t !== void 0 && (n["data-fragment-index"] = t), (0,
|
|
4546
|
+
return t !== void 0 && (n["data-fragment-index"] = t), (0, j.cloneElement)(e, n);
|
|
4546
4547
|
}
|
|
4547
|
-
return /* @__PURE__ */ (0,
|
|
4548
|
+
return /* @__PURE__ */ (0, G.jsx)(n ?? "span", {
|
|
4548
4549
|
className: s,
|
|
4549
4550
|
style: a,
|
|
4550
4551
|
"data-fragment-index": t,
|
|
@@ -4563,7 +4564,7 @@ function Zn(e) {
|
|
|
4563
4564
|
return t ? t.getBoundingClientRect().top - e.getBoundingClientRect().top + e.scrollTop : e.scrollHeight;
|
|
4564
4565
|
}
|
|
4565
4566
|
function Qn(e, t) {
|
|
4566
|
-
let n = (0,
|
|
4567
|
+
let n = (0, M.c)(4), [r, i] = (0, j.useState)(!1), a, o;
|
|
4567
4568
|
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
4568
4569
|
let n = e.current, r = t.current;
|
|
4569
4570
|
if (!n || !r) return;
|
|
@@ -4587,43 +4588,43 @@ function Qn(e, t) {
|
|
|
4587
4588
|
}), n.addEventListener("scroll", o, { passive: !0 }), () => {
|
|
4588
4589
|
cancelAnimationFrame(a), s.disconnect(), c?.disconnect(), n.removeEventListener("scroll", o);
|
|
4589
4590
|
};
|
|
4590
|
-
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0,
|
|
4591
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, j.useEffect)(a, o), r;
|
|
4591
4592
|
}
|
|
4592
4593
|
var $n = (e) => {
|
|
4593
|
-
let t = (0,
|
|
4594
|
+
let t = (0, M.c)(6), { className: n } = e, i;
|
|
4594
4595
|
t[0] === n ? i = t[1] : (i = r("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col items-center", "animate-in fade-in-0 duration-200", n), t[0] = n, t[1] = i);
|
|
4595
4596
|
let a;
|
|
4596
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0,
|
|
4597
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, G.jsx)("div", { className: "h-16 w-full bg-linear-to-t from-background via-background/80 to-transparent" }), t[2] = a) : a = t[2];
|
|
4597
4598
|
let o;
|
|
4598
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0,
|
|
4599
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4599
4600
|
className: "absolute bottom-3 flex items-center gap-1 rounded-full border border-border/60 bg-background/90 px-2.5 py-1 text-xs text-muted-foreground shadow-sm backdrop-blur-sm",
|
|
4600
|
-
children: [/* @__PURE__ */ (0,
|
|
4601
|
+
children: [/* @__PURE__ */ (0, G.jsx)(C, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Scroll for more" })]
|
|
4601
4602
|
}), t[3] = o) : o = t[3];
|
|
4602
4603
|
let s;
|
|
4603
|
-
return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0,
|
|
4604
|
+
return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4604
4605
|
className: i,
|
|
4605
4606
|
"data-testid": "slide-scroll-hint",
|
|
4606
4607
|
"aria-hidden": !0,
|
|
4607
4608
|
children: [a, o]
|
|
4608
4609
|
}), t[4] = i, t[5] = s), s;
|
|
4609
4610
|
}, er = (e) => {
|
|
4610
|
-
let t = (0,
|
|
4611
|
+
let t = (0, M.c)(10), { children: n, className: i } = e, a = (0, j.useRef)(null), o = (0, j.useRef)(null), s = Qn(a, o), c;
|
|
4611
4612
|
t[0] === i ? c = t[1] : (c = r("relative h-full w-full", i), t[0] = i, t[1] = c);
|
|
4612
4613
|
let l;
|
|
4613
|
-
t[2] === n ? l = t[3] : (l = /* @__PURE__ */ (0,
|
|
4614
|
+
t[2] === n ? l = t[3] : (l = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4614
4615
|
ref: a,
|
|
4615
4616
|
className: "h-full w-full overflow-auto",
|
|
4616
4617
|
"data-testid": "slide-scroll-container",
|
|
4617
|
-
children: /* @__PURE__ */ (0,
|
|
4618
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4618
4619
|
ref: o,
|
|
4619
4620
|
className: "flex w-full min-h-full",
|
|
4620
4621
|
children: n
|
|
4621
4622
|
})
|
|
4622
4623
|
}), t[2] = n, t[3] = l);
|
|
4623
4624
|
let u;
|
|
4624
|
-
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0,
|
|
4625
|
+
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, G.jsx)($n, {}), t[4] = s, t[5] = u);
|
|
4625
4626
|
let d;
|
|
4626
|
-
return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0,
|
|
4627
|
+
return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4627
4628
|
className: c,
|
|
4628
4629
|
children: [l, u]
|
|
4629
4630
|
}), t[6] = c, t[7] = l, t[8] = u, t[9] = d) : d = t[9], d;
|
|
@@ -4739,7 +4740,7 @@ function or(e, t) {
|
|
|
4739
4740
|
//#endregion
|
|
4740
4741
|
//#region src/core/islands/stubs/slide-cell-view.tsx
|
|
4741
4742
|
var sr = (e) => (n.warn("SlideCellView islands stub rendered; this should never happen in a read-only embed."), null), cr = (e) => (n.warn("SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed."), null), lr = 300, ur = (e) => {
|
|
4742
|
-
let t = (0,
|
|
4743
|
+
let t = (0, M.c)(25), { layout: n, setLayout: a, cellId: o, className: s } = e, c = o ? n.cells.get(o)?.speakerNotes ?? "" : "", [l, u] = (0, j.useState)(c), d = (0, j.useRef)(!1), f;
|
|
4743
4744
|
t[0] !== n || t[1] !== a ? (f = (e, t) => {
|
|
4744
4745
|
d.current = !1;
|
|
4745
4746
|
let r = n.cells.get(e);
|
|
@@ -4753,7 +4754,7 @@ var sr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
|
|
|
4753
4754
|
cells: i
|
|
4754
4755
|
});
|
|
4755
4756
|
}, t[0] = n, t[1] = a, t[2] = f) : f = t[2];
|
|
4756
|
-
let p =
|
|
4757
|
+
let p = E(f), m = ee(p, lr), h = (0, j.useRef)(o), g, _;
|
|
4757
4758
|
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !== m ? (g = () => {
|
|
4758
4759
|
if (h.current !== o) {
|
|
4759
4760
|
m.flush(), d.current = !1, u(c), h.current = o;
|
|
@@ -4765,11 +4766,11 @@ var sr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
|
|
|
4765
4766
|
c,
|
|
4766
4767
|
l,
|
|
4767
4768
|
m
|
|
4768
|
-
], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0,
|
|
4769
|
+
], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0, j.useEffect)(g, _);
|
|
4769
4770
|
let v, y;
|
|
4770
4771
|
t[9] === m ? (v = t[10], y = t[11]) : (v = () => () => {
|
|
4771
4772
|
m.flush();
|
|
4772
|
-
}, y = [m], t[9] = m, t[10] = v, t[11] = y), (0,
|
|
4773
|
+
}, y = [m], t[9] = m, t[10] = v, t[11] = y), (0, j.useEffect)(v, y);
|
|
4773
4774
|
let b;
|
|
4774
4775
|
t[12] !== o || t[13] !== m ? (b = (e) => {
|
|
4775
4776
|
u(e), o && (d.current = !0, m(o, e));
|
|
@@ -4777,32 +4778,32 @@ var sr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
|
|
|
4777
4778
|
let x = b, S;
|
|
4778
4779
|
t[15] === s ? S = t[16] : (S = r("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t", s), t[15] = s, t[16] = S);
|
|
4779
4780
|
let C;
|
|
4780
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0,
|
|
4781
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0, G.jsxs)("header", {
|
|
4781
4782
|
className: "flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
4782
|
-
children: [/* @__PURE__ */ (0,
|
|
4783
|
+
children: [/* @__PURE__ */ (0, G.jsx)(A, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Speaker notes" })]
|
|
4783
4784
|
}), t[17] = C) : C = t[17];
|
|
4784
4785
|
let w;
|
|
4785
|
-
t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0,
|
|
4786
|
+
t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4786
4787
|
className: "flex-1 min-h-0 p-2",
|
|
4787
|
-
children: o ? /* @__PURE__ */ (0,
|
|
4788
|
+
children: o ? /* @__PURE__ */ (0, G.jsx)("textarea", {
|
|
4788
4789
|
value: l,
|
|
4789
4790
|
onChange: (e) => x(e.target.value),
|
|
4790
4791
|
onClick: i.stopPropagation(),
|
|
4791
4792
|
placeholder: "Add notes for this slide. Visible to you in speaker view (press S during presentation).",
|
|
4792
4793
|
className: r("h-full w-full resize-none rounded-sm border border-input/25 bg-background", "px-3 py-2 text-sm leading-relaxed text-foreground placeholder:text-muted-foreground", "ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent"),
|
|
4793
4794
|
"aria-label": "Speaker notes for the current slide"
|
|
4794
|
-
}) : /* @__PURE__ */ (0,
|
|
4795
|
+
}) : /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4795
4796
|
className: "h-full flex items-center justify-center text-xs text-muted-foreground",
|
|
4796
4797
|
children: "Select a slide to add notes."
|
|
4797
4798
|
})
|
|
4798
4799
|
}), t[18] = o, t[19] = l, t[20] = x, t[21] = w) : w = t[21];
|
|
4799
|
-
let
|
|
4800
|
-
return t[22] !== S || t[23] !== w ? (
|
|
4800
|
+
let T;
|
|
4801
|
+
return t[22] !== S || t[23] !== w ? (T = /* @__PURE__ */ (0, G.jsxs)("section", {
|
|
4801
4802
|
className: S,
|
|
4802
4803
|
"aria-label": "Speaker notes",
|
|
4803
4804
|
onKeyDown: dr,
|
|
4804
4805
|
children: [C, w]
|
|
4805
|
-
}), t[22] = S, t[23] = w, t[24] =
|
|
4806
|
+
}), t[22] = S, t[23] = w, t[24] = T) : T = t[24], T;
|
|
4806
4807
|
};
|
|
4807
4808
|
function dr(e) {
|
|
4808
4809
|
return e.stopPropagation();
|
|
@@ -6365,12 +6366,12 @@ function Xi(e) {
|
|
|
6365
6366
|
return Ji.has(e.key) ? 1 : Yi.has(e.key) ? -1 : 0;
|
|
6366
6367
|
}
|
|
6367
6368
|
function Zi(e) {
|
|
6368
|
-
let t = (0,
|
|
6369
|
+
let t = (0, M.c)(4), n;
|
|
6369
6370
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
6370
6371
|
width: 960,
|
|
6371
6372
|
height: 540
|
|
6372
6373
|
}, t[0] = n) : n = t[0];
|
|
6373
|
-
let [r, i] = (0,
|
|
6374
|
+
let [r, i] = (0, j.useState)(n), a, o;
|
|
6374
6375
|
return t[1] === e ? (a = t[2], o = t[3]) : (a = () => {
|
|
6375
6376
|
let t = e.current;
|
|
6376
6377
|
if (!t) return;
|
|
@@ -6384,19 +6385,19 @@ function Zi(e) {
|
|
|
6384
6385
|
});
|
|
6385
6386
|
});
|
|
6386
6387
|
return n.observe(t), () => n.disconnect();
|
|
6387
|
-
}, o = [e], t[1] = e, t[2] = a, t[3] = o), (0,
|
|
6388
|
+
}, o = [e], t[1] = e, t[2] = a, t[3] = o), (0, j.useEffect)(a, o), r;
|
|
6388
6389
|
}
|
|
6389
6390
|
var Qi = (e) => {
|
|
6390
|
-
let t = (0,
|
|
6391
|
+
let t = (0, M.c)(6), { text: n } = e, r, i;
|
|
6391
6392
|
if (t[0] !== n) {
|
|
6392
6393
|
let e = n.split("\n");
|
|
6393
6394
|
r = "notes", i = e.map((t, n) => {
|
|
6394
6395
|
let r = n === e.length - 1;
|
|
6395
|
-
return t === "---" ? /* @__PURE__ */ (0,
|
|
6396
|
+
return t === "---" ? /* @__PURE__ */ (0, G.jsx)("hr", {}, n) : /* @__PURE__ */ (0, G.jsxs)(j.Fragment, { children: [t, !r && /* @__PURE__ */ (0, G.jsx)("br", {})] }, n);
|
|
6396
6397
|
}), t[0] = n, t[1] = r, t[2] = i;
|
|
6397
6398
|
} else r = t[1], i = t[2];
|
|
6398
6399
|
let a;
|
|
6399
|
-
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ (0,
|
|
6400
|
+
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ (0, G.jsx)("aside", {
|
|
6400
6401
|
className: r,
|
|
6401
6402
|
children: i
|
|
6402
6403
|
}), t[3] = r, t[4] = i, t[5] = a) : a = t[5], a;
|
|
@@ -6410,14 +6411,14 @@ function ea(e) {
|
|
|
6410
6411
|
return n.has(t.id) || t.id === r ? "skip" : i.get(t.id)?.type ?? "slide";
|
|
6411
6412
|
}
|
|
6412
6413
|
function ta(e) {
|
|
6413
|
-
let t = (0,
|
|
6414
|
+
let t = (0, M.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e, a = n?.id ?? null, o;
|
|
6414
6415
|
t[0] !== n || t[1] !== i ? (o = n != null && i.has(n.id), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
6415
6416
|
let s = o, c = n != null && r.get(n.id)?.type === "skip" || s, l;
|
|
6416
6417
|
t[3] === a ? l = t[4] : (l = {
|
|
6417
6418
|
activeCellId: a,
|
|
6418
6419
|
cellId: null
|
|
6419
6420
|
}, t[3] = a, t[4] = l);
|
|
6420
|
-
let [u, d] = (0,
|
|
6421
|
+
let [u, d] = (0, j.useState)(l), f = u.cellId;
|
|
6421
6422
|
u.activeCellId === a ? s && f !== a && (f = a, d({
|
|
6422
6423
|
activeCellId: a,
|
|
6423
6424
|
cellId: f
|
|
@@ -6430,14 +6431,14 @@ function ta(e) {
|
|
|
6430
6431
|
cellId: m,
|
|
6431
6432
|
show: !0
|
|
6432
6433
|
}, t[5] = m, t[6] = h);
|
|
6433
|
-
let [g, _] = (0,
|
|
6434
|
+
let [g, _] = (0, j.useState)(h), v = g.show;
|
|
6434
6435
|
g.cellId !== m && (v = !0, _({
|
|
6435
6436
|
cellId: m,
|
|
6436
6437
|
show: !0
|
|
6437
6438
|
}));
|
|
6438
6439
|
let y;
|
|
6439
6440
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(na), t[7] = y) : y = t[7];
|
|
6440
|
-
let b =
|
|
6441
|
+
let b = E(y), x = c || p ? n ?? null : null, S;
|
|
6441
6442
|
return t[8] !== m || t[9] !== v || t[10] !== p || t[11] !== s || t[12] !== x || t[13] !== b ? (S = {
|
|
6442
6443
|
parkedPreviewCell: x,
|
|
6443
6444
|
isHeldEdit: p,
|
|
@@ -6461,388 +6462,388 @@ function ra(e) {
|
|
|
6461
6462
|
}
|
|
6462
6463
|
}
|
|
6463
6464
|
var ia = (e) => {
|
|
6464
|
-
let t = (0,
|
|
6465
|
-
t[0] !== n.id || t[1] !== n.name ? (r =
|
|
6465
|
+
let t = (0, M.c)(13), { cell: n } = e, r;
|
|
6466
|
+
t[0] !== n.id || t[1] !== n.name ? (r = x(n.id, n.name), t[0] = n.id, t[1] = n.name, t[2] = r) : r = t[2];
|
|
6466
6467
|
let i = n.id, a = n.status, o = n.output, s;
|
|
6467
|
-
t[3] === n ? s = t[4] : (s =
|
|
6468
|
+
t[3] === n ? s = t[4] : (s = u(n, !1), t[3] = n, t[4] = s);
|
|
6468
6469
|
let c;
|
|
6469
|
-
t[5] !== n.id || t[6] !== n.output || t[7] !== n.status || t[8] !== s ? (c = /* @__PURE__ */ (0,
|
|
6470
|
+
t[5] !== n.id || t[6] !== n.output || t[7] !== n.status || t[8] !== s ? (c = /* @__PURE__ */ (0, G.jsx)(S, {
|
|
6470
6471
|
cellId: i,
|
|
6471
6472
|
status: a,
|
|
6472
6473
|
output: o,
|
|
6473
6474
|
stale: s
|
|
6474
6475
|
}), t[5] = n.id, t[6] = n.output, t[7] = n.status, t[8] = s, t[9] = c) : c = t[9];
|
|
6475
6476
|
let l;
|
|
6476
|
-
return t[10] !== r || t[11] !== c ? (l = /* @__PURE__ */ (0,
|
|
6477
|
+
return t[10] !== r || t[11] !== c ? (l = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6477
6478
|
className: "flex flex-col",
|
|
6478
6479
|
...r,
|
|
6479
6480
|
children: c
|
|
6480
6481
|
}), t[10] = r, t[11] = c, t[12] = l) : l = t[12], l;
|
|
6481
6482
|
}, aa = (e) => {
|
|
6482
|
-
let t = (0,
|
|
6483
|
+
let t = (0, M.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e, s, c, l, u, d, f;
|
|
6483
6484
|
if (t[0] !== o || t[1] !== i || t[2] !== r || t[3] !== a || t[4] !== n) {
|
|
6484
6485
|
let { slideLevel: e, cumulativeByBlock: p } = mr(n, a);
|
|
6485
6486
|
l = e;
|
|
6486
6487
|
let m = n.blocks.some((e) => e.cells.some((e) => r(e.id)));
|
|
6487
|
-
c =
|
|
6488
|
-
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0,
|
|
6488
|
+
c = _t, s = er, u = m ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", d = o, f = n.blocks.map((e, t) => {
|
|
6489
|
+
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0, G.jsx)(sr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(cr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(ia, { cell: e }, e.id));
|
|
6489
6490
|
if (e.isFragment) {
|
|
6490
6491
|
let e = p.get(t);
|
|
6491
|
-
return /* @__PURE__ */ (0,
|
|
6492
|
+
return /* @__PURE__ */ (0, G.jsxs)(qn, {
|
|
6492
6493
|
as: "div",
|
|
6493
|
-
children: [n, e && /* @__PURE__ */ (0,
|
|
6494
|
+
children: [n, e && /* @__PURE__ */ (0, G.jsx)(Qi, { text: e })]
|
|
6494
6495
|
}, t);
|
|
6495
6496
|
}
|
|
6496
|
-
return /* @__PURE__ */ (0,
|
|
6497
|
+
return /* @__PURE__ */ (0, G.jsx)(j.Fragment, { children: n }, t);
|
|
6497
6498
|
}), t[0] = o, t[1] = i, t[2] = r, t[3] = a, t[4] = n, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f;
|
|
6498
6499
|
} else s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10];
|
|
6499
6500
|
let p;
|
|
6500
|
-
t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ (0,
|
|
6501
|
+
t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6501
6502
|
className: u,
|
|
6502
6503
|
style: d,
|
|
6503
6504
|
children: f
|
|
6504
6505
|
}), t[11] = u, t[12] = d, t[13] = f, t[14] = p) : p = t[14];
|
|
6505
6506
|
let m;
|
|
6506
|
-
t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0,
|
|
6507
|
+
t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0, G.jsx)(s, { children: p }), t[15] = s, t[16] = p, t[17] = m) : m = t[17];
|
|
6507
6508
|
let h;
|
|
6508
|
-
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0,
|
|
6509
|
+
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, G.jsx)(Qi, { text: l }), t[18] = l, t[19] = h);
|
|
6509
6510
|
let g;
|
|
6510
|
-
return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0,
|
|
6511
|
+
return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0, G.jsxs)(c, { children: [m, h] }), t[20] = c, t[21] = m, t[22] = h, t[23] = g) : g = t[23], g;
|
|
6511
6512
|
};
|
|
6512
6513
|
function oa(e) {
|
|
6513
6514
|
let { isNoOutputPreview: t, isEditable: n, showCode: r } = e;
|
|
6514
6515
|
return t && n || r;
|
|
6515
6516
|
}
|
|
6516
6517
|
var sa = (e) => {
|
|
6517
|
-
let t = (0,
|
|
6518
|
+
let t = (0, M.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
|
|
6518
6519
|
if (oa({
|
|
6519
6520
|
isNoOutputPreview: r,
|
|
6520
6521
|
isEditable: i,
|
|
6521
6522
|
showCode: a
|
|
6522
6523
|
})) {
|
|
6523
6524
|
let e;
|
|
6524
|
-
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0,
|
|
6525
|
+
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0, G.jsx)(sr, { cell: n }) : /* @__PURE__ */ (0, G.jsx)(cr, { cell: n }), t[0] = n, t[1] = i, t[2] = e) : e = t[2], e;
|
|
6525
6526
|
}
|
|
6526
6527
|
let o;
|
|
6527
|
-
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0,
|
|
6528
|
+
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, G.jsx)(ia, { cell: n }), t[3] = n, t[4] = o), o;
|
|
6528
6529
|
}, ca = (e) => {
|
|
6529
|
-
let n = (0,
|
|
6530
|
-
n[0] !==
|
|
6531
|
-
let
|
|
6532
|
-
n[3] ===
|
|
6533
|
-
let
|
|
6534
|
-
n[5] ===
|
|
6535
|
-
let
|
|
6536
|
-
n[7] !==
|
|
6537
|
-
let
|
|
6538
|
-
n[10] !==
|
|
6539
|
-
activeCell:
|
|
6530
|
+
let n = (0, M.c)(160), { slideCells: o, layout: s, setLayout: c, noOutputIds: u, activeIndex: x, onSlideChange: S, mode: C, configWidth: ee, isEditable: T } = e, A = T !== void 0 && T, ie = (0, j.useRef)(null), N = (0, j.useRef)(null), { width: ae, height: oe } = Zi(ie), se = te() != null, P = D(w), F = D(ne).kind, ce = D(k), le = F !== "wasm" || ce, I;
|
|
6531
|
+
n[0] !== P || n[1] !== F ? (I = P || !h(F) ? [] : [Ui], n[0] = P, n[1] = F, n[2] = I) : I = n[2];
|
|
6532
|
+
let ue = I, [de, fe] = (0, j.useState)(la), pe = re(o), me;
|
|
6533
|
+
n[3] === pe ? me = n[4] : (me = !O() && pe, n[3] = pe, n[4] = me);
|
|
6534
|
+
let he = me, ge;
|
|
6535
|
+
n[5] === P ? ge = n[6] : (ge = b(P, window.location.search), n[5] = P, n[6] = ge);
|
|
6536
|
+
let L = !ge && he, _e = x == null ? void 0 : o[x], ve;
|
|
6537
|
+
n[7] !== _e || n[8] !== o ? (ve = _e ?? o.at(0), n[7] = _e, n[8] = o, n[9] = ve) : ve = n[9];
|
|
6538
|
+
let ye = ve, be;
|
|
6539
|
+
n[10] !== _e || n[11] !== s.cells || n[12] !== u ? (be = {
|
|
6540
|
+
activeCell: _e,
|
|
6540
6541
|
slideConfigs: s.cells,
|
|
6541
|
-
noOutputIds:
|
|
6542
|
-
}, n[10] =
|
|
6543
|
-
let { parkedPreviewCell:
|
|
6544
|
-
n[14] !==
|
|
6542
|
+
noOutputIds: u
|
|
6543
|
+
}, n[10] = _e, n[11] = s.cells, n[12] = u, n[13] = be) : be = n[13];
|
|
6544
|
+
let { parkedPreviewCell: R, isHeldEdit: xe, isNoOutputPreview: z, heldEditCellId: Se, heldShowsCode: Ce, toggleHeldShowsCode: we } = ta(be), Te;
|
|
6545
|
+
n[14] !== he || n[15] !== s.cells || n[16] !== de ? (Te = (e) => $i({
|
|
6545
6546
|
cells: s.cells,
|
|
6546
6547
|
cellId: e,
|
|
6547
|
-
showCodeOverrides:
|
|
6548
|
-
codeAvailable:
|
|
6549
|
-
}), n[14] =
|
|
6550
|
-
let
|
|
6551
|
-
n[18] !==
|
|
6552
|
-
let
|
|
6553
|
-
n[23] !==
|
|
6554
|
-
let
|
|
6555
|
-
n[27] !==
|
|
6548
|
+
showCodeOverrides: de,
|
|
6549
|
+
codeAvailable: he
|
|
6550
|
+
}), n[14] = he, n[15] = s.cells, n[16] = de, n[17] = Te) : Te = n[17];
|
|
6551
|
+
let Ee = Te, B = _e?.id ?? ye?.id, De;
|
|
6552
|
+
n[18] !== B || n[19] !== Ce || n[20] !== xe || n[21] !== Ee ? (De = xe ? Ce : Ee(B), n[18] = B, n[19] = Ce, n[20] = xe, n[21] = Ee, n[22] = De) : De = n[22];
|
|
6553
|
+
let Oe = De, ke;
|
|
6554
|
+
n[23] !== B || n[24] !== he || n[25] !== s.cells ? (ke = he && B != null && (s.cells.get(B)?.showCode ?? !1), n[23] = B, n[24] = he, n[25] = s.cells, n[26] = ke) : ke = n[26];
|
|
6555
|
+
let Ae = ke, je;
|
|
6556
|
+
n[27] !== Se || n[28] !== s.cells || n[29] !== u ? (je = (e) => ea({
|
|
6556
6557
|
cell: e,
|
|
6557
|
-
noOutputIds:
|
|
6558
|
-
heldEditCellId:
|
|
6558
|
+
noOutputIds: u,
|
|
6559
|
+
heldEditCellId: Se,
|
|
6559
6560
|
slideConfigs: s.cells
|
|
6560
|
-
}), n[27] =
|
|
6561
|
-
let
|
|
6562
|
-
n[31] !== o || n[32] !==
|
|
6561
|
+
}), n[27] = Se, n[28] = s.cells, n[29] = u, n[30] = je) : je = n[30];
|
|
6562
|
+
let Me;
|
|
6563
|
+
n[31] !== o || n[32] !== je ? (Me = tr({
|
|
6563
6564
|
cells: o,
|
|
6564
|
-
getType:
|
|
6565
|
-
}), n[31] = o, n[32] =
|
|
6566
|
-
let
|
|
6567
|
-
n[34] !==
|
|
6568
|
-
composition:
|
|
6565
|
+
getType: je
|
|
6566
|
+
}), n[31] = o, n[32] = je, n[33] = Me) : Me = n[33];
|
|
6567
|
+
let Ne = Me, Pe;
|
|
6568
|
+
n[34] !== Ne || n[35] !== o ? (Pe = nr({
|
|
6569
|
+
composition: Ne,
|
|
6569
6570
|
cells: o,
|
|
6570
6571
|
getId: ua
|
|
6571
|
-
}), n[34] =
|
|
6572
|
-
let { cellToTarget:
|
|
6573
|
-
n[37] ===
|
|
6574
|
-
let
|
|
6575
|
-
n[39] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6576
|
-
let
|
|
6577
|
-
n[40] !==
|
|
6572
|
+
}), n[34] = Ne, n[35] = o, n[36] = Pe) : Pe = n[36];
|
|
6573
|
+
let { cellToTarget: Fe, targetToCellIndex: Ie } = Pe, Le = s.deck?.transition ?? "slide", Re = s.deck?.verticalAlign, ze;
|
|
6574
|
+
n[37] === Re ? ze = n[38] : (ze = ra(Re), n[37] = Re, n[38] = ze);
|
|
6575
|
+
let Be = ze, Ve;
|
|
6576
|
+
n[39] === Symbol.for("react.memo_cache_sentinel") ? (Ve = v(window.location.href), n[39] = Ve) : Ve = n[39];
|
|
6577
|
+
let He = Ve, V;
|
|
6578
|
+
n[40] !== Le || n[41] !== oe || n[42] !== ae ? (V = {
|
|
6578
6579
|
embedded: !0,
|
|
6579
|
-
width:
|
|
6580
|
-
height:
|
|
6580
|
+
width: ae,
|
|
6581
|
+
height: oe,
|
|
6581
6582
|
center: !1,
|
|
6582
6583
|
minScale: .2,
|
|
6583
6584
|
maxScale: 2,
|
|
6584
|
-
transition:
|
|
6585
|
+
transition: Le,
|
|
6585
6586
|
keyboardCondition: da,
|
|
6586
|
-
url:
|
|
6587
|
+
url: He,
|
|
6587
6588
|
scrollActivationWidth: 0
|
|
6588
|
-
}, n[40] =
|
|
6589
|
-
let
|
|
6590
|
-
n[44] !==
|
|
6591
|
-
if (
|
|
6592
|
-
if (!
|
|
6589
|
+
}, n[40] = Le, n[41] = oe, n[42] = ae, n[43] = V) : V = n[43];
|
|
6590
|
+
let H = V, Ue;
|
|
6591
|
+
n[44] !== x || n[45] !== le || n[46] !== Fe || n[47] !== o ? (Ue = (e) => {
|
|
6592
|
+
if (x == null && window.location.hash.startsWith("#/")) {
|
|
6593
|
+
if (!le) return;
|
|
6593
6594
|
window.dispatchEvent(new HashChangeEvent("hashchange")), qi(e);
|
|
6594
6595
|
return;
|
|
6595
6596
|
}
|
|
6596
6597
|
let t = ar({
|
|
6597
|
-
activeIndex:
|
|
6598
|
+
activeIndex: x,
|
|
6598
6599
|
cells: o,
|
|
6599
|
-
cellToTarget:
|
|
6600
|
+
cellToTarget: Fe,
|
|
6600
6601
|
getId: fa
|
|
6601
6602
|
}), n = t && or(e.getIndices(), t);
|
|
6602
6603
|
n && (e.slide(n.h, n.v, n.f), qi(e));
|
|
6603
|
-
}, n[44] =
|
|
6604
|
-
let
|
|
6605
|
-
n[49] ===
|
|
6606
|
-
let e =
|
|
6607
|
-
e != null &&
|
|
6608
|
-
}, n[49] =
|
|
6609
|
-
let Ge;
|
|
6610
|
-
n[51] !== S || n[52] !== ce || n[53] !== Pe || n[54] !== Ue || n[55] !== o ? (Ge = [
|
|
6611
|
-
S,
|
|
6612
|
-
ce,
|
|
6613
|
-
Pe,
|
|
6614
|
-
o,
|
|
6615
|
-
Ue
|
|
6616
|
-
], n[51] = S, n[52] = ce, n[53] = Pe, n[54] = Ue, n[55] = o, n[56] = Ge) : Ge = n[56], (0, M.useEffect)(We, Ge);
|
|
6604
|
+
}, n[44] = x, n[45] = le, n[46] = Fe, n[47] = o, n[48] = Ue) : Ue = n[48];
|
|
6605
|
+
let We = E(Ue), Ge;
|
|
6606
|
+
n[49] === We ? Ge = n[50] : (Ge = () => {
|
|
6607
|
+
let e = N.current;
|
|
6608
|
+
e != null && We(e);
|
|
6609
|
+
}, n[49] = We, n[50] = Ge);
|
|
6617
6610
|
let Ke;
|
|
6618
|
-
n[
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6611
|
+
n[51] !== x || n[52] !== le || n[53] !== Fe || n[54] !== We || n[55] !== o ? (Ke = [
|
|
6612
|
+
x,
|
|
6613
|
+
le,
|
|
6614
|
+
Fe,
|
|
6615
|
+
o,
|
|
6616
|
+
We
|
|
6617
|
+
], n[51] = x, n[52] = le, n[53] = Fe, n[54] = We, n[55] = o, n[56] = Ke) : Ke = n[56], (0, j.useEffect)(Ge, Ke);
|
|
6618
|
+
let qe;
|
|
6619
|
+
n[57] !== B || n[58] !== Ae || n[59] !== xe || n[60] !== we ? (qe = () => {
|
|
6620
|
+
if (!(B == null || Ae)) {
|
|
6621
|
+
if (xe) {
|
|
6622
|
+
we();
|
|
6622
6623
|
return;
|
|
6623
6624
|
}
|
|
6624
|
-
(0,
|
|
6625
|
+
(0, j.startTransition)(() => fe((e) => {
|
|
6625
6626
|
let t = new Set(e);
|
|
6626
|
-
return t.has(
|
|
6627
|
+
return t.has(B) ? t.delete(B) : t.add(B), t;
|
|
6627
6628
|
}));
|
|
6628
6629
|
}
|
|
6629
|
-
}, n[57] =
|
|
6630
|
-
let
|
|
6631
|
-
n[62] !==
|
|
6632
|
-
let e =
|
|
6630
|
+
}, n[57] = B, n[58] = Ae, n[59] = xe, n[60] = we, n[61] = qe) : qe = n[61];
|
|
6631
|
+
let Je = E(qe), Ye, Xe;
|
|
6632
|
+
n[62] !== L || n[63] !== Je ? (Ye = () => {
|
|
6633
|
+
let e = N.current;
|
|
6633
6634
|
return e && Ki({
|
|
6634
6635
|
deck: e,
|
|
6635
|
-
enabled:
|
|
6636
|
-
onToggle:
|
|
6636
|
+
enabled: L,
|
|
6637
|
+
onToggle: Je
|
|
6637
6638
|
}), () => {
|
|
6638
|
-
|
|
6639
|
+
N.current?.removeKeyBinding(Gi);
|
|
6639
6640
|
};
|
|
6640
|
-
},
|
|
6641
|
-
let
|
|
6642
|
-
n[66] !==
|
|
6643
|
-
if (
|
|
6644
|
-
let t = rr(
|
|
6645
|
-
t != null &&
|
|
6646
|
-
}, n[66] =
|
|
6647
|
-
let
|
|
6648
|
-
n[70] ===
|
|
6649
|
-
let e =
|
|
6650
|
-
e &&
|
|
6651
|
-
}, n[70] =
|
|
6652
|
-
let
|
|
6653
|
-
n[72] !==
|
|
6654
|
-
|
|
6641
|
+
}, Xe = [L, Je], n[62] = L, n[63] = Je, n[64] = Ye, n[65] = Xe) : (Ye = n[64], Xe = n[65]), (0, j.useEffect)(Ye, Xe);
|
|
6642
|
+
let Ze;
|
|
6643
|
+
n[66] !== S || n[67] !== R || n[68] !== Ie ? (Ze = (e) => {
|
|
6644
|
+
if (R != null) return;
|
|
6645
|
+
let t = rr(Ie, e.getIndices());
|
|
6646
|
+
t != null && S?.(t);
|
|
6647
|
+
}, n[66] = S, n[67] = R, n[68] = Ie, n[69] = Ze) : Ze = n[69];
|
|
6648
|
+
let U = E(Ze), Qe;
|
|
6649
|
+
n[70] === U ? Qe = n[71] : (Qe = () => {
|
|
6650
|
+
let e = N.current;
|
|
6651
|
+
e && U(e);
|
|
6652
|
+
}, n[70] = U, n[71] = Qe);
|
|
6653
|
+
let $e = E(Qe), et;
|
|
6654
|
+
n[72] !== le || n[73] !== L || n[74] !== We || n[75] !== U || n[76] !== Je ? (et = (e) => {
|
|
6655
|
+
We(e), le && U(e), Ki({
|
|
6655
6656
|
deck: e,
|
|
6656
|
-
enabled:
|
|
6657
|
-
onToggle:
|
|
6657
|
+
enabled: L,
|
|
6658
|
+
onToggle: Je
|
|
6658
6659
|
});
|
|
6659
6660
|
let t = e.getSlidesElement()?.closest(".reveal");
|
|
6660
6661
|
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: !0 }));
|
|
6661
|
-
}, n[72] =
|
|
6662
|
-
let
|
|
6663
|
-
n[78] !==
|
|
6664
|
-
if (!
|
|
6662
|
+
}, n[72] = le, n[73] = L, n[74] = We, n[75] = U, n[76] = Je, n[77] = et) : et = n[77];
|
|
6663
|
+
let tt = E(et), nt;
|
|
6664
|
+
n[78] !== x || n[79] !== S || n[80] !== R || n[81] !== o ? (nt = (e) => {
|
|
6665
|
+
if (!R || x == null || i.fromInput(e)) return;
|
|
6665
6666
|
let t = Xi(e);
|
|
6666
6667
|
if (t === 0) return;
|
|
6667
6668
|
e.preventDefault(), e.stopPropagation();
|
|
6668
|
-
let n =
|
|
6669
|
-
n < 0 || n >= o.length ||
|
|
6670
|
-
}, n[78] =
|
|
6671
|
-
let
|
|
6672
|
-
n[83] ===
|
|
6673
|
-
|
|
6674
|
-
}, n[83] =
|
|
6675
|
-
let
|
|
6676
|
-
n[85] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6677
|
-
let
|
|
6678
|
-
n[86] !==
|
|
6679
|
-
let
|
|
6680
|
-
n[91] !==
|
|
6681
|
-
isNoOutputPreview:
|
|
6682
|
-
isEditable:
|
|
6683
|
-
showCode:
|
|
6684
|
-
}), n[91] =
|
|
6685
|
-
let
|
|
6686
|
-
n[95] !==
|
|
6687
|
-
width:
|
|
6688
|
-
height:
|
|
6689
|
-
}, n[95] =
|
|
6690
|
-
let
|
|
6691
|
-
if (n[98] !==
|
|
6669
|
+
let n = x + t;
|
|
6670
|
+
n < 0 || n >= o.length || S?.(n);
|
|
6671
|
+
}, n[78] = x, n[79] = S, n[80] = R, n[81] = o, n[82] = nt) : nt = n[82];
|
|
6672
|
+
let rt = E(nt), it;
|
|
6673
|
+
n[83] === $e ? it = n[84] : (it = () => {
|
|
6674
|
+
$e();
|
|
6675
|
+
}, n[83] = $e, n[84] = it);
|
|
6676
|
+
let W = E(it), at;
|
|
6677
|
+
n[85] === Symbol.for("react.memo_cache_sentinel") ? (at = { capture: !0 }, n[85] = at) : at = n[85], t(document, "keydown", rt, at);
|
|
6678
|
+
let ot = xe ? null : z ? "Hidden as there is no output" : "Skipped in presentation", st;
|
|
6679
|
+
n[86] !== Ce || n[87] !== xe || n[88] !== R?.id || n[89] !== Ee ? (st = xe ? Ce : Ee(R?.id), n[86] = Ce, n[87] = xe, n[88] = R?.id, n[89] = Ee, n[90] = st) : st = n[90];
|
|
6680
|
+
let ct = st, lt;
|
|
6681
|
+
n[91] !== A || n[92] !== z || n[93] !== ct ? (lt = oa({
|
|
6682
|
+
isNoOutputPreview: z,
|
|
6683
|
+
isEditable: A,
|
|
6684
|
+
showCode: ct
|
|
6685
|
+
}), n[91] = A, n[92] = z, n[93] = ct, n[94] = lt) : lt = n[94];
|
|
6686
|
+
let ut = lt, dt;
|
|
6687
|
+
n[95] !== oe || n[96] !== ae ? (dt = {
|
|
6688
|
+
width: ae,
|
|
6689
|
+
height: oe
|
|
6690
|
+
}, n[95] = oe, n[96] = ae, n[97] = dt) : dt = n[97];
|
|
6691
|
+
let ft;
|
|
6692
|
+
if (n[98] !== Ne.stacks || n[99] !== A || n[100] !== s.cells || n[101] !== Ee || n[102] !== Be) {
|
|
6692
6693
|
let e;
|
|
6693
|
-
n[104] !==
|
|
6694
|
+
n[104] !== A || n[105] !== s.cells || n[106] !== Ee || n[107] !== Be ? (e = (e, t) => e.subslides.length === 1 ? /* @__PURE__ */ (0, G.jsx)(aa, {
|
|
6694
6695
|
subslide: e.subslides[0],
|
|
6695
|
-
resolveShowCode:
|
|
6696
|
-
isEditable:
|
|
6696
|
+
resolveShowCode: Ee,
|
|
6697
|
+
isEditable: A,
|
|
6697
6698
|
slideConfigs: s.cells,
|
|
6698
|
-
contentStyle:
|
|
6699
|
-
}, t) : /* @__PURE__ */ (0,
|
|
6699
|
+
contentStyle: Be
|
|
6700
|
+
}, t) : /* @__PURE__ */ (0, G.jsx)(vt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, G.jsx)(aa, {
|
|
6700
6701
|
subslide: e,
|
|
6701
|
-
resolveShowCode:
|
|
6702
|
-
isEditable:
|
|
6702
|
+
resolveShowCode: Ee,
|
|
6703
|
+
isEditable: A,
|
|
6703
6704
|
slideConfigs: s.cells,
|
|
6704
|
-
contentStyle:
|
|
6705
|
-
}, t)) }, t), n[104] =
|
|
6706
|
-
} else
|
|
6707
|
-
let pt;
|
|
6708
|
-
n[109] !== le || n[110] !== et || n[111] !== G || n[112] !== Qe || n[113] !== U || n[114] !== dt ? (pt = /* @__PURE__ */ (0, K.jsx)(ft, {
|
|
6709
|
-
deckRef: P,
|
|
6710
|
-
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",
|
|
6711
|
-
config: U,
|
|
6712
|
-
onReady: et,
|
|
6713
|
-
onSlideChange: G,
|
|
6714
|
-
onFragmentShown: Qe,
|
|
6715
|
-
onFragmentHidden: Qe,
|
|
6716
|
-
plugins: le,
|
|
6717
|
-
children: dt
|
|
6718
|
-
}), n[109] = le, n[110] = et, n[111] = G, n[112] = Qe, n[113] = U, n[114] = dt, n[115] = pt) : pt = n[115];
|
|
6705
|
+
contentStyle: Be
|
|
6706
|
+
}, t)) }, t), n[104] = A, n[105] = s.cells, n[106] = Ee, n[107] = Be, n[108] = e) : e = n[108], ft = Ne.stacks.map(e), n[98] = Ne.stacks, n[99] = A, n[100] = s.cells, n[101] = Ee, n[102] = Be, n[103] = ft;
|
|
6707
|
+
} else ft = n[103];
|
|
6719
6708
|
let mt;
|
|
6720
|
-
n[
|
|
6709
|
+
n[109] !== ue || n[110] !== tt || n[111] !== W || n[112] !== $e || n[113] !== H || n[114] !== ft ? (mt = /* @__PURE__ */ (0, G.jsx)(pt, {
|
|
6710
|
+
deckRef: N,
|
|
6711
|
+
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",
|
|
6712
|
+
config: H,
|
|
6713
|
+
onReady: tt,
|
|
6714
|
+
onSlideChange: W,
|
|
6715
|
+
onFragmentShown: $e,
|
|
6716
|
+
onFragmentHidden: $e,
|
|
6717
|
+
plugins: ue,
|
|
6718
|
+
children: ft
|
|
6719
|
+
}), n[109] = ue, n[110] = tt, n[111] = W, n[112] = $e, n[113] = H, n[114] = ft, n[115] = mt) : mt = n[115];
|
|
6720
|
+
let ht;
|
|
6721
|
+
n[116] !== A || n[117] !== z || n[118] !== R || n[119] !== ot || n[120] !== ct || n[121] !== ut || n[122] !== Be ? (ht = R && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6721
6722
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
6722
|
-
"aria-label":
|
|
6723
|
-
children: [
|
|
6723
|
+
"aria-label": ot ?? void 0,
|
|
6724
|
+
children: [ot && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6724
6725
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
6725
|
-
children: [/* @__PURE__ */ (0,
|
|
6726
|
-
}), /* @__PURE__ */ (0,
|
|
6726
|
+
children: [/* @__PURE__ */ (0, G.jsx)(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: ot })]
|
|
6727
|
+
}), /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6727
6728
|
className: "flex-1 overflow-auto flex",
|
|
6728
|
-
children: /* @__PURE__ */ (0,
|
|
6729
|
-
className:
|
|
6730
|
-
style:
|
|
6731
|
-
children: /* @__PURE__ */ (0,
|
|
6732
|
-
cell:
|
|
6733
|
-
isNoOutputPreview:
|
|
6734
|
-
isEditable:
|
|
6735
|
-
showCode:
|
|
6729
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6730
|
+
className: ut ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
|
|
6731
|
+
style: Be,
|
|
6732
|
+
children: /* @__PURE__ */ (0, G.jsx)(sa, {
|
|
6733
|
+
cell: R,
|
|
6734
|
+
isNoOutputPreview: z,
|
|
6735
|
+
isEditable: A,
|
|
6736
|
+
showCode: ct
|
|
6736
6737
|
})
|
|
6737
6738
|
})
|
|
6738
6739
|
})]
|
|
6739
|
-
},
|
|
6740
|
-
let
|
|
6741
|
-
n[124] !==
|
|
6742
|
-
content:
|
|
6743
|
-
children: /* @__PURE__ */ (0,
|
|
6740
|
+
}, R.id), n[116] = A, n[117] = z, n[118] = R, n[119] = ot, n[120] = ct, n[121] = ut, n[122] = Be, n[123] = ht) : ht = n[123];
|
|
6741
|
+
let gt;
|
|
6742
|
+
n[124] !== Oe || n[125] !== Ae || n[126] !== L || n[127] !== Je ? (gt = L && /* @__PURE__ */ (0, G.jsx)(l, {
|
|
6743
|
+
content: Ae ? "Code is always shown for this slide" : Oe ? "Hide code (C)" : "Show code (C)",
|
|
6744
|
+
children: /* @__PURE__ */ (0, G.jsx)(a, {
|
|
6744
6745
|
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
6745
6746
|
variant: "ghost",
|
|
6746
6747
|
size: "icon",
|
|
6747
|
-
className: r("text-muted-foreground h-7 w-7",
|
|
6748
|
-
"aria-pressed":
|
|
6749
|
-
"aria-disabled":
|
|
6750
|
-
"aria-label":
|
|
6751
|
-
onClick:
|
|
6752
|
-
children: /* @__PURE__ */ (0,
|
|
6748
|
+
className: r("text-muted-foreground h-7 w-7", Oe && "text-foreground bg-muted", Ae && "opacity-50 cursor-not-allowed"),
|
|
6749
|
+
"aria-pressed": Oe,
|
|
6750
|
+
"aria-disabled": Ae,
|
|
6751
|
+
"aria-label": Ae ? "Code always shown" : Oe ? "Hide code" : "Show code",
|
|
6752
|
+
onClick: Je,
|
|
6753
|
+
children: /* @__PURE__ */ (0, G.jsx)(_, { className: "h-4 w-4" })
|
|
6753
6754
|
})
|
|
6754
|
-
}), n[124] =
|
|
6755
|
-
let
|
|
6756
|
-
n[129] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6755
|
+
}), n[124] = Oe, n[125] = Ae, n[126] = L, n[127] = Je, n[128] = gt) : gt = n[128];
|
|
6756
|
+
let _t;
|
|
6757
|
+
n[129] === Symbol.for("react.memo_cache_sentinel") ? (_t = /* @__PURE__ */ (0, G.jsx)(l, {
|
|
6757
6758
|
content: "Fullscreen (F)",
|
|
6758
|
-
children: /* @__PURE__ */ (0,
|
|
6759
|
+
children: /* @__PURE__ */ (0, G.jsx)(a, {
|
|
6759
6760
|
"data-testid": "marimo-plugin-slides-fullscreen",
|
|
6760
6761
|
variant: "ghost",
|
|
6761
6762
|
size: "icon",
|
|
6762
6763
|
className: "text-muted-foreground h-7 w-7",
|
|
6763
6764
|
"aria-label": "Enter fullscreen",
|
|
6764
6765
|
onClick: () => {
|
|
6765
|
-
|
|
6766
|
+
N.current?.getViewportElement()?.requestFullscreen().catch(pa);
|
|
6766
6767
|
},
|
|
6767
|
-
children: /* @__PURE__ */ (0,
|
|
6768
|
+
children: /* @__PURE__ */ (0, G.jsx)(y, { className: "h-4 w-4" })
|
|
6768
6769
|
})
|
|
6769
|
-
}), n[129] =
|
|
6770
|
-
let vt;
|
|
6771
|
-
n[130] === ht ? vt = n[131] : (vt = /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
6772
|
-
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
6773
|
-
children: [ht, gt]
|
|
6774
|
-
}), n[130] = ht, n[131] = vt);
|
|
6770
|
+
}), n[129] = _t) : _t = n[129];
|
|
6775
6771
|
let yt;
|
|
6776
|
-
n[
|
|
6777
|
-
|
|
6772
|
+
n[130] === gt ? yt = n[131] : (yt = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6773
|
+
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
6774
|
+
children: [gt, _t]
|
|
6775
|
+
}), n[130] = gt, n[131] = yt);
|
|
6776
|
+
let bt;
|
|
6777
|
+
n[132] !== dt || n[133] !== mt || n[134] !== ht || n[135] !== yt ? (bt = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6778
|
+
ref: ie,
|
|
6778
6779
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
6779
|
-
children: /* @__PURE__ */ (0,
|
|
6780
|
+
children: /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6780
6781
|
className: "group relative",
|
|
6781
|
-
style:
|
|
6782
|
+
style: dt,
|
|
6782
6783
|
children: [
|
|
6783
|
-
pt,
|
|
6784
6784
|
mt,
|
|
6785
|
-
|
|
6785
|
+
ht,
|
|
6786
|
+
yt
|
|
6786
6787
|
]
|
|
6787
6788
|
})
|
|
6788
|
-
}), n[132] =
|
|
6789
|
-
let
|
|
6790
|
-
if (
|
|
6789
|
+
}), n[132] = dt, n[133] = mt, n[134] = ht, n[135] = yt, n[136] = bt) : bt = n[136];
|
|
6790
|
+
let xt = bt;
|
|
6791
|
+
if (C === "read") {
|
|
6791
6792
|
let e;
|
|
6792
|
-
return n[137] ===
|
|
6793
|
+
return n[137] === xt ? e = n[138] : (e = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6793
6794
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6794
|
-
children:
|
|
6795
|
-
}), n[137] =
|
|
6795
|
+
children: xt
|
|
6796
|
+
}), n[137] = xt, n[138] = e), e;
|
|
6796
6797
|
}
|
|
6797
|
-
let
|
|
6798
|
-
n[139] ===
|
|
6798
|
+
let K;
|
|
6799
|
+
n[139] === xt ? K = n[140] : (K = /* @__PURE__ */ (0, G.jsx)(p, {
|
|
6799
6800
|
defaultSize: 92,
|
|
6800
6801
|
minSize: 60,
|
|
6801
|
-
children:
|
|
6802
|
-
}), n[139] =
|
|
6802
|
+
children: xt
|
|
6803
|
+
}), n[139] = xt, n[140] = K);
|
|
6803
6804
|
let q;
|
|
6804
6805
|
n[141] === Symbol.for("react.memo_cache_sentinel") ? (q = {
|
|
6805
6806
|
coarse: 12,
|
|
6806
6807
|
fine: 4
|
|
6807
6808
|
}, n[141] = q) : q = n[141];
|
|
6808
6809
|
let St;
|
|
6809
|
-
n[142] ===
|
|
6810
|
+
n[142] === se ? St = n[143] : (St = /* @__PURE__ */ (0, G.jsx)(d, {
|
|
6810
6811
|
className: "mo-slides-notes-resize",
|
|
6811
6812
|
hitAreaMargins: q,
|
|
6812
|
-
disabled:
|
|
6813
|
-
}), n[142] =
|
|
6814
|
-
let J =
|
|
6815
|
-
n[144] !== s || n[145] !== c || n[146] !== J ? (Ct = /* @__PURE__ */ (0,
|
|
6813
|
+
disabled: se
|
|
6814
|
+
}), n[142] = se, n[143] = St);
|
|
6815
|
+
let J = ye?.id, Ct;
|
|
6816
|
+
n[144] !== s || n[145] !== c || n[146] !== J ? (Ct = /* @__PURE__ */ (0, G.jsx)(p, {
|
|
6816
6817
|
defaultSize: 10,
|
|
6817
6818
|
minSize: 4,
|
|
6818
6819
|
collapsible: !0,
|
|
6819
6820
|
collapsedSize: 4,
|
|
6820
|
-
children: /* @__PURE__ */ (0,
|
|
6821
|
+
children: /* @__PURE__ */ (0, G.jsx)(ur, {
|
|
6821
6822
|
layout: s,
|
|
6822
6823
|
setLayout: c,
|
|
6823
6824
|
cellId: J
|
|
6824
6825
|
})
|
|
6825
6826
|
}), n[144] = s, n[145] = c, n[146] = J, n[147] = Ct) : Ct = n[147];
|
|
6826
6827
|
let wt;
|
|
6827
|
-
n[148] !==
|
|
6828
|
+
n[148] !== K || n[149] !== St || n[150] !== Ct ? (wt = /* @__PURE__ */ (0, G.jsxs)(f, {
|
|
6828
6829
|
direction: "vertical",
|
|
6829
6830
|
autoSaveId: "marimo:slides:notes-panel",
|
|
6830
6831
|
className: "flex-1 min-w-0",
|
|
6831
6832
|
children: [
|
|
6832
|
-
|
|
6833
|
+
K,
|
|
6833
6834
|
St,
|
|
6834
6835
|
Ct
|
|
6835
6836
|
]
|
|
6836
|
-
}), n[148] =
|
|
6837
|
+
}), n[148] = K, n[149] = St, n[150] = Ct, n[151] = wt) : wt = n[151];
|
|
6837
6838
|
let Tt;
|
|
6838
|
-
n[152] !==
|
|
6839
|
-
configWidth:
|
|
6839
|
+
n[152] !== ye || n[153] !== ee || n[154] !== s || n[155] !== c ? (Tt = /* @__PURE__ */ (0, G.jsx)(g, {
|
|
6840
|
+
configWidth: ee,
|
|
6840
6841
|
layout: s,
|
|
6841
6842
|
setLayout: c,
|
|
6842
|
-
activeConfigCell:
|
|
6843
|
-
}), n[152] =
|
|
6843
|
+
activeConfigCell: ye
|
|
6844
|
+
}), n[152] = ye, n[153] = ee, n[154] = s, n[155] = c, n[156] = Tt) : Tt = n[156];
|
|
6844
6845
|
let Y;
|
|
6845
|
-
return n[157] !== wt || n[158] !== Tt ? (Y = /* @__PURE__ */ (0,
|
|
6846
|
+
return n[157] !== wt || n[158] !== Tt ? (Y = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6846
6847
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6847
6848
|
children: [wt, Tt]
|
|
6848
6849
|
}), n[157] = wt, n[158] = Tt, n[159] = Y) : Y = n[159], Y;
|