@marimo-team/islands 0.23.5-dev1 → 0.23.5-dev11
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/{slide-form-CYU9AOO4.js → code-visibility-Bk5JSPxu.js} +849 -784
- package/dist/main.js +1039 -1073
- package/dist/{reveal-component-DK-5_Ei4.js → reveal-component-Cg99UrL3.js} +575 -527
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/data-table/export-actions.tsx +15 -1
- package/src/components/editor/file-tree/file-explorer.tsx +38 -8
- package/src/components/editor/file-tree/file-operations.tsx +19 -2
- package/src/components/editor/notebook-cell.tsx +33 -23
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +3 -5
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -17
- package/src/components/slides/reveal-component.tsx +159 -47
- package/src/components/slides/reveal-slides.css +8 -0
- package/src/components/slides/slide-cell-view.tsx +182 -0
- package/src/components/slides/slide-form.tsx +2 -0
- package/src/core/cells/utils.ts +45 -0
- package/src/core/islands/stubs/slide-cell-view.tsx +30 -0
- package/src/core/meta/__tests__/code-visibility.test.tsx +141 -0
- package/src/core/meta/code-visibility.ts +48 -0
|
@@ -3,19 +3,19 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a;
|
|
5
5
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
6
|
-
import { _ as Logger, h as Events, l as useEventListener, t as Button } from "./button-CA5pI2YF.js";
|
|
6
|
+
import { _ as Logger, g as cn, h as Events, l as useEventListener, t as Button } from "./button-CA5pI2YF.js";
|
|
7
7
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
8
8
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
9
9
|
import "./html-to-image-CzFE0Irw.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-CO1e63h_.js";
|
|
11
|
-
import {
|
|
11
|
+
import { It as Code, Mt as EyeOff, Nt as Expand, a as DEFAULT_SLIDE_TYPE, c as Slide, i as DEFAULT_DECK_TRANSITION, s as SlideSidebar, t as useNotebookCodeAvailable } from "./code-visibility-Bk5JSPxu.js";
|
|
12
12
|
import "./input-Drx1pguW.js";
|
|
13
13
|
import "./toDate-yqOcZ_tY.js";
|
|
14
14
|
import "./react-dom-BWRJ_g_k.js";
|
|
15
15
|
import { t as require_jsx_runtime } from "./jsx-runtime-COBk7ree.js";
|
|
16
16
|
import "./zod-BxdsqRPd.js";
|
|
17
17
|
import { t as Tooltip } from "./tooltip-B0mtKTXm.js";
|
|
18
|
-
import { w as useEvent_default } from "./useTheme-CX9pPLUH.js";
|
|
18
|
+
import { p as isIslands, w as useEvent_default } from "./useTheme-CX9pPLUH.js";
|
|
19
19
|
import "./dist-CCADb07R.js";
|
|
20
20
|
import "./main-CThhXnXU.js";
|
|
21
21
|
import "./dist-Yrfc6L0I.js";
|
|
@@ -144,52 +144,52 @@ var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__P
|
|
|
144
144
|
return !e5.styleComputed;
|
|
145
145
|
})).forEach((function(e5) {
|
|
146
146
|
e5.styleComputed = f(e5);
|
|
147
|
-
})), e4.filter(
|
|
148
|
-
var t2 = e4.filter(
|
|
149
|
-
t2.forEach(
|
|
150
|
-
|
|
151
|
-
})), t2.forEach(
|
|
147
|
+
})), e4.filter(Gn).forEach(Kn);
|
|
148
|
+
var t2 = e4.filter(Wn);
|
|
149
|
+
t2.forEach(Un), t2.forEach((function(e5) {
|
|
150
|
+
Kn(e5), d(e5);
|
|
151
|
+
})), t2.forEach(qn);
|
|
152
152
|
}, d = function(e4) {
|
|
153
153
|
return e4.dirty = n;
|
|
154
|
-
},
|
|
154
|
+
}, Un = function(e4) {
|
|
155
155
|
e4.availableWidth = e4.element.parentNode.clientWidth, e4.currentWidth = e4.element.scrollWidth, e4.previousFontSize = e4.currentFontSize, e4.currentFontSize = Math.min(Math.max(e4.minSize, e4.availableWidth / e4.currentWidth * e4.previousFontSize), e4.maxSize), e4.whiteSpace = e4.multiLine && e4.currentFontSize === e4.minSize ? "normal" : "nowrap";
|
|
156
|
-
},
|
|
156
|
+
}, Wn = function(e4) {
|
|
157
157
|
return e4.dirty !== i || e4.dirty === i && e4.element.parentNode.clientWidth !== e4.availableWidth;
|
|
158
158
|
}, f = function(t2) {
|
|
159
159
|
var n2 = e3.getComputedStyle(t2.element, null);
|
|
160
160
|
return t2.currentFontSize = parseFloat(n2.getPropertyValue("font-size")), t2.display = n2.getPropertyValue("display"), t2.whiteSpace = n2.getPropertyValue("white-space"), true;
|
|
161
|
-
},
|
|
161
|
+
}, Gn = function(e4) {
|
|
162
162
|
var t2 = false;
|
|
163
163
|
return !e4.preStyleTestCompleted && (/inline-/.test(e4.display) || (t2 = true, e4.display = "inline-block"), e4.whiteSpace !== "nowrap" && (t2 = true, e4.whiteSpace = "nowrap"), e4.preStyleTestCompleted = true, t2);
|
|
164
|
-
},
|
|
164
|
+
}, Kn = function(e4) {
|
|
165
165
|
e4.element.style.whiteSpace = e4.whiteSpace, e4.element.style.display = e4.display, e4.element.style.fontSize = e4.currentFontSize + "px";
|
|
166
|
-
},
|
|
166
|
+
}, qn = function(e4) {
|
|
167
167
|
e4.element.dispatchEvent(new CustomEvent("fit", { detail: {
|
|
168
168
|
oldValue: e4.previousFontSize,
|
|
169
169
|
newValue: e4.currentFontSize,
|
|
170
170
|
scaleFactor: e4.currentFontSize / e4.previousFontSize
|
|
171
171
|
} }));
|
|
172
|
-
},
|
|
172
|
+
}, Jn = function(e4, t2) {
|
|
173
173
|
return function(n2) {
|
|
174
174
|
e4.dirty = t2, e4.active && c(n2);
|
|
175
175
|
};
|
|
176
|
-
},
|
|
176
|
+
}, Yn = function(e4) {
|
|
177
177
|
return function() {
|
|
178
178
|
o = o.filter((function(t2) {
|
|
179
179
|
return t2.element !== e4.element;
|
|
180
180
|
})), e4.observeMutations && e4.observer.disconnect(), e4.element.style.whiteSpace = e4.originalStyle.whiteSpace, e4.element.style.display = e4.originalStyle.display, e4.element.style.fontSize = e4.originalStyle.fontSize;
|
|
181
181
|
};
|
|
182
|
-
},
|
|
182
|
+
}, Xn = function(e4) {
|
|
183
183
|
return function() {
|
|
184
184
|
e4.active || (e4.active = true, c());
|
|
185
185
|
};
|
|
186
|
-
},
|
|
186
|
+
}, Zn = function(e4) {
|
|
187
187
|
return function() {
|
|
188
188
|
return e4.active = false;
|
|
189
189
|
};
|
|
190
|
-
},
|
|
191
|
-
e4.observeMutations && (e4.observer = new MutationObserver(
|
|
192
|
-
},
|
|
190
|
+
}, Qn = function(e4) {
|
|
191
|
+
e4.observeMutations && (e4.observer = new MutationObserver(Jn(e4, r)), e4.observer.observe(e4.element, e4.observeMutations));
|
|
192
|
+
}, $n = {
|
|
193
193
|
minSize: 16,
|
|
194
194
|
maxSize: 512,
|
|
195
195
|
multiLine: true,
|
|
@@ -198,18 +198,18 @@ var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__P
|
|
|
198
198
|
childList: true,
|
|
199
199
|
characterData: true
|
|
200
200
|
}
|
|
201
|
-
},
|
|
202
|
-
e3.clearTimeout(
|
|
203
|
-
},
|
|
201
|
+
}, er = null, tr = function() {
|
|
202
|
+
e3.clearTimeout(er), er = e3.setTimeout(l(i), m.observeWindowDelay);
|
|
203
|
+
}, p = ["resize", "orientationchange"];
|
|
204
204
|
return Object.defineProperty(m, "observeWindow", { set: function(t2) {
|
|
205
205
|
var n2 = `${t2 ? "add" : "remove"}EventListener`;
|
|
206
|
-
|
|
207
|
-
e3[n2](t3,
|
|
206
|
+
p.forEach((function(t3) {
|
|
207
|
+
e3[n2](t3, tr);
|
|
208
208
|
}));
|
|
209
209
|
} }), m.observeWindow = true, m.observeWindowDelay = 100, m.fitAll = l(a), m;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
var n2 = Object.assign({},
|
|
211
|
+
function nr(e4, t2) {
|
|
212
|
+
var n2 = Object.assign({}, $n, t2), r2 = e4.map((function(e5) {
|
|
213
213
|
var t3 = Object.assign({}, n2, {
|
|
214
214
|
element: e5,
|
|
215
215
|
active: true
|
|
@@ -219,20 +219,20 @@ var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__P
|
|
|
219
219
|
whiteSpace: e6.element.style.whiteSpace,
|
|
220
220
|
display: e6.element.style.display,
|
|
221
221
|
fontSize: e6.element.style.fontSize
|
|
222
|
-
},
|
|
222
|
+
}, Qn(e6), e6.newbie = true, e6.dirty = true, o.push(e6);
|
|
223
223
|
})(t3), {
|
|
224
224
|
element: e5,
|
|
225
|
-
fit:
|
|
226
|
-
unfreeze:
|
|
227
|
-
freeze:
|
|
228
|
-
unsubscribe:
|
|
225
|
+
fit: Jn(t3, a),
|
|
226
|
+
unfreeze: Xn(t3),
|
|
227
|
+
freeze: Zn(t3),
|
|
228
|
+
unsubscribe: Yn(t3)
|
|
229
229
|
};
|
|
230
230
|
}));
|
|
231
231
|
return c(), r2;
|
|
232
232
|
}
|
|
233
233
|
function m(e4) {
|
|
234
234
|
var n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
235
|
-
return typeof e4 == "string" ?
|
|
235
|
+
return typeof e4 == "string" ? nr(t(document.querySelectorAll(e4)), n2) : nr([e4], n2)[0];
|
|
236
236
|
}
|
|
237
237
|
})(typeof window > "u" ? null : window), Ci = class {
|
|
238
238
|
constructor(e3) {
|
|
@@ -664,8 +664,8 @@ var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__P
|
|
|
664
664
|
r.length === 1 ? i = a = parseInt(r[0], 10) : (i = parseInt(r[0], 10), a = parseInt(r[1], 10));
|
|
665
665
|
let o = this.element.offsetWidth, s = t.length, c, l;
|
|
666
666
|
c = typeof this.Reveal.getConfig().parallaxBackgroundHorizontal == "number" ? this.Reveal.getConfig().parallaxBackgroundHorizontal : s > 1 ? (i - o) / (s - 1) : 0, l = c * e3.h * -1;
|
|
667
|
-
let u = this.element.offsetHeight, d = n.length,
|
|
668
|
-
|
|
667
|
+
let u = this.element.offsetHeight, d = n.length, Un, Wn;
|
|
668
|
+
Un = typeof this.Reveal.getConfig().parallaxBackgroundVertical == "number" ? this.Reveal.getConfig().parallaxBackgroundVertical : (a - u) / (d - 1), Wn = d > 0 ? Un * e3.v : 0, this.element.style.backgroundPosition = l + "px " + -Wn + "px";
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
destroy() {
|
|
@@ -1071,32 +1071,32 @@ var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__P
|
|
|
1071
1071
|
e4 && e4.background && (l = e4.background);
|
|
1072
1072
|
}
|
|
1073
1073
|
yield new Promise(requestAnimationFrame), this.Reveal.layoutSlideContents(o, s), yield new Promise(requestAnimationFrame);
|
|
1074
|
-
let u = t.map((e4) => e4.scrollHeight), d = [],
|
|
1074
|
+
let u = t.map((e4) => e4.scrollHeight), d = [], Un = t[0].parentNode, Wn = 1;
|
|
1075
1075
|
t.forEach(function(t2, r2) {
|
|
1076
1076
|
if (t2.classList.contains("stack") === false) {
|
|
1077
|
-
let c2 = (i - o) / 2,
|
|
1078
|
-
|
|
1079
|
-
let
|
|
1080
|
-
if (d.push(
|
|
1077
|
+
let c2 = (i - o) / 2, Un2 = (a - s) / 2, f = u[r2], Gn = Math.max(Math.ceil(f / a), 1);
|
|
1078
|
+
Gn = Math.min(Gn, e3.pdfMaxPagesPerSlide), (Gn === 1 && e3.center || t2.classList.contains("center")) && (Un2 = Math.max((a - f) / 2, 0));
|
|
1079
|
+
let Kn = document.createElement("div");
|
|
1080
|
+
if (d.push(Kn), Kn.className = "pdf-page", Kn.style.height = (a + e3.pdfPageHeightOffset) * Gn + "px", l && (Kn.style.background = l), Kn.appendChild(t2), t2.style.left = c2 + "px", t2.style.top = Un2 + "px", t2.style.width = o + "px", this.Reveal.slideContent.layout(t2), t2.slideBackgroundElement && Kn.insertBefore(t2.slideBackgroundElement, t2), e3.showNotes) {
|
|
1081
1081
|
let n2 = this.Reveal.getSlideNotes(t2);
|
|
1082
1082
|
if (n2) {
|
|
1083
1083
|
let t3 = typeof e3.showNotes == "string" ? e3.showNotes : "inline", r3 = document.createElement("div");
|
|
1084
|
-
r3.classList.add("speaker-notes"), r3.classList.add("speaker-notes-pdf"), r3.setAttribute("data-layout", t3), r3.innerHTML = n2, t3 === "separate-page" ? d.push(r3) : (r3.style.left = "8px", r3.style.bottom = "8px", r3.style.width = i - 16 + "px",
|
|
1084
|
+
r3.classList.add("speaker-notes"), r3.classList.add("speaker-notes-pdf"), r3.setAttribute("data-layout", t3), r3.innerHTML = n2, t3 === "separate-page" ? d.push(r3) : (r3.style.left = "8px", r3.style.bottom = "8px", r3.style.width = i - 16 + "px", Kn.appendChild(r3));
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
1087
|
if (n) {
|
|
1088
1088
|
let e4 = document.createElement("div");
|
|
1089
|
-
e4.classList.add("slide-number"), e4.classList.add("slide-number-pdf"), e4.innerHTML =
|
|
1089
|
+
e4.classList.add("slide-number"), e4.classList.add("slide-number-pdf"), e4.innerHTML = Wn++, Kn.appendChild(e4);
|
|
1090
1090
|
}
|
|
1091
1091
|
if (e3.pdfSeparateFragments) {
|
|
1092
|
-
let e4 = this.Reveal.fragments.sort(
|
|
1092
|
+
let e4 = this.Reveal.fragments.sort(Kn.querySelectorAll(".fragment"), true), t3;
|
|
1093
1093
|
e4.forEach(function(e5, r3) {
|
|
1094
1094
|
t3 && t3.forEach(function(e6) {
|
|
1095
1095
|
e6.classList.remove("current-fragment");
|
|
1096
1096
|
}), e5.forEach(function(e6) {
|
|
1097
1097
|
e6.classList.add("visible", "current-fragment");
|
|
1098
1098
|
}, this);
|
|
1099
|
-
let i2 =
|
|
1099
|
+
let i2 = Kn.cloneNode(true);
|
|
1100
1100
|
if (n) {
|
|
1101
1101
|
let e6 = i2.querySelector(".slide-number-pdf"), t4 = r3 + 1;
|
|
1102
1102
|
e6.innerHTML += "." + t4;
|
|
@@ -1107,11 +1107,11 @@ var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__P
|
|
|
1107
1107
|
e6.classList.remove("visible", "current-fragment");
|
|
1108
1108
|
});
|
|
1109
1109
|
});
|
|
1110
|
-
} else E$1(
|
|
1110
|
+
} else E$1(Kn, ".fragment:not(.fade-out)").forEach(function(e4) {
|
|
1111
1111
|
e4.classList.add("visible");
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
|
-
}, this), yield new Promise(requestAnimationFrame), d.forEach((e4) =>
|
|
1114
|
+
}, this), yield new Promise(requestAnimationFrame), d.forEach((e4) => Un.appendChild(e4)), this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()), this.Reveal.dispatchEvent({ type: "pdf-ready" }), c.classList.remove("loading-scroll-mode");
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
1117
|
isActive() {
|
|
@@ -2093,22 +2093,22 @@ function Ut(e3, t) {
|
|
|
2093
2093
|
let n = {}, r = {}, i = false, a = false, o, s, c, l, u = {
|
|
2094
2094
|
hasNavigatedHorizontally: false,
|
|
2095
2095
|
hasNavigatedVertically: false
|
|
2096
|
-
}, d = [],
|
|
2096
|
+
}, d = [], Un = 1, Wn = {
|
|
2097
2097
|
layout: "",
|
|
2098
2098
|
overview: ""
|
|
2099
|
-
}, f = {},
|
|
2100
|
-
function
|
|
2099
|
+
}, f = {}, Gn = "idle", Kn = 0, qn, Jn = 0, Yn = -1, Xn = false, Zn = new Ci(n), Qn = new Ii(n), $n = new Mi(n), er = new Hi(n), tr = new Bi(n), p = new Oi(n), nr = new Ui(n), m = new qi(n), ar = new Wi(n), or = new ji(n), fr = new Ki(n), mr = new _i(n), gr = new $i(n), yr = new Xi(n), br = new Yi(n), xr = new Gi(n), Sr = new Qi(n), Cr = new Ji(n), wr = new Zi(n);
|
|
2100
|
+
function Tr(a2) {
|
|
2101
2101
|
if (!e3) throw 'Unable to find presentation root (<div class="reveal">).';
|
|
2102
2102
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2103
2103
|
if (i = true, f.wrapper = e3, f.slides = e3.querySelector(".slides"), !f.slides) throw 'Unable to find slides container (<div class="slides">).';
|
|
2104
|
-
return r = Q$1(Q$1(Q$1(Q$1(Q$1({}, ts), r), t), a2), Mt()), /print-pdf/gi.test(window.location.search) && (r.view = "print"),
|
|
2104
|
+
return r = Q$1(Q$1(Q$1(Q$1(Q$1({}, ts), r), t), a2), Mt()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), Er(), window.addEventListener("load", Jr, false), br.load(r.plugins, r.dependencies).then(Dr), new Promise((e4) => n.on("ready", e4));
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function Er() {
|
|
2107
2107
|
r.embedded === true ? f.viewport = V$1(e3, ".reveal-viewport") || e3 : (f.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), f.viewport.classList.add("reveal-viewport");
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2110
|
-
i !== false && (a = true,
|
|
2111
|
-
f.slides.classList.remove("no-transition"), f.wrapper.classList.add("ready"),
|
|
2109
|
+
function Dr() {
|
|
2110
|
+
i !== false && (a = true, kr(), Ar(), Lr(), Fr(), Ir(), na(), Rr(), tr.update(true), Or(), fr.readURL(), setTimeout(() => {
|
|
2111
|
+
f.slides.classList.remove("no-transition"), f.wrapper.classList.add("ready"), Gr({
|
|
2112
2112
|
type: "ready",
|
|
2113
2113
|
data: {
|
|
2114
2114
|
indexh: o,
|
|
@@ -2118,27 +2118,27 @@ function Ut(e3, t) {
|
|
|
2118
2118
|
});
|
|
2119
2119
|
}, 1));
|
|
2120
2120
|
}
|
|
2121
|
-
function
|
|
2121
|
+
function Or() {
|
|
2122
2122
|
let e4 = r.view === "print", t2 = r.view === "scroll" || r.view === "reader";
|
|
2123
|
-
(e4 || t2) && (e4 ?
|
|
2123
|
+
(e4 || t2) && (e4 ? Br() : Cr.unbind(), f.viewport.classList.add("loading-scroll-mode"), e4 ? document.readyState === "complete" ? nr.activate() : window.addEventListener("load", () => nr.activate()) : p.activate());
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function kr() {
|
|
2126
2126
|
r.showHiddenSlides || E$1(f.wrapper, 'section[data-visibility="hidden"]').forEach((e4) => {
|
|
2127
2127
|
let t2 = e4.parentNode;
|
|
2128
2128
|
t2.childElementCount === 1 && /section/i.test(t2.nodeName) ? t2.remove() : e4.remove();
|
|
2129
2129
|
});
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2132
|
-
f.slides.classList.add("no-transition"), le$1 ? f.wrapper.classList.add("no-hover") : f.wrapper.classList.remove("no-hover"),
|
|
2131
|
+
function Ar() {
|
|
2132
|
+
f.slides.classList.add("no-transition"), le$1 ? f.wrapper.classList.add("no-hover") : f.wrapper.classList.remove("no-hover"), tr.render(), Qn.render(), $n.render(), mr.render(), gr.render(), wr.render(), f.pauseOverlay = wi(f.wrapper, "div", "pause-overlay", r.controls ? '<button class="resume-button">Resume presentation</button>' : null), f.statusElement = jr(), f.wrapper.setAttribute("role", "application");
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function jr() {
|
|
2135
2135
|
let e4 = f.wrapper.querySelector(".aria-status");
|
|
2136
2136
|
return e4 || (e4 = document.createElement("div"), e4.style.position = "absolute", e4.style.height = "1px", e4.style.width = "1px", e4.style.overflow = "hidden", e4.style.clip = "rect( 1px, 1px, 1px, 1px )", e4.classList.add("aria-status"), e4.setAttribute("aria-live", "polite"), e4.setAttribute("aria-atomic", "true"), f.wrapper.appendChild(e4)), e4;
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function Mr(e4) {
|
|
2139
2139
|
f.statusElement.textContent = e4;
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2141
|
+
function Nr(e4) {
|
|
2142
2142
|
let t2 = "";
|
|
2143
2143
|
if (e4.nodeType === 3) t2 += e4.textContent.trim();
|
|
2144
2144
|
else if (e4.nodeType === 1) {
|
|
@@ -2146,10 +2146,10 @@ function Ut(e3, t) {
|
|
|
2146
2146
|
if (n2 !== "true" && !r2) {
|
|
2147
2147
|
if (e4.tagName === "IMG" || e4.tagName === "VIDEO") {
|
|
2148
2148
|
let n3 = e4.getAttribute("alt");
|
|
2149
|
-
n3 && (t2 +=
|
|
2149
|
+
n3 && (t2 += Pr(n3));
|
|
2150
2150
|
}
|
|
2151
2151
|
Array.from(e4.childNodes).forEach((e5) => {
|
|
2152
|
-
t2 +=
|
|
2152
|
+
t2 += Nr(e5);
|
|
2153
2153
|
}), [
|
|
2154
2154
|
"P",
|
|
2155
2155
|
"DIV",
|
|
@@ -2163,58 +2163,58 @@ function Ut(e3, t) {
|
|
|
2163
2163
|
"H5",
|
|
2164
2164
|
"H6",
|
|
2165
2165
|
"BLOCKQUOTE"
|
|
2166
|
-
].includes(e4.tagName) && t2.trim() !== "" && (t2 =
|
|
2166
|
+
].includes(e4.tagName) && t2.trim() !== "" && (t2 = Pr(t2));
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
return t2 = t2.trim(), t2 === "" ? "" : t2 + " ";
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function Pr(e4) {
|
|
2172
2172
|
let t2 = e4.trim();
|
|
2173
2173
|
return t2 === "" ? e4 : /[.!?]$/.test(t2) ? t2 : t2 + ".";
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function Fr() {
|
|
2176
2176
|
setInterval(() => {
|
|
2177
|
-
(!
|
|
2177
|
+
(!p.isActive() && f.wrapper.scrollTop !== 0 || f.wrapper.scrollLeft !== 0) && (f.wrapper.scrollTop = 0, f.wrapper.scrollLeft = 0);
|
|
2178
2178
|
}, 1e3);
|
|
2179
2179
|
}
|
|
2180
|
-
function
|
|
2181
|
-
document.addEventListener("fullscreenchange",
|
|
2180
|
+
function Ir() {
|
|
2181
|
+
document.addEventListener("fullscreenchange", Ba), document.addEventListener("webkitfullscreenchange", Ba);
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2184
|
-
r.postMessage && window.addEventListener("message",
|
|
2183
|
+
function Lr() {
|
|
2184
|
+
r.postMessage && window.addEventListener("message", Fa, false);
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function Rr(e4) {
|
|
2187
2187
|
let t2 = Q$1({}, r);
|
|
2188
2188
|
if (typeof e4 == "object" && ge$1(r, e4), n.isReady() === false) return;
|
|
2189
2189
|
let i2 = f.wrapper.querySelectorAll(de$1).length;
|
|
2190
|
-
f.wrapper.classList.remove(t2.transition), f.wrapper.classList.add(r.transition), f.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), f.wrapper.setAttribute("data-background-transition", r.backgroundTransition), f.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), f.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle &&
|
|
2190
|
+
f.wrapper.classList.remove(t2.transition), f.wrapper.classList.add(r.transition), f.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), f.wrapper.setAttribute("data-background-transition", r.backgroundTransition), f.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), f.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle && ra(), Ke$1(f.wrapper, "embedded", r.embedded), Ke$1(f.wrapper, "rtl", r.rtl), Ke$1(f.wrapper, "center", r.center), r.pause === false && oi(), er.reset(), qn && (qn = (qn.destroy(), null)), i2 > 1 && r.autoSlide && r.autoSlideStoppable && (qn = new es(f.wrapper, () => Math.min(Math.max((Date.now() - Yn) / Kn, 0), 1)), qn.on("click", Va), Xn = false), r.navigationMode === "default" ? f.wrapper.removeAttribute("data-navigation-mode") : f.wrapper.setAttribute("data-navigation-mode", r.navigationMode), wr.configure(r, t2), Sr.configure(r, t2), yr.configure(r, t2), mr.configure(r, t2), gr.configure(r, t2), or.configure(r, t2), m.configure(r, t2), Qn.configure(r, t2), ea();
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2193
|
-
window.addEventListener("resize",
|
|
2192
|
+
function zr() {
|
|
2193
|
+
window.addEventListener("resize", Ra, false), r.touch && Cr.bind(), r.keyboard && or.bind(), r.progress && gr.bind(), r.respondToHashChanges && fr.bind(), mr.bind(), Sr.bind(), f.slides.addEventListener("click", La, false), f.slides.addEventListener("transitionend", Ia, false), f.pauseOverlay.addEventListener("click", oi, false), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", za, false);
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2196
|
-
|
|
2195
|
+
function Br() {
|
|
2196
|
+
Cr.unbind(), Sr.unbind(), or.unbind(), mr.unbind(), gr.unbind(), fr.unbind(), window.removeEventListener("resize", Ra, false), f.slides.removeEventListener("click", La, false), f.slides.removeEventListener("transitionend", Ia, false), f.pauseOverlay.removeEventListener("click", oi, false);
|
|
2197
2197
|
}
|
|
2198
|
-
function
|
|
2199
|
-
i = false, a !== false && (
|
|
2198
|
+
function Vr() {
|
|
2199
|
+
i = false, a !== false && (Br(), Ta(), wr.destroy(), Sr.destroy(), xr.destroy(), br.destroy(), yr.destroy(), mr.destroy(), gr.destroy(), tr.destroy(), Qn.destroy(), $n.destroy(), document.removeEventListener("fullscreenchange", Ba), document.removeEventListener("webkitfullscreenchange", Ba), document.removeEventListener("visibilitychange", za, false), window.removeEventListener("message", Fa, false), window.removeEventListener("load", Jr, false), f.pauseOverlay && f.pauseOverlay.remove(), f.statusElement && f.statusElement.remove(), document.documentElement.classList.remove("reveal-full-page"), f.wrapper.classList.remove("ready", "center", "has-horizontal-slides", "has-vertical-slides"), f.wrapper.removeAttribute("data-transition-speed"), f.wrapper.removeAttribute("data-background-transition"), f.viewport.classList.remove("reveal-viewport"), f.viewport.style.removeProperty("--slide-width"), f.viewport.style.removeProperty("--slide-height"), f.slides.style.removeProperty("width"), f.slides.style.removeProperty("height"), f.slides.style.removeProperty("zoom"), f.slides.style.removeProperty("left"), f.slides.style.removeProperty("top"), f.slides.style.removeProperty("bottom"), f.slides.style.removeProperty("right"), f.slides.style.removeProperty("transform"), Array.from(f.wrapper.querySelectorAll(de$1)).forEach((e4) => {
|
|
2200
2200
|
e4.style.removeProperty("display"), e4.style.removeProperty("top"), e4.removeAttribute("hidden"), e4.removeAttribute("aria-hidden");
|
|
2201
2201
|
}));
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function Hr(t2, n2, r2) {
|
|
2204
2204
|
e3.addEventListener(t2, n2, r2);
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function Ur(t2, n2, r2) {
|
|
2207
2207
|
e3.removeEventListener(t2, n2, r2);
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2210
|
-
typeof e4.layout == "string" && (
|
|
2209
|
+
function Wr(e4) {
|
|
2210
|
+
typeof e4.layout == "string" && (Wn.layout = e4.layout), typeof e4.overview == "string" && (Wn.overview = e4.overview), Wn.layout ? ae$1(f.slides, Wn.layout + " " + Wn.overview) : ae$1(f.slides, Wn.overview);
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2212
|
+
function Gr({ target: e4 = f.wrapper, type: t2, data: n2, bubbles: r2 = true }) {
|
|
2213
2213
|
let i2 = document.createEvent("HTMLEvents", 1, 2);
|
|
2214
|
-
return i2.initEvent(t2, r2, true), ge$1(i2, n2), e4.dispatchEvent(i2), e4 === f.wrapper &&
|
|
2214
|
+
return i2.initEvent(t2, r2, true), ge$1(i2, n2), e4.dispatchEvent(i2), e4 === f.wrapper && qr(t2), i2;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2217
|
-
|
|
2216
|
+
function Kr(e4) {
|
|
2217
|
+
Gr({
|
|
2218
2218
|
type: "slidechanged",
|
|
2219
2219
|
data: {
|
|
2220
2220
|
indexh: o,
|
|
@@ -2225,41 +2225,41 @@ function Ut(e3, t) {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
});
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function qr(e4, t2) {
|
|
2229
2229
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2230
2230
|
let n2 = {
|
|
2231
2231
|
namespace: "reveal",
|
|
2232
2232
|
eventName: e4,
|
|
2233
|
-
state:
|
|
2233
|
+
state: Sa()
|
|
2234
2234
|
};
|
|
2235
2235
|
ge$1(n2, t2), window.parent.postMessage(JSON.stringify(n2), "*");
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
|
-
function
|
|
2239
|
-
if (f.wrapper && !
|
|
2238
|
+
function Jr() {
|
|
2239
|
+
if (f.wrapper && !nr.isActive()) {
|
|
2240
2240
|
let e4 = f.viewport.offsetWidth, t2 = f.viewport.offsetHeight;
|
|
2241
2241
|
if (!r.disableLayout) {
|
|
2242
2242
|
le$1 && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px");
|
|
2243
|
-
let n2 =
|
|
2244
|
-
|
|
2243
|
+
let n2 = p.isActive() ? Zr(e4, t2) : Zr(), i2 = Un;
|
|
2244
|
+
Yr(r.width, r.height), f.slides.style.width = n2.width + "px", f.slides.style.height = n2.height + "px", Un = Math.min(n2.presentationWidth / n2.width, n2.presentationHeight / n2.height), Un = Math.max(Un, r.minScale), Un = Math.min(Un, r.maxScale), Un === 1 || p.isActive() ? (f.slides.style.zoom = "", f.slides.style.left = "", f.slides.style.top = "", f.slides.style.bottom = "", f.slides.style.right = "", Wr({ layout: "" })) : (f.slides.style.zoom = "", f.slides.style.left = "50%", f.slides.style.top = "50%", f.slides.style.bottom = "auto", f.slides.style.right = "auto", Wr({ layout: "translate(-50%, -50%) scale(" + Un + ")" }));
|
|
2245
2245
|
let a2 = Array.from(f.wrapper.querySelectorAll(de$1));
|
|
2246
2246
|
for (let e5 = 0, t3 = a2.length; e5 < t3; e5++) {
|
|
2247
2247
|
let t4 = a2[e5];
|
|
2248
2248
|
t4.style.display !== "none" && (r.center || t4.classList.contains("center") ? t4.classList.contains("stack") ? t4.style.top = 0 : t4.style.top = Math.max((n2.height - t4.scrollHeight) / 2, 0) + "px" : t4.style.top = "");
|
|
2249
2249
|
}
|
|
2250
|
-
i2 !==
|
|
2250
|
+
i2 !== Un && Gr({
|
|
2251
2251
|
type: "resize",
|
|
2252
2252
|
data: {
|
|
2253
2253
|
oldScale: i2,
|
|
2254
|
-
scale:
|
|
2254
|
+
scale: Un,
|
|
2255
2255
|
size: n2
|
|
2256
2256
|
}
|
|
2257
2257
|
});
|
|
2258
2258
|
}
|
|
2259
|
-
|
|
2259
|
+
Xr(), f.viewport.style.setProperty("--slide-scale", Un), f.viewport.style.setProperty("--viewport-width", e4 + "px"), f.viewport.style.setProperty("--viewport-height", t2 + "px"), p.layout(), gr.update(), tr.updateParallax(), ar.isActive() && ar.update();
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function Yr(e4, t2) {
|
|
2263
2263
|
E$1(f.slides, "section > .stretch, section > .r-stretch").forEach((n2) => {
|
|
2264
2264
|
let r2 = Ei(n2, t2);
|
|
2265
2265
|
if (/(img|video)/gi.test(n2.nodeName)) {
|
|
@@ -2268,13 +2268,13 @@ function Ut(e3, t) {
|
|
|
2268
2268
|
} else n2.style.width = e4 + "px", n2.style.height = r2 + "px";
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2272
|
-
if (f.wrapper && !r.disableLayout && !
|
|
2273
|
-
let e4 =
|
|
2274
|
-
e4.presentationWidth > 0 && e4.presentationWidth <= r.scrollActivationWidth ?
|
|
2271
|
+
function Xr() {
|
|
2272
|
+
if (f.wrapper && !r.disableLayout && !nr.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2273
|
+
let e4 = Zr();
|
|
2274
|
+
e4.presentationWidth > 0 && e4.presentationWidth <= r.scrollActivationWidth ? p.isActive() || (tr.create(), p.activate()) : p.isActive() && p.deactivate();
|
|
2275
2275
|
}
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function Zr(e4, t2) {
|
|
2278
2278
|
let n2 = r.width, i2 = r.height;
|
|
2279
2279
|
r.disableLayout && (n2 = f.slides.offsetWidth, i2 = f.slides.offsetHeight);
|
|
2280
2280
|
let a2 = {
|
|
@@ -2285,58 +2285,58 @@ function Ut(e3, t) {
|
|
|
2285
2285
|
};
|
|
2286
2286
|
return a2.presentationWidth -= a2.presentationWidth * r.margin, a2.presentationHeight -= a2.presentationHeight * r.margin, typeof a2.width == "string" && /%$/.test(a2.width) && (a2.width = parseInt(a2.width, 10) / 100 * a2.presentationWidth), typeof a2.height == "string" && /%$/.test(a2.height) && (a2.height = parseInt(a2.height, 10) / 100 * a2.presentationHeight), a2;
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function Qr(e4, t2) {
|
|
2289
2289
|
typeof e4 == "object" && typeof e4.setAttribute == "function" && e4.setAttribute("data-previous-indexv", t2 || 0);
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function $r(e4) {
|
|
2292
2292
|
if (typeof e4 == "object" && typeof e4.setAttribute == "function" && e4.classList.contains("stack")) {
|
|
2293
2293
|
let t2 = e4.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
|
|
2294
2294
|
return parseInt(e4.getAttribute(t2) || 0, 10);
|
|
2295
2295
|
}
|
|
2296
2296
|
return 0;
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function ei(e4 = l) {
|
|
2299
2299
|
return e4 && e4.parentNode && !!e4.parentNode.nodeName.match(/section/i);
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function ti(e4 = l) {
|
|
2302
2302
|
return e4.classList.contains(".stack") || e4.querySelector("section") !== null;
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2305
|
-
return l &&
|
|
2304
|
+
function ni() {
|
|
2305
|
+
return l && ei(l) ? !l.nextElementSibling : false;
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2307
|
+
function ri() {
|
|
2308
2308
|
return o === 0 && s === 0;
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2311
|
-
return l ? !(l.nextElementSibling ||
|
|
2310
|
+
function ii() {
|
|
2311
|
+
return l ? !(l.nextElementSibling || ei(l) && l.parentNode.nextElementSibling) : false;
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function ai() {
|
|
2314
2314
|
if (r.pause) {
|
|
2315
2315
|
let e4 = f.wrapper.classList.contains("paused");
|
|
2316
|
-
|
|
2316
|
+
Ta(), f.wrapper.classList.add("paused"), e4 === false && Gr({ type: "paused" });
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function oi() {
|
|
2320
2320
|
let e4 = f.wrapper.classList.contains("paused");
|
|
2321
|
-
f.wrapper.classList.remove("paused"),
|
|
2321
|
+
f.wrapper.classList.remove("paused"), wa(), e4 && Gr({ type: "resumed" });
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2324
|
-
typeof e4 == "boolean" ? e4 ?
|
|
2323
|
+
function si(e4) {
|
|
2324
|
+
typeof e4 == "boolean" ? e4 ? ai() : oi() : ci() ? oi() : ai();
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function ci() {
|
|
2327
2327
|
return f.wrapper.classList.contains("paused");
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2330
|
-
typeof e4 == "boolean" ? e4 ?
|
|
2329
|
+
function li(e4) {
|
|
2330
|
+
typeof e4 == "boolean" ? e4 ? $n.show() : $n.hide() : $n.isVisible() ? $n.hide() : $n.show();
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2333
|
-
typeof e4 == "boolean" ? e4 ?
|
|
2332
|
+
function ui(e4) {
|
|
2333
|
+
typeof e4 == "boolean" ? e4 ? Da() : Ea() : Xn ? Da() : Ea();
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2336
|
-
return !!(
|
|
2335
|
+
function di() {
|
|
2336
|
+
return !!(Kn && !Xn);
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2339
|
-
if (
|
|
2338
|
+
function fi(t2, n2, i2, a2) {
|
|
2339
|
+
if (Gr({
|
|
2340
2340
|
type: "beforeslidechange",
|
|
2341
2341
|
data: {
|
|
2342
2342
|
indexh: t2 === void 0 ? o : t2,
|
|
@@ -2346,90 +2346,90 @@ function Ut(e3, t) {
|
|
|
2346
2346
|
}).defaultPrevented) return;
|
|
2347
2347
|
c = l;
|
|
2348
2348
|
let u2 = f.wrapper.querySelectorAll(te$1);
|
|
2349
|
-
if (
|
|
2350
|
-
let e4 =
|
|
2351
|
-
e4 &&
|
|
2349
|
+
if (p.isActive()) {
|
|
2350
|
+
let e4 = p.getSlideByIndices(t2, n2);
|
|
2351
|
+
e4 && p.scrollToSlide(e4);
|
|
2352
2352
|
return;
|
|
2353
2353
|
}
|
|
2354
2354
|
if (u2.length === 0) return;
|
|
2355
|
-
n2 === void 0 && !
|
|
2356
|
-
let
|
|
2355
|
+
n2 === void 0 && !ar.isActive() && (n2 = $r(u2[t2])), c && c.parentNode && c.parentNode.classList.contains("stack") && Qr(c.parentNode, s);
|
|
2356
|
+
let Un2 = d.concat();
|
|
2357
2357
|
d.length = 0;
|
|
2358
|
-
let
|
|
2359
|
-
o =
|
|
2360
|
-
let
|
|
2361
|
-
|
|
2362
|
-
let
|
|
2363
|
-
e3.classList.toggle("is-vertical-slide",
|
|
2364
|
-
let
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2358
|
+
let Wn2 = o || 0, Kn2 = s || 0;
|
|
2359
|
+
o = ia(te$1, t2 === void 0 ? o : t2), s = ia(_e$1, n2 === void 0 ? s : n2);
|
|
2360
|
+
let qn2 = o !== Wn2 || s !== Kn2;
|
|
2361
|
+
qn2 || (c = null);
|
|
2362
|
+
let Jn2 = u2[o], Yn2 = Jn2.querySelectorAll("section");
|
|
2363
|
+
e3.classList.toggle("is-vertical-slide", Yn2.length > 1), l = Yn2[s] || Jn2;
|
|
2364
|
+
let Xn2 = false;
|
|
2365
|
+
qn2 && c && l && !ar.isActive() && (Gn = "running", Xn2 = hi(c, l, Wn2, Kn2), Xn2 && f.slides.classList.add("disable-slide-transitions")), sa(), Jr(), ar.isActive() && ar.update(), i2 !== void 0 && m.goto(i2), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), ri() && setTimeout(() => {
|
|
2366
|
+
ha().forEach((e4) => {
|
|
2367
|
+
Qr(e4, 0);
|
|
2368
2368
|
});
|
|
2369
2369
|
}, 0));
|
|
2370
2370
|
e: for (let e4 = 0, t3 = d.length; e4 < t3; e4++) {
|
|
2371
|
-
for (let t4 = 0; t4 <
|
|
2372
|
-
|
|
2371
|
+
for (let t4 = 0; t4 < Un2.length; t4++) if (Un2[t4] === d[e4]) {
|
|
2372
|
+
Un2.splice(t4, 1);
|
|
2373
2373
|
continue e;
|
|
2374
2374
|
}
|
|
2375
|
-
f.viewport.classList.add(d[e4]),
|
|
2375
|
+
f.viewport.classList.add(d[e4]), Gr({ type: d[e4] });
|
|
2376
2376
|
}
|
|
2377
|
-
for (;
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
}),
|
|
2377
|
+
for (; Un2.length; ) f.viewport.classList.remove(Un2.pop());
|
|
2378
|
+
qn2 && (Zn.afterSlideChanged(), Kr(a2)), (qn2 || !c) && (Zn.stopEmbeddedContent(c), Zn.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2379
|
+
Mr(Nr(l));
|
|
2380
|
+
}), gr.update(), mr.update(), wr.update(), tr.update(), tr.updateParallax(), Qn.update(), m.update(), fr.writeURL(), wa(), Xn2 && (setTimeout(() => {
|
|
2381
2381
|
f.slides.classList.remove("disable-slide-transitions");
|
|
2382
|
-
}, 0), r.autoAnimate &&
|
|
2382
|
+
}, 0), r.autoAnimate && er.run(c, l));
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function hi(e4, t2, n2, r2) {
|
|
2385
2385
|
return e4.hasAttribute("data-auto-animate") && t2.hasAttribute("data-auto-animate") && e4.getAttribute("data-auto-animate-id") === t2.getAttribute("data-auto-animate-id") && !(o > n2 || s > r2 ? t2 : e4).hasAttribute("data-auto-animate-restart");
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function gi(e4, t2, n2) {
|
|
2388
2388
|
let i2 = o || 0;
|
|
2389
2389
|
o = t2, s = n2;
|
|
2390
2390
|
let a2 = l !== e4;
|
|
2391
|
-
c = l, l = e4, l && c && r.autoAnimate &&
|
|
2392
|
-
|
|
2393
|
-
}),
|
|
2391
|
+
c = l, l = e4, l && c && r.autoAnimate && hi(c, l, i2, s) && er.run(c, l), a2 && (Zn.afterSlideChanged(), c && (Zn.stopEmbeddedContent(c), Zn.stopEmbeddedContent(c.slideBackgroundElement)), Zn.startEmbeddedContent(l), Zn.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
|
|
2392
|
+
Mr(Nr(l));
|
|
2393
|
+
}), Kr();
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2396
|
-
|
|
2395
|
+
function ea() {
|
|
2396
|
+
Br(), zr(), Jr(), Kn = r.autoSlide, wa(), tr.create(), fr.writeURL(), r.sortFragmentsOnSync === true && m.sortAll(), o !== void 0 && (o = ia(te$1, o), s = ia(_e$1, s)), mr.update(), gr.update(), sa(), wr.update(), wr.updateVisibility(), xr.update(), tr.update(true), Qn.update(), Zn.formatEmbeddedContent(), r.autoPlayMedia === false ? Zn.stopEmbeddedContent(l, { unloadIframes: false }) : Zn.startEmbeddedContent(l), ar.isActive() && ar.layout(), Gr({ type: "sync" });
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2399
|
-
|
|
2398
|
+
function ta(e4 = l) {
|
|
2399
|
+
tr.sync(e4), m.sync(e4), Zn.load(e4), tr.update(), wr.update(), Gr({
|
|
2400
2400
|
type: "slidesync",
|
|
2401
2401
|
data: { slide: e4 }
|
|
2402
2402
|
});
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2405
|
-
|
|
2404
|
+
function na() {
|
|
2405
|
+
pa().forEach((e4) => {
|
|
2406
2406
|
E$1(e4, "section").forEach((e5, t2) => {
|
|
2407
2407
|
t2 > 0 && (e5.classList.remove("present"), e5.classList.remove("past"), e5.classList.add("future"), e5.setAttribute("aria-hidden", "true"));
|
|
2408
2408
|
});
|
|
2409
2409
|
});
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function ra(e4 = pa()) {
|
|
2412
2412
|
e4.forEach((t2, n2) => {
|
|
2413
2413
|
let r2 = e4[Math.floor(Math.random() * e4.length)];
|
|
2414
2414
|
r2.parentNode === t2.parentNode && t2.parentNode.insertBefore(t2, r2);
|
|
2415
2415
|
let i2 = t2.querySelectorAll("section");
|
|
2416
|
-
i2.length &&
|
|
2416
|
+
i2.length && ra(i2);
|
|
2417
2417
|
});
|
|
2418
2418
|
}
|
|
2419
|
-
function
|
|
2420
|
-
let n2 = E$1(f.wrapper, e4), i2 = n2.length, a2 =
|
|
2419
|
+
function ia(e4, t2) {
|
|
2420
|
+
let n2 = E$1(f.wrapper, e4), i2 = n2.length, a2 = p.isActive() || nr.isActive(), o2 = false, s2 = false;
|
|
2421
2421
|
if (i2) {
|
|
2422
2422
|
r.loop && (t2 >= i2 && (o2 = true), t2 %= i2, t2 < 0 && (t2 = i2 + t2, s2 = true)), t2 = Math.max(Math.min(t2, i2 - 1), 0);
|
|
2423
2423
|
for (let e6 = 0; e6 < i2; e6++) {
|
|
2424
|
-
let i3 = n2[e6], c3 = r.rtl && !
|
|
2424
|
+
let i3 = n2[e6], c3 = r.rtl && !ei(i3);
|
|
2425
2425
|
if (i3.classList.remove("past"), i3.classList.remove("present"), i3.classList.remove("future"), i3.setAttribute("hidden", ""), i3.setAttribute("aria-hidden", "true"), i3.querySelector("section") && i3.classList.add("stack"), a2) {
|
|
2426
2426
|
i3.classList.add("present");
|
|
2427
2427
|
continue;
|
|
2428
2428
|
}
|
|
2429
|
-
e6 < t2 ? (i3.classList.add(c3 ? "future" : "past"), r.fragments &&
|
|
2429
|
+
e6 < t2 ? (i3.classList.add(c3 ? "future" : "past"), r.fragments && aa(i3)) : e6 > t2 ? (i3.classList.add(c3 ? "past" : "future"), r.fragments && oa(i3)) : e6 === t2 && r.fragments && (o2 ? oa(i3) : s2 && aa(i3));
|
|
2430
2430
|
}
|
|
2431
2431
|
let e5 = n2[t2], c2 = e5.classList.contains("present");
|
|
2432
|
-
e5.classList.add("present"), e5.removeAttribute("hidden"), e5.removeAttribute("aria-hidden"), c2 ||
|
|
2432
|
+
e5.classList.add("present"), e5.removeAttribute("hidden"), e5.removeAttribute("aria-hidden"), c2 || Gr({
|
|
2433
2433
|
target: e5,
|
|
2434
2434
|
type: "visible",
|
|
2435
2435
|
bubbles: false
|
|
@@ -2439,35 +2439,35 @@ function Ut(e3, t) {
|
|
|
2439
2439
|
} else t2 = 0;
|
|
2440
2440
|
return t2;
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function aa(e4) {
|
|
2443
2443
|
E$1(e4, ".fragment").forEach((e5) => {
|
|
2444
2444
|
e5.classList.add("visible"), e5.classList.remove("current-fragment");
|
|
2445
2445
|
});
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function oa(e4) {
|
|
2448
2448
|
E$1(e4, ".fragment.visible").forEach((e5) => {
|
|
2449
2449
|
e5.classList.remove("visible", "current-fragment");
|
|
2450
2450
|
});
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2453
|
-
let e4 =
|
|
2452
|
+
function sa() {
|
|
2453
|
+
let e4 = pa(), t2 = e4.length, n2, i2;
|
|
2454
2454
|
if (t2 && o !== void 0) {
|
|
2455
|
-
let a2 =
|
|
2456
|
-
le$1 && (c2 = a2 ? 6 : r.mobileViewDistance),
|
|
2455
|
+
let a2 = ar.isActive(), c2 = a2 ? 10 : r.viewDistance;
|
|
2456
|
+
le$1 && (c2 = a2 ? 6 : r.mobileViewDistance), nr.isActive() && (c2 = Number.MAX_VALUE);
|
|
2457
2457
|
for (let l2 = 0; l2 < t2; l2++) {
|
|
2458
|
-
let u2 = e4[l2], d2 = E$1(u2, "section"),
|
|
2459
|
-
if (n2 = Math.abs((o || 0) - l2) || 0, r.loop && (n2 = Math.abs(((o || 0) - l2) % (t2 - c2)) || 0), n2 < c2 ?
|
|
2460
|
-
let e5 = a2 ? 0 :
|
|
2461
|
-
for (let t3 = 0; t3 <
|
|
2458
|
+
let u2 = e4[l2], d2 = E$1(u2, "section"), Un2 = d2.length;
|
|
2459
|
+
if (n2 = Math.abs((o || 0) - l2) || 0, r.loop && (n2 = Math.abs(((o || 0) - l2) % (t2 - c2)) || 0), n2 < c2 ? Zn.load(u2) : Zn.unload(u2), Un2) {
|
|
2460
|
+
let e5 = a2 ? 0 : $r(u2);
|
|
2461
|
+
for (let t3 = 0; t3 < Un2; t3++) {
|
|
2462
2462
|
let r2 = d2[t3];
|
|
2463
|
-
i2 = Math.abs(l2 === (o || 0) ? (s || 0) - t3 : t3 - e5), n2 + i2 < c2 ?
|
|
2463
|
+
i2 = Math.abs(l2 === (o || 0) ? (s || 0) - t3 : t3 - e5), n2 + i2 < c2 ? Zn.load(r2) : Zn.unload(r2);
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
|
-
|
|
2467
|
+
_a2() ? f.wrapper.classList.add("has-vertical-slides") : f.wrapper.classList.remove("has-vertical-slides"), ga() ? f.wrapper.classList.add("has-horizontal-slides") : f.wrapper.classList.remove("has-horizontal-slides");
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function ca({ includeFragments: e4 = false } = {}) {
|
|
2471
2471
|
let t2 = f.wrapper.querySelectorAll(te$1), n2 = f.wrapper.querySelectorAll(_e$1), i2 = {
|
|
2472
2472
|
left: o > 0,
|
|
2473
2473
|
right: o < t2.length - 1,
|
|
@@ -2475,7 +2475,7 @@ function Ut(e3, t) {
|
|
|
2475
2475
|
down: s < n2.length - 1
|
|
2476
2476
|
};
|
|
2477
2477
|
if (r.loop && (t2.length > 1 && (i2.left = true, i2.right = true), n2.length > 1 && (i2.up = true, i2.down = true)), t2.length > 1 && r.navigationMode === "linear" && (i2.right = i2.right || i2.down, i2.left = i2.left || i2.up), e4 === true) {
|
|
2478
|
-
let e5 =
|
|
2478
|
+
let e5 = m.availableRoutes();
|
|
2479
2479
|
i2.left = i2.left || e5.prev, i2.up = i2.up || e5.prev, i2.down = i2.down || e5.next, i2.right = i2.right || e5.next;
|
|
2480
2480
|
}
|
|
2481
2481
|
if (r.rtl) {
|
|
@@ -2484,8 +2484,8 @@ function Ut(e3, t) {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
return i2;
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2488
|
-
let t2 =
|
|
2487
|
+
function la(e4 = l) {
|
|
2488
|
+
let t2 = pa(), n2 = 0;
|
|
2489
2489
|
e: for (let r2 = 0; r2 < t2.length; r2++) {
|
|
2490
2490
|
let i2 = t2[r2], a2 = i2.querySelectorAll("section");
|
|
2491
2491
|
for (let t3 = 0; t3 < a2.length; t3++) {
|
|
@@ -2497,8 +2497,8 @@ function Ut(e3, t) {
|
|
|
2497
2497
|
}
|
|
2498
2498
|
return n2;
|
|
2499
2499
|
}
|
|
2500
|
-
function
|
|
2501
|
-
let e4 =
|
|
2500
|
+
function ua() {
|
|
2501
|
+
let e4 = ya(), t2 = la();
|
|
2502
2502
|
if (l) {
|
|
2503
2503
|
let e5 = l.querySelectorAll(".fragment");
|
|
2504
2504
|
if (e5.length > 0) {
|
|
@@ -2508,11 +2508,11 @@ function Ut(e3, t) {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
return Math.min(t2 / (e4 - 1), 1);
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function da(e4) {
|
|
2512
2512
|
let t2 = o, n2 = s, r2;
|
|
2513
|
-
if (e4) if (
|
|
2513
|
+
if (e4) if (p.isActive()) t2 = parseInt(e4.getAttribute("data-index-h"), 10), e4.getAttribute("data-index-v") && (n2 = parseInt(e4.getAttribute("data-index-v"), 10));
|
|
2514
2514
|
else {
|
|
2515
|
-
let r3 =
|
|
2515
|
+
let r3 = ei(e4), i2 = r3 ? e4.parentNode : e4, a2 = pa();
|
|
2516
2516
|
t2 = Math.max(a2.indexOf(i2), 0), n2 = void 0, r3 && (n2 = Math.max(E$1(e4.parentNode, "section").indexOf(e4), 0));
|
|
2517
2517
|
}
|
|
2518
2518
|
if (!e4 && l && l.querySelectorAll(".fragment").length > 0) {
|
|
@@ -2525,26 +2525,26 @@ function Ut(e3, t) {
|
|
|
2525
2525
|
f: r2
|
|
2526
2526
|
};
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function fa() {
|
|
2529
2529
|
return E$1(f.wrapper, de$1 + ':not(.stack):not([data-visibility="uncounted"])');
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function pa() {
|
|
2532
2532
|
return E$1(f.wrapper, te$1);
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function ma() {
|
|
2535
2535
|
return E$1(f.wrapper, ".slides>section>section");
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function ha() {
|
|
2538
2538
|
return E$1(f.wrapper, te$1 + ".stack");
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2541
|
-
return
|
|
2540
|
+
function ga() {
|
|
2541
|
+
return pa().length > 1;
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2544
|
-
return
|
|
2543
|
+
function _a2() {
|
|
2544
|
+
return ma().length > 1;
|
|
2545
2545
|
}
|
|
2546
|
-
function
|
|
2547
|
-
return
|
|
2546
|
+
function va() {
|
|
2547
|
+
return fa().map((e4) => {
|
|
2548
2548
|
let t2 = {};
|
|
2549
2549
|
for (let n2 = 0; n2 < e4.attributes.length; n2++) {
|
|
2550
2550
|
let r2 = e4.attributes[n2];
|
|
@@ -2553,102 +2553,102 @@ function Ut(e3, t) {
|
|
|
2553
2553
|
return t2;
|
|
2554
2554
|
});
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2557
|
-
return
|
|
2556
|
+
function ya() {
|
|
2557
|
+
return fa().length;
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2560
|
-
let n2 =
|
|
2559
|
+
function ba(e4, t2) {
|
|
2560
|
+
let n2 = pa()[e4], r2 = n2 && n2.querySelectorAll("section");
|
|
2561
2561
|
return r2 && r2.length && typeof t2 == "number" ? r2 ? r2[t2] : void 0 : n2;
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2564
|
-
let n2 = typeof e4 == "number" ?
|
|
2563
|
+
function xa(e4, t2) {
|
|
2564
|
+
let n2 = typeof e4 == "number" ? ba(e4, t2) : e4;
|
|
2565
2565
|
if (n2) return n2.slideBackgroundElement;
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2568
|
-
let e4 =
|
|
2567
|
+
function Sa() {
|
|
2568
|
+
let e4 = da();
|
|
2569
2569
|
return Q$1({
|
|
2570
2570
|
indexh: e4.h,
|
|
2571
2571
|
indexv: e4.v,
|
|
2572
2572
|
indexf: e4.f,
|
|
2573
|
-
paused:
|
|
2574
|
-
overview:
|
|
2575
|
-
},
|
|
2573
|
+
paused: ci(),
|
|
2574
|
+
overview: ar.isActive()
|
|
2575
|
+
}, xr.getState());
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function Ca(e4) {
|
|
2578
2578
|
if (typeof e4 == "object") {
|
|
2579
|
-
|
|
2579
|
+
fi(fe$1(e4.indexh), fe$1(e4.indexv), fe$1(e4.indexf));
|
|
2580
2580
|
let t2 = fe$1(e4.paused), n2 = fe$1(e4.overview);
|
|
2581
|
-
typeof t2 == "boolean" && t2 !==
|
|
2581
|
+
typeof t2 == "boolean" && t2 !== ci() && si(t2), typeof n2 == "boolean" && n2 !== ar.isActive() && ar.toggle(n2), xr.setState(e4);
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2585
|
-
if (
|
|
2584
|
+
function wa() {
|
|
2585
|
+
if (Ta(), l && r.autoSlide !== false) {
|
|
2586
2586
|
let e4 = l.querySelector(".current-fragment[data-autoslide]"), t2 = e4 ? e4.getAttribute("data-autoslide") : null, n2 = l.parentNode ? l.parentNode.getAttribute("data-autoslide") : null, i2 = l.getAttribute("data-autoslide");
|
|
2587
|
-
t2 ?
|
|
2588
|
-
e5.hasAttribute("data-autoplay") &&
|
|
2589
|
-
})),
|
|
2590
|
-
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() :
|
|
2591
|
-
},
|
|
2587
|
+
t2 ? Kn = parseInt(t2, 10) : i2 ? Kn = parseInt(i2, 10) : n2 ? Kn = parseInt(n2, 10) : (Kn = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && E$1(l, "video, audio").forEach((e5) => {
|
|
2588
|
+
e5.hasAttribute("data-autoplay") && Kn && e5.duration * 1e3 / e5.playbackRate > Kn && (Kn = e5.duration * 1e3 / e5.playbackRate + 1e3);
|
|
2589
|
+
})), Kn && !Xn && !ci() && !ar.isActive() && (!ii() || m.availableRoutes().next || r.loop === true) && (Jn = setTimeout(() => {
|
|
2590
|
+
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Na(), wa();
|
|
2591
|
+
}, Kn), Yn = Date.now()), qn && qn.setPlaying(Jn !== -1);
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2595
|
-
clearTimeout(
|
|
2594
|
+
function Ta() {
|
|
2595
|
+
clearTimeout(Jn), Jn = -1;
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2598
|
-
|
|
2597
|
+
function Ea() {
|
|
2598
|
+
Kn && !Xn && (Xn = true, Gr({ type: "autoslidepaused" }), clearTimeout(Jn), qn && qn.setPlaying(false));
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2601
|
-
|
|
2600
|
+
function Da() {
|
|
2601
|
+
Kn && Xn && (Xn = false, Gr({ type: "autoslideresumed" }), wa());
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2604
|
-
if (u.hasNavigatedHorizontally = true,
|
|
2605
|
-
r.rtl ? (
|
|
2603
|
+
function Oa({ skipFragments: e4 = false } = {}) {
|
|
2604
|
+
if (u.hasNavigatedHorizontally = true, p.isActive()) return p.prev();
|
|
2605
|
+
r.rtl ? (ar.isActive() || e4 || m.next() === false) && ca().left && fi(o + 1, r.navigationMode === "grid" ? s : void 0) : (ar.isActive() || e4 || m.prev() === false) && ca().left && fi(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2608
|
-
if (u.hasNavigatedHorizontally = true,
|
|
2609
|
-
r.rtl ? (
|
|
2607
|
+
function ka({ skipFragments: e4 = false } = {}) {
|
|
2608
|
+
if (u.hasNavigatedHorizontally = true, p.isActive()) return p.next();
|
|
2609
|
+
r.rtl ? (ar.isActive() || e4 || m.prev() === false) && ca().right && fi(o - 1, r.navigationMode === "grid" ? s : void 0) : (ar.isActive() || e4 || m.next() === false) && ca().right && fi(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2612
|
-
if (
|
|
2613
|
-
(
|
|
2611
|
+
function Aa({ skipFragments: e4 = false } = {}) {
|
|
2612
|
+
if (p.isActive()) return p.prev();
|
|
2613
|
+
(ar.isActive() || e4 || m.prev() === false) && ca().up && fi(o, s - 1);
|
|
2614
2614
|
}
|
|
2615
|
-
function
|
|
2616
|
-
if (u.hasNavigatedVertically = true,
|
|
2617
|
-
(
|
|
2615
|
+
function ja({ skipFragments: e4 = false } = {}) {
|
|
2616
|
+
if (u.hasNavigatedVertically = true, p.isActive()) return p.next();
|
|
2617
|
+
(ar.isActive() || e4 || m.next() === false) && ca().down && fi(o, s + 1);
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2620
|
-
if (
|
|
2621
|
-
if (e4 ||
|
|
2619
|
+
function Ma({ skipFragments: e4 = false } = {}) {
|
|
2620
|
+
if (p.isActive()) return p.prev();
|
|
2621
|
+
if (e4 || m.prev() === false) if (ca().up) Aa({ skipFragments: e4 });
|
|
2622
2622
|
else {
|
|
2623
2623
|
let t2;
|
|
2624
2624
|
if (t2 = r.rtl ? E$1(f.wrapper, te$1 + ".future").pop() : E$1(f.wrapper, te$1 + ".past").pop(), t2 && t2.classList.contains("stack")) {
|
|
2625
2625
|
let e5 = t2.querySelectorAll("section").length - 1 || void 0;
|
|
2626
|
-
|
|
2627
|
-
} else r.rtl ?
|
|
2626
|
+
fi(o - 1, e5);
|
|
2627
|
+
} else r.rtl ? ka({ skipFragments: e4 }) : Oa({ skipFragments: e4 });
|
|
2628
2628
|
}
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2631
|
-
if (u.hasNavigatedHorizontally = true, u.hasNavigatedVertically = true,
|
|
2632
|
-
if (e4 ||
|
|
2633
|
-
let t2 =
|
|
2634
|
-
t2.down && t2.right && r.loop &&
|
|
2630
|
+
function Na({ skipFragments: e4 = false } = {}) {
|
|
2631
|
+
if (u.hasNavigatedHorizontally = true, u.hasNavigatedVertically = true, p.isActive()) return p.next();
|
|
2632
|
+
if (e4 || m.next() === false) {
|
|
2633
|
+
let t2 = ca();
|
|
2634
|
+
t2.down && t2.right && r.loop && ni() && (t2.down = false), t2.down ? ja({ skipFragments: e4 }) : r.rtl ? Oa({ skipFragments: e4 }) : ka({ skipFragments: e4 });
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2638
|
-
r.autoSlideStoppable &&
|
|
2637
|
+
function Pa(e4) {
|
|
2638
|
+
r.autoSlideStoppable && Ea();
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2640
|
+
function Fa(e4) {
|
|
2641
2641
|
let t2 = e4.data;
|
|
2642
2642
|
if (typeof t2 == "string" && t2.charAt(0) === "{" && t2.charAt(t2.length - 1) === "}" && (t2 = JSON.parse(t2), t2.method && typeof n[t2.method] == "function")) if (Li.test(t2.method) === false) {
|
|
2643
2643
|
let e5 = n[t2.method].apply(n, t2.args);
|
|
2644
|
-
|
|
2644
|
+
qr("callback", {
|
|
2645
2645
|
method: t2.method,
|
|
2646
2646
|
result: e5
|
|
2647
2647
|
});
|
|
2648
2648
|
} else console.warn('reveal.js: "' + t2.method + '" is is blacklisted from the postMessage API');
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2651
|
-
|
|
2650
|
+
function Ia(e4) {
|
|
2651
|
+
Gn === "running" && /section/gi.test(e4.target.nodeName) && (Gn = "idle", Gr({
|
|
2652
2652
|
type: "slidetransitionend",
|
|
2653
2653
|
data: {
|
|
2654
2654
|
indexh: o,
|
|
@@ -2658,153 +2658,153 @@ function Ut(e3, t) {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
}));
|
|
2660
2660
|
}
|
|
2661
|
-
function
|
|
2661
|
+
function La(e4) {
|
|
2662
2662
|
let t2 = V$1(e4.target, 'a[href^="#"]');
|
|
2663
2663
|
if (t2) {
|
|
2664
|
-
let r2 = t2.getAttribute("href"), i2 =
|
|
2664
|
+
let r2 = t2.getAttribute("href"), i2 = fr.getIndicesFromHash(r2);
|
|
2665
2665
|
i2 && (n.slide(i2.h, i2.v, i2.f), e4.preventDefault());
|
|
2666
2666
|
}
|
|
2667
2667
|
}
|
|
2668
|
-
function
|
|
2669
|
-
|
|
2668
|
+
function Ra(e4) {
|
|
2669
|
+
Jr();
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function za(e4) {
|
|
2672
2672
|
document.hidden === false && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function Ba(e4) {
|
|
2675
2675
|
(document.fullscreenElement || document.webkitFullscreenElement) === f.wrapper && (e4.stopImmediatePropagation(), setTimeout(() => {
|
|
2676
2676
|
n.layout(), n.focus.focus();
|
|
2677
2677
|
}, 1));
|
|
2678
2678
|
}
|
|
2679
|
-
function
|
|
2680
|
-
|
|
2679
|
+
function Va(e4) {
|
|
2680
|
+
ii() && r.loop === false ? (fi(0, 0), Da()) : Xn ? Da() : Ea();
|
|
2681
2681
|
}
|
|
2682
|
-
let
|
|
2682
|
+
let Ha = {
|
|
2683
2683
|
VERSION: Ot,
|
|
2684
|
-
initialize:
|
|
2685
|
-
configure:
|
|
2686
|
-
destroy:
|
|
2687
|
-
sync:
|
|
2688
|
-
syncSlide:
|
|
2689
|
-
syncFragments:
|
|
2690
|
-
slide:
|
|
2691
|
-
left:
|
|
2692
|
-
right:
|
|
2693
|
-
up:
|
|
2694
|
-
down:
|
|
2695
|
-
prev:
|
|
2696
|
-
next:
|
|
2697
|
-
navigateLeft:
|
|
2698
|
-
navigateRight:
|
|
2699
|
-
navigateUp:
|
|
2700
|
-
navigateDown:
|
|
2701
|
-
navigatePrev:
|
|
2702
|
-
navigateNext:
|
|
2703
|
-
navigateFragment:
|
|
2704
|
-
prevFragment:
|
|
2705
|
-
nextFragment:
|
|
2706
|
-
on:
|
|
2707
|
-
off:
|
|
2708
|
-
addEventListener:
|
|
2709
|
-
removeEventListener:
|
|
2710
|
-
layout:
|
|
2711
|
-
shuffle:
|
|
2712
|
-
availableRoutes:
|
|
2713
|
-
availableFragments:
|
|
2714
|
-
toggleHelp:
|
|
2715
|
-
toggleOverview:
|
|
2716
|
-
toggleScrollView:
|
|
2717
|
-
togglePause:
|
|
2718
|
-
toggleAutoSlide:
|
|
2719
|
-
toggleJumpToSlide:
|
|
2720
|
-
isFirstSlide:
|
|
2721
|
-
isLastSlide:
|
|
2722
|
-
isLastVerticalSlide:
|
|
2723
|
-
isVerticalSlide:
|
|
2724
|
-
isVerticalStack:
|
|
2725
|
-
isPaused:
|
|
2726
|
-
isAutoSliding:
|
|
2727
|
-
isSpeakerNotes:
|
|
2728
|
-
isOverview:
|
|
2729
|
-
isFocused:
|
|
2730
|
-
isOverlayOpen:
|
|
2731
|
-
isScrollView:
|
|
2732
|
-
isPrintView:
|
|
2684
|
+
initialize: Tr,
|
|
2685
|
+
configure: Rr,
|
|
2686
|
+
destroy: Vr,
|
|
2687
|
+
sync: ea,
|
|
2688
|
+
syncSlide: ta,
|
|
2689
|
+
syncFragments: m.sync.bind(m),
|
|
2690
|
+
slide: fi,
|
|
2691
|
+
left: Oa,
|
|
2692
|
+
right: ka,
|
|
2693
|
+
up: Aa,
|
|
2694
|
+
down: ja,
|
|
2695
|
+
prev: Ma,
|
|
2696
|
+
next: Na,
|
|
2697
|
+
navigateLeft: Oa,
|
|
2698
|
+
navigateRight: ka,
|
|
2699
|
+
navigateUp: Aa,
|
|
2700
|
+
navigateDown: ja,
|
|
2701
|
+
navigatePrev: Ma,
|
|
2702
|
+
navigateNext: Na,
|
|
2703
|
+
navigateFragment: m.goto.bind(m),
|
|
2704
|
+
prevFragment: m.prev.bind(m),
|
|
2705
|
+
nextFragment: m.next.bind(m),
|
|
2706
|
+
on: Hr,
|
|
2707
|
+
off: Ur,
|
|
2708
|
+
addEventListener: Hr,
|
|
2709
|
+
removeEventListener: Ur,
|
|
2710
|
+
layout: Jr,
|
|
2711
|
+
shuffle: ra,
|
|
2712
|
+
availableRoutes: ca,
|
|
2713
|
+
availableFragments: m.availableRoutes.bind(m),
|
|
2714
|
+
toggleHelp: xr.toggleHelp.bind(xr),
|
|
2715
|
+
toggleOverview: ar.toggle.bind(ar),
|
|
2716
|
+
toggleScrollView: p.toggle.bind(p),
|
|
2717
|
+
togglePause: si,
|
|
2718
|
+
toggleAutoSlide: ui,
|
|
2719
|
+
toggleJumpToSlide: li,
|
|
2720
|
+
isFirstSlide: ri,
|
|
2721
|
+
isLastSlide: ii,
|
|
2722
|
+
isLastVerticalSlide: ni,
|
|
2723
|
+
isVerticalSlide: ei,
|
|
2724
|
+
isVerticalStack: ti,
|
|
2725
|
+
isPaused: ci,
|
|
2726
|
+
isAutoSliding: di,
|
|
2727
|
+
isSpeakerNotes: wr.isSpeakerNotesWindow.bind(wr),
|
|
2728
|
+
isOverview: ar.isActive.bind(ar),
|
|
2729
|
+
isFocused: Sr.isFocused.bind(Sr),
|
|
2730
|
+
isOverlayOpen: xr.isOpen.bind(xr),
|
|
2731
|
+
isScrollView: p.isActive.bind(p),
|
|
2732
|
+
isPrintView: nr.isActive.bind(nr),
|
|
2733
2733
|
isReady: () => a,
|
|
2734
|
-
loadSlide:
|
|
2735
|
-
unloadSlide:
|
|
2736
|
-
startEmbeddedContent: () =>
|
|
2737
|
-
stopEmbeddedContent: () =>
|
|
2738
|
-
previewIframe:
|
|
2739
|
-
previewImage:
|
|
2740
|
-
previewVideo:
|
|
2741
|
-
showPreview:
|
|
2742
|
-
hidePreview:
|
|
2743
|
-
addEventListeners:
|
|
2744
|
-
removeEventListeners:
|
|
2745
|
-
dispatchEvent:
|
|
2746
|
-
getState:
|
|
2747
|
-
setState:
|
|
2748
|
-
getProgress:
|
|
2749
|
-
getIndices:
|
|
2750
|
-
getSlidesAttributes:
|
|
2751
|
-
getSlidePastCount:
|
|
2752
|
-
getTotalSlides:
|
|
2753
|
-
getSlide:
|
|
2734
|
+
loadSlide: Zn.load.bind(Zn),
|
|
2735
|
+
unloadSlide: Zn.unload.bind(Zn),
|
|
2736
|
+
startEmbeddedContent: () => Zn.startEmbeddedContent(l),
|
|
2737
|
+
stopEmbeddedContent: () => Zn.stopEmbeddedContent(l, { unloadIframes: false }),
|
|
2738
|
+
previewIframe: xr.previewIframe.bind(xr),
|
|
2739
|
+
previewImage: xr.previewImage.bind(xr),
|
|
2740
|
+
previewVideo: xr.previewVideo.bind(xr),
|
|
2741
|
+
showPreview: xr.previewIframe.bind(xr),
|
|
2742
|
+
hidePreview: xr.close.bind(xr),
|
|
2743
|
+
addEventListeners: zr,
|
|
2744
|
+
removeEventListeners: Br,
|
|
2745
|
+
dispatchEvent: Gr,
|
|
2746
|
+
getState: Sa,
|
|
2747
|
+
setState: Ca,
|
|
2748
|
+
getProgress: ua,
|
|
2749
|
+
getIndices: da,
|
|
2750
|
+
getSlidesAttributes: va,
|
|
2751
|
+
getSlidePastCount: la,
|
|
2752
|
+
getTotalSlides: ya,
|
|
2753
|
+
getSlide: ba,
|
|
2754
2754
|
getPreviousSlide: () => c,
|
|
2755
2755
|
getCurrentSlide: () => l,
|
|
2756
|
-
getSlideBackground:
|
|
2757
|
-
getSlideNotes:
|
|
2758
|
-
getSlides:
|
|
2759
|
-
getHorizontalSlides:
|
|
2760
|
-
getVerticalSlides:
|
|
2761
|
-
hasHorizontalSlides:
|
|
2762
|
-
hasVerticalSlides:
|
|
2756
|
+
getSlideBackground: xa,
|
|
2757
|
+
getSlideNotes: wr.getSlideNotes.bind(wr),
|
|
2758
|
+
getSlides: fa,
|
|
2759
|
+
getHorizontalSlides: pa,
|
|
2760
|
+
getVerticalSlides: ma,
|
|
2761
|
+
hasHorizontalSlides: ga,
|
|
2762
|
+
hasVerticalSlides: _a2,
|
|
2763
2763
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2764
2764
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2765
|
-
shouldAutoAnimateBetween:
|
|
2766
|
-
addKeyBinding:
|
|
2767
|
-
removeKeyBinding:
|
|
2768
|
-
triggerKey:
|
|
2769
|
-
registerKeyboardShortcut:
|
|
2770
|
-
getComputedSlideSize:
|
|
2771
|
-
setCurrentScrollPage:
|
|
2772
|
-
removeHiddenSlides:
|
|
2773
|
-
getScale: () =>
|
|
2765
|
+
shouldAutoAnimateBetween: hi,
|
|
2766
|
+
addKeyBinding: or.addKeyBinding.bind(or),
|
|
2767
|
+
removeKeyBinding: or.removeKeyBinding.bind(or),
|
|
2768
|
+
triggerKey: or.triggerKey.bind(or),
|
|
2769
|
+
registerKeyboardShortcut: or.registerKeyboardShortcut.bind(or),
|
|
2770
|
+
getComputedSlideSize: Zr,
|
|
2771
|
+
setCurrentScrollPage: gi,
|
|
2772
|
+
removeHiddenSlides: kr,
|
|
2773
|
+
getScale: () => Un,
|
|
2774
2774
|
getConfig: () => r,
|
|
2775
2775
|
getQueryHash: Mt,
|
|
2776
|
-
getSlidePath:
|
|
2776
|
+
getSlidePath: fr.getHash.bind(fr),
|
|
2777
2777
|
getRevealElement: () => e3,
|
|
2778
2778
|
getSlidesElement: () => f.slides,
|
|
2779
2779
|
getViewportElement: () => f.viewport,
|
|
2780
|
-
getBackgroundsElement: () =>
|
|
2781
|
-
registerPlugin:
|
|
2782
|
-
hasPlugin:
|
|
2783
|
-
getPlugin:
|
|
2784
|
-
getPlugins:
|
|
2780
|
+
getBackgroundsElement: () => tr.element,
|
|
2781
|
+
registerPlugin: br.registerPlugin.bind(br),
|
|
2782
|
+
hasPlugin: br.hasPlugin.bind(br),
|
|
2783
|
+
getPlugin: br.getPlugin.bind(br),
|
|
2784
|
+
getPlugins: br.getRegisteredPlugins.bind(br)
|
|
2785
2785
|
};
|
|
2786
|
-
return ge$1(n, We$1(Q$1({},
|
|
2787
|
-
announceStatus:
|
|
2788
|
-
getStatusText:
|
|
2789
|
-
focus:
|
|
2790
|
-
scroll:
|
|
2791
|
-
progress:
|
|
2792
|
-
controls:
|
|
2793
|
-
location:
|
|
2794
|
-
overview:
|
|
2795
|
-
keyboard:
|
|
2796
|
-
fragments:
|
|
2797
|
-
backgrounds:
|
|
2798
|
-
slideContent:
|
|
2799
|
-
slideNumber:
|
|
2800
|
-
onUserInput:
|
|
2801
|
-
closeOverlay:
|
|
2802
|
-
updateSlidesVisibility:
|
|
2803
|
-
layoutSlideContents:
|
|
2804
|
-
transformSlides:
|
|
2805
|
-
cueAutoSlide:
|
|
2806
|
-
cancelAutoSlide:
|
|
2807
|
-
})),
|
|
2786
|
+
return ge$1(n, We$1(Q$1({}, Ha), {
|
|
2787
|
+
announceStatus: Mr,
|
|
2788
|
+
getStatusText: Nr,
|
|
2789
|
+
focus: Sr,
|
|
2790
|
+
scroll: p,
|
|
2791
|
+
progress: gr,
|
|
2792
|
+
controls: mr,
|
|
2793
|
+
location: fr,
|
|
2794
|
+
overview: ar,
|
|
2795
|
+
keyboard: or,
|
|
2796
|
+
fragments: m,
|
|
2797
|
+
backgrounds: tr,
|
|
2798
|
+
slideContent: Zn,
|
|
2799
|
+
slideNumber: Qn,
|
|
2800
|
+
onUserInput: Pa,
|
|
2801
|
+
closeOverlay: xr.close.bind(xr),
|
|
2802
|
+
updateSlidesVisibility: sa,
|
|
2803
|
+
layoutSlideContents: Yr,
|
|
2804
|
+
transformSlides: Wr,
|
|
2805
|
+
cueAutoSlide: wa,
|
|
2806
|
+
cancelAutoSlide: Ta
|
|
2807
|
+
})), Ha;
|
|
2808
2808
|
}
|
|
2809
2809
|
var ce = Ut, qt = [];
|
|
2810
2810
|
ce.initialize = (e3) => {
|
|
@@ -2849,36 +2849,36 @@ function v(e3, t, n) {
|
|
|
2849
2849
|
function y(e3, t, n) {
|
|
2850
2850
|
return e3 ? JSON.stringify(v(e3, t, n)) : "[]";
|
|
2851
2851
|
}
|
|
2852
|
-
function b({ config: e3, plugins: t = ee, onReady: n, onSync: r, onSlideSync: i, onSlideChange: a, onSlideTransitionEnd: o, onFragmentShown: s, onFragmentHidden: c, onOverviewShown: l, onOverviewHidden: u, onPaused: d, onResumed:
|
|
2853
|
-
let
|
|
2852
|
+
function b({ config: e3, plugins: t = ee, onReady: n, onSync: r, onSlideSync: i, onSlideChange: a, onSlideTransitionEnd: o, onFragmentShown: s, onFragmentHidden: c, onOverviewShown: l, onOverviewHidden: u, onPaused: d, onResumed: Un, deckRef: Wn, className: f, style: Gn, children: Kn }) {
|
|
2853
|
+
let qn = (0, import_react.useRef)(null), Jn = (0, import_react.useRef)(null), Yn = (0, import_react.useRef)(null), [Xn, Qn] = (0, import_react.useState)(null), $n = (0, import_react.useRef)(t), er = (0, import_react.useRef)(false), tr = (0, import_react.useRef)(e3), p = (0, import_react.useRef)(null), nr = (0, import_react.useRef)(/* @__PURE__ */ new WeakMap()), m = (0, import_react.useRef)(1), rr = (0, import_react.useRef)(false), ir = (0, import_react.useRef)(0);
|
|
2854
2854
|
return (0, import_react.useEffect)(() => {
|
|
2855
|
-
if (
|
|
2855
|
+
if (rr.current = true, ir.current += 1, Yn.current) Yn.current.isReady() && Qn(Yn.current);
|
|
2856
2856
|
else {
|
|
2857
|
-
let t2 = new ce(
|
|
2857
|
+
let t2 = new ce(qn.current, {
|
|
2858
2858
|
...e3,
|
|
2859
|
-
plugins:
|
|
2859
|
+
plugins: $n.current
|
|
2860
2860
|
});
|
|
2861
|
-
|
|
2862
|
-
!
|
|
2861
|
+
tr.current = e3, Yn.current = t2, t2.initialize().then(() => {
|
|
2862
|
+
!rr.current || Yn.current !== t2 || (Qn(t2), n == null ? void 0 : n(t2));
|
|
2863
2863
|
});
|
|
2864
2864
|
}
|
|
2865
2865
|
return () => {
|
|
2866
|
-
|
|
2867
|
-
let e4 =
|
|
2866
|
+
rr.current = false;
|
|
2867
|
+
let e4 = Yn.current;
|
|
2868
2868
|
if (!e4) return;
|
|
2869
|
-
let t2 = ++
|
|
2869
|
+
let t2 = ++ir.current;
|
|
2870
2870
|
Promise.resolve().then(() => {
|
|
2871
|
-
if (!(
|
|
2871
|
+
if (!(rr.current || ir.current !== t2) && Yn.current === e4) {
|
|
2872
2872
|
try {
|
|
2873
2873
|
e4.destroy();
|
|
2874
2874
|
} catch {
|
|
2875
2875
|
}
|
|
2876
|
-
|
|
2876
|
+
Yn.current === e4 && (Yn.current = null);
|
|
2877
2877
|
}
|
|
2878
2878
|
});
|
|
2879
2879
|
};
|
|
2880
|
-
}, []), (0, import_react.useEffect)(() => (g(
|
|
2881
|
-
if (!
|
|
2880
|
+
}, []), (0, import_react.useEffect)(() => (g(Wn, Xn), () => g(Wn, null)), [Wn, Xn]), (0, import_react.useEffect)(() => {
|
|
2881
|
+
if (!Xn) return;
|
|
2882
2882
|
let e4 = [
|
|
2883
2883
|
["sync", r],
|
|
2884
2884
|
["slidesync", i],
|
|
@@ -2889,14 +2889,14 @@ function b({ config: e3, plugins: t = ee, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2889
2889
|
["overviewshown", l],
|
|
2890
2890
|
["overviewhidden", u],
|
|
2891
2891
|
["paused", d],
|
|
2892
|
-
["resumed",
|
|
2892
|
+
["resumed", Un]
|
|
2893
2893
|
].filter((e5) => e5[1] != null);
|
|
2894
|
-
for (let [t2, n2] of e4)
|
|
2894
|
+
for (let [t2, n2] of e4) Xn.on(t2, n2);
|
|
2895
2895
|
return () => {
|
|
2896
|
-
for (let [t2, n2] of e4)
|
|
2896
|
+
for (let [t2, n2] of e4) Xn.off(t2, n2);
|
|
2897
2897
|
};
|
|
2898
2898
|
}, [
|
|
2899
|
-
|
|
2899
|
+
Xn,
|
|
2900
2900
|
r,
|
|
2901
2901
|
i,
|
|
2902
2902
|
a,
|
|
@@ -2906,30 +2906,30 @@ function b({ config: e3, plugins: t = ee, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2906
2906
|
l,
|
|
2907
2907
|
u,
|
|
2908
2908
|
d,
|
|
2909
|
-
|
|
2909
|
+
Un
|
|
2910
2910
|
]), (0, import_react.useLayoutEffect)(() => {
|
|
2911
2911
|
var _a2;
|
|
2912
|
-
!
|
|
2913
|
-
}, [
|
|
2912
|
+
!Xn || !((_a2 = Yn.current) == null ? void 0 : _a2.isReady()) || te(tr.current, e3) && (er.current = true, Yn.current.configure(e3 ?? {}), tr.current = e3);
|
|
2913
|
+
}, [Xn, e3]), (0, import_react.useLayoutEffect)(() => {
|
|
2914
2914
|
var _a2;
|
|
2915
|
-
let e4 =
|
|
2916
|
-
|
|
2917
|
-
let t2 = y(
|
|
2915
|
+
let e4 = er.current;
|
|
2916
|
+
er.current = false;
|
|
2917
|
+
let t2 = y(Jn.current, nr.current, m);
|
|
2918
2918
|
if (e4) {
|
|
2919
|
-
|
|
2919
|
+
p.current = t2;
|
|
2920
2920
|
return;
|
|
2921
2921
|
}
|
|
2922
|
-
((_a2 =
|
|
2922
|
+
((_a2 = Yn.current) == null ? void 0 : _a2.isReady()) && p.current !== t2 && (Yn.current.sync(), p.current = t2);
|
|
2923
2923
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(h.Provider, {
|
|
2924
|
-
value:
|
|
2924
|
+
value: Xn,
|
|
2925
2925
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
2926
2926
|
className: f ? `reveal ${f}` : "reveal",
|
|
2927
|
-
style:
|
|
2928
|
-
ref:
|
|
2927
|
+
style: Gn,
|
|
2928
|
+
ref: qn,
|
|
2929
2929
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
2930
2930
|
className: "slides",
|
|
2931
|
-
ref:
|
|
2932
|
-
children:
|
|
2931
|
+
ref: Jn,
|
|
2932
|
+
children: Kn
|
|
2933
2933
|
})
|
|
2934
2934
|
})
|
|
2935
2935
|
});
|
|
@@ -2981,8 +2981,8 @@ function C(e3, t) {
|
|
|
2981
2981
|
}
|
|
2982
2982
|
return n;
|
|
2983
2983
|
}
|
|
2984
|
-
function w({ children: e3, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: d, backgroundOpacity:
|
|
2985
|
-
let
|
|
2984
|
+
function w({ children: e3, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: d, backgroundOpacity: Un, backgroundTransition: Wn, visibility: f, autoAnimate: Gn, autoAnimateId: Kn, autoAnimateRestart: qn, autoAnimateUnmatched: Jn, autoAnimateEasing: Yn, autoAnimateDuration: Xn, autoAnimateDelay: Qn, transition: $n, transitionSpeed: er, autoSlide: tr, notes: p, backgroundInteractive: nr, preload: m, ...rr }) {
|
|
2985
|
+
let ir = (0, import_react.useContext)(h), ar = (0, import_react.useRef)(null), or = (0, import_react.useRef)(null), sr = (0, import_react.useRef)(null), cr = C(rr, {
|
|
2986
2986
|
background: t,
|
|
2987
2987
|
backgroundImage: n,
|
|
2988
2988
|
backgroundVideo: r,
|
|
@@ -2994,36 +2994,36 @@ function w({ children: e3, background: t, backgroundImage: n, backgroundVideo: r
|
|
|
2994
2994
|
backgroundSize: l,
|
|
2995
2995
|
backgroundPosition: u,
|
|
2996
2996
|
backgroundRepeat: d,
|
|
2997
|
-
backgroundOpacity:
|
|
2998
|
-
backgroundTransition:
|
|
2997
|
+
backgroundOpacity: Un,
|
|
2998
|
+
backgroundTransition: Wn,
|
|
2999
2999
|
visibility: f,
|
|
3000
|
-
autoAnimate:
|
|
3001
|
-
autoAnimateId:
|
|
3002
|
-
autoAnimateRestart:
|
|
3003
|
-
autoAnimateUnmatched:
|
|
3004
|
-
autoAnimateEasing:
|
|
3005
|
-
autoAnimateDuration:
|
|
3006
|
-
autoAnimateDelay:
|
|
3007
|
-
transition:
|
|
3008
|
-
transitionSpeed:
|
|
3009
|
-
autoSlide:
|
|
3010
|
-
notes:
|
|
3011
|
-
backgroundInteractive:
|
|
3000
|
+
autoAnimate: Gn,
|
|
3001
|
+
autoAnimateId: Kn,
|
|
3002
|
+
autoAnimateRestart: qn,
|
|
3003
|
+
autoAnimateUnmatched: Jn,
|
|
3004
|
+
autoAnimateEasing: Yn,
|
|
3005
|
+
autoAnimateDuration: Xn,
|
|
3006
|
+
autoAnimateDelay: Qn,
|
|
3007
|
+
transition: $n,
|
|
3008
|
+
transitionSpeed: er,
|
|
3009
|
+
autoSlide: tr,
|
|
3010
|
+
notes: p,
|
|
3011
|
+
backgroundInteractive: nr,
|
|
3012
3012
|
preload: m
|
|
3013
|
-
}),
|
|
3013
|
+
}), lr = S(cr);
|
|
3014
3014
|
return (0, import_react.useLayoutEffect)(() => {
|
|
3015
|
-
let e4 =
|
|
3016
|
-
if (!
|
|
3017
|
-
if (
|
|
3018
|
-
|
|
3015
|
+
let e4 = ar.current;
|
|
3016
|
+
if (!ir || !e4 || typeof ir.syncSlide != "function") return;
|
|
3017
|
+
if (or.current !== ir) {
|
|
3018
|
+
or.current = ir, sr.current = lr;
|
|
3019
3019
|
return;
|
|
3020
3020
|
}
|
|
3021
|
-
if (
|
|
3022
|
-
let t2 =
|
|
3023
|
-
t2 && n2 || (
|
|
3024
|
-
}, [
|
|
3025
|
-
ref:
|
|
3026
|
-
...
|
|
3021
|
+
if (lr === "[]") return;
|
|
3022
|
+
let t2 = or.current === ir, n2 = sr.current === lr;
|
|
3023
|
+
t2 && n2 || (ir.syncSlide(e4), or.current = ir, sr.current = lr);
|
|
3024
|
+
}, [ir, lr]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", {
|
|
3025
|
+
ref: ar,
|
|
3026
|
+
...cr,
|
|
3027
3027
|
children: e3
|
|
3028
3028
|
});
|
|
3029
3029
|
}
|
|
@@ -3405,16 +3405,16 @@ ${c}` : c;
|
|
|
3405
3405
|
r2 = t[0], e3 = e3.substring(r2.length);
|
|
3406
3406
|
let c = Qe(t[2].split("\n", 1)[0], t[1].length), l = e3.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
3407
3407
|
if (this.options.pedantic ? (d = 2, s2 = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s2 = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r2 += l + "\n", e3 = e3.substring(l.length + 1), n2 = true), !n2) {
|
|
3408
|
-
let t2 = this.rules.other.nextBulletRegex(d), n3 = this.rules.other.hrRegex(d), i2 = this.rules.other.fencesBeginRegex(d), a2 = this.rules.other.headingBeginRegex(d), o2 = this.rules.other.htmlBeginRegex(d),
|
|
3408
|
+
let t2 = this.rules.other.nextBulletRegex(d), n3 = this.rules.other.hrRegex(d), i2 = this.rules.other.fencesBeginRegex(d), a2 = this.rules.other.headingBeginRegex(d), o2 = this.rules.other.htmlBeginRegex(d), Un = this.rules.other.blockquoteBeginRegex(d);
|
|
3409
3409
|
for (; e3; ) {
|
|
3410
|
-
let
|
|
3411
|
-
if (l =
|
|
3410
|
+
let Wn = e3.split("\n", 1)[0], f;
|
|
3411
|
+
if (l = Wn, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), f = l) : f = l.replace(this.rules.other.tabCharGlobal, " "), i2.test(l) || a2.test(l) || o2.test(l) || Un.test(l) || t2.test(l) || n3.test(l)) break;
|
|
3412
3412
|
if (f.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s2 += "\n" + f.slice(d);
|
|
3413
3413
|
else {
|
|
3414
3414
|
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i2.test(c) || a2.test(c) || n3.test(c)) break;
|
|
3415
3415
|
s2 += "\n" + l;
|
|
3416
3416
|
}
|
|
3417
|
-
u = !l.trim(), r2 +=
|
|
3417
|
+
u = !l.trim(), r2 += Wn + "\n", e3 = e3.substring(Wn.length + 1), c = f.slice(d);
|
|
3418
3418
|
}
|
|
3419
3419
|
}
|
|
3420
3420
|
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(r2) && (o = true)), i.items.push({
|
|
@@ -4609,6 +4609,7 @@ function computeDeckNavigation(e3, t) {
|
|
|
4609
4609
|
};
|
|
4610
4610
|
return e3.h === n.h && e3.v === n.v && e3.f === n.f ? null : n;
|
|
4611
4611
|
}
|
|
4612
|
+
const SlideCellView = (e3) => (Logger.warn("SlideCellView islands stub rendered; this should never happen in a read-only embed."), null), SlideCellReadOnlyView = (e3) => (Logger.warn("SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed."), null);
|
|
4612
4613
|
var ASPECT_RATIO = 16 / 9;
|
|
4613
4614
|
function clearPreviousVerticalIndices(e3) {
|
|
4614
4615
|
let t = e3.getSlidesElement();
|
|
@@ -4657,101 +4658,146 @@ function triggerResize(e3) {
|
|
|
4657
4658
|
});
|
|
4658
4659
|
}
|
|
4659
4660
|
var SubslideView = (e3) => {
|
|
4660
|
-
let t = (0, import_compiler_runtime.c)(
|
|
4661
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
4662
|
-
let
|
|
4663
|
-
t[1]
|
|
4664
|
-
|
|
4665
|
-
|
|
4661
|
+
let t = (0, import_compiler_runtime.c)(11), { subslide: n, showCode: r, isEditable: i } = e3, a = r ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", o;
|
|
4662
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = { margin: "auto 20px" }, t[0] = o) : o = t[0];
|
|
4663
|
+
let s;
|
|
4664
|
+
if (t[1] !== i || t[2] !== r || t[3] !== n.blocks) {
|
|
4665
|
+
let e4;
|
|
4666
|
+
t[5] !== i || t[6] !== r ? (e4 = (e5, t2) => {
|
|
4667
|
+
let n2 = e5.cells.map((e6) => r ? i ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellView, { cell: e6 }, e6.id) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellReadOnlyView, { cell: e6 }, e6.id) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, {
|
|
4668
|
+
cellId: e6.id,
|
|
4669
|
+
status: e6.status,
|
|
4670
|
+
output: e6.output
|
|
4671
|
+
}, e6.id));
|
|
4672
|
+
return e5.isFragment ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Bt, {
|
|
4673
|
+
as: "div",
|
|
4674
|
+
children: n2
|
|
4675
|
+
}, t2) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Fragment, { children: n2 }, t2);
|
|
4676
|
+
}, t[5] = i, t[6] = r, t[7] = e4) : e4 = t[7], s = n.blocks.map(e4), t[1] = i, t[2] = r, t[3] = n.blocks, t[4] = s;
|
|
4677
|
+
} else s = t[4];
|
|
4678
|
+
let c;
|
|
4679
|
+
return t[8] !== a || t[9] !== s ? (c = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(w, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
4666
4680
|
className: "h-full w-full overflow-auto flex",
|
|
4667
4681
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
4668
|
-
className:
|
|
4669
|
-
style:
|
|
4670
|
-
children:
|
|
4682
|
+
className: a,
|
|
4683
|
+
style: o,
|
|
4684
|
+
children: s
|
|
4671
4685
|
})
|
|
4672
|
-
}) }), t[
|
|
4673
|
-
}, reveal_component_default = ({ cellsWithOutput: e3, layout:
|
|
4686
|
+
}) }), t[8] = a, t[9] = s, t[10] = c) : c = t[10], c;
|
|
4687
|
+
}, reveal_component_default = ({ cellsWithOutput: e3, layout: o, setLayout: s, activeIndex: d, onSlideChange: Wn, mode: Kn, configWidth: Xn = 300, isEditable: Qn = false }) => {
|
|
4674
4688
|
var _a2, _b;
|
|
4675
|
-
let
|
|
4689
|
+
let $n = (0, import_react.useRef)(null), er = (0, import_react.useRef)(null), { width: tr, height: p } = useSlideDimensions($n), [nr, m] = (0, import_react.useState)(false), rr = useNotebookCodeAvailable(e3), ir = !isIslands() && rr, ar = ir && nr, or = d == null ? void 0 : e3[d], sr = or ?? e3.at(0), cr = (0, import_react.useMemo)(() => composeSlides({
|
|
4676
4690
|
cells: e3,
|
|
4677
4691
|
getType: (e4) => {
|
|
4678
4692
|
var _a3;
|
|
4679
|
-
return ((_a3 =
|
|
4693
|
+
return ((_a3 = o.cells.get(e4.id)) == null ? void 0 : _a3.type) ?? "slide";
|
|
4680
4694
|
}
|
|
4681
|
-
}), [e3,
|
|
4682
|
-
composition:
|
|
4695
|
+
}), [e3, o.cells]), lr = or && ((_a2 = o.cells.get(or.id)) == null ? void 0 : _a2.type) === "skip" ? or : null, { cellToTarget: ur, targetToCellIndex: dr } = (0, import_react.useMemo)(() => buildSlideIndices({
|
|
4696
|
+
composition: cr,
|
|
4683
4697
|
cells: e3,
|
|
4684
4698
|
getId: (e4) => e4.id
|
|
4685
|
-
}), [
|
|
4699
|
+
}), [cr, e3]), fr = ((_b = o.deck) == null ? void 0 : _b.transition) ?? "slide", pr = (0, import_react.useMemo)(() => ({
|
|
4686
4700
|
embedded: true,
|
|
4687
|
-
width:
|
|
4701
|
+
width: tr,
|
|
4688
4702
|
height: p,
|
|
4689
4703
|
center: false,
|
|
4690
4704
|
minScale: 0.2,
|
|
4691
4705
|
maxScale: 2,
|
|
4692
|
-
transition:
|
|
4706
|
+
transition: fr,
|
|
4693
4707
|
keyboardCondition: (e4) => !Events.fromInput(e4)
|
|
4694
4708
|
}), [
|
|
4695
|
-
|
|
4709
|
+
tr,
|
|
4696
4710
|
p,
|
|
4697
|
-
|
|
4698
|
-
])
|
|
4699
|
-
(0, import_react.useEffect)(() => {
|
|
4700
|
-
let t = Hn.current;
|
|
4701
|
-
if (t == null) return;
|
|
4711
|
+
fr
|
|
4712
|
+
]), mr = useEvent_default((t) => {
|
|
4702
4713
|
let n = resolveDeckNavigationTarget({
|
|
4703
4714
|
activeIndex: d,
|
|
4704
4715
|
cells: e3,
|
|
4705
|
-
cellToTarget:
|
|
4716
|
+
cellToTarget: ur,
|
|
4706
4717
|
getId: (e4) => e4.id
|
|
4707
4718
|
}), r = n && computeDeckNavigation(t.getIndices(), n);
|
|
4708
4719
|
r && (t.slide(r.h, r.v, r.f), clearPreviousVerticalIndices(t));
|
|
4720
|
+
});
|
|
4721
|
+
(0, import_react.useEffect)(() => {
|
|
4722
|
+
let e4 = er.current;
|
|
4723
|
+
e4 != null && mr(e4);
|
|
4709
4724
|
}, [
|
|
4710
4725
|
d,
|
|
4711
|
-
|
|
4726
|
+
ur,
|
|
4712
4727
|
e3,
|
|
4713
|
-
|
|
4728
|
+
mr
|
|
4714
4729
|
]);
|
|
4715
|
-
let
|
|
4716
|
-
|
|
4717
|
-
|
|
4730
|
+
let hr = useEvent_default(() => {
|
|
4731
|
+
(0, import_react.startTransition)(() => m((e4) => !e4));
|
|
4732
|
+
}), gr = useEvent_default((e4) => {
|
|
4733
|
+
mr(e4), ir && e4.addKeyBinding({
|
|
4734
|
+
keyCode: 67,
|
|
4735
|
+
key: "C",
|
|
4736
|
+
description: "Toggle code editor"
|
|
4737
|
+
}, hr);
|
|
4738
|
+
}), _r = (0, import_react.useMemo)(() => {
|
|
4739
|
+
if (!or) return null;
|
|
4740
|
+
let e4 = ur.get(or.id);
|
|
4741
|
+
return e4 ? {
|
|
4742
|
+
h: e4.h,
|
|
4743
|
+
v: e4.v
|
|
4744
|
+
} : null;
|
|
4745
|
+
}, [or, ur]), vr = useEvent_default(() => {
|
|
4746
|
+
if (lr != null) return;
|
|
4747
|
+
let e4 = er.current;
|
|
4718
4748
|
if (!e4) return;
|
|
4719
|
-
let t = resolveActiveCellIndex(
|
|
4720
|
-
t != null && (
|
|
4721
|
-
}),
|
|
4722
|
-
if (!
|
|
4723
|
-
let
|
|
4724
|
-
if (
|
|
4749
|
+
let t = resolveActiveCellIndex(dr, e4.getIndices());
|
|
4750
|
+
t != null && (Wn == null ? void 0 : Wn(t));
|
|
4751
|
+
}), yr = useEvent_default((t) => {
|
|
4752
|
+
if (!lr || d == null || Events.fromInput(t)) return;
|
|
4753
|
+
let n = classifyNavKey(t);
|
|
4754
|
+
if (n === 0) return;
|
|
4725
4755
|
t.preventDefault(), t.stopPropagation();
|
|
4726
|
-
let i = d +
|
|
4727
|
-
i < 0 || i >= e3.length || (
|
|
4756
|
+
let i = d + n;
|
|
4757
|
+
i < 0 || i >= e3.length || (Wn == null ? void 0 : Wn(i));
|
|
4758
|
+
}), br = useEvent_default(() => {
|
|
4759
|
+
vr(), triggerResize(er.current);
|
|
4728
4760
|
});
|
|
4729
|
-
return useEventListener(document, "keydown",
|
|
4761
|
+
return useEventListener(document, "keydown", yr, { capture: true }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
4730
4762
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
4731
4763
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
4732
|
-
ref:
|
|
4764
|
+
ref: $n,
|
|
4733
4765
|
className: "flex-1 min-w-0 flex items-center justify-center overflow-hidden",
|
|
4734
4766
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
4735
4767
|
className: "group relative",
|
|
4736
4768
|
style: {
|
|
4737
|
-
width:
|
|
4769
|
+
width: tr,
|
|
4738
4770
|
height: p
|
|
4739
4771
|
},
|
|
4740
4772
|
children: [
|
|
4741
4773
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(b, {
|
|
4742
|
-
deckRef:
|
|
4774
|
+
deckRef: er,
|
|
4743
4775
|
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides",
|
|
4744
|
-
config:
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4776
|
+
config: pr,
|
|
4777
|
+
onReady: gr,
|
|
4778
|
+
onSlideChange: br,
|
|
4779
|
+
onFragmentShown: vr,
|
|
4780
|
+
onFragmentHidden: vr,
|
|
4781
|
+
children: cr.stacks.map((e4, t) => {
|
|
4782
|
+
if (e4.subslides.length === 1) {
|
|
4783
|
+
let n = (_r == null ? void 0 : _r.h) === t && (_r == null ? void 0 : _r.v) === 0;
|
|
4784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
4785
|
+
subslide: e4.subslides[0],
|
|
4786
|
+
showCode: ar && n,
|
|
4787
|
+
isEditable: Qn
|
|
4788
|
+
}, t);
|
|
4789
|
+
}
|
|
4790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ne, { children: e4.subslides.map((e5, n) => {
|
|
4791
|
+
let r = (_r == null ? void 0 : _r.h) === t && (_r == null ? void 0 : _r.v) === n;
|
|
4792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
4793
|
+
subslide: e5,
|
|
4794
|
+
showCode: ar && r,
|
|
4795
|
+
isEditable: Qn
|
|
4796
|
+
}, n);
|
|
4797
|
+
}) }, t);
|
|
4798
|
+
})
|
|
4753
4799
|
}),
|
|
4754
|
-
|
|
4800
|
+
lr && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
4755
4801
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
4756
4802
|
"aria-label": "Skipped in presentation",
|
|
4757
4803
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -4763,53 +4809,55 @@ var SubslideView = (e3) => {
|
|
|
4763
4809
|
className: "mo-slide-content",
|
|
4764
4810
|
style: { margin: "auto 20px" },
|
|
4765
4811
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, {
|
|
4766
|
-
cellId:
|
|
4767
|
-
status:
|
|
4768
|
-
output:
|
|
4812
|
+
cellId: lr.id,
|
|
4813
|
+
status: lr.status,
|
|
4814
|
+
output: lr.output
|
|
4769
4815
|
})
|
|
4770
4816
|
})
|
|
4771
4817
|
})]
|
|
4772
4818
|
}),
|
|
4773
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
4774
|
-
|
|
4775
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
4776
|
-
"
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
})
|
|
4819
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
4820
|
+
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
4821
|
+
children: [ir && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
4822
|
+
content: ar ? "Hide code (C)" : "Show code (C)",
|
|
4823
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
4824
|
+
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
4825
|
+
variant: "ghost",
|
|
4826
|
+
size: "icon",
|
|
4827
|
+
className: cn("text-muted-foreground h-7 w-7", ar && "text-foreground bg-muted"),
|
|
4828
|
+
"aria-pressed": ar,
|
|
4829
|
+
"aria-label": ar ? "Hide code" : "Show code",
|
|
4830
|
+
onClick: hr,
|
|
4831
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Code, { className: "h-4 w-4" })
|
|
4832
|
+
})
|
|
4833
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
4834
|
+
content: "Fullscreen (F)",
|
|
4835
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
4836
|
+
"data-testid": "marimo-plugin-slides-fullscreen",
|
|
4837
|
+
variant: "ghost",
|
|
4838
|
+
size: "icon",
|
|
4839
|
+
className: "text-muted-foreground h-7 w-7",
|
|
4840
|
+
"aria-label": "Enter fullscreen",
|
|
4841
|
+
onClick: () => {
|
|
4842
|
+
var _a3, _b2;
|
|
4843
|
+
(_b2 = (_a3 = er.current) == null ? void 0 : _a3.getViewportElement()) == null ? void 0 : _b2.requestFullscreen().catch((e4) => {
|
|
4844
|
+
Logger.error("Failed to request fullscreen", e4);
|
|
4845
|
+
});
|
|
4846
|
+
},
|
|
4847
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Expand, { className: "h-4 w-4" })
|
|
4848
|
+
})
|
|
4849
|
+
})]
|
|
4788
4850
|
})
|
|
4789
4851
|
]
|
|
4790
4852
|
})
|
|
4791
|
-
}),
|
|
4792
|
-
configWidth:
|
|
4793
|
-
layout:
|
|
4794
|
-
setLayout:
|
|
4795
|
-
activeConfigCell:
|
|
4853
|
+
}), Kn !== "read" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideSidebar, {
|
|
4854
|
+
configWidth: Xn,
|
|
4855
|
+
layout: o,
|
|
4856
|
+
setLayout: s,
|
|
4857
|
+
activeConfigCell: sr
|
|
4796
4858
|
})]
|
|
4797
4859
|
});
|
|
4798
4860
|
};
|
|
4799
|
-
function _temp(e3) {
|
|
4800
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, {
|
|
4801
|
-
cellId: e3.id,
|
|
4802
|
-
status: e3.status,
|
|
4803
|
-
output: e3.output
|
|
4804
|
-
}, e3.id);
|
|
4805
|
-
}
|
|
4806
|
-
function _temp2(e3, t) {
|
|
4807
|
-
let n = e3.cells.map(_temp);
|
|
4808
|
-
return e3.isFragment ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Bt, {
|
|
4809
|
-
as: "div",
|
|
4810
|
-
children: n
|
|
4811
|
-
}, t) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Fragment, { children: n }, t);
|
|
4812
|
-
}
|
|
4813
4861
|
export {
|
|
4814
4862
|
reveal_component_default as default
|
|
4815
4863
|
};
|