@canton-network/core-wallet-ui-components 1.1.1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ const A = (t) => (e, r) => {
4
4
  customElements.define(t, e);
5
5
  }) : customElements.define(t, e);
6
6
  };
7
- const le = globalThis, fr = le.ShadowRoot && (le.ShadyCSS === void 0 || le.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, lo = /* @__PURE__ */ Symbol(), _r = /* @__PURE__ */ new WeakMap();
7
+ const se = globalThis, fr = se.ShadowRoot && (se.ShadyCSS === void 0 || se.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, lo = /* @__PURE__ */ Symbol(), _r = /* @__PURE__ */ new WeakMap();
8
8
  let _a = class {
9
9
  constructor(e, r, o) {
10
10
  if (this._$cssResult$ = !0, o !== lo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -26,7 +26,7 @@ let _a = class {
26
26
  const ja = (t) => new _a(typeof t == "string" ? t : t + "", void 0, lo), Pa = (t, e) => {
27
27
  if (fr) t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
28
28
  else for (const r of e) {
29
- const o = document.createElement("style"), a = le.litNonce;
29
+ const o = document.createElement("style"), a = se.litNonce;
30
30
  a !== void 0 && o.setAttribute("nonce", a), o.textContent = r.cssText, t.appendChild(o);
31
31
  }
32
32
  }, jr = fr ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
@@ -34,7 +34,7 @@ const ja = (t) => new _a(typeof t == "string" ? t : t + "", void 0, lo), Pa = (t
34
34
  for (const o of e.cssRules) r += o.cssText;
35
35
  return ja(r);
36
36
  })(t) : t;
37
- const { is: Ta, defineProperty: Da, getOwnPropertyDescriptor: Ba, getOwnPropertyNames: Na, getOwnPropertySymbols: Ma, getPrototypeOf: Za } = Object, qe = globalThis, Pr = qe.trustedTypes, Ra = Pr ? Pr.emptyScript : "", $a = qe.reactiveElementPolyfillSupport, $t = (t, e) => t, Me = { toAttribute(t, e) {
37
+ const { is: Ta, defineProperty: Da, getOwnPropertyDescriptor: Ba, getOwnPropertyNames: Na, getOwnPropertySymbols: Ma, getPrototypeOf: Za } = Object, qe = globalThis, Pr = qe.trustedTypes, Ra = Pr ? Pr.emptyScript : "", $a = qe.reactiveElementPolyfillSupport, $t = (t, e) => t, Ne = { toAttribute(t, e) {
38
38
  switch (e) {
39
39
  case Boolean:
40
40
  t = t ? Ra : null;
@@ -62,7 +62,7 @@ const { is: Ta, defineProperty: Da, getOwnPropertyDescriptor: Ba, getOwnProperty
62
62
  }
63
63
  }
64
64
  return r;
65
- } }, hr = (t, e) => !Ta(t, e), Tr = { attribute: !0, type: String, converter: Me, reflect: !1, useDefault: !1, hasChanged: hr };
65
+ } }, hr = (t, e) => !Ta(t, e), Tr = { attribute: !0, type: String, converter: Ne, reflect: !1, useDefault: !1, hasChanged: hr };
66
66
  Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), qe.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
67
  class Zt extends HTMLElement {
68
68
  static addInitializer(e) {
@@ -161,14 +161,14 @@ class Zt extends HTMLElement {
161
161
  _$ET(e, r) {
162
162
  const o = this.constructor.elementProperties.get(e), a = this.constructor._$Eu(e, o);
163
163
  if (a !== void 0 && o.reflect === !0) {
164
- const n = (o.converter?.toAttribute !== void 0 ? o.converter : Me).toAttribute(r, o.type);
164
+ const n = (o.converter?.toAttribute !== void 0 ? o.converter : Ne).toAttribute(r, o.type);
165
165
  this._$Em = e, n == null ? this.removeAttribute(a) : this.setAttribute(a, n), this._$Em = null;
166
166
  }
167
167
  }
168
168
  _$AK(e, r) {
169
169
  const o = this.constructor, a = o._$Eh.get(e);
170
170
  if (a !== void 0 && this._$Em !== a) {
171
- const n = o.getPropertyOptions(a), i = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : Me;
171
+ const n = o.getPropertyOptions(a), i = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : Ne;
172
172
  this._$Em = a;
173
173
  const s = i.fromAttribute(r, n.type);
174
174
  this[a] = s ?? this._$Ej?.get(a) ?? s, this._$Em = null;
@@ -246,7 +246,7 @@ class Zt extends HTMLElement {
246
246
  }
247
247
  }
248
248
  Zt.elementStyles = [], Zt.shadowRootOptions = { mode: "open" }, Zt[$t("elementProperties")] = /* @__PURE__ */ new Map(), Zt[$t("finalized")] = /* @__PURE__ */ new Map(), $a?.({ ReactiveElement: Zt }), (qe.reactiveElementVersions ??= []).push("2.1.2");
249
- const Ya = { attribute: !0, type: String, converter: Me, reflect: !1, hasChanged: hr }, Ua = (t = Ya, e, r) => {
249
+ const Ya = { attribute: !0, type: String, converter: Ne, reflect: !1, hasChanged: hr }, Ua = (t = Ya, e, r) => {
250
250
  const { kind: o, metadata: a } = r;
251
251
  let n = globalThis.litPropertyMetadata.get(a);
252
252
  if (n === void 0 && globalThis.litPropertyMetadata.set(a, n = /* @__PURE__ */ new Map()), o === "setter" && ((t = Object.create(t)).wrapped = !0), n.set(r.name, t), o === "accessor") {
@@ -371,7 +371,7 @@ const po = [
371
371
  "/404",
372
372
  "/callback"
373
373
  ];
374
- function Tp(t) {
374
+ function Pp(t) {
375
375
  return po.includes(t);
376
376
  }
377
377
  const Va = po.filter(
@@ -398,12 +398,12 @@ function Fa(t) {
398
398
  const e = bo(t), r = qa(e);
399
399
  return r === null || r === "/" ? e === "/" ? "" : e : e.slice(0, -r.length) || "";
400
400
  }
401
- function Yt(t, e = window.location.pathname) {
401
+ function Me(t, e = window.location.pathname) {
402
402
  const r = Fa(e), o = t.startsWith("/") ? t : `/${t}`;
403
403
  return r ? o === "/" ? `${r}/` : `${r}${o}` : o;
404
404
  }
405
- function Dp(t, e = window.location.pathname) {
406
- return Yt(t === "/" ? "/" : `${t}/`, e);
405
+ function Tp(t, e = window.location.pathname) {
406
+ return Me(t === "/" ? "/" : `${t}/`, e);
407
407
  }
408
408
  const Ja = p`
409
409
  <svg
@@ -484,7 +484,7 @@ const Qa = p`
484
484
  d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"
485
485
  />
486
486
  </svg>
487
- `, Vt = p`
487
+ `, Xt = p`
488
488
  <svg
489
489
  xmlns="http://www.w3.org/2000/svg"
490
490
  width="16"
@@ -627,7 +627,7 @@ class ii extends Event {
627
627
  super("logout", { bubbles: !0, composed: !0 });
628
628
  }
629
629
  }
630
- let W = class extends f {
630
+ let tt = class extends f {
631
631
  constructor() {
632
632
  super(...arguments), this.iconSrc = "images/icon.png", this.networkName = "No network connected", this.networkConnected = !1, this.menuOpen = !1, this.darkMode = localStorage.getItem("theme") === "dark", this.handleOutsideClick = (t) => {
633
633
  if (!this.menuOpen) return;
@@ -647,7 +647,7 @@ let W = class extends f {
647
647
  t.stopPropagation(), this.menuOpen = !this.menuOpen;
648
648
  }
649
649
  navigateTo(t) {
650
- this.menuOpen = !1, window.location.href = Yt(t);
650
+ this.menuOpen = !1, window.location.href = Me(t);
651
651
  }
652
652
  logout() {
653
653
  this.menuOpen = !1, this.dispatchEvent(new ii());
@@ -731,7 +731,7 @@ let W = class extends f {
731
731
  `;
732
732
  }
733
733
  };
734
- W.styles = [
734
+ tt.styles = [
735
735
  f.styles,
736
736
  k`
737
737
  :host {
@@ -901,28 +901,28 @@ W.styles = [
901
901
  ];
902
902
  Pt([
903
903
  b({ type: String })
904
- ], W.prototype, "iconSrc", 2);
904
+ ], tt.prototype, "iconSrc", 2);
905
905
  Pt([
906
906
  b({ type: String })
907
- ], W.prototype, "networkName", 2);
907
+ ], tt.prototype, "networkName", 2);
908
908
  Pt([
909
909
  b({ type: Boolean })
910
- ], W.prototype, "networkConnected", 2);
910
+ ], tt.prototype, "networkConnected", 2);
911
911
  Pt([
912
912
  T()
913
- ], W.prototype, "menuOpen", 2);
913
+ ], tt.prototype, "menuOpen", 2);
914
914
  Pt([
915
915
  T()
916
- ], W.prototype, "darkMode", 2);
917
- W = Pt([
916
+ ], tt.prototype, "darkMode", 2);
917
+ tt = Pt([
918
918
  A("app-header")
919
- ], W);
919
+ ], tt);
920
920
  var ni = Object.defineProperty, si = Object.getOwnPropertyDescriptor, Tt = (t, e, r, o) => {
921
921
  for (var a = o > 1 ? void 0 : o ? si(e, r) : e, n = t.length - 1, i; n >= 0; n--)
922
922
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
923
923
  return o && a && ni(e, r, a), a;
924
924
  };
925
- let tt = class extends f {
925
+ let et = class extends f {
926
926
  constructor() {
927
927
  super(...arguments), this.iconSrc = "/images/icon.png", this.networkName = "No network connected", this.networkConnected = !1, this.currentPage = "", this.customThemeCss = null;
928
928
  }
@@ -964,7 +964,7 @@ let tt = class extends f {
964
964
  `;
965
965
  }
966
966
  };
967
- tt.styles = [
967
+ et.styles = [
968
968
  f.styles,
969
969
  k`
970
970
  :host {
@@ -975,28 +975,28 @@ tt.styles = [
975
975
  ];
976
976
  Tt([
977
977
  b({ type: String })
978
- ], tt.prototype, "iconSrc", 2);
978
+ ], et.prototype, "iconSrc", 2);
979
979
  Tt([
980
980
  b({ type: String })
981
- ], tt.prototype, "themeSrc", 2);
981
+ ], et.prototype, "themeSrc", 2);
982
982
  Tt([
983
983
  b({ type: String })
984
- ], tt.prototype, "networkName", 2);
984
+ ], et.prototype, "networkName", 2);
985
985
  Tt([
986
986
  b({ type: Boolean })
987
- ], tt.prototype, "networkConnected", 2);
987
+ ], et.prototype, "networkConnected", 2);
988
988
  Tt([
989
989
  b({ type: String })
990
- ], tt.prototype, "currentPage", 2);
991
- tt = Tt([
990
+ ], et.prototype, "currentPage", 2);
991
+ et = Tt([
992
992
  A("app-layout")
993
- ], tt);
993
+ ], et);
994
994
  var li = Object.defineProperty, di = Object.getOwnPropertyDescriptor, vr = (t, e, r, o) => {
995
995
  for (var a = o > 1 ? void 0 : o ? di(e, r) : e, n = t.length - 1, i; n >= 0; n--)
996
996
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
997
997
  return o && a && li(e, r, a), a;
998
998
  };
999
- let Ut = class extends f {
999
+ let Yt = class extends f {
1000
1000
  constructor() {
1001
1001
  super(...arguments), this.href = "", this.label = "Back";
1002
1002
  }
@@ -1022,7 +1022,7 @@ let Ut = class extends f {
1022
1022
  `;
1023
1023
  }
1024
1024
  };
1025
- Ut.styles = [
1025
+ Yt.styles = [
1026
1026
  f.styles,
1027
1027
  k`
1028
1028
  :host {
@@ -1045,20 +1045,20 @@ Ut.styles = [
1045
1045
  ];
1046
1046
  vr([
1047
1047
  b()
1048
- ], Ut.prototype, "href", 2);
1048
+ ], Yt.prototype, "href", 2);
1049
1049
  vr([
1050
1050
  b()
1051
- ], Ut.prototype, "label", 2);
1052
- Ut = vr([
1051
+ ], Yt.prototype, "label", 2);
1052
+ Yt = vr([
1053
1053
  A("wg-back-link")
1054
- ], Ut);
1054
+ ], Yt);
1055
1055
  var ci = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Dt = (t, e, r, o) => {
1056
1056
  for (var a = o > 1 ? void 0 : o ? pi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
1057
1057
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
1058
1058
  return o && a && ci(e, r, a), a;
1059
1059
  };
1060
1060
  const bi = 5e3, pr = 250;
1061
- let F = class extends f {
1061
+ let J = class extends f {
1062
1062
  constructor() {
1063
1063
  super(...arguments), this.title = "", this.message = "", this.buttonText = "Dismiss notification", this.type = "error", this.closing = !1, this.closeToast = () => {
1064
1064
  this.closing || (this.dismissTimeout && (window.clearTimeout(this.dismissTimeout), this.dismissTimeout = void 0), this.closing = !0, this.removeTimeout = window.setTimeout(() => {
@@ -1100,7 +1100,7 @@ let F = class extends f {
1100
1100
  `;
1101
1101
  }
1102
1102
  };
1103
- F.styles = [
1103
+ J.styles = [
1104
1104
  f.styles,
1105
1105
  k`
1106
1106
  :host {
@@ -1241,22 +1241,22 @@ F.styles = [
1241
1241
  ];
1242
1242
  Dt([
1243
1243
  b({ type: String })
1244
- ], F.prototype, "title", 2);
1244
+ ], J.prototype, "title", 2);
1245
1245
  Dt([
1246
1246
  b({ type: String })
1247
- ], F.prototype, "message", 2);
1247
+ ], J.prototype, "message", 2);
1248
1248
  Dt([
1249
1249
  b({ type: String })
1250
- ], F.prototype, "buttonText", 2);
1250
+ ], J.prototype, "buttonText", 2);
1251
1251
  Dt([
1252
1252
  b({ type: String })
1253
- ], F.prototype, "type", 2);
1253
+ ], J.prototype, "type", 2);
1254
1254
  Dt([
1255
1255
  b({ type: Boolean })
1256
- ], F.prototype, "closing", 2);
1257
- F = Dt([
1256
+ ], J.prototype, "closing", 2);
1257
+ J = Dt([
1258
1258
  A("custom-toast")
1259
- ], F);
1259
+ ], J);
1260
1260
  var mi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, Fe = (t, e, r, o) => {
1261
1261
  for (var a = o > 1 ? void 0 : o ? gi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
1262
1262
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
@@ -1389,12 +1389,12 @@ class wi extends Event {
1389
1389
  super("error-refresh", { bubbles: !0, composed: !0 });
1390
1390
  }
1391
1391
  }
1392
- let et = class extends f {
1392
+ let rt = class extends f {
1393
1393
  constructor() {
1394
1394
  super(...arguments), this.mode = "back", this.title = "Something went wrong", this.message = "An unexpected error occurred while loading this page.", this.backHref = "/", this.performDefaultAction = !0;
1395
1395
  }
1396
1396
  onBack() {
1397
- this.dispatchEvent(new vi()), this.performDefaultAction && (window.location.href = Yt(this.backHref));
1397
+ this.dispatchEvent(new vi()), this.performDefaultAction && (window.location.href = Me(this.backHref));
1398
1398
  }
1399
1399
  onRefresh() {
1400
1400
  this.dispatchEvent(new wi()), this.performDefaultAction && window.location.reload();
@@ -1424,7 +1424,7 @@ let et = class extends f {
1424
1424
  `;
1425
1425
  }
1426
1426
  };
1427
- et.styles = [
1427
+ rt.styles = [
1428
1428
  f.styles,
1429
1429
  k`
1430
1430
  :host {
@@ -1490,22 +1490,22 @@ et.styles = [
1490
1490
  ];
1491
1491
  Bt([
1492
1492
  b({ type: String })
1493
- ], et.prototype, "mode", 2);
1493
+ ], rt.prototype, "mode", 2);
1494
1494
  Bt([
1495
1495
  b({ type: String })
1496
- ], et.prototype, "title", 2);
1496
+ ], rt.prototype, "title", 2);
1497
1497
  Bt([
1498
1498
  b({ type: String })
1499
- ], et.prototype, "message", 2);
1499
+ ], rt.prototype, "message", 2);
1500
1500
  Bt([
1501
1501
  b({ type: String })
1502
- ], et.prototype, "backHref", 2);
1502
+ ], rt.prototype, "backHref", 2);
1503
1503
  Bt([
1504
1504
  b({ type: Boolean })
1505
- ], et.prototype, "performDefaultAction", 2);
1506
- et = Bt([
1505
+ ], rt.prototype, "performDefaultAction", 2);
1506
+ rt = Bt([
1507
1507
  A("wg-error-page")
1508
- ], et);
1508
+ ], rt);
1509
1509
  var xi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, fo = (t, e, r, o) => {
1510
1510
  for (var a = o > 1 ? void 0 : o ? yi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
1511
1511
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
@@ -2444,7 +2444,7 @@ const Si = ho([
2444
2444
  Cr.styles = Si;
2445
2445
  let Re = Cr;
2446
2446
  customElements.define("swk-wallet-picker", Re);
2447
- var Ii = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, at = (t, e, r, o) => {
2447
+ var Ii = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, it = (t, e, r, o) => {
2448
2448
  for (var a = o > 1 ? void 0 : o ? Oi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
2449
2449
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
2450
2450
  return o && a && Ii(e, r, a), a;
@@ -2454,7 +2454,7 @@ class Ei extends Event {
2454
2454
  super("form-input-change", { bubbles: !0, composed: !0 }), this.value = e;
2455
2455
  }
2456
2456
  }
2457
- let H = class extends f {
2457
+ let X = class extends f {
2458
2458
  constructor() {
2459
2459
  super(...arguments), this.label = "", this.value = "", this.text = "", this.required = !1, this.hideable = !1, this.hidden = !0;
2460
2460
  }
@@ -2495,7 +2495,7 @@ let H = class extends f {
2495
2495
  `;
2496
2496
  }
2497
2497
  };
2498
- H.styles = [
2498
+ X.styles = [
2499
2499
  f.styles,
2500
2500
  k`
2501
2501
  .field {
@@ -2576,33 +2576,33 @@ H.styles = [
2576
2576
  }
2577
2577
  `
2578
2578
  ];
2579
- at([
2579
+ it([
2580
2580
  b({ type: String })
2581
- ], H.prototype, "label", 2);
2582
- at([
2581
+ ], X.prototype, "label", 2);
2582
+ it([
2583
2583
  b({ type: String })
2584
- ], H.prototype, "value", 2);
2585
- at([
2584
+ ], X.prototype, "value", 2);
2585
+ it([
2586
2586
  b({ type: String })
2587
- ], H.prototype, "text", 2);
2588
- at([
2587
+ ], X.prototype, "text", 2);
2588
+ it([
2589
2589
  b({ type: Boolean })
2590
- ], H.prototype, "required", 2);
2591
- at([
2590
+ ], X.prototype, "required", 2);
2591
+ it([
2592
2592
  b({ type: Boolean })
2593
- ], H.prototype, "hideable", 2);
2594
- at([
2593
+ ], X.prototype, "hideable", 2);
2594
+ it([
2595
2595
  b({ type: Boolean })
2596
- ], H.prototype, "hidden", 2);
2597
- H = at([
2596
+ ], X.prototype, "hidden", 2);
2597
+ X = it([
2598
2598
  A("form-input")
2599
- ], H);
2600
- let Dr = class extends H {
2599
+ ], X);
2600
+ let Dr = class extends X {
2601
2601
  };
2602
- Dr = at([
2602
+ Dr = it([
2603
2603
  A("wg-form-input")
2604
2604
  ], Dr);
2605
- const qt = k`
2605
+ const Vt = k`
2606
2606
  .wg-card {
2607
2607
  background: var(--wg-surface);
2608
2608
  border: 1px solid var(--wg-border);
@@ -2656,17 +2656,17 @@ class ji extends Event {
2656
2656
  super("idp-review", { bubbles: !0, composed: !0 }), this.idp = e;
2657
2657
  }
2658
2658
  }
2659
- class Bp extends Event {
2659
+ class Dp extends Event {
2660
2660
  constructor(e) {
2661
2661
  super("delete", { bubbles: !0, composed: !0 }), this.idp = e;
2662
2662
  }
2663
2663
  }
2664
- class Np extends Event {
2664
+ class Bp extends Event {
2665
2665
  constructor() {
2666
2666
  super("update", { bubbles: !0, composed: !0 });
2667
2667
  }
2668
2668
  }
2669
- let Gt = class extends f {
2669
+ let Ut = class extends f {
2670
2670
  constructor() {
2671
2671
  super(...arguments), this.idp = null, this.readonly = !1;
2672
2672
  }
@@ -2717,9 +2717,9 @@ let Gt = class extends f {
2717
2717
  </article>`;
2718
2718
  }
2719
2719
  };
2720
- Gt.styles = [
2720
+ Ut.styles = [
2721
2721
  f.styles,
2722
- qt,
2722
+ Vt,
2723
2723
  k`
2724
2724
  :host {
2725
2725
  display: block;
@@ -2795,20 +2795,20 @@ Gt.styles = [
2795
2795
  ];
2796
2796
  wr([
2797
2797
  b({ type: Object })
2798
- ], Gt.prototype, "idp", 2);
2798
+ ], Ut.prototype, "idp", 2);
2799
2799
  wr([
2800
2800
  b({ type: Boolean })
2801
- ], Gt.prototype, "readonly", 2);
2802
- Gt = wr([
2801
+ ], Ut.prototype, "readonly", 2);
2802
+ Ut = wr([
2803
2803
  A("idp-card")
2804
- ], Gt);
2804
+ ], Ut);
2805
2805
  var Pi = Object.defineProperty, Ti = Object.getOwnPropertyDescriptor, vo = (t) => {
2806
2806
  throw TypeError(t);
2807
- }, K = (t, e, r, o) => {
2807
+ }, Q = (t, e, r, o) => {
2808
2808
  for (var a = o > 1 ? void 0 : o ? Ti(e, r) : e, n = t.length - 1, i; n >= 0; n--)
2809
2809
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
2810
2810
  return o && a && Pi(e, r, a), a;
2811
- }, wo = (t, e, r) => e.has(t) || vo("Cannot " + r), gt = (t, e, r) => (wo(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ut = (t, e, r) => e.has(t) ? vo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ft = (t, e, r, o) => (wo(t, e, "write to private field"), e.set(t, r), r), de, ce, pe, be, me, ge;
2811
+ }, wo = (t, e, r) => e.has(t) || vo("Cannot " + r), gt = (t, e, r) => (wo(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ut = (t, e, r) => e.has(t) ? vo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ft = (t, e, r, o) => (wo(t, e, "write to private field"), e.set(t, r), r), le, de, ce, pe, be, me;
2812
2812
  class Di extends Event {
2813
2813
  constructor(e) {
2814
2814
  super("idp-form-save", { bubbles: !0, composed: !0 }), this.idp = e;
@@ -2824,55 +2824,55 @@ class Ni extends Event {
2824
2824
  super("idp-form-cancel", { bubbles: !0, composed: !0 });
2825
2825
  }
2826
2826
  }
2827
- class Mp extends Event {
2827
+ class Np extends Event {
2828
2828
  constructor() {
2829
2829
  super("idp-form-back", { bubbles: !0, composed: !0 });
2830
2830
  }
2831
2831
  }
2832
- let U = class extends f {
2832
+ let G = class extends f {
2833
2833
  constructor() {
2834
- super(...arguments), ut(this, de, "add"), ut(this, ce, {
2834
+ super(...arguments), ut(this, le, "add"), ut(this, de, {
2835
2835
  id: "",
2836
2836
  type: "oauth",
2837
2837
  issuer: "",
2838
2838
  configUrl: ""
2839
- }), this.loading = !1, this._error = "", ut(this, pe, null), ut(this, be, null), ut(this, me, null), ut(this, ge, null);
2839
+ }), this.loading = !1, this._error = "", ut(this, ce, null), ut(this, pe, null), ut(this, be, null), ut(this, me, null);
2840
2840
  }
2841
2841
  get mode() {
2842
- return gt(this, de);
2842
+ return gt(this, le);
2843
2843
  }
2844
2844
  set mode(t) {
2845
- ft(this, de, t);
2845
+ ft(this, le, t);
2846
2846
  }
2847
2847
  get idp() {
2848
- return gt(this, ce);
2848
+ return gt(this, de);
2849
2849
  }
2850
2850
  set idp(t) {
2851
- ft(this, ce, t);
2851
+ ft(this, de, t);
2852
2852
  }
2853
2853
  get idpIdInput() {
2854
- return gt(this, pe);
2854
+ return gt(this, ce);
2855
2855
  }
2856
2856
  set idpIdInput(t) {
2857
- ft(this, pe, t);
2857
+ ft(this, ce, t);
2858
2858
  }
2859
2859
  get idpTypeSelect() {
2860
- return gt(this, be);
2860
+ return gt(this, pe);
2861
2861
  }
2862
2862
  set idpTypeSelect(t) {
2863
- ft(this, be, t);
2863
+ ft(this, pe, t);
2864
2864
  }
2865
2865
  get idpIssuerInput() {
2866
- return gt(this, me);
2866
+ return gt(this, be);
2867
2867
  }
2868
2868
  set idpIssuerInput(t) {
2869
- ft(this, me, t);
2869
+ ft(this, be, t);
2870
2870
  }
2871
2871
  get idpConfigUrlInput() {
2872
- return gt(this, ge);
2872
+ return gt(this, me);
2873
2873
  }
2874
2874
  set idpConfigUrlInput(t) {
2875
- ft(this, ge, t);
2875
+ ft(this, me, t);
2876
2876
  }
2877
2877
  handleSubmit(t) {
2878
2878
  t.preventDefault();
@@ -2927,7 +2927,7 @@ let U = class extends f {
2927
2927
  <option value="self_signed">self_signed</option>
2928
2928
  </select>
2929
2929
  <span class="select-chevron"
2930
- >${Vt}</span
2930
+ >${Xt}</span
2931
2931
  >
2932
2932
  </div>
2933
2933
  </div>
@@ -3022,13 +3022,13 @@ let U = class extends f {
3022
3022
  `;
3023
3023
  }
3024
3024
  };
3025
+ le = /* @__PURE__ */ new WeakMap();
3025
3026
  de = /* @__PURE__ */ new WeakMap();
3026
3027
  ce = /* @__PURE__ */ new WeakMap();
3027
3028
  pe = /* @__PURE__ */ new WeakMap();
3028
3029
  be = /* @__PURE__ */ new WeakMap();
3029
3030
  me = /* @__PURE__ */ new WeakMap();
3030
- ge = /* @__PURE__ */ new WeakMap();
3031
- U.styles = [
3031
+ G.styles = [
3032
3032
  f.styles,
3033
3033
  k`
3034
3034
  :host {
@@ -3189,33 +3189,33 @@ U.styles = [
3189
3189
  }
3190
3190
  `
3191
3191
  ];
3192
- K([
3192
+ Q([
3193
3193
  b({ type: String })
3194
- ], U.prototype, "mode", 1);
3195
- K([
3194
+ ], G.prototype, "mode", 1);
3195
+ Q([
3196
3196
  b({ type: Object })
3197
- ], U.prototype, "idp", 1);
3198
- K([
3197
+ ], G.prototype, "idp", 1);
3198
+ Q([
3199
3199
  b({ type: Boolean })
3200
- ], U.prototype, "loading", 2);
3201
- K([
3200
+ ], G.prototype, "loading", 2);
3201
+ Q([
3202
3202
  T()
3203
- ], U.prototype, "_error", 2);
3204
- K([
3203
+ ], G.prototype, "_error", 2);
3204
+ Q([
3205
3205
  pt("#idp-id")
3206
- ], U.prototype, "idpIdInput", 1);
3207
- K([
3206
+ ], G.prototype, "idpIdInput", 1);
3207
+ Q([
3208
3208
  pt("#idp-type")
3209
- ], U.prototype, "idpTypeSelect", 1);
3210
- K([
3209
+ ], G.prototype, "idpTypeSelect", 1);
3210
+ Q([
3211
3211
  pt("#idp-issuer")
3212
- ], U.prototype, "idpIssuerInput", 1);
3213
- K([
3212
+ ], G.prototype, "idpIssuerInput", 1);
3213
+ Q([
3214
3214
  pt("#idp-config-url")
3215
- ], U.prototype, "idpConfigUrlInput", 1);
3216
- U = K([
3215
+ ], G.prototype, "idpConfigUrlInput", 1);
3216
+ G = Q([
3217
3217
  A("idp-form")
3218
- ], U);
3218
+ ], G);
3219
3219
  const xo = k`
3220
3220
  .modal {
3221
3221
  position: fixed;
@@ -3255,11 +3255,11 @@ const xo = k`
3255
3255
  `;
3256
3256
  var Mi = Object.defineProperty, Zi = Object.getOwnPropertyDescriptor, yo = (t) => {
3257
3257
  throw TypeError(t);
3258
- }, Ft = (t, e, r, o) => {
3258
+ }, qt = (t, e, r, o) => {
3259
3259
  for (var a = o > 1 ? void 0 : o ? Zi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
3260
3260
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
3261
3261
  return o && a && Mi(e, r, a), a;
3262
- }, ko = (t, e, r) => e.has(t) || yo("Cannot " + r), Qt = (t, e, r) => (ko(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Wt = (t, e, r) => e.has(t) ? yo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), te = (t, e, r, o) => (ko(t, e, "write to private field"), e.set(t, r), r), ue, fe, he, ve;
3262
+ }, ko = (t, e, r) => e.has(t) || yo("Cannot " + r), Kt = (t, e, r) => (ko(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Qt = (t, e, r) => e.has(t) ? yo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Wt = (t, e, r, o) => (ko(t, e, "write to private field"), e.set(t, r), r), ge, ue, fe, he;
3263
3263
  class Ri extends Event {
3264
3264
  constructor(e) {
3265
3265
  super("idp-add", { bubbles: !0, composed: !0 }), this.idp = e;
@@ -3267,7 +3267,7 @@ class Ri extends Event {
3267
3267
  }
3268
3268
  let lt = class extends f {
3269
3269
  constructor() {
3270
- super(...arguments), Wt(this, ue, []), Wt(this, fe, !1), Wt(this, he, !1), Wt(this, ve, {
3270
+ super(...arguments), Qt(this, ge, []), Qt(this, ue, !1), Qt(this, fe, !1), Qt(this, he, {
3271
3271
  id: "",
3272
3272
  type: "oauth",
3273
3273
  issuer: "",
@@ -3284,28 +3284,28 @@ let lt = class extends f {
3284
3284
  };
3285
3285
  }
3286
3286
  get idps() {
3287
- return Qt(this, ue);
3287
+ return Kt(this, ge);
3288
3288
  }
3289
3289
  set idps(t) {
3290
- te(this, ue, t);
3290
+ Wt(this, ge, t);
3291
3291
  }
3292
3292
  get readonly() {
3293
- return Qt(this, fe);
3293
+ return Kt(this, ue);
3294
3294
  }
3295
3295
  set readonly(t) {
3296
- te(this, fe, t);
3296
+ Wt(this, ue, t);
3297
3297
  }
3298
3298
  get isModalOpen() {
3299
- return Qt(this, he);
3299
+ return Kt(this, fe);
3300
3300
  }
3301
3301
  set isModalOpen(t) {
3302
- te(this, he, t);
3302
+ Wt(this, fe, t);
3303
3303
  }
3304
3304
  get modalIdp() {
3305
- return Qt(this, ve);
3305
+ return Kt(this, he);
3306
3306
  }
3307
3307
  set modalIdp(t) {
3308
- te(this, ve, t);
3308
+ Wt(this, he, t);
3309
3309
  }
3310
3310
  connectedCallback() {
3311
3311
  super.connectedCallback();
@@ -3420,24 +3420,24 @@ let lt = class extends f {
3420
3420
  `;
3421
3421
  }
3422
3422
  };
3423
+ ge = /* @__PURE__ */ new WeakMap();
3423
3424
  ue = /* @__PURE__ */ new WeakMap();
3424
3425
  fe = /* @__PURE__ */ new WeakMap();
3425
3426
  he = /* @__PURE__ */ new WeakMap();
3426
- ve = /* @__PURE__ */ new WeakMap();
3427
3427
  lt.styles = [f.styles, xo];
3428
- Ft([
3428
+ qt([
3429
3429
  b({ type: Array })
3430
3430
  ], lt.prototype, "idps", 1);
3431
- Ft([
3431
+ qt([
3432
3432
  b({ type: Boolean })
3433
3433
  ], lt.prototype, "readonly", 1);
3434
- Ft([
3434
+ qt([
3435
3435
  T()
3436
3436
  ], lt.prototype, "isModalOpen", 1);
3437
- Ft([
3437
+ qt([
3438
3438
  T()
3439
3439
  ], lt.prototype, "modalIdp", 1);
3440
- lt = Ft([
3440
+ lt = qt([
3441
3441
  A("wg-idps")
3442
3442
  ], lt);
3443
3443
  var $i = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, Ke = (t, e, r, o) => {
@@ -3486,7 +3486,7 @@ Ke([
3486
3486
  St = Ke([
3487
3487
  A("network-table")
3488
3488
  ], St);
3489
- var Ui = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, Jt = (t, e, r, o) => {
3489
+ var Ui = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, Ft = (t, e, r, o) => {
3490
3490
  for (var a = o > 1 ? void 0 : o ? Gi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
3491
3491
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
3492
3492
  return o && a && Ui(e, r, a), a;
@@ -3496,12 +3496,12 @@ class Li extends Event {
3496
3496
  super("network-review", { bubbles: !0, composed: !0 }), this.network = e;
3497
3497
  }
3498
3498
  }
3499
- class Zp extends Event {
3499
+ class Mp extends Event {
3500
3500
  constructor(e) {
3501
3501
  super("delete", { bubbles: !0, composed: !0 }), this.network = e;
3502
3502
  }
3503
3503
  }
3504
- class Rp extends Event {
3504
+ class Zp extends Event {
3505
3505
  constructor() {
3506
3506
  super("update", { bubbles: !0, composed: !0 });
3507
3507
  }
@@ -3580,7 +3580,7 @@ let dt = class extends f {
3580
3580
  };
3581
3581
  dt.styles = [
3582
3582
  f.styles,
3583
- qt,
3583
+ Vt,
3584
3584
  k`
3585
3585
  :host {
3586
3586
  display: block;
@@ -3679,19 +3679,19 @@ dt.styles = [
3679
3679
  }
3680
3680
  `
3681
3681
  ];
3682
- Jt([
3682
+ Ft([
3683
3683
  b({ type: Object })
3684
3684
  ], dt.prototype, "network", 2);
3685
- Jt([
3685
+ Ft([
3686
3686
  b({ type: Boolean })
3687
3687
  ], dt.prototype, "activeSession", 2);
3688
- Jt([
3688
+ Ft([
3689
3689
  b({ type: String })
3690
3690
  ], dt.prototype, "accessToken", 2);
3691
- Jt([
3691
+ Ft([
3692
3692
  b({ type: Boolean })
3693
3693
  ], dt.prototype, "readonly", 2);
3694
- dt = Jt([
3694
+ dt = Ft([
3695
3695
  A("network-card")
3696
3696
  ], dt);
3697
3697
  function d(t, e, r) {
@@ -3739,7 +3739,7 @@ class zo extends Error {
3739
3739
  }
3740
3740
  }
3741
3741
  const Ao = {};
3742
- function rt(t) {
3742
+ function ot(t) {
3743
3743
  return Ao;
3744
3744
  }
3745
3745
  function So(t) {
@@ -3801,7 +3801,7 @@ function bt(t, e, r) {
3801
3801
  configurable: !0
3802
3802
  });
3803
3803
  }
3804
- function it(...t) {
3804
+ function nt(...t) {
3805
3805
  const e = {};
3806
3806
  for (const r of t) {
3807
3807
  const o = Object.getOwnPropertyDescriptors(r);
@@ -3817,7 +3817,7 @@ function Xi(t) {
3817
3817
  }
3818
3818
  const Io = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
3819
3819
  };
3820
- function Lt(t) {
3820
+ function Gt(t) {
3821
3821
  return typeof t == "object" && t !== null && !Array.isArray(t);
3822
3822
  }
3823
3823
  const Vi = Qe(() => {
@@ -3831,13 +3831,13 @@ const Vi = Qe(() => {
3831
3831
  }
3832
3832
  });
3833
3833
  function It(t) {
3834
- if (Lt(t) === !1)
3834
+ if (Gt(t) === !1)
3835
3835
  return !1;
3836
3836
  const e = t.constructor;
3837
3837
  if (e === void 0 || typeof e != "function")
3838
3838
  return !0;
3839
3839
  const r = e.prototype;
3840
- return !(Lt(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
3840
+ return !(Gt(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
3841
3841
  }
3842
3842
  function Oo(t) {
3843
3843
  return It(t) ? { ...t } : Array.isArray(t) ? [...t] : t;
@@ -3846,7 +3846,7 @@ const qi = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
3846
3846
  function Ot(t) {
3847
3847
  return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3848
3848
  }
3849
- function nt(t, e, r) {
3849
+ function st(t, e, r) {
3850
3850
  const o = new t._zod.constr(e ?? t._zod.def);
3851
3851
  return (!e || r?.parent) && (o._zod.parent = t), o;
3852
3852
  }
@@ -3877,7 +3877,7 @@ function Ki(t, e) {
3877
3877
  const r = t._zod.def, o = r.checks;
3878
3878
  if (o && o.length > 0)
3879
3879
  throw new Error(".pick() cannot be used on object schemas containing refinements");
3880
- const n = it(t._zod.def, {
3880
+ const n = nt(t._zod.def, {
3881
3881
  get shape() {
3882
3882
  const i = {};
3883
3883
  for (const s in e) {
@@ -3889,13 +3889,13 @@ function Ki(t, e) {
3889
3889
  },
3890
3890
  checks: []
3891
3891
  });
3892
- return nt(t, n);
3892
+ return st(t, n);
3893
3893
  }
3894
3894
  function Qi(t, e) {
3895
3895
  const r = t._zod.def, o = r.checks;
3896
3896
  if (o && o.length > 0)
3897
3897
  throw new Error(".omit() cannot be used on object schemas containing refinements");
3898
- const n = it(t._zod.def, {
3898
+ const n = nt(t._zod.def, {
3899
3899
  get shape() {
3900
3900
  const i = { ...t._zod.def.shape };
3901
3901
  for (const s in e) {
@@ -3907,7 +3907,7 @@ function Qi(t, e) {
3907
3907
  },
3908
3908
  checks: []
3909
3909
  });
3910
- return nt(t, n);
3910
+ return st(t, n);
3911
3911
  }
3912
3912
  function Wi(t, e) {
3913
3913
  if (!It(e))
@@ -3919,27 +3919,27 @@ function Wi(t, e) {
3919
3919
  if (Object.getOwnPropertyDescriptor(n, i) !== void 0)
3920
3920
  throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
3921
3921
  }
3922
- const a = it(t._zod.def, {
3922
+ const a = nt(t._zod.def, {
3923
3923
  get shape() {
3924
3924
  const n = { ...t._zod.def.shape, ...e };
3925
3925
  return bt(this, "shape", n), n;
3926
3926
  }
3927
3927
  });
3928
- return nt(t, a);
3928
+ return st(t, a);
3929
3929
  }
3930
3930
  function tn(t, e) {
3931
3931
  if (!It(e))
3932
3932
  throw new Error("Invalid input to safeExtend: expected a plain object");
3933
- const r = it(t._zod.def, {
3933
+ const r = nt(t._zod.def, {
3934
3934
  get shape() {
3935
3935
  const o = { ...t._zod.def.shape, ...e };
3936
3936
  return bt(this, "shape", o), o;
3937
3937
  }
3938
3938
  });
3939
- return nt(t, r);
3939
+ return st(t, r);
3940
3940
  }
3941
3941
  function en(t, e) {
3942
- const r = it(t._zod.def, {
3942
+ const r = nt(t._zod.def, {
3943
3943
  get shape() {
3944
3944
  const o = { ...t._zod.def.shape, ...e._zod.def.shape };
3945
3945
  return bt(this, "shape", o), o;
@@ -3950,13 +3950,13 @@ function en(t, e) {
3950
3950
  checks: []
3951
3951
  // delete existing checks
3952
3952
  });
3953
- return nt(t, r);
3953
+ return st(t, r);
3954
3954
  }
3955
3955
  function rn(t, e, r) {
3956
3956
  const a = e._zod.def.checks;
3957
3957
  if (a && a.length > 0)
3958
3958
  throw new Error(".partial() cannot be used on object schemas containing refinements");
3959
- const i = it(e._zod.def, {
3959
+ const i = nt(e._zod.def, {
3960
3960
  get shape() {
3961
3961
  const s = e._zod.def.shape, l = { ...s };
3962
3962
  if (r)
@@ -3978,10 +3978,10 @@ function rn(t, e, r) {
3978
3978
  },
3979
3979
  checks: []
3980
3980
  });
3981
- return nt(e, i);
3981
+ return st(e, i);
3982
3982
  }
3983
3983
  function on(t, e, r) {
3984
- const o = it(e._zod.def, {
3984
+ const o = nt(e._zod.def, {
3985
3985
  get shape() {
3986
3986
  const a = e._zod.def.shape, n = { ...a };
3987
3987
  if (r)
@@ -4002,7 +4002,7 @@ function on(t, e, r) {
4002
4002
  return bt(this, "shape", n), n;
4003
4003
  }
4004
4004
  });
4005
- return nt(e, o);
4005
+ return st(e, o);
4006
4006
  }
4007
4007
  function xt(t, e = 0) {
4008
4008
  if (t.aborted === !0)
@@ -4018,13 +4018,13 @@ function yt(t, e) {
4018
4018
  return (o = r).path ?? (o.path = []), r.path.unshift(t), r;
4019
4019
  });
4020
4020
  }
4021
- function ee(t) {
4021
+ function te(t) {
4022
4022
  return typeof t == "string" ? t : t?.message;
4023
4023
  }
4024
- function ot(t, e, r) {
4024
+ function at(t, e, r) {
4025
4025
  const o = { ...t, path: t.path ?? [] };
4026
4026
  if (!t.message) {
4027
- const a = ee(t.inst?._zod.def?.error?.(t)) ?? ee(e?.error?.(t)) ?? ee(r.customError?.(t)) ?? ee(r.localeError?.(t)) ?? "Invalid input";
4027
+ const a = te(t.inst?._zod.def?.error?.(t)) ?? te(e?.error?.(t)) ?? te(r.customError?.(t)) ?? te(r.localeError?.(t)) ?? "Invalid input";
4028
4028
  o.message = a;
4029
4029
  }
4030
4030
  return delete o.inst, delete o.continue, e?.reportInput || delete o.input, o;
@@ -4032,7 +4032,7 @@ function ot(t, e, r) {
4032
4032
  function kr(t) {
4033
4033
  return Array.isArray(t) ? "array" : typeof t == "string" ? "string" : "unknown";
4034
4034
  }
4035
- function Ht(...t) {
4035
+ function Lt(...t) {
4036
4036
  const [e, r, o] = t;
4037
4037
  return typeof e == "string" ? {
4038
4038
  message: e,
@@ -4085,7 +4085,7 @@ const zr = (t) => (e, r, o, a) => {
4085
4085
  if (i instanceof Promise)
4086
4086
  throw new kt();
4087
4087
  if (i.issues.length) {
4088
- const s = new (a?.Err ?? t)(i.issues.map((l) => ot(l, n, rt())));
4088
+ const s = new (a?.Err ?? t)(i.issues.map((l) => at(l, n, ot())));
4089
4089
  throw Io(s, a?.callee), s;
4090
4090
  }
4091
4091
  return i.value;
@@ -4093,7 +4093,7 @@ const zr = (t) => (e, r, o, a) => {
4093
4093
  const n = o ? Object.assign(o, { async: !0 }) : { async: !0 };
4094
4094
  let i = e._zod.run({ value: r, issues: [] }, n);
4095
4095
  if (i instanceof Promise && (i = await i), i.issues.length) {
4096
- const s = new (a?.Err ?? t)(i.issues.map((l) => ot(l, n, rt())));
4096
+ const s = new (a?.Err ?? t)(i.issues.map((l) => at(l, n, ot())));
4097
4097
  throw Io(s, a?.callee), s;
4098
4098
  }
4099
4099
  return i.value;
@@ -4103,14 +4103,14 @@ const zr = (t) => (e, r, o, a) => {
4103
4103
  throw new kt();
4104
4104
  return n.issues.length ? {
4105
4105
  success: !1,
4106
- error: new (t ?? Co)(n.issues.map((i) => ot(i, a, rt())))
4106
+ error: new (t ?? Co)(n.issues.map((i) => at(i, a, ot())))
4107
4107
  } : { success: !0, data: n.value };
4108
4108
  }, sn = /* @__PURE__ */ We(_o), tr = (t) => async (e, r, o) => {
4109
4109
  const a = o ? Object.assign(o, { async: !0 }) : { async: !0 };
4110
4110
  let n = e._zod.run({ value: r, issues: [] }, a);
4111
4111
  return n instanceof Promise && (n = await n), n.issues.length ? {
4112
4112
  success: !1,
4113
- error: new t(n.issues.map((i) => ot(i, a, rt())))
4113
+ error: new t(n.issues.map((i) => at(i, a, ot())))
4114
4114
  } : { success: !0, data: n.value };
4115
4115
  }, ln = /* @__PURE__ */ tr(_o), dn = (t) => (e, r, o) => {
4116
4116
  const a = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" };
@@ -4880,7 +4880,7 @@ const Ns = /* @__PURE__ */ d("$ZodObject", (t, e) => {
4880
4880
  }
4881
4881
  return l;
4882
4882
  });
4883
- const a = Lt, n = e.catchall;
4883
+ const a = Gt, n = e.catchall;
4884
4884
  let i;
4885
4885
  t._zod.parse = (s, l) => {
4886
4886
  i ?? (i = o.value);
@@ -4896,67 +4896,67 @@ const Ns = /* @__PURE__ */ d("$ZodObject", (t, e) => {
4896
4896
  const m = [], g = i.shape;
4897
4897
  for (const v of i.keys) {
4898
4898
  const w = g[v], z = w._zod.optout === "optional", j = w._zod.run({ value: c[v], issues: [] }, l);
4899
- j instanceof Promise ? m.push(j.then((Kt) => $e(Kt, s, v, c, z))) : $e(j, s, v, c, z);
4899
+ j instanceof Promise ? m.push(j.then((Jt) => $e(Jt, s, v, c, z))) : $e(j, s, v, c, z);
4900
4900
  }
4901
4901
  return n ? Yo(m, c, s, l, o.value, t) : m.length ? Promise.all(m).then(() => s) : s;
4902
4902
  };
4903
4903
  }), Ms = /* @__PURE__ */ d("$ZodObjectJIT", (t, e) => {
4904
4904
  Ns.init(t, e);
4905
4905
  const r = t._zod.parse, o = Qe(() => $o(e)), a = (v) => {
4906
- const w = new rs(["shape", "payload", "ctx"]), z = o.value, j = (L) => {
4907
- const N = Nr(L);
4906
+ const w = new rs(["shape", "payload", "ctx"]), z = o.value, j = (H) => {
4907
+ const N = Nr(H);
4908
4908
  return `shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`;
4909
4909
  };
4910
4910
  w.write("const input = payload.value;");
4911
- const Kt = /* @__PURE__ */ Object.create(null);
4911
+ const Jt = /* @__PURE__ */ Object.create(null);
4912
4912
  let Sa = 0;
4913
- for (const L of z.keys)
4914
- Kt[L] = `key_${Sa++}`;
4913
+ for (const H of z.keys)
4914
+ Jt[H] = `key_${Sa++}`;
4915
4915
  w.write("const newResult = {};");
4916
- for (const L of z.keys) {
4917
- const N = Kt[L], Y = Nr(L), Oa = v[L]?._zod?.optout === "optional";
4918
- w.write(`const ${N} = ${j(L)};`), Oa ? w.write(`
4916
+ for (const H of z.keys) {
4917
+ const N = Jt[H], U = Nr(H), Oa = v[H]?._zod?.optout === "optional";
4918
+ w.write(`const ${N} = ${j(H)};`), Oa ? w.write(`
4919
4919
  if (${N}.issues.length) {
4920
- if (${Y} in input) {
4920
+ if (${U} in input) {
4921
4921
  payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
4922
4922
  ...iss,
4923
- path: iss.path ? [${Y}, ...iss.path] : [${Y}]
4923
+ path: iss.path ? [${U}, ...iss.path] : [${U}]
4924
4924
  })));
4925
4925
  }
4926
4926
  }
4927
4927
 
4928
4928
  if (${N}.value === undefined) {
4929
- if (${Y} in input) {
4930
- newResult[${Y}] = undefined;
4929
+ if (${U} in input) {
4930
+ newResult[${U}] = undefined;
4931
4931
  }
4932
4932
  } else {
4933
- newResult[${Y}] = ${N}.value;
4933
+ newResult[${U}] = ${N}.value;
4934
4934
  }
4935
4935
 
4936
4936
  `) : w.write(`
4937
4937
  if (${N}.issues.length) {
4938
4938
  payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
4939
4939
  ...iss,
4940
- path: iss.path ? [${Y}, ...iss.path] : [${Y}]
4940
+ path: iss.path ? [${U}, ...iss.path] : [${U}]
4941
4941
  })));
4942
4942
  }
4943
4943
 
4944
4944
  if (${N}.value === undefined) {
4945
- if (${Y} in input) {
4946
- newResult[${Y}] = undefined;
4945
+ if (${U} in input) {
4946
+ newResult[${U}] = undefined;
4947
4947
  }
4948
4948
  } else {
4949
- newResult[${Y}] = ${N}.value;
4949
+ newResult[${U}] = ${N}.value;
4950
4950
  }
4951
4951
 
4952
4952
  `);
4953
4953
  }
4954
4954
  w.write("payload.value = newResult;"), w.write("return payload;");
4955
4955
  const Ia = w.compile();
4956
- return (L, N) => Ia(v, L, N);
4956
+ return (H, N) => Ia(v, H, N);
4957
4957
  };
4958
4958
  let n;
4959
- const i = Lt, s = !Ao.jitless, c = s && Vi.value, m = e.catchall;
4959
+ const i = Gt, s = !Ao.jitless, c = s && Vi.value, m = e.catchall;
4960
4960
  let g;
4961
4961
  t._zod.parse = (v, w) => {
4962
4962
  g ?? (g = o.value);
@@ -4978,7 +4978,7 @@ function Rr(t, e, r, o) {
4978
4978
  code: "invalid_union",
4979
4979
  input: e.value,
4980
4980
  inst: r,
4981
- errors: t.map((n) => n.issues.map((i) => ot(i, o, rt())))
4981
+ errors: t.map((n) => n.issues.map((i) => at(i, o, ot())))
4982
4982
  }), e);
4983
4983
  }
4984
4984
  const Uo = /* @__PURE__ */ d("$ZodUnion", (t, e) => {
@@ -5045,7 +5045,7 @@ const Uo = /* @__PURE__ */ d("$ZodUnion", (t, e) => {
5045
5045
  });
5046
5046
  t._zod.parse = (a, n) => {
5047
5047
  const i = a.value;
5048
- if (!Lt(i))
5048
+ if (!Gt(i))
5049
5049
  return a.issues.push({
5050
5050
  code: "invalid_type",
5051
5051
  expected: "object",
@@ -5177,7 +5177,7 @@ const $s = /* @__PURE__ */ d("$ZodRecord", (t, e) => {
5177
5177
  e.mode === "loose" ? r.value[s] = a[s] : r.issues.push({
5178
5178
  code: "invalid_key",
5179
5179
  origin: "record",
5180
- issues: l.issues.map((g) => ot(g, o, rt())),
5180
+ issues: l.issues.map((g) => at(g, o, ot())),
5181
5181
  input: s,
5182
5182
  path: [s],
5183
5183
  inst: t
@@ -5290,13 +5290,13 @@ const Fs = /* @__PURE__ */ d("$ZodCatch", (t, e) => {
5290
5290
  return a instanceof Promise ? a.then((n) => (r.value = n.value, n.issues.length && (r.value = e.catchValue({
5291
5291
  ...r,
5292
5292
  error: {
5293
- issues: n.issues.map((i) => ot(i, o, rt()))
5293
+ issues: n.issues.map((i) => at(i, o, ot()))
5294
5294
  },
5295
5295
  input: r.value
5296
5296
  }), r.issues = []), r)) : (r.value = a.value, a.issues.length && (r.value = e.catchValue({
5297
5297
  ...r,
5298
5298
  error: {
5299
- issues: a.issues.map((n) => ot(n, o, rt()))
5299
+ issues: a.issues.map((n) => at(n, o, ot()))
5300
5300
  },
5301
5301
  input: r.value
5302
5302
  }), r.issues = []), r);
@@ -5305,13 +5305,13 @@ const Fs = /* @__PURE__ */ d("$ZodCatch", (t, e) => {
5305
5305
  S.init(t, e), x(t._zod, "values", () => e.in._zod.values), x(t._zod, "optin", () => e.in._zod.optin), x(t._zod, "optout", () => e.out._zod.optout), x(t._zod, "propValues", () => e.in._zod.propValues), t._zod.parse = (r, o) => {
5306
5306
  if (o.direction === "backward") {
5307
5307
  const n = e.out._zod.run(r, o);
5308
- return n instanceof Promise ? n.then((i) => re(i, e.in, o)) : re(n, e.in, o);
5308
+ return n instanceof Promise ? n.then((i) => ee(i, e.in, o)) : ee(n, e.in, o);
5309
5309
  }
5310
5310
  const a = e.in._zod.run(r, o);
5311
- return a instanceof Promise ? a.then((n) => re(n, e.out, o)) : re(a, e.out, o);
5311
+ return a instanceof Promise ? a.then((n) => ee(n, e.out, o)) : ee(a, e.out, o);
5312
5312
  };
5313
5313
  });
5314
- function re(t, e, r) {
5314
+ function ee(t, e, r) {
5315
5315
  return t.issues.length ? (t.aborted = !0, t) : e._zod.run({ value: t.value, issues: t.issues }, r);
5316
5316
  }
5317
5317
  const Ks = /* @__PURE__ */ d("$ZodReadonly", (t, e) => {
@@ -5345,7 +5345,7 @@ function Hr(t, e, r, o) {
5345
5345
  continue: !o._zod.def.abort
5346
5346
  // params: inst._zod.def.params,
5347
5347
  };
5348
- o._zod.def.params && (a.params = o._zod.def.params), e.issues.push(Ht(a));
5348
+ o._zod.def.params && (a.params = o._zod.def.params), e.issues.push(Lt(a));
5349
5349
  }
5350
5350
  }
5351
5351
  var Xr;
@@ -5876,10 +5876,10 @@ function Xl(t, e, r) {
5876
5876
  function Vl(t) {
5877
5877
  const e = /* @__PURE__ */ ql((r) => (r.addIssue = (o) => {
5878
5878
  if (typeof o == "string")
5879
- r.issues.push(Ht(o, r.value, e._zod.def));
5879
+ r.issues.push(Lt(o, r.value, e._zod.def));
5880
5880
  else {
5881
5881
  const a = o;
5882
- a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), a.continue ?? (a.continue = !e._zod.def.abort), r.issues.push(Ht(a));
5882
+ a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), a.continue ?? (a.continue = !e._zod.def.abort), r.issues.push(Lt(a));
5883
5883
  }
5884
5884
  }, t(r.value, r)));
5885
5885
  return e;
@@ -6345,21 +6345,21 @@ const Ed = (t, e) => {
6345
6345
  // enumerable: false,
6346
6346
  }
6347
6347
  });
6348
- }, $ = d("ZodError", Ed, {
6348
+ }, Y = d("ZodError", Ed, {
6349
6349
  Parent: Error
6350
- }), Cd = /* @__PURE__ */ zr($), _d = /* @__PURE__ */ Ar($), jd = /* @__PURE__ */ We($), Pd = /* @__PURE__ */ tr($), Td = /* @__PURE__ */ dn($), Dd = /* @__PURE__ */ cn($), Bd = /* @__PURE__ */ pn($), Nd = /* @__PURE__ */ bn($), Md = /* @__PURE__ */ mn($), Zd = /* @__PURE__ */ gn($), Rd = /* @__PURE__ */ un($), $d = /* @__PURE__ */ fn($), I = /* @__PURE__ */ d("ZodType", (t, e) => (S.init(t, e), Object.assign(t["~standard"], {
6350
+ }), Cd = /* @__PURE__ */ zr(Y), _d = /* @__PURE__ */ Ar(Y), jd = /* @__PURE__ */ We(Y), Pd = /* @__PURE__ */ tr(Y), Td = /* @__PURE__ */ dn(Y), Dd = /* @__PURE__ */ cn(Y), Bd = /* @__PURE__ */ pn(Y), Nd = /* @__PURE__ */ bn(Y), Md = /* @__PURE__ */ mn(Y), Zd = /* @__PURE__ */ gn(Y), Rd = /* @__PURE__ */ un(Y), $d = /* @__PURE__ */ fn(Y), I = /* @__PURE__ */ d("ZodType", (t, e) => (S.init(t, e), Object.assign(t["~standard"], {
6351
6351
  jsonSchema: {
6352
6352
  input: Ue(t, "input"),
6353
6353
  output: Ue(t, "output")
6354
6354
  }
6355
- }), t.toJSONSchema = Fl(t, {}), t.def = e, t.type = e.type, Object.defineProperty(t, "_def", { value: e }), t.check = (...r) => t.clone(it(e, {
6355
+ }), t.toJSONSchema = Fl(t, {}), t.def = e, t.type = e.type, Object.defineProperty(t, "_def", { value: e }), t.check = (...r) => t.clone(nt(e, {
6356
6356
  checks: [
6357
6357
  ...e.checks ?? [],
6358
6358
  ...r.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o)
6359
6359
  ]
6360
6360
  }), {
6361
6361
  parent: !0
6362
- }), t.with = t.check, t.clone = (r, o) => nt(t, r, o), t.brand = () => t, t.register = ((r, o) => (r.add(t, o), t)), t.parse = (r, o) => Cd(t, r, o, { callee: t.parse }), t.safeParse = (r, o) => jd(t, r, o), t.parseAsync = async (r, o) => _d(t, r, o, { callee: t.parseAsync }), t.safeParseAsync = async (r, o) => Pd(t, r, o), t.spa = t.safeParseAsync, t.encode = (r, o) => Td(t, r, o), t.decode = (r, o) => Dd(t, r, o), t.encodeAsync = async (r, o) => Bd(t, r, o), t.decodeAsync = async (r, o) => Nd(t, r, o), t.safeEncode = (r, o) => Md(t, r, o), t.safeDecode = (r, o) => Zd(t, r, o), t.safeEncodeAsync = async (r, o) => Rd(t, r, o), t.safeDecodeAsync = async (r, o) => $d(t, r, o), t.refine = (r, o) => t.check(Mc(r, o)), t.superRefine = (r) => t.check(Zc(r)), t.overwrite = (r) => t.check(/* @__PURE__ */ Nt(r)), t.optional = () => ct(t), t.exactOptional = () => Ac(t), t.nullable = () => Wr(t), t.nullish = () => ct(Wr(t)), t.nonoptional = (r) => _c(t, r), t.array = () => Le(t), t.or = (r) => Ir([t, r]), t.and = (r) => Or(t, r), t.transform = (r) => to(t, kc(r)), t.default = (r) => Oc(t, r), t.prefault = (r) => Cc(t, r), t.catch = (r) => Pc(t, r), t.pipe = (r) => to(t, r), t.readonly = () => Bc(t), t.describe = (r) => {
6362
+ }), t.with = t.check, t.clone = (r, o) => st(t, r, o), t.brand = () => t, t.register = ((r, o) => (r.add(t, o), t)), t.parse = (r, o) => Cd(t, r, o, { callee: t.parse }), t.safeParse = (r, o) => jd(t, r, o), t.parseAsync = async (r, o) => _d(t, r, o, { callee: t.parseAsync }), t.safeParseAsync = async (r, o) => Pd(t, r, o), t.spa = t.safeParseAsync, t.encode = (r, o) => Td(t, r, o), t.decode = (r, o) => Dd(t, r, o), t.encodeAsync = async (r, o) => Bd(t, r, o), t.decodeAsync = async (r, o) => Nd(t, r, o), t.safeEncode = (r, o) => Md(t, r, o), t.safeDecode = (r, o) => Zd(t, r, o), t.safeEncodeAsync = async (r, o) => Rd(t, r, o), t.safeDecodeAsync = async (r, o) => $d(t, r, o), t.refine = (r, o) => t.check(Mc(r, o)), t.superRefine = (r) => t.check(Zc(r)), t.overwrite = (r) => t.check(/* @__PURE__ */ Nt(r)), t.optional = () => ct(t), t.exactOptional = () => Ac(t), t.nullable = () => Wr(t), t.nullish = () => ct(Wr(t)), t.nonoptional = (r) => _c(t, r), t.array = () => Le(t), t.or = (r) => Ir([t, r]), t.and = (r) => Or(t, r), t.transform = (r) => to(t, kc(r)), t.default = (r) => Oc(t, r), t.prefault = (r) => Cc(t, r), t.catch = (r) => Pc(t, r), t.pipe = (r) => to(t, r), t.readonly = () => Bc(t), t.describe = (r) => {
6363
6363
  const o = t.clone();
6364
6364
  return Rt.add(o, { description: r }), o;
6365
6365
  }, Object.defineProperty(t, "description", {
@@ -6377,7 +6377,7 @@ const Ed = (t, e) => {
6377
6377
  const r = t._zod.bag;
6378
6378
  t.format = r.format ?? null, t.minLength = r.minimum ?? null, t.maxLength = r.maximum ?? null, t.regex = (...o) => t.check(/* @__PURE__ */ Dl(...o)), t.includes = (...o) => t.check(/* @__PURE__ */ Ml(...o)), t.startsWith = (...o) => t.check(/* @__PURE__ */ Zl(...o)), t.endsWith = (...o) => t.check(/* @__PURE__ */ Rl(...o)), t.min = (...o) => t.check(/* @__PURE__ */ Ye(...o)), t.max = (...o) => t.check(/* @__PURE__ */ Lo(...o)), t.length = (...o) => t.check(/* @__PURE__ */ Ho(...o)), t.nonempty = (...o) => t.check(/* @__PURE__ */ Ye(1, ...o)), t.lowercase = (o) => t.check(/* @__PURE__ */ Bl(o)), t.uppercase = (o) => t.check(/* @__PURE__ */ Nl(o)), t.trim = () => t.check(/* @__PURE__ */ Yl()), t.normalize = (...o) => t.check(/* @__PURE__ */ $l(...o)), t.toLowerCase = () => t.check(/* @__PURE__ */ Ul()), t.toUpperCase = () => t.check(/* @__PURE__ */ Gl()), t.slugify = () => t.check(/* @__PURE__ */ Ll());
6379
6379
  }), Yd = /* @__PURE__ */ d("ZodString", (t, e) => {
6380
- Sr.init(t, e), Jo.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ rl(Ud, r)), t.url = (r) => t.check(/* @__PURE__ */ sl(Gd, r)), t.jwt = (r) => t.check(/* @__PURE__ */ kl(ac, r)), t.emoji = (r) => t.check(/* @__PURE__ */ ll(Ld, r)), t.guid = (r) => t.check(/* @__PURE__ */ Vr(Kr, r)), t.uuid = (r) => t.check(/* @__PURE__ */ ol(oe, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ al(oe, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ il(oe, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ nl(oe, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ dl(Hd, r)), t.guid = (r) => t.check(/* @__PURE__ */ Vr(Kr, r)), t.cuid = (r) => t.check(/* @__PURE__ */ cl(Xd, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ pl(Vd, r)), t.ulid = (r) => t.check(/* @__PURE__ */ bl(qd, r)), t.base64 = (r) => t.check(/* @__PURE__ */ wl(ec, r)), t.base64url = (r) => t.check(/* @__PURE__ */ xl(rc, r)), t.xid = (r) => t.check(/* @__PURE__ */ ml(Fd, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ gl(Jd, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ ul(Kd, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ fl(Qd, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ hl(Wd, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ vl(tc, r)), t.e164 = (r) => t.check(/* @__PURE__ */ yl(oc, r)), t.datetime = (r) => t.check(yd(r)), t.date = (r) => t.check(zd(r)), t.time = (r) => t.check(Sd(r)), t.duration = (r) => t.check(Od(r));
6380
+ Sr.init(t, e), Jo.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ rl(Ud, r)), t.url = (r) => t.check(/* @__PURE__ */ sl(Gd, r)), t.jwt = (r) => t.check(/* @__PURE__ */ kl(ac, r)), t.emoji = (r) => t.check(/* @__PURE__ */ ll(Ld, r)), t.guid = (r) => t.check(/* @__PURE__ */ Vr(Kr, r)), t.uuid = (r) => t.check(/* @__PURE__ */ ol(re, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ al(re, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ il(re, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ nl(re, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ dl(Hd, r)), t.guid = (r) => t.check(/* @__PURE__ */ Vr(Kr, r)), t.cuid = (r) => t.check(/* @__PURE__ */ cl(Xd, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ pl(Vd, r)), t.ulid = (r) => t.check(/* @__PURE__ */ bl(qd, r)), t.base64 = (r) => t.check(/* @__PURE__ */ wl(ec, r)), t.base64url = (r) => t.check(/* @__PURE__ */ xl(rc, r)), t.xid = (r) => t.check(/* @__PURE__ */ ml(Fd, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ gl(Jd, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ ul(Kd, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ fl(Qd, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ hl(Wd, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ vl(tc, r)), t.e164 = (r) => t.check(/* @__PURE__ */ yl(oc, r)), t.datetime = (r) => t.check(yd(r)), t.date = (r) => t.check(zd(r)), t.time = (r) => t.check(Sd(r)), t.duration = (r) => t.check(Od(r));
6381
6381
  });
6382
6382
  function h(t) {
6383
6383
  return /* @__PURE__ */ el(Yd, t);
@@ -6388,7 +6388,7 @@ const E = /* @__PURE__ */ d("ZodStringFormat", (t, e) => {
6388
6388
  ns.init(t, e), E.init(t, e);
6389
6389
  }), Kr = /* @__PURE__ */ d("ZodGUID", (t, e) => {
6390
6390
  as.init(t, e), E.init(t, e);
6391
- }), oe = /* @__PURE__ */ d("ZodUUID", (t, e) => {
6391
+ }), re = /* @__PURE__ */ d("ZodUUID", (t, e) => {
6392
6392
  is.init(t, e), E.init(t, e);
6393
6393
  }), Gd = /* @__PURE__ */ d("ZodURL", (t, e) => {
6394
6394
  ss.init(t, e), E.init(t, e);
@@ -6586,10 +6586,10 @@ const yc = /* @__PURE__ */ d("ZodTransform", (t, e) => {
6586
6586
  throw new zo(t.constructor.name);
6587
6587
  r.addIssue = (n) => {
6588
6588
  if (typeof n == "string")
6589
- r.issues.push(Ht(n, r.value, e));
6589
+ r.issues.push(Lt(n, r.value, e));
6590
6590
  else {
6591
6591
  const i = n;
6592
- i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = t), r.issues.push(Ht(i));
6592
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = t), r.issues.push(Lt(i));
6593
6593
  }
6594
6594
  };
6595
6595
  const a = e.transform(r.value, r);
@@ -6757,7 +6757,7 @@ var Gc = Mt("type", [
6757
6757
  issuer: h(),
6758
6758
  configUrl: h().url()
6759
6759
  })
6760
- ]), we = /* @__PURE__ */ ((t) => (t.CanActAs = "CanActAs", t.CanReadAs = "CanReadAs", t.CanExecuteAs = "CanExecuteAs", t))(we || {}), Lc = y({
6760
+ ]), ve = /* @__PURE__ */ ((t) => (t.CanActAs = "CanActAs", t.CanReadAs = "CanReadAs", t.CanExecuteAs = "CanExecuteAs", t))(ve || {}), Lc = y({
6761
6761
  baseUrl: h().url()
6762
6762
  }), aa = y({
6763
6763
  id: h(),
@@ -6798,7 +6798,7 @@ var Hc = Object.defineProperty, Xc = Object.getOwnPropertyDescriptor, ia = (t) =
6798
6798
  for (var a = o > 1 ? void 0 : o ? Xc(e, r) : e, n = t.length - 1, i; n >= 0; n--)
6799
6799
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
6800
6800
  return o && a && Hc(e, r, a), a;
6801
- }, na = (t, e, r) => e.has(t) || ia("Cannot " + r), ro = (t, e, r) => (na(t, e, "read from private field"), r ? r.call(t) : e.get(t)), oo = (t, e, r) => e.has(t) ? ia("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ao = (t, e, r, o) => (na(t, e, "write to private field"), e.set(t, r), r), xe, ye;
6801
+ }, na = (t, e, r) => e.has(t) || ia("Cannot " + r), ro = (t, e, r) => (na(t, e, "read from private field"), r ? r.call(t) : e.get(t)), oo = (t, e, r) => e.has(t) ? ia("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ao = (t, e, r, o) => (na(t, e, "write to private field"), e.set(t, r), r), we, xe;
6802
6802
  class Vc extends Event {
6803
6803
  constructor() {
6804
6804
  super("network-edit-cancel", { bubbles: !0, composed: !0 });
@@ -6814,29 +6814,29 @@ class Fc extends Event {
6814
6814
  super("network-delete", { bubbles: !0, composed: !0 }), this.network = e;
6815
6815
  }
6816
6816
  }
6817
- class $p extends Event {
6817
+ class Rp extends Event {
6818
6818
  constructor() {
6819
6819
  super("network-form-back", { bubbles: !0, composed: !0 });
6820
6820
  }
6821
6821
  }
6822
6822
  let Ct = class extends f {
6823
6823
  constructor() {
6824
- super(...arguments), oo(this, xe, "add"), oo(this, ye, {
6824
+ super(...arguments), oo(this, we, "add"), oo(this, xe, {
6825
6825
  ledgerApi: {},
6826
6826
  auth: {}
6827
6827
  }), this._error = "";
6828
6828
  }
6829
6829
  get mode() {
6830
- return ro(this, xe);
6830
+ return ro(this, we);
6831
6831
  }
6832
6832
  set mode(t) {
6833
- ao(this, xe, t);
6833
+ ao(this, we, t);
6834
6834
  }
6835
6835
  get network() {
6836
- return ro(this, ye);
6836
+ return ro(this, xe);
6837
6837
  }
6838
6838
  set network(t) {
6839
- ao(this, ye, t);
6839
+ ao(this, xe, t);
6840
6840
  }
6841
6841
  handleSubmit(t) {
6842
6842
  t.preventDefault();
@@ -6907,7 +6907,7 @@ let Ct = class extends f {
6907
6907
  </option>
6908
6908
  <option value="self_signed">self_signed</option>
6909
6909
  </select>
6910
- <span class="select-chevron">${Vt}</span>
6910
+ <span class="select-chevron">${Xt}</span>
6911
6911
  </div>
6912
6912
  </div>
6913
6913
 
@@ -7164,8 +7164,8 @@ let Ct = class extends f {
7164
7164
  `;
7165
7165
  }
7166
7166
  };
7167
+ we = /* @__PURE__ */ new WeakMap();
7167
7168
  xe = /* @__PURE__ */ new WeakMap();
7168
- ye = /* @__PURE__ */ new WeakMap();
7169
7169
  Ct.styles = [
7170
7170
  f.styles,
7171
7171
  k`
@@ -7346,50 +7346,50 @@ var Jc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, sa = (t) =
7346
7346
  for (var a = o > 1 ? void 0 : o ? Kc(e, r) : e, n = t.length - 1, i; n >= 0; n--)
7347
7347
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
7348
7348
  return o && a && Jc(e, r, a), a;
7349
- }, la = (t, e, r) => e.has(t) || sa("Cannot " + r), ht = (t, e, r) => (la(t, e, "read from private field"), r ? r.call(t) : e.get(t)), vt = (t, e, r) => e.has(t) ? sa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), wt = (t, e, r, o) => (la(t, e, "write to private field"), e.set(t, r), r), ke, ze, Ae, Se, Ie, Oe;
7350
- let J = class extends f {
7349
+ }, la = (t, e, r) => e.has(t) || sa("Cannot " + r), ht = (t, e, r) => (la(t, e, "read from private field"), r ? r.call(t) : e.get(t)), vt = (t, e, r) => e.has(t) ? sa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), wt = (t, e, r, o) => (la(t, e, "write to private field"), e.set(t, r), r), ye, ke, ze, Ae, Se, Ie;
7350
+ let K = class extends f {
7351
7351
  constructor() {
7352
- super(...arguments), vt(this, ke, []), vt(this, ze, []), vt(this, Ae, !1), vt(this, Se, !1), vt(this, Ie, null), vt(this, Oe, this.editingNetwork?.auth?.method ?? "authorization_code"), this.openAddModal = () => {
7352
+ super(...arguments), vt(this, ye, []), vt(this, ke, []), vt(this, ze, !1), vt(this, Ae, !1), vt(this, Se, null), vt(this, Ie, this.editingNetwork?.auth?.method ?? "authorization_code"), this.openAddModal = () => {
7353
7353
  this.isModalOpen = !0, this.editingNetwork = null;
7354
7354
  }, this.closeModal = () => {
7355
7355
  this.isModalOpen = !1;
7356
7356
  };
7357
7357
  }
7358
7358
  get networks() {
7359
- return ht(this, ke);
7359
+ return ht(this, ye);
7360
7360
  }
7361
7361
  set networks(t) {
7362
- wt(this, ke, t);
7362
+ wt(this, ye, t);
7363
7363
  }
7364
7364
  get activeSessions() {
7365
- return ht(this, ze);
7365
+ return ht(this, ke);
7366
7366
  }
7367
7367
  set activeSessions(t) {
7368
- wt(this, ze, t);
7368
+ wt(this, ke, t);
7369
7369
  }
7370
7370
  get readonly() {
7371
- return ht(this, Ae);
7371
+ return ht(this, ze);
7372
7372
  }
7373
7373
  set readonly(t) {
7374
- wt(this, Ae, t);
7374
+ wt(this, ze, t);
7375
7375
  }
7376
7376
  get isModalOpen() {
7377
- return ht(this, Se);
7377
+ return ht(this, Ae);
7378
7378
  }
7379
7379
  set isModalOpen(t) {
7380
- wt(this, Se, t);
7380
+ wt(this, Ae, t);
7381
7381
  }
7382
7382
  get editingNetwork() {
7383
- return ht(this, Ie);
7383
+ return ht(this, Se);
7384
7384
  }
7385
7385
  set editingNetwork(t) {
7386
- wt(this, Ie, t);
7386
+ wt(this, Se, t);
7387
7387
  }
7388
7388
  get authType() {
7389
- return ht(this, Oe);
7389
+ return ht(this, Ie);
7390
7390
  }
7391
7391
  set authType(t) {
7392
- wt(this, Oe, t);
7392
+ wt(this, Ie, t);
7393
7393
  }
7394
7394
  connectedCallback() {
7395
7395
  super.connectedCallback();
@@ -7438,13 +7438,13 @@ let J = class extends f {
7438
7438
  `;
7439
7439
  }
7440
7440
  };
7441
+ ye = /* @__PURE__ */ new WeakMap();
7441
7442
  ke = /* @__PURE__ */ new WeakMap();
7442
7443
  ze = /* @__PURE__ */ new WeakMap();
7443
7444
  Ae = /* @__PURE__ */ new WeakMap();
7444
7445
  Se = /* @__PURE__ */ new WeakMap();
7445
7446
  Ie = /* @__PURE__ */ new WeakMap();
7446
- Oe = /* @__PURE__ */ new WeakMap();
7447
- J.styles = [
7447
+ K.styles = [
7448
7448
  f.styles,
7449
7449
  xo,
7450
7450
  k`
@@ -7460,25 +7460,25 @@ J.styles = [
7460
7460
  ];
7461
7461
  mt([
7462
7462
  b({ type: Array })
7463
- ], J.prototype, "networks", 1);
7463
+ ], K.prototype, "networks", 1);
7464
7464
  mt([
7465
7465
  b({ type: Array })
7466
- ], J.prototype, "activeSessions", 1);
7466
+ ], K.prototype, "activeSessions", 1);
7467
7467
  mt([
7468
7468
  b({ type: Boolean })
7469
- ], J.prototype, "readonly", 1);
7469
+ ], K.prototype, "readonly", 1);
7470
7470
  mt([
7471
7471
  T()
7472
- ], J.prototype, "isModalOpen", 1);
7472
+ ], K.prototype, "isModalOpen", 1);
7473
7473
  mt([
7474
7474
  T()
7475
- ], J.prototype, "editingNetwork", 1);
7475
+ ], K.prototype, "editingNetwork", 1);
7476
7476
  mt([
7477
7477
  T()
7478
- ], J.prototype, "authType", 1);
7479
- J = mt([
7478
+ ], K.prototype, "authType", 1);
7479
+ K = mt([
7480
7480
  A("wg-networks")
7481
- ], J);
7481
+ ], K);
7482
7482
  var Qc = Object.defineProperty, Wc = Object.getOwnPropertyDescriptor, da = (t, e, r, o) => {
7483
7483
  for (var a = o > 1 ? void 0 : o ? Wc(e, r) : e, n = t.length - 1, i; n >= 0; n--)
7484
7484
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
@@ -7593,7 +7593,7 @@ let Xe = class extends f {
7593
7593
  };
7594
7594
  Xe.styles = [
7595
7595
  f.styles,
7596
- qt,
7596
+ Vt,
7597
7597
  k`
7598
7598
  :host {
7599
7599
  display: block;
@@ -7718,7 +7718,7 @@ var rp = y({
7718
7718
  jsonrpc: _("2.0"),
7719
7719
  // only support JSON-RPC 2.0
7720
7720
  id: ct(h().or(Ge()).or(dc()).or(Qo()))
7721
- }), ip = Or(pa, rp), np = Or(pa, ap), ae = h().min(1).describe(
7721
+ }), ip = Or(pa, rp), np = Or(pa, ap), oe = h().min(1).describe(
7722
7722
  "Optional routing key for browser-extension messaging. When present, only the matching extension should handle the message."
7723
7723
  );
7724
7724
  Mt("type", [
@@ -7728,7 +7728,7 @@ Mt("type", [
7728
7728
  /* SPLICE_WALLET_REQUEST */
7729
7729
  ),
7730
7730
  request: ip,
7731
- target: ae.optional()
7731
+ target: oe.optional()
7732
7732
  }),
7733
7733
  y({
7734
7734
  type: _(
@@ -7742,14 +7742,14 @@ Mt("type", [
7742
7742
  "SPLICE_WALLET_EXT_READY"
7743
7743
  /* SPLICE_WALLET_EXT_READY */
7744
7744
  ),
7745
- target: ae.optional()
7745
+ target: oe.optional()
7746
7746
  }),
7747
7747
  y({
7748
7748
  type: _(
7749
7749
  "SPLICE_WALLET_EXT_ACK"
7750
7750
  /* SPLICE_WALLET_EXT_ACK */
7751
7751
  ),
7752
- target: ae.optional()
7752
+ target: oe.optional()
7753
7753
  }),
7754
7754
  y({
7755
7755
  type: _(
@@ -7757,7 +7757,7 @@ Mt("type", [
7757
7757
  /* SPLICE_WALLET_EXT_OPEN */
7758
7758
  ),
7759
7759
  url: h().url(),
7760
- target: ae.optional()
7760
+ target: oe.optional()
7761
7761
  }),
7762
7762
  y({
7763
7763
  type: _(
@@ -7821,14 +7821,14 @@ var lp = Object.defineProperty, dp = Object.getOwnPropertyDescriptor, ba = (t) =
7821
7821
  for (var a = o > 1 ? void 0 : o ? dp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
7822
7822
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
7823
7823
  return o && a && lp(e, r, a), a;
7824
- }, ma = (t, e, r) => e.has(t) || ba("Cannot " + r), io = (t, e, r) => (ma(t, e, "read from private field"), r ? r.call(t) : e.get(t)), no = (t, e, r) => e.has(t) ? ba("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), so = (t, e, r, o) => (ma(t, e, "write to private field"), e.set(t, r), r), Ee, Ce;
7824
+ }, ma = (t, e, r) => e.has(t) || ba("Cannot " + r), io = (t, e, r) => (ma(t, e, "read from private field"), r ? r.call(t) : e.get(t)), no = (t, e, r) => e.has(t) ? ba("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), so = (t, e, r, o) => (ma(t, e, "write to private field"), e.set(t, r), r), Oe, Ee;
7825
7825
  let _t = class extends f {
7826
7826
  constructor() {
7827
- super(...arguments), this.client = null, no(this, Ee, !1), no(this, Ce, !1), this.syncWallets = async () => {
7827
+ super(...arguments), this.client = null, no(this, Oe, !1), no(this, Ee, !1), this.syncWallets = async () => {
7828
7828
  if (!(!this.client || this.isSyncing)) {
7829
7829
  this.isSyncing = !0;
7830
7830
  try {
7831
- const t = await this.client.request({ method: "syncWallets" }), e = `Added: ${t.added.length}, Updated: ${t.updated.length}, Disabled: ${t.disabled.length}.`, r = new F();
7831
+ const t = await this.client.request({ method: "syncWallets" }), e = `Added: ${t.added.length}, Updated: ${t.updated.length}, Disabled: ${t.disabled.length}.`, r = new J();
7832
7832
  r.title = "Wallet Sync Complete", r.message = e, r.type = "success", document.body.appendChild(r), await this.checkWalletSyncNeeded(), this.dispatchEvent(
7833
7833
  new CustomEvent("sync-success", {
7834
7834
  detail: {},
@@ -7845,16 +7845,16 @@ let _t = class extends f {
7845
7845
  };
7846
7846
  }
7847
7847
  get isSyncNeeded() {
7848
- return io(this, Ee);
7848
+ return io(this, Oe);
7849
7849
  }
7850
7850
  set isSyncNeeded(t) {
7851
- so(this, Ee, t);
7851
+ so(this, Oe, t);
7852
7852
  }
7853
7853
  get isSyncing() {
7854
- return io(this, Ce);
7854
+ return io(this, Ee);
7855
7855
  }
7856
7856
  set isSyncing(t) {
7857
- so(this, Ce, t);
7857
+ so(this, Ee, t);
7858
7858
  }
7859
7859
  connectedCallback() {
7860
7860
  super.connectedCallback(), this.checkWalletSyncNeeded();
@@ -7887,8 +7887,8 @@ let _t = class extends f {
7887
7887
  `;
7888
7888
  }
7889
7889
  };
7890
+ Oe = /* @__PURE__ */ new WeakMap();
7890
7891
  Ee = /* @__PURE__ */ new WeakMap();
7891
- Ce = /* @__PURE__ */ new WeakMap();
7892
7892
  _t.styles = [
7893
7893
  f.styles,
7894
7894
  k`
@@ -7966,40 +7966,41 @@ _t = or([
7966
7966
  ], _t);
7967
7967
  var cp = Object.defineProperty, pp = Object.getOwnPropertyDescriptor, ga = (t) => {
7968
7968
  throw TypeError(t);
7969
- }, st = (t, e, r, o) => {
7969
+ }, V = (t, e, r, o) => {
7970
7970
  for (var a = o > 1 ? void 0 : o ? pp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
7971
7971
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
7972
7972
  return o && a && cp(e, r, a), a;
7973
- }, ua = (t, e, r) => e.has(t) || ga("Cannot " + r), sr = (t, e, r) => (ua(t, e, "read from private field"), r ? r.call(t) : e.get(t)), lr = (t, e, r) => e.has(t) ? ga("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), dr = (t, e, r, o) => (ua(t, e, "write to private field"), e.set(t, r), r), _e, je, Pe;
7973
+ }, ua = (t, e, r) => e.has(t) || ga("Cannot " + r), sr = (t, e, r) => (ua(t, e, "read from private field"), r ? r.call(t) : e.get(t)), lr = (t, e, r) => e.has(t) ? ga("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), dr = (t, e, r, o) => (ua(t, e, "write to private field"), e.set(t, r), r), Ce, _e, je;
7974
7974
  class bp extends Event {
7975
7975
  constructor(e, r, o) {
7976
7976
  super("wallet-create", { bubbles: !0, composed: !0 }), this.partyHint = e, this.signingProviderId = r, this.primary = o;
7977
7977
  }
7978
7978
  }
7979
- let X = class extends f {
7979
+ let R = class extends f {
7980
7980
  constructor() {
7981
- super(...arguments), this.signingProviders = [], this.networkIds = [], this.loading = !1, this.submitLabel = "Add", lr(this, _e, null), lr(this, je, null), lr(this, Pe, null);
7981
+ super(...arguments), this.signingProviders = [], this.networkIds = [], this.loading = !1, this.submitLabel = "Add", this.loadingLabel = "Adding...", this.loadingMessage = "Creating party, please wait...", lr(this, Ce, null), lr(this, _e, null), lr(this, je, null);
7982
7982
  }
7983
7983
  get partyHintInput() {
7984
- return sr(this, _e);
7984
+ return sr(this, Ce);
7985
7985
  }
7986
7986
  set partyHintInput(t) {
7987
- dr(this, _e, t);
7987
+ dr(this, Ce, t);
7988
7988
  }
7989
7989
  get signingProviderSelect() {
7990
- return sr(this, je);
7990
+ return sr(this, _e);
7991
7991
  }
7992
7992
  set signingProviderSelect(t) {
7993
- dr(this, je, t);
7993
+ dr(this, _e, t);
7994
7994
  }
7995
7995
  get primaryCheckbox() {
7996
- return sr(this, Pe);
7996
+ return sr(this, je);
7997
7997
  }
7998
7998
  set primaryCheckbox(t) {
7999
- dr(this, Pe, t);
7999
+ dr(this, je, t);
8000
8000
  }
8001
8001
  onSubmit(t) {
8002
- t.preventDefault();
8002
+ if (t.preventDefault(), this.loading)
8003
+ return;
8003
8004
  const e = this.partyHintInput?.value || "", r = this.signingProviderSelect?.value || "", o = this.primaryCheckbox?.checked || !1;
8004
8005
  this.dispatchEvent(
8005
8006
  new bp(e, r, o)
@@ -8010,7 +8011,11 @@ let X = class extends f {
8010
8011
  }
8011
8012
  render() {
8012
8013
  return p`
8013
- <form class="d-flex flex-column h-100" @submit=${this.onSubmit}>
8014
+ <form
8015
+ class="d-flex flex-column h-100"
8016
+ aria-busy=${this.loading ? "true" : "false"}
8017
+ @submit=${this.onSubmit}
8018
+ >
8014
8019
  <div class="form-fields d-flex flex-column">
8015
8020
  <div class="field-group d-flex flex-column">
8016
8021
  <label
@@ -8053,7 +8058,7 @@ let X = class extends f {
8053
8058
  )}
8054
8059
  </select>
8055
8060
  <span class="select-chevron"
8056
- >${Vt}</span
8061
+ >${Xt}</span
8057
8062
  >
8058
8063
  </div>
8059
8064
  </div>
@@ -8073,23 +8078,35 @@ let X = class extends f {
8073
8078
  </div>
8074
8079
  </div>
8075
8080
 
8076
- <div class="mt-auto pt-3">
8081
+ <div class="submit-wrap mt-auto pt-3 d-flex flex-column">
8077
8082
  <button
8078
- class="btn btn-primary rounded-pill w-100"
8083
+ class="submit-button btn btn-primary rounded-pill w-100 d-inline-flex align-items-center justify-content-center gap-2"
8079
8084
  ?disabled=${this.loading}
8080
8085
  type="submit"
8081
8086
  >
8082
- ${this.submitLabel}
8087
+ ${this.loading ? p`<span
8088
+ class="spinner-border spinner-border-sm"
8089
+ aria-hidden="true"
8090
+ ></span>` : null}
8091
+ ${this.loading ? this.loadingLabel : this.submitLabel}
8083
8092
  </button>
8093
+
8094
+ ${this.loading ? p`<p
8095
+ class="loading-message"
8096
+ role="status"
8097
+ aria-live="polite"
8098
+ >
8099
+ ${this.loadingMessage}
8100
+ </p>` : null}
8084
8101
  </div>
8085
8102
  </form>
8086
8103
  `;
8087
8104
  }
8088
8105
  };
8106
+ Ce = /* @__PURE__ */ new WeakMap();
8089
8107
  _e = /* @__PURE__ */ new WeakMap();
8090
8108
  je = /* @__PURE__ */ new WeakMap();
8091
- Pe = /* @__PURE__ */ new WeakMap();
8092
- X.styles = [
8109
+ R.styles = [
8093
8110
  f.styles,
8094
8111
  k`
8095
8112
  :host {
@@ -8189,32 +8206,53 @@ X.styles = [
8189
8206
  font-size: var(--wg-font-size-sm);
8190
8207
  font-weight: var(--wg-font-weight-medium);
8191
8208
  }
8209
+
8210
+ .submit-wrap {
8211
+ gap: var(--wg-space-3);
8212
+ }
8213
+
8214
+ .submit-button {
8215
+ min-height: 44px;
8216
+ }
8217
+
8218
+ .loading-message {
8219
+ margin: 0;
8220
+ color: var(--wg-text-secondary);
8221
+ font-size: var(--wg-font-size-sm);
8222
+ text-align: center;
8223
+ }
8192
8224
  `
8193
8225
  ];
8194
- st([
8226
+ V([
8195
8227
  b({ type: Array })
8196
- ], X.prototype, "signingProviders", 2);
8197
- st([
8228
+ ], R.prototype, "signingProviders", 2);
8229
+ V([
8198
8230
  b({ type: Array })
8199
- ], X.prototype, "networkIds", 2);
8200
- st([
8231
+ ], R.prototype, "networkIds", 2);
8232
+ V([
8201
8233
  b({ type: Boolean })
8202
- ], X.prototype, "loading", 2);
8203
- st([
8234
+ ], R.prototype, "loading", 2);
8235
+ V([
8236
+ b({ type: String })
8237
+ ], R.prototype, "submitLabel", 2);
8238
+ V([
8204
8239
  b({ type: String })
8205
- ], X.prototype, "submitLabel", 2);
8206
- st([
8240
+ ], R.prototype, "loadingLabel", 2);
8241
+ V([
8242
+ b({ type: String })
8243
+ ], R.prototype, "loadingMessage", 2);
8244
+ V([
8207
8245
  pt("#party-id-hint")
8208
- ], X.prototype, "partyHintInput", 1);
8209
- st([
8246
+ ], R.prototype, "partyHintInput", 1);
8247
+ V([
8210
8248
  pt("#signing-provider-id")
8211
- ], X.prototype, "signingProviderSelect", 1);
8212
- st([
8249
+ ], R.prototype, "signingProviderSelect", 1);
8250
+ V([
8213
8251
  pt("#primary")
8214
- ], X.prototype, "primaryCheckbox", 1);
8215
- X = st([
8252
+ ], R.prototype, "primaryCheckbox", 1);
8253
+ R = V([
8216
8254
  A("wg-wallet-create-form")
8217
- ], X);
8255
+ ], R);
8218
8256
  var mp = Object.defineProperty, gp = Object.getOwnPropertyDescriptor, ar = (t, e, r, o) => {
8219
8257
  for (var a = o > 1 ? void 0 : o ? gp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
8220
8258
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
@@ -8237,9 +8275,9 @@ let jt = class extends f {
8237
8275
  renderRightsBadges() {
8238
8276
  return this.wallet?.rights?.length ? p`
8239
8277
  <span class="rights-badges">
8240
- ${this.wallet.rights.includes(we.CanActAs) ? p`<span class="badge badge-right">CanActAs</span>` : ""}
8241
- ${this.wallet.rights.includes(we.CanReadAs) ? p`<span class="badge badge-right">CanReadAs</span>` : ""}
8242
- ${this.wallet.rights.includes(we.CanExecuteAs) ? p`<span class="badge badge-right">CanExecuteAs</span>` : ""}
8278
+ ${this.wallet.rights.includes(ve.CanActAs) ? p`<span class="badge badge-right">CanActAs</span>` : ""}
8279
+ ${this.wallet.rights.includes(ve.CanReadAs) ? p`<span class="badge badge-right">CanReadAs</span>` : ""}
8280
+ ${this.wallet.rights.includes(ve.CanExecuteAs) ? p`<span class="badge badge-right">CanExecuteAs</span>` : ""}
8243
8281
  </span>
8244
8282
  ` : null;
8245
8283
  }
@@ -8368,7 +8406,7 @@ let jt = class extends f {
8368
8406
  };
8369
8407
  jt.styles = [
8370
8408
  f.styles,
8371
- qt,
8409
+ Vt,
8372
8410
  k`
8373
8411
  .party-card {
8374
8412
  padding: var(--wg-space-3);
@@ -8515,17 +8553,17 @@ jt = ar([
8515
8553
  ], jt);
8516
8554
  var hp = Object.defineProperty, vp = Object.getOwnPropertyDescriptor, fa = (t) => {
8517
8555
  throw TypeError(t);
8518
- }, Q = (t, e, r, o) => {
8556
+ }, W = (t, e, r, o) => {
8519
8557
  for (var a = o > 1 ? void 0 : o ? vp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
8520
8558
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
8521
8559
  return o && a && hp(e, r, a), a;
8522
- }, ha = (t, e, r) => e.has(t) || fa("Cannot " + r), ie = (t, e, r) => (ha(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ne = (t, e, r) => e.has(t) ? fa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), se = (t, e, r, o) => (ha(t, e, "write to private field"), e.set(t, r), r), Te, De, Be, Ne;
8560
+ }, ha = (t, e, r) => e.has(t) || fa("Cannot " + r), ae = (t, e, r) => (ha(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ie = (t, e, r) => e.has(t) ? fa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ne = (t, e, r, o) => (ha(t, e, "write to private field"), e.set(t, r), r), Pe, Te, De, Be;
8523
8561
  class wp extends Event {
8524
8562
  constructor(e, r, o) {
8525
8563
  super("login-connect", { bubbles: !0, composed: !0 }), this.selectedNetwork = e, this.selectedIdp = r, this.clientId = o;
8526
8564
  }
8527
8565
  }
8528
- class xp extends Event {
8566
+ class $p extends Event {
8529
8567
  constructor() {
8530
8568
  super("login-back", {
8531
8569
  bubbles: !0,
@@ -8534,33 +8572,33 @@ class xp extends Event {
8534
8572
  });
8535
8573
  }
8536
8574
  }
8537
- let G = class extends f {
8575
+ let L = class extends f {
8538
8576
  constructor() {
8539
- super(...arguments), this.networks = [], this.idps = [], this.connecting = !1, this.backHref = "/", ne(this, Te, null), ne(this, De, null), ne(this, Be, null), ne(this, Ne, null);
8577
+ super(...arguments), this.networks = [], this.idps = [], this.connecting = !1, this.backHref = "/", ie(this, Pe, null), ie(this, Te, null), ie(this, De, null), ie(this, Be, null);
8540
8578
  }
8541
8579
  get selectedNetwork() {
8542
- return ie(this, Te);
8580
+ return ae(this, Pe);
8543
8581
  }
8544
8582
  set selectedNetwork(t) {
8545
- se(this, Te, t);
8583
+ ne(this, Pe, t);
8546
8584
  }
8547
8585
  get selectedIdp() {
8548
- return ie(this, De);
8586
+ return ae(this, Te);
8549
8587
  }
8550
8588
  set selectedIdp(t) {
8551
- se(this, De, t);
8589
+ ne(this, Te, t);
8552
8590
  }
8553
8591
  get message() {
8554
- return ie(this, Be);
8592
+ return ae(this, De);
8555
8593
  }
8556
8594
  set message(t) {
8557
- se(this, Be, t);
8595
+ ne(this, De, t);
8558
8596
  }
8559
8597
  get messageType() {
8560
- return ie(this, Ne);
8598
+ return ae(this, Be);
8561
8599
  }
8562
8600
  set messageType(t) {
8563
- se(this, Ne, t);
8601
+ ne(this, Be, t);
8564
8602
  }
8565
8603
  updated(t) {
8566
8604
  if (super.updated(t), t.has("networks") && !this.selectedNetwork) {
@@ -8609,10 +8647,6 @@ let G = class extends f {
8609
8647
  new wp(this.selectedNetwork, t, e)
8610
8648
  );
8611
8649
  }
8612
- handleBack() {
8613
- const t = new xp();
8614
- this.dispatchEvent(t) && (window.location.href = Yt(this.backHref));
8615
- }
8616
8650
  /** Set a status message on the form (e.g. "Redirecting...") */
8617
8651
  setMessage(t, e) {
8618
8652
  this.message = t, this.messageType = e;
@@ -8658,7 +8692,7 @@ let G = class extends f {
8658
8692
  </option>`
8659
8693
  )}
8660
8694
  </select>
8661
- <span class="select-chevron">${Vt}</span>
8695
+ <span class="select-chevron">${Xt}</span>
8662
8696
  </div>
8663
8697
 
8664
8698
  ${this.selectedIdp?.type === "self_signed" ? p`
@@ -8700,11 +8734,11 @@ let G = class extends f {
8700
8734
  `;
8701
8735
  }
8702
8736
  };
8737
+ Pe = /* @__PURE__ */ new WeakMap();
8703
8738
  Te = /* @__PURE__ */ new WeakMap();
8704
8739
  De = /* @__PURE__ */ new WeakMap();
8705
8740
  Be = /* @__PURE__ */ new WeakMap();
8706
- Ne = /* @__PURE__ */ new WeakMap();
8707
- G.styles = [
8741
+ L.styles = [
8708
8742
  f.styles,
8709
8743
  k`
8710
8744
  :host {
@@ -8792,34 +8826,34 @@ G.styles = [
8792
8826
  }
8793
8827
  `
8794
8828
  ];
8795
- Q([
8829
+ W([
8796
8830
  b({ type: Array })
8797
- ], G.prototype, "networks", 2);
8798
- Q([
8831
+ ], L.prototype, "networks", 2);
8832
+ W([
8799
8833
  b({ type: Array })
8800
- ], G.prototype, "idps", 2);
8801
- Q([
8834
+ ], L.prototype, "idps", 2);
8835
+ W([
8802
8836
  b({ type: Boolean })
8803
- ], G.prototype, "connecting", 2);
8804
- Q([
8837
+ ], L.prototype, "connecting", 2);
8838
+ W([
8805
8839
  b({ type: String })
8806
- ], G.prototype, "backHref", 2);
8807
- Q([
8840
+ ], L.prototype, "backHref", 2);
8841
+ W([
8808
8842
  T()
8809
- ], G.prototype, "selectedNetwork", 1);
8810
- Q([
8843
+ ], L.prototype, "selectedNetwork", 1);
8844
+ W([
8811
8845
  T()
8812
- ], G.prototype, "selectedIdp", 1);
8813
- Q([
8846
+ ], L.prototype, "selectedIdp", 1);
8847
+ W([
8814
8848
  T()
8815
- ], G.prototype, "message", 1);
8816
- Q([
8849
+ ], L.prototype, "message", 1);
8850
+ W([
8817
8851
  T()
8818
- ], G.prototype, "messageType", 1);
8819
- G = Q([
8852
+ ], L.prototype, "messageType", 1);
8853
+ L = W([
8820
8854
  A("wg-login-form")
8821
- ], G);
8822
- function yp(t) {
8855
+ ], L);
8856
+ function xp(t) {
8823
8857
  const e = t.toLowerCase();
8824
8858
  return e === "executed" || e === "signed" ? "success" : e === "pending" ? "warning" : e === "failed" || e === "rejected" ? "danger" : "default";
8825
8859
  }
@@ -8827,7 +8861,7 @@ function va(t) {
8827
8861
  return t || "Unknown";
8828
8862
  }
8829
8863
  function wa(t) {
8830
- switch (yp(t)) {
8864
+ switch (xp(t)) {
8831
8865
  case "success":
8832
8866
  return "wg-activity-status-success";
8833
8867
  case "warning":
@@ -8852,17 +8886,17 @@ function ka(t) {
8852
8886
  const e = t?.amount;
8853
8887
  return e || "N/A";
8854
8888
  }
8855
- var kp = Object.defineProperty, zp = Object.getOwnPropertyDescriptor, V = (t, e, r, o) => {
8856
- for (var a = o > 1 ? void 0 : o ? zp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
8889
+ var yp = Object.defineProperty, kp = Object.getOwnPropertyDescriptor, q = (t, e, r, o) => {
8890
+ for (var a = o > 1 ? void 0 : o ? kp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
8857
8891
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
8858
- return o && a && kp(e, r, a), a;
8892
+ return o && a && yp(e, r, a), a;
8859
8893
  };
8860
- class Ap extends Event {
8894
+ class zp extends Event {
8861
8895
  constructor(e, r) {
8862
8896
  super("transaction-review", { bubbles: !0, composed: !0 }), this.transactionId = e, this.commandId = r;
8863
8897
  }
8864
8898
  }
8865
- let R = class extends f {
8899
+ let $ = class extends f {
8866
8900
  constructor() {
8867
8901
  super(...arguments), this.transactionId = "", this.commandId = "", this.externalTxId = null, this.status = "", this.parsed = null, this.createdAt = null, this.signedAt = null, this.origin = null, this.loading = !1;
8868
8902
  }
@@ -8883,7 +8917,7 @@ let R = class extends f {
8883
8917
  }
8884
8918
  handleReview() {
8885
8919
  this.loading || this.dispatchEvent(
8886
- new Ap(this.transactionId, this.commandId)
8920
+ new zp(this.transactionId, this.commandId)
8887
8921
  );
8888
8922
  }
8889
8923
  render() {
@@ -8940,9 +8974,9 @@ let R = class extends f {
8940
8974
  `;
8941
8975
  }
8942
8976
  };
8943
- R.styles = [
8977
+ $.styles = [
8944
8978
  f.styles,
8945
- qt,
8979
+ Vt,
8946
8980
  k`
8947
8981
  .activity-card {
8948
8982
  width: 100%;
@@ -9011,47 +9045,47 @@ R.styles = [
9011
9045
  }
9012
9046
  `
9013
9047
  ];
9014
- V([
9048
+ q([
9015
9049
  b()
9016
- ], R.prototype, "transactionId", 2);
9017
- V([
9050
+ ], $.prototype, "transactionId", 2);
9051
+ q([
9018
9052
  b()
9019
- ], R.prototype, "commandId", 2);
9020
- V([
9053
+ ], $.prototype, "commandId", 2);
9054
+ q([
9021
9055
  b()
9022
- ], R.prototype, "externalTxId", 2);
9023
- V([
9056
+ ], $.prototype, "externalTxId", 2);
9057
+ q([
9024
9058
  b()
9025
- ], R.prototype, "status", 2);
9026
- V([
9059
+ ], $.prototype, "status", 2);
9060
+ q([
9027
9061
  b({ type: Object })
9028
- ], R.prototype, "parsed", 2);
9029
- V([
9062
+ ], $.prototype, "parsed", 2);
9063
+ q([
9030
9064
  b()
9031
- ], R.prototype, "createdAt", 2);
9032
- V([
9065
+ ], $.prototype, "createdAt", 2);
9066
+ q([
9033
9067
  b()
9034
- ], R.prototype, "signedAt", 2);
9035
- V([
9068
+ ], $.prototype, "signedAt", 2);
9069
+ q([
9036
9070
  b()
9037
- ], R.prototype, "origin", 2);
9038
- V([
9071
+ ], $.prototype, "origin", 2);
9072
+ q([
9039
9073
  b()
9040
- ], R.prototype, "loading", 2);
9041
- R = V([
9074
+ ], $.prototype, "loading", 2);
9075
+ $ = q([
9042
9076
  A("wg-transaction-card")
9043
- ], R);
9044
- var Sp = Object.defineProperty, Ip = Object.getOwnPropertyDescriptor, B = (t, e, r, o) => {
9045
- for (var a = o > 1 ? void 0 : o ? Ip(e, r) : e, n = t.length - 1, i; n >= 0; n--)
9077
+ ], $);
9078
+ var Ap = Object.defineProperty, Sp = Object.getOwnPropertyDescriptor, B = (t, e, r, o) => {
9079
+ for (var a = o > 1 ? void 0 : o ? Sp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
9046
9080
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
9047
- return o && a && Sp(e, r, a), a;
9081
+ return o && a && Ap(e, r, a), a;
9048
9082
  };
9049
- class Op extends Event {
9083
+ class Ip extends Event {
9050
9084
  constructor(e) {
9051
9085
  super("transaction-approve", { bubbles: !0, composed: !0 }), this.commandId = e;
9052
9086
  }
9053
9087
  }
9054
- class Ep extends Event {
9088
+ class Op extends Event {
9055
9089
  constructor(e) {
9056
9090
  super("transaction-delete", { bubbles: !0, composed: !0 }), this.commandId = e;
9057
9091
  }
@@ -9208,7 +9242,7 @@ let P = class extends f {
9208
9242
  <span
9209
9243
  class="toggle-icon ${this.decodedExpanded ? "open" : ""}"
9210
9244
  >
9211
- ${Vt}
9245
+ ${Xt}
9212
9246
  </span>
9213
9247
  </button>
9214
9248
  ${this.parsed?.jsonString ? p`
@@ -9233,7 +9267,7 @@ let P = class extends f {
9233
9267
  class="btn btn-outline-danger rounded-pill d-inline-flex align-items-center justify-content-center gap-2"
9234
9268
  ?disabled=${this.isDeleteDisabled}
9235
9269
  @click=${() => this.dispatchEvent(
9236
- new Ep(this.commandId)
9270
+ new Op(this.commandId)
9237
9271
  )}
9238
9272
  >
9239
9273
  ${this.isDeleting ? p`<div
@@ -9247,7 +9281,7 @@ let P = class extends f {
9247
9281
  class="btn btn-primary rounded-pill d-inline-flex align-items-center justify-content-center gap-2"
9248
9282
  ?disabled=${this.isApproveDisabled}
9249
9283
  @click=${() => this.dispatchEvent(
9250
- new Op(this.commandId)
9284
+ new Ip(this.commandId)
9251
9285
  )}
9252
9286
  >
9253
9287
  ${this.isApproving ? p`<div
@@ -9502,10 +9536,10 @@ B([
9502
9536
  P = B([
9503
9537
  A("wg-transaction-detail")
9504
9538
  ], P);
9505
- let q;
9539
+ let F;
9506
9540
  class Ve {
9507
9541
  static getInstance() {
9508
- if (!q || q.closed) {
9542
+ if (!F || F.closed) {
9509
9543
  console.log("[PopupInstance] Creating new global popup instance");
9510
9544
  const e = window.open(
9511
9545
  "",
@@ -9513,13 +9547,13 @@ class Ve {
9513
9547
  "width=400,height=600,screenX=200,screenY=200"
9514
9548
  );
9515
9549
  if (!e) throw new Error("Failed to open popup window");
9516
- q = e;
9550
+ F = e;
9517
9551
  }
9518
- return q;
9552
+ return F;
9519
9553
  }
9520
9554
  constructor() {
9521
9555
  const e = () => {
9522
- q && (console.log("[PopupInstance] Closing popup instance on unload"), q.close(), q = void 0);
9556
+ F && (console.log("[PopupInstance] Closing popup instance on unload"), F.close(), F = void 0);
9523
9557
  };
9524
9558
  window.addEventListener("beforeunload", e), window.addEventListener("unload", e);
9525
9559
  }
@@ -9533,7 +9567,7 @@ class Ve {
9533
9567
  }
9534
9568
  }
9535
9569
  close() {
9536
- console.log("[PopupInstance] Closing popup instance"), q && q.close();
9570
+ console.log("[PopupInstance] Closing popup instance"), F && F.close();
9537
9571
  }
9538
9572
  getComponentUrl(e, r) {
9539
9573
  const { title: o = "Custom Popup" } = r || {}, a = this.escapeStylesForTemplate(e.styles);
@@ -9583,10 +9617,10 @@ class Ve {
9583
9617
  return e.replaceAll("\\", "\\\\").replaceAll("`", "\\`").replaceAll("</", "<\\/");
9584
9618
  }
9585
9619
  }
9586
- const Cp = new Ve();
9587
- let Xt;
9620
+ const Ep = new Ve();
9621
+ let Ht;
9588
9622
  const za = (t) => {
9589
- const e = Xt;
9623
+ const e = Ht;
9590
9624
  if (!(!e || e.closed))
9591
9625
  try {
9592
9626
  if (e.location.origin !== window.location.origin)
@@ -9599,13 +9633,13 @@ const za = (t) => {
9599
9633
  messageType: "SPLICE_WALLET_PICKER_CONNECT_STATUS",
9600
9634
  status: "connected"
9601
9635
  }), !t && queueMicrotask(() => {
9602
- const e = Xt;
9636
+ const e = Ht;
9603
9637
  if (!(!e || e.closed)) {
9604
9638
  try {
9605
9639
  e.close();
9606
9640
  } catch {
9607
9641
  }
9608
- Xt = void 0;
9642
+ Ht = void 0;
9609
9643
  }
9610
9644
  });
9611
9645
  }, Up = (t) => {
@@ -9631,7 +9665,7 @@ const za = (t) => {
9631
9665
  };
9632
9666
  t.addEventListener("beforeunload", n), window.addEventListener("message", i);
9633
9667
  }), Gp = async () => {
9634
- const t = Xt;
9668
+ const t = Ht;
9635
9669
  if (!t || t.closed)
9636
9670
  throw new Error("Wallet picker is not open");
9637
9671
  return await Aa(t);
@@ -9641,79 +9675,79 @@ async function Lp(t) {
9641
9675
  "splice_wallet_picker_entries",
9642
9676
  JSON.stringify(t)
9643
9677
  );
9644
- const e = Cp.open(Re, {
9678
+ const e = Ep.open(Re, {
9645
9679
  title: "Connect a wallet"
9646
9680
  });
9647
- return Xt = e, await Aa(e);
9681
+ return Ht = e, await Aa(e);
9648
9682
  }
9649
9683
  export {
9650
9684
  po as ALLOWED_ROUTES,
9651
- W as AppHeader,
9652
- tt as AppLayout,
9685
+ tt as AppHeader,
9686
+ et as AppLayout,
9653
9687
  f as BaseElement,
9654
9688
  ui as CopySuccessEvent,
9655
9689
  vi as ErrorPageBackEvent,
9656
9690
  wi as ErrorPageRefreshEvent,
9657
- H as FormInput,
9691
+ X as FormInput,
9658
9692
  Ei as FormInputChangedEvent,
9659
9693
  Ri as IdpAddEvent,
9660
- Gt as IdpCard,
9661
- Bp as IdpCardDeleteEvent,
9694
+ Ut as IdpCard,
9695
+ Dp as IdpCardDeleteEvent,
9662
9696
  ji as IdpCardReviewEvent,
9663
- Np as IdpCardUpdateEvent,
9664
- Mp as IdpFormBackEvent,
9697
+ Bp as IdpCardUpdateEvent,
9698
+ Np as IdpFormBackEvent,
9665
9699
  Ni as IdpFormCancelEvent,
9666
- U as IdpFormComponent,
9700
+ G as IdpFormComponent,
9667
9701
  Bi as IdpFormDeleteEvent,
9668
9702
  Di as IdpFormSaveEvent,
9669
- xp as LoginBackEvent,
9703
+ $p as LoginBackEvent,
9670
9704
  wp as LoginConnectEvent,
9671
9705
  ii as LogoutEvent,
9672
9706
  dt as NetworkCard,
9673
- Zp as NetworkCardDeleteEvent,
9707
+ Mp as NetworkCardDeleteEvent,
9674
9708
  Li as NetworkCardReviewEvent,
9675
- Rp as NetworkCardUpdateEvent,
9709
+ Zp as NetworkCardUpdateEvent,
9676
9710
  Fc as NetworkDeleteEvent,
9677
9711
  Vc as NetworkEditCancelEvent,
9678
9712
  qc as NetworkEditSaveEvent,
9679
9713
  Ct as NetworkForm,
9680
- $p as NetworkFormBackEvent,
9714
+ Rp as NetworkFormBackEvent,
9681
9715
  St as NetworkTable,
9682
9716
  He as NotFound,
9683
9717
  Ai as PageChangeEvent,
9684
- F as Toast,
9685
- Op as TransactionApproveEvent,
9686
- Ap as TransactionCardReviewEvent,
9687
- Ep as TransactionDeleteEvent,
9718
+ J as Toast,
9719
+ Ip as TransactionApproveEvent,
9720
+ zp as TransactionCardReviewEvent,
9721
+ Op as TransactionDeleteEvent,
9688
9722
  fp as WalletAllocateEvent,
9689
9723
  bp as WalletCreateEvent,
9690
9724
  Re as WalletPicker,
9691
9725
  up as WalletSetPrimaryEvent,
9692
- Ut as WgBackLink,
9726
+ Yt as WgBackLink,
9693
9727
  zt as WgCopyButton,
9694
- et as WgErrorPage,
9728
+ rt as WgErrorPage,
9695
9729
  Dr as WgFormInput,
9696
9730
  lt as WgIdps,
9697
9731
  Ze as WgLoadingState,
9698
- G as WgLoginForm,
9699
- J as WgNetworks,
9732
+ L as WgLoginForm,
9733
+ K as WgNetworks,
9700
9734
  At as WgPagination,
9701
9735
  Xe as WgSessions,
9702
- R as WgTransactionCard,
9736
+ $ as WgTransactionCard,
9703
9737
  P as WgTransactionDetail,
9704
9738
  jt as WgWalletCard,
9705
- X as WgWalletCreateForm,
9739
+ R as WgWalletCreateForm,
9706
9740
  _t as WgWalletsSync,
9707
9741
  Wa as chevronLeftIcon,
9708
9742
  qa as getCurrentRoute,
9709
9743
  sp as handleErrorToast,
9710
- Tp as isAllowedRoute,
9744
+ Pp as isAllowedRoute,
9711
9745
  Yp as notifyWalletPickerConnected,
9712
9746
  Up as notifyWalletPickerError,
9713
9747
  Lp as pickWallet,
9714
- Cp as popup,
9715
- Dp as toRelHref,
9716
- Yt as toRelPath,
9748
+ Ep as popup,
9749
+ Tp as toRelHref,
9750
+ Me as toRelPath,
9717
9751
  Gp as waitForWalletPickerRetrySelection
9718
9752
  };
9719
9753
  //# sourceMappingURL=index.js.map