@expofp/loader 1.0.58 → 1.0.60
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 +156 -156
- package/dist/bundle/bundle.js.map +1 -1
- package/dist/bundle/{downloadZip-BbVnryS9.js → downloadZip-CohB2rQN.js} +326 -324
- package/dist/bundle/downloadZip-CohB2rQN.js.map +1 -0
- package/dist/bundle/makeOffline-DuRXI_Dd.js.map +1 -1
- package/dist/bundle/makeOfflineBundle-XjvmvDQE.js.map +1 -1
- package/dist/esm/importJson.js +2 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/loadAndWaitGlobal.js +1 -1
- package/dist/esm/logger.d.ts +1 -2
- package/dist/esm/logger.js +4 -1
- package/dist/esm/offline/downloadZip.js +2 -0
- package/dist/esm/offline/makeOffline.js +2 -1
- package/dist/esm/offline/makeOfflineBundle.js +1 -1
- package/dist/esm/resolve.js +2 -1
- package/dist/esm/resolvers/_OLD_expoResolver.js +1 -1
- package/dist/esm/resolvers/assetResolver.js +1 -1
- package/dist/esm/resolvers/bundleAssetsResolver.js +1 -1
- package/dist/esm/resolvers/expoRuntimeBranchResolver.js +1 -1
- package/dist/esm/resolvers/expoRuntimeGetBranchResolver.js +1 -1
- package/dist/esm/resolvers/expoRuntimeResolver.js +2 -1
- package/dist/esm/resolvers/httpResolver.js +1 -1
- package/dist/esm/resolvers/legacyAssetUrlsResolver.js +9 -10
- package/dist/esm/resolvers/legacyDataResolver.js +1 -1
- package/dist/esm/shared.d.ts +0 -1
- package/dist/esm/shared.js +0 -6
- package/package.json +1 -1
- package/dist/bundle/downloadZip-BbVnryS9.js.map +0 -1
- package/dist/esm/offline/downloadZip copy.d.ts +0 -1
- package/dist/esm/offline/downloadZip copy.js +0 -89
- package/dist/esm/offline/makeOfflineBundle copy.d.ts +0 -1
- package/dist/esm/offline/makeOfflineBundle copy.js +0 -92
package/dist/bundle/bundle.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
window.__efpLoaderBuildInfo = ["1.0.
|
|
2
|
-
var
|
|
3
|
-
function
|
|
1
|
+
window.__efpLoaderBuildInfo = ["1.0.60", "2025-12-13T12:09:38.327Z"];
|
|
2
|
+
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
+
function Q(r) {
|
|
4
4
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
if (
|
|
9
|
-
|
|
6
|
+
var O = { exports: {} }, L, U;
|
|
7
|
+
function X() {
|
|
8
|
+
if (U) return L;
|
|
9
|
+
U = 1;
|
|
10
10
|
var r = 1e3, e = r * 60, t = e * 60, n = t * 24, o = n * 7, l = n * 365.25;
|
|
11
|
-
|
|
11
|
+
L = function(f, s) {
|
|
12
12
|
s = s || {};
|
|
13
13
|
var i = typeof f;
|
|
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) : w(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,26 +71,26 @@ function Y() {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function w(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 ? h(f, s, n, "day") : s >= t ? h(f, s, t, "hour") : s >= e ? h(f, s, e, "minute") : s >= r ? h(f, s, r, "second") : f + " ms";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
return Math.round(f / i) + " " + u + (
|
|
82
|
+
function h(f, s, i, u) {
|
|
83
|
+
var d = s >= i * 1.5;
|
|
84
|
+
return Math.round(f / i) + " " + u + (d ? "s" : "");
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return L;
|
|
87
87
|
}
|
|
88
|
-
var
|
|
89
|
-
function
|
|
90
|
-
if (
|
|
91
|
-
|
|
88
|
+
var T, W;
|
|
89
|
+
function Y() {
|
|
90
|
+
if (W) return T;
|
|
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 = h, n.disable = w, 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) {
|
|
@@ -101,29 +101,29 @@ function x() {
|
|
|
101
101
|
}
|
|
102
102
|
n.selectColor = t;
|
|
103
103
|
function n(s) {
|
|
104
|
-
let i, u = null,
|
|
104
|
+
let i, u = null, d, g;
|
|
105
105
|
function p(...m) {
|
|
106
106
|
if (!p.enabled)
|
|
107
107
|
return;
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
let
|
|
111
|
-
m[0] = m[0].replace(/%([a-zA-Z%])/g, (
|
|
112
|
-
if (
|
|
108
|
+
const C = p, F = Number(/* @__PURE__ */ new Date()), _ = F - (i || F);
|
|
109
|
+
C.diff = _, C.prev = i, C.curr = F, i = F, m[0] = n.coerce(m[0]), typeof m[0] != "string" && m.unshift("%O");
|
|
110
|
+
let R = 0;
|
|
111
|
+
m[0] = m[0].replace(/%([a-zA-Z%])/g, (b, H) => {
|
|
112
|
+
if (b === "%%")
|
|
113
113
|
return "%";
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
if (typeof
|
|
117
|
-
const
|
|
118
|
-
|
|
114
|
+
R++;
|
|
115
|
+
const N = n.formatters[H];
|
|
116
|
+
if (typeof N == "function") {
|
|
117
|
+
const K = m[R];
|
|
118
|
+
b = N.call(C, K), m.splice(R, 1), R--;
|
|
119
119
|
}
|
|
120
|
-
return
|
|
121
|
-
}), n.formatArgs.call(
|
|
120
|
+
return b;
|
|
121
|
+
}), n.formatArgs.call(C, m), (C.log || n.log).apply(C, m);
|
|
122
122
|
}
|
|
123
123
|
return p.namespace = s, p.useColors = n.useColors(), p.color = n.selectColor(s), p.extend = o, p.destroy = n.destroy, Object.defineProperty(p, "enabled", {
|
|
124
124
|
enumerable: !0,
|
|
125
125
|
configurable: !1,
|
|
126
|
-
get: () => u !== null ? u : (
|
|
126
|
+
get: () => u !== null ? u : (d !== n.namespaces && (d = n.namespaces, g = n.enabled(s)), g),
|
|
127
127
|
set: (m) => {
|
|
128
128
|
u = m;
|
|
129
129
|
}
|
|
@@ -140,19 +140,19 @@ function x() {
|
|
|
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,
|
|
143
|
+
let u = 0, d = 0, g = -1, p = 0;
|
|
144
144
|
for (; u < s.length; )
|
|
145
|
-
if (
|
|
146
|
-
i[
|
|
147
|
-
else if (
|
|
148
|
-
|
|
145
|
+
if (d < i.length && (i[d] === s[u] || i[d] === "*"))
|
|
146
|
+
i[d] === "*" ? (g = d, p = u, d++) : (u++, d++);
|
|
147
|
+
else if (g !== -1)
|
|
148
|
+
d = g + 1, p++, u = p;
|
|
149
149
|
else
|
|
150
150
|
return !1;
|
|
151
|
-
for (;
|
|
152
|
-
|
|
153
|
-
return
|
|
151
|
+
for (; d < i.length && i[d] === "*"; )
|
|
152
|
+
d++;
|
|
153
|
+
return d === i.length;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function w() {
|
|
156
156
|
const s = [
|
|
157
157
|
...n.names,
|
|
158
158
|
...n.skips.map((i) => "-" + i)
|
|
@@ -168,7 +168,7 @@ function x() {
|
|
|
168
168
|
return !0;
|
|
169
169
|
return !1;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function h(s) {
|
|
172
172
|
return s instanceof Error ? s.stack || s.message : s;
|
|
173
173
|
}
|
|
174
174
|
function f() {
|
|
@@ -176,11 +176,11 @@ function x() {
|
|
|
176
176
|
}
|
|
177
177
|
return n.enable(n.load()), n;
|
|
178
178
|
}
|
|
179
|
-
return
|
|
179
|
+
return T = r, T;
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
function
|
|
183
|
-
return
|
|
181
|
+
var z;
|
|
182
|
+
function x() {
|
|
183
|
+
return z || (z = 1, (function(r, e) {
|
|
184
184
|
e.formatArgs = n, e.save = o, e.load = l, e.useColors = t, e.storage = a(), e.destroy = /* @__PURE__ */ (() => {
|
|
185
185
|
let c = !1;
|
|
186
186
|
return () => {
|
|
@@ -279,12 +279,12 @@ function ee() {
|
|
|
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 h = "color: " + this.color;
|
|
283
|
+
c.splice(1, 0, h, "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, h);
|
|
288
288
|
}
|
|
289
289
|
e.log = console.debug || console.log || (() => {
|
|
290
290
|
});
|
|
@@ -308,39 +308,42 @@ function ee() {
|
|
|
308
308
|
} catch {
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
r.exports =
|
|
312
|
-
const { formatters:
|
|
313
|
-
|
|
311
|
+
r.exports = Y()(e);
|
|
312
|
+
const { formatters: w } = r.exports;
|
|
313
|
+
w.j = function(c) {
|
|
314
314
|
try {
|
|
315
315
|
return JSON.stringify(c);
|
|
316
|
-
} catch (
|
|
317
|
-
return "[UnexpectedJSONParseError]: " +
|
|
316
|
+
} catch (h) {
|
|
317
|
+
return "[UnexpectedJSONParseError]: " + h.message;
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
|
-
})(
|
|
320
|
+
})(O, O.exports)), O.exports;
|
|
321
|
+
}
|
|
322
|
+
var ee = x();
|
|
323
|
+
const re = /* @__PURE__ */ Q(ee), te = re("efp:loader");
|
|
324
|
+
function y(...r) {
|
|
325
|
+
te(...r);
|
|
321
326
|
}
|
|
322
|
-
var re = ee();
|
|
323
|
-
const te = /* @__PURE__ */ X(re), N = te("efp:loader");
|
|
324
327
|
function ne(r) {
|
|
325
|
-
return y("assetResolver resolveRef:", r),
|
|
328
|
+
return y("assetResolver resolveRef:", r), $(r);
|
|
326
329
|
}
|
|
327
330
|
const oe = {
|
|
328
331
|
schema: "asset",
|
|
329
332
|
resolveRef: async (r) => ne(r),
|
|
330
333
|
offlineMethod: "localizeRef"
|
|
331
334
|
};
|
|
332
|
-
let
|
|
333
|
-
const se = /* @__PURE__ */ new WeakSet(),
|
|
334
|
-
async function
|
|
335
|
+
let A;
|
|
336
|
+
const se = /* @__PURE__ */ new WeakSet(), P = new Function("url", 'return import(url, { with: { type: "json" } });');
|
|
337
|
+
async function M(r, e) {
|
|
335
338
|
var n, o;
|
|
336
|
-
if (
|
|
339
|
+
if (A === void 0 && !e.forceFetch)
|
|
337
340
|
try {
|
|
338
|
-
await
|
|
341
|
+
await P(r), A = !1;
|
|
339
342
|
} catch {
|
|
340
|
-
y("importJson: dynamic import not available, falling back to fetch"),
|
|
343
|
+
y("importJson: dynamic import not available, falling back to fetch"), A = !0;
|
|
341
344
|
}
|
|
342
345
|
let t;
|
|
343
|
-
return !
|
|
346
|
+
return !A && !e.forceFetch ? (t = (await P(r)).default, (n = e.importCallback) == null || n.call(e, r, "json")) : (y("importJson: fetch", r), t = await ae(r, e.refCache, e.signal || null), (o = e.importCallback) == null || o.call(e, r, "json")), se.has(t) || E(t), t;
|
|
344
347
|
}
|
|
345
348
|
async function ae(r, e, t) {
|
|
346
349
|
const n = "__loadJson__" + r;
|
|
@@ -354,19 +357,19 @@ async function ae(r, e, t) {
|
|
|
354
357
|
})();
|
|
355
358
|
return e.set(n, o), o;
|
|
356
359
|
}
|
|
357
|
-
async function
|
|
360
|
+
async function j(r, e, t) {
|
|
358
361
|
if (e.has(r))
|
|
359
362
|
return e.get(r);
|
|
360
|
-
const n = t().then((o) => (
|
|
363
|
+
const n = t().then((o) => (E(o), o));
|
|
361
364
|
return e.set(r, n), n;
|
|
362
365
|
}
|
|
363
366
|
const ie = {
|
|
364
367
|
schema: "bundle-assets",
|
|
365
368
|
async resolveRef(r, e) {
|
|
366
369
|
y("bundleAssetsResolver resolveRef:", r);
|
|
367
|
-
const t =
|
|
368
|
-
return
|
|
369
|
-
const n = await
|
|
370
|
+
const t = $(r);
|
|
371
|
+
return j(r, e.refCache, async () => {
|
|
372
|
+
const n = await M(t, e), o = t.substring(0, t.lastIndexOf("/") + 1);
|
|
370
373
|
return n.map((a) => ({
|
|
371
374
|
$ref: `asset+${o}${a}`
|
|
372
375
|
}));
|
|
@@ -377,9 +380,9 @@ const ie = {
|
|
|
377
380
|
schema: "expo-runtime-branch",
|
|
378
381
|
async resolveRef(r, e) {
|
|
379
382
|
y("expoRuntimeBranchResolver resolveRef:", r);
|
|
380
|
-
const t =
|
|
381
|
-
return
|
|
382
|
-
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${await
|
|
383
|
+
const t = $(r), n = `${le}branches/${t}.json`;
|
|
384
|
+
return j(r, e.refCache, async () => ({
|
|
385
|
+
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${await M(n, e)}/`
|
|
383
386
|
}));
|
|
384
387
|
},
|
|
385
388
|
offlineMethod: "resolveRef"
|
|
@@ -387,8 +390,8 @@ const ie = {
|
|
|
387
390
|
schema: "expo-runtime-get-branch",
|
|
388
391
|
async resolveRef(r, e) {
|
|
389
392
|
y("expoRuntimeGetBranchResolver resolveRef:", r);
|
|
390
|
-
const n = `https://${
|
|
391
|
-
return
|
|
393
|
+
const n = `https://${$(r)}.expofp.com/get-branch`;
|
|
394
|
+
return M(n, e);
|
|
392
395
|
},
|
|
393
396
|
offlineMethod: "resolveRef"
|
|
394
397
|
}, ue = {
|
|
@@ -398,11 +401,11 @@ const ie = {
|
|
|
398
401
|
// },
|
|
399
402
|
async resolveRef(r) {
|
|
400
403
|
y("expoRuntimeResolver resolveRef:", r);
|
|
401
|
-
const e =
|
|
404
|
+
const e = $(r), t = {
|
|
402
405
|
entry: { $ref: `asset+${e}expofp.js` },
|
|
403
406
|
assets: { $ref: `bundle-assets+${e}bundle.json` }
|
|
404
407
|
};
|
|
405
|
-
return
|
|
408
|
+
return E(t), t;
|
|
406
409
|
},
|
|
407
410
|
// async *makeOfflineRef(ref: string) {
|
|
408
411
|
// log('expoRuntimeResolver makeOfflineRef:', ref);
|
|
@@ -428,19 +431,19 @@ const ie = {
|
|
|
428
431
|
},
|
|
429
432
|
resolveRef(r, e) {
|
|
430
433
|
if (y("httpResolver resolveRef:", r), !this.canResolve(r)) throw new Error(`Unexpected ref in httpResolver: ${r}`);
|
|
431
|
-
return
|
|
434
|
+
return M(r, e);
|
|
432
435
|
},
|
|
433
436
|
offlineMethod: "resolveRef"
|
|
434
437
|
};
|
|
435
|
-
async function
|
|
438
|
+
async function k(r, e) {
|
|
436
439
|
const { globalVar: t, timeoutMs: n = 1e4, pollIntervalMs: o = 10 } = e;
|
|
437
|
-
we() ? (t && window[t] !== void 0 && delete window[t], await he(r, e.signal), t && await
|
|
440
|
+
we() ? (t && window[t] !== void 0 && delete window[t], await he(r, e.signal), t && await V(
|
|
438
441
|
() => window[t],
|
|
439
442
|
t,
|
|
440
443
|
n,
|
|
441
444
|
o,
|
|
442
445
|
e.signal
|
|
443
|
-
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await pe(r, e.signal), t && await
|
|
446
|
+
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await pe(r, e.signal), t && await V(
|
|
444
447
|
() => globalThis[t],
|
|
445
448
|
t,
|
|
446
449
|
n,
|
|
@@ -502,9 +505,9 @@ async function pe(r, e) {
|
|
|
502
505
|
l === void 0 ? delete o.window : o.window = l;
|
|
503
506
|
}
|
|
504
507
|
}
|
|
505
|
-
function
|
|
508
|
+
function V(r, e, t, n, o) {
|
|
506
509
|
return new Promise((l, a) => {
|
|
507
|
-
const
|
|
510
|
+
const w = Date.now(), c = () => {
|
|
508
511
|
a(new Error("Wait for global aborted"));
|
|
509
512
|
};
|
|
510
513
|
if (o != null && o.aborted) {
|
|
@@ -512,7 +515,7 @@ function q(r, e, t, n, o) {
|
|
|
512
515
|
return;
|
|
513
516
|
}
|
|
514
517
|
o == null || o.addEventListener("abort", c, { once: !0 });
|
|
515
|
-
const
|
|
518
|
+
const h = () => {
|
|
516
519
|
if (o != null && o.aborted)
|
|
517
520
|
return a(new Error("Wait for global aborted"));
|
|
518
521
|
try {
|
|
@@ -520,11 +523,11 @@ function q(r, e, t, n, o) {
|
|
|
520
523
|
return o == null || o.removeEventListener("abort", c), l();
|
|
521
524
|
} catch {
|
|
522
525
|
}
|
|
523
|
-
if (Date.now() -
|
|
526
|
+
if (Date.now() - w >= t)
|
|
524
527
|
return o == null || o.removeEventListener("abort", c), a(new Error(`Timed out after ${t} ms waiting for global "${e}"`));
|
|
525
|
-
setTimeout(
|
|
528
|
+
setTimeout(h, n);
|
|
526
529
|
};
|
|
527
|
-
|
|
530
|
+
h();
|
|
528
531
|
});
|
|
529
532
|
}
|
|
530
533
|
const me = {
|
|
@@ -532,45 +535,45 @@ const me = {
|
|
|
532
535
|
resolveRef(r, e) {
|
|
533
536
|
y("legacyAssetUrlsResolver resolveRef:", r);
|
|
534
537
|
const t = e.signal;
|
|
535
|
-
return
|
|
536
|
-
var
|
|
537
|
-
const n =
|
|
538
|
+
return j(r, e.refCache, async () => {
|
|
539
|
+
var m, C, F, _, R;
|
|
540
|
+
const n = $(r), o = `${n}version.js`;
|
|
538
541
|
try {
|
|
539
|
-
await
|
|
542
|
+
await k(o, {
|
|
540
543
|
globalVar: "__fpDataVersion",
|
|
541
544
|
timeoutMs: 3e4,
|
|
542
545
|
signal: t
|
|
543
|
-
}), (
|
|
546
|
+
}), (m = e.importCallback) == null || m.call(e, o, "script");
|
|
544
547
|
} catch {
|
|
545
548
|
console.warn(`Could not load version.js at ${o}, proceeding without it`);
|
|
546
549
|
}
|
|
547
|
-
const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}
|
|
550
|
+
const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}data.js?v=${l}`, w = k(a, {
|
|
548
551
|
globalVar: "__data",
|
|
549
552
|
signal: t
|
|
550
553
|
});
|
|
551
|
-
(
|
|
552
|
-
const
|
|
554
|
+
(C = e.importCallback) == null || C.call(e, a, "script");
|
|
555
|
+
const c = `${n}wf.data.js?v=${l}`, h = k(c, {
|
|
553
556
|
globalVar: "__wfData",
|
|
554
557
|
signal: t
|
|
555
558
|
}).then(() => {
|
|
556
|
-
var
|
|
557
|
-
(
|
|
559
|
+
var v;
|
|
560
|
+
(v = e.importCallback) == null || v.call(e, c, "script");
|
|
558
561
|
}).catch(() => {
|
|
559
|
-
console.warn(`Could not load wf.data.js at ${
|
|
562
|
+
console.warn(`Could not load wf.data.js at ${c}, proceeding without it`);
|
|
560
563
|
});
|
|
561
564
|
delete globalThis.__fpLayers;
|
|
562
|
-
const
|
|
565
|
+
const f = `${n}fp.svg.js?v=${l}`, s = k(f, {
|
|
563
566
|
globalVar: "__fp",
|
|
564
567
|
signal: t
|
|
565
568
|
});
|
|
566
|
-
(
|
|
567
|
-
const
|
|
568
|
-
for (const
|
|
569
|
-
const
|
|
570
|
-
(
|
|
569
|
+
(F = e.importCallback) == null || F.call(e, f, "script"), await Promise.all([w, h, s]);
|
|
570
|
+
const u = ((_ = globalThis.__fpLayers) != null ? _ : []).map((v) => `fp.svg.${v.name}.js`);
|
|
571
|
+
for (const v of u) {
|
|
572
|
+
const b = `${n}${v}?v=${l}`;
|
|
573
|
+
(R = e.importCallback) == null || R.call(e, b, "script");
|
|
571
574
|
}
|
|
572
|
-
const
|
|
573
|
-
return { ...[
|
|
575
|
+
const d = globalThis.__data || {};
|
|
576
|
+
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((v, b) => (v[b] = { $ref: `asset+${n}${b}?v=${l}` }, v), {}), ...ye(n, d) };
|
|
574
577
|
});
|
|
575
578
|
},
|
|
576
579
|
offlineMethod: "resolveRef"
|
|
@@ -582,20 +585,20 @@ function ye(r, e) {
|
|
|
582
585
|
typeof a == "string" && a.length > 0 && t.add(a);
|
|
583
586
|
}
|
|
584
587
|
return n(e.logo), (o = e.exhibitors) == null || o.forEach((a) => {
|
|
585
|
-
var
|
|
586
|
-
n(a.logo), (
|
|
588
|
+
var w;
|
|
589
|
+
n(a.logo), (w = a.gallery) == null || w.forEach((c) => n(c));
|
|
587
590
|
}), (l = e.events) == null || l.forEach((a) => {
|
|
588
|
-
var
|
|
589
|
-
n(a.logoFile), (
|
|
591
|
+
var w;
|
|
592
|
+
n(a.logoFile), (w = a.speakers) == null || w.forEach((c) => {
|
|
590
593
|
n(c.photoFile);
|
|
591
594
|
});
|
|
592
|
-
}), Array.from(t).reduce((a,
|
|
595
|
+
}), Array.from(t).reduce((a, w) => (a[w] = { $ref: `asset+${r}${w}` }, a), {});
|
|
593
596
|
}
|
|
594
597
|
const Ce = {
|
|
595
598
|
schema: "legacy-data",
|
|
596
599
|
resolveRef(r, e) {
|
|
597
|
-
return y("legacyDataResolver resolveRef:", r),
|
|
598
|
-
const t =
|
|
600
|
+
return y("legacyDataResolver resolveRef:", r), j(r, e.refCache, async () => {
|
|
601
|
+
const t = $(r);
|
|
599
602
|
return {
|
|
600
603
|
_to_remove_for_offline_to_work_dataUrlBase: t,
|
|
601
604
|
legacyAssetUrls: { $ref: `legacy-asset-urls+${t}` }
|
|
@@ -613,7 +616,7 @@ const Ce = {
|
|
|
613
616
|
Ce,
|
|
614
617
|
me
|
|
615
618
|
], be = /* @__PURE__ */ new Map();
|
|
616
|
-
async function
|
|
619
|
+
async function J(r, e, t) {
|
|
617
620
|
y("Resolving:", e, "of", r, t), typeof window < "u" && (window.__lastResolveObject = r);
|
|
618
621
|
const n = {
|
|
619
622
|
importCallback: t == null ? void 0 : t.importCallback,
|
|
@@ -633,48 +636,48 @@ async function P(r, e, t) {
|
|
|
633
636
|
if (t != null && t.mutate) {
|
|
634
637
|
o.unshift("root");
|
|
635
638
|
const l = { root: r };
|
|
636
|
-
await
|
|
639
|
+
await Z(l, o, 0, n), Ee(r, l.root);
|
|
637
640
|
} else
|
|
638
|
-
return await
|
|
641
|
+
return await q(r, o, 0, n);
|
|
639
642
|
}
|
|
640
|
-
async function
|
|
643
|
+
async function Z(r, e, t, n) {
|
|
641
644
|
const o = e[t];
|
|
642
645
|
if (await ge(r, o, n), t != e.length - 1) {
|
|
643
646
|
if (r[o] === null || typeof r[o] != "object")
|
|
644
647
|
throw new Error(
|
|
645
648
|
`Cannot resolve path, encountered non-object at part '${e.slice(1).join("/")}', index ${t - 1}'`
|
|
646
649
|
);
|
|
647
|
-
return await
|
|
650
|
+
return await Z(r[o], e, t + 1, n);
|
|
648
651
|
}
|
|
649
652
|
}
|
|
650
653
|
async function ge(r, e, t) {
|
|
651
654
|
y("resolveObjectMutate:", r, e);
|
|
652
655
|
let n = r[e];
|
|
653
|
-
const o = await
|
|
656
|
+
const o = await D(n, t);
|
|
654
657
|
o !== void 0 && (r[e] = o);
|
|
655
658
|
}
|
|
656
|
-
async function
|
|
659
|
+
async function q(r, e, t, n) {
|
|
657
660
|
if (t === e.length)
|
|
658
|
-
return await
|
|
661
|
+
return await D(r, n);
|
|
659
662
|
if (r === null || typeof r != "object")
|
|
660
663
|
throw new Error(
|
|
661
664
|
`Cannot resolve path, encountered non-object at part '${e.join("/")}', index ${t}'`
|
|
662
665
|
);
|
|
663
666
|
const o = e[t];
|
|
664
667
|
let l = r[o];
|
|
665
|
-
return l === void 0 && (l = (await
|
|
668
|
+
return l === void 0 && (l = (await D(r, n))[o]), await q(l, e, t + 1, n);
|
|
666
669
|
}
|
|
667
|
-
async function
|
|
670
|
+
async function D(r, e) {
|
|
668
671
|
y("resolveObject:", r);
|
|
669
672
|
let t = r;
|
|
670
673
|
do {
|
|
671
674
|
if (typeof t != "object" || t === null || !("$ref" in t))
|
|
672
675
|
return t;
|
|
673
|
-
const n = ve.filter((l) =>
|
|
676
|
+
const n = ve.filter((l) => S(l, t.$ref));
|
|
674
677
|
if (n.length === 0) {
|
|
675
678
|
if (t.$ref)
|
|
676
679
|
throw new Error(`No resolver found for ref: ${t.$ref}`);
|
|
677
|
-
return
|
|
680
|
+
return E(t), t;
|
|
678
681
|
}
|
|
679
682
|
if (n.length > 1)
|
|
680
683
|
throw new Error(`Multiple resolvers can resolve ref: ${t.$ref}`);
|
|
@@ -683,11 +686,11 @@ async function W(r, e) {
|
|
|
683
686
|
} while (!0);
|
|
684
687
|
}
|
|
685
688
|
async function Fe(r, e, t) {
|
|
686
|
-
if (!
|
|
689
|
+
if (!S(r, e))
|
|
687
690
|
throw new Error(`Unexpected ref: ${e}`);
|
|
688
691
|
return r.resolveRef(e, t);
|
|
689
692
|
}
|
|
690
|
-
function
|
|
693
|
+
function S(r, e) {
|
|
691
694
|
if (r.canResolve)
|
|
692
695
|
return r.canResolve(e);
|
|
693
696
|
if (r.schema)
|
|
@@ -701,7 +704,7 @@ function Re(r, e) {
|
|
|
701
704
|
return !0;
|
|
702
705
|
return !1;
|
|
703
706
|
}
|
|
704
|
-
function
|
|
707
|
+
function $(r) {
|
|
705
708
|
if (r.startsWith("http://") || r.startsWith("https://"))
|
|
706
709
|
return r;
|
|
707
710
|
const e = r.indexOf("+http://"), t = r.indexOf("+https://");
|
|
@@ -716,31 +719,28 @@ function F(r) {
|
|
|
716
719
|
}
|
|
717
720
|
typeof window < "u" && (window.__debugResolve = async function(e, t, n) {
|
|
718
721
|
let o, l, a;
|
|
719
|
-
return typeof e == "string" ? (o = window.__lastResolveObject, l = e, a = t) : (o = e, l = t, a = n), await
|
|
722
|
+
return typeof e == "string" ? (o = window.__lastResolveObject, l = e, a = t) : (o = e, l = t, a = n), await J(o, l, a);
|
|
720
723
|
});
|
|
721
|
-
function
|
|
724
|
+
function I(r) {
|
|
722
725
|
return async (e, ...t) => {
|
|
723
726
|
try {
|
|
724
|
-
const l = (await import(await
|
|
727
|
+
const l = (await import(await J(e, "/runtime/entry")))[r];
|
|
725
728
|
return l(e, ...t);
|
|
726
729
|
} catch (n) {
|
|
727
730
|
throw console.error("efp-loader", `Error when trying to import and call "${r}":`, n), n;
|
|
728
731
|
}
|
|
729
732
|
};
|
|
730
733
|
}
|
|
731
|
-
function
|
|
732
|
-
N(...r);
|
|
733
|
-
}
|
|
734
|
-
function O(r) {
|
|
734
|
+
function E(r) {
|
|
735
735
|
if (r === null || typeof r != "object") return r;
|
|
736
736
|
Object.freeze(r);
|
|
737
737
|
for (const e of Object.keys(r)) {
|
|
738
738
|
const t = r[e];
|
|
739
|
-
typeof t == "object" && t !== null && !Object.isFrozen(t) &&
|
|
739
|
+
typeof t == "object" && t !== null && !Object.isFrozen(t) && E(t);
|
|
740
740
|
}
|
|
741
741
|
return r;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function G(r) {
|
|
744
744
|
return "structuredClone" in globalThis ? globalThis.structuredClone(r) : JSON.parse(JSON.stringify(r));
|
|
745
745
|
}
|
|
746
746
|
function $e(r, e) {
|
|
@@ -750,12 +750,12 @@ function $e(r, e) {
|
|
|
750
750
|
if (Array.isArray(e))
|
|
751
751
|
throw new Error("Cannot merge arrays");
|
|
752
752
|
const t = Object.keys(e).filter((o) => o !== "$ref");
|
|
753
|
-
if (t.length === 0) return
|
|
753
|
+
if (t.length === 0) return G(r);
|
|
754
754
|
if (Array.isArray(r))
|
|
755
755
|
throw new Error("Cannot merge into arrays");
|
|
756
756
|
if (r === null || typeof r != "object")
|
|
757
757
|
throw new Error("Cannot merge into non-object target");
|
|
758
|
-
const n =
|
|
758
|
+
const n = G({ ...r });
|
|
759
759
|
for (const o of t)
|
|
760
760
|
n[o] = e[o];
|
|
761
761
|
return n;
|
|
@@ -783,7 +783,7 @@ function Ee(r, e) {
|
|
|
783
783
|
async function _e(r, e, t) {
|
|
784
784
|
t = t || {};
|
|
785
785
|
for (const n of e)
|
|
786
|
-
await
|
|
786
|
+
await J(r, n, { ...t, mutate: !0 });
|
|
787
787
|
}
|
|
788
788
|
typeof window < "u" && (window.__debugMutateManifest = _e);
|
|
789
789
|
async function Oe(r) {
|
|
@@ -791,7 +791,7 @@ async function Oe(r) {
|
|
|
791
791
|
return await e(r);
|
|
792
792
|
}
|
|
793
793
|
async function Ae(r) {
|
|
794
|
-
const { downloadZip: e } = await import("./downloadZip-
|
|
794
|
+
const { downloadZip: e } = await import("./downloadZip-CohB2rQN.js");
|
|
795
795
|
return await e(r);
|
|
796
796
|
}
|
|
797
797
|
async function ke(r) {
|
|
@@ -801,29 +801,29 @@ async function ke(r) {
|
|
|
801
801
|
console.info("Offline data: ", t.manifest);
|
|
802
802
|
}
|
|
803
803
|
typeof window < "u" && (window.__debugDownloadZip = Ae, window.__debugMakeOfflineBundle = Oe, window.__debugLogOfflineManifestFiles = ke);
|
|
804
|
-
const
|
|
805
|
-
|
|
806
|
-
const
|
|
804
|
+
const B = globalThis.__efpLoaderBuildInfo;
|
|
805
|
+
B ? y("Initialized", { version: B[0], builtAt: B[1] }) : y("Initialized");
|
|
806
|
+
const je = I("mount"), Ie = I("load"), Le = I("initialize");
|
|
807
807
|
async function Te(r, e, ...t) {
|
|
808
|
-
return await
|
|
808
|
+
return await I(r)(e, ...t);
|
|
809
809
|
}
|
|
810
810
|
export {
|
|
811
|
-
|
|
811
|
+
S as a,
|
|
812
812
|
$e as b,
|
|
813
|
-
|
|
813
|
+
Me as c,
|
|
814
814
|
Te as callFunction_Experimental,
|
|
815
|
-
|
|
815
|
+
G as d,
|
|
816
816
|
Ae as downloadZip,
|
|
817
817
|
Fe as e,
|
|
818
|
-
|
|
819
|
-
|
|
818
|
+
Q as g,
|
|
819
|
+
Le as initialize,
|
|
820
820
|
y as l,
|
|
821
|
-
|
|
821
|
+
Ie as load,
|
|
822
822
|
Oe as makeOfflineBundle,
|
|
823
|
-
|
|
823
|
+
je as mount,
|
|
824
824
|
_e as mutateManifest,
|
|
825
|
-
|
|
825
|
+
$ as p,
|
|
826
826
|
ve as r,
|
|
827
|
-
|
|
827
|
+
J as resolve
|
|
828
828
|
};
|
|
829
829
|
//# sourceMappingURL=bundle.js.map
|