@expofp/floorplan 3.46.0 → 3.47.0
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/browser/{Button-CJtSs2s5.js → Button-DyqVe4xL.js} +5 -5
- package/dist/browser/{CookieConsent-C4fi9Tyh.js → CookieConsent-Dne5UXwi.js} +7 -7
- package/dist/browser/{Debug-Cd610X28.js → Debug-CSY6FmRs.js} +7 -7
- package/dist/browser/{DebugTools-D9g4_7Cc.js → DebugTools-CSGF0Uqi.js} +6 -6
- package/dist/browser/{Demo-CryvOcgl.js → Demo-AI-22qbf.js} +9 -9
- package/dist/browser/{Free-CJXdChTu.js → Free-BmItczwV.js} +10 -10
- package/dist/browser/{GalleryContainer-DJEByROk.js → GalleryContainer-Do5QXu8h.js} +11 -11
- package/dist/browser/{GpsLoader-DSsG-xT8.js → GpsLoader-D6boL0AQ.js} +14 -14
- package/dist/browser/{KioskStore-DOB-av5O.js → KioskStore-DodjzUdk.js} +19 -19
- package/dist/browser/{LayerStore-CRZuLMs5.js → LayerStore-DCg-juRT.js} +289 -270
- package/dist/browser/{MaplibreAdapter-C_5hoa-Y.js → MaplibreAdapter-D838jbrB.js} +148 -148
- package/dist/browser/{ModalContainer-Ch8bqPHR.js → ModalContainer-DAh3OT88.js} +10 -10
- package/dist/browser/{PermissionNotice-CiR8SfU0.js → PermissionNotice-D9dFiy8Z.js} +6 -6
- package/dist/browser/{RouteStore-D5yYhhPl.js → RouteStore-B82dztUW.js} +342 -327
- package/dist/browser/{SetKioskMode-PiwwpWpN.js → SetKioskMode-DcQFm_UG.js} +12 -12
- package/dist/browser/{ShowKiosk-uWNhreCd.js → ShowKiosk-BnuT9vM-.js} +11 -11
- package/dist/browser/{UIState-Bi4-Ri9M.js → UIState-Dd6fvko0.js} +97 -97
- package/dist/browser/{ViewerMenuPanel-B3vtTFpG.js → ViewerMenuPanel-C3B3OmlN.js} +11 -11
- package/dist/browser/{add-debug-secret-listener-Db76vB7o.js → add-debug-secret-listener-BJu3pH2x.js} +1 -1
- package/dist/browser/{adopt-global-settings-67S2v_mo.js → adopt-global-settings-BerG23m2.js} +9 -9
- package/dist/browser/{boolean-editor-B1nYYAEd.js → boolean-editor-C1i1ID8g.js} +9 -9
- package/dist/browser/{bootIntercom-BQDnVlyT.js → bootIntercom-C3tqD4Ct.js} +2 -2
- package/dist/browser/bundle.json +87 -87
- package/dist/browser/{camera-events-dIlK_9kU.js → camera-events-DzSywgw0.js} +1 -1
- package/dist/browser/{classnames-CnT6VKND.js → classnames-CQMYVTW5.js} +2 -2
- package/dist/browser/{client-iKoOfnTw.js → client-DbQnuxsE.js} +5 -5
- package/dist/browser/{components-CEmFE-HF.js → components-CzNKFauU.js} +2211 -2160
- package/dist/browser/{create-live-plan-VYe8zgCt.js → create-live-plan-D17jzmnD.js} +505 -439
- package/dist/browser/{debug-context-SM4t83oS.js → debug-context-CLE9u3W1.js} +6 -6
- package/dist/browser/{debug-overlay-BLs-zKon.js → debug-overlay-CqyQd6Tu.js} +10 -10
- package/dist/browser/{debug-ui-COzdQWZH.js → debug-ui-CopIbPwZ.js} +6 -6
- package/dist/browser/{dist-Dxs4B_bo.js → dist-CXSdtHNF.js} +6 -6
- package/dist/browser/{dist-B-cTdqLW.js → dist-DrhAFaXl.js} +5 -5
- package/dist/browser/{dist-C7DmTDRb.js → dist-mSjAoqZa.js} +3 -3
- package/dist/browser/{efp-debug-init-B_S1vuGu.js → efp-debug-init-D3gNE8Zq.js} +3 -3
- package/dist/browser/{enum-editor-CNXjKr2S.js → enum-editor-DfEZj9xj.js} +4 -4
- package/dist/browser/{es5-DXybUgTP.js → es5-CRZbJ3RK.js} +2 -2
- package/dist/browser/{event-head-ClLbm9Br.js → event-head-C5Pqy8aE.js} +1 -1
- package/dist/browser/{event-not-found-DH79zTW9.js → event-not-found-y-baKtlx.js} +3 -3
- package/dist/browser/{event-scoped-cache-DpaRX7uc.js → event-scoped-cache-CUHa0QyF.js} +3 -3
- package/dist/browser/{expofpUrl-n296mHS4.js → expofpUrl-CUIqO5kL.js} +1 -1
- package/dist/browser/{exports-lzdhlipZ.js → exports-CnYQMV4a.js} +1 -1
- package/dist/browser/{favicon-DIM65QuL.js → favicon-DtPw8IL3.js} +1 -1
- package/dist/browser/{fetch-retry.umd-vSI4xMC_.js → fetch-retry.umd-DjnZ3Ut9.js} +2 -2
- package/dist/browser/{flex-BAVIARsK.js → flex-C5mQXGq5.js} +5 -5
- package/dist/browser/{floorplan.loader-eMUdl6jt.js → floorplan.loader-DEaS-fgT.js} +12 -12
- package/dist/browser/{floorplan.ready-1Txw5bTb.js → floorplan.ready-BOnFLVHj.js} +269 -243
- package/dist/browser/{framing-rect-BTpvle_p.js → framing-rect-BIpsCqTB.js} +426 -351
- package/dist/browser/{freeBanner-F3TTYS8Q.js → freeBanner-BQ-1hI0V.js} +2 -2
- package/dist/browser/{fuse-CaTg1KbU.js → fuse-jVBfzHic.js} +2 -2
- package/dist/browser/{i18n-C_4TK-u4.js → i18n-DlquqKCP.js} +333 -318
- package/dist/browser/index.js +33 -33
- package/dist/browser/{index.module-DRBCPeTj.js → index.module-CN0EtZcO.js} +4 -4
- package/dist/browser/{init-ui-BYGB5Nye.js → init-ui-BQ7d5hKB.js} +19 -19
- package/dist/browser/{integrateKiosk-BYXxa3GA.js → integrateKiosk-CumGPvbc.js} +6 -6
- package/dist/browser/{is-debug-D3IYeseH.js → is-debug-IkNSAGo8.js} +4 -4
- package/dist/browser/{is-own-domain-Sd0Gyaz6.js → is-own-domain-yrTLx04R.js} +1 -1
- package/dist/browser/{is-webview-DkUEFd5j.js → is-webview-DA6FLdme.js} +1 -1
- package/dist/browser/{jsx-runtime-Z0-uGdH1.js → jsx-runtime-BzLvm2y2.js} +2 -2
- package/dist/browser/{kiosk-mode-D9JdlNtc.js → kiosk-mode-zD8K_fUT.js} +3 -3
- package/dist/browser/{kiosk-record-U7MDU1j1.js → kiosk-record-Ckxa0L0B.js} +1 -1
- package/dist/browser/{kioskApi-CZmWdnyx.js → kioskApi-CG3QGuUx.js} +7 -7
- package/dist/browser/{ktx2-DBt1EdxU.js → ktx2-Dx_h97CR.js} +2 -2
- package/dist/browser/{lib-Bpc7qOXg.js → lib-5KOc2jVl.js} +3 -3
- package/dist/browser/{loadImage-Dy1_5knL.js → loadImage-iqS2KHgN.js} +1 -1
- package/dist/browser/{logDeviceInfo-DFiuu0JW.js → logDeviceInfo-DhvfxT2K.js} +9 -9
- package/dist/browser/{mobx-NvAhKUmy.js → mobx-CUFHrL57.js} +4 -4
- package/dist/browser/{mobx.module-Bv5V3v5d.js → mobx.module-BTnTbXnp.js} +1 -1
- package/dist/browser/{optional-boolean-editor-BEOwiXCN.js → optional-boolean-editor-C3k-DXeF.js} +3 -3
- package/dist/browser/{optional-enum-editor-C6KjlpRA.js → optional-enum-editor-CeY1nCnF.js} +4 -4
- package/dist/browser/{optional-string-editor-CFrCSmMd.js → optional-string-editor-DrVHjvsL.js} +4 -4
- package/dist/browser/{particles.min-C2A0DA4i.js → particles.min-BPS1Hdpf.js} +2 -2
- package/dist/browser/{react-CabZjr3N.js → react-XuvSZP7j.js} +2 -2
- package/dist/browser/{react-dom-RP6YFh3Z.js → react-dom-Cg1Pcvni.js} +3 -3
- package/dist/browser/{rolldown-runtime-fogUk23q.js → rolldown-runtime-5rOLGCTp.js} +1 -1
- package/dist/browser/{scene-DuvbPaPD.js → scene-CeKqMicD.js} +10 -10
- package/dist/browser/{scheduler-k2rbX-LJ.js → scheduler-D5sEY0Dn.js} +2 -2
- package/dist/browser/{select-DDC9fvlH.js → select-Cbv7ufJV.js} +10 -10
- package/dist/browser/{settings-BozBuwXD.js → settings-DgySPhLO.js} +2 -2
- package/dist/browser/{settings-item-D4rlEKz6.js → settings-item-e3YLYS4G.js} +6 -6
- package/dist/browser/{store-CbRrBMLs.js → store-DTvNQcN7.js} +2 -2
- package/dist/browser/{string-editor-CExhbakJ.js → string-editor-Dbv6xI9s.js} +4 -4
- package/dist/browser/{text-field-BV3Vp6cI.js → text-field-Cg5awwlh.js} +5 -5
- package/dist/browser/{theme-E8keDBEa.js → theme-BRoMMdQq.js} +8 -8
- package/dist/browser/{three.core-C_nLFu2C.js → three.core-DvpRLNmt.js} +1 -1
- package/dist/browser/{ui-CgHs1m5h.js → ui-DNMlY_VB.js} +8 -8
- package/dist/browser/{useRenderTarget-D7wRx7QW.js → useRenderTarget-C__MnkX7.js} +4 -4
- package/dist/browser/{viewport-BH6xyD06.js → viewport-DBuFXrrj.js} +3 -3
- package/dist/browser/{wayfinding-BiZuXF9Q.js → wayfinding-BUQns13Y.js} +516 -510
- package/dist/esm/components/BaseFilterModal.d.ts +4 -2
- package/dist/esm/components/BaseFilterModal.js +1 -1
- package/dist/esm/components/CategoryFilterModal.js +1 -1
- package/dist/esm/components/Map/drawing/config/booth-badge-anchor.d.ts +57 -5
- package/dist/esm/components/Map/drawing/config/booth-badge-anchor.js +1 -1
- package/dist/esm/components/Map/drawing/config/booth-fill-color.d.ts +16 -0
- package/dist/esm/components/Map/drawing/config/booth-fill-color.js +1 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/SearchButtons/SearchButton.d.ts +1 -0
- package/dist/esm/components/SearchButtons/SearchButton.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/services/URLFilterManager.d.ts +8 -0
- package/dist/esm/services/URLFilterManager.js +1 -1
- package/dist/esm/store/CategoryFilterStore.d.ts +33 -1
- package/dist/esm/store/CategoryFilterStore.js +1 -1
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/RouteStore.d.ts +9 -1
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/SearchStore.js +1 -1
- package/dist/esm/store/providers/SearchShortcutProvider.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +7 -0
- package/dist/esm/store/search-buttons/SearchButtonsActions.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFactory.d.ts +2 -2
- package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFilters.d.ts +2 -2
- package/dist/esm/store/search-buttons/SearchButtonsFilters.js +1 -1
- package/dist/esm/store/search-buttons/constants.d.ts +0 -3
- package/dist/esm/store/search-buttons/constants.js +1 -1
- package/dist/esm/store/search-buttons/utils.d.ts +23 -2
- package/dist/esm/store/search-buttons/utils.js +1 -1
- package/dist/esm/store/types.d.ts +5 -0
- package/dist/esm/test/store-harness.js +1 -1
- package/dist/esm/utils/filter-groups.d.ts +9 -0
- package/dist/esm/utils/filter-groups.js +1 -0
- package/dist/esm/utils/gps.d.ts +5 -1
- package/dist/esm/utils/gps.js +1 -1
- package/package.json +10 -10
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.47.0" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "32ee357c-c8e7-4b3c-a922-d6b538ae9316", e._sentryDebugIdIdentifier = "sentry-dbid-32ee357c-c8e7-4b3c-a922-d6b538ae9316");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
10
|
-
import { s as n } from "./efp-debug-init-
|
|
11
|
-
import { t as r } from "./es5-
|
|
12
|
-
import { c as i } from "./mobx.module-
|
|
9
|
+
import { r as e, t } from "./rolldown-runtime-5rOLGCTp.js";
|
|
10
|
+
import { s as n } from "./efp-debug-init-D3gNE8Zq.js";
|
|
11
|
+
import { t as r } from "./es5-CRZbJ3RK.js";
|
|
12
|
+
import { c as i } from "./mobx.module-BTnTbXnp.js";
|
|
13
13
|
//#region ../config/src/lib/config-store.ts
|
|
14
14
|
var a;
|
|
15
15
|
function o(e) {
|
|
@@ -3810,7 +3810,8 @@ var rs = W({
|
|
|
3810
3810
|
categories: H(R()).optional(),
|
|
3811
3811
|
poiType: R().optional(),
|
|
3812
3812
|
poiTypes: H(R()).optional(),
|
|
3813
|
-
exhibitors: V().optional()
|
|
3813
|
+
exhibitors: V().optional(),
|
|
3814
|
+
searchButton: R().optional()
|
|
3814
3815
|
}), ms = W({
|
|
3815
3816
|
enableExperimentalMaplibre: V().optional(),
|
|
3816
3817
|
enableExperimentalOutdoorMarkers: V().optional(),
|
|
@@ -4494,7 +4495,7 @@ function jc(e) {
|
|
|
4494
4495
|
//#endregion
|
|
4495
4496
|
//#region ../utils/src/lib/fetch-with-retry.ts
|
|
4496
4497
|
var Mc, Nc = async function(...t) {
|
|
4497
|
-
return Mc || (Mc = typeof window < "u" && typeof document < "u" ? window.fetch.bind(window) : (await import("./fetch-retry.umd-
|
|
4498
|
+
return Mc || (Mc = typeof window < "u" && typeof document < "u" ? window.fetch.bind(window) : (await import("./fetch-retry.umd-DjnZ3Ut9.js").then((t) => /* @__PURE__ */ e(t.default, 1))).default(globalThis.fetch)), Mc(...t);
|
|
4498
4499
|
};
|
|
4499
4500
|
//#endregion
|
|
4500
4501
|
//#region ../utils/src/lib/import-node-module.ts
|
|
@@ -4629,13 +4630,27 @@ var Qc = /* @__PURE__ */ new Set([...Object.keys(ac.shape), ...Bs.options.map((e
|
|
|
4629
4630
|
"kiosk_z"
|
|
4630
4631
|
]), al = /* @__PURE__ */ new Set(["title"]);
|
|
4631
4632
|
function ol(e) {
|
|
4632
|
-
let t =
|
|
4633
|
+
let t = [], n = !1;
|
|
4634
|
+
for (let r of e.split("&")) {
|
|
4635
|
+
if (r && dl(Zc(r))) {
|
|
4636
|
+
n = !0;
|
|
4637
|
+
continue;
|
|
4638
|
+
}
|
|
4639
|
+
t.push(r);
|
|
4640
|
+
}
|
|
4633
4641
|
return {
|
|
4634
|
-
|
|
4635
|
-
|
|
4642
|
+
legacy: t.join("&"),
|
|
4643
|
+
owned: n
|
|
4636
4644
|
};
|
|
4637
4645
|
}
|
|
4638
|
-
function sl(e
|
|
4646
|
+
function sl(e) {
|
|
4647
|
+
let t = e.startsWith("?") ? e.slice(1) : e, n = Zc(t), r = new URLSearchParams(n), { legacy: i, owned: a } = ol(t), o = i === t ? n : Zc(i);
|
|
4648
|
+
return {
|
|
4649
|
+
primary: cl(pl(o), r, a || fl(o)),
|
|
4650
|
+
oneShots: ll(r)
|
|
4651
|
+
};
|
|
4652
|
+
}
|
|
4653
|
+
function cl(e, t, n) {
|
|
4639
4654
|
if (t.has("kiosk")) {
|
|
4640
4655
|
let e = t.get("kiosk");
|
|
4641
4656
|
return {
|
|
@@ -4708,7 +4723,7 @@ function sl(e, t, n) {
|
|
|
4708
4723
|
slug: e
|
|
4709
4724
|
};
|
|
4710
4725
|
}
|
|
4711
|
-
function
|
|
4726
|
+
function ll(e) {
|
|
4712
4727
|
let t = [];
|
|
4713
4728
|
e.get("heatmap") === "true" && t.push({
|
|
4714
4729
|
type: "heatmap",
|
|
@@ -4754,51 +4769,51 @@ function cl(e) {
|
|
|
4754
4769
|
}
|
|
4755
4770
|
return t;
|
|
4756
4771
|
}
|
|
4757
|
-
function
|
|
4772
|
+
function ul(e) {
|
|
4758
4773
|
return tl.has(e) ? !0 : el.has(e.split("=")[0]) && e.includes("=");
|
|
4759
4774
|
}
|
|
4760
|
-
function
|
|
4775
|
+
function dl(e) {
|
|
4761
4776
|
let t = e.split("=")[0];
|
|
4762
4777
|
if (t === "heatmap") return !1;
|
|
4763
4778
|
let n = t.split("[")[0];
|
|
4764
4779
|
return Qc.has(n) || nl.has(n);
|
|
4765
4780
|
}
|
|
4766
|
-
function dl(e) {
|
|
4767
|
-
return e.split("&").some((e) => !!e && ul(e));
|
|
4768
|
-
}
|
|
4769
4781
|
function fl(e) {
|
|
4782
|
+
return e.split("&").some((e) => !!e && dl(e));
|
|
4783
|
+
}
|
|
4784
|
+
function pl(e) {
|
|
4770
4785
|
return e.split("&").filter((e) => {
|
|
4771
|
-
if (!e ||
|
|
4786
|
+
if (!e || ul(e)) return !1;
|
|
4772
4787
|
let t = e.split("=")[0].split("[")[0];
|
|
4773
|
-
return (rl.has(t) || il.has(t) || al.has(t)) && e.includes("=") ||
|
|
4788
|
+
return (rl.has(t) || il.has(t) || al.has(t)) && e.includes("=") || dl(e) ? !1 : !$c.has(t);
|
|
4774
4789
|
}).join("&");
|
|
4775
4790
|
}
|
|
4776
|
-
function
|
|
4791
|
+
function ml(e) {
|
|
4777
4792
|
let t = e.startsWith("?") ? e.slice(1) : e;
|
|
4778
4793
|
if (!t) return {
|
|
4779
4794
|
search: e,
|
|
4780
4795
|
platform: ""
|
|
4781
4796
|
};
|
|
4782
|
-
let n = t.split("&"), r = n.filter(
|
|
4797
|
+
let n = t.split("&"), r = n.filter(hl);
|
|
4783
4798
|
if (!r.length) return {
|
|
4784
4799
|
search: e,
|
|
4785
4800
|
platform: ""
|
|
4786
4801
|
};
|
|
4787
|
-
let i = n.filter((e) => !
|
|
4802
|
+
let i = n.filter((e) => !hl(e));
|
|
4788
4803
|
return {
|
|
4789
4804
|
search: i.length ? "?" + i.join("&") : "",
|
|
4790
4805
|
platform: r.join("&")
|
|
4791
4806
|
};
|
|
4792
4807
|
}
|
|
4793
|
-
function
|
|
4808
|
+
function hl(e) {
|
|
4794
4809
|
let t = e.indexOf("=");
|
|
4795
4810
|
return t > 0 && rl.has(e.slice(0, t));
|
|
4796
4811
|
}
|
|
4797
|
-
function
|
|
4798
|
-
let t =
|
|
4812
|
+
function gl(e) {
|
|
4813
|
+
let t = _l(e);
|
|
4799
4814
|
return t ? "?" + encodeURIComponent(t) : "";
|
|
4800
4815
|
}
|
|
4801
|
-
function
|
|
4816
|
+
function _l(e) {
|
|
4802
4817
|
switch (e.type) {
|
|
4803
4818
|
case "none": return "";
|
|
4804
4819
|
case "slug": return e.slug;
|
|
@@ -4817,35 +4832,35 @@ function gl(e) {
|
|
|
4817
4832
|
}
|
|
4818
4833
|
//#endregion
|
|
4819
4834
|
//#region ../resolve/src/resolve.ts
|
|
4820
|
-
var
|
|
4835
|
+
var vl = /* @__PURE__ */ new Map(), yl = /* @__PURE__ */ new Map();
|
|
4821
4836
|
async function J(e, t) {
|
|
4822
4837
|
var n;
|
|
4823
|
-
if (!
|
|
4824
|
-
let r = e.$ref, i = await (
|
|
4825
|
-
fetchCache: (n = t == null ? void 0 : t.refCache) == null ?
|
|
4838
|
+
if (!Sl(e)) return e;
|
|
4839
|
+
let r = e.$ref, i = await (Cl(r) ? wl(r, t) : Jc(r, {
|
|
4840
|
+
fetchCache: (n = t == null ? void 0 : t.refCache) == null ? vl : n,
|
|
4826
4841
|
forceFetch: t == null ? void 0 : t.forceFetch,
|
|
4827
4842
|
signal: t == null ? void 0 : t.signal,
|
|
4828
4843
|
importCallback: t == null ? void 0 : t.importCallback
|
|
4829
4844
|
})), a = e.process ? await e.process(i, r) : i;
|
|
4830
|
-
return jc(a),
|
|
4831
|
-
}
|
|
4832
|
-
function yl(e) {
|
|
4833
|
-
if (!xl(e)) return e;
|
|
4834
|
-
if (!vl.has(e.$ref)) throw Error(`resolve: $ref not resolved yet: ${e.$ref}`);
|
|
4835
|
-
return vl.get(e.$ref);
|
|
4845
|
+
return jc(a), yl.set(r, a), a;
|
|
4836
4846
|
}
|
|
4837
4847
|
function bl(e) {
|
|
4838
|
-
|
|
4848
|
+
if (!Sl(e)) return e;
|
|
4849
|
+
if (!yl.has(e.$ref)) throw Error(`resolve: $ref not resolved yet: ${e.$ref}`);
|
|
4850
|
+
return yl.get(e.$ref);
|
|
4839
4851
|
}
|
|
4840
4852
|
function xl(e) {
|
|
4841
|
-
return
|
|
4853
|
+
return !Sl(e) || yl.has(e.$ref);
|
|
4842
4854
|
}
|
|
4843
4855
|
function Sl(e) {
|
|
4856
|
+
return typeof e == "object" && !!e && "$ref" in e && typeof e.$ref == "string";
|
|
4857
|
+
}
|
|
4858
|
+
function Cl(e) {
|
|
4844
4859
|
return /\.js(\?|#|$)/i.test(e);
|
|
4845
4860
|
}
|
|
4846
|
-
function
|
|
4861
|
+
function wl(e, t) {
|
|
4847
4862
|
var n;
|
|
4848
|
-
let r = (n = t == null ? void 0 : t.refCache) == null ?
|
|
4863
|
+
let r = (n = t == null ? void 0 : t.refCache) == null ? vl : n, i = "__loadJs__" + e, a = t != null && t.forceFetch ? void 0 : r.get(i);
|
|
4849
4864
|
if (!a) {
|
|
4850
4865
|
let n = Vc(e, { signal: t == null ? void 0 : t.signal });
|
|
4851
4866
|
r.set(i, n), n.catch(() => {
|
|
@@ -4859,7 +4874,7 @@ function Cl(e, t) {
|
|
|
4859
4874
|
}
|
|
4860
4875
|
//#endregion
|
|
4861
4876
|
//#region ../config/src/lib/normalize-fp-svg.ts
|
|
4862
|
-
function
|
|
4877
|
+
function Tl(e, t) {
|
|
4863
4878
|
if (e.__fp === void 0) {
|
|
4864
4879
|
let n = e[`__fp${t}`];
|
|
4865
4880
|
typeof n == "string" && (e.__fp = n);
|
|
@@ -4871,103 +4886,103 @@ function wl(e, t) {
|
|
|
4871
4886
|
}
|
|
4872
4887
|
//#endregion
|
|
4873
4888
|
//#region ../config/src/lib/resource-urls.ts
|
|
4874
|
-
function
|
|
4875
|
-
return e === "" ||
|
|
4889
|
+
function El(e, t) {
|
|
4890
|
+
return e === "" || Dl(e) ? e : `${t.replace(/\/+$/, "")}/${e}`;
|
|
4876
4891
|
}
|
|
4877
|
-
function
|
|
4892
|
+
function Dl(e) {
|
|
4878
4893
|
return e.startsWith("/") || /^[a-z][a-z0-9+.-]*:/i.test(e);
|
|
4879
4894
|
}
|
|
4880
|
-
function
|
|
4895
|
+
function Ol(e) {
|
|
4881
4896
|
let t = e.split(/[?#]/, 1)[0];
|
|
4882
4897
|
return t.slice(0, t.lastIndexOf("/") + 1);
|
|
4883
4898
|
}
|
|
4884
|
-
function
|
|
4899
|
+
function kl(e, t) {
|
|
4885
4900
|
let n = [];
|
|
4886
4901
|
e.lastIndex = 0;
|
|
4887
4902
|
for (let r = e.exec(t); r; r = e.exec(t)) n.push(r), r[0] === "" && e.lastIndex++;
|
|
4888
4903
|
return n;
|
|
4889
4904
|
}
|
|
4890
|
-
var
|
|
4891
|
-
function
|
|
4905
|
+
var Al = /<image\b[^>]*>/g, jl = /(\b(?:(?:xlink:)?href|data-model-3d)\s*=\s*)(?:"([^"]*)"|'([^']*)')/g;
|
|
4906
|
+
function Ml(e) {
|
|
4892
4907
|
return !!e && !e.startsWith("#");
|
|
4893
4908
|
}
|
|
4894
|
-
function
|
|
4909
|
+
function Nl(e) {
|
|
4895
4910
|
var t;
|
|
4896
4911
|
let n = /* @__PURE__ */ new Set();
|
|
4897
4912
|
if (!e.includes("<image")) return [];
|
|
4898
|
-
for (let i of (t = e.match(
|
|
4913
|
+
for (let i of (t = e.match(Al)) == null ? [] : t) for (let e of kl(jl, i)) {
|
|
4899
4914
|
var r;
|
|
4900
4915
|
let t = (r = e[2]) == null ? e[3] : r;
|
|
4901
|
-
|
|
4916
|
+
Ml(t) && n.add(t);
|
|
4902
4917
|
}
|
|
4903
4918
|
return [...n];
|
|
4904
4919
|
}
|
|
4905
|
-
function
|
|
4906
|
-
return e.includes("<image") ? e.replace(
|
|
4920
|
+
function Pl(e, t) {
|
|
4921
|
+
return e.includes("<image") ? e.replace(Al, (e) => e.replace(jl, (e, n, r, i) => {
|
|
4907
4922
|
var a;
|
|
4908
4923
|
let o = (a = r == null ? i : r) == null ? "" : a;
|
|
4909
|
-
if (!
|
|
4924
|
+
if (!Ml(o)) return e;
|
|
4910
4925
|
let s = r === void 0 ? "'" : "\"";
|
|
4911
4926
|
return `${n}${s}${t(o)}${s}`;
|
|
4912
4927
|
})) : e;
|
|
4913
4928
|
}
|
|
4914
|
-
var
|
|
4915
|
-
function
|
|
4929
|
+
var Fl = /url\(\s*(['"]?)(.*?)\1\s*\)/g;
|
|
4930
|
+
function Il(e) {
|
|
4916
4931
|
let t = /* @__PURE__ */ new Set();
|
|
4917
|
-
for (let n of
|
|
4932
|
+
for (let n of kl(Fl, e)) {
|
|
4918
4933
|
let e = n[2];
|
|
4919
4934
|
e && !e.startsWith("data:") && t.add(e);
|
|
4920
4935
|
}
|
|
4921
4936
|
return [...t];
|
|
4922
4937
|
}
|
|
4923
|
-
function
|
|
4924
|
-
return e.replace(
|
|
4938
|
+
function Ll(e, t) {
|
|
4939
|
+
return e.replace(Fl, (e, n, r) => !r || r.startsWith("data:") ? e : `url(${n}${t(r)}${n})`);
|
|
4925
4940
|
}
|
|
4926
|
-
var
|
|
4927
|
-
async function
|
|
4928
|
-
let i = /* @__PURE__ */ new Set(), a = [...e.matchAll(
|
|
4941
|
+
var Rl = /@import\s+(?:url\(\s*(['"]?)(.*?)\1\s*\)|(["'])(.*?)\3)\s*([^;]*);/gi;
|
|
4942
|
+
async function zl(e, t, n, r = []) {
|
|
4943
|
+
let i = /* @__PURE__ */ new Set(), a = [...e.matchAll(Rl)], o = await Promise.all(a.map(async (e) => {
|
|
4929
4944
|
var a, o;
|
|
4930
|
-
let s = (a = (o = e[2]) == null ? e[4] : o) == null ? "" : a, c = e[5].trim(), l =
|
|
4945
|
+
let s = (a = (o = e[2]) == null ? e[4] : o) == null ? "" : a, c = e[5].trim(), l = Vl(s, n);
|
|
4931
4946
|
if (!l || c) return console.warn(c ? `Keeping conditional CSS import remote: @import ${s} ${c}` : `Keeping unresolvable relative CSS import: @import ${s}`), i.add(s), e[0];
|
|
4932
4947
|
if (r.includes(l)) throw Error(`CSS @import cycle: ${[...r, l].join(" -> ")}`);
|
|
4933
4948
|
let u = await t(l);
|
|
4934
|
-
if (!
|
|
4935
|
-
let d = await
|
|
4949
|
+
if (!Bl(u)) return console.warn(`Dropping non-stylesheet CSS @import (not parseable as CSS): @import ${s}`), "";
|
|
4950
|
+
let d = await zl(u, t, l, [...r, l]);
|
|
4936
4951
|
for (let e of d.external) {
|
|
4937
4952
|
var f;
|
|
4938
|
-
i.add(e), i.add((f =
|
|
4953
|
+
i.add(e), i.add((f = Vl(e, l)) == null ? e : f);
|
|
4939
4954
|
}
|
|
4940
|
-
return
|
|
4955
|
+
return Ll(d.css, (e) => {
|
|
4941
4956
|
var t;
|
|
4942
|
-
return (t =
|
|
4957
|
+
return (t = Vl(e, l)) == null ? e : t;
|
|
4943
4958
|
});
|
|
4944
4959
|
})), s = 0;
|
|
4945
4960
|
return {
|
|
4946
|
-
css: e.replace(
|
|
4961
|
+
css: e.replace(Rl, () => o[s++]),
|
|
4947
4962
|
external: i
|
|
4948
4963
|
};
|
|
4949
4964
|
}
|
|
4950
|
-
function
|
|
4965
|
+
function Bl(e) {
|
|
4951
4966
|
return !e.includes("\0");
|
|
4952
4967
|
}
|
|
4953
|
-
function
|
|
4968
|
+
function Vl(e, t) {
|
|
4954
4969
|
if (e) try {
|
|
4955
4970
|
return t ? new URL(e, t).href : new URL(e).href;
|
|
4956
4971
|
} catch {
|
|
4957
4972
|
return;
|
|
4958
4973
|
}
|
|
4959
4974
|
}
|
|
4960
|
-
function
|
|
4961
|
-
let [n, r] =
|
|
4975
|
+
function Hl(e, t) {
|
|
4976
|
+
let [n, r] = Ul(e, /[?#]/), i = n.lastIndexOf("/"), a = n.slice(0, i + 1), o = n.slice(i + 1), s = o.lastIndexOf(".");
|
|
4962
4977
|
return `${a}${s > 0 ? `${o.slice(0, s)}${t}${o.slice(s)}` : `${o}${t}`}${r}`;
|
|
4963
4978
|
}
|
|
4964
|
-
function
|
|
4979
|
+
function Ul(e, t) {
|
|
4965
4980
|
let n = e.search(t);
|
|
4966
4981
|
return n === -1 ? [e, ""] : [e.slice(0, n), e.slice(n)];
|
|
4967
4982
|
}
|
|
4968
4983
|
//#endregion
|
|
4969
4984
|
//#region ../config/src/lib/normalize-legacy-data.ts
|
|
4970
|
-
var
|
|
4985
|
+
var Wl = [
|
|
4971
4986
|
2567,
|
|
4972
4987
|
2704,
|
|
4973
4988
|
2681,
|
|
@@ -4982,7 +4997,7 @@ var Ul = [
|
|
|
4982
4997
|
2566,
|
|
4983
4998
|
2736
|
|
4984
4999
|
];
|
|
4985
|
-
function
|
|
5000
|
+
function Gl(e, t) {
|
|
4986
5001
|
var n, r;
|
|
4987
5002
|
let i = e.expo, a = (n = e.booths) == null ? [] : n, o = (r = e.exhibitors) == null ? [] : r;
|
|
4988
5003
|
if (e.booths = a, e.exhibitors = o, e.categories != null || (e.categories = []), e.free && (e.noFeatured = !0, e.expoFpAd = !0), e.trialExpiresAt) {
|
|
@@ -4992,12 +5007,12 @@ function Wl(e, t) {
|
|
|
4992
5007
|
if (o.length > 0) for (let e of a) delete e.reserved;
|
|
4993
5008
|
for (let e of o) typeof e.logo == "string" && (e.logo = e.logo ? {
|
|
4994
5009
|
url: e.logo,
|
|
4995
|
-
smallUrl:
|
|
4996
|
-
tinyUrl:
|
|
5010
|
+
smallUrl: Hl(e.logo, "__small"),
|
|
5011
|
+
tinyUrl: Hl(e.logo, "__tiny")
|
|
4997
5012
|
} : { url: e.logo });
|
|
4998
|
-
!e.logo && i === "expo" && (e.logo =
|
|
5013
|
+
!e.logo && i === "expo" && (e.logo = Kl("../logo.svg", t)), e.logo || (e.logo = Kl(`../${i}-logo.png`, t)), !e.homeUrl && i === "jtrade19" && (e.homeUrl = "https://www.jtrade.co.uk/"), e.boothTerm || (e.boothTerm = "Booth"), e.exhibitorTermPlural || (e.exhibitorTermPlural = "Exhibitors"), i === "expo" && o.filter((e) => {
|
|
4999
5014
|
var t;
|
|
5000
|
-
return ((t = e.logo) == null ? void 0 : t.url) &&
|
|
5015
|
+
return ((t = e.logo) == null ? void 0 : t.url) && Wl.includes(e.id);
|
|
5001
5016
|
}).forEach((e) => e.advertise = !0);
|
|
5002
5017
|
for (let e of a) {
|
|
5003
5018
|
var s;
|
|
@@ -5009,39 +5024,39 @@ function Wl(e, t) {
|
|
|
5009
5024
|
}
|
|
5010
5025
|
e.noFeatured && o.forEach((e) => e.featured = !1);
|
|
5011
5026
|
}
|
|
5012
|
-
function
|
|
5027
|
+
function Kl(e, t) {
|
|
5013
5028
|
return t ? `${t.replace(/\/+$/, "")}/${e}` : e;
|
|
5014
5029
|
}
|
|
5015
5030
|
//#endregion
|
|
5016
5031
|
//#region ../config/src/lib/rebooking.ts
|
|
5017
|
-
var
|
|
5018
|
-
async function
|
|
5032
|
+
var ql = "rt", Jl = "https://app.expofp.com/";
|
|
5033
|
+
async function Yl(e, t) {
|
|
5019
5034
|
try {
|
|
5020
|
-
let r =
|
|
5035
|
+
let r = Xl(t);
|
|
5021
5036
|
if (!r) {
|
|
5022
5037
|
e.isRebooking = !1;
|
|
5023
5038
|
return;
|
|
5024
5039
|
}
|
|
5025
|
-
|
|
5026
|
-
let i = new URL("api/rebooking-data",
|
|
5027
|
-
i.searchParams.set(
|
|
5040
|
+
Zl(r);
|
|
5041
|
+
let i = new URL("api/rebooking-data", Jl);
|
|
5042
|
+
i.searchParams.set(ql, r), i.searchParams.set("expoKey", e.expo);
|
|
5028
5043
|
let a = await fetch(i.href);
|
|
5029
5044
|
if (a.ok) {
|
|
5030
5045
|
var n;
|
|
5031
|
-
|
|
5046
|
+
Ql(e, (n = (await a.json()).exhibitors) == null ? [] : n);
|
|
5032
5047
|
}
|
|
5033
5048
|
e.isRebooking = a.ok;
|
|
5034
5049
|
} catch (e) {
|
|
5035
5050
|
console.error(e);
|
|
5036
5051
|
}
|
|
5037
5052
|
}
|
|
5038
|
-
function Yl(e) {
|
|
5039
|
-
return (e ? new URLSearchParams(decodeURIComponent(e)).get(Kl) : null) || (typeof sessionStorage < "u" ? sessionStorage.getItem(Kl) : null);
|
|
5040
|
-
}
|
|
5041
5053
|
function Xl(e) {
|
|
5042
|
-
typeof sessionStorage < "u"
|
|
5054
|
+
return (e ? new URLSearchParams(decodeURIComponent(e)).get(ql) : null) || (typeof sessionStorage < "u" ? sessionStorage.getItem(ql) : null);
|
|
5055
|
+
}
|
|
5056
|
+
function Zl(e) {
|
|
5057
|
+
typeof sessionStorage < "u" && sessionStorage.setItem(ql, e);
|
|
5043
5058
|
}
|
|
5044
|
-
function
|
|
5059
|
+
function Ql(e, t) {
|
|
5045
5060
|
var n;
|
|
5046
5061
|
let r = (n = e.exhibitors) == null ? [] : n;
|
|
5047
5062
|
for (let e of t) {
|
|
@@ -5051,43 +5066,43 @@ function Zl(e, t) {
|
|
|
5051
5066
|
}
|
|
5052
5067
|
//#endregion
|
|
5053
5068
|
//#region ../config/src/lib/store-ref.ts
|
|
5054
|
-
var
|
|
5055
|
-
function eu(e) {
|
|
5056
|
-
return e.startsWith(Ql);
|
|
5057
|
-
}
|
|
5069
|
+
var $l = "$/", eu = /^\$\/([a-z0-9-]+)\/(.+)$/;
|
|
5058
5070
|
function tu(e) {
|
|
5059
|
-
|
|
5060
|
-
|
|
5071
|
+
return e.startsWith($l);
|
|
5072
|
+
}
|
|
5073
|
+
function nu(e) {
|
|
5074
|
+
if (!tu(e)) return e;
|
|
5075
|
+
let t = eu.exec(e);
|
|
5061
5076
|
if (!t) throw Error(`resolveUrl: malformed store ref ${JSON.stringify(e)}`);
|
|
5062
5077
|
return `https://${t[1]}.expofp.com/immutable/${t[2]}`;
|
|
5063
5078
|
}
|
|
5064
5079
|
//#endregion
|
|
5065
5080
|
//#region ../config/src/lib/validate-flag.ts
|
|
5066
|
-
function
|
|
5081
|
+
function ru(e, t) {
|
|
5067
5082
|
var n;
|
|
5068
5083
|
let r = e === void 0 ? void 0 : cc(ac, e).value.validateSchema, i = t ? Zo(oc, t).validateSchema : void 0;
|
|
5069
5084
|
return (n = r == null ? i : r) != null && n;
|
|
5070
5085
|
}
|
|
5071
5086
|
//#endregion
|
|
5072
5087
|
//#region ../config/src/lib/validate-timing.ts
|
|
5073
|
-
var
|
|
5074
|
-
function
|
|
5075
|
-
|
|
5088
|
+
var iu = (0, Bo.default)("efp:config:validate"), au = 0, ou = 0, su = -Infinity, cu = !1;
|
|
5089
|
+
function lu() {
|
|
5090
|
+
su = performance.now(), iu("%d validations, %sms total since page load", ou, au.toFixed(1));
|
|
5076
5091
|
}
|
|
5077
|
-
function
|
|
5078
|
-
if (!
|
|
5092
|
+
function uu(e) {
|
|
5093
|
+
if (!iu.enabled) return e();
|
|
5079
5094
|
let t = performance.now();
|
|
5080
5095
|
try {
|
|
5081
5096
|
return e();
|
|
5082
5097
|
} finally {
|
|
5083
|
-
|
|
5084
|
-
let e = performance.now() -
|
|
5085
|
-
if (e >= 1e3)
|
|
5086
|
-
else if (!
|
|
5098
|
+
au += performance.now() - t, ou++;
|
|
5099
|
+
let e = performance.now() - su;
|
|
5100
|
+
if (e >= 1e3) lu();
|
|
5101
|
+
else if (!cu) {
|
|
5087
5102
|
var n;
|
|
5088
|
-
|
|
5103
|
+
cu = !0;
|
|
5089
5104
|
let t = setTimeout(() => {
|
|
5090
|
-
|
|
5105
|
+
cu = !1, lu();
|
|
5091
5106
|
}, 1e3 - e);
|
|
5092
5107
|
(n = t.unref) == null || n.call(t);
|
|
5093
5108
|
}
|
|
@@ -5095,34 +5110,34 @@ function lu(e) {
|
|
|
5095
5110
|
}
|
|
5096
5111
|
//#endregion
|
|
5097
5112
|
//#region ../config/src/lib/visit-resources.ts
|
|
5098
|
-
var
|
|
5099
|
-
function
|
|
5100
|
-
|
|
5113
|
+
var du = !1;
|
|
5114
|
+
function fu(e) {
|
|
5115
|
+
du = e;
|
|
5101
5116
|
}
|
|
5102
|
-
function
|
|
5103
|
-
return
|
|
5117
|
+
function pu(e, t) {
|
|
5118
|
+
return du ? uu(() => e.parse(t)) : Ac(t);
|
|
5104
5119
|
}
|
|
5105
|
-
function
|
|
5120
|
+
function mu(e, t, n) {
|
|
5106
5121
|
let r = async (e, r) => {
|
|
5107
|
-
let i =
|
|
5122
|
+
let i = pu(t, e);
|
|
5108
5123
|
n == null || n(i);
|
|
5109
|
-
let a =
|
|
5110
|
-
return await
|
|
5124
|
+
let a = Ol(r), o = Dl(a);
|
|
5125
|
+
return await hu(t, i, { asset: (e) => tu(e) ? nu(e) : o ? El(e, a) : e }), i;
|
|
5111
5126
|
};
|
|
5112
5127
|
return {
|
|
5113
5128
|
...e,
|
|
5114
5129
|
process: r
|
|
5115
5130
|
};
|
|
5116
5131
|
}
|
|
5117
|
-
async function
|
|
5118
|
-
await
|
|
5132
|
+
async function hu(e, t, n, r) {
|
|
5133
|
+
await gu(Wo(e), t, vu, n, r);
|
|
5119
5134
|
}
|
|
5120
|
-
async function
|
|
5135
|
+
async function gu(e, t, n, r, i) {
|
|
5121
5136
|
var a;
|
|
5122
5137
|
if (t == null) return;
|
|
5123
5138
|
let o = (a = e == null ? void 0 : e.anyOf) == null ? e == null ? void 0 : e.oneOf : a;
|
|
5124
|
-
if (o) return
|
|
5125
|
-
if (
|
|
5139
|
+
if (o) return gu(o.find((e) => Ko(e, t)), t, n, r, i);
|
|
5140
|
+
if (_u(t)) {
|
|
5126
5141
|
if (r.ref) {
|
|
5127
5142
|
n({ $ref: await r.ref(t.$ref) });
|
|
5128
5143
|
return;
|
|
@@ -5130,8 +5145,8 @@ async function hu(e, t, n, r, i) {
|
|
|
5130
5145
|
if (!r.document || t.$ref.startsWith("/")) return;
|
|
5131
5146
|
let a = t.$ref;
|
|
5132
5147
|
try {
|
|
5133
|
-
let o = e ? Go(e) : void 0, s = { document: Ac(
|
|
5134
|
-
o && await
|
|
5148
|
+
let o = e ? Go(e) : void 0, s = { document: Ac(xl(t) ? bl(t) : await J(o ? mu({ $ref: a }, o) : { $ref: a }, { signal: i == null ? void 0 : i.signal })) };
|
|
5149
|
+
o && await gu(Wo(o), s.document, (e) => {
|
|
5135
5150
|
s.document = e;
|
|
5136
5151
|
}, r, i), n({ $ref: await r.document(a, s.document) });
|
|
5137
5152
|
} catch (e) {
|
|
@@ -5144,17 +5159,17 @@ async function hu(e, t, n, r, i) {
|
|
|
5144
5159
|
if (e != null && e.asset && t) n(await r.asset(t, e.optionalAsset));
|
|
5145
5160
|
else if (e != null && e.svgAsset) {
|
|
5146
5161
|
let e = /* @__PURE__ */ new Map();
|
|
5147
|
-
for (let n of
|
|
5148
|
-
n(
|
|
5162
|
+
for (let n of Nl(t)) e.set(n, await r.asset(n));
|
|
5163
|
+
n(Pl(t, (t) => {
|
|
5149
5164
|
var n;
|
|
5150
5165
|
return (n = e.get(t)) == null ? t : n;
|
|
5151
5166
|
}));
|
|
5152
5167
|
} else if (e != null && e.cssAsset) {
|
|
5153
5168
|
let e = t, i = /* @__PURE__ */ new Set();
|
|
5154
|
-
r.stylesheetText && ({css: e, external: i} = await
|
|
5169
|
+
r.stylesheetText && ({css: e, external: i} = await zl(e, r.stylesheetText.bind(r)));
|
|
5155
5170
|
let a = /* @__PURE__ */ new Map();
|
|
5156
|
-
for (let t of
|
|
5157
|
-
n(
|
|
5171
|
+
for (let t of Il(e)) i.has(t) || (tu(t) || /^[a-z][a-z0-9+.-]*:/i.test(t)) && a.set(t, await r.asset(t));
|
|
5172
|
+
n(Ll(e, (e) => {
|
|
5158
5173
|
var t;
|
|
5159
5174
|
return (t = a.get(e)) == null ? e : t;
|
|
5160
5175
|
}));
|
|
@@ -5162,7 +5177,7 @@ async function hu(e, t, n, r, i) {
|
|
|
5162
5177
|
return;
|
|
5163
5178
|
}
|
|
5164
5179
|
if (Array.isArray(t)) {
|
|
5165
|
-
for (let n = 0; n < t.length; n++) await
|
|
5180
|
+
for (let n = 0; n < t.length; n++) await gu(e == null ? void 0 : e.items, t[n], (e) => {
|
|
5166
5181
|
t[n] = e;
|
|
5167
5182
|
}, r, i);
|
|
5168
5183
|
return;
|
|
@@ -5171,54 +5186,54 @@ async function hu(e, t, n, r, i) {
|
|
|
5171
5186
|
let n = t, a = typeof (e == null ? void 0 : e.additionalProperties) == "object" ? e.additionalProperties : void 0;
|
|
5172
5187
|
for (let t of Object.keys(n)) {
|
|
5173
5188
|
var s, c;
|
|
5174
|
-
await
|
|
5189
|
+
await gu((s = e == null || (c = e.properties) == null ? void 0 : c[t]) == null ? a : s, n[t], (e) => {
|
|
5175
5190
|
e === void 0 ? delete n[t] : n[t] = e;
|
|
5176
5191
|
}, r, i);
|
|
5177
5192
|
}
|
|
5178
5193
|
}
|
|
5179
5194
|
}
|
|
5180
|
-
function
|
|
5195
|
+
function _u(e) {
|
|
5181
5196
|
return typeof e == "object" && !!e && "$ref" in e && typeof e.$ref == "string";
|
|
5182
5197
|
}
|
|
5183
|
-
function
|
|
5198
|
+
function vu() {
|
|
5184
5199
|
throw Error("visitResources: the top-level value must be an object or array");
|
|
5185
5200
|
}
|
|
5186
5201
|
//#endregion
|
|
5187
5202
|
//#region ../config/src/lib/load-config.ts
|
|
5188
|
-
var
|
|
5189
|
-
async function
|
|
5203
|
+
var yu = (0, Bo.default)("efp:config");
|
|
5204
|
+
async function bu(e, t, n, r) {
|
|
5190
5205
|
let i = { ...sc };
|
|
5191
|
-
|
|
5206
|
+
fu(ru(n, r)), e = pu(rc, await Su(e)), await Cu(e);
|
|
5192
5207
|
let { legacyDataUrlBase: a, legacyDataVersion: o, ...s } = e;
|
|
5193
|
-
|
|
5208
|
+
Nu(s), Pu(i, s), t = ic.parse(t), Nu(t);
|
|
5194
5209
|
let c = String(Date.now());
|
|
5195
5210
|
if (a) {
|
|
5196
|
-
if (
|
|
5211
|
+
if (Au()) yu("loadConfig", "designer referrer — cache-busting with a timestamp");
|
|
5197
5212
|
else if (typeof o == "string" && o) c = o;
|
|
5198
|
-
else if (o === null)
|
|
5213
|
+
else if (o === null) yu("loadConfig", "manifest pins \"no version\" — cache-busting with a timestamp");
|
|
5199
5214
|
else try {
|
|
5200
5215
|
c = (await J({ $ref: `${a}version.json` })).version;
|
|
5201
5216
|
} catch {
|
|
5202
|
-
|
|
5217
|
+
yu("loadConfig", "no version.json found at", a);
|
|
5203
5218
|
}
|
|
5204
|
-
i.fpSvgJsRef != null || (i.fpSvgJsRef =
|
|
5219
|
+
i.fpSvgJsRef != null || (i.fpSvgJsRef = ju(a, "fp.svg.js", c)), i.wfDataJsRef != null || (i.wfDataJsRef = ju(a, "wf.data.js", c));
|
|
5205
5220
|
}
|
|
5206
|
-
i.fpSvgJsRef && (i.fpSvgJsRef =
|
|
5221
|
+
i.fpSvgJsRef && (i.fpSvgJsRef = mu(i.fpSvgJsRef, Ms)), i.wfDataJsRef && (i.wfDataJsRef = mu(i.wfDataJsRef, Ys));
|
|
5207
5222
|
let l = {};
|
|
5208
|
-
for (let [e, t] of Object.entries(i.fpSvgLayerJsRefs)) l[e] =
|
|
5223
|
+
for (let [e, t] of Object.entries(i.fpSvgLayerJsRefs)) l[e] = Ou(t, e);
|
|
5209
5224
|
i.fpSvgLayerJsRefs = l;
|
|
5210
5225
|
let [u, d] = await Promise.all([
|
|
5211
|
-
a ?
|
|
5212
|
-
i.fpSvgJsRef ?
|
|
5213
|
-
|
|
5226
|
+
a ? wu(a, c) : null,
|
|
5227
|
+
i.fpSvgJsRef ? Eu(i.fpSvgJsRef, a) : null,
|
|
5228
|
+
Du(i.wfDataJsRef)
|
|
5214
5229
|
]);
|
|
5215
5230
|
if (u) {
|
|
5216
5231
|
let { flags: e, legacyDataUrlBase: t, legacyDataVersion: n, fpSvgJsRef: r, wfDataJsRef: a, fpSvgLayerJsRefs: o, ...s } = u;
|
|
5217
|
-
e && (
|
|
5232
|
+
e && (Nu(e), Pu(i, e)), Nu(s), Pu(i, s);
|
|
5218
5233
|
}
|
|
5219
|
-
if (d && (i.fpSvgJsRef = d.ref, !Object.keys(i.fpSvgLayerJsRefs).length && a && (i.fpSvgLayerJsRefs =
|
|
5234
|
+
if (d && (i.fpSvgJsRef = d.ref, !Object.keys(i.fpSvgLayerJsRefs).length && a && (i.fpSvgLayerJsRefs = ku(d.payload, a, c))), Pu(i, t), r) {
|
|
5220
5235
|
let { viewerMode: e, previewMode: t, uiScale: n, ...a } = Zo(oc, r);
|
|
5221
|
-
|
|
5236
|
+
Pu(i, a);
|
|
5222
5237
|
}
|
|
5223
5238
|
if (n !== void 0 && !i.ignoreQuery) {
|
|
5224
5239
|
var f;
|
|
@@ -5227,86 +5242,86 @@ async function yu(e, t, n, r) {
|
|
|
5227
5242
|
consent: e.consent,
|
|
5228
5243
|
intents: a
|
|
5229
5244
|
}), c = [...a, ...o];
|
|
5230
|
-
c.length && (e.intents = c), t.push(...r.invalidKeys), t.length &&
|
|
5245
|
+
c.length && (e.intents = c), t.push(...r.invalidKeys), t.length && yu("loadConfig", "ignoring invalid URL config params:", t), Pu(i, s), Pu(i, e);
|
|
5231
5246
|
}
|
|
5232
|
-
return
|
|
5247
|
+
return Gl(i, a), await Yl(i, i.ignoreQuery ? void 0 : n), delete i.validateSchema, jc(i), i;
|
|
5233
5248
|
}
|
|
5234
|
-
var
|
|
5235
|
-
async function
|
|
5249
|
+
var xu = 3;
|
|
5250
|
+
async function Su(e) {
|
|
5236
5251
|
let t = e;
|
|
5237
5252
|
for (let e = 0;; e++) {
|
|
5238
|
-
|
|
5253
|
+
_u(t) && (t = {
|
|
5239
5254
|
...t,
|
|
5240
|
-
$ref:
|
|
5255
|
+
$ref: nu(t.$ref)
|
|
5241
5256
|
});
|
|
5242
5257
|
let n = await J(t);
|
|
5243
|
-
if (!
|
|
5244
|
-
if (e >=
|
|
5245
|
-
|
|
5258
|
+
if (!_u(n)) return n;
|
|
5259
|
+
if (e >= xu) throw Error(`loadConfig: manifest pointer chain deeper than ${xu} at ${n.$ref}`);
|
|
5260
|
+
yu("loadConfig", "manifest is a pointer, following it to", n.$ref), t = { $ref: n.$ref };
|
|
5246
5261
|
}
|
|
5247
5262
|
}
|
|
5248
|
-
async function
|
|
5249
|
-
let t = (e) =>
|
|
5250
|
-
await
|
|
5263
|
+
async function Cu(e) {
|
|
5264
|
+
let t = (e) => nu(e);
|
|
5265
|
+
await hu(rc, e, {
|
|
5251
5266
|
asset: t,
|
|
5252
5267
|
ref: t
|
|
5253
5268
|
});
|
|
5254
5269
|
}
|
|
5255
|
-
async function
|
|
5270
|
+
async function wu(e, t) {
|
|
5256
5271
|
var n;
|
|
5257
|
-
let r = await J(
|
|
5258
|
-
return r.__data ||
|
|
5272
|
+
let r = await J(mu(ju(e, "data.js", t), nc));
|
|
5273
|
+
return r.__data || yu("loadLegacyDataJs", "no __data global in data.js at", e), Ac((n = r.__data) == null ? {} : n);
|
|
5259
5274
|
}
|
|
5260
|
-
var
|
|
5261
|
-
async function
|
|
5275
|
+
var Tu = 2e3;
|
|
5276
|
+
async function Eu(e, t) {
|
|
5262
5277
|
let n = e, r = await J(n);
|
|
5263
|
-
for (let i = 1; r.__fpPending && !r.__fp; i++)
|
|
5278
|
+
for (let i = 1; r.__fpPending && !r.__fp; i++) yu("loadLegacyFpSvgJs", "plan is still generating, retry", i), await Mu(Tu), n = t ? mu(ju(t, "fp.svg.js", String(i)), Ms) : e, r = await J(n, { forceFetch: !0 });
|
|
5264
5279
|
return {
|
|
5265
5280
|
payload: r,
|
|
5266
5281
|
ref: n
|
|
5267
5282
|
};
|
|
5268
5283
|
}
|
|
5269
|
-
async function
|
|
5284
|
+
async function Du(e) {
|
|
5270
5285
|
if (e) try {
|
|
5271
5286
|
await J(e);
|
|
5272
5287
|
} catch (e) {
|
|
5273
|
-
|
|
5288
|
+
yu("prefetchWfData", "wf.data.js not loaded, wayfinding stays off", e);
|
|
5274
5289
|
}
|
|
5275
5290
|
}
|
|
5276
|
-
function
|
|
5277
|
-
return
|
|
5291
|
+
function Ou(e, t) {
|
|
5292
|
+
return mu(e, As, (e) => Tl(e, t));
|
|
5278
5293
|
}
|
|
5279
|
-
function
|
|
5294
|
+
function ku(e, t, n) {
|
|
5280
5295
|
var r;
|
|
5281
5296
|
let i = {};
|
|
5282
|
-
for (let a of (r = e.__fpLayers) == null ? [] : r) a.name !== e.__fpDefaultLayer && (i[a.name] =
|
|
5297
|
+
for (let a of (r = e.__fpLayers) == null ? [] : r) a.name !== e.__fpDefaultLayer && (i[a.name] = Ou(ju(t, `fp.svg.${a.name}.js`, n), a.name));
|
|
5283
5298
|
return i;
|
|
5284
5299
|
}
|
|
5285
|
-
function
|
|
5300
|
+
function Au() {
|
|
5286
5301
|
return typeof document > "u" || !document.referrer ? !1 : document.referrer.includes("app.expofp.com") || document.referrer.includes("app-show.expofp.com");
|
|
5287
5302
|
}
|
|
5288
|
-
function
|
|
5303
|
+
function ju(e, t, n) {
|
|
5289
5304
|
let r = `${e}${t}`;
|
|
5290
5305
|
return { $ref: n ? `${r}?v=${n}` : r };
|
|
5291
5306
|
}
|
|
5292
|
-
function
|
|
5307
|
+
function Mu(e) {
|
|
5293
5308
|
return new Promise((t) => setTimeout(t, e));
|
|
5294
5309
|
}
|
|
5295
|
-
function
|
|
5310
|
+
function Nu(e) {
|
|
5296
5311
|
e.allowConsent !== void 0 && (e.consent != null || (e.consent = e.allowConsent ? "granted" : "denied"), delete e.allowConsent);
|
|
5297
5312
|
}
|
|
5298
|
-
function
|
|
5313
|
+
function Pu(e, t) {
|
|
5299
5314
|
for (let [n, r] of Object.entries(t)) r !== void 0 && (e[n] = r);
|
|
5300
5315
|
}
|
|
5301
5316
|
//#endregion
|
|
5302
5317
|
//#region src/constants.ts
|
|
5303
|
-
var
|
|
5318
|
+
var Fu = "___visibility", Iu = "data-preview-mode", Lu = "efp-runtime-loader-spinner", Ru = "booths", zu = "Outdoor", Bu = "#ea4236", Vu = "rgba(234, 66, 54, 0.85)", Hu = "#ffffff", Uu = "kiosk", Wu = "setkiosk", Gu = "debug", Ku = "efp-debugMode", qu = "pathway", Ju = 1e3, Yu = "language", Xu = "efp-viewerMode", Zu = "___viewer_mode", Qu = "efp-previewMode", $u = "___preview_mode", ed = "efp-uiScale", td = "___ui-scale", nd = "--expofp-font-face", rd = "--expofp-booth-main-weight", id = "--expofp-booth-details-weight", ad = "--expofp-exhibitor-main-weight", od = "--expofp-exhibitor-details-weight", sd = "--expofp-booth-special-weight", cd = "efp-compass-permission-granted", ld = new URL(
|
|
5304
5319
|
/* @vite-ignore */
|
|
5305
5320
|
".",
|
|
5306
5321
|
import.meta.url
|
|
5307
5322
|
).href;
|
|
5308
|
-
|
|
5309
|
-
var
|
|
5323
|
+
ld.endsWith("/") || (ld += "/");
|
|
5324
|
+
var ud = ld, dd = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
5310
5325
|
(function() {
|
|
5311
5326
|
function e(e, t) {
|
|
5312
5327
|
document.addEventListener ? e.addEventListener("scroll", t, !1) : e.attachEvent("scroll", t);
|
|
@@ -5406,17 +5421,17 @@ var ld = cd, ud = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
5406
5421
|
});
|
|
5407
5422
|
}, typeof t == "object" ? t.exports = s : (window.FontFaceObserver = s, window.FontFaceObserver.prototype.load = s.prototype.load);
|
|
5408
5423
|
})();
|
|
5409
|
-
})))(), 1),
|
|
5424
|
+
})))(), 1), fd = /* @__PURE__ */ e(r(), 1), pd = window.navigator.userAgent, md = fd.default.getParser(pd);
|
|
5410
5425
|
//#endregion
|
|
5411
5426
|
//#region src/tools/loaders.ts
|
|
5412
|
-
async function
|
|
5427
|
+
async function hd(e) {
|
|
5413
5428
|
return await (await fetch(e, { credentials: "same-origin" })).json();
|
|
5414
5429
|
}
|
|
5415
|
-
function
|
|
5430
|
+
function gd(e, t) {
|
|
5416
5431
|
let n = document.createElement("link");
|
|
5417
5432
|
n.rel = "stylesheet", n.href = e, n.setAttribute("fetchpriority", "high"), t.appendChild(n);
|
|
5418
5433
|
}
|
|
5419
|
-
async function
|
|
5434
|
+
async function _d(e, t, n) {
|
|
5420
5435
|
var r;
|
|
5421
5436
|
n = {
|
|
5422
5437
|
style: "normal",
|
|
@@ -5424,8 +5439,8 @@ async function gd(e, t, n) {
|
|
|
5424
5439
|
...n || {}
|
|
5425
5440
|
};
|
|
5426
5441
|
let i = `url("${t}")`;
|
|
5427
|
-
if (!window.FontFace) return e.startsWith("Font Awesome") ||
|
|
5428
|
-
e.indexOf(" ") !== -1 && ((r =
|
|
5442
|
+
if (!window.FontFace) return e.startsWith("Font Awesome") || vd(e, i, n), Promise.resolve();
|
|
5443
|
+
e.indexOf(" ") !== -1 && ((r = md.getEngine()) == null ? void 0 : r.name) === "Gecko" && (e = `'${e}'`);
|
|
5429
5444
|
let a;
|
|
5430
5445
|
try {
|
|
5431
5446
|
a = new FontFace(e, i, n);
|
|
@@ -5434,17 +5449,17 @@ async function gd(e, t, n) {
|
|
|
5434
5449
|
}
|
|
5435
5450
|
return document.fonts.add(a), a.load();
|
|
5436
5451
|
}
|
|
5437
|
-
function
|
|
5452
|
+
function vd(e, t, n) {
|
|
5438
5453
|
let r = document.createElement("style");
|
|
5439
5454
|
r.appendChild(document.createTextNode(`@font-face { font-family: ${e}; font-weight: ${n.weight}; font-style: ${n.style}; src: ${t} format('woff2'); font-display: swap; }`)), document.head.appendChild(r);
|
|
5440
5455
|
let i = document.createElement("div");
|
|
5441
5456
|
i.setAttribute("style", `font-family: oswald; font-weight: ${n.weight}; position: fixed; left: -1000px; top: 0; visibility: hidden`), i.innerHTML = "Oswald", document.body.appendChild(i);
|
|
5442
5457
|
}
|
|
5443
|
-
async function
|
|
5458
|
+
async function yd(e) {
|
|
5444
5459
|
var t;
|
|
5445
5460
|
let n = getComputedStyle(document.documentElement).getPropertyValue("--expofp-font-face") || ((t = e.match(/--expofp-font-face:\s*([^;]*)/)) == null ? void 0 : t[1]);
|
|
5446
5461
|
if (!n) return;
|
|
5447
|
-
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new
|
|
5462
|
+
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new dd.default(e).load());
|
|
5448
5463
|
return Promise.allSettled(r);
|
|
5449
5464
|
}
|
|
5450
5465
|
//#endregion
|
|
@@ -5459,7 +5474,7 @@ function Y(e) {
|
|
|
5459
5474
|
}
|
|
5460
5475
|
//#endregion
|
|
5461
5476
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
5462
|
-
function
|
|
5477
|
+
function bd(e, t) {
|
|
5463
5478
|
if (Y(e) != "object" || !e) return e;
|
|
5464
5479
|
var n = e[Symbol.toPrimitive];
|
|
5465
5480
|
if (n !== void 0) {
|
|
@@ -5471,14 +5486,14 @@ function yd(e, t) {
|
|
|
5471
5486
|
}
|
|
5472
5487
|
//#endregion
|
|
5473
5488
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
5474
|
-
function
|
|
5475
|
-
var t =
|
|
5489
|
+
function xd(e) {
|
|
5490
|
+
var t = bd(e, "string");
|
|
5476
5491
|
return Y(t) == "symbol" ? t : t + "";
|
|
5477
5492
|
}
|
|
5478
5493
|
//#endregion
|
|
5479
5494
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
5480
|
-
function
|
|
5481
|
-
return (t =
|
|
5495
|
+
function Sd(e, t, n) {
|
|
5496
|
+
return (t = xd(t)) in e ? Object.defineProperty(e, t, {
|
|
5482
5497
|
value: n,
|
|
5483
5498
|
enumerable: !0,
|
|
5484
5499
|
configurable: !0,
|
|
@@ -5493,7 +5508,7 @@ function X(e) {
|
|
|
5493
5508
|
typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
5494
5509
|
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
5495
5510
|
})), r.forEach(function(t) {
|
|
5496
|
-
|
|
5511
|
+
Sd(e, t, n[t]);
|
|
5497
5512
|
});
|
|
5498
5513
|
}
|
|
5499
5514
|
return e;
|
|
@@ -5505,55 +5520,55 @@ function Z(e, t) {
|
|
|
5505
5520
|
}
|
|
5506
5521
|
//#endregion
|
|
5507
5522
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
5508
|
-
function
|
|
5523
|
+
function Cd(e, t) {
|
|
5509
5524
|
for (var n = 0; n < t.length; n++) {
|
|
5510
5525
|
var r = t[n];
|
|
5511
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
5526
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, xd(r.key), r);
|
|
5512
5527
|
}
|
|
5513
5528
|
}
|
|
5514
5529
|
function Q(e, t, n) {
|
|
5515
|
-
return t &&
|
|
5530
|
+
return t && Cd(e.prototype, t), n && Cd(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
5516
5531
|
}
|
|
5517
5532
|
//#endregion
|
|
5518
5533
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
5519
|
-
function
|
|
5534
|
+
function wd(e) {
|
|
5520
5535
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5521
5536
|
return e;
|
|
5522
5537
|
}
|
|
5523
5538
|
//#endregion
|
|
5524
5539
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
5525
|
-
function
|
|
5540
|
+
function Td(e, t) {
|
|
5526
5541
|
if (t && (Y(t) == "object" || typeof t == "function")) return t;
|
|
5527
5542
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
5528
|
-
return
|
|
5543
|
+
return wd(e);
|
|
5529
5544
|
}
|
|
5530
5545
|
//#endregion
|
|
5531
5546
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
5532
|
-
function
|
|
5533
|
-
return
|
|
5547
|
+
function Ed(e) {
|
|
5548
|
+
return Ed = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
5534
5549
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
5535
|
-
},
|
|
5550
|
+
}, Ed(e);
|
|
5536
5551
|
}
|
|
5537
5552
|
//#endregion
|
|
5538
5553
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
5539
|
-
function
|
|
5540
|
-
return
|
|
5554
|
+
function Dd(e, t) {
|
|
5555
|
+
return Dd = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
5541
5556
|
return e.__proto__ = t, e;
|
|
5542
|
-
},
|
|
5557
|
+
}, Dd(e, t);
|
|
5543
5558
|
}
|
|
5544
5559
|
//#endregion
|
|
5545
5560
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
5546
|
-
function
|
|
5561
|
+
function Od(e, t) {
|
|
5547
5562
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
5548
5563
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
5549
5564
|
value: e,
|
|
5550
5565
|
writable: !0,
|
|
5551
5566
|
configurable: !0
|
|
5552
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
5567
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Dd(e, t);
|
|
5553
5568
|
}
|
|
5554
5569
|
//#endregion
|
|
5555
5570
|
//#region ../../node_modules/.pnpm/i18next@19.9.2/node_modules/i18next/dist/esm/i18next.js
|
|
5556
|
-
var
|
|
5571
|
+
var kd = {
|
|
5557
5572
|
type: "logger",
|
|
5558
5573
|
log: function(e) {
|
|
5559
5574
|
this.output("log", e);
|
|
@@ -5577,7 +5592,7 @@ var Od = {
|
|
|
5577
5592
|
key: "init",
|
|
5578
5593
|
value: function(e) {
|
|
5579
5594
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5580
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
5595
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || kd, this.options = t, this.debug = t.debug;
|
|
5581
5596
|
}
|
|
5582
5597
|
},
|
|
5583
5598
|
{
|
|
@@ -5627,7 +5642,7 @@ var Od = {
|
|
|
5627
5642
|
}
|
|
5628
5643
|
}
|
|
5629
5644
|
]), e;
|
|
5630
|
-
}())(),
|
|
5645
|
+
}())(), Ad = function() {
|
|
5631
5646
|
function e() {
|
|
5632
5647
|
Z(this, e), this.observers = {};
|
|
5633
5648
|
}
|
|
@@ -5668,21 +5683,21 @@ var Od = {
|
|
|
5668
5683
|
}
|
|
5669
5684
|
]), e;
|
|
5670
5685
|
}();
|
|
5671
|
-
function
|
|
5686
|
+
function jd() {
|
|
5672
5687
|
var e, t, n = new Promise(function(n, r) {
|
|
5673
5688
|
e = n, t = r;
|
|
5674
5689
|
});
|
|
5675
5690
|
return n.resolve = e, n.reject = t, n;
|
|
5676
5691
|
}
|
|
5677
|
-
function
|
|
5692
|
+
function Md(e) {
|
|
5678
5693
|
return e == null ? "" : "" + e;
|
|
5679
5694
|
}
|
|
5680
|
-
function
|
|
5695
|
+
function Nd(e, t, n) {
|
|
5681
5696
|
e.forEach(function(e) {
|
|
5682
5697
|
t[e] && (n[e] = t[e]);
|
|
5683
5698
|
});
|
|
5684
5699
|
}
|
|
5685
|
-
function
|
|
5700
|
+
function Pd(e, t, n) {
|
|
5686
5701
|
function r(e) {
|
|
5687
5702
|
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e;
|
|
5688
5703
|
}
|
|
@@ -5699,30 +5714,30 @@ function Nd(e, t, n) {
|
|
|
5699
5714
|
k: r(a.shift())
|
|
5700
5715
|
};
|
|
5701
5716
|
}
|
|
5702
|
-
function
|
|
5703
|
-
var r =
|
|
5717
|
+
function Fd(e, t, n) {
|
|
5718
|
+
var r = Pd(e, t, Object), i = r.obj, a = r.k;
|
|
5704
5719
|
i[a] = n;
|
|
5705
5720
|
}
|
|
5706
|
-
function
|
|
5707
|
-
var i =
|
|
5721
|
+
function Id(e, t, n, r) {
|
|
5722
|
+
var i = Pd(e, t, Object), a = i.obj, o = i.k;
|
|
5708
5723
|
a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n);
|
|
5709
5724
|
}
|
|
5710
|
-
function
|
|
5711
|
-
var n =
|
|
5725
|
+
function Ld(e, t) {
|
|
5726
|
+
var n = Pd(e, t), r = n.obj, i = n.k;
|
|
5712
5727
|
if (r) return r[i];
|
|
5713
5728
|
}
|
|
5714
|
-
function Ld(e, t, n) {
|
|
5715
|
-
var r = Id(e, n);
|
|
5716
|
-
return r === void 0 ? Id(t, n) : r;
|
|
5717
|
-
}
|
|
5718
5729
|
function Rd(e, t, n) {
|
|
5719
|
-
|
|
5730
|
+
var r = Ld(e, n);
|
|
5731
|
+
return r === void 0 ? Ld(t, n) : r;
|
|
5732
|
+
}
|
|
5733
|
+
function zd(e, t, n) {
|
|
5734
|
+
for (var r in t) r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : zd(e[r], t[r], n) : e[r] = t[r]);
|
|
5720
5735
|
return e;
|
|
5721
5736
|
}
|
|
5722
|
-
function
|
|
5737
|
+
function Bd(e) {
|
|
5723
5738
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
5724
5739
|
}
|
|
5725
|
-
var
|
|
5740
|
+
var Vd = {
|
|
5726
5741
|
"&": "&",
|
|
5727
5742
|
"<": "<",
|
|
5728
5743
|
">": ">",
|
|
@@ -5730,19 +5745,19 @@ var Bd = {
|
|
|
5730
5745
|
"'": "'",
|
|
5731
5746
|
"/": "/"
|
|
5732
5747
|
};
|
|
5733
|
-
function
|
|
5748
|
+
function Hd(e) {
|
|
5734
5749
|
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, function(e) {
|
|
5735
|
-
return
|
|
5750
|
+
return Vd[e];
|
|
5736
5751
|
}) : e;
|
|
5737
5752
|
}
|
|
5738
|
-
var
|
|
5739
|
-
|
|
5753
|
+
var Ud = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Wd = function(e) {
|
|
5754
|
+
Od(t, e);
|
|
5740
5755
|
function t(e) {
|
|
5741
5756
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
5742
5757
|
ns: ["translation"],
|
|
5743
5758
|
defaultNS: "translation"
|
|
5744
5759
|
};
|
|
5745
|
-
return Z(this, t), n =
|
|
5760
|
+
return Z(this, t), n = Td(this, Ed(t).call(this)), Ud && Ad.call(wd(n)), n.data = e || {}, n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n;
|
|
5746
5761
|
}
|
|
5747
5762
|
return Q(t, [
|
|
5748
5763
|
{
|
|
@@ -5762,7 +5777,7 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5762
5777
|
key: "getResource",
|
|
5763
5778
|
value: function(e, t, n) {
|
|
5764
5779
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = [e, t];
|
|
5765
|
-
return n && typeof n != "string" && (a = a.concat(n)), n && typeof n == "string" && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (a = e.split(".")),
|
|
5780
|
+
return n && typeof n != "string" && (a = a.concat(n)), n && typeof n == "string" && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (a = e.split(".")), Ld(this.data, a);
|
|
5766
5781
|
}
|
|
5767
5782
|
},
|
|
5768
5783
|
{
|
|
@@ -5771,7 +5786,7 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5771
5786
|
var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }, a = this.options.keySeparator;
|
|
5772
5787
|
a === void 0 && (a = ".");
|
|
5773
5788
|
var o = [e, t];
|
|
5774
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
5789
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Fd(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
5775
5790
|
}
|
|
5776
5791
|
},
|
|
5777
5792
|
{
|
|
@@ -5787,8 +5802,8 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5787
5802
|
value: function(e, t, n, r, i) {
|
|
5788
5803
|
var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1 }, o = [e, t];
|
|
5789
5804
|
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
5790
|
-
var s =
|
|
5791
|
-
r ?
|
|
5805
|
+
var s = Ld(this.data, o) || {};
|
|
5806
|
+
r ? zd(s, n, i) : s = X({}, s, n), Fd(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
5792
5807
|
}
|
|
5793
5808
|
},
|
|
5794
5809
|
{
|
|
@@ -5822,7 +5837,7 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5822
5837
|
}
|
|
5823
5838
|
}
|
|
5824
5839
|
]), t;
|
|
5825
|
-
}(
|
|
5840
|
+
}(Ad), Gd = {
|
|
5826
5841
|
processors: {},
|
|
5827
5842
|
addPostProcessor: function(e) {
|
|
5828
5843
|
this.processors[e.name] = e;
|
|
@@ -5833,11 +5848,11 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5833
5848
|
a.processors[e] && (t = a.processors[e].process(t, n, r, i));
|
|
5834
5849
|
}), t;
|
|
5835
5850
|
}
|
|
5836
|
-
},
|
|
5837
|
-
|
|
5851
|
+
}, Kd = {}, qd = function(e) {
|
|
5852
|
+
Od(t, e);
|
|
5838
5853
|
function t(e) {
|
|
5839
5854
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5840
|
-
return Z(this, t), n =
|
|
5855
|
+
return Z(this, t), n = Td(this, Ed(t).call(this)), Ud && Ad.call(wd(n)), Nd([
|
|
5841
5856
|
"resourceStore",
|
|
5842
5857
|
"languageUtils",
|
|
5843
5858
|
"pluralResolver",
|
|
@@ -5845,7 +5860,7 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5845
5860
|
"backendConnector",
|
|
5846
5861
|
"i18nFormat",
|
|
5847
5862
|
"utils"
|
|
5848
|
-
], e,
|
|
5863
|
+
], e, wd(n)), n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n.logger = $.create("translator"), n;
|
|
5849
5864
|
}
|
|
5850
5865
|
return Q(t, [
|
|
5851
5866
|
{
|
|
@@ -5958,7 +5973,7 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5958
5973
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
5959
5974
|
}
|
|
5960
5975
|
var f = n.postProcess || this.options.postProcess, p = typeof f == "string" ? [f] : f;
|
|
5961
|
-
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e =
|
|
5976
|
+
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e = Gd.handle(p, e, t, this.options && this.options.postProcessPassResolved ? X({ i18nResolved: r }, n) : n, this)), e;
|
|
5962
5977
|
}
|
|
5963
5978
|
},
|
|
5964
5979
|
{
|
|
@@ -5973,7 +5988,7 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5973
5988
|
t.options.fallbackNS && (u = u.concat(t.options.fallbackNS));
|
|
5974
5989
|
var d = n.count !== void 0 && typeof n.count != "string", f = n.context !== void 0 && typeof n.context == "string" && n.context !== "", p = n.lngs ? n.lngs : t.languageUtils.toResolveHierarchy(n.lng || t.language, n.fallbackLng);
|
|
5975
5990
|
u.forEach(function(e) {
|
|
5976
|
-
t.isValidLookup(r) || (s = e, !
|
|
5991
|
+
t.isValidLookup(r) || (s = e, !Kd[`${p[0]}-${e}`] && t.utils && t.utils.hasLoadedNamespace && !t.utils.hasLoadedNamespace(s) && (Kd[`${p[0]}-${e}`] = !0, t.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach(function(i) {
|
|
5977
5992
|
if (!t.isValidLookup(r)) {
|
|
5978
5993
|
o = i;
|
|
5979
5994
|
var s = l, c = [s];
|
|
@@ -6017,11 +6032,11 @@ var Hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
6017
6032
|
return !1;
|
|
6018
6033
|
}
|
|
6019
6034
|
}]), t;
|
|
6020
|
-
}(
|
|
6021
|
-
function
|
|
6035
|
+
}(Ad);
|
|
6036
|
+
function Jd(e) {
|
|
6022
6037
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
6023
6038
|
}
|
|
6024
|
-
var
|
|
6039
|
+
var Yd = function() {
|
|
6025
6040
|
function e(t) {
|
|
6026
6041
|
Z(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
|
|
6027
6042
|
}
|
|
@@ -6057,7 +6072,7 @@ var Jd = function() {
|
|
|
6057
6072
|
], n = e.split("-");
|
|
6058
6073
|
return this.options.lowerCaseLng ? n = n.map(function(e) {
|
|
6059
6074
|
return e.toLowerCase();
|
|
6060
|
-
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] =
|
|
6075
|
+
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Jd(n[1].toLowerCase()))) : n.length === 3 && (n[0] = n[0].toLowerCase(), n[1].length === 2 && (n[1] = n[1].toUpperCase()), n[0] !== "sgn" && n[2].length === 2 && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Jd(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = Jd(n[2].toLowerCase()))), n.join("-");
|
|
6061
6076
|
}
|
|
6062
6077
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
6063
6078
|
}
|
|
@@ -6118,7 +6133,7 @@ var Jd = function() {
|
|
|
6118
6133
|
}
|
|
6119
6134
|
}
|
|
6120
6135
|
]), e;
|
|
6121
|
-
}(),
|
|
6136
|
+
}(), Xd = [
|
|
6122
6137
|
{
|
|
6123
6138
|
lngs: [
|
|
6124
6139
|
"ach",
|
|
@@ -6359,7 +6374,7 @@ var Jd = function() {
|
|
|
6359
6374
|
],
|
|
6360
6375
|
fc: 22
|
|
6361
6376
|
}
|
|
6362
|
-
],
|
|
6377
|
+
], Zd = {
|
|
6363
6378
|
1: function(e) {
|
|
6364
6379
|
return Number(e > 1);
|
|
6365
6380
|
},
|
|
@@ -6427,21 +6442,21 @@ var Jd = function() {
|
|
|
6427
6442
|
return Number(e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
|
|
6428
6443
|
}
|
|
6429
6444
|
};
|
|
6430
|
-
function
|
|
6445
|
+
function Qd() {
|
|
6431
6446
|
var e = {};
|
|
6432
|
-
return
|
|
6447
|
+
return Xd.forEach(function(t) {
|
|
6433
6448
|
t.lngs.forEach(function(n) {
|
|
6434
6449
|
e[n] = {
|
|
6435
6450
|
numbers: t.nr,
|
|
6436
|
-
plurals:
|
|
6451
|
+
plurals: Zd[t.fc]
|
|
6437
6452
|
};
|
|
6438
6453
|
});
|
|
6439
6454
|
}), e;
|
|
6440
6455
|
}
|
|
6441
|
-
var
|
|
6456
|
+
var $d = function() {
|
|
6442
6457
|
function e(t) {
|
|
6443
6458
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6444
|
-
Z(this, e), this.languageUtils = t, this.options = n, this.logger = $.create("pluralResolver"), this.rules =
|
|
6459
|
+
Z(this, e), this.languageUtils = t, this.options = n, this.logger = $.create("pluralResolver"), this.rules = Qd();
|
|
6445
6460
|
}
|
|
6446
6461
|
return Q(e, [
|
|
6447
6462
|
{
|
|
@@ -6496,7 +6511,7 @@ var Qd = function() {
|
|
|
6496
6511
|
}
|
|
6497
6512
|
}
|
|
6498
6513
|
]), e;
|
|
6499
|
-
}(),
|
|
6514
|
+
}(), ef = function() {
|
|
6500
6515
|
function e() {
|
|
6501
6516
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6502
6517
|
Z(this, e), this.logger = $.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
|
|
@@ -6510,7 +6525,7 @@ var Qd = function() {
|
|
|
6510
6525
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6511
6526
|
e.interpolation || (e.interpolation = { escapeValue: !0 });
|
|
6512
6527
|
var t = e.interpolation;
|
|
6513
|
-
this.escape = t.escape === void 0 ?
|
|
6528
|
+
this.escape = t.escape === void 0 ? Hd : t.escape, this.escapeValue = t.escapeValue === void 0 || t.escapeValue, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 && t.useRawValueToEscape, this.prefix = t.prefix ? Bd(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? Bd(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? Bd(t.nestingPrefix) : t.nestingPrefixEscaped || Bd("$t("), this.nestingSuffix = t.nestingSuffix ? Bd(t.nestingSuffix) : t.nestingSuffixEscaped || Bd(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 && t.alwaysFormat, this.resetRegExp();
|
|
6514
6529
|
}
|
|
6515
6530
|
},
|
|
6516
6531
|
{
|
|
@@ -6539,11 +6554,11 @@ var Qd = function() {
|
|
|
6539
6554
|
}
|
|
6540
6555
|
var u = function(e) {
|
|
6541
6556
|
if (e.indexOf(i.formatSeparator) < 0) {
|
|
6542
|
-
var a =
|
|
6557
|
+
var a = Rd(t, c, e);
|
|
6543
6558
|
return i.alwaysFormat ? i.format(a, void 0, n) : a;
|
|
6544
6559
|
}
|
|
6545
6560
|
var o = e.split(i.formatSeparator), s = o.shift().trim(), l = o.join(i.formatSeparator).trim();
|
|
6546
|
-
return i.format(
|
|
6561
|
+
return i.format(Rd(t, c, s), l, n, r);
|
|
6547
6562
|
};
|
|
6548
6563
|
this.resetRegExp();
|
|
6549
6564
|
var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, f = r && r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
|
|
@@ -6566,7 +6581,7 @@ var Qd = function() {
|
|
|
6566
6581
|
o = a[0];
|
|
6567
6582
|
continue;
|
|
6568
6583
|
} else i.logger.warn(`missed to pass in variable ${a[1]} for interpolating ${e}`), o = "";
|
|
6569
|
-
else typeof o != "string" && !i.useRawValueToEscape && (o =
|
|
6584
|
+
else typeof o != "string" && !i.useRawValueToEscape && (o = Md(o));
|
|
6570
6585
|
if (e = e.replace(a[0], t.safeValue(o)), t.regex.lastIndex = 0, s++, s >= i.maxReplaces) break;
|
|
6571
6586
|
}
|
|
6572
6587
|
}), e;
|
|
@@ -6598,7 +6613,7 @@ var Qd = function() {
|
|
|
6598
6613
|
i[1] = u.shift(), c = u, l = !0;
|
|
6599
6614
|
}
|
|
6600
6615
|
if (a = t(s.call(this, i[1].trim(), o), o), a && i[0] === e && typeof a != "string") return a;
|
|
6601
|
-
typeof a != "string" && (a =
|
|
6616
|
+
typeof a != "string" && (a = Md(a)), a || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), a = ""), l && (a = c.reduce(function(e, t) {
|
|
6602
6617
|
return n.format(e, t, r.lng, r);
|
|
6603
6618
|
}, a.trim())), e = e.replace(i[0], a), this.regexp.lastIndex = 0;
|
|
6604
6619
|
}
|
|
@@ -6607,14 +6622,14 @@ var Qd = function() {
|
|
|
6607
6622
|
}
|
|
6608
6623
|
]), e;
|
|
6609
6624
|
}();
|
|
6610
|
-
function
|
|
6625
|
+
function tf(e, t) {
|
|
6611
6626
|
for (var n = e.indexOf(t); n !== -1;) e.splice(n, 1), n = e.indexOf(t);
|
|
6612
6627
|
}
|
|
6613
|
-
var
|
|
6614
|
-
|
|
6628
|
+
var nf = function(e) {
|
|
6629
|
+
Od(t, e);
|
|
6615
6630
|
function t(e, n, r) {
|
|
6616
6631
|
var i, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6617
|
-
return Z(this, t), i =
|
|
6632
|
+
return Z(this, t), i = Td(this, Ed(t).call(this)), Ud && Ad.call(wd(i)), i.backend = e, i.store = n, i.services = r, i.languageUtils = r.languageUtils, i.options = a, i.logger = $.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, a.backend, a), i;
|
|
6618
6633
|
}
|
|
6619
6634
|
return Q(t, [
|
|
6620
6635
|
{
|
|
@@ -6647,7 +6662,7 @@ var tf = function(e) {
|
|
|
6647
6662
|
t && this.emit("failedLoading", i, a, t), n && this.store.addResourceBundle(i, a, n), this.state[e] = t ? -1 : 2;
|
|
6648
6663
|
var o = {};
|
|
6649
6664
|
this.queue.forEach(function(n) {
|
|
6650
|
-
|
|
6665
|
+
Id(n.loaded, [i], a), tf(n.pending, e), t && n.errors.push(t), n.pending.length === 0 && !n.done && (Object.keys(n.loaded).forEach(function(e) {
|
|
6651
6666
|
o[e] || (o[e] = []), n.loaded[e].length && n.loaded[e].forEach(function(t) {
|
|
6652
6667
|
o[e].indexOf(t) < 0 && o[e].push(t);
|
|
6653
6668
|
});
|
|
@@ -6718,8 +6733,8 @@ var tf = function(e) {
|
|
|
6718
6733
|
}
|
|
6719
6734
|
}
|
|
6720
6735
|
]), t;
|
|
6721
|
-
}(
|
|
6722
|
-
function
|
|
6736
|
+
}(Ad);
|
|
6737
|
+
function rf() {
|
|
6723
6738
|
return {
|
|
6724
6739
|
debug: !1,
|
|
6725
6740
|
initImmediate: !0,
|
|
@@ -6782,16 +6797,16 @@ function nf() {
|
|
|
6782
6797
|
}
|
|
6783
6798
|
};
|
|
6784
6799
|
}
|
|
6785
|
-
function
|
|
6800
|
+
function af(e) {
|
|
6786
6801
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
|
6787
6802
|
}
|
|
6788
|
-
function
|
|
6789
|
-
var
|
|
6790
|
-
|
|
6803
|
+
function of() {}
|
|
6804
|
+
var sf = new (function(e) {
|
|
6805
|
+
Od(t, e);
|
|
6791
6806
|
function t() {
|
|
6792
6807
|
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
6793
|
-
if (Z(this, t), e =
|
|
6794
|
-
if (!e.options.initImmediate) return e.init(n, r),
|
|
6808
|
+
if (Z(this, t), e = Td(this, Ed(t).call(this)), Ud && Ad.call(wd(e)), e.options = af(n), e.services = {}, e.logger = $, e.modules = { external: [] }, r && !e.isInitialized && !n.isClone) {
|
|
6809
|
+
if (!e.options.initImmediate) return e.init(n, r), Td(e, wd(e));
|
|
6795
6810
|
setTimeout(function() {
|
|
6796
6811
|
e.init(n, r);
|
|
6797
6812
|
}, 0);
|
|
@@ -6803,23 +6818,23 @@ var of = new (function(e) {
|
|
|
6803
6818
|
key: "init",
|
|
6804
6819
|
value: function() {
|
|
6805
6820
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
6806
|
-
typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = X({},
|
|
6821
|
+
typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = X({}, rf(), this.options, af(t)), this.format = this.options.interpolation.format, n || (n = of);
|
|
6807
6822
|
function r(e) {
|
|
6808
6823
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
6809
6824
|
}
|
|
6810
6825
|
if (!this.options.isClone) {
|
|
6811
6826
|
this.modules.logger ? $.init(r(this.modules.logger), this.options) : $.init(null, this.options);
|
|
6812
|
-
var i = new
|
|
6813
|
-
this.store = new
|
|
6827
|
+
var i = new Yd(this.options);
|
|
6828
|
+
this.store = new Wd(this.options.resources, this.options);
|
|
6814
6829
|
var a = this.services;
|
|
6815
|
-
a.logger = $, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new
|
|
6830
|
+
a.logger = $, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new $d(i, {
|
|
6816
6831
|
prepend: this.options.pluralSeparator,
|
|
6817
6832
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
6818
6833
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
6819
|
-
}), a.interpolator = new
|
|
6834
|
+
}), a.interpolator = new ef(this.options), a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, a.backendConnector = new nf(r(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", function(t) {
|
|
6820
6835
|
var n = [...arguments].slice(1);
|
|
6821
6836
|
e.emit.apply(e, [t].concat(n));
|
|
6822
|
-
}), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new
|
|
6837
|
+
}), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new qd(this.services, this.options), this.translator.on("*", function(t) {
|
|
6823
6838
|
var n = [...arguments].slice(1);
|
|
6824
6839
|
e.emit.apply(e, [t].concat(n));
|
|
6825
6840
|
}), this.modules.external.forEach(function(t) {
|
|
@@ -6851,7 +6866,7 @@ var of = new (function(e) {
|
|
|
6851
6866
|
return (n = e.store)[t].apply(n, arguments), e;
|
|
6852
6867
|
};
|
|
6853
6868
|
});
|
|
6854
|
-
var s =
|
|
6869
|
+
var s = jd(), c = function() {
|
|
6855
6870
|
var t = function(t, r) {
|
|
6856
6871
|
e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), s.resolve(r), n(t, r);
|
|
6857
6872
|
};
|
|
@@ -6864,7 +6879,7 @@ var of = new (function(e) {
|
|
|
6864
6879
|
{
|
|
6865
6880
|
key: "loadResources",
|
|
6866
6881
|
value: function(e) {
|
|
6867
|
-
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
6882
|
+
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : of, r = typeof e == "string" ? e : this.language;
|
|
6868
6883
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
6869
6884
|
if (r && r.toLowerCase() === "cimode") return n();
|
|
6870
6885
|
var i = [], a = function(e) {
|
|
@@ -6883,8 +6898,8 @@ var of = new (function(e) {
|
|
|
6883
6898
|
{
|
|
6884
6899
|
key: "reloadResources",
|
|
6885
6900
|
value: function(e, t, n) {
|
|
6886
|
-
var r =
|
|
6887
|
-
return e || (e = this.languages), t || (t = this.options.ns), n || (n =
|
|
6901
|
+
var r = jd();
|
|
6902
|
+
return e || (e = this.languages), t || (t = this.options.ns), n || (n = of), this.services.backendConnector.reload(e, t, function(e) {
|
|
6888
6903
|
r.resolve(), n(e);
|
|
6889
6904
|
}), r;
|
|
6890
6905
|
}
|
|
@@ -6894,7 +6909,7 @@ var of = new (function(e) {
|
|
|
6894
6909
|
value: function(e) {
|
|
6895
6910
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
6896
6911
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
6897
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
6912
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Gd.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
6898
6913
|
}
|
|
6899
6914
|
},
|
|
6900
6915
|
{
|
|
@@ -6902,7 +6917,7 @@ var of = new (function(e) {
|
|
|
6902
6917
|
value: function(e, t) {
|
|
6903
6918
|
var n = this;
|
|
6904
6919
|
this.isLanguageChangingTo = e;
|
|
6905
|
-
var r =
|
|
6920
|
+
var r = jd();
|
|
6906
6921
|
this.emit("languageChanging", e);
|
|
6907
6922
|
var i = function(e, i) {
|
|
6908
6923
|
i ? (n.language = i, n.languages = n.services.languageUtils.toResolveHierarchy(i), n.translator.changeLanguage(i), n.isLanguageChangingTo = void 0, n.emit("languageChanged", i), n.logger.log("languageChanged", i)) : n.isLanguageChangingTo = void 0, r.resolve(function() {
|
|
@@ -6975,7 +6990,7 @@ var of = new (function(e) {
|
|
|
6975
6990
|
{
|
|
6976
6991
|
key: "loadNamespaces",
|
|
6977
6992
|
value: function(e, t) {
|
|
6978
|
-
var n = this, r =
|
|
6993
|
+
var n = this, r = jd();
|
|
6979
6994
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach(function(e) {
|
|
6980
6995
|
n.options.ns.indexOf(e) < 0 && n.options.ns.push(e);
|
|
6981
6996
|
}), this.loadResources(function(e) {
|
|
@@ -6986,7 +7001,7 @@ var of = new (function(e) {
|
|
|
6986
7001
|
{
|
|
6987
7002
|
key: "loadLanguages",
|
|
6988
7003
|
value: function(e, t) {
|
|
6989
|
-
var n =
|
|
7004
|
+
var n = jd();
|
|
6990
7005
|
typeof e == "string" && (e = [e]);
|
|
6991
7006
|
var r = this.options.preload || [], i = e.filter(function(e) {
|
|
6992
7007
|
return r.indexOf(e) < 0;
|
|
@@ -7011,21 +7026,21 @@ var of = new (function(e) {
|
|
|
7011
7026
|
{
|
|
7012
7027
|
key: "cloneInstance",
|
|
7013
7028
|
value: function() {
|
|
7014
|
-
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
7029
|
+
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : of, i = X({}, this.options, n, { isClone: !0 }), a = new t(i);
|
|
7015
7030
|
return [
|
|
7016
7031
|
"store",
|
|
7017
7032
|
"services",
|
|
7018
7033
|
"language"
|
|
7019
7034
|
].forEach(function(t) {
|
|
7020
7035
|
a[t] = e[t];
|
|
7021
|
-
}), a.services = X({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new
|
|
7036
|
+
}), a.services = X({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new qd(a.services, a.options), a.translator.on("*", function(e) {
|
|
7022
7037
|
var t = [...arguments].slice(1);
|
|
7023
7038
|
a.emit.apply(a, [e].concat(t));
|
|
7024
7039
|
}), a.init(i, r), a.translator.options = a.options, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
7025
7040
|
}
|
|
7026
7041
|
}
|
|
7027
7042
|
]), t;
|
|
7028
|
-
}(
|
|
7043
|
+
}(Ad))(), cf = {
|
|
7029
7044
|
de: "Deutsch",
|
|
7030
7045
|
en: "English",
|
|
7031
7046
|
es: "Español",
|
|
@@ -7050,47 +7065,47 @@ var of = new (function(e) {
|
|
|
7050
7065
|
};
|
|
7051
7066
|
//#endregion
|
|
7052
7067
|
//#region src/utils/localStorage.ts
|
|
7053
|
-
function
|
|
7068
|
+
function lf() {
|
|
7054
7069
|
try {
|
|
7055
7070
|
return localStorage.setItem("test", "test"), localStorage.removeItem("test"), !0;
|
|
7056
7071
|
} catch {
|
|
7057
7072
|
return !1;
|
|
7058
7073
|
}
|
|
7059
7074
|
}
|
|
7060
|
-
var
|
|
7061
|
-
if (!
|
|
7062
|
-
let e = localStorage.getItem(
|
|
7063
|
-
return t && localStorage.removeItem(
|
|
7064
|
-
},
|
|
7075
|
+
var uf = lf(), df = "en", ff = "efp-locale", pf = "language", mf = i.box(df), hf = i.array([], { deep: !1 }), gf = (e) => hd(`${ud}locales/${e}.json`), _f = () => {
|
|
7076
|
+
if (!uf) return null;
|
|
7077
|
+
let e = localStorage.getItem(ff), t = localStorage.getItem(pf);
|
|
7078
|
+
return t && localStorage.removeItem(pf), e || (t && localStorage.setItem(ff, t), t);
|
|
7079
|
+
}, vf = () => {
|
|
7065
7080
|
var e;
|
|
7066
|
-
let t = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, n = Object.keys(
|
|
7067
|
-
return (
|
|
7068
|
-
},
|
|
7069
|
-
|
|
7081
|
+
let t = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, n = Object.keys(cf).find((e) => t.startsWith(e));
|
|
7082
|
+
return (_f() || c().locale || n || df).toLowerCase();
|
|
7083
|
+
}, yf = () => mf.get(), bf = () => hf, xf = (e) => hf.some((t) => t.id === e), Sf = (e, t) => (mf.get(), sf.t(e, t)), Cf = (e, t) => (mf.get(), sf.exists(e, t) ? sf.t(e, t) : e), wf = async () => {
|
|
7084
|
+
hf.replace(Object.entries(cf).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
|
|
7070
7085
|
id: e,
|
|
7071
7086
|
name: t,
|
|
7072
|
-
entity: { type:
|
|
7087
|
+
entity: { type: Yu }
|
|
7073
7088
|
})));
|
|
7074
|
-
let e =
|
|
7075
|
-
if (e !==
|
|
7076
|
-
t[e] = { translation: await
|
|
7089
|
+
let e = vf(), t = {};
|
|
7090
|
+
if (e !== df) try {
|
|
7091
|
+
t[e] = { translation: await gf(e) };
|
|
7077
7092
|
} catch (t) {
|
|
7078
|
-
console.error(`Unable to load "${e}" localization, falling back to "${
|
|
7093
|
+
console.error(`Unable to load "${e}" localization, falling back to "${df}".`, t), e = df;
|
|
7079
7094
|
}
|
|
7080
|
-
return
|
|
7095
|
+
return mf.set(e), sf.init({
|
|
7081
7096
|
resources: t,
|
|
7082
7097
|
lng: e,
|
|
7083
7098
|
keySeparator: !1,
|
|
7084
|
-
saveMissing: e !==
|
|
7099
|
+
saveMissing: e !== df,
|
|
7085
7100
|
missingKeyHandler: (e, t, n, r) => console.debug(`i18n missing key: '${e[0]}:${t}:${n}', fallback: '${r}'`)
|
|
7086
7101
|
});
|
|
7087
|
-
},
|
|
7102
|
+
}, Tf = async (e) => {
|
|
7088
7103
|
let t = e.toLowerCase();
|
|
7089
7104
|
try {
|
|
7090
|
-
t !==
|
|
7105
|
+
t !== df && !sf.hasResourceBundle(t, "translation") && sf.addResourceBundle(t, "translation", await gf(t), !0, !0), await sf.changeLanguage(t), mf.set(t), uf && localStorage.setItem(ff, t);
|
|
7091
7106
|
} catch (e) {
|
|
7092
7107
|
console.error(`Failed to switch language to "${t}":`, e);
|
|
7093
7108
|
}
|
|
7094
|
-
},
|
|
7109
|
+
}, Ef = async () => (uf && (localStorage.removeItem(ff), localStorage.removeItem(pf)), Tf(vf()));
|
|
7095
7110
|
//#endregion
|
|
7096
|
-
export { Sc as $,
|
|
7111
|
+
export { Sc as $, Zu as A, o as At, Wu as B, sd as C, Ne as Ct, Yu as D, u as Dt, Uu as E, O as Et, Hu as F, bl as G, Xu as H, Bu as I, sl as J, xl as K, Iu as L, zu as M, qu as N, $u as O, c as Ot, Vu as P, Ec as Q, Qu as R, ad as S, je as St, od as T, x as Tt, Fu as U, ed as V, bu as W, ml as X, gl as Y, Zc as Z, Ju as _, Vn as _t, Ef as a, Rs as at, nd as b, De as bt, Cf as c, zr as ct, gd as d, or as dt, Cc as et, yd as f, bn as ft, Ru as g, wn as gt, ud as h, fn as ht, wf as i, ac as it, cd as j, td as k, s as kt, uf as l, Nr as lt, md as m, vn as mt, bf as n, vc as nt, Tf as o, os as ot, _d as p, er as pt, J as q, xf as r, oc as rt, Sf as s, ts as st, yf as t, cc as tt, Dd as u, si as ut, Gu as v, Rt as vt, id as w, D as wt, rd as x, ke as xt, Ku as y, M as yt, Lu as z };
|