@expofp/loader 1.0.61 → 1.0.63
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/bundle/bundle.js +128 -120
- package/dist/bundle/bundle.js.map +1 -1
- package/dist/bundle/{downloadZip-CohB2rQN.js → downloadOfflineZip-RIzZSzeG.js} +1001 -995
- package/dist/bundle/downloadOfflineZip-RIzZSzeG.js.map +1 -0
- package/dist/bundle/{makeOffline-DuRXI_Dd.js → makeOffline-Doxc2dX7.js} +35 -34
- package/dist/bundle/makeOffline-Doxc2dX7.js.map +1 -0
- package/dist/bundle/makeOfflineBundle-BoEPc05D.js +60 -0
- package/dist/bundle/makeOfflineBundle-BoEPc05D.js.map +1 -0
- package/dist/bundle/saveOfflineZip.browser-BTQeRUY_.js +7 -0
- package/dist/bundle/saveOfflineZip.browser-BTQeRUY_.js.map +1 -0
- package/dist/esm/importJson.js +4 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/offline/downloadOfflineZip.d.ts +4 -0
- package/dist/esm/offline/downloadOfflineZip.js +15 -0
- package/dist/esm/offline/generateZip.d.ts +4 -0
- package/dist/esm/offline/{downloadZip.js → generateZip.js} +9 -8
- package/dist/esm/offline/index.d.ts +9 -1
- package/dist/esm/offline/index.js +12 -4
- package/dist/esm/offline/makeOffline.js +3 -2
- package/dist/esm/offline/makeOfflineBundle.js +14 -7
- package/dist/esm/offline/saveOfflineZip.browser.d.ts +1 -0
- package/dist/esm/offline/saveOfflineZip.browser.js +3 -0
- package/dist/esm/offline/saveOfflineZip.d.ts +1 -0
- package/dist/esm/offline/saveOfflineZip.js +16 -0
- package/dist/esm/resolve.d.ts +11 -4
- package/dist/esm/resolve.js +6 -34
- package/dist/esm/resolvers/legacyAssetUrlsResolver.js +2 -1
- package/package.json +8 -2
- package/dist/bundle/downloadZip-CohB2rQN.js.map +0 -1
- package/dist/bundle/makeOffline-DuRXI_Dd.js.map +0 -1
- package/dist/bundle/makeOfflineBundle-XjvmvDQE.js +0 -58
- package/dist/bundle/makeOfflineBundle-XjvmvDQE.js.map +0 -1
- package/dist/esm/offline/downloadZip.d.ts +0 -1
package/dist/bundle/bundle.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
window.__efpLoaderBuildInfo = ["1.0.
|
|
1
|
+
window.__efpLoaderBuildInfo = ["1.0.63", "2025-12-15T13:25:02.328Z"];
|
|
2
2
|
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
3
|
function Q(r) {
|
|
4
4
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var _ = { exports: {} }, L, U;
|
|
7
7
|
function X() {
|
|
8
8
|
if (U) return L;
|
|
9
9
|
U = 1;
|
|
@@ -14,7 +14,7 @@ function X() {
|
|
|
14
14
|
if (i === "string" && f.length > 0)
|
|
15
15
|
return a(f);
|
|
16
16
|
if (i === "number" && isFinite(f))
|
|
17
|
-
return s.long ? c(f) :
|
|
17
|
+
return s.long ? c(f) : h(f);
|
|
18
18
|
throw new Error(
|
|
19
19
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(f)
|
|
20
20
|
);
|
|
@@ -71,15 +71,15 @@ function X() {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function h(f) {
|
|
75
75
|
var s = Math.abs(f);
|
|
76
76
|
return s >= n ? Math.round(f / n) + "d" : s >= t ? Math.round(f / t) + "h" : s >= e ? Math.round(f / e) + "m" : s >= r ? Math.round(f / r) + "s" : f + "ms";
|
|
77
77
|
}
|
|
78
78
|
function c(f) {
|
|
79
79
|
var s = Math.abs(f);
|
|
80
|
-
return s >= n ?
|
|
80
|
+
return s >= n ? w(f, s, n, "day") : s >= t ? w(f, s, t, "hour") : s >= e ? w(f, s, e, "minute") : s >= r ? w(f, s, r, "second") : f + " ms";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function w(f, s, i, u) {
|
|
83
83
|
var d = s >= i * 1.5;
|
|
84
84
|
return Math.round(f / i) + " " + u + (d ? "s" : "");
|
|
85
85
|
}
|
|
@@ -90,7 +90,7 @@ function Y() {
|
|
|
90
90
|
if (W) return T;
|
|
91
91
|
W = 1;
|
|
92
92
|
function r(e) {
|
|
93
|
-
n.debug = n, n.default = n, n.coerce =
|
|
93
|
+
n.debug = n, n.default = n, n.coerce = w, n.disable = h, n.enable = l, n.enabled = c, n.humanize = X(), n.destroy = f, Object.keys(e).forEach((s) => {
|
|
94
94
|
n[s] = e[s];
|
|
95
95
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
96
96
|
function t(s) {
|
|
@@ -102,32 +102,32 @@ function Y() {
|
|
|
102
102
|
n.selectColor = t;
|
|
103
103
|
function n(s) {
|
|
104
104
|
let i, u = null, d, g;
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
105
|
+
function m(...y) {
|
|
106
|
+
if (!m.enabled)
|
|
107
107
|
return;
|
|
108
|
-
const
|
|
109
|
-
|
|
108
|
+
const v = m, F = Number(/* @__PURE__ */ new Date()), O = F - (i || F);
|
|
109
|
+
v.diff = O, v.prev = i, v.curr = F, i = F, y[0] = n.coerce(y[0]), typeof y[0] != "string" && y.unshift("%O");
|
|
110
110
|
let R = 0;
|
|
111
|
-
|
|
111
|
+
y[0] = y[0].replace(/%([a-zA-Z%])/g, (b, H) => {
|
|
112
112
|
if (b === "%%")
|
|
113
113
|
return "%";
|
|
114
114
|
R++;
|
|
115
115
|
const N = n.formatters[H];
|
|
116
116
|
if (typeof N == "function") {
|
|
117
|
-
const K =
|
|
118
|
-
b = N.call(
|
|
117
|
+
const K = y[R];
|
|
118
|
+
b = N.call(v, K), y.splice(R, 1), R--;
|
|
119
119
|
}
|
|
120
120
|
return b;
|
|
121
|
-
}), n.formatArgs.call(
|
|
121
|
+
}), n.formatArgs.call(v, y), (v.log || n.log).apply(v, y);
|
|
122
122
|
}
|
|
123
|
-
return
|
|
123
|
+
return m.namespace = s, m.useColors = n.useColors(), m.color = n.selectColor(s), m.extend = o, m.destroy = n.destroy, Object.defineProperty(m, "enabled", {
|
|
124
124
|
enumerable: !0,
|
|
125
125
|
configurable: !1,
|
|
126
126
|
get: () => u !== null ? u : (d !== n.namespaces && (d = n.namespaces, g = n.enabled(s)), g),
|
|
127
|
-
set: (
|
|
128
|
-
u =
|
|
127
|
+
set: (y) => {
|
|
128
|
+
u = y;
|
|
129
129
|
}
|
|
130
|
-
}), typeof n.init == "function" && n.init(
|
|
130
|
+
}), typeof n.init == "function" && n.init(m), m;
|
|
131
131
|
}
|
|
132
132
|
function o(s, i) {
|
|
133
133
|
const u = n(this.namespace + (typeof i > "u" ? ":" : i) + s);
|
|
@@ -140,19 +140,19 @@ function Y() {
|
|
|
140
140
|
u[0] === "-" ? n.skips.push(u.slice(1)) : n.names.push(u);
|
|
141
141
|
}
|
|
142
142
|
function a(s, i) {
|
|
143
|
-
let u = 0, d = 0, g = -1,
|
|
143
|
+
let u = 0, d = 0, g = -1, m = 0;
|
|
144
144
|
for (; u < s.length; )
|
|
145
145
|
if (d < i.length && (i[d] === s[u] || i[d] === "*"))
|
|
146
|
-
i[d] === "*" ? (g = d,
|
|
146
|
+
i[d] === "*" ? (g = d, m = u, d++) : (u++, d++);
|
|
147
147
|
else if (g !== -1)
|
|
148
|
-
d = g + 1,
|
|
148
|
+
d = g + 1, m++, u = m;
|
|
149
149
|
else
|
|
150
150
|
return !1;
|
|
151
151
|
for (; d < i.length && i[d] === "*"; )
|
|
152
152
|
d++;
|
|
153
153
|
return d === i.length;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function h() {
|
|
156
156
|
const s = [
|
|
157
157
|
...n.names,
|
|
158
158
|
...n.skips.map((i) => "-" + i)
|
|
@@ -168,7 +168,7 @@ function Y() {
|
|
|
168
168
|
return !0;
|
|
169
169
|
return !1;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function w(s) {
|
|
172
172
|
return s instanceof Error ? s.stack || s.message : s;
|
|
173
173
|
}
|
|
174
174
|
function f() {
|
|
@@ -279,12 +279,12 @@ function x() {
|
|
|
279
279
|
function n(c) {
|
|
280
280
|
if (c[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + c[0] + (this.useColors ? "%c " : " ") + "+" + r.exports.humanize(this.diff), !this.useColors)
|
|
281
281
|
return;
|
|
282
|
-
const
|
|
283
|
-
c.splice(1, 0,
|
|
282
|
+
const w = "color: " + this.color;
|
|
283
|
+
c.splice(1, 0, w, "color: inherit");
|
|
284
284
|
let f = 0, s = 0;
|
|
285
285
|
c[0].replace(/%[a-zA-Z%]/g, (i) => {
|
|
286
286
|
i !== "%%" && (f++, i === "%c" && (s = f));
|
|
287
|
-
}), c.splice(s, 0,
|
|
287
|
+
}), c.splice(s, 0, w);
|
|
288
288
|
}
|
|
289
289
|
e.log = console.debug || console.log || (() => {
|
|
290
290
|
});
|
|
@@ -309,23 +309,23 @@ function x() {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
r.exports = Y()(e);
|
|
312
|
-
const { formatters:
|
|
313
|
-
|
|
312
|
+
const { formatters: h } = r.exports;
|
|
313
|
+
h.j = function(c) {
|
|
314
314
|
try {
|
|
315
315
|
return JSON.stringify(c);
|
|
316
|
-
} catch (
|
|
317
|
-
return "[UnexpectedJSONParseError]: " +
|
|
316
|
+
} catch (w) {
|
|
317
|
+
return "[UnexpectedJSONParseError]: " + w.message;
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
|
-
})(
|
|
320
|
+
})(_, _.exports)), _.exports;
|
|
321
321
|
}
|
|
322
322
|
var ee = x();
|
|
323
323
|
const re = /* @__PURE__ */ Q(ee), te = re("efp:loader");
|
|
324
|
-
function
|
|
324
|
+
function p(...r) {
|
|
325
325
|
te(...r);
|
|
326
326
|
}
|
|
327
327
|
function ne(r) {
|
|
328
|
-
return
|
|
328
|
+
return p("assetResolver resolveRef:", r), $(r);
|
|
329
329
|
}
|
|
330
330
|
const oe = {
|
|
331
331
|
schema: "asset",
|
|
@@ -335,15 +335,17 @@ const oe = {
|
|
|
335
335
|
let A;
|
|
336
336
|
const se = /* @__PURE__ */ new WeakSet(), P = new Function("url", 'return import(url, { with: { type: "json" } });');
|
|
337
337
|
async function M(r, e) {
|
|
338
|
-
var n, o;
|
|
338
|
+
var n, o, l;
|
|
339
|
+
if ((n = e.preResolvedRefs) != null && n.has(r))
|
|
340
|
+
return p("importJson: using preResolvedRefs for", r), e.preResolvedRefs.get(r);
|
|
339
341
|
if (A === void 0 && !e.forceFetch)
|
|
340
342
|
try {
|
|
341
343
|
await P(r), A = !1;
|
|
342
344
|
} catch {
|
|
343
|
-
|
|
345
|
+
p("importJson: dynamic import not available, falling back to fetch"), A = !0;
|
|
344
346
|
}
|
|
345
347
|
let t;
|
|
346
|
-
return !A && !e.forceFetch ? (t = (await P(r)).default, (
|
|
348
|
+
return !A && !e.forceFetch ? (t = (await P(r)).default, (o = e.importCallback) == null || o.call(e, r, "json")) : (p("importJson: fetch", r), t = await ae(r, e.refCache, e.signal || null), (l = e.importCallback) == null || l.call(e, r, "json")), se.has(t) || E(t), t;
|
|
347
349
|
}
|
|
348
350
|
async function ae(r, e, t) {
|
|
349
351
|
const n = "__loadJson__" + r;
|
|
@@ -366,7 +368,7 @@ async function j(r, e, t) {
|
|
|
366
368
|
const ie = {
|
|
367
369
|
schema: "bundle-assets",
|
|
368
370
|
async resolveRef(r, e) {
|
|
369
|
-
|
|
371
|
+
p("bundleAssetsResolver resolveRef:", r);
|
|
370
372
|
const t = $(r);
|
|
371
373
|
return j(r, e.refCache, async () => {
|
|
372
374
|
const n = await M(t, e), o = t.substring(0, t.lastIndexOf("/") + 1);
|
|
@@ -379,7 +381,7 @@ const ie = {
|
|
|
379
381
|
}, le = "https://efp-runtime.expofp.com/", ce = {
|
|
380
382
|
schema: "expo-runtime-branch",
|
|
381
383
|
async resolveRef(r, e) {
|
|
382
|
-
|
|
384
|
+
p("expoRuntimeBranchResolver resolveRef:", r);
|
|
383
385
|
const t = $(r), n = `${le}branches/${t}.json`;
|
|
384
386
|
return j(r, e.refCache, async () => {
|
|
385
387
|
const { release: o } = await M(n, e);
|
|
@@ -392,7 +394,7 @@ const ie = {
|
|
|
392
394
|
}, fe = {
|
|
393
395
|
schema: "expo-runtime-get-branch",
|
|
394
396
|
async resolveRef(r, e) {
|
|
395
|
-
|
|
397
|
+
p("expoRuntimeGetBranchResolver resolveRef:", r);
|
|
396
398
|
const n = `https://${$(r)}.expofp.com/get-branch`;
|
|
397
399
|
return M(n, e);
|
|
398
400
|
},
|
|
@@ -403,7 +405,7 @@ const ie = {
|
|
|
403
405
|
// return canResolveRefSchema(ref, SCHEMA);
|
|
404
406
|
// },
|
|
405
407
|
async resolveRef(r) {
|
|
406
|
-
|
|
408
|
+
p("expoRuntimeResolver resolveRef:", r);
|
|
407
409
|
const e = $(r), t = {
|
|
408
410
|
entry: { $ref: `asset+${e}expofp.js` },
|
|
409
411
|
assets: { $ref: `bundle-assets+${e}bundle.json` }
|
|
@@ -433,20 +435,20 @@ const ie = {
|
|
|
433
435
|
return r.startsWith("http://") || r.startsWith("https://") || r.startsWith("./");
|
|
434
436
|
},
|
|
435
437
|
resolveRef(r, e) {
|
|
436
|
-
if (
|
|
438
|
+
if (p("httpResolver resolveRef:", r), !this.canResolve(r)) throw new Error(`Unexpected ref in httpResolver: ${r}`);
|
|
437
439
|
return M(r, e);
|
|
438
440
|
},
|
|
439
441
|
offlineMethod: "resolveRef"
|
|
440
442
|
};
|
|
441
443
|
async function k(r, e) {
|
|
442
444
|
const { globalVar: t, timeoutMs: n = 1e4, pollIntervalMs: o = 10 } = e;
|
|
443
|
-
|
|
445
|
+
he() ? (t && window[t] !== void 0 && delete window[t], await we(r, e.signal), t && await Z(
|
|
444
446
|
() => window[t],
|
|
445
447
|
t,
|
|
446
448
|
n,
|
|
447
449
|
o,
|
|
448
450
|
e.signal
|
|
449
|
-
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await pe(r, e.signal), t && await
|
|
451
|
+
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await pe(r, e.signal), t && await Z(
|
|
450
452
|
() => globalThis[t],
|
|
451
453
|
t,
|
|
452
454
|
n,
|
|
@@ -454,10 +456,10 @@ async function k(r, e) {
|
|
|
454
456
|
e.signal
|
|
455
457
|
));
|
|
456
458
|
}
|
|
457
|
-
function
|
|
459
|
+
function he() {
|
|
458
460
|
return typeof window < "u" && typeof document < "u";
|
|
459
461
|
}
|
|
460
|
-
function
|
|
462
|
+
function we(r, e) {
|
|
461
463
|
return new Promise((t, n) => {
|
|
462
464
|
const o = document.createElement("script");
|
|
463
465
|
o.src = r, o.async = !0;
|
|
@@ -508,9 +510,9 @@ async function pe(r, e) {
|
|
|
508
510
|
l === void 0 ? delete o.window : o.window = l;
|
|
509
511
|
}
|
|
510
512
|
}
|
|
511
|
-
function
|
|
513
|
+
function Z(r, e, t, n, o) {
|
|
512
514
|
return new Promise((l, a) => {
|
|
513
|
-
const
|
|
515
|
+
const h = Date.now(), c = () => {
|
|
514
516
|
a(new Error("Wait for global aborted"));
|
|
515
517
|
};
|
|
516
518
|
if (o != null && o.aborted) {
|
|
@@ -518,7 +520,7 @@ function V(r, e, t, n, o) {
|
|
|
518
520
|
return;
|
|
519
521
|
}
|
|
520
522
|
o == null || o.addEventListener("abort", c, { once: !0 });
|
|
521
|
-
const
|
|
523
|
+
const w = () => {
|
|
522
524
|
if (o != null && o.aborted)
|
|
523
525
|
return a(new Error("Wait for global aborted"));
|
|
524
526
|
try {
|
|
@@ -526,41 +528,41 @@ function V(r, e, t, n, o) {
|
|
|
526
528
|
return o == null || o.removeEventListener("abort", c), l();
|
|
527
529
|
} catch {
|
|
528
530
|
}
|
|
529
|
-
if (Date.now() -
|
|
531
|
+
if (Date.now() - h >= t)
|
|
530
532
|
return o == null || o.removeEventListener("abort", c), a(new Error(`Timed out after ${t} ms waiting for global "${e}"`));
|
|
531
|
-
setTimeout(
|
|
533
|
+
setTimeout(w, n);
|
|
532
534
|
};
|
|
533
|
-
|
|
535
|
+
w();
|
|
534
536
|
});
|
|
535
537
|
}
|
|
536
538
|
const me = {
|
|
537
539
|
schema: "legacy-asset-urls",
|
|
538
540
|
resolveRef(r, e) {
|
|
539
|
-
|
|
541
|
+
p("legacyAssetUrlsResolver resolveRef:", r);
|
|
540
542
|
const t = e.signal;
|
|
541
543
|
return j(r, e.refCache, async () => {
|
|
542
|
-
var
|
|
544
|
+
var y, v, F, O, R;
|
|
543
545
|
const n = $(r), o = `${n}version.js`;
|
|
544
546
|
try {
|
|
545
547
|
await k(o, {
|
|
546
548
|
globalVar: "__fpDataVersion",
|
|
547
549
|
timeoutMs: 3e4,
|
|
548
550
|
signal: t
|
|
549
|
-
}), (
|
|
551
|
+
}), (y = e.importCallback) == null || y.call(e, o, "script");
|
|
550
552
|
} catch {
|
|
551
553
|
console.warn(`Could not load version.js at ${o}, proceeding without it`);
|
|
552
554
|
}
|
|
553
|
-
const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}data.js?v=${l}`,
|
|
555
|
+
const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}data.js?v=${l}`, h = k(a, {
|
|
554
556
|
globalVar: "__data",
|
|
555
557
|
signal: t
|
|
556
558
|
});
|
|
557
|
-
(
|
|
558
|
-
const c = `${n}wf.data.js?v=${l}`,
|
|
559
|
+
(v = e.importCallback) == null || v.call(e, a, "script");
|
|
560
|
+
const c = `${n}wf.data.js?v=${l}`, w = k(c, {
|
|
559
561
|
globalVar: "__wfData",
|
|
560
562
|
signal: t
|
|
561
563
|
}).then(() => {
|
|
562
|
-
var
|
|
563
|
-
(
|
|
564
|
+
var C;
|
|
565
|
+
(C = e.importCallback) == null || C.call(e, c, "script");
|
|
564
566
|
}).catch(() => {
|
|
565
567
|
console.warn(`Could not load wf.data.js at ${c}, proceeding without it`);
|
|
566
568
|
});
|
|
@@ -569,14 +571,14 @@ const me = {
|
|
|
569
571
|
globalVar: "__fp",
|
|
570
572
|
signal: t
|
|
571
573
|
});
|
|
572
|
-
(F = e.importCallback) == null || F.call(e, f, "script"), await Promise.all([
|
|
573
|
-
const u = ((
|
|
574
|
-
for (const
|
|
575
|
-
const b = `${n}${
|
|
574
|
+
(F = e.importCallback) == null || F.call(e, f, "script"), await Promise.all([h, w, s]);
|
|
575
|
+
const u = ((O = globalThis.__fpLayers) != null ? O : []).map((C) => `fp.svg.${C.name}.js`);
|
|
576
|
+
for (const C of u) {
|
|
577
|
+
const b = `${n}${C}?v=${l}`;
|
|
576
578
|
(R = e.importCallback) == null || R.call(e, b, "script");
|
|
577
579
|
}
|
|
578
580
|
const d = globalThis.__data || {};
|
|
579
|
-
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((
|
|
581
|
+
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((C, b) => (C[b] = { $ref: `asset+${n}${b}?v=${l}` }, C), {}), ...ye(n, d) };
|
|
580
582
|
});
|
|
581
583
|
},
|
|
582
584
|
offlineMethod: "resolveRef"
|
|
@@ -588,19 +590,19 @@ function ye(r, e) {
|
|
|
588
590
|
typeof a == "string" && a.length > 0 && t.add(a);
|
|
589
591
|
}
|
|
590
592
|
return n(e.logo), (o = e.exhibitors) == null || o.forEach((a) => {
|
|
591
|
-
var
|
|
592
|
-
n(a.logo), (
|
|
593
|
+
var h;
|
|
594
|
+
n(a.logo), (h = a.gallery) == null || h.forEach((c) => n(c));
|
|
593
595
|
}), (l = e.events) == null || l.forEach((a) => {
|
|
594
|
-
var
|
|
595
|
-
n(a.logoFile), (
|
|
596
|
+
var h;
|
|
597
|
+
n(a.logoFile), (h = a.speakers) == null || h.forEach((c) => {
|
|
596
598
|
n(c.photoFile);
|
|
597
599
|
});
|
|
598
|
-
}), Array.from(t).reduce((a,
|
|
600
|
+
}), Array.from(t).reduce((a, h) => (a[h] = { $ref: `asset+${r}${h}` }, a), {});
|
|
599
601
|
}
|
|
600
|
-
const
|
|
602
|
+
const ve = {
|
|
601
603
|
schema: "legacy-data",
|
|
602
604
|
resolveRef(r, e) {
|
|
603
|
-
return
|
|
605
|
+
return p("legacyDataResolver resolveRef:", r), j(r, e.refCache, async () => {
|
|
604
606
|
const t = $(r);
|
|
605
607
|
return {
|
|
606
608
|
_to_remove_for_offline_to_work_dataUrlBase: t,
|
|
@@ -609,23 +611,24 @@ const Ce = {
|
|
|
609
611
|
});
|
|
610
612
|
},
|
|
611
613
|
offlineMethod: "resolveRef"
|
|
612
|
-
},
|
|
614
|
+
}, Ce = [
|
|
613
615
|
de,
|
|
614
616
|
ie,
|
|
615
617
|
oe,
|
|
616
618
|
ue,
|
|
617
619
|
ce,
|
|
618
620
|
fe,
|
|
619
|
-
|
|
621
|
+
ve,
|
|
620
622
|
me
|
|
621
623
|
], be = /* @__PURE__ */ new Map();
|
|
622
|
-
async function
|
|
623
|
-
|
|
624
|
+
async function D(r, e, t) {
|
|
625
|
+
p("Resolving:", e, "of", r, t);
|
|
624
626
|
const n = {
|
|
625
627
|
importCallback: t == null ? void 0 : t.importCallback,
|
|
626
628
|
refCache: (t == null ? void 0 : t.refCache) || be,
|
|
627
629
|
forceFetch: !!(t != null && t.forceFetch),
|
|
628
|
-
signal: (t == null ? void 0 : t.signal) || null
|
|
630
|
+
signal: (t == null ? void 0 : t.signal) || null,
|
|
631
|
+
preResolvedRefs: t == null ? void 0 : t.preResolvedRefs
|
|
629
632
|
};
|
|
630
633
|
if (typeof e != "string")
|
|
631
634
|
throw new Error(`Invalid JSON Pointer (not a string): ${e}`);
|
|
@@ -639,44 +642,44 @@ async function J(r, e, t) {
|
|
|
639
642
|
if (t != null && t.mutate) {
|
|
640
643
|
o.unshift("root");
|
|
641
644
|
const l = { root: r };
|
|
642
|
-
await
|
|
645
|
+
await G(l, o, 0, n), Ee(r, l.root);
|
|
643
646
|
} else
|
|
644
647
|
return await q(r, o, 0, n);
|
|
645
648
|
}
|
|
646
|
-
async function
|
|
649
|
+
async function G(r, e, t, n) {
|
|
647
650
|
const o = e[t];
|
|
648
651
|
if (await ge(r, o, n), t != e.length - 1) {
|
|
649
652
|
if (r[o] === null || typeof r[o] != "object")
|
|
650
653
|
throw new Error(
|
|
651
654
|
`Cannot resolve path, encountered non-object at part '${e.slice(1).join("/")}', index ${t - 1}'`
|
|
652
655
|
);
|
|
653
|
-
return await
|
|
656
|
+
return await G(r[o], e, t + 1, n);
|
|
654
657
|
}
|
|
655
658
|
}
|
|
656
659
|
async function ge(r, e, t) {
|
|
657
|
-
|
|
660
|
+
p("resolveObjectMutate:", r, e);
|
|
658
661
|
let n = r[e];
|
|
659
|
-
const o = await
|
|
662
|
+
const o = await J(n, t);
|
|
660
663
|
o !== void 0 && (r[e] = o);
|
|
661
664
|
}
|
|
662
665
|
async function q(r, e, t, n) {
|
|
663
666
|
if (t === e.length)
|
|
664
|
-
return await
|
|
667
|
+
return await J(r, n);
|
|
665
668
|
if (r === null || typeof r != "object")
|
|
666
669
|
throw new Error(
|
|
667
670
|
`Cannot resolve path, encountered non-object at part '${e.join("/")}', index ${t}'`
|
|
668
671
|
);
|
|
669
672
|
const o = e[t];
|
|
670
673
|
let l = r[o];
|
|
671
|
-
return l === void 0 && (l = (await
|
|
674
|
+
return l === void 0 && (l = (await J(r, n))[o]), await q(l, e, t + 1, n);
|
|
672
675
|
}
|
|
673
|
-
async function
|
|
674
|
-
|
|
676
|
+
async function J(r, e) {
|
|
677
|
+
p("resolveObject:", r);
|
|
675
678
|
let t = r;
|
|
676
679
|
do {
|
|
677
680
|
if (typeof t != "object" || t === null || !("$ref" in t))
|
|
678
681
|
return t;
|
|
679
|
-
const n =
|
|
682
|
+
const n = Ce.filter((l) => S(l, t.$ref));
|
|
680
683
|
if (n.length === 0) {
|
|
681
684
|
if (t.$ref)
|
|
682
685
|
throw new Error(`No resolver found for ref: ${t.$ref}`);
|
|
@@ -721,13 +724,12 @@ function $(r) {
|
|
|
721
724
|
throw new Error(`Error getting URL from: ${r}, no valid prefix found`);
|
|
722
725
|
}
|
|
723
726
|
typeof window < "u" && (window.__debugResolve = async function(e, t, n) {
|
|
724
|
-
|
|
725
|
-
return typeof e == "string" ? (o = window.__lastResolveObject, l = e, a = t) : (o = e, l = t, a = n), await J(o, l, a);
|
|
727
|
+
return await D(e, t, n);
|
|
726
728
|
});
|
|
727
729
|
function I(r) {
|
|
728
730
|
return async (e, ...t) => {
|
|
729
731
|
try {
|
|
730
|
-
const l = (await import(await
|
|
732
|
+
const l = (await import(await D(e, "/runtime/entry")))[r];
|
|
731
733
|
return l(e, ...t);
|
|
732
734
|
} catch (n) {
|
|
733
735
|
throw console.error("efp-loader", `Error when trying to import and call "${r}":`, n), n;
|
|
@@ -743,7 +745,7 @@ function E(r) {
|
|
|
743
745
|
}
|
|
744
746
|
return r;
|
|
745
747
|
}
|
|
746
|
-
function
|
|
748
|
+
function V(r) {
|
|
747
749
|
return "structuredClone" in globalThis ? globalThis.structuredClone(r) : JSON.parse(JSON.stringify(r));
|
|
748
750
|
}
|
|
749
751
|
function $e(r, e) {
|
|
@@ -753,12 +755,12 @@ function $e(r, e) {
|
|
|
753
755
|
if (Array.isArray(e))
|
|
754
756
|
throw new Error("Cannot merge arrays");
|
|
755
757
|
const t = Object.keys(e).filter((o) => o !== "$ref");
|
|
756
|
-
if (t.length === 0) return
|
|
758
|
+
if (t.length === 0) return V(r);
|
|
757
759
|
if (Array.isArray(r))
|
|
758
760
|
throw new Error("Cannot merge into arrays");
|
|
759
761
|
if (r === null || typeof r != "object")
|
|
760
762
|
throw new Error("Cannot merge into non-object target");
|
|
761
|
-
const n =
|
|
763
|
+
const n = V({ ...r });
|
|
762
764
|
for (const o of t)
|
|
763
765
|
n[o] = e[o];
|
|
764
766
|
return n;
|
|
@@ -783,50 +785,56 @@ function Ee(r, e) {
|
|
|
783
785
|
r[t] = e[t];
|
|
784
786
|
}
|
|
785
787
|
}
|
|
786
|
-
async function
|
|
788
|
+
async function Oe(r, e, t) {
|
|
787
789
|
t = t || {};
|
|
788
790
|
for (const n of e)
|
|
789
|
-
await
|
|
791
|
+
await D(r, n, { ...t, mutate: !0 });
|
|
790
792
|
}
|
|
791
|
-
typeof window < "u" && (window.__debugMutateManifest =
|
|
792
|
-
async function
|
|
793
|
-
const { makeOfflineBundle: e } = await import("./makeOfflineBundle-
|
|
793
|
+
typeof window < "u" && (window.__debugMutateManifest = Oe);
|
|
794
|
+
async function _e(r) {
|
|
795
|
+
const { makeOfflineBundle: e } = await import("./makeOfflineBundle-BoEPc05D.js");
|
|
794
796
|
return await e(r);
|
|
795
797
|
}
|
|
796
|
-
async function Ae(r) {
|
|
797
|
-
const {
|
|
798
|
-
return await
|
|
798
|
+
async function Ae(r, e) {
|
|
799
|
+
const { downloadOfflineZip: t } = await import("./downloadOfflineZip-RIzZSzeG.js");
|
|
800
|
+
return await t(r, e);
|
|
801
|
+
}
|
|
802
|
+
async function je(r, e) {
|
|
803
|
+
const { saveOfflineZip: t } = await import("./saveOfflineZip.browser-BTQeRUY_.js");
|
|
804
|
+
return await t(r, e);
|
|
799
805
|
}
|
|
800
806
|
async function ke(r) {
|
|
801
|
-
const { makeOffline: e } = await import("./makeOffline-
|
|
807
|
+
const { makeOffline: e } = await import("./makeOffline-Doxc2dX7.js"), t = await e(r);
|
|
802
808
|
for await (const n of (await t).files)
|
|
803
809
|
"data" in n ? console.info(`🗳️ Put ${n.targetFilePath} <=`, n.data) : "url" in n && console.info(`🗳️ Download ${n.targetFilePath} <= ${n.url}`);
|
|
804
810
|
console.info("Offline data: ", t.manifest);
|
|
805
811
|
}
|
|
806
|
-
typeof window < "u" && (window.
|
|
812
|
+
typeof window < "u" && (window.__debugDownloadOfflineZip = Ae, window.__debugMakeOfflineBundle = _e, window.__debugLogOfflineManifestFiles = ke);
|
|
807
813
|
const B = globalThis.__efpLoaderBuildInfo;
|
|
808
|
-
B ?
|
|
809
|
-
const
|
|
810
|
-
async function
|
|
814
|
+
B ? p("Initialized", { version: B[0], builtAt: B[1] }) : p("Initialized");
|
|
815
|
+
const Ie = I("mount"), Le = I("load"), Te = I("initialize");
|
|
816
|
+
async function Be(r, e, ...t) {
|
|
811
817
|
return await I(r)(e, ...t);
|
|
812
818
|
}
|
|
813
819
|
export {
|
|
814
|
-
|
|
815
|
-
|
|
820
|
+
E as a,
|
|
821
|
+
S as b,
|
|
816
822
|
Me as c,
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
Ae as
|
|
820
|
-
|
|
823
|
+
Be as callFunction_Experimental,
|
|
824
|
+
re as d,
|
|
825
|
+
Ae as downloadOfflineZip,
|
|
826
|
+
$e as e,
|
|
827
|
+
V as f,
|
|
821
828
|
Q as g,
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
829
|
+
Fe as h,
|
|
830
|
+
Te as initialize,
|
|
831
|
+
Le as load,
|
|
832
|
+
_e as makeOfflineBundle,
|
|
833
|
+
Ie as mount,
|
|
834
|
+
Oe as mutateManifest,
|
|
828
835
|
$ as p,
|
|
829
|
-
|
|
830
|
-
|
|
836
|
+
Ce as r,
|
|
837
|
+
D as resolve,
|
|
838
|
+
je as saveOfflineZip
|
|
831
839
|
};
|
|
832
840
|
//# sourceMappingURL=bundle.js.map
|