@expofp/loader 1.0.63 → 1.0.65

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.
@@ -1,9 +1,9 @@
1
- window.__efpLoaderBuildInfo = ["1.0.63", "2025-12-15T13:25:02.328Z"];
1
+ window.__efpLoaderBuildInfo = ["1.0.65", "2025-12-15T13:55:52.629Z"];
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 _ = { exports: {} }, L, U;
6
+ var O = { 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) : h(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,17 +71,17 @@ function X() {
71
71
  }
72
72
  }
73
73
  }
74
- function h(f) {
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 ? 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";
80
+ return s >= n ? d(f, s, n, "day") : s >= t ? d(f, s, t, "hour") : s >= e ? d(f, s, e, "minute") : s >= r ? d(f, s, r, "second") : f + " ms";
81
81
  }
82
- function w(f, s, i, u) {
83
- var d = s >= i * 1.5;
84
- return Math.round(f / i) + " " + u + (d ? "s" : "");
82
+ function d(f, s, i, u) {
83
+ var h = s >= i * 1.5;
84
+ return Math.round(f / i) + " " + u + (h ? "s" : "");
85
85
  }
86
86
  return L;
87
87
  }
@@ -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 = w, n.disable = h, n.enable = l, n.enabled = c, n.humanize = X(), n.destroy = f, Object.keys(e).forEach((s) => {
93
+ n.debug = n, n.default = n, n.coerce = d, 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,12 +101,12 @@ function Y() {
101
101
  }
102
102
  n.selectColor = t;
103
103
  function n(s) {
104
- let i, u = null, d, g;
104
+ let i, u = null, h, g;
105
105
  function m(...y) {
106
106
  if (!m.enabled)
107
107
  return;
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");
108
+ const v = m, F = Number(/* @__PURE__ */ new Date()), _ = F - (i || F);
109
+ v.diff = _, 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 === "%%")
@@ -123,7 +123,7 @@ function Y() {
123
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
- get: () => u !== null ? u : (d !== n.namespaces && (d = n.namespaces, g = n.enabled(s)), g),
126
+ get: () => u !== null ? u : (h !== n.namespaces && (h = n.namespaces, g = n.enabled(s)), g),
127
127
  set: (y) => {
128
128
  u = y;
129
129
  }
@@ -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, m = 0;
143
+ let u = 0, h = 0, g = -1, m = 0;
144
144
  for (; u < s.length; )
145
- if (d < i.length && (i[d] === s[u] || i[d] === "*"))
146
- i[d] === "*" ? (g = d, m = u, d++) : (u++, d++);
145
+ if (h < i.length && (i[h] === s[u] || i[h] === "*"))
146
+ i[h] === "*" ? (g = h, m = u, h++) : (u++, h++);
147
147
  else if (g !== -1)
148
- d = g + 1, m++, u = m;
148
+ h = g + 1, m++, u = m;
149
149
  else
150
150
  return !1;
151
- for (; d < i.length && i[d] === "*"; )
152
- d++;
153
- return d === i.length;
151
+ for (; h < i.length && i[h] === "*"; )
152
+ h++;
153
+ return h === i.length;
154
154
  }
155
- function h() {
155
+ function w() {
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 w(s) {
171
+ function d(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 w = "color: " + this.color;
283
- c.splice(1, 0, w, "color: inherit");
282
+ const d = "color: " + this.color;
283
+ c.splice(1, 0, d, "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, w);
287
+ }), c.splice(s, 0, d);
288
288
  }
289
289
  e.log = console.debug || console.log || (() => {
290
290
  });
@@ -309,15 +309,15 @@ function x() {
309
309
  }
310
310
  }
311
311
  r.exports = Y()(e);
312
- const { formatters: h } = r.exports;
313
- h.j = function(c) {
312
+ const { formatters: w } = r.exports;
313
+ w.j = function(c) {
314
314
  try {
315
315
  return JSON.stringify(c);
316
- } catch (w) {
317
- return "[UnexpectedJSONParseError]: " + w.message;
316
+ } catch (d) {
317
+ return "[UnexpectedJSONParseError]: " + d.message;
318
318
  }
319
319
  };
320
- })(_, _.exports)), _.exports;
320
+ })(O, O.exports)), O.exports;
321
321
  }
322
322
  var ee = x();
323
323
  const re = /* @__PURE__ */ Q(ee), te = re("efp:loader");
@@ -512,7 +512,7 @@ async function pe(r, e) {
512
512
  }
513
513
  function Z(r, e, t, n, o) {
514
514
  return new Promise((l, a) => {
515
- const h = Date.now(), c = () => {
515
+ const w = Date.now(), c = () => {
516
516
  a(new Error("Wait for global aborted"));
517
517
  };
518
518
  if (o != null && o.aborted) {
@@ -520,7 +520,7 @@ function Z(r, e, t, n, o) {
520
520
  return;
521
521
  }
522
522
  o == null || o.addEventListener("abort", c, { once: !0 });
523
- const w = () => {
523
+ const d = () => {
524
524
  if (o != null && o.aborted)
525
525
  return a(new Error("Wait for global aborted"));
526
526
  try {
@@ -528,11 +528,11 @@ function Z(r, e, t, n, o) {
528
528
  return o == null || o.removeEventListener("abort", c), l();
529
529
  } catch {
530
530
  }
531
- if (Date.now() - h >= t)
531
+ if (Date.now() - w >= t)
532
532
  return o == null || o.removeEventListener("abort", c), a(new Error(`Timed out after ${t} ms waiting for global "${e}"`));
533
- setTimeout(w, n);
533
+ setTimeout(d, n);
534
534
  };
535
- w();
535
+ d();
536
536
  });
537
537
  }
538
538
  const me = {
@@ -541,7 +541,7 @@ const me = {
541
541
  p("legacyAssetUrlsResolver resolveRef:", r);
542
542
  const t = e.signal;
543
543
  return j(r, e.refCache, async () => {
544
- var y, v, F, O, R;
544
+ var y, v, F, _, R;
545
545
  const n = $(r), o = `${n}version.js`;
546
546
  try {
547
547
  await k(o, {
@@ -552,12 +552,12 @@ const me = {
552
552
  } catch {
553
553
  console.warn(`Could not load version.js at ${o}, proceeding without it`);
554
554
  }
555
- const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}data.js?v=${l}`, h = k(a, {
555
+ const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}data.js?v=${l}`, w = k(a, {
556
556
  globalVar: "__data",
557
557
  signal: t
558
558
  });
559
559
  (v = e.importCallback) == null || v.call(e, a, "script");
560
- const c = `${n}wf.data.js?v=${l}`, w = k(c, {
560
+ const c = `${n}wf.data.js?v=${l}`, d = k(c, {
561
561
  globalVar: "__wfData",
562
562
  signal: t
563
563
  }).then(() => {
@@ -571,14 +571,14 @@ const me = {
571
571
  globalVar: "__fp",
572
572
  signal: t
573
573
  });
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`);
574
+ (F = e.importCallback) == null || F.call(e, f, "script"), await Promise.all([w, d, s]);
575
+ const u = ((_ = globalThis.__fpLayers) != null ? _ : []).map((C) => `fp.svg.${C.name}.js`);
576
576
  for (const C of u) {
577
577
  const b = `${n}${C}?v=${l}`;
578
578
  (R = e.importCallback) == null || R.call(e, b, "script");
579
579
  }
580
- const d = globalThis.__data || {};
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
+ const h = globalThis.__data || {};
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, h) };
582
582
  });
583
583
  },
584
584
  offlineMethod: "resolveRef"
@@ -590,14 +590,21 @@ function ye(r, e) {
590
590
  typeof a == "string" && a.length > 0 && t.add(a);
591
591
  }
592
592
  return n(e.logo), (o = e.exhibitors) == null || o.forEach((a) => {
593
- var h;
594
- n(a.logo), (h = a.gallery) == null || h.forEach((c) => n(c));
593
+ var w;
594
+ if (n(a.logo), a.logo) {
595
+ const c = a.logo.lastIndexOf(".");
596
+ if (c !== -1) {
597
+ const d = a.logo.substring(0, c), f = a.logo.substring(c);
598
+ n(`${d}__small${f}`), n(`${d}__tiny${f}`);
599
+ }
600
+ }
601
+ (w = a.gallery) == null || w.forEach((c) => n(c));
595
602
  }), (l = e.events) == null || l.forEach((a) => {
596
- var h;
597
- n(a.logoFile), (h = a.speakers) == null || h.forEach((c) => {
603
+ var w;
604
+ n(a.logoFile), (w = a.speakers) == null || w.forEach((c) => {
598
605
  n(c.photoFile);
599
606
  });
600
- }), Array.from(t).reduce((a, h) => (a[h] = { $ref: `asset+${r}${h}` }, a), {});
607
+ }), Array.from(t).reduce((a, w) => (a[w] = { $ref: `asset+${r}${w}` }, a), {});
601
608
  }
602
609
  const ve = {
603
610
  schema: "legacy-data",
@@ -785,18 +792,18 @@ function Ee(r, e) {
785
792
  r[t] = e[t];
786
793
  }
787
794
  }
788
- async function Oe(r, e, t) {
795
+ async function _e(r, e, t) {
789
796
  t = t || {};
790
797
  for (const n of e)
791
798
  await D(r, n, { ...t, mutate: !0 });
792
799
  }
793
- typeof window < "u" && (window.__debugMutateManifest = Oe);
794
- async function _e(r) {
795
- const { makeOfflineBundle: e } = await import("./makeOfflineBundle-BoEPc05D.js");
800
+ typeof window < "u" && (window.__debugMutateManifest = _e);
801
+ async function Oe(r) {
802
+ const { makeOfflineBundle: e } = await import("./makeOfflineBundle-C-xleVMN.js");
796
803
  return await e(r);
797
804
  }
798
805
  async function Ae(r, e) {
799
- const { downloadOfflineZip: t } = await import("./downloadOfflineZip-RIzZSzeG.js");
806
+ const { downloadOfflineZip: t } = await import("./downloadOfflineZip-B8tTyZYe.js");
800
807
  return await t(r, e);
801
808
  }
802
809
  async function je(r, e) {
@@ -804,12 +811,12 @@ async function je(r, e) {
804
811
  return await t(r, e);
805
812
  }
806
813
  async function ke(r) {
807
- const { makeOffline: e } = await import("./makeOffline-Doxc2dX7.js"), t = await e(r);
814
+ const { makeOffline: e } = await import("./makeOffline-DH6wJEem.js"), t = await e(r);
808
815
  for await (const n of (await t).files)
809
816
  "data" in n ? console.info(`🗳️ Put ${n.targetFilePath} <=`, n.data) : "url" in n && console.info(`🗳️ Download ${n.targetFilePath} <= ${n.url}`);
810
817
  console.info("Offline data: ", t.manifest);
811
818
  }
812
- typeof window < "u" && (window.__debugDownloadOfflineZip = Ae, window.__debugMakeOfflineBundle = _e, window.__debugLogOfflineManifestFiles = ke);
819
+ typeof window < "u" && (window.__debugDownloadOfflineZip = Ae, window.__debugMakeOfflineBundle = Oe, window.__debugLogOfflineManifestFiles = ke);
813
820
  const B = globalThis.__efpLoaderBuildInfo;
814
821
  B ? p("Initialized", { version: B[0], builtAt: B[1] }) : p("Initialized");
815
822
  const Ie = I("mount"), Le = I("load"), Te = I("initialize");
@@ -829,9 +836,9 @@ export {
829
836
  Fe as h,
830
837
  Te as initialize,
831
838
  Le as load,
832
- _e as makeOfflineBundle,
839
+ Oe as makeOfflineBundle,
833
840
  Ie as mount,
834
- Oe as mutateManifest,
841
+ _e as mutateManifest,
835
842
  $ as p,
836
843
  Ce as r,
837
844
  D as resolve,