@luigi-project/core-modular 0.0.16 → 0.0.17-dev.202610100057

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/luigi.js CHANGED
@@ -805,10 +805,10 @@ var i = (/* @__PURE__ */ e(((e, t) => {
805
805
  function Oi(e) {
806
806
  var t = Cd(e);
807
807
  return function(n) {
808
- return G(n, e, t);
808
+ return ki(n, e, t);
809
809
  };
810
810
  }
811
- function G(e, t, r) {
811
+ function ki(e, t, r) {
812
812
  var i = r.length;
813
813
  if (e == null) return !i;
814
814
  for (e = O(e); i--;) {
@@ -817,7 +817,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
817
817
  }
818
818
  return !0;
819
819
  }
820
- function ki(e, t, r) {
820
+ function G(e, t, r) {
821
821
  if (typeof e != "function") throw new At(o);
822
822
  return ks(function() {
823
823
  e.apply(n, r);
@@ -1003,14 +1003,14 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1003
1003
  return typeof e == "function" ? e : e == null ? Mf : typeof e == "object" ? Z(e) ? ga(e[0], e[1]) : ha(e) : Gf(e);
1004
1004
  }
1005
1005
  function da(e) {
1006
- if (!vs(e)) return fn(e);
1006
+ if (!Y(e)) return fn(e);
1007
1007
  var t = [];
1008
1008
  for (var n in O(e)) A.call(e, n) && n != "constructor" && t.push(n);
1009
1009
  return t;
1010
1010
  }
1011
1011
  function fa(e) {
1012
1012
  if (!Du(e)) return Ss(e);
1013
- var t = vs(e), n = [];
1013
+ var t = Y(e), n = [];
1014
1014
  for (var r in e) r == "constructor" && (t || !A.call(e, r)) || n.push(r);
1015
1015
  return n;
1016
1016
  }
@@ -1025,12 +1025,12 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1025
1025
  }
1026
1026
  function ha(e) {
1027
1027
  var t = Qo(e);
1028
- return t.length == 1 && t[0][2] ? X(t[0][0], t[0][1]) : function(n) {
1028
+ return t.length == 1 && t[0][2] ? bs(t[0][0], t[0][1]) : function(n) {
1029
1029
  return n === e || aa(n, e, t);
1030
1030
  };
1031
1031
  }
1032
1032
  function ga(e, t) {
1033
- return ms(e) && ys(t) ? X(Fs(e), t) : function(r) {
1033
+ return ms(e) && ys(t) ? bs(Fs(e), t) : function(r) {
1034
1034
  var i = _d(r, e);
1035
1035
  return i === n && i === t ? yd(r, e) : na(t, i, h | g);
1036
1036
  };
@@ -1077,7 +1077,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1077
1077
  value: e
1078
1078
  };
1079
1079
  }), function(e, t) {
1080
- return so(e, t, n);
1080
+ return q(e, t, n);
1081
1081
  });
1082
1082
  }
1083
1083
  function xa(e, t) {
@@ -1314,7 +1314,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1314
1314
  var n = t ? no(e.buffer) : e.buffer;
1315
1315
  return new e.constructor(n, e.byteOffset, e.length);
1316
1316
  }
1317
- function q(e, t) {
1317
+ function so(e, t) {
1318
1318
  if (e !== t) {
1319
1319
  var r = e !== n, i = e === null, a = e === e, o = Hu(e), s = t !== n, c = t === null, l = t === t, u = Hu(t);
1320
1320
  if (!c && !u && !o && e > t || o && s && l && !c && !u || i && s && l || !r && l || !a) return 1;
@@ -1322,9 +1322,9 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1322
1322
  }
1323
1323
  return 0;
1324
1324
  }
1325
- function so(e, t, n) {
1325
+ function q(e, t, n) {
1326
1326
  for (var r = -1, i = e.criteria, a = t.criteria, o = i.length, s = n.length; ++r < o;) {
1327
- var c = q(i[r], a[r]);
1327
+ var c = so(i[r], a[r]);
1328
1328
  if (c) return r >= s ? c : c * (n[r] == "desc" ? -1 : 1);
1329
1329
  }
1330
1330
  return e.index - t.index;
@@ -1802,7 +1802,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1802
1802
  return t && typeof e[0] == "string" && A.call(e, "index") && (n.index = e.index, n.input = e.input), n;
1803
1803
  }
1804
1804
  function cs(e) {
1805
- return typeof e.constructor == "function" && !vs(e) ? Vr(Kt(e)) : {};
1805
+ return typeof e.constructor == "function" && !Y(e) ? Vr(Kt(e)) : {};
1806
1806
  }
1807
1807
  function ls(e, t, n) {
1808
1808
  var r = e.constructor;
@@ -1865,20 +1865,20 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1865
1865
  function _s(e) {
1866
1866
  return !!Lt && Lt in e;
1867
1867
  }
1868
- var Y = Pt ? wu : Xf;
1869
- function vs(e) {
1868
+ var vs = Pt ? wu : Xf;
1869
+ function Y(e) {
1870
1870
  var t = e && e.constructor;
1871
1871
  return e === (typeof t == "function" && t.prototype || Nt);
1872
1872
  }
1873
1873
  function ys(e) {
1874
1874
  return e === e && !Du(e);
1875
1875
  }
1876
- function X(e, t) {
1876
+ function bs(e, t) {
1877
1877
  return function(r) {
1878
1878
  return r == null ? !1 : r[e] === t && (t !== n || e in O(r));
1879
1879
  };
1880
1880
  }
1881
- function bs(e) {
1881
+ function X(e) {
1882
1882
  var t = Wl(e, function(e) {
1883
1883
  return n.size === u && n.clear(), e;
1884
1884
  }), n = t.cache;
@@ -1949,7 +1949,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1949
1949
  }
1950
1950
  return e.length = t, e;
1951
1951
  }
1952
- var Ps = bs(function(e) {
1952
+ var Ps = X(function(e) {
1953
1953
  var t = [];
1954
1954
  return e.charCodeAt(0) === 46 && t.push(""), e.replace(st, function(e, n, r, i) {
1955
1955
  t.push(r ? i.replace(gt, "$1") : n || e);
@@ -2109,7 +2109,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2109
2109
  var n = e == null ? 0 : e.length, r = Ti(e, t);
2110
2110
  return Ta(e, N(t, function(e) {
2111
2111
  return fs(e, n) ? +e : e;
2112
- }).sort(q)), r;
2112
+ }).sort(so)), r;
2113
2113
  });
2114
2114
  function _c(e, t) {
2115
2115
  var n = [];
@@ -2471,9 +2471,9 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2471
2471
  return C.cancel = x, C.flush = S, C;
2472
2472
  }
2473
2473
  var Vl = K(function(e, t) {
2474
- return ki(e, 1, t);
2474
+ return G(e, 1, t);
2475
2475
  }), Hl = K(function(e, t, n) {
2476
- return ki(e, Qu(t) || 0, n);
2476
+ return G(e, Qu(t) || 0, n);
2477
2477
  });
2478
2478
  function Ul(e) {
2479
2479
  return Ro(e, ne);
@@ -2563,7 +2563,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2563
2563
  return t = typeof t == "function" ? t : n, Di(e, f | m, t);
2564
2564
  }
2565
2565
  function su(e, t) {
2566
- return t == null || G(e, t, Cd(t));
2566
+ return t == null || ki(e, t, Cd(t));
2567
2567
  }
2568
2568
  function cu(e, t) {
2569
2569
  return e === t || e !== e && t !== t;
@@ -2593,7 +2593,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2593
2593
  if (pu(e) && (Z(e) || typeof e == "string" || typeof e.splice == "function" || gu(e) || Uu(e) || du(e))) return !e.length;
2594
2594
  var t = rs(e);
2595
2595
  if (t == De || t == Pe) return !e.size;
2596
- if (vs(e)) return !da(e).length;
2596
+ if (Y(e)) return !da(e).length;
2597
2597
  for (var n in e) if (A.call(e, n)) return !1;
2598
2598
  return !0;
2599
2599
  }
@@ -2642,7 +2642,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2642
2642
  return Iu(e) && e != +e;
2643
2643
  }
2644
2644
  function Nu(e) {
2645
- if (Y(e)) throw new Et(a);
2645
+ if (vs(e)) throw new Et(a);
2646
2646
  return oa(e);
2647
2647
  }
2648
2648
  function Pu(e) {
@@ -2724,7 +2724,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2724
2724
  return e == null ? "" : Va(e);
2725
2725
  }
2726
2726
  var td = go(function(e, t) {
2727
- if (vs(t) || pu(t)) {
2727
+ if (Y(t) || pu(t)) {
2728
2728
  fo(t, Cd(t), e);
2729
2729
  return;
2730
2730
  }
@@ -3507,10 +3507,10 @@ var i = (/* @__PURE__ */ e(((e, t) => {
3507
3507
  return !!s.getConfigValue("auth.use");
3508
3508
  }
3509
3509
  login() {
3510
- this.isAuthorizationEnabled() && ki.startAuthorization();
3510
+ this.isAuthorizationEnabled() && Ai.startAuthorization();
3511
3511
  }
3512
3512
  logout() {
3513
- this.isAuthorizationEnabled() && ki.logout();
3513
+ this.isAuthorizationEnabled() && Ai.logout();
3514
3514
  }
3515
3515
  async handleAuthEvent(e, t, n, r) {
3516
3516
  let i = await s.executeConfigFnAsync("auth.events." + e, !1, t, n), a = i === void 0 || !!i;
@@ -3526,11 +3526,11 @@ var i = (/* @__PURE__ */ e(((e, t) => {
3526
3526
  getStorageType: () => c.getStorageType(),
3527
3527
  getAuthData: () => c.getAuthData(),
3528
3528
  setAuthData: (e) => {
3529
- c.setAuthData(e), ki.broadcastAuthData(e);
3529
+ c.setAuthData(e), Ai.broadcastAuthData(e);
3530
3530
  },
3531
3531
  removeAuthData: () => c.removeAuthData(),
3532
3532
  setNewlyAuthorized: () => {
3533
- c.setNewlyAuthorized(), ki.resetExpirationChecks();
3533
+ c.setNewlyAuthorized(), Ai.resetExpirationChecks();
3534
3534
  }
3535
3535
  };
3536
3536
  }
@@ -7904,7 +7904,7 @@ var fi = {
7904
7904
  return this.nodeDataManagementService ||= W.get(vi), this.nodeDataManagementService;
7905
7905
  }
7906
7906
  async getPathData(e) {
7907
- let t = this.luigi.getConfig(), n = e.split("/");
7907
+ let t = this.luigi.getConfig(), n = e?.split("/");
7908
7908
  n?.length > 0 && n[0] === "" && (n = n.slice(1));
7909
7909
  let r = t.navigation?.globalContext || {}, i;
7910
7910
  if (this.getNodeDataManagementService().hasRootNode()) i = this.getNodeDataManagementService().getRootNode().node;
@@ -7969,6 +7969,16 @@ var fi = {
7969
7969
  }, i = n?.pathParams ? n.pathParams : {};
7970
7970
  c.url = U.substituteViewUrl(r, i, void 0, this.luigi), l = c.url;
7971
7971
  }
7972
+ if (s.statusBadge) {
7973
+ let e = {
7974
+ critical: "Critical",
7975
+ informative: "Information",
7976
+ negative: "Negative",
7977
+ neutral: "Neutral",
7978
+ positive: "Positive"
7979
+ };
7980
+ s.statusBadge.type = e[s.statusBadge.type] || "Neutral";
7981
+ }
7972
7982
  let d = s.category && (typeof s.category == "string" || s.category.id || s.category.label);
7973
7983
  if (d) {
7974
7984
  let n = s.category.id || s.category.label || s.category, a = this.luigi.i18n().getTranslation(s.category.label || s.category.id || s.category), o = r[n];
@@ -7983,7 +7993,8 @@ var fi = {
7983
7993
  id: n,
7984
7994
  label: a,
7985
7995
  nodes: [],
7986
- tooltip: this.resolveTooltipText(s.category, a)
7996
+ tooltip: this.resolveTooltipText(s.category, a),
7997
+ navigateOnClick: s.category.navigateOnClick ?? !1
7987
7998
  }
7988
7999
  }, r[n] = o, i.push(o);
7989
8000
  else if (e) if (o.badgeCounter) {
@@ -8023,7 +8034,11 @@ var fi = {
8023
8034
  count: () => s,
8024
8035
  label: ""
8025
8036
  };
8026
- return i.unshift(...a), {
8037
+ return i.unshift(...a), i.forEach((e) => {
8038
+ if (!e.category?.navigateOnClick || !e.category.nodes?.length) return;
8039
+ let t = e.category.navigateOnClick, n = t === !0 ? e.category.nodes.find((e) => e.node?.category?.navigateOnClick) : e.category.nodes.find((e) => e.node?.pathSegment === t);
8040
+ n && (n.navigateOnClick = !0);
8041
+ }), {
8027
8042
  items: i,
8028
8043
  totalBadgeNode: c
8029
8044
  };
@@ -8146,7 +8161,7 @@ var fi = {
8146
8161
  icon: n.navigation?.profile?.logout?.icon || hi.logout.icon,
8147
8162
  testId: n.navigation?.profile?.logout?.testId || H.prepareForTests(s),
8148
8163
  doLogout: () => {
8149
- ki.logout();
8164
+ Ai.logout();
8150
8165
  }
8151
8166
  },
8152
8167
  settings: {
@@ -8157,7 +8172,7 @@ var fi = {
8157
8172
  },
8158
8173
  onUserInfoUpdate: (e) => {
8159
8174
  this.luigi.getConfigValueAsync("navigation.profile.staticUserInfoFn").then((t) => {
8160
- t ? e(t) : ki.getUserInfoStore().subscribe((t) => {
8175
+ t ? e(t) : Ai.getUserInfoStore().subscribe((t) => {
8161
8176
  e(t);
8162
8177
  });
8163
8178
  });
@@ -8168,7 +8183,7 @@ var fi = {
8168
8183
  e.externalLink?.url ? H.openExternalLink(e.externalLink) : e.link && this.luigi.navigation().navigate(e.link);
8169
8184
  }
8170
8185
  }, v = await this.buildNavItems(r.rootNodes, h, r), y = p;
8171
- return p?.searchProvider?.inputPlaceholder && (y = {
8186
+ p?.searchProvider?.inputPlaceholder && (y = {
8172
8187
  ...y,
8173
8188
  searchProvider: {
8174
8189
  ...y?.searchProvider,
@@ -8177,11 +8192,15 @@ var fi = {
8177
8192
  }), p?.searchFieldCentered && (y = {
8178
8193
  ...y,
8179
8194
  searchFieldCentered: !!this.luigi.getConfigValue("settings.experimental.globalSearchCentered")
8180
- }), {
8195
+ });
8196
+ let b = "";
8197
+ return typeof n.settings?.header?.altText == "string" && (b = this.luigi.i18n().getTranslation(n.settings.header.altText)), {
8181
8198
  appTitle: o || n.settings?.header?.title,
8199
+ favicon: n.settings?.header?.favicon,
8182
8200
  globalSearch: y,
8183
8201
  isHeaderDisabled: !!n.settings?.header?.disabled,
8184
8202
  logo: n.settings?.header?.logo,
8203
+ logoAltText: b,
8185
8204
  topNodes: v.items,
8186
8205
  totalBadgeNode: v.totalBadgeNode,
8187
8206
  contextSwitcher: g,
@@ -8684,17 +8703,17 @@ var fi = {
8684
8703
  async shouldShowModalPathInUrl(e) {
8685
8704
  this.luigi.getConfigValue("routing.showModalPathInUrl") && await this.handleBookmarkableModalPath(e);
8686
8705
  }
8687
- async handleBookmarkableModalPath(e) {
8688
- let t = W.get(yi), n = W.get(_i), r = new URLSearchParams(e?.query || ""), i = U.getModalViewParamName(this.luigi), a = r.get(i);
8689
- if (a) {
8690
- let e = r.get(`${i}Params`);
8706
+ async handleBookmarkableModalPath(e, t = !0) {
8707
+ let n = W.get(yi), r = W.get(_i), i = new URLSearchParams(e?.query || ""), a = U.getModalViewParamName(this.luigi), o = i.get(a);
8708
+ if (o) {
8709
+ let e = i.get(`${a}Params`);
8691
8710
  try {
8692
- let n = JSON.parse(e || "{}"), { nodeObject: r } = await t.extractDataFromPath(a);
8693
- document.querySelector(".lui-modal luigi-container") ? this.luigi.getEngine()._connector?.updateModalSettings(n) : this.luigi.navigation().openAsModal(a, n || r.openNodeInModal);
8711
+ let t = JSON.parse(e || "{}"), { nodeObject: r } = await n.extractDataFromPath(o);
8712
+ document.querySelector(".lui-modal luigi-container") ? this.luigi.getEngine()._connector?.updateModalSettings(t) : this.luigi.navigation().openAsModal(o, t || r.openNodeInModal);
8694
8713
  } catch (e) {
8695
8714
  console.error("Error parsing modal settings from URL parameters", e);
8696
8715
  }
8697
- } else return await n.closeModalsWithDirtyCheck(), void 0;
8716
+ } else return t && await r.closeModalsWithDirtyCheck(), void 0;
8698
8717
  }
8699
8718
  appendModalDataToUrl(e, t) {
8700
8719
  let n = U.getHashQueryParamSeparator(), r = U.getQueryParams(this.luigi), i = U.getModalViewParamName(this.luigi), a = r[i], o = new URL(location.href), s = this.luigi.getConfigValue("routing.useHashRouting"), c = history.state, l, u;
@@ -8876,6 +8895,24 @@ var fi = {
8876
8895
  }, Oi = (e, t, n, r) => {
8877
8896
  let i = t.getConfigValue("settings.webcomponentCreationInterceptor");
8878
8897
  a.isFunction(i) && (e.webcomponentCreationInterceptor = i, e.currentNode = n, e._luigiMicroFrontendType = r !== "main");
8898
+ }, ki = async (e, t, n) => {
8899
+ let r = n.getConfigValue("routing.showModalPathInUrl"), i = W.get(_i);
8900
+ if (r) {
8901
+ let r = W.get(Si), a = !!n.getConfigValue("routing.useHashRouting"), o = U.getCurrentPath(n, a, !0);
8902
+ await i.closeModalsWithDirtyCheck() && (await r.handleBookmarkableModalPath(o, !1), G.drawerContainer && G.drawerContainer?.updateContext && G.drawerContainer.updateContext(e || {}, { withoutSync: t }));
8903
+ } else {
8904
+ let n = a.getNodeList("luigi-container[lui_container]", !0), r = W.get(gi), i = async (e) => {
8905
+ if (r.shouldShowUnsavedChangesModal(e)) try {
8906
+ await r.getUnsavedChangesModalPromise(e);
8907
+ } catch {
8908
+ return;
8909
+ }
8910
+ };
8911
+ if (G.modalContainer.length) for (let e of G.modalContainer) await i(e);
8912
+ G.drawerContainer && await i(G.drawerContainer), n?.length > 1 && n.filter((e) => !e.parentNode.classList.contains("content")).forEach((n) => {
8913
+ n?.updateContext && n.updateContext(e || {}, { withoutSync: t });
8914
+ });
8915
+ }
8879
8916
  }, G = {
8880
8917
  navService: void 0,
8881
8918
  routingService: void 0,
@@ -8935,8 +8972,8 @@ var fi = {
8935
8972
  } else r || n.viewGroup || n.virtualTree && p === n.virtualTreeRootNode || !e.viewGroup && !e.isolateView && !e.webcomponent && n.viewurl && (i || m && a.isSameUrl(n.viewurl, m)) ? f = n : r || n.remove();
8936
8973
  }), f && f._luigiPreloading && (f._luigiPreloading = !1, W.get(bi).viewGroupLoaded(f)), f) {
8937
8974
  let n = f.viewurl;
8938
- !r && !i && (f.style.display = "block", f.viewurl = m, f.nodeParams = l, f.pathParams = u, f.clientPermissions = e.clientPermissions, f.searchParams = d, f.locale = t.i18n().getCurrentLocale(), f.theme = t.theming().getCurrentTheme(), f.activeFeatureToggleList = t.featureToggles().getActiveFeatureToggleList(), f.userSettingsGroup = e.userSettingsGroup, f.userSettings = s, Ti(f, t), Ei(f, t)), r && !i && (f.nodeParams = l, f.pathParams = u, f.searchParams = d), i || (a.isSameUrl(n, m) && n !== m && !f.virtualTree && !r ? (f.context = e.context || {}, f.updateViewUrl(m)) : f.updateContext(e.context || {}, { withoutSync: !!r }));
8939
- } else if (r) !i && o && o.updateContext(e.context || {}, { withoutSync: r });
8975
+ !r && !i && (f.style.display = "block", f.viewurl = m, f.nodeParams = l, f.pathParams = u, f.clientPermissions = e.clientPermissions, f.searchParams = d, f.locale = t.i18n().getCurrentLocale(), f.theme = t.theming().getCurrentTheme(), f.activeFeatureToggleList = t.featureToggles().getActiveFeatureToggleList(), f.userSettingsGroup = e.userSettingsGroup, f.userSettings = s, Ti(f, t), Ei(f, t)), r && !i && (f.nodeParams = l, f.pathParams = u, f.searchParams = d), i || (a.isSameUrl(n, m) && n !== m && !f.virtualTree && !r ? (f.context = e.context || {}, f.updateViewUrl(m)) : (f.updateContext(e.context || {}, { withoutSync: !!r }), await ki(e.context || {}, !!r, t)));
8976
+ } else if (r) !i && o && (o.updateContext(e.context || {}, { withoutSync: r }), await ki(e.context || {}, !!r, t));
8940
8977
  else {
8941
8978
  let r = await wi(e, t, n, "main");
8942
8979
  c?.appendChild(r);
@@ -9013,14 +9050,16 @@ var fi = {
9013
9050
  }
9014
9051
  let o = await wi(t, e, i, "drawer");
9015
9052
  G.drawerContainer = o;
9016
- let s = new Promise((e) => {
9017
- o.addEventListener(V.CLOSE_CURRENT_MODAL_REQUEST, async () => {
9053
+ let s = !1, c, l = new Promise((e) => {
9054
+ c = () => {
9055
+ s || (s = !0, e());
9056
+ }, o.addEventListener(V.CLOSE_CURRENT_MODAL_REQUEST, async () => {
9018
9057
  try {
9019
9058
  await a.getUnsavedChangesModalPromise(o);
9020
9059
  } catch {
9021
9060
  return;
9022
9061
  }
9023
- G.drawerContainer = void 0, a.clearDirtyState(o), e();
9062
+ G.drawerContainer = void 0, a.clearDirtyState(o), c && c();
9024
9063
  });
9025
9064
  });
9026
9065
  e.getEngine()._connector?.renderDrawer(o, n, async () => {
@@ -9029,10 +9068,10 @@ var fi = {
9029
9068
  } catch {
9030
9069
  return;
9031
9070
  }
9032
- r?.(), G.drawerContainer = void 0, a.clearDirtyState(o);
9033
- }, () => s);
9034
- let c = e.getEngine()._connector;
9035
- t.loadingIndicator?.enabled !== !1 && c?.showLoadingIndicator(o.parentElement);
9071
+ r?.(), G.drawerContainer = void 0, a.clearDirtyState(o), c && c();
9072
+ }, () => l);
9073
+ let u = e.getEngine()._connector;
9074
+ t.loadingIndicator?.enabled !== !1 && u?.showLoadingIndicator(o.parentElement);
9036
9075
  },
9037
9076
  openUserSettings: async (e, t, n, r) => {
9038
9077
  let i = {};
@@ -9058,7 +9097,7 @@ var fi = {
9058
9097
  await r.storeUserSettings(n, t);
9059
9098
  }, r.getEngine()._connector?.openUserSettings(e, t, n);
9060
9099
  }
9061
- }, ki = new class {
9100
+ }, Ai = new class {
9062
9101
  idpProviderInstance;
9063
9102
  _userInfoStore;
9064
9103
  _loggedInStore;
@@ -9143,7 +9182,7 @@ var fi = {
9143
9182
  G.modalContainer?.forEach((t) => t.setAttribute("auth-data", JSON.stringify(e))), G.drawerContainer && G.drawerContainer.setAttribute("auth-data", JSON.stringify(e));
9144
9183
  }
9145
9184
  }
9146
- }(), Ai = { luigi: {
9185
+ }(), ji = { luigi: {
9147
9186
  button: {
9148
9187
  confirm: "Yes",
9149
9188
  dismiss: "No"
@@ -9162,7 +9201,7 @@ var fi = {
9162
9201
  body: "Unsaved changes will be lost. Do you want to continue?",
9163
9202
  header: "Unsaved changes detected"
9164
9203
  }
9165
- } }, ji = class {
9204
+ } }, Mi = class {
9166
9205
  luigi;
9167
9206
  currentLocaleStorageKey;
9168
9207
  defaultLocale;
@@ -9170,7 +9209,7 @@ var fi = {
9170
9209
  translationImpl;
9171
9210
  translationTable;
9172
9211
  constructor(e) {
9173
- this.luigi = e, this.currentLocaleStorageKey = "luigi.currentLocale", this.defaultLocale = "en", this.listeners = {}, this.translationTable = Ai;
9212
+ this.luigi = e, this.currentLocaleStorageKey = "luigi.currentLocale", this.defaultLocale = "en", this.listeners = {}, this.translationTable = ji;
9174
9213
  }
9175
9214
  _init() {
9176
9215
  this._initCustomImplementation(), this.addCurrentLocaleChangeListener((e) => {
@@ -9225,7 +9264,7 @@ var fi = {
9225
9264
  e = e.replace(RegExp("{" + fi.escapeKeyForRegexp(n) + "}", "gi"), t[n]);
9226
9265
  }), e;
9227
9266
  }
9228
- }, Mi = {
9267
+ }, Ni = {
9229
9268
  getMicrofrontendsInDom(e) {
9230
9269
  return [
9231
9270
  ...this.getMainMicrofrontends(e).map((e) => ({
@@ -9311,7 +9350,7 @@ var fi = {
9311
9350
  for (let e of G.modalContainer) e.iframeHandle?.iframe && n.push(e);
9312
9351
  return G.drawerContainer && G.drawerContainer.iframeHandle?.iframe && n.push(G.drawerContainer), n.length > 0 ? n : void 0;
9313
9352
  }
9314
- }, Ni = class {
9353
+ }, Pi = class {
9315
9354
  luigi;
9316
9355
  constructor(e) {
9317
9356
  this.luigi = e;
@@ -9329,7 +9368,7 @@ var fi = {
9329
9368
  return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getNavFooterContainer() || null;
9330
9369
  }
9331
9370
  getMicrofrontends() {
9332
- return Mi.getMicrofrontendsInDom(this.luigi);
9371
+ return Ni.getMicrofrontendsInDom(this.luigi);
9333
9372
  }
9334
9373
  getMicrofrontendIframes() {
9335
9374
  let e = this.luigi.getEngine()._connector?.getContainerWrapper(), t = [];
@@ -9345,11 +9384,11 @@ var fi = {
9345
9384
  for (let t of Array.from(e.children)) t.tagName?.startsWith("LUIGI-") && a.isElementVisible(t) && (t.iframeHandle?.iframe ? n = t.iframeHandle.iframe : r = t.shadowRoot?.firstElementChild?.firstElementChild ?? null);
9346
9385
  return t || n || r;
9347
9386
  }
9348
- }, Pi = { luigiAfterInit: async (e) => {
9387
+ }, Fi = { luigiAfterInit: async (e) => {
9349
9388
  a.getConfigBooleanValue(e.getConfig(), "settings.appLoadingIndicator.hideAutomatically") && setTimeout(() => {
9350
9389
  e.ux().hideAppLoadingIndicator();
9351
9390
  }, 0), await s.executeConfigFnAsync("lifecycleHooks.luigiAfterInit");
9352
- } }, Fi = class {
9391
+ } }, Ii = class {
9353
9392
  featureToggleList;
9354
9393
  constructor() {
9355
9394
  this.featureToggleList = /* @__PURE__ */ new Set();
@@ -9375,7 +9414,7 @@ var fi = {
9375
9414
  isDuplicatedOrDisabled(e) {
9376
9415
  return this.featureToggleList.has(e) ? (console.warn("Feature toggle name already exists"), !0) : this.featureToggleList.has(`!${e}`) ? (console.warn("Disabled feature toggle can not be activated"), !0) : !1;
9377
9416
  }
9378
- }, Ii = class {
9417
+ }, Li = class {
9379
9418
  luigi;
9380
9419
  isSearchFieldVisible = !1;
9381
9420
  isSearchResultVisible = !1;
@@ -9426,11 +9465,11 @@ var fi = {
9426
9465
  mi.toggleSearch(this.isSearchFieldVisible, this.searchProvider, e);
9427
9466
  }), e?.clearSearchField();
9428
9467
  }
9429
- }, Li = class {
9468
+ }, Ri = class {
9430
9469
  luigi;
9431
9470
  globalSearchService;
9432
9471
  constructor(e) {
9433
- this.luigi = e, this.globalSearchService = W.get(Ii);
9472
+ this.luigi = e, this.globalSearchService = W.get(Li);
9434
9473
  }
9435
9474
  openSearchField() {
9436
9475
  this.globalSearchService.hasSearchProvider() && (this.globalSearchService.setFieldVisibility(!0), this.luigi.getEngine()._connector?.getGlobalSearchHandler?.()?.openSearchField());
@@ -9456,7 +9495,7 @@ var fi = {
9456
9495
  setSearchInputPlaceholder(e) {
9457
9496
  this.globalSearchService.setSearchInputPlaceholder(e);
9458
9497
  }
9459
- }, Ri = class {
9498
+ }, zi = class {
9460
9499
  luigi;
9461
9500
  hashRouting = !1;
9462
9501
  navService;
@@ -9506,7 +9545,7 @@ var fi = {
9506
9545
  let r = e.replace(/\/\/+/g, "/");
9507
9546
  if (!await H.validatePathAndGetRedirect(r, this.luigi)) return;
9508
9547
  let i = await this.navService.getCurrentNode(r), a = t || {};
9509
- a.title ||= i?.label;
9548
+ a.title ||= i?.label, a.size ||= "l", a.closebtn_data_testid ||= `lui-modal-index-${this.modalService.getModalStackLength()}`;
9510
9549
  let o = a.nodeParams || this.options.nodeParams || {}, s = r;
9511
9550
  if (o && Object.keys(o).length > 0) {
9512
9551
  let e = U.getContentViewParamPrefix(this.luigi), t = Object.entries(o).map(([t, n]) => e + encodeURIComponent(t) + "=" + encodeURIComponent(n)).join("&");
@@ -9527,9 +9566,9 @@ var fi = {
9527
9566
  let i = await this.navService.getCurrentNode(r), a = t || {};
9528
9567
  if (!a.header?.title) {
9529
9568
  let e = await U.getNodeLabel(i, this.luigi) || "";
9530
- a.header ? a.header.title = e : a.header = { title: e };
9569
+ a.header && Object.keys(a.header).length ? a.header.title = e : a.header = { title: e };
9531
9570
  }
9532
- a.overlap === void 0 && (a.overlap = !0);
9571
+ a.overlap === void 0 && (a.overlap = !0), a.size ||= "s";
9533
9572
  let o = a.nodeParams || this.options.nodeParams || {};
9534
9573
  this.luigi.getEngine()._ui.openDrawer(this.luigi, i, a, n, {
9535
9574
  nodeParams: o,
@@ -9560,7 +9599,7 @@ var fi = {
9560
9599
  async updateTopNavigation() {
9561
9600
  this.luigi.configChanged("navigation");
9562
9601
  }
9563
- }, zi = class {
9602
+ }, Bi = class {
9564
9603
  luigi;
9565
9604
  constructor(e) {
9566
9605
  this.luigi = e;
@@ -9621,7 +9660,7 @@ var fi = {
9621
9660
  e = [...n.length > 2 ? n.slice(0, -1) : n, e].join("#"), window.history.pushState(null, "", e);
9622
9661
  } else window.location.hash = e;
9623
9662
  }
9624
- }, Bi = class {
9663
+ }, Vi = class {
9625
9664
  #e;
9626
9665
  #t = "";
9627
9666
  constructor(e) {
@@ -9678,7 +9717,7 @@ var fi = {
9678
9717
  }), t && t.useFioriScrollbars === !0 && document.body.classList.add("fioriScrollbars");
9679
9718
  })();
9680
9719
  }
9681
- }, Vi = new class {
9720
+ }, Hi = new class {
9682
9721
  processUserSettingGroups(e, t) {
9683
9722
  let n = [], r = e?.userSettingGroups, i = t?.userSettings?.userSettingGroups, o = r || i;
9684
9723
  if (a.isObject(o)) {
@@ -9704,7 +9743,7 @@ var fi = {
9704
9743
  for (let n = 0; n < t.length; n++) if (t[n].contentWindow === e) return t[n];
9705
9744
  return null;
9706
9745
  }
9707
- }(), Hi = class {
9746
+ }(), Ui = class {
9708
9747
  luigi;
9709
9748
  dirtyStatusService = W.get(gi);
9710
9749
  appLoadingIndicatorSelector = "[luigi-app-loading-indicator]";
@@ -9754,7 +9793,7 @@ var fi = {
9754
9793
  openUserSettings = async () => {
9755
9794
  let e = this.luigi.getConfigValue("userSettings");
9756
9795
  if (!e) return;
9757
- let t = this.luigi.getConfigValue("settings"), n = await this.luigi.readUserSettings(), r = Vi.processUserSettingGroups(e, t), i = e.userSettingsDialog || {}, a = i.dialogHeader || hi.userSettingsDialog.dialogHeader, o = i.saveBtn || hi.userSettingsDialog.saveBtn, s = i.dismissBtn || hi.userSettingsDialog.dismissBtn, c = {
9796
+ let t = this.luigi.getConfigValue("settings"), n = await this.luigi.readUserSettings(), r = Hi.processUserSettingGroups(e, t), i = e.userSettingsDialog || {}, a = i.dialogHeader || hi.userSettingsDialog.dialogHeader, o = i.saveBtn || hi.userSettingsDialog.saveBtn, s = i.dismissBtn || hi.userSettingsDialog.dismissBtn, c = {
9758
9797
  dialogHeader: this.luigi.i18n().getTranslation(a),
9759
9798
  saveBtn: this.luigi.i18n().getTranslation(o),
9760
9799
  dismissBtn: this.luigi.i18n().getTranslation(s)
@@ -9779,7 +9818,7 @@ var fi = {
9779
9818
  addBackdrop = () => this.luigi.getEngine()._connector?.addBackdrop();
9780
9819
  removeBackdrop = () => this.luigi.getEngine()._connector?.removeBackdrop();
9781
9820
  getDirtyStatus = () => this.dirtyStatusService.readDirtyStatus();
9782
- }, Ui = new class {
9821
+ }, Wi = new class {
9783
9822
  filterIdFromMessageObject(e) {
9784
9823
  let { id: t, ...n } = e;
9785
9824
  return {
@@ -9787,18 +9826,18 @@ var fi = {
9787
9826
  messageWithoutId: n
9788
9827
  };
9789
9828
  }
9790
- }(), Wi = class {
9829
+ }(), Gi = class {
9791
9830
  luigi;
9792
9831
  constructor(e) {
9793
9832
  this.luigi = e;
9794
9833
  }
9795
9834
  sendToAll(e) {
9796
- let t = Mi.getAllLuigiContainerIframe(this.luigi);
9835
+ let t = Ni.getAllLuigiContainerIframe(this.luigi);
9797
9836
  if (!t) {
9798
9837
  console.warn("No Luigi containers found to send the message to.");
9799
9838
  return;
9800
9839
  }
9801
- let { id: n, messageWithoutId: r } = Ui.filterIdFromMessageObject(e);
9840
+ let { id: n, messageWithoutId: r } = Wi.filterIdFromMessageObject(e);
9802
9841
  if (!n) {
9803
9842
  console.warn("Message object must contain an \"id\" property to specify the message type.");
9804
9843
  return;
@@ -9806,12 +9845,12 @@ var fi = {
9806
9845
  for (let e of t) e.sendCustomMessage ? e.sendCustomMessage(n, r) : console.warn("Container does not support sending custom messages:", e);
9807
9846
  }
9808
9847
  send(e, t) {
9809
- let n = Mi.getAllLuigiContainerIframe(this.luigi);
9848
+ let n = Ni.getAllLuigiContainerIframe(this.luigi);
9810
9849
  if (!n) {
9811
9850
  console.warn("No Luigi containers found to send the message to.");
9812
9851
  return;
9813
9852
  }
9814
- let { id: r, messageWithoutId: i } = Ui.filterIdFromMessageObject(t);
9853
+ let { id: r, messageWithoutId: i } = Wi.filterIdFromMessageObject(t);
9815
9854
  if (!r) {
9816
9855
  console.warn("Message object must contain an \"id\" property to specify the message type.");
9817
9856
  return;
@@ -9822,7 +9861,7 @@ var fi = {
9822
9861
  }
9823
9862
  console.warn(`No container found with microfrontend ID: ${e}`);
9824
9863
  }
9825
- }, Gi = class {
9864
+ }, Ki = class {
9826
9865
  engine;
9827
9866
  config;
9828
9867
  _customMessages;
@@ -9845,8 +9884,8 @@ var fi = {
9845
9884
  return this.engine;
9846
9885
  }
9847
9886
  setConfig = (e) => {
9848
- this.config = e, this.setConfigCallback(this.getConfigReadyCallback()), ki.init().then(() => {
9849
- this.engine.init(), this.initialized || (this.initialized = !0, Pi.luigiAfterInit(this));
9887
+ this.config = e, this.setConfigCallback(this.getConfigReadyCallback()), Ai.init().then(() => {
9888
+ this.engine.init(), this.initialized || (this.initialized = !0, Fi.luigiAfterInit(this));
9850
9889
  });
9851
9890
  };
9852
9891
  getConfig = () => this.config;
@@ -9900,17 +9939,17 @@ var fi = {
9900
9939
  this.unload(), this.setConfig(e);
9901
9940
  }
9902
9941
  unload() {
9903
- this.initialized = !1, window.Luigi._store.clear(), ki.unload(), xi.removeAllEventListeners(), this.getEngine()._connector?.unload(), this._i18n = void 0;
9904
- }
9905
- customMessages = () => (this._customMessages ||= new Wi(this), this._customMessages);
9906
- i18n = () => (this._i18n ||= new ji(this), this._i18n);
9907
- elements = () => (this._elements ||= new Ni(this), this._elements);
9908
- navigation = () => new Ri(this);
9909
- ux = () => new Hi(this);
9910
- featureToggles = () => (this._featureToggles ||= new Fi(), this._featureToggles);
9911
- globalSearch = () => (this._globalSearch ||= new Li(this), this._globalSearch);
9912
- routing = () => (this._routing ||= new zi(this), this._routing);
9913
- theming = () => (this._theming ||= new Bi(this), this._theming);
9942
+ this.initialized = !1, window.Luigi._store.clear(), Ai.unload(), xi.removeAllEventListeners(), this.getEngine()._connector?.unload(), this._i18n = void 0;
9943
+ }
9944
+ customMessages = () => (this._customMessages ||= new Gi(this), this._customMessages);
9945
+ i18n = () => (this._i18n ||= new Mi(this), this._i18n);
9946
+ elements = () => (this._elements ||= new Pi(this), this._elements);
9947
+ navigation = () => new zi(this);
9948
+ ux = () => new Ui(this);
9949
+ featureToggles = () => (this._featureToggles ||= new Ii(), this._featureToggles);
9950
+ globalSearch = () => (this._globalSearch ||= new Ri(this), this._globalSearch);
9951
+ routing = () => (this._routing ||= new Bi(this), this._routing);
9952
+ theming = () => (this._theming ||= new Vi(this), this._theming);
9914
9953
  auth = () => l;
9915
9954
  createConfigStore() {
9916
9955
  let e = r({}), t = {}, n = [];
@@ -9946,11 +9985,11 @@ var fi = {
9946
9985
  setConfigCallback(e) {
9947
9986
  this.configReadyCallback = e;
9948
9987
  }
9949
- }, Ki = Array.isArray, qi = Array.prototype.indexOf, Ji = Array.prototype.includes, Yi = Array.from, Xi = Object.defineProperty, Zi = Object.getOwnPropertyDescriptor, Qi = Object.prototype, $i = Array.prototype, ea = Object.getPrototypeOf, ta = Object.isExtensible, na = () => {};
9950
- function ra(e) {
9988
+ }, qi = Array.isArray, Ji = Array.prototype.indexOf, Yi = Array.prototype.includes, Xi = Array.from, Zi = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, $i = Object.prototype, ea = Array.prototype, ta = Object.getPrototypeOf, na = Object.isExtensible, ra = () => {};
9989
+ function ia(e) {
9951
9990
  for (var t = 0; t < e.length; t++) e[t]();
9952
9991
  }
9953
- function ia() {
9992
+ function aa() {
9954
9993
  var e, t;
9955
9994
  return {
9956
9995
  promise: new Promise((n, r) => {
@@ -9960,56 +9999,56 @@ function ia() {
9960
9999
  reject: t
9961
10000
  };
9962
10001
  }
9963
- var aa = 1024, oa = 2048, sa = 4096, ca = 8192, la = 16384, ua = 32768, da = 1 << 25, fa = 65536, pa = 1 << 19, ma = 1 << 20, ha = 65536, ga = 1 << 21, _a = 1 << 23, va = Symbol("$state"), ya = Symbol("attributes"), ba = Symbol("class"), xa = Symbol("style"), Sa = Symbol("text"), Ca = new class extends Error {
10002
+ var oa = 1024, sa = 2048, ca = 4096, la = 8192, ua = 16384, da = 32768, fa = 1 << 25, pa = 65536, ma = 1 << 19, ha = 1 << 20, ga = 65536, _a = 1 << 21, va = 1 << 23, ya = Symbol("$state"), ba = Symbol("attributes"), xa = Symbol("class"), Sa = Symbol("style"), Ca = Symbol("text"), wa = new class extends Error {
9964
10003
  name = "StaleReactionError";
9965
10004
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
9966
10005
  }();
9967
10006
  globalThis.document?.contentType;
9968
- function wa() {
10007
+ function Ta() {
9969
10008
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
9970
10009
  }
9971
- function Ta() {
10010
+ function Ea() {
9972
10011
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
9973
10012
  }
9974
- function Ea() {
10013
+ function Da() {
9975
10014
  throw Error("https://svelte.dev/e/state_prototype_fixed");
9976
10015
  }
9977
- function Da() {
10016
+ function Oa() {
9978
10017
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
9979
10018
  }
9980
- function Oa() {
10019
+ function K() {
9981
10020
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
9982
10021
  }
9983
10022
  //#endregion
9984
10023
  //#region node_modules/svelte/src/constants.js
9985
- var K = {}, ka = Symbol();
9986
- function Aa() {
10024
+ var ka = {}, Aa = Symbol();
10025
+ function ja() {
9987
10026
  console.warn("https://svelte.dev/e/derived_inert");
9988
10027
  }
9989
- function ja(e) {
10028
+ function Ma(e) {
9990
10029
  console.warn("https://svelte.dev/e/hydration_mismatch");
9991
10030
  }
9992
- function Ma() {
10031
+ function Na() {
9993
10032
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
9994
10033
  }
9995
10034
  //#endregion
9996
10035
  //#region node_modules/svelte/src/internal/client/dom/hydration.js
9997
- var Na = !1, Pa;
9998
- function Fa(e) {
9999
- if (e === null) throw ja(), K;
10000
- return Pa = e;
10036
+ var Pa = !1, Fa;
10037
+ function Ia(e) {
10038
+ if (e === null) throw Ma(), ka;
10039
+ return Fa = e;
10001
10040
  }
10002
- function Ia() {
10003
- return Fa(/* @__PURE__ */ Xo(Pa));
10041
+ function La() {
10042
+ return Ia(/* @__PURE__ */ J(Fa));
10004
10043
  }
10005
- function La(e = 1) {
10006
- if (Na) {
10007
- for (var t = e, n = Pa; t--;) n = /* @__PURE__ */ Xo(n);
10008
- Pa = n;
10044
+ function Ra(e = 1) {
10045
+ if (Pa) {
10046
+ for (var t = e, n = Fa; t--;) n = /* @__PURE__ */ J(n);
10047
+ Fa = n;
10009
10048
  }
10010
10049
  }
10011
- function Ra(e = !0) {
10012
- for (var t = 0, n = Pa;;) {
10050
+ function za(e = !0) {
10051
+ for (var t = 0, n = Fa;;) {
10013
10052
  if (n.nodeType === 8) {
10014
10053
  var r = n.data;
10015
10054
  if (r === "]") {
@@ -10017,77 +10056,77 @@ function Ra(e = !0) {
10017
10056
  --t;
10018
10057
  } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
10019
10058
  }
10020
- var i = /* @__PURE__ */ Xo(n);
10059
+ var i = /* @__PURE__ */ J(n);
10021
10060
  e && n.remove(), n = i;
10022
10061
  }
10023
10062
  }
10024
10063
  //#endregion
10025
10064
  //#region node_modules/svelte/src/internal/client/reactivity/equality.js
10026
- function za(e) {
10065
+ function Ba(e) {
10027
10066
  return e === this.v;
10028
10067
  }
10029
10068
  //#endregion
10030
10069
  //#region node_modules/svelte/src/internal/flags/index.js
10031
- var Ba = !1, Va = !1;
10032
- function Ha() {
10033
- Va = !0;
10070
+ var Va = !1, Ha = !1;
10071
+ function Ua() {
10072
+ Ha = !0;
10034
10073
  }
10035
10074
  //#endregion
10036
10075
  //#region node_modules/svelte/src/internal/client/context.js
10037
- var Ua = null;
10038
- function Wa(e) {
10039
- Ua = e;
10076
+ var Wa = null;
10077
+ function Ga(e) {
10078
+ Wa = e;
10040
10079
  }
10041
- function Ga(e, t = !1, n) {
10042
- Ua = {
10043
- p: Ua,
10080
+ function Ka(e, t = !1, n) {
10081
+ Wa = {
10082
+ p: Wa,
10044
10083
  i: !1,
10045
10084
  c: null,
10046
10085
  e: null,
10047
10086
  s: e,
10048
10087
  x: null,
10049
10088
  r: X,
10050
- l: Va && !t ? {
10089
+ l: Ha && !t ? {
10051
10090
  s: null,
10052
10091
  u: null,
10053
10092
  $: []
10054
10093
  } : null
10055
10094
  };
10056
10095
  }
10057
- function Ka(e) {
10058
- var t = Ua, n = t.e;
10096
+ function qa(e) {
10097
+ var t = Wa, n = t.e;
10059
10098
  if (n !== null) {
10060
10099
  t.e = null;
10061
- for (var r of n) es(r);
10100
+ for (var r of n) ts(r);
10062
10101
  }
10063
- return e !== void 0 && (t.x = e), t.i = !0, Ua = t.p, e ?? {};
10102
+ return e !== void 0 && (t.x = e), t.i = !0, Wa = t.p, e ?? {};
10064
10103
  }
10065
- function qa() {
10066
- return !Va || Ua !== null && Ua.l === null;
10104
+ function Ja() {
10105
+ return !Ha || Wa !== null && Wa.l === null;
10067
10106
  }
10068
10107
  //#endregion
10069
10108
  //#region node_modules/svelte/src/internal/client/dom/task.js
10070
- var Ja = [];
10071
- function Ya() {
10072
- var e = Ja;
10073
- Ja = [], ra(e);
10074
- }
10075
- function Xa(e) {
10076
- if (Ja.length === 0 && !uo) {
10077
- var t = Ja;
10109
+ var Ya = [];
10110
+ function Xa() {
10111
+ var e = Ya;
10112
+ Ya = [], ia(e);
10113
+ }
10114
+ function Za(e) {
10115
+ if (Ya.length === 0 && !fo) {
10116
+ var t = Ya;
10078
10117
  queueMicrotask(() => {
10079
- t === Ja && Ya();
10118
+ t === Ya && Xa();
10080
10119
  });
10081
10120
  }
10082
- Ja.push(e);
10121
+ Ya.push(e);
10083
10122
  }
10084
- function Za(e) {
10123
+ function Qa(e) {
10085
10124
  var t = X;
10086
- if (t === null) return Y.f |= _a, e;
10125
+ if (t === null) return Y.f |= va, e;
10087
10126
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
10088
- Qa(e, t);
10127
+ $a(e, t);
10089
10128
  }
10090
- function Qa(e, t) {
10129
+ function $a(e, t) {
10091
10130
  for (; t !== null;) {
10092
10131
  if (t.f & 128) {
10093
10132
  if (!(t.f & 32768)) throw e;
@@ -10104,25 +10143,25 @@ function Qa(e, t) {
10104
10143
  }
10105
10144
  //#endregion
10106
10145
  //#region node_modules/svelte/src/internal/client/reactivity/status.js
10107
- var $a = ~(oa | sa | aa);
10108
- function eo(e, t) {
10109
- e.f = e.f & $a | t;
10146
+ var eo = ~(sa | ca | oa);
10147
+ function to(e, t) {
10148
+ e.f = e.f & eo | t;
10110
10149
  }
10111
- function to(e) {
10112
- e.f & 512 || e.deps === null ? eo(e, aa) : eo(e, sa);
10150
+ function no(e) {
10151
+ e.f & 512 || e.deps === null ? to(e, oa) : to(e, ca);
10113
10152
  }
10114
10153
  //#endregion
10115
10154
  //#region node_modules/svelte/src/internal/client/reactivity/utils.js
10116
- function no(e) {
10117
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ha, no(t.deps));
10155
+ function ro(e) {
10156
+ if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ga, ro(t.deps));
10118
10157
  }
10119
- function ro(e, t, n) {
10120
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), no(e.deps), eo(e, aa);
10158
+ function io(e, t, n) {
10159
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), ro(e.deps), to(e, oa);
10121
10160
  }
10122
10161
  //#endregion
10123
10162
  //#region node_modules/svelte/src/internal/client/reactivity/store.js
10124
- var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo = !1, fo = !1, po = null, mo = null, ho = 0, go = 1, _o = class e {
10125
- id = go++;
10163
+ var ao = !1, oo = null, so = null, q = null, co = null, lo = null, uo = null, fo = !1, po = !1, mo = null, ho = null, go = 0, _o = 1, vo = class e {
10164
+ id = _o++;
10126
10165
  #e = !1;
10127
10166
  linked = !0;
10128
10167
  #t = null;
@@ -10169,31 +10208,31 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10169
10208
  var n = this.#p.get(e);
10170
10209
  if (n) {
10171
10210
  this.#p.delete(e);
10172
- for (var r of n.d) eo(r, oa), t(r);
10173
- for (r of n.m) eo(r, sa), t(r);
10211
+ for (var r of n.d) to(r, sa), t(r);
10212
+ for (r of n.m) to(r, ca), t(r);
10174
10213
  }
10175
10214
  this.#m.add(e);
10176
10215
  }
10177
10216
  #_() {
10178
- if (this.#e = !0, ho++ > 1e3 && (this.#w(), vo()), !this.#g()) {
10179
- for (let e of this.#d) this.#f.delete(e), eo(e, oa), this.schedule(e);
10180
- for (let e of this.#f) eo(e, sa), this.schedule(e);
10217
+ if (this.#e = !0, go++ > 1e3 && (this.#w(), yo()), !this.#g()) {
10218
+ for (let e of this.#d) this.#f.delete(e), to(e, sa), this.schedule(e);
10219
+ for (let e of this.#f) to(e, ca), this.schedule(e);
10181
10220
  }
10182
10221
  let t = this.#l;
10183
10222
  this.#l = [], this.apply();
10184
- var n = po = [], r = [], i = mo = [];
10223
+ var n = mo = [], r = [], i = ho = [];
10185
10224
  for (let e of t) try {
10186
10225
  this.#v(e, n, r);
10187
10226
  } catch (t) {
10188
- throw To(e), t;
10227
+ throw Eo(e), t;
10189
10228
  }
10190
10229
  if (q = null, i.length > 0) {
10191
10230
  var a = e.ensure();
10192
10231
  for (let e of i) a.schedule(e);
10193
10232
  }
10194
- if (po = null, mo = null, this.#g()) {
10233
+ if (mo = null, ho = null, this.#g()) {
10195
10234
  this.#x(r), this.#x(n);
10196
- for (let [e, t] of this.#p) wo(e, t);
10235
+ for (let [e, t] of this.#p) To(e, t);
10197
10236
  i.length > 0 && q.#_();
10198
10237
  return;
10199
10238
  }
@@ -10204,9 +10243,9 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10204
10243
  }
10205
10244
  this.#d.clear(), this.#f.clear();
10206
10245
  for (let e of this.#r) e(this);
10207
- this.#r.clear(), so = this, bo(r), bo(n), so = null, this.#c?.resolve();
10246
+ this.#r.clear(), co = this, xo(r), xo(n), co = null, this.#c?.resolve();
10208
10247
  var s = q;
10209
- if (this.linked && this.#o === 0 && this.#w(), Ba && !this.linked && (this.#S(), q = s), this.#l.length > 0) {
10248
+ if (this.linked && this.#o === 0 && this.#w(), Va && !this.linked && (this.#S(), q = s), this.#l.length > 0) {
10210
10249
  s === null && (s = this, this.#C());
10211
10250
  let e = s;
10212
10251
  e.#l.push(...this.#l.filter((t) => !e.#l.includes(t)));
@@ -10214,11 +10253,11 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10214
10253
  s !== null && s.#_();
10215
10254
  }
10216
10255
  #v(e, t, n) {
10217
- e.f ^= aa;
10256
+ e.f ^= oa;
10218
10257
  for (var r = e.first; r !== null;) {
10219
10258
  var i = r.f, a = (i & 96) != 0;
10220
10259
  if (!(a && i & 1024 || i & 8192 || this.#p.has(r)) && r.fn !== null) {
10221
- a ? r.f ^= aa : i & 4 ? t.push(r) : Ba && i & 16777224 ? n.push(r) : Ms(r) && (i & 16 && this.#f.add(r), Ls(r));
10260
+ a ? r.f ^= oa : i & 4 ? t.push(r) : Va && i & 16777224 ? n.push(r) : Ns(r) && (i & 16 && this.#f.add(r), Rs(r));
10222
10261
  var o = r.first;
10223
10262
  if (o !== null) {
10224
10263
  r = o;
@@ -10257,7 +10296,7 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10257
10296
  if (r & 2) t(e);
10258
10297
  else {
10259
10298
  var i = e;
10260
- r & 4194320 && !this.async_deriveds.has(i) && (this.#f.delete(i), eo(i, oa), this.schedule(i));
10299
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#f.delete(i), to(i, sa), this.schedule(i));
10261
10300
  }
10262
10301
  }
10263
10302
  };
@@ -10265,22 +10304,22 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10265
10304
  this.oncommit(() => e.discard()), e.#w(), q = this, this.#_();
10266
10305
  }
10267
10306
  #x(e) {
10268
- for (var t = 0; t < e.length; t += 1) ro(e[t], this.#d, this.#f);
10307
+ for (var t = 0; t < e.length; t += 1) io(e[t], this.#d, this.#f);
10269
10308
  }
10270
10309
  capture(e, t, n = !1) {
10271
- e.v !== ka && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), co?.set(e, t)), this.is_fork || (e.v = t);
10310
+ e.v !== Aa && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), lo?.set(e, t)), this.is_fork || (e.v = t);
10272
10311
  }
10273
10312
  activate() {
10274
10313
  q = this;
10275
10314
  }
10276
10315
  deactivate() {
10277
- q = null, co = null;
10316
+ q = null, lo = null;
10278
10317
  }
10279
10318
  flush() {
10280
10319
  try {
10281
- fo = !0, q = this, this.#_();
10320
+ po = !0, q = this, this.#_();
10282
10321
  } finally {
10283
- ho = 0, lo = null, po = null, mo = null, fo = !1, q = null, co = null, Io.clear();
10322
+ go = 0, uo = null, mo = null, ho = null, po = !1, q = null, lo = null, Lo.clear();
10284
10323
  }
10285
10324
  }
10286
10325
  discard() {
@@ -10292,7 +10331,7 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10292
10331
  }
10293
10332
  #S() {
10294
10333
  this.#w();
10295
- for (let l = ao; l !== null; l = l.#n) {
10334
+ for (let l = oo; l !== null; l = l.#n) {
10296
10335
  var e = l.id < this.id, t = [];
10297
10336
  for (let [r, [i, a]] of this.current) {
10298
10337
  if (l.current.has(r)) {
@@ -10315,10 +10354,10 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10315
10354
  });
10316
10355
  l.activate();
10317
10356
  var i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
10318
- for (var o of t) xo(o, r, i, a);
10357
+ for (var o of t) So(o, r, i, a);
10319
10358
  a = /* @__PURE__ */ new Map();
10320
10359
  var s = [...l.current.keys()].filter((e) => this.current.has(e) ? this.current.get(e)[0] !== e.v : !0);
10321
- if (s.length > 0) for (let e of this.#u) !(e.f & 155648) && So(e, s, a) && (e.f & 4194320 ? (eo(e, oa), l.schedule(e)) : l.#d.add(e));
10360
+ if (s.length > 0) for (let e of this.#u) !(e.f & 155648) && Co(e, s, a) && (e.f & 4194320 ? (to(e, sa), l.schedule(e)) : l.#d.add(e));
10322
10361
  if (l.#l.length > 0) {
10323
10362
  l.apply();
10324
10363
  for (var c of l.#l) l.#v(c, [], []);
@@ -10340,7 +10379,7 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10340
10379
  let e = this.#s.get(t) ?? 0;
10341
10380
  e === 1 ? this.#s.delete(t) : this.#s.set(t, e - 1);
10342
10381
  }
10343
- this.#h || (this.#h = !0, Xa(() => {
10382
+ this.#h || (this.#h = !0, Za(() => {
10344
10383
  this.#h = !1, this.linked && this.flush();
10345
10384
  }));
10346
10385
  }
@@ -10363,25 +10402,25 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10363
10402
  this.#a.clear();
10364
10403
  }
10365
10404
  settled() {
10366
- return (this.#c ??= ia()).promise;
10405
+ return (this.#c ??= aa()).promise;
10367
10406
  }
10368
10407
  static ensure() {
10369
10408
  if (q === null) {
10370
10409
  let t = q = new e();
10371
- t.#C(), !fo && !uo && Xa(() => {
10410
+ t.#C(), !po && !fo && Za(() => {
10372
10411
  t.#e || t.flush();
10373
10412
  });
10374
10413
  }
10375
10414
  return q;
10376
10415
  }
10377
10416
  apply() {
10378
- if (!Ba || !this.is_fork && this.#t === null && this.#n === null) {
10379
- co = null;
10417
+ if (!Va || !this.is_fork && this.#t === null && this.#n === null) {
10418
+ lo = null;
10380
10419
  return;
10381
10420
  }
10382
- co = /* @__PURE__ */ new Map();
10383
- for (let [e, [t]] of this.current) co.set(e, t);
10384
- for (let t = ao; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
10421
+ lo = /* @__PURE__ */ new Map();
10422
+ for (let [e, [t]] of this.current) lo.set(e, t);
10423
+ for (let t = oo; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
10385
10424
  var e = !1;
10386
10425
  if (t.id < this.id) {
10387
10426
  for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
@@ -10389,115 +10428,115 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10389
10428
  break;
10390
10429
  }
10391
10430
  }
10392
- if (!e) for (let [e, n] of t.previous) co.has(e) || co.set(e, n);
10431
+ if (!e) for (let [e, n] of t.previous) lo.has(e) || lo.set(e, n);
10393
10432
  }
10394
10433
  }
10395
10434
  schedule(e) {
10396
- if (lo = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
10435
+ if (uo = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
10397
10436
  e.b.defer_effect(e);
10398
10437
  return;
10399
10438
  }
10400
10439
  for (var t = e; t.parent !== null;) {
10401
10440
  t = t.parent;
10402
10441
  var n = t.f;
10403
- if (po !== null && t === X && (Ba || (Y === null || !(Y.f & 2)) && !io)) return;
10442
+ if (mo !== null && t === X && (Va || (Y === null || !(Y.f & 2)) && !ao)) return;
10404
10443
  if (n & 96) {
10405
10444
  if (!(n & 1024)) return;
10406
- t.f ^= aa;
10445
+ t.f ^= oa;
10407
10446
  }
10408
10447
  }
10409
10448
  this.#l.push(t);
10410
10449
  }
10411
10450
  #C() {
10412
- oo === null ? ao = oo = this : (oo.#n = this, this.#t = oo), oo = this;
10451
+ so === null ? oo = so = this : (so.#n = this, this.#t = so), so = this;
10413
10452
  }
10414
10453
  #w() {
10415
10454
  var e = this.#t, t = this.#n;
10416
- e === null ? ao = t : e.#n = t, t === null ? oo = e : t.#t = e, this.linked = !1;
10455
+ e === null ? oo = t : e.#n = t, t === null ? so = e : t.#t = e, this.linked = !1;
10417
10456
  }
10418
10457
  };
10419
- function vo() {
10458
+ function yo() {
10420
10459
  try {
10421
- wa();
10460
+ Ta();
10422
10461
  } catch (e) {
10423
- Qa(e, lo);
10462
+ $a(e, uo);
10424
10463
  }
10425
10464
  }
10426
- var yo = null;
10427
- function bo(e) {
10465
+ var bo = null;
10466
+ function xo(e) {
10428
10467
  var t = e.length;
10429
10468
  if (t !== 0) {
10430
10469
  for (var n = 0; n < t;) {
10431
10470
  var r = e[n++];
10432
- if (!(r.f & 24576) && Ms(r) && (yo = /* @__PURE__ */ new Set(), Ls(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && us(r), yo?.size > 0)) {
10433
- Io.clear();
10434
- for (let e of yo) {
10471
+ if (!(r.f & 24576) && Ns(r) && (bo = /* @__PURE__ */ new Set(), Rs(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && ds(r), bo?.size > 0)) {
10472
+ Lo.clear();
10473
+ for (let e of bo) {
10435
10474
  if (e.f & 24576) continue;
10436
10475
  let t = [e], n = e.parent;
10437
- for (; n !== null;) yo.has(n) && (yo.delete(n), t.push(n)), n = n.parent;
10476
+ for (; n !== null;) bo.has(n) && (bo.delete(n), t.push(n)), n = n.parent;
10438
10477
  for (let e = t.length - 1; e >= 0; e--) {
10439
10478
  let n = t[e];
10440
- n.f & 24576 || Ls(n);
10479
+ n.f & 24576 || Rs(n);
10441
10480
  }
10442
10481
  }
10443
- yo.clear();
10482
+ bo.clear();
10444
10483
  }
10445
10484
  }
10446
- yo = null;
10485
+ bo = null;
10447
10486
  }
10448
10487
  }
10449
- function xo(e, t, n, r) {
10488
+ function So(e, t, n, r) {
10450
10489
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
10451
10490
  let e = i.f;
10452
- e & 2 ? xo(i, t, n, r) : e & 4194320 && !(e & 2048) && So(i, t, r) && (eo(i, oa), Co(i));
10491
+ e & 2 ? So(i, t, n, r) : e & 4194320 && !(e & 2048) && Co(i, t, r) && (to(i, sa), wo(i));
10453
10492
  }
10454
10493
  }
10455
- function So(e, t, n) {
10494
+ function Co(e, t, n) {
10456
10495
  let r = n.get(e);
10457
10496
  if (r !== void 0) return r;
10458
10497
  if (e.deps !== null) for (let r of e.deps) {
10459
- if (Ji.call(t, r)) return !0;
10460
- if (r.f & 2 && So(r, t, n)) return n.set(r, !0), !0;
10498
+ if (Yi.call(t, r)) return !0;
10499
+ if (r.f & 2 && Co(r, t, n)) return n.set(r, !0), !0;
10461
10500
  }
10462
10501
  return n.set(e, !1), !1;
10463
10502
  }
10464
- function Co(e) {
10503
+ function wo(e) {
10465
10504
  q.schedule(e);
10466
10505
  }
10467
- function wo(e, t) {
10506
+ function To(e, t) {
10468
10507
  if (!(e.f & 32 && e.f & 1024)) {
10469
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), eo(e, aa);
10470
- for (var n = e.first; n !== null;) wo(n, t), n = n.next;
10508
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), to(e, oa);
10509
+ for (var n = e.first; n !== null;) To(n, t), n = n.next;
10471
10510
  }
10472
10511
  }
10473
- function To(e) {
10474
- eo(e, aa);
10475
- for (var t = e.first; t !== null;) To(t), t = t.next;
10512
+ function Eo(e) {
10513
+ to(e, oa);
10514
+ for (var t = e.first; t !== null;) Eo(t), t = t.next;
10476
10515
  }
10477
10516
  //#endregion
10478
10517
  //#region node_modules/svelte/src/reactivity/create-subscriber.js
10479
- function Eo(e) {
10480
- let t = 0, n = Ro(0), r;
10518
+ function Do(e) {
10519
+ let t = 0, n = zo(0), r;
10481
10520
  return () => {
10482
- $o() && (Rs(n), ns(() => (t === 0 && (r = Vs(() => e(() => Uo(n)))), t += 1, () => {
10483
- Xa(() => {
10484
- --t, t === 0 && (r?.(), r = void 0, Uo(n));
10521
+ es() && (zs(n), rs(() => (t === 0 && (r = Hs(() => e(() => Wo(n)))), t += 1, () => {
10522
+ Za(() => {
10523
+ --t, t === 0 && (r?.(), r = void 0, Wo(n));
10485
10524
  });
10486
10525
  })));
10487
10526
  };
10488
10527
  }
10489
10528
  //#endregion
10490
10529
  //#region node_modules/svelte/src/internal/client/dom/blocks/boundary.js
10491
- var Do = fa | pa;
10492
- function Oo(e, t, n, r) {
10493
- new ko(e, t, n, r);
10530
+ var Oo = pa | ma;
10531
+ function ko(e, t, n, r) {
10532
+ new Ao(e, t, n, r);
10494
10533
  }
10495
- var ko = class {
10534
+ var Ao = class {
10496
10535
  parent;
10497
10536
  is_pending = !1;
10498
10537
  transform_error;
10499
10538
  #e;
10500
- #t = Na ? Pa : null;
10539
+ #t = Pa ? Fa : null;
10501
10540
  #n;
10502
10541
  #r;
10503
10542
  #i;
@@ -10511,56 +10550,56 @@ var ko = class {
10511
10550
  #f = /* @__PURE__ */ new Set();
10512
10551
  #p = /* @__PURE__ */ new Set();
10513
10552
  #m = null;
10514
- #h = Eo(() => (this.#m = Ro(this.#l), () => {
10553
+ #h = Do(() => (this.#m = zo(this.#l), () => {
10515
10554
  this.#m = null;
10516
10555
  }));
10517
10556
  constructor(e, t, n, r) {
10518
10557
  this.#e = e, this.#n = t, this.#r = (e) => {
10519
10558
  var t = X;
10520
10559
  t.b = this, t.f |= 128, n(e);
10521
- }, this.parent = X.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = rs(() => {
10522
- if (Na) {
10560
+ }, this.parent = X.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = is(() => {
10561
+ if (Pa) {
10523
10562
  let e = this.#t;
10524
- Ia();
10563
+ La();
10525
10564
  let t = e.data === "[!";
10526
10565
  if (e.data.startsWith("[?")) {
10527
10566
  let t = JSON.parse(e.data.slice(2));
10528
10567
  this.#_(t);
10529
10568
  } else t ? this.#v() : this.#g();
10530
10569
  } else this.#y();
10531
- }, Do), Na && (this.#e = Pa);
10570
+ }, Oo), Pa && (this.#e = Fa);
10532
10571
  }
10533
10572
  #g() {
10534
10573
  try {
10535
- this.#a = is(() => this.#r(this.#e));
10574
+ this.#a = as(() => this.#r(this.#e));
10536
10575
  } catch (e) {
10537
10576
  this.error(e);
10538
10577
  }
10539
10578
  }
10540
10579
  #_(e) {
10541
10580
  let t = this.#n.failed;
10542
- t && (this.#s = is(() => {
10581
+ t && (this.#s = as(() => {
10543
10582
  t(this.#e, () => e, () => () => {});
10544
10583
  }));
10545
10584
  }
10546
10585
  #v() {
10547
10586
  let e = this.#n.pending;
10548
- e && (this.is_pending = !0, this.#o = is(() => e(this.#e)), Xa(() => {
10549
- var e = this.#c = document.createDocumentFragment(), t = Yo();
10550
- e.append(t), this.#a = this.#x(() => is(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, ds(this.#o, () => {
10587
+ e && (this.is_pending = !0, this.#o = as(() => e(this.#e)), Za(() => {
10588
+ var e = this.#c = document.createDocumentFragment(), t = Xo();
10589
+ e.append(t), this.#a = this.#x(() => as(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, fs(this.#o, () => {
10551
10590
  this.#o = null;
10552
10591
  }), this.#b(q));
10553
10592
  }));
10554
10593
  }
10555
10594
  #y() {
10556
10595
  try {
10557
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = is(() => {
10596
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = as(() => {
10558
10597
  this.#r(this.#e);
10559
10598
  }), this.#u > 0) {
10560
10599
  var e = this.#c = document.createDocumentFragment();
10561
- ps(this.#a, e);
10600
+ ms(this.#a, e);
10562
10601
  let t = this.#n.pending;
10563
- this.#o = is(() => t(this.#e));
10602
+ this.#o = as(() => t(this.#e));
10564
10603
  } else this.#b(q);
10565
10604
  } catch (e) {
10566
10605
  this.error(e);
@@ -10570,7 +10609,7 @@ var ko = class {
10570
10609
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
10571
10610
  }
10572
10611
  defer_effect(e) {
10573
- ro(e, this.#f, this.#p);
10612
+ io(e, this.#f, this.#p);
10574
10613
  }
10575
10614
  is_rendered() {
10576
10615
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -10579,14 +10618,14 @@ var ko = class {
10579
10618
  return !!this.#n.pending;
10580
10619
  }
10581
10620
  #x(e) {
10582
- var t = X, n = Y, r = Ua;
10583
- bs(this.#i), ys(this.#i), Wa(this.#i.ctx);
10621
+ var t = X, n = Y, r = Wa;
10622
+ xs(this.#i), bs(this.#i), Ga(this.#i.ctx);
10584
10623
  try {
10585
- return _o.ensure(), e();
10624
+ return vo.ensure(), e();
10586
10625
  } catch (e) {
10587
- return Za(e), null;
10626
+ return Qa(e), null;
10588
10627
  } finally {
10589
- bs(t), ys(n), Wa(r);
10628
+ xs(t), bs(n), Ga(r);
10590
10629
  }
10591
10630
  }
10592
10631
  #S(e, t) {
@@ -10594,17 +10633,17 @@ var ko = class {
10594
10633
  this.parent && this.parent.#S(e, t);
10595
10634
  return;
10596
10635
  }
10597
- this.#u += e, this.#u === 0 && (this.#b(t), this.#o && ds(this.#o, () => {
10636
+ this.#u += e, this.#u === 0 && (this.#b(t), this.#o && fs(this.#o, () => {
10598
10637
  this.#o = null;
10599
10638
  }), this.#c &&= (this.#e.before(this.#c), null));
10600
10639
  }
10601
10640
  update_pending_count(e, t) {
10602
- this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Xa(() => {
10603
- this.#d = !1, this.#m && Vo(this.#m, this.#l);
10641
+ this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Za(() => {
10642
+ this.#d = !1, this.#m && Ho(this.#m, this.#l);
10604
10643
  }));
10605
10644
  }
10606
10645
  get_effect_pending() {
10607
- return this.#h(), Rs(this.#m);
10646
+ return this.#h(), zs(this.#m);
10608
10647
  }
10609
10648
  error(e) {
10610
10649
  if (!this.#n.onerror && !this.#n.failed) throw e;
@@ -10613,16 +10652,16 @@ var ko = class {
10613
10652
  })) : this.#C(e);
10614
10653
  }
10615
10654
  #C(e) {
10616
- this.#a &&= (cs(this.#a), null), this.#o &&= (cs(this.#o), null), this.#s &&= (cs(this.#s), null), Na && (Fa(this.#t), La(), Fa(Ra()));
10655
+ this.#a &&= (ls(this.#a), null), this.#o &&= (ls(this.#o), null), this.#s &&= (ls(this.#s), null), Pa && (Ia(this.#t), Ra(), Ia(za()));
10617
10656
  var t = this.#n.onerror;
10618
10657
  let n = this.#n.failed;
10619
10658
  var r = !1, i = !1;
10620
10659
  let a = () => {
10621
10660
  if (r) {
10622
- Ma();
10661
+ Na();
10623
10662
  return;
10624
10663
  }
10625
- r = !0, i && Oa(), this.#s !== null && ds(this.#s, () => {
10664
+ r = !0, i && K(), this.#s !== null && fs(this.#s, () => {
10626
10665
  this.#s = null;
10627
10666
  }), this.#x(() => {
10628
10667
  this.#y();
@@ -10631,166 +10670,166 @@ var ko = class {
10631
10670
  try {
10632
10671
  i = !0, t?.(e, a), i = !1;
10633
10672
  } catch (e) {
10634
- Qa(e, this.#i && this.#i.parent);
10673
+ $a(e, this.#i && this.#i.parent);
10635
10674
  }
10636
10675
  n && (this.#s = this.#x(() => {
10637
10676
  try {
10638
- return is(() => {
10677
+ return as(() => {
10639
10678
  var t = X;
10640
10679
  t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
10641
10680
  });
10642
10681
  } catch (e) {
10643
- return Qa(e, this.#i.parent), null;
10682
+ return $a(e, this.#i.parent), null;
10644
10683
  }
10645
10684
  }));
10646
10685
  };
10647
- Xa(() => {
10686
+ Za(() => {
10648
10687
  var t;
10649
10688
  try {
10650
10689
  t = this.transform_error(e);
10651
10690
  } catch (e) {
10652
- Qa(e, this.#i && this.#i.parent);
10691
+ $a(e, this.#i && this.#i.parent);
10653
10692
  return;
10654
10693
  }
10655
- typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => Qa(e, this.#i && this.#i.parent)) : o(t);
10694
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => $a(e, this.#i && this.#i.parent)) : o(t);
10656
10695
  });
10657
10696
  }
10658
10697
  };
10659
- function Ao(e) {
10698
+ function jo(e) {
10660
10699
  var t = e.effects;
10661
10700
  if (t !== null) {
10662
10701
  e.effects = null;
10663
- for (var n = 0; n < t.length; n += 1) cs(t[n]);
10702
+ for (var n = 0; n < t.length; n += 1) ls(t[n]);
10664
10703
  }
10665
10704
  }
10666
- function jo(e) {
10705
+ function Mo(e) {
10667
10706
  var t, n = X, r = e.parent;
10668
- if (!gs && r !== null && r.f & 24576) return Aa(), e.v;
10669
- bs(r);
10707
+ if (!_s && r !== null && r.f & 24576) return ja(), e.v;
10708
+ xs(r);
10670
10709
  try {
10671
- e.f &= ~ha, Ao(e), t = Ps(e);
10710
+ e.f &= ~ga, jo(e), t = Fs(e);
10672
10711
  } finally {
10673
- bs(n);
10712
+ xs(n);
10674
10713
  }
10675
10714
  return t;
10676
10715
  }
10677
- function Mo(e) {
10678
- var t = jo(e);
10679
- if (!e.equals(t) && (e.wv = js(), (!q?.is_fork || e.deps === null) && (q === null ? e.v = t : (q.capture(e, t, !0), so?.capture(e, t, !0)), e.deps === null))) {
10680
- eo(e, aa);
10716
+ function No(e) {
10717
+ var t = Mo(e);
10718
+ if (!e.equals(t) && (e.wv = Ms(), (!q?.is_fork || e.deps === null) && (q === null ? e.v = t : (q.capture(e, t, !0), co?.capture(e, t, !0)), e.deps === null))) {
10719
+ to(e, oa);
10681
10720
  return;
10682
10721
  }
10683
- gs || (co === null ? to(e) : ($o() || q?.is_fork) && co.set(e, t));
10684
- }
10685
- function No(e) {
10686
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ca), t.teardown = na, t.ac = null, Is(t, 0), os(t));
10722
+ _s || (lo === null ? no(e) : (es() || q?.is_fork) && lo.set(e, t));
10687
10723
  }
10688
10724
  function Po(e) {
10689
- if (e.effects !== null) for (let t of e.effects) t.teardown && Ls(t);
10725
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(wa), t.teardown = ra, t.ac = null, Ls(t, 0), ss(t));
10726
+ }
10727
+ function Fo(e) {
10728
+ if (e.effects !== null) for (let t of e.effects) t.teardown && Rs(t);
10690
10729
  }
10691
10730
  //#endregion
10692
10731
  //#region node_modules/svelte/src/internal/client/reactivity/sources.js
10693
- var Fo = /* @__PURE__ */ new Set(), Io = /* @__PURE__ */ new Map(), Lo = !1;
10694
- function Ro(e, t) {
10732
+ var Io = /* @__PURE__ */ new Set(), Lo = /* @__PURE__ */ new Map(), Ro = !1;
10733
+ function zo(e, t) {
10695
10734
  return {
10696
10735
  f: 0,
10697
10736
  v: e,
10698
10737
  reactions: null,
10699
- equals: za,
10738
+ equals: Ba,
10700
10739
  rv: 0,
10701
10740
  wv: 0
10702
10741
  };
10703
10742
  }
10704
10743
  /*#__NO_SIDE_EFFECTS__*/
10705
- function zo(e, t) {
10706
- let n = Ro(e, t);
10707
- return Ss(n), n;
10744
+ function Bo(e, t) {
10745
+ let n = zo(e, t);
10746
+ return Cs(n), n;
10708
10747
  }
10709
- function Bo(e, t, n = !1) {
10710
- return Y !== null && (!vs || Y.f & 131072) && qa() && Y.f & 4325394 && (xs === null || !Ji.call(xs, e)) && Da(), Vo(e, n ? Go(t) : t, mo);
10748
+ function Vo(e, t, n = !1) {
10749
+ return Y !== null && (!ys || Y.f & 131072) && Ja() && Y.f & 4325394 && (Ss === null || !Yi.call(Ss, e)) && Oa(), Ho(e, n ? Ko(t) : t, ho);
10711
10750
  }
10712
- function Vo(e, t, n = null) {
10751
+ function Ho(e, t, n = null) {
10713
10752
  if (!e.equals(t)) {
10714
- Io.set(e, gs ? t : e.v);
10715
- var r = _o.ensure();
10753
+ Lo.set(e, _s ? t : e.v);
10754
+ var r = vo.ensure();
10716
10755
  if (r.capture(e, t), e.f & 2) {
10717
10756
  let t = e;
10718
- e.f & 2048 && jo(t), co === null && to(t);
10757
+ e.f & 2048 && Mo(t), lo === null && no(t);
10719
10758
  }
10720
- e.wv = js(), Wo(e, oa, n), qa() && X !== null && X.f & 1024 && !(X.f & 96) && (Ts === null ? Es([e]) : Ts.push(e)), !r.is_fork && Fo.size > 0 && !Lo && Ho();
10759
+ e.wv = Ms(), Go(e, sa, n), Ja() && X !== null && X.f & 1024 && !(X.f & 96) && (Es === null ? Ds([e]) : Es.push(e)), !r.is_fork && Io.size > 0 && !Ro && Uo();
10721
10760
  }
10722
10761
  return t;
10723
10762
  }
10724
- function Ho() {
10725
- Lo = !1;
10726
- for (let e of Fo) {
10727
- e.f & 1024 && eo(e, sa);
10763
+ function Uo() {
10764
+ Ro = !1;
10765
+ for (let e of Io) {
10766
+ e.f & 1024 && to(e, ca);
10728
10767
  let t;
10729
10768
  try {
10730
- t = Ms(e);
10769
+ t = Ns(e);
10731
10770
  } catch {
10732
10771
  t = !0;
10733
10772
  }
10734
- t && Ls(e);
10773
+ t && Rs(e);
10735
10774
  }
10736
- Fo.clear();
10775
+ Io.clear();
10737
10776
  }
10738
- function Uo(e) {
10739
- Bo(e, e.v + 1);
10777
+ function Wo(e) {
10778
+ Vo(e, e.v + 1);
10740
10779
  }
10741
- function Wo(e, t, n) {
10780
+ function Go(e, t, n) {
10742
10781
  var r = e.reactions;
10743
- if (r !== null) for (var i = qa(), a = r.length, o = 0; o < a; o++) {
10782
+ if (r !== null) for (var i = Ja(), a = r.length, o = 0; o < a; o++) {
10744
10783
  var s = r[o], c = s.f;
10745
10784
  if (!(!i && s === X)) {
10746
- var l = (c & oa) === 0;
10747
- if (l && eo(s, t), c & 131072) Fo.add(s);
10785
+ var l = (c & sa) === 0;
10786
+ if (l && to(s, t), c & 131072) Io.add(s);
10748
10787
  else if (c & 2) {
10749
10788
  var u = s;
10750
- co?.delete(u), c & 65536 || (c & 512 && (X === null || !(X.f & 2097152)) && (s.f |= ha), Wo(u, sa, n));
10789
+ lo?.delete(u), c & 65536 || (c & 512 && (X === null || !(X.f & 2097152)) && (s.f |= ga), Go(u, ca, n));
10751
10790
  } else if (l) {
10752
10791
  var d = s;
10753
- c & 16 && yo !== null && yo.add(d), n === null ? Co(d) : n.push(d);
10792
+ c & 16 && bo !== null && bo.add(d), n === null ? wo(d) : n.push(d);
10754
10793
  }
10755
10794
  }
10756
10795
  }
10757
10796
  }
10758
- function Go(e) {
10759
- if (typeof e != "object" || !e || va in e) return e;
10760
- let t = ea(e);
10761
- if (t !== Qi && t !== $i) return e;
10762
- var n = /* @__PURE__ */ new Map(), r = Ki(e), i = /* @__PURE__ */ zo(0), a = null, o = ks, s = (e) => {
10763
- if (ks === o) return e();
10764
- var t = Y, n = ks;
10765
- ys(null), As(o);
10797
+ function Ko(e) {
10798
+ if (typeof e != "object" || !e || ya in e) return e;
10799
+ let t = ta(e);
10800
+ if (t !== $i && t !== ea) return e;
10801
+ var n = /* @__PURE__ */ new Map(), r = qi(e), i = /* @__PURE__ */ Bo(0), a = null, o = As, s = (e) => {
10802
+ if (As === o) return e();
10803
+ var t = Y, n = As;
10804
+ bs(null), js(o);
10766
10805
  var r = e();
10767
- return ys(t), As(n), r;
10806
+ return bs(t), js(n), r;
10768
10807
  };
10769
- return r && n.set("length", /* @__PURE__ */ zo(e.length, a)), new Proxy(e, {
10808
+ return r && n.set("length", /* @__PURE__ */ Bo(e.length, a)), new Proxy(e, {
10770
10809
  defineProperty(e, t, r) {
10771
- (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Ta();
10810
+ (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Ea();
10772
10811
  var i = n.get(t);
10773
10812
  return i === void 0 ? s(() => {
10774
- var e = /* @__PURE__ */ zo(r.value, a);
10813
+ var e = /* @__PURE__ */ Bo(r.value, a);
10775
10814
  return n.set(t, e), e;
10776
- }) : Bo(i, r.value, !0), !0;
10815
+ }) : Vo(i, r.value, !0), !0;
10777
10816
  },
10778
10817
  deleteProperty(e, t) {
10779
10818
  var r = n.get(t);
10780
10819
  if (r === void 0) {
10781
10820
  if (t in e) {
10782
- let e = s(() => /* @__PURE__ */ zo(ka, a));
10783
- n.set(t, e), Uo(i);
10821
+ let e = s(() => /* @__PURE__ */ Bo(Aa, a));
10822
+ n.set(t, e), Wo(i);
10784
10823
  }
10785
- } else Bo(r, ka), Uo(i);
10824
+ } else Vo(r, Aa), Wo(i);
10786
10825
  return !0;
10787
10826
  },
10788
10827
  get(t, r, i) {
10789
- if (r === va) return e;
10828
+ if (r === ya) return e;
10790
10829
  var o = n.get(r), c = r in t;
10791
- if (o === void 0 && (!c || Zi(t, r)?.writable) && (o = s(() => /* @__PURE__ */ zo(Go(c ? t[r] : ka), a)), n.set(r, o)), o !== void 0) {
10792
- var l = Rs(o);
10793
- return l === ka ? void 0 : l;
10830
+ if (o === void 0 && (!c || Qi(t, r)?.writable) && (o = s(() => /* @__PURE__ */ Bo(Ko(c ? t[r] : Aa), a)), n.set(r, o)), o !== void 0) {
10831
+ var l = zs(o);
10832
+ return l === Aa ? void 0 : l;
10794
10833
  }
10795
10834
  return Reflect.get(t, r, i);
10796
10835
  },
@@ -10798,10 +10837,10 @@ function Go(e) {
10798
10837
  var r = Reflect.getOwnPropertyDescriptor(e, t);
10799
10838
  if (r && "value" in r) {
10800
10839
  var i = n.get(t);
10801
- i && (r.value = Rs(i));
10840
+ i && (r.value = zs(i));
10802
10841
  } else if (r === void 0) {
10803
10842
  var a = n.get(t), o = a?.v;
10804
- if (a !== void 0 && o !== ka) return {
10843
+ if (a !== void 0 && o !== Aa) return {
10805
10844
  enumerable: !0,
10806
10845
  configurable: !0,
10807
10846
  value: o,
@@ -10811,43 +10850,43 @@ function Go(e) {
10811
10850
  return r;
10812
10851
  },
10813
10852
  has(e, t) {
10814
- if (t === va) return !0;
10815
- var r = n.get(t), i = r !== void 0 && r.v !== ka || Reflect.has(e, t);
10816
- return (r !== void 0 || X !== null && (!i || Zi(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ zo(i ? Go(e[t]) : ka, a)), n.set(t, r)), Rs(r) === ka) ? !1 : i;
10853
+ if (t === ya) return !0;
10854
+ var r = n.get(t), i = r !== void 0 && r.v !== Aa || Reflect.has(e, t);
10855
+ return (r !== void 0 || X !== null && (!i || Qi(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ Bo(i ? Ko(e[t]) : Aa, a)), n.set(t, r)), zs(r) === Aa) ? !1 : i;
10817
10856
  },
10818
10857
  set(e, t, o, c) {
10819
10858
  var l = n.get(t), u = t in e;
10820
10859
  if (r && t === "length") for (var d = o; d < l.v; d += 1) {
10821
10860
  var f = n.get(d + "");
10822
- f === void 0 ? d in e && (f = s(() => /* @__PURE__ */ zo(ka, a)), n.set(d + "", f)) : Bo(f, ka);
10861
+ f === void 0 ? d in e && (f = s(() => /* @__PURE__ */ Bo(Aa, a)), n.set(d + "", f)) : Vo(f, Aa);
10823
10862
  }
10824
- if (l === void 0) (!u || Zi(e, t)?.writable) && (l = s(() => /* @__PURE__ */ zo(void 0, a)), Bo(l, Go(o)), n.set(t, l));
10863
+ if (l === void 0) (!u || Qi(e, t)?.writable) && (l = s(() => /* @__PURE__ */ Bo(void 0, a)), Vo(l, Ko(o)), n.set(t, l));
10825
10864
  else {
10826
- u = l.v !== ka;
10827
- var p = s(() => Go(o));
10828
- Bo(l, p);
10865
+ u = l.v !== Aa;
10866
+ var p = s(() => Ko(o));
10867
+ Vo(l, p);
10829
10868
  }
10830
10869
  var m = Reflect.getOwnPropertyDescriptor(e, t);
10831
10870
  if (m?.set && m.set.call(c, o), !u) {
10832
10871
  if (r && typeof t == "string") {
10833
10872
  var h = n.get("length"), g = Number(t);
10834
- Number.isInteger(g) && g >= h.v && Bo(h, g + 1);
10873
+ Number.isInteger(g) && g >= h.v && Vo(h, g + 1);
10835
10874
  }
10836
- Uo(i);
10875
+ Wo(i);
10837
10876
  }
10838
10877
  return !0;
10839
10878
  },
10840
10879
  ownKeys(e) {
10841
- Rs(i);
10880
+ zs(i);
10842
10881
  var t = Reflect.ownKeys(e).filter((e) => {
10843
10882
  var t = n.get(e);
10844
- return t === void 0 || t.v !== ka;
10883
+ return t === void 0 || t.v !== Aa;
10845
10884
  });
10846
- for (var [r, a] of n) a.v !== ka && !(r in e) && t.push(r);
10885
+ for (var [r, a] of n) a.v !== Aa && !(r in e) && t.push(r);
10847
10886
  return t;
10848
10887
  },
10849
10888
  setPrototypeOf() {
10850
- Ea();
10889
+ Da();
10851
10890
  }
10852
10891
  });
10853
10892
  }
@@ -10862,46 +10901,46 @@ new Set([
10862
10901
  "splice",
10863
10902
  "unshift"
10864
10903
  ]);
10865
- var Ko, qo;
10866
- function Jo() {
10867
- if (Ko === void 0) {
10868
- Ko = window, /Firefox/.test(navigator.userAgent);
10904
+ var qo, Jo;
10905
+ function Yo() {
10906
+ if (qo === void 0) {
10907
+ qo = window, /Firefox/.test(navigator.userAgent);
10869
10908
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
10870
- Zi(t, "firstChild").get, qo = Zi(t, "nextSibling").get, ta(e) && (e[ba] = void 0, e[ya] = null, e[xa] = void 0, e.__e = void 0), ta(n) && (n[Sa] = void 0);
10909
+ Qi(t, "firstChild").get, Jo = Qi(t, "nextSibling").get, na(e) && (e[xa] = void 0, e[ba] = null, e[Sa] = void 0, e.__e = void 0), na(n) && (n[Ca] = void 0);
10871
10910
  }
10872
10911
  }
10873
- function Yo(e = "") {
10912
+ function Xo(e = "") {
10874
10913
  return document.createTextNode(e);
10875
10914
  }
10876
10915
  /*@__NO_SIDE_EFFECTS__*/
10877
- function Xo(e) {
10878
- return qo.call(e);
10916
+ function J(e) {
10917
+ return Jo.call(e);
10879
10918
  }
10880
10919
  //#endregion
10881
10920
  //#region node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
10882
- function J(e) {
10921
+ function Zo(e) {
10883
10922
  var t = Y, n = X;
10884
- ys(null), bs(null);
10923
+ bs(null), xs(null);
10885
10924
  try {
10886
10925
  return e();
10887
10926
  } finally {
10888
- ys(t), bs(n);
10927
+ bs(t), xs(n);
10889
10928
  }
10890
10929
  }
10891
10930
  //#endregion
10892
10931
  //#region node_modules/svelte/src/internal/client/reactivity/effects.js
10893
- function Zo(e, t) {
10932
+ function Qo(e, t) {
10894
10933
  var n = t.last;
10895
10934
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
10896
10935
  }
10897
- function Qo(e, t) {
10936
+ function $o(e, t) {
10898
10937
  var n = X;
10899
- n !== null && n.f & 8192 && (e |= ca);
10938
+ n !== null && n.f & 8192 && (e |= la);
10900
10939
  var r = {
10901
- ctx: Ua,
10940
+ ctx: Wa,
10902
10941
  deps: null,
10903
10942
  nodes: null,
10904
- f: e | oa | 512,
10943
+ f: e | sa | 512,
10905
10944
  first: null,
10906
10945
  fn: t,
10907
10946
  last: null,
@@ -10915,293 +10954,293 @@ function Qo(e, t) {
10915
10954
  };
10916
10955
  q?.register_created_effect(r);
10917
10956
  var i = r;
10918
- if (e & 4) po === null ? _o.ensure().schedule(r) : po.push(r);
10957
+ if (e & 4) mo === null ? vo.ensure().schedule(r) : mo.push(r);
10919
10958
  else if (t !== null) {
10920
10959
  try {
10921
- Ls(r);
10960
+ Rs(r);
10922
10961
  } catch (e) {
10923
- throw cs(r), e;
10962
+ throw ls(r), e;
10924
10963
  }
10925
- i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= fa));
10964
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= pa));
10926
10965
  }
10927
- if (i !== null && (i.parent = n, n !== null && Zo(i, n), Y !== null && Y.f & 2 && !(e & 64))) {
10966
+ if (i !== null && (i.parent = n, n !== null && Qo(i, n), Y !== null && Y.f & 2 && !(e & 64))) {
10928
10967
  var a = Y;
10929
10968
  (a.effects ??= []).push(i);
10930
10969
  }
10931
10970
  return r;
10932
10971
  }
10933
- function $o() {
10934
- return Y !== null && !vs;
10935
- }
10936
- function es(e) {
10937
- return Qo(4 | ma, e);
10972
+ function es() {
10973
+ return Y !== null && !ys;
10938
10974
  }
10939
10975
  function ts(e) {
10940
- _o.ensure();
10941
- let t = Qo(64 | pa, e);
10976
+ return $o(4 | ha, e);
10977
+ }
10978
+ function ns(e) {
10979
+ vo.ensure();
10980
+ let t = $o(64 | ma, e);
10942
10981
  return (e = {}) => new Promise((n) => {
10943
- e.outro ? ds(t, () => {
10944
- cs(t), n(void 0);
10945
- }) : (cs(t), n(void 0));
10982
+ e.outro ? fs(t, () => {
10983
+ ls(t), n(void 0);
10984
+ }) : (ls(t), n(void 0));
10946
10985
  });
10947
10986
  }
10948
- function ns(e, t = 0) {
10949
- return Qo(8 | t, e);
10950
- }
10951
10987
  function rs(e, t = 0) {
10952
- return Qo(16 | t, e);
10988
+ return $o(8 | t, e);
10953
10989
  }
10954
- function is(e) {
10955
- return Qo(32 | pa, e);
10990
+ function is(e, t = 0) {
10991
+ return $o(16 | t, e);
10956
10992
  }
10957
10993
  function as(e) {
10994
+ return $o(32 | ma, e);
10995
+ }
10996
+ function os(e) {
10958
10997
  var t = e.teardown;
10959
10998
  if (t !== null) {
10960
- let e = gs, n = Y;
10961
- _s(!0), ys(null);
10999
+ let e = _s, n = Y;
11000
+ vs(!0), bs(null);
10962
11001
  try {
10963
11002
  t.call(null);
10964
11003
  } finally {
10965
- _s(e), ys(n);
11004
+ vs(e), bs(n);
10966
11005
  }
10967
11006
  }
10968
11007
  }
10969
- function os(e, t = !1) {
11008
+ function ss(e, t = !1) {
10970
11009
  var n = e.first;
10971
11010
  for (e.first = e.last = null; n !== null;) {
10972
11011
  let e = n.ac;
10973
- e !== null && J(() => {
10974
- e.abort(Ca);
11012
+ e !== null && Zo(() => {
11013
+ e.abort(wa);
10975
11014
  });
10976
11015
  var r = n.next;
10977
- n.f & 64 ? n.parent = null : cs(n, t), n = r;
11016
+ n.f & 64 ? n.parent = null : ls(n, t), n = r;
10978
11017
  }
10979
11018
  }
10980
- function ss(e) {
11019
+ function cs(e) {
10981
11020
  for (var t = e.first; t !== null;) {
10982
11021
  var n = t.next;
10983
- t.f & 32 || cs(t), t = n;
11022
+ t.f & 32 || ls(t), t = n;
10984
11023
  }
10985
11024
  }
10986
- function cs(e, t = !0) {
11025
+ function ls(e, t = !0) {
10987
11026
  var n = !1;
10988
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ls(e.nodes.start, e.nodes.end), n = !0), eo(e, da), os(e, t && !n), Is(e, 0);
11027
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (us(e.nodes.start, e.nodes.end), n = !0), to(e, fa), ss(e, t && !n), Ls(e, 0);
10989
11028
  var r = e.nodes && e.nodes.t;
10990
11029
  if (r !== null) for (let e of r) e.stop();
10991
- as(e), e.f ^= da, e.f |= la;
11030
+ os(e), e.f ^= fa, e.f |= ua;
10992
11031
  var i = e.parent;
10993
- i !== null && i.first !== null && us(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
11032
+ i !== null && i.first !== null && ds(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
10994
11033
  }
10995
- function ls(e, t) {
11034
+ function us(e, t) {
10996
11035
  for (; e !== null;) {
10997
- var n = e === t ? null : /* @__PURE__ */ Xo(e);
11036
+ var n = e === t ? null : /* @__PURE__ */ J(e);
10998
11037
  e.remove(), e = n;
10999
11038
  }
11000
11039
  }
11001
- function us(e) {
11040
+ function ds(e) {
11002
11041
  var t = e.parent, n = e.prev, r = e.next;
11003
11042
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
11004
11043
  }
11005
- function ds(e, t, n = !0) {
11044
+ function fs(e, t, n = !0) {
11006
11045
  var r = [];
11007
- fs(e, r, !0);
11046
+ ps(e, r, !0);
11008
11047
  var i = () => {
11009
- n && cs(e), t && t();
11048
+ n && ls(e), t && t();
11010
11049
  }, a = r.length;
11011
11050
  if (a > 0) {
11012
11051
  var o = () => --a || i();
11013
11052
  for (var s of r) s.out(o);
11014
11053
  } else i();
11015
11054
  }
11016
- function fs(e, t, n) {
11055
+ function ps(e, t, n) {
11017
11056
  if (!(e.f & 8192)) {
11018
- e.f ^= ca;
11057
+ e.f ^= la;
11019
11058
  var r = e.nodes && e.nodes.t;
11020
11059
  if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
11021
11060
  for (var i = e.first; i !== null;) {
11022
11061
  var a = i.next;
11023
11062
  if (!(i.f & 64)) {
11024
11063
  var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
11025
- fs(i, t, o ? n : !1);
11064
+ ps(i, t, o ? n : !1);
11026
11065
  }
11027
11066
  i = a;
11028
11067
  }
11029
11068
  }
11030
11069
  }
11031
- function ps(e, t) {
11070
+ function ms(e, t) {
11032
11071
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
11033
- var i = n === r ? null : /* @__PURE__ */ Xo(n);
11072
+ var i = n === r ? null : /* @__PURE__ */ J(n);
11034
11073
  t.append(n), n = i;
11035
11074
  }
11036
11075
  }
11037
11076
  //#endregion
11038
11077
  //#region node_modules/svelte/src/internal/client/legacy.js
11039
- var ms = null, hs = !1, gs = !1;
11040
- function _s(e) {
11041
- gs = e;
11078
+ var hs = null, gs = !1, _s = !1;
11079
+ function vs(e) {
11080
+ _s = e;
11042
11081
  }
11043
- var Y = null, vs = !1;
11044
- function ys(e) {
11082
+ var Y = null, ys = !1;
11083
+ function bs(e) {
11045
11084
  Y = e;
11046
11085
  }
11047
11086
  var X = null;
11048
- function bs(e) {
11087
+ function xs(e) {
11049
11088
  X = e;
11050
11089
  }
11051
- var xs = null;
11052
- function Ss(e) {
11053
- Y !== null && (!Ba || Y.f & 2) && (xs === null ? xs = [e] : xs.push(e));
11090
+ var Ss = null;
11091
+ function Cs(e) {
11092
+ Y !== null && (!Va || Y.f & 2) && (Ss === null ? Ss = [e] : Ss.push(e));
11054
11093
  }
11055
- var Cs = null, ws = 0, Ts = null;
11056
- function Es(e) {
11057
- Ts = e;
11094
+ var ws = null, Ts = 0, Es = null;
11095
+ function Ds(e) {
11096
+ Es = e;
11058
11097
  }
11059
- var Ds = 1, Os = 0, ks = Os;
11060
- function As(e) {
11061
- ks = e;
11098
+ var Os = 1, ks = 0, As = ks;
11099
+ function js(e) {
11100
+ As = e;
11062
11101
  }
11063
- function js() {
11064
- return ++Ds;
11102
+ function Ms() {
11103
+ return ++Os;
11065
11104
  }
11066
- function Ms(e) {
11105
+ function Ns(e) {
11067
11106
  var t = e.f;
11068
11107
  if (t & 2048) return !0;
11069
- if (t & 2 && (e.f &= ~ha), t & 4096) {
11108
+ if (t & 2 && (e.f &= ~ga), t & 4096) {
11070
11109
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
11071
11110
  var a = n[i];
11072
- if (Ms(a) && Mo(a), a.wv > e.wv) return !0;
11111
+ if (Ns(a) && No(a), a.wv > e.wv) return !0;
11073
11112
  }
11074
- t & 512 && co === null && eo(e, aa);
11113
+ t & 512 && lo === null && to(e, oa);
11075
11114
  }
11076
11115
  return !1;
11077
11116
  }
11078
- function Ns(e, t, n = !0) {
11117
+ function Ps(e, t, n = !0) {
11079
11118
  var r = e.reactions;
11080
- if (r !== null && !(!Ba && xs !== null && Ji.call(xs, e))) for (var i = 0; i < r.length; i++) {
11119
+ if (r !== null && !(!Va && Ss !== null && Yi.call(Ss, e))) for (var i = 0; i < r.length; i++) {
11081
11120
  var a = r[i];
11082
- a.f & 2 ? Ns(a, t, !1) : t === a && (n ? eo(a, oa) : a.f & 1024 && eo(a, sa), Co(a));
11121
+ a.f & 2 ? Ps(a, t, !1) : t === a && (n ? to(a, sa) : a.f & 1024 && to(a, ca), wo(a));
11083
11122
  }
11084
11123
  }
11085
- function Ps(e) {
11086
- var t = Cs, n = ws, r = Ts, i = Y, a = xs, o = Ua, s = vs, c = ks, l = e.f;
11087
- Cs = null, ws = 0, Ts = null, Y = l & 96 ? null : e, xs = null, Wa(e.ctx), vs = !1, ks = ++Os, e.ac !== null && (J(() => {
11088
- e.ac.abort(Ca);
11124
+ function Fs(e) {
11125
+ var t = ws, n = Ts, r = Es, i = Y, a = Ss, o = Wa, s = ys, c = As, l = e.f;
11126
+ ws = null, Ts = 0, Es = null, Y = l & 96 ? null : e, Ss = null, Ga(e.ctx), ys = !1, As = ++ks, e.ac !== null && (Zo(() => {
11127
+ e.ac.abort(wa);
11089
11128
  }), e.ac = null);
11090
11129
  try {
11091
- e.f |= ga;
11130
+ e.f |= _a;
11092
11131
  var u = e.fn, d = u();
11093
- e.f |= ua;
11132
+ e.f |= da;
11094
11133
  var f = e.deps, p = q?.is_fork;
11095
- if (Cs !== null) {
11134
+ if (ws !== null) {
11096
11135
  var m;
11097
- if (p || Is(e, ws), f !== null && ws > 0) for (f.length = ws + Cs.length, m = 0; m < Cs.length; m++) f[ws + m] = Cs[m];
11098
- else e.deps = f = Cs;
11099
- if ($o() && e.f & 512) for (m = ws; m < f.length; m++) (f[m].reactions ??= []).push(e);
11100
- } else !p && f !== null && ws < f.length && (Is(e, ws), f.length = ws);
11101
- if (qa() && Ts !== null && !vs && f !== null && !(e.f & 6146)) for (m = 0; m < Ts.length; m++) Ns(Ts[m], e);
11136
+ if (p || Ls(e, Ts), f !== null && Ts > 0) for (f.length = Ts + ws.length, m = 0; m < ws.length; m++) f[Ts + m] = ws[m];
11137
+ else e.deps = f = ws;
11138
+ if (es() && e.f & 512) for (m = Ts; m < f.length; m++) (f[m].reactions ??= []).push(e);
11139
+ } else !p && f !== null && Ts < f.length && (Ls(e, Ts), f.length = Ts);
11140
+ if (Ja() && Es !== null && !ys && f !== null && !(e.f & 6146)) for (m = 0; m < Es.length; m++) Ps(Es[m], e);
11102
11141
  if (i !== null && i !== e) {
11103
- if (Os++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Os;
11104
- if (t !== null) for (let e of t) e.rv = Os;
11105
- Ts !== null && (r === null ? r = Ts : r.push(...Ts));
11142
+ if (ks++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = ks;
11143
+ if (t !== null) for (let e of t) e.rv = ks;
11144
+ Es !== null && (r === null ? r = Es : r.push(...Es));
11106
11145
  }
11107
- return e.f & 8388608 && (e.f ^= _a), d;
11146
+ return e.f & 8388608 && (e.f ^= va), d;
11108
11147
  } catch (e) {
11109
- return Za(e);
11148
+ return Qa(e);
11110
11149
  } finally {
11111
- e.f ^= ga, Cs = t, ws = n, Ts = r, Y = i, xs = a, Wa(o), vs = s, ks = c;
11150
+ e.f ^= _a, ws = t, Ts = n, Es = r, Y = i, Ss = a, Ga(o), ys = s, As = c;
11112
11151
  }
11113
11152
  }
11114
- function Fs(e, t) {
11153
+ function Is(e, t) {
11115
11154
  let n = t.reactions;
11116
11155
  if (n !== null) {
11117
- var r = qi.call(n, e);
11156
+ var r = Ji.call(n, e);
11118
11157
  if (r !== -1) {
11119
11158
  var i = n.length - 1;
11120
11159
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
11121
11160
  }
11122
11161
  }
11123
- if (n === null && t.f & 2 && (Cs === null || !Ji.call(Cs, t))) {
11162
+ if (n === null && t.f & 2 && (ws === null || !Yi.call(ws, t))) {
11124
11163
  var a = t;
11125
- a.f & 512 && (a.f ^= 512, a.f &= ~ha), a.v !== ka && to(a), No(a), Is(a, 0);
11164
+ a.f & 512 && (a.f ^= 512, a.f &= ~ga), a.v !== Aa && no(a), Po(a), Ls(a, 0);
11126
11165
  }
11127
11166
  }
11128
- function Is(e, t) {
11167
+ function Ls(e, t) {
11129
11168
  var n = e.deps;
11130
- if (n !== null) for (var r = t; r < n.length; r++) Fs(e, n[r]);
11169
+ if (n !== null) for (var r = t; r < n.length; r++) Is(e, n[r]);
11131
11170
  }
11132
- function Ls(e) {
11171
+ function Rs(e) {
11133
11172
  var t = e.f;
11134
11173
  if (!(t & 16384)) {
11135
- eo(e, aa);
11136
- var n = X, r = hs;
11137
- X = e, hs = !0;
11174
+ to(e, oa);
11175
+ var n = X, r = gs;
11176
+ X = e, gs = !0;
11138
11177
  try {
11139
- t & 16777232 ? ss(e) : os(e), as(e);
11140
- var i = Ps(e);
11141
- e.teardown = typeof i == "function" ? i : null, e.wv = Ds;
11178
+ t & 16777232 ? cs(e) : ss(e), os(e);
11179
+ var i = Fs(e);
11180
+ e.teardown = typeof i == "function" ? i : null, e.wv = Os;
11142
11181
  } finally {
11143
- hs = r, X = n;
11182
+ gs = r, X = n;
11144
11183
  }
11145
11184
  }
11146
11185
  }
11147
- function Rs(e) {
11186
+ function zs(e) {
11148
11187
  var t = (e.f & 2) != 0;
11149
- if (ms?.add(e), Y !== null && !vs && !(X !== null && X.f & 16384) && (xs === null || !Ji.call(xs, e))) {
11188
+ if (hs?.add(e), Y !== null && !ys && !(X !== null && X.f & 16384) && (Ss === null || !Yi.call(Ss, e))) {
11150
11189
  var n = Y.deps;
11151
- if (Y.f & 2097152) e.rv < Os && (e.rv = Os, Cs === null && n !== null && n[ws] === e ? ws++ : Cs === null ? Cs = [e] : Cs.push(e));
11190
+ if (Y.f & 2097152) e.rv < ks && (e.rv = ks, ws === null && n !== null && n[Ts] === e ? Ts++ : ws === null ? ws = [e] : ws.push(e));
11152
11191
  else {
11153
11192
  (Y.deps ??= []).push(e);
11154
11193
  var r = e.reactions;
11155
- r === null ? e.reactions = [Y] : Ji.call(r, Y) || r.push(Y);
11194
+ r === null ? e.reactions = [Y] : Yi.call(r, Y) || r.push(Y);
11156
11195
  }
11157
11196
  }
11158
- if (gs && Io.has(e)) return Io.get(e);
11197
+ if (_s && Lo.has(e)) return Lo.get(e);
11159
11198
  if (t) {
11160
11199
  var i = e;
11161
- if (gs) {
11200
+ if (_s) {
11162
11201
  var a = i.v;
11163
- return (!(i.f & 1024) && i.reactions !== null || Bs(i)) && (a = jo(i)), Io.set(i, a), a;
11202
+ return (!(i.f & 1024) && i.reactions !== null || Vs(i)) && (a = Mo(i)), Lo.set(i, a), a;
11164
11203
  }
11165
- var o = (i.f & 512) == 0 && !vs && Y !== null && (hs || (Y.f & 512) != 0), s = (i.f & ua) === 0;
11166
- Ms(i) && (o && (i.f |= 512), Mo(i)), o && !s && (Po(i), zs(i));
11204
+ var o = (i.f & 512) == 0 && !ys && Y !== null && (gs || (Y.f & 512) != 0), s = (i.f & da) === 0;
11205
+ Ns(i) && (o && (i.f |= 512), No(i)), o && !s && (Fo(i), Bs(i));
11167
11206
  }
11168
- if (co?.has(e)) return co.get(e);
11207
+ if (lo?.has(e)) return lo.get(e);
11169
11208
  if (e.f & 8388608) throw e.v;
11170
11209
  return e.v;
11171
11210
  }
11172
- function zs(e) {
11173
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Po(t), zs(t));
11174
- }
11175
11211
  function Bs(e) {
11176
- if (e.v === ka) return !0;
11212
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Fo(t), Bs(t));
11213
+ }
11214
+ function Vs(e) {
11215
+ if (e.v === Aa) return !0;
11177
11216
  if (e.deps === null) return !1;
11178
- for (let t of e.deps) if (Io.has(t) || t.f & 2 && Bs(t)) return !0;
11217
+ for (let t of e.deps) if (Lo.has(t) || t.f & 2 && Vs(t)) return !0;
11179
11218
  return !1;
11180
11219
  }
11181
- function Vs(e) {
11182
- var t = vs;
11220
+ function Hs(e) {
11221
+ var t = ys;
11183
11222
  try {
11184
- return vs = !0, e();
11223
+ return ys = !0, e();
11185
11224
  } finally {
11186
- vs = t;
11225
+ ys = t;
11187
11226
  }
11188
11227
  }
11189
11228
  [.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
11190
- var Hs = ["touchstart", "touchmove"];
11191
- function Us(e) {
11192
- return Hs.includes(e);
11229
+ var Us = ["touchstart", "touchmove"];
11230
+ function Ws(e) {
11231
+ return Us.includes(e);
11193
11232
  }
11194
11233
  //#endregion
11195
11234
  //#region node_modules/svelte/src/internal/client/dom/elements/events.js
11196
- var Ws = Symbol("events"), Gs = /* @__PURE__ */ new Set(), Ks = /* @__PURE__ */ new Set(), qs = null;
11197
- function Js(e) {
11235
+ var Gs = Symbol("events"), Ks = /* @__PURE__ */ new Set(), qs = /* @__PURE__ */ new Set(), Js = null;
11236
+ function Ys(e) {
11198
11237
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
11199
- qs = e;
11200
- var o = 0, s = qs === e && e[Ws];
11238
+ Js = e;
11239
+ var o = 0, s = Js === e && e[Gs];
11201
11240
  if (s) {
11202
11241
  var c = i.indexOf(s);
11203
11242
  if (c !== -1 && (t === document || t === window)) {
11204
- e[Ws] = t;
11243
+ e[Gs] = t;
11205
11244
  return;
11206
11245
  }
11207
11246
  var l = i.indexOf(t);
@@ -11209,19 +11248,19 @@ function Js(e) {
11209
11248
  c <= l && (o = c);
11210
11249
  }
11211
11250
  if (a = i[o] || e.target, a !== t) {
11212
- Xi(e, "currentTarget", {
11251
+ Zi(e, "currentTarget", {
11213
11252
  configurable: !0,
11214
11253
  get() {
11215
11254
  return a || n;
11216
11255
  }
11217
11256
  });
11218
11257
  var u = Y, d = X;
11219
- ys(null), bs(null);
11258
+ bs(null), xs(null);
11220
11259
  try {
11221
11260
  for (var f, p = []; a !== null;) {
11222
11261
  var m = a.assignedSlot || a.parentNode || a.host || null;
11223
11262
  try {
11224
- var h = a[Ws]?.[r];
11263
+ var h = a[Gs]?.[r];
11225
11264
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
11226
11265
  } catch (e) {
11227
11266
  f ? p.push(e) : f = e;
@@ -11236,14 +11275,14 @@ function Js(e) {
11236
11275
  throw f;
11237
11276
  }
11238
11277
  } finally {
11239
- e[Ws] = t, delete e.currentTarget, ys(u), bs(d);
11278
+ e[Gs] = t, delete e.currentTarget, bs(u), xs(d);
11240
11279
  }
11241
11280
  }
11242
11281
  }
11243
11282
  globalThis?.window?.trustedTypes;
11244
11283
  //#endregion
11245
11284
  //#region node_modules/svelte/src/internal/client/dom/template.js
11246
- function Ys(e, t) {
11285
+ function Xs(e, t) {
11247
11286
  var n = X;
11248
11287
  n.nodes === null && (n.nodes = {
11249
11288
  start: e,
@@ -11252,55 +11291,55 @@ function Ys(e, t) {
11252
11291
  t: null
11253
11292
  });
11254
11293
  }
11255
- function Xs(e, t) {
11256
- return Qs(e, t);
11257
- }
11258
- var Zs = /* @__PURE__ */ new Map();
11259
- function Qs(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
11260
- Jo();
11261
- var c = void 0, l = ts(() => {
11262
- var o = n ?? t.appendChild(Yo());
11263
- Oo(o, { pending: () => {} }, (t) => {
11264
- Ga({});
11265
- var n = Ua;
11266
- if (a && (n.c = a), i && (r.$$events = i), Na && Ys(t, null), c = e(t, r) || {}, Na && (X.nodes.end = Pa, Pa === null || Pa.nodeType !== 8 || Pa.data !== "]")) throw ja(), K;
11267
- Ka();
11294
+ function Zs(e, t) {
11295
+ return $s(e, t);
11296
+ }
11297
+ var Qs = /* @__PURE__ */ new Map();
11298
+ function $s(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
11299
+ Yo();
11300
+ var c = void 0, l = ns(() => {
11301
+ var o = n ?? t.appendChild(Xo());
11302
+ ko(o, { pending: () => {} }, (t) => {
11303
+ Ka({});
11304
+ var n = Wa;
11305
+ if (a && (n.c = a), i && (r.$$events = i), Pa && Xs(t, null), c = e(t, r) || {}, Pa && (X.nodes.end = Fa, Fa === null || Fa.nodeType !== 8 || Fa.data !== "]")) throw Ma(), ka;
11306
+ qa();
11268
11307
  }, s);
11269
11308
  var l = /* @__PURE__ */ new Set(), u = (e) => {
11270
11309
  for (var n = 0; n < e.length; n++) {
11271
11310
  var r = e[n];
11272
11311
  if (!l.has(r)) {
11273
11312
  l.add(r);
11274
- var i = Us(r);
11313
+ var i = Ws(r);
11275
11314
  for (let e of [t, document]) {
11276
- var a = Zs.get(e);
11277
- a === void 0 && (a = /* @__PURE__ */ new Map(), Zs.set(e, a));
11315
+ var a = Qs.get(e);
11316
+ a === void 0 && (a = /* @__PURE__ */ new Map(), Qs.set(e, a));
11278
11317
  var o = a.get(r);
11279
- o === void 0 ? (e.addEventListener(r, Js, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
11318
+ o === void 0 ? (e.addEventListener(r, Ys, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
11280
11319
  }
11281
11320
  }
11282
11321
  }
11283
11322
  };
11284
- return u(Yi(Gs)), Ks.add(u), () => {
11323
+ return u(Xi(Ks)), qs.add(u), () => {
11285
11324
  for (var e of l) for (let n of [t, document]) {
11286
- var r = Zs.get(n), i = r.get(e);
11287
- --i == 0 ? (n.removeEventListener(e, Js), r.delete(e), r.size === 0 && Zs.delete(n)) : r.set(e, i);
11325
+ var r = Qs.get(n), i = r.get(e);
11326
+ --i == 0 ? (n.removeEventListener(e, Ys), r.delete(e), r.size === 0 && Qs.delete(n)) : r.set(e, i);
11288
11327
  }
11289
- Ks.delete(u), o !== n && o.parentNode?.removeChild(o);
11328
+ qs.delete(u), o !== n && o.parentNode?.removeChild(o);
11290
11329
  };
11291
11330
  });
11292
- return $s.set(c, l), c;
11331
+ return ec.set(c, l), c;
11293
11332
  }
11294
- var $s = /* @__PURE__ */ new WeakMap();
11333
+ var ec = /* @__PURE__ */ new WeakMap();
11295
11334
  //#endregion
11296
11335
  //#region node_modules/svelte/src/internal/flags/legacy.js
11297
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5"), Ha();
11336
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5"), Ua();
11298
11337
  //#endregion
11299
11338
  //#region src/App.svelte
11300
- function ec(e) {}
11339
+ function tc(e) {}
11301
11340
  //#endregion
11302
11341
  //#region src/modules/routing-module.ts
11303
- var tc = {
11342
+ var nc = {
11304
11343
  init: (e) => {
11305
11344
  W.get(Si).enableRouting();
11306
11345
  },
@@ -11333,14 +11372,14 @@ var tc = {
11333
11372
  Object.keys(e).length > 0 && r.routing().addSearchParams(e, t, n);
11334
11373
  }
11335
11374
  }
11336
- }, nc, rc = {
11375
+ }, rc, ic = {
11337
11376
  luigi: void 0,
11338
11377
  documentTitle: void 0,
11339
11378
  init: (e) => {
11340
- rc.luigi = e, rc.documentTitle = r(void 0), nc = W.get(gi);
11379
+ ic.luigi = e, ic.documentTitle = r(void 0), rc = W.get(gi);
11341
11380
  },
11342
11381
  processAlert: (e, t, n) => {
11343
- if (!rc.luigi) throw Error("Luigi is not initialized.");
11382
+ if (!ic.luigi) throw Error("Luigi is not initialized.");
11344
11383
  let r = {
11345
11384
  openFromClient: t,
11346
11385
  close: () => {
@@ -11349,26 +11388,26 @@ var tc = {
11349
11388
  link: (t) => {
11350
11389
  if (e.links) {
11351
11390
  let r = e.links[t];
11352
- if (r && (r.url && rc.luigi?.navigation().navigate(r.url), r.dismissKey && e.id)) return n.notifyAlertClosed(e.id, r.dismissKey), !0;
11391
+ if (r && (r.url && ic.luigi?.navigation().navigate(r.url), r.dismissKey && e.id)) return n.notifyAlertClosed(e.id, r.dismissKey), !0;
11353
11392
  }
11354
11393
  return !1;
11355
11394
  }
11356
11395
  };
11357
- rc.luigi.getEngine()._connector?.renderAlert(e, r);
11396
+ ic.luigi.getEngine()._connector?.renderAlert(e, r);
11358
11397
  },
11359
11398
  handleConfirmationModalRequest: (e, t) => {
11360
- if (!rc.luigi) throw Error("Luigi is not initialized.");
11399
+ if (!ic.luigi) throw Error("Luigi is not initialized.");
11361
11400
  if (e) {
11362
- let t = e.body ? e.body : rc.luigi.i18n().getTranslation("luigi.confirmationModal.body");
11401
+ let t = e.body ? e.body : ic.luigi.i18n().getTranslation("luigi.confirmationModal.body");
11363
11402
  e = {
11364
11403
  ...e,
11365
- header: rc.luigi.i18n().getTranslation(e.header || "luigi.confirmationModal.header"),
11404
+ header: ic.luigi.i18n().getTranslation(e.header || "luigi.confirmationModal.header"),
11366
11405
  body: fi.sanatizeHtmlExceptTextFormatting(t),
11367
- buttonDismiss: rc.luigi.i18n().getTranslation(e.buttonDismiss || "luigi.button.dismiss"),
11368
- buttonConfirm: e.buttonConfirm === !1 ? !1 : rc.luigi.i18n().getTranslation(e.buttonConfirm || "luigi.button.confirm")
11406
+ buttonDismiss: ic.luigi.i18n().getTranslation(e.buttonDismiss || "luigi.button.dismiss"),
11407
+ buttonConfirm: e.buttonConfirm === !1 ? !1 : ic.luigi.i18n().getTranslation(e.buttonConfirm || "luigi.button.confirm")
11369
11408
  };
11370
11409
  }
11371
- rc.luigi.getEngine()._connector?.renderConfirmationModal(e, {
11410
+ ic.luigi.getEngine()._connector?.renderConfirmationModal(e, {
11372
11411
  confirm() {
11373
11412
  t.notifyConfirmationModalClosed(!0);
11374
11413
  },
@@ -11378,28 +11417,28 @@ var tc = {
11378
11417
  });
11379
11418
  },
11380
11419
  handleDirtyStatusRequest: (e, t) => {
11381
- if (!rc.luigi) throw Error("Luigi is not initialized.");
11382
- nc.updateDirtyStatus(e, t);
11420
+ if (!ic.luigi) throw Error("Luigi is not initialized.");
11421
+ rc.updateDirtyStatus(e, t);
11383
11422
  }
11384
- }, ic = class {
11423
+ }, ac = class {
11385
11424
  static hasLocaleChangePermission(e) {
11386
11425
  return e?.clientPermissions?.changeCurrentLocale ? !0 : (console.error("Current locale change declined from client, as client permission \"changeCurrentLocale\" is not set for this view."), !1);
11387
11426
  }
11388
11427
  };
11389
11428
  //#endregion
11390
11429
  //#region src/modules/communicaton-module.ts
11391
- function ac(e, t, n) {
11430
+ function oc(e, t, n) {
11392
11431
  let r = n.getConfigValue("navigation.viewGroupSettings") || {};
11393
11432
  r[e] || (r[e] = {}), r[e]._liveCustomData = t, n.configChanged("navigation.viewgroupdata");
11394
11433
  }
11395
- var oc = {
11434
+ var sc = {
11396
11435
  luigi: {},
11397
11436
  init: (e) => {
11398
- oc.luigi = e;
11437
+ sc.luigi = e;
11399
11438
  },
11400
11439
  addListeners: (e, t) => {
11401
11440
  e.addEventListener(V.INITIALIZED, (t) => {
11402
- rc.luigi?.ux().hideLoadingIndicator(e.parentNode);
11441
+ ic.luigi?.ux().hideLoadingIndicator(e.parentNode);
11403
11442
  let n = W.get(bi);
11404
11443
  n.viewGroupLoaded(e), !e._luigiPreloading && e.style.display !== "none" && n.preload();
11405
11444
  }), e.addEventListener(V.NAVIGATION_COMPLETED_REPORT, () => {
@@ -11429,26 +11468,26 @@ var oc = {
11429
11468
  let n = e.payload;
11430
11469
  t.navigation().runTimeErrorHandler(n?.data?.errorObj || {});
11431
11470
  }), e.addEventListener(V.ALERT_REQUEST, (t) => {
11432
- rc.processAlert(t.payload, !0, e);
11471
+ ic.processAlert(t.payload, !0, e);
11433
11472
  }), e.addEventListener(V.SHOW_CONFIRMATION_MODAL_REQUEST, (t) => {
11434
- rc.handleConfirmationModalRequest(t.payload, e);
11473
+ ic.handleConfirmationModalRequest(t.payload, e);
11435
11474
  }), e.addEventListener(V.SET_DOCUMENT_TITLE_REQUEST, (e) => {
11436
11475
  let t = e.detail;
11437
- oc.luigi.getEngine()._connector?.setDocumentTitle(t.title);
11476
+ sc.luigi.getEngine()._connector?.setDocumentTitle(t.title);
11438
11477
  }), e.addEventListener(V.SHOW_LOADING_INDICATOR_REQUEST, () => {
11439
- oc.luigi.getEngine()._connector?.showLoadingIndicator(e.parentNode);
11478
+ sc.luigi.getEngine()._connector?.showLoadingIndicator(e.parentNode);
11440
11479
  }), e.addEventListener(V.HIDE_LOADING_INDICATOR_REQUEST, () => {
11441
- oc.luigi.getEngine()._connector?.hideLoadingIndicator(e.parentNode);
11480
+ sc.luigi.getEngine()._connector?.hideLoadingIndicator(e.parentNode);
11442
11481
  }), e.addEventListener(V.ADD_BACKDROP_REQUEST, () => {
11443
- oc.luigi.getEngine()._connector?.addBackdrop();
11482
+ sc.luigi.getEngine()._connector?.addBackdrop();
11444
11483
  }), e.addEventListener(V.REMOVE_BACKDROP_REQUEST, () => {
11445
- oc.luigi.getEngine()._connector?.removeBackdrop();
11484
+ sc.luigi.getEngine()._connector?.removeBackdrop();
11446
11485
  }), e.addEventListener(V.SET_ANCHOR_LINK_REQUEST, (n) => {
11447
11486
  let r = n?.payload || "";
11448
11487
  e.anchor = r, e.updateContext(e.context || {}), t.routing().setAnchor(r);
11449
11488
  }), e.addEventListener(V.SET_DIRTY_STATUS_REQUEST, (t) => {
11450
11489
  let n = t.payload;
11451
- rc.handleDirtyStatusRequest(n?.dirty ?? !1, e);
11490
+ ic.handleDirtyStatusRequest(n?.dirty ?? !1, e);
11452
11491
  }), e.addEventListener(V.ADD_NODE_PARAMS_REQUEST, (e) => {
11453
11492
  let n = e.payload;
11454
11493
  t.routing().addNodeParams(n.data, n.keepBrowserHistory);
@@ -11458,15 +11497,15 @@ var oc = {
11458
11497
  }), e.addEventListener(V.OPEN_USER_SETTINGS_REQUEST, () => {
11459
11498
  t.ux().openUserSettings();
11460
11499
  }), e.addEventListener(V.CLOSE_USER_SETTINGS_REQUEST, () => {
11461
- oc.luigi.getEngine()._connector?.closeUserSettings();
11500
+ sc.luigi.getEngine()._connector?.closeUserSettings();
11462
11501
  }), e.addEventListener(V.ADD_SEARCH_PARAMS_REQUEST, (e) => {
11463
11502
  let n = e.detail;
11464
- tc.addSearchParamsFromClient(n.data, n.keepBrowserHistory, n.preventLuigiConfigUpdate, t);
11503
+ nc.addSearchParamsFromClient(n.data, n.keepBrowserHistory, n.preventLuigiConfigUpdate, t);
11465
11504
  }), e.addEventListener(V.UPDATE_MODAL_SETTINGS_REQUEST, (e) => {
11466
11505
  let n = e.payload;
11467
11506
  G.updateModalSettings(n.updatedModalSettings, n.addHistoryEntry, t);
11468
11507
  }), e.addEventListener(V.SET_CURRENT_LOCALE_REQUEST, (n) => {
11469
- if (!ic.hasLocaleChangePermission(e)) return;
11508
+ if (!ac.hasLocaleChangePermission(e)) return;
11470
11509
  let r = n.detail?.data?.data?.currentLocale;
11471
11510
  r && t.i18n().setCurrentLocale(r);
11472
11511
  }), e.addEventListener(V.GET_CURRENT_ROUTE_REQUEST, (e) => {
@@ -11476,26 +11515,26 @@ var oc = {
11476
11515
  }).catch(() => e.callback(""));
11477
11516
  }), e.addEventListener(V.SET_VIEW_GROUP_DATA_REQUEST, (n) => {
11478
11517
  let r = e.viewGroup;
11479
- r && ac(r, n.detail, t);
11518
+ r && oc(r, n.detail, t);
11480
11519
  });
11481
11520
  }
11482
11521
  };
11483
11522
  //#endregion
11484
11523
  //#region src/main.ts
11485
- window.Luigi = new Gi(new class {
11524
+ window.Luigi = new Ki(new class {
11486
11525
  config;
11487
11526
  _connector;
11488
11527
  _app;
11489
11528
  _ui = G;
11490
- _comm = oc;
11491
- _ux = rc;
11492
- _routing = tc;
11529
+ _comm = sc;
11530
+ _ux = ic;
11531
+ _routing = nc;
11493
11532
  bootstrap(e) {
11494
- this._app = Xs(ec, { target: document.body }), this._connector = e;
11533
+ this._app = Zs(tc, { target: document.body }), this._connector = e;
11495
11534
  }
11496
11535
  init() {
11497
11536
  let e = window.Luigi;
11498
- W.register(gi, () => new gi(e)), W.register(Ii, () => new Ii(e)), W.register(yi, () => new yi(e)), W.register(vi, () => new vi()), W.register(Si, () => new Si(e)), W.register(Ci, () => new Ci()), W.register(_i, () => new _i(e)), W.register(bi, () => new bi(e)), e.theming()._init(), G.init(e), tc.init(e), oc.init(e), rc.init(e);
11537
+ W.register(gi, () => new gi(e)), W.register(Li, () => new Li(e)), W.register(yi, () => new yi(e)), W.register(vi, () => new vi()), W.register(Si, () => new Si(e)), W.register(Ci, () => new Ci()), W.register(_i, () => new _i(e)), W.register(bi, () => new bi(e)), e.theming()._init(), G.init(e), nc.init(e), sc.init(e), ic.init(e);
11499
11538
  }
11500
11539
  }());
11501
11540
  //#endregion