@expofp/loader 1.0.45 → 1.0.46
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/{downloadZip-B3vadhXZ.js → downloadZip-DMgeO3fU.js} +2 -2
- package/dist/{downloadZip-B3vadhXZ.js.map → downloadZip-DMgeO3fU.js.map} +1 -1
- package/dist/importJson.d.ts +2 -1
- package/dist/index.js +179 -177
- package/dist/index.js.map +1 -1
- package/dist/{makeOffline-DJO3H5Pc.js → makeOffline-1iGrM4gF.js} +11 -8
- package/dist/makeOffline-1iGrM4gF.js.map +1 -0
- package/dist/{makeOfflineBundle-C2JTPRo2.js → makeOfflineBundle-g0Y3sA2l.js} +2 -2
- package/dist/{makeOfflineBundle-C2JTPRo2.js.map → makeOfflineBundle-g0Y3sA2l.js.map} +1 -1
- package/dist/resolve.d.ts +4 -2
- package/dist/resolvers/legacyDataResolver.d.ts +1 -1
- package/dist/returnCachedRef.d.ts +1 -1
- package/package.json +1 -1
- package/dist/makeOffline-DJO3H5Pc.js.map +0 -1
package/dist/importJson.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ResolveContextInternal } from './resolve';
|
|
2
|
+
export declare function importJson(url: string, resolveContext: ResolveContextInternal): Promise<any>;
|
package/dist/index.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
function
|
|
1
|
+
function J(e) {
|
|
2
2
|
return i("assetResolver resolveRef:", e), l(e);
|
|
3
3
|
}
|
|
4
|
-
const
|
|
4
|
+
const U = {
|
|
5
5
|
schema: "asset",
|
|
6
|
-
resolveRef: async (e) =>
|
|
6
|
+
resolveRef: async (e) => J(e),
|
|
7
7
|
offlineMethod: "localizeRef"
|
|
8
8
|
};
|
|
9
9
|
let d;
|
|
10
|
-
const B = /* @__PURE__ */ new WeakSet(),
|
|
10
|
+
const B = /* @__PURE__ */ new WeakSet(), g = new Function("url", 'return import(url, { with: { type: "json" } });');
|
|
11
11
|
async function f(e, t) {
|
|
12
|
-
|
|
12
|
+
var r, o;
|
|
13
|
+
if (d === void 0 && !t.forceFetch)
|
|
13
14
|
try {
|
|
14
|
-
await
|
|
15
|
+
await g(e), d = !1;
|
|
15
16
|
} catch {
|
|
16
17
|
i("importJson: dynamic import not available, falling back to fetch"), d = !0;
|
|
17
18
|
}
|
|
18
19
|
let n;
|
|
19
|
-
return d ? (
|
|
20
|
+
return !d && !t.forceFetch ? (n = (await g(e)).default, (r = t.importCallback) == null || r.call(t, e, "json")) : (i("importJson: fetch", e), n = await N(e, t.refCache), (o = t.importCallback) == null || o.call(t, e, "json")), B.has(n) || u(n), n;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
return
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
if (!
|
|
22
|
+
async function N(e, t) {
|
|
23
|
+
const n = "__loadJson__" + e;
|
|
24
|
+
if (t.has(n))
|
|
25
|
+
return t.get(n);
|
|
26
|
+
const r = (async function() {
|
|
27
|
+
const a = await fetch(e);
|
|
28
|
+
if (!a.ok)
|
|
28
29
|
throw new Error(`Failed to fetch JSON from ${e}`);
|
|
29
|
-
return await
|
|
30
|
+
return await a.json();
|
|
30
31
|
})();
|
|
31
|
-
return
|
|
32
|
+
return t.set(n, r), r;
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return v.set(e, n), n;
|
|
34
|
+
async function h(e, t, n) {
|
|
35
|
+
if (t.has(e))
|
|
36
|
+
return t.get(e);
|
|
37
|
+
const r = n().then((o) => (u(o), o));
|
|
38
|
+
return t.set(e, r), r;
|
|
39
39
|
}
|
|
40
40
|
const T = {
|
|
41
41
|
schema: "bundle-assets",
|
|
42
42
|
async resolveRef(e, t) {
|
|
43
43
|
i("bundleAssetsResolver resolveRef:", e);
|
|
44
44
|
const n = l(e);
|
|
45
|
-
return h(e, async () => {
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
$ref: `asset+${
|
|
45
|
+
return h(e, t.refCache, async () => {
|
|
46
|
+
const r = await f(n, t), o = n.substring(0, n.lastIndexOf("/") + 1);
|
|
47
|
+
return r.map((s) => ({
|
|
48
|
+
$ref: `asset+${o}${s}`
|
|
49
49
|
}));
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
52
|
offlineMethod: "localizeRef"
|
|
53
|
-
},
|
|
53
|
+
}, C = "https://efp-runtime.expofp.com/", S = {
|
|
54
54
|
schema: "expo-runtime-branch",
|
|
55
55
|
async resolveRef(e, t) {
|
|
56
56
|
i("expoRuntimeBranchResolver resolveRef:", e);
|
|
57
|
-
const n = l(e),
|
|
58
|
-
return h(e, async () => ({
|
|
59
|
-
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${await f(
|
|
57
|
+
const n = l(e), r = `${C}branches/${n}.json`;
|
|
58
|
+
return h(e, t.refCache, async () => ({
|
|
59
|
+
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${await f(r, t)}/`
|
|
60
60
|
}));
|
|
61
61
|
},
|
|
62
62
|
offlineMethod: "resolveRef"
|
|
63
|
-
},
|
|
63
|
+
}, D = {
|
|
64
64
|
schema: "expo-runtime-get-branch",
|
|
65
65
|
async resolveRef(e, t) {
|
|
66
66
|
i("expoRuntimeGetBranchResolver resolveRef:", e);
|
|
67
|
-
const
|
|
68
|
-
return f(
|
|
67
|
+
const r = `https://${l(e)}.expofp.com/get-branch`;
|
|
68
|
+
return f(r, t);
|
|
69
69
|
},
|
|
70
70
|
offlineMethod: "resolveRef"
|
|
71
|
-
},
|
|
71
|
+
}, W = {
|
|
72
72
|
schema: "expo-runtime",
|
|
73
73
|
// canResolve(ref: string) {
|
|
74
74
|
// return canResolveRefSchema(ref, SCHEMA);
|
|
@@ -99,43 +99,43 @@ const T = {
|
|
|
99
99
|
// return targetFilePath;
|
|
100
100
|
// },
|
|
101
101
|
offlineMethod: "resolveRef"
|
|
102
|
-
},
|
|
102
|
+
}, P = {
|
|
103
103
|
canResolve(e) {
|
|
104
104
|
return e.startsWith("http://") || e.startsWith("https://") || e.startsWith("./");
|
|
105
105
|
},
|
|
106
106
|
resolveRef(e, t) {
|
|
107
107
|
if (i("httpResolver resolveRef:", e), !this.canResolve(e)) throw new Error(`Unexpected ref in httpResolver: ${e}`);
|
|
108
|
-
return f(e, t
|
|
108
|
+
return f(e, t);
|
|
109
109
|
},
|
|
110
110
|
offlineMethod: "resolveRef"
|
|
111
111
|
};
|
|
112
|
-
async function
|
|
113
|
-
const { globalVar: n, timeoutMs:
|
|
114
|
-
|
|
112
|
+
async function $(e, t = {}) {
|
|
113
|
+
const { globalVar: n, timeoutMs: r = 1e4, pollIntervalMs: o = 10 } = t;
|
|
114
|
+
I() ? (await z(e), n && await E(() => window[n], n, r, o)) : (await L(e), n && await E(
|
|
115
115
|
() => globalThis[n],
|
|
116
116
|
n,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
r,
|
|
118
|
+
o
|
|
119
119
|
));
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function I() {
|
|
122
122
|
return typeof window < "u" && typeof document < "u";
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function z(e) {
|
|
125
125
|
return new Promise((t, n) => {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
const
|
|
129
|
-
|
|
126
|
+
const r = document.createElement("script");
|
|
127
|
+
r.src = e, r.async = !0;
|
|
128
|
+
const o = () => {
|
|
129
|
+
r.onload = null, r.onerror = null;
|
|
130
130
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
}, document.head.appendChild(
|
|
131
|
+
r.onload = () => {
|
|
132
|
+
o(), t();
|
|
133
|
+
}, r.onerror = () => {
|
|
134
|
+
o(), n(new Error(`Failed to load script: ${e}`));
|
|
135
|
+
}, document.head.appendChild(r);
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
async function
|
|
138
|
+
async function L(e) {
|
|
139
139
|
if (typeof fetch != "function")
|
|
140
140
|
throw new Error(
|
|
141
141
|
"loadAndWaitGlobal: fetch is not available. Use Node 18+ or provide a global fetch."
|
|
@@ -146,81 +146,83 @@ async function G(e) {
|
|
|
146
146
|
const n = await t.text();
|
|
147
147
|
globalThis.window = globalThis, (0, eval)(n);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
return new Promise((
|
|
151
|
-
const
|
|
149
|
+
function E(e, t, n, r) {
|
|
150
|
+
return new Promise((o, a) => {
|
|
151
|
+
const s = Date.now(), c = () => {
|
|
152
152
|
try {
|
|
153
153
|
if (e() !== void 0)
|
|
154
|
-
return
|
|
154
|
+
return o();
|
|
155
155
|
} catch {
|
|
156
156
|
}
|
|
157
|
-
if (Date.now() -
|
|
158
|
-
return
|
|
159
|
-
setTimeout(c,
|
|
157
|
+
if (Date.now() - s >= n)
|
|
158
|
+
return a(new Error(`Timed out after ${n} ms waiting for global "${t}"`));
|
|
159
|
+
setTimeout(c, r);
|
|
160
160
|
};
|
|
161
161
|
c();
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const G = {
|
|
165
165
|
schema: "legacy-asset-urls",
|
|
166
166
|
resolveRef(e, t) {
|
|
167
|
-
return i("legacyAssetUrlsResolver resolveRef:", e), h(e, async () => {
|
|
168
|
-
var
|
|
169
|
-
const n = l(e),
|
|
167
|
+
return i("legacyAssetUrlsResolver resolveRef:", e), h(e, t.refCache, async () => {
|
|
168
|
+
var y, v;
|
|
169
|
+
const n = l(e), r = `${n}version.js`;
|
|
170
170
|
try {
|
|
171
|
-
await
|
|
171
|
+
await $(r, { globalVar: "__fpDataVersion", timeoutMs: 3e4 }), (y = t.importCallback) == null || y.call(t, r, "script");
|
|
172
172
|
} catch {
|
|
173
|
-
console.warn(`Could not load version.js at ${
|
|
173
|
+
console.warn(`Could not load version.js at ${r}, proceeding without it`);
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
(
|
|
177
|
-
const
|
|
178
|
-
return { ...[...
|
|
175
|
+
const o = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}files.json?v=${o}`, s = `${n}data.js?v=${o}`, c = f(a, t), j = $(s, { globalVar: "__data" });
|
|
176
|
+
(v = t.importCallback) == null || v.call(t, s, "script"), await Promise.all([c, j]);
|
|
177
|
+
const A = await c, M = globalThis.__data || {};
|
|
178
|
+
return { ...[...A, "data.js"].reduce((b, R) => (b[R] = { $ref: `asset+${n}${R}?v=${o}` }, b), {}), ...V(n, M) };
|
|
179
179
|
});
|
|
180
180
|
},
|
|
181
181
|
offlineMethod: "resolveRef"
|
|
182
182
|
};
|
|
183
|
-
function
|
|
183
|
+
function V(e, t) {
|
|
184
184
|
const n = /* @__PURE__ */ new Set();
|
|
185
|
-
function o
|
|
186
|
-
typeof
|
|
185
|
+
function r(o) {
|
|
186
|
+
typeof o == "string" && o.length > 0 && n.add(o);
|
|
187
187
|
}
|
|
188
|
-
return
|
|
189
|
-
var
|
|
190
|
-
o
|
|
191
|
-
}), t.events.forEach((
|
|
192
|
-
var
|
|
193
|
-
o
|
|
194
|
-
|
|
188
|
+
return r(t.logo), t.exhibitors.forEach((o) => {
|
|
189
|
+
var a;
|
|
190
|
+
r(o.logo), (a = o.gallery) == null || a.forEach((s) => r(s));
|
|
191
|
+
}), t.events.forEach((o) => {
|
|
192
|
+
var a;
|
|
193
|
+
r(o.logoFile), (a = o.speakers) == null || a.forEach((s) => {
|
|
194
|
+
r(s.photoFile);
|
|
195
195
|
});
|
|
196
|
-
}), Array.from(n).reduce((
|
|
196
|
+
}), Array.from(n).reduce((o, a) => (o[a] = { $ref: `asset+${e}${a}` }, o), {});
|
|
197
197
|
}
|
|
198
|
-
const
|
|
198
|
+
const Z = {
|
|
199
199
|
schema: "legacy-data",
|
|
200
|
-
resolveRef(e) {
|
|
201
|
-
return i("legacyDataResolver resolveRef:", e), h(e, async () => {
|
|
202
|
-
const
|
|
200
|
+
resolveRef(e, t) {
|
|
201
|
+
return i("legacyDataResolver resolveRef:", e), h(e, t.refCache, async () => {
|
|
202
|
+
const n = l(e);
|
|
203
203
|
return {
|
|
204
|
-
_to_remove_for_offline_to_work_dataUrlBase:
|
|
205
|
-
legacyAssetUrls: { $ref: `legacy-asset-urls+${
|
|
204
|
+
_to_remove_for_offline_to_work_dataUrlBase: n,
|
|
205
|
+
legacyAssetUrls: { $ref: `legacy-asset-urls+${n}` }
|
|
206
206
|
};
|
|
207
207
|
});
|
|
208
208
|
},
|
|
209
209
|
offlineMethod: "resolveRef"
|
|
210
|
-
},
|
|
211
|
-
I,
|
|
212
|
-
T,
|
|
213
|
-
J,
|
|
210
|
+
}, H = [
|
|
214
211
|
P,
|
|
215
|
-
|
|
212
|
+
T,
|
|
213
|
+
U,
|
|
216
214
|
W,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
S,
|
|
216
|
+
D,
|
|
217
|
+
Z,
|
|
218
|
+
G
|
|
219
|
+
], x = /* @__PURE__ */ new Map();
|
|
220
220
|
async function m(e, t, n) {
|
|
221
|
-
i("Resolving:", t), typeof window < "u" && (window.__lastResolveObject = e);
|
|
222
|
-
const
|
|
223
|
-
importCallback: n == null ? void 0 : n.importCallback
|
|
221
|
+
i("Resolving:", t, "of", e, n), typeof window < "u" && (window.__lastResolveObject = e);
|
|
222
|
+
const r = {
|
|
223
|
+
importCallback: n == null ? void 0 : n.importCallback,
|
|
224
|
+
refCache: (n == null ? void 0 : n.refCache) || x,
|
|
225
|
+
forceFetch: !!(n != null && n.forceFetch)
|
|
224
226
|
};
|
|
225
227
|
if (typeof t != "string")
|
|
226
228
|
throw new Error(`Invalid JSON Pointer (not a string): ${t}`);
|
|
@@ -228,77 +230,77 @@ async function m(e, t, n) {
|
|
|
228
230
|
throw new Error(`Invalid JSON Pointer: ${t}`);
|
|
229
231
|
if (t.length > 1 && t.endsWith("/"))
|
|
230
232
|
throw new Error(`Invalid JSON Pointer: ${t}`);
|
|
231
|
-
let
|
|
232
|
-
if (t === "/" ?
|
|
233
|
+
let o;
|
|
234
|
+
if (t === "/" ? o = [] : o = t.substring(1).split("/"), o.some((a) => a.length === 0))
|
|
233
235
|
throw new Error(`Invalid JSON Pointer (empty part): ${t}`);
|
|
234
236
|
if (n != null && n.mutate) {
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
await
|
|
237
|
+
o.unshift("root");
|
|
238
|
+
const a = { root: e };
|
|
239
|
+
await O(a, o, 0, r), ee(e, a.root);
|
|
238
240
|
} else
|
|
239
|
-
return await
|
|
241
|
+
return await k(e, o, 0, r);
|
|
240
242
|
}
|
|
241
|
-
async function
|
|
242
|
-
const
|
|
243
|
-
if (await
|
|
244
|
-
if (e[
|
|
243
|
+
async function O(e, t, n, r) {
|
|
244
|
+
const o = t[n];
|
|
245
|
+
if (await K(e, o, r), n != t.length - 1) {
|
|
246
|
+
if (e[o] === null || typeof e[o] != "object")
|
|
245
247
|
throw new Error(
|
|
246
248
|
`Cannot resolve path, encountered non-object at part '${t.slice(1).join("/")}', index ${n - 1}'`
|
|
247
249
|
);
|
|
248
|
-
return await
|
|
250
|
+
return await O(e[o], t, n + 1, r);
|
|
249
251
|
}
|
|
250
252
|
}
|
|
251
|
-
async function
|
|
253
|
+
async function K(e, t, n) {
|
|
252
254
|
i("resolveObjectMutate:", e, t);
|
|
253
|
-
let
|
|
254
|
-
const
|
|
255
|
-
|
|
255
|
+
let r = e[t];
|
|
256
|
+
const o = await p(r, n);
|
|
257
|
+
o !== void 0 && (e[t] = o);
|
|
256
258
|
}
|
|
257
|
-
async function
|
|
259
|
+
async function k(e, t, n, r) {
|
|
258
260
|
if (n === t.length)
|
|
259
|
-
return await
|
|
261
|
+
return await p(e, r);
|
|
260
262
|
if (e === null || typeof e != "object")
|
|
261
263
|
throw new Error(
|
|
262
264
|
`Cannot resolve path, encountered non-object at part '${t.join("/")}', index ${n}'`
|
|
263
265
|
);
|
|
264
|
-
const
|
|
265
|
-
let
|
|
266
|
-
return
|
|
266
|
+
const o = t[n];
|
|
267
|
+
let a = e[o];
|
|
268
|
+
return a === void 0 && (a = (await p(e, r))[o]), await k(a, t, n + 1, r);
|
|
267
269
|
}
|
|
268
|
-
async function
|
|
270
|
+
async function p(e, t) {
|
|
269
271
|
i("resolveObject:", e);
|
|
270
272
|
let n = e;
|
|
271
273
|
do {
|
|
272
274
|
if (typeof n != "object" || n === null || !("$ref" in n))
|
|
273
275
|
return n;
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
276
|
+
const r = H.filter((a) => F(a, n.$ref));
|
|
277
|
+
if (r.length === 0) {
|
|
276
278
|
if (n.$ref)
|
|
277
279
|
throw new Error(`No resolver found for ref: ${n.$ref}`);
|
|
278
280
|
return u(n), n;
|
|
279
281
|
}
|
|
280
|
-
if (
|
|
282
|
+
if (r.length > 1)
|
|
281
283
|
throw new Error(`Multiple resolvers can resolve ref: ${n.$ref}`);
|
|
282
|
-
const
|
|
283
|
-
n =
|
|
284
|
+
const o = await q(r[0], n.$ref, t);
|
|
285
|
+
n = Y(o, n);
|
|
284
286
|
} while (!0);
|
|
285
287
|
}
|
|
286
|
-
async function
|
|
287
|
-
if (!
|
|
288
|
+
async function q(e, t, n) {
|
|
289
|
+
if (!F(e, t))
|
|
288
290
|
throw new Error(`Unexpected ref: ${t}`);
|
|
289
291
|
return e.resolveRef(t, n);
|
|
290
292
|
}
|
|
291
|
-
function
|
|
293
|
+
function F(e, t) {
|
|
292
294
|
if (e.canResolve)
|
|
293
295
|
return e.canResolve(t);
|
|
294
296
|
if (e.schema)
|
|
295
|
-
return
|
|
297
|
+
return Q(t, e.schema);
|
|
296
298
|
throw new Error("Resolver is missing canResolve method and schema property");
|
|
297
299
|
}
|
|
298
|
-
function
|
|
300
|
+
function Q(e, t) {
|
|
299
301
|
const n = [`${t}+`, `${t}:`];
|
|
300
|
-
for (const
|
|
301
|
-
if (e.startsWith(
|
|
302
|
+
for (const r of n)
|
|
303
|
+
if (e.startsWith(r))
|
|
302
304
|
return !0;
|
|
303
305
|
return !1;
|
|
304
306
|
}
|
|
@@ -310,22 +312,22 @@ function l(e) {
|
|
|
310
312
|
return e.substring(t + 1);
|
|
311
313
|
if (n !== -1)
|
|
312
314
|
return e.substring(n + 1);
|
|
313
|
-
const
|
|
314
|
-
if (
|
|
315
|
-
return e.substring(
|
|
315
|
+
const r = e.indexOf(":");
|
|
316
|
+
if (r !== -1)
|
|
317
|
+
return e.substring(r + 1);
|
|
316
318
|
throw new Error(`Error getting URL from: ${e}, no valid prefix found`);
|
|
317
319
|
}
|
|
318
|
-
typeof window < "u" && (window.__debugResolve = async function(t, n,
|
|
319
|
-
let
|
|
320
|
-
return typeof t == "string" ? (
|
|
320
|
+
typeof window < "u" && (window.__debugResolve = async function(t, n, r) {
|
|
321
|
+
let o, a, s;
|
|
322
|
+
return typeof t == "string" ? (o = window.__lastResolveObject, a = t, s = n) : (o = t, a = n, s = r), await m(o, a, s);
|
|
321
323
|
});
|
|
322
324
|
function w(e) {
|
|
323
325
|
return async (t, ...n) => {
|
|
324
326
|
try {
|
|
325
|
-
const
|
|
326
|
-
return
|
|
327
|
-
} catch (
|
|
328
|
-
throw console.error("efp-loader", `Error when trying to import and call "${e}":`,
|
|
327
|
+
const a = (await import(await m(t, "/runtime/entry")))[e];
|
|
328
|
+
return a(t, ...n);
|
|
329
|
+
} catch (r) {
|
|
330
|
+
throw console.error("efp-loader", `Error when trying to import and call "${e}":`, r), r;
|
|
329
331
|
}
|
|
330
332
|
};
|
|
331
333
|
}
|
|
@@ -341,32 +343,32 @@ function u(e) {
|
|
|
341
343
|
}
|
|
342
344
|
return e;
|
|
343
345
|
}
|
|
344
|
-
function
|
|
346
|
+
function _(e) {
|
|
345
347
|
return "structuredClone" in globalThis ? globalThis.structuredClone(e) : JSON.parse(JSON.stringify(e));
|
|
346
348
|
}
|
|
347
|
-
function
|
|
349
|
+
function X(e) {
|
|
348
350
|
if (typeof document > "u") return;
|
|
349
351
|
const t = document.createElement("link");
|
|
350
352
|
t.rel = "preconnect", t.href = e, t.crossOrigin = "anonymous", document.head.appendChild(t);
|
|
351
353
|
}
|
|
352
|
-
function
|
|
354
|
+
function Y(e, t) {
|
|
353
355
|
if (e === t) return;
|
|
354
356
|
if (t === null || typeof t != "object")
|
|
355
357
|
throw new Error("Cannot merge non-object source");
|
|
356
358
|
if (Array.isArray(t))
|
|
357
359
|
throw new Error("Cannot merge arrays");
|
|
358
|
-
const n = Object.keys(t).filter((
|
|
359
|
-
if (n.length === 0) return
|
|
360
|
+
const n = Object.keys(t).filter((o) => o !== "$ref");
|
|
361
|
+
if (n.length === 0) return _(e);
|
|
360
362
|
if (Array.isArray(e))
|
|
361
363
|
throw new Error("Cannot merge into arrays");
|
|
362
364
|
if (e === null || typeof e != "object")
|
|
363
365
|
throw new Error("Cannot merge into non-object target");
|
|
364
|
-
const
|
|
365
|
-
for (const
|
|
366
|
-
o
|
|
367
|
-
return
|
|
366
|
+
const r = _({ ...e });
|
|
367
|
+
for (const o of n)
|
|
368
|
+
r[o] = t[o];
|
|
369
|
+
return r;
|
|
368
370
|
}
|
|
369
|
-
function
|
|
371
|
+
function ee(e, t) {
|
|
370
372
|
if (e !== t) {
|
|
371
373
|
if (t === null || typeof t != "object")
|
|
372
374
|
throw new Error("Cannot replace with non-object source");
|
|
@@ -386,47 +388,47 @@ function te(e, t) {
|
|
|
386
388
|
e[n] = t[n];
|
|
387
389
|
}
|
|
388
390
|
}
|
|
389
|
-
async function
|
|
391
|
+
async function te(e, t, n) {
|
|
390
392
|
n = n || {};
|
|
391
|
-
for (const
|
|
392
|
-
await m(e,
|
|
393
|
+
for (const r of t)
|
|
394
|
+
await m(e, r, { ...n, mutate: !0 });
|
|
393
395
|
}
|
|
394
|
-
typeof window < "u" && (window.__debugMutateManifest =
|
|
395
|
-
async function
|
|
396
|
-
const { makeOfflineBundle: t } = await import("./makeOfflineBundle-
|
|
396
|
+
typeof window < "u" && (window.__debugMutateManifest = te);
|
|
397
|
+
async function ne(e) {
|
|
398
|
+
const { makeOfflineBundle: t } = await import("./makeOfflineBundle-g0Y3sA2l.js");
|
|
397
399
|
return await t(e);
|
|
398
400
|
}
|
|
399
401
|
async function re(e) {
|
|
400
|
-
const { downloadZip: t } = await import("./downloadZip-
|
|
402
|
+
const { downloadZip: t } = await import("./downloadZip-DMgeO3fU.js");
|
|
401
403
|
return await t(e);
|
|
402
404
|
}
|
|
403
|
-
async function
|
|
404
|
-
const { makeOffline: t } = await import("./makeOffline-
|
|
405
|
-
for await (const
|
|
406
|
-
"data" in
|
|
405
|
+
async function oe(e) {
|
|
406
|
+
const { makeOffline: t } = await import("./makeOffline-1iGrM4gF.js"), n = await t(e);
|
|
407
|
+
for await (const r of (await n).files)
|
|
408
|
+
"data" in r ? console.info(`🗳️ Put ${r.targetFilePath} <=`, r.data) : "url" in r && console.info(`🗳️ Download ${r.targetFilePath} <= ${r.url}`);
|
|
407
409
|
console.info("Offline data: ", n.manifest);
|
|
408
410
|
}
|
|
409
|
-
typeof window < "u" && (window.__debugDownloadZip = re, window.__debugMakeOfflineBundle =
|
|
410
|
-
const
|
|
411
|
-
async function
|
|
411
|
+
typeof window < "u" && (window.__debugDownloadZip = re, window.__debugMakeOfflineBundle = ne, window.__debugLogOfflineManifestFiles = oe);
|
|
412
|
+
const ie = w("mount"), le = w("load"), ce = w("initialize");
|
|
413
|
+
async function fe(e, t, ...n) {
|
|
412
414
|
return await w(e)(t, ...n);
|
|
413
415
|
}
|
|
414
|
-
|
|
416
|
+
X("https://efp-runtime.expofp.com/");
|
|
415
417
|
export {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
418
|
+
Y as a,
|
|
419
|
+
q as b,
|
|
420
|
+
F as c,
|
|
421
|
+
fe as callFunction_Experimental,
|
|
422
|
+
_ as d,
|
|
421
423
|
re as downloadZip,
|
|
422
|
-
|
|
424
|
+
ce as initialize,
|
|
423
425
|
i as l,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
le as load,
|
|
427
|
+
ne as makeOfflineBundle,
|
|
428
|
+
ie as mount,
|
|
429
|
+
te as mutateManifest,
|
|
428
430
|
l as p,
|
|
429
|
-
|
|
431
|
+
H as r,
|
|
430
432
|
m as resolve
|
|
431
433
|
};
|
|
432
434
|
//# sourceMappingURL=index.js.map
|