@pontive/pontkit-core 1.29.0 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +40 -0
  2. package/catalog.json +1 -1
  3. package/custom-elements.json +1 -1
  4. package/dist/components/ui/badge-selector/badge-selector.d.ts +5 -0
  5. package/dist/components/widgets/pont-member-management/components/action-modal.d.ts +2 -0
  6. package/dist/components/widgets/pont-member-management/components/index.d.ts +0 -1
  7. package/dist/components/widgets/pont-member-management/components/invitations-panel.d.ts +3 -0
  8. package/dist/components/widgets/pont-member-management/components/invite-members-form.d.ts +5 -6
  9. package/dist/components/widgets/pont-member-management/components/manage-roles-form.d.ts +11 -5
  10. package/dist/components/widgets/pont-member-management/components/members-panel.d.ts +5 -1
  11. package/dist/components/widgets/pont-member-management/components/page-range.d.ts +5 -0
  12. package/dist/components/widgets/pont-member-management/components/role-badges.d.ts +5 -0
  13. package/dist/components/widgets/pont-member-management/components/role-options.d.ts +9 -0
  14. package/dist/components/widgets/pont-member-management/errors.d.ts +24 -0
  15. package/dist/components/widgets/pont-member-management/pont-member-management.d.ts +69 -17
  16. package/dist/components/widgets/pont-member-management/types.d.ts +4 -3
  17. package/dist/i18n/messages.d.ts +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +936 -1019
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +6543 -6713
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/pont2/globals.css +3 -3
  24. package/dist/pont2/index.mjs +678 -617
  25. package/dist/pont2/index.mjs.map +1 -1
  26. package/dist/pont2/kit/flow-widget/preview.d.ts +46 -0
  27. package/dist/pont2/kit/index.d.ts +1 -0
  28. package/dist/pont2/styles.css +390 -149
  29. package/dist/pont2/theme/tokens.json.d.ts +1020 -440
  30. package/dist/pont2/theme/types.d.ts +4 -0
  31. package/dist/pont2/theme.mjs +172 -157
  32. package/dist/pont2/theme.mjs.map +1 -1
  33. package/dist/pont2/tokens.json +1020 -440
  34. package/dist/primitives/components/ui/data-table/data-table.d.ts +4 -0
  35. package/dist/service/http/fetch.d.ts +6 -3
  36. package/dist/service/http/organization/assignable-roles.d.ts +8 -0
  37. package/dist/service/http/organization/index.d.ts +2 -1
  38. package/dist/service/http/organization/management-token.d.ts +13 -0
  39. package/dist/service/http/organization/members.d.ts +0 -1
  40. package/dist/styles.css +5 -43
  41. package/dist/types/core/index.d.ts +19 -2
  42. package/dist/types/service/http/invitation/index.d.ts +7 -2
  43. package/dist/types/service/http/roles/index.d.ts +16 -35
  44. package/package.json +2 -2
  45. package/dist/components/widgets/pont-member-management/components/monitoring-cards.d.ts +0 -20
  46. package/dist/components/widgets/pont-member-management/mock-data.d.ts +0 -4
  47. package/dist/service/http/organization/roles.d.ts +0 -7
@@ -1,22 +1,22 @@
1
- import { noChange as un, LitElement as Cn, ReactiveElement as ro, svg as g, html as d, nothing as u } from "lit";
2
- import { directive as ao, Directive as no, PartType as oo } from "lit/directive.js";
3
- import { live as Va } from "lit/directives/live.js";
1
+ import { noChange as ua, LitElement as Ca, ReactiveElement as ro, svg as g, html as d, nothing as u } from "lit";
2
+ import { directive as no, Directive as ao, PartType as oo } from "lit/directive.js";
3
+ import { live as Tn } from "lit/directives/live.js";
4
4
  import { styleMap as Ne } from "lit/directives/style-map.js";
5
- import { repeat as Ta } from "lit/directives/repeat.js";
5
+ import { repeat as Rn } from "lit/directives/repeat.js";
6
6
  import { createContext as lo, ContextConsumer as co, ContextProvider as ho } from "@lit/context";
7
7
  import uo from "qrcode";
8
- class po extends no {
8
+ class po extends ao {
9
9
  constructor(t) {
10
10
  if (super(t), this.prev = /* @__PURE__ */ new Set(), t.type !== oo.ELEMENT) throw new Error("attrs() must be used in element position");
11
11
  }
12
12
  render(t) {
13
- return un;
13
+ return ua;
14
14
  }
15
15
  update(t, [e]) {
16
- return fo(t.element, e, this.prev), this.prev = new Set(Object.keys(e)), un;
16
+ return fo(t.element, e, this.prev), this.prev = new Set(Object.keys(e)), ua;
17
17
  }
18
18
  }
19
- const N = ao(po);
19
+ const N = no(po);
20
20
  function fo(i, t, e) {
21
21
  if (e)
22
22
  for (const s of e) s in t || i.removeAttribute(s);
@@ -24,21 +24,21 @@ function fo(i, t, e) {
24
24
  if (r === !1 || r == null)
25
25
  i.hasAttribute(s) && i.removeAttribute(s);
26
26
  else {
27
- const a = r === !0 ? "" : String(r);
28
- i.getAttribute(s) !== a && i.setAttribute(s, a);
27
+ const n = r === !0 ? "" : String(r);
28
+ i.getAttribute(s) !== n && i.setAttribute(s, n);
29
29
  }
30
30
  }
31
- const fe = "pont2", mo = "prim", On = (i) => `${fe}-${i}`, Ln = (i) => `${fe}-${mo}-${i}`, qn = (i) => `data-${fe}-${i}`, m = (i) => `:is(${Ln(i)}, ${On(i)}, [${qn(i)}])`, me = (i) => `:is(${Ln(i)}, ${On(i)})`;
32
- function n(i, t) {
31
+ const fe = "pont2", mo = "prim", Oa = (i) => `${fe}-${i}`, La = (i) => `${fe}-${mo}-${i}`, qa = (i) => `data-${fe}-${i}`, m = (i) => `:is(${La(i)}, ${Oa(i)}, [${qa(i)}])`, me = (i) => `:is(${La(i)}, ${Oa(i)})`;
32
+ function a(i, t) {
33
33
  customElements.get(i) || customElements.define(i, t);
34
34
  }
35
- const pn = /* @__PURE__ */ new Map();
35
+ const pa = /* @__PURE__ */ new Map();
36
36
  function A(i, t) {
37
- let e = pn.get(t);
37
+ let e = pa.get(t);
38
38
  return e || (e = class extends t {
39
- }, Object.defineProperty(e, "name", { value: `${t.name}Alias` }), pn.set(t, e)), n(i, e), customElements.get(i);
39
+ }, Object.defineProperty(e, "name", { value: `${t.name}Alias` }), pa.set(t, e)), a(i, e), customElements.get(i);
40
40
  }
41
- const ci = class ci extends Cn {
41
+ const ci = class ci extends Ca {
42
42
  constructor() {
43
43
  super(...arguments), this.internals = this.attachInternals();
44
44
  }
@@ -60,7 +60,7 @@ const ci = class ci extends Cn {
60
60
  */
61
61
  static part(t = {}) {
62
62
  const e = {};
63
- for (const s of fn(this)) e[qn(s)] = !0;
63
+ for (const s of fa(this)) e[qa(s)] = !0;
64
64
  return this.slotName && (e["data-slot"] = this.slotName), this.role && (e.role = this.role), N({ ...e, ...t });
65
65
  }
66
66
  createRenderRoot() {
@@ -82,7 +82,7 @@ const ci = class ci extends Cn {
82
82
  connectedCallback() {
83
83
  const t = this.constructor;
84
84
  t.composite && this.hasUpdated, super.connectedCallback();
85
- for (const e of fn(t))
85
+ for (const e of fa(t))
86
86
  this.hasAttribute(`data-${fe}-${e}`) || this.setAttribute(`data-${fe}-${e}`, "");
87
87
  t.slotName && !this.hasAttribute("data-slot") && this.setAttribute("data-slot", t.slotName), t.role && !this.internals.role && (this.internals.role = t.role);
88
88
  }
@@ -111,16 +111,16 @@ const ci = class ci extends Cn {
111
111
  };
112
112
  ci.composite = !1;
113
113
  let l = ci;
114
- function fn(i) {
114
+ function fa(i) {
115
115
  const t = [];
116
116
  let e = i;
117
- for (; typeof e == "function" && e !== l && e !== Cn; ) {
117
+ for (; typeof e == "function" && e !== l && e !== Ca; ) {
118
118
  const s = e;
119
119
  Object.hasOwn(s, "identity") && s.identity && t.push(s.identity), e = Object.getPrototypeOf(e);
120
120
  }
121
121
  return t;
122
122
  }
123
- const Ba = class Ba extends l {
123
+ const Pn = class Pn extends l {
124
124
  focus(t) {
125
125
  var e;
126
126
  (e = this.control) == null || e.focus(t);
@@ -130,9 +130,9 @@ const Ba = class Ba extends l {
130
130
  (t = this.control) == null || t.blur();
131
131
  }
132
132
  };
133
- Ba.identity = "shell";
134
- let Ot = Ba;
135
- const Pa = class Pa extends Ot {
133
+ Pn.identity = "shell";
134
+ let Ot = Pn;
135
+ const Kn = class Kn extends Ot {
136
136
  constructor() {
137
137
  super(...arguments), this._warned = !1;
138
138
  }
@@ -165,8 +165,8 @@ const Pa = class Pa extends Ot {
165
165
  }
166
166
  }
167
167
  };
168
- Pa.nativeSelector = "*";
169
- let O = Pa;
168
+ Kn.nativeSelector = "*";
169
+ let O = Kn;
170
170
  const hi = class hi extends l {
171
171
  constructor() {
172
172
  super(), this._customMessage = "", this.name = "", this.disabled = !1, this.required = !1, this.readOnly = !1, this.formDisabled = !1;
@@ -248,14 +248,14 @@ hi.formAssociated = !0, hi.properties = {
248
248
  readOnly: { type: Boolean, reflect: !0, attribute: "readonly" },
249
249
  formDisabled: { state: !0 }
250
250
  };
251
- let M = hi, mn = 0;
251
+ let M = hi, ma = 0;
252
252
  function Ss(i = "id") {
253
- return mn += 1, `pont2-${i}-${mn}`;
253
+ return ma += 1, `pont2-${i}-${ma}`;
254
254
  }
255
255
  function $(i, t = "id") {
256
256
  return i.id || (i.id = Ss(t)), i.id;
257
257
  }
258
- function Ul(i, t, e, s) {
258
+ function Ml(i, t, e, s) {
259
259
  const r = new Set((i.getAttribute(t) ?? "").split(/\s+/).filter(Boolean));
260
260
  s ? r.add(e) : r.delete(e), r.size ? i.setAttribute(t, [...r].join(" ")) : i.removeAttribute(t);
261
261
  }
@@ -340,16 +340,16 @@ function Lt(i) {
340
340
  return ((t == null ? void 0 : t.getAttribute("dir")) ?? document.documentElement.dir ?? "").toLowerCase() === "rtl" ? "rtl" : "ltr";
341
341
  }
342
342
  const go = (i) => i.hasAttribute("data-disabled") || i.getAttribute("aria-disabled") === "true" || i.disabled === !0;
343
- class zn {
343
+ class za {
344
344
  constructor(t, e) {
345
345
  this.host = t, this.onFocusIn = (s) => {
346
- const a = this.opts.items().find((o) => o === s.target || o.contains(s.target));
347
- a && !this.opts.isDisabled(a) && this.sync(a);
346
+ const n = this.opts.items().find((o) => o === s.target || o.contains(s.target));
347
+ n && !this.opts.isDisabled(n) && this.sync(n);
348
348
  }, this.onKeyDown = (s) => {
349
349
  var y, x;
350
350
  if (s.defaultPrevented || s.altKey || s.ctrlKey || s.metaKey) return;
351
- const r = this.opts.items(), a = r.findIndex((D) => D === s.target || D.contains(s.target));
352
- if (a < 0) return;
351
+ const r = this.opts.items(), n = r.findIndex((D) => D === s.target || D.contains(s.target));
352
+ if (n < 0) return;
353
353
  const o = this.opts.orientation(), h = Lt(this.host) === "rtl", c = o !== "vertical", f = o !== "horizontal";
354
354
  let p = 0;
355
355
  switch (s.key) {
@@ -373,7 +373,7 @@ class zn {
373
373
  break;
374
374
  }
375
375
  if (p === 0) return;
376
- const b = this.findNext(r, a, p);
376
+ const b = this.findNext(r, n, p);
377
377
  b && (s.preventDefault(), this.focus(b), (x = (y = this.opts).onNavigate) == null || x.call(y, b, s));
378
378
  }, this.opts = {
379
379
  orientation: () => "both",
@@ -390,8 +390,8 @@ class zn {
390
390
  }
391
391
  /** Make `active` (or the first enabled item) the single tab stop. */
392
392
  sync(t) {
393
- const e = this.opts.items(), s = e.filter((a) => !this.opts.isDisabled(a)), r = t && s.includes(t) ? t : s[0];
394
- for (const a of e) a.tabIndex = a === r ? 0 : -1;
393
+ const e = this.opts.items(), s = e.filter((n) => !this.opts.isDisabled(n)), r = t && s.includes(t) ? t : s[0];
394
+ for (const n of e) n.tabIndex = n === r ? 0 : -1;
395
395
  }
396
396
  /** Focus an item and make it the tab stop. */
397
397
  focus(t, e) {
@@ -401,11 +401,11 @@ class zn {
401
401
  const r = (h) => !this.opts.isDisabled(h);
402
402
  if (s === "first") return t.find(r);
403
403
  if (s === "last") return [...t].reverse().find(r);
404
- const a = t.length, o = this.opts.loop();
405
- for (let h = 1; h <= a; h++) {
404
+ const n = t.length, o = this.opts.loop();
405
+ for (let h = 1; h <= n; h++) {
406
406
  let c = e + s * h;
407
- if (o) c = (c + a) % a;
408
- else if (c < 0 || c >= a) return;
407
+ if (o) c = (c + n) % n;
408
+ else if (c < 0 || c >= n) return;
409
409
  if (r(t[c])) return t[c];
410
410
  }
411
411
  }
@@ -424,7 +424,7 @@ class Vt {
424
424
  request(t, e) {
425
425
  if (this.busy) return !1;
426
426
  let s, r = !0;
427
- const a = {
427
+ const n = {
428
428
  action: t,
429
429
  data: e,
430
430
  respondWith: (o) => {
@@ -433,7 +433,7 @@ class Vt {
433
433
  s = Promise.resolve(o);
434
434
  }
435
435
  };
436
- return S(this.host, "pont2-action", a), r = !1, s ? (this.track(t, e, s), !0) : !1;
436
+ return S(this.host, "pont2-action", n), r = !1, s ? (this.track(t, e, s), !0) : !1;
437
437
  }
438
438
  async track(t, e, s) {
439
439
  this.setBusy(!0);
@@ -441,8 +441,8 @@ class Vt {
441
441
  const r = await s;
442
442
  S(this.host, "pont2-action-success", { action: t, data: e, result: r });
443
443
  } catch (r) {
444
- const a = r instanceof Error ? r.message : String(r);
445
- S(this.host, "pont2-action-error", { action: t, data: e, error: r, message: a });
444
+ const n = r instanceof Error ? r.message : String(r);
445
+ S(this.host, "pont2-action-error", { action: t, data: e, error: r, message: n });
446
446
  } finally {
447
447
  this.setBusy(!1);
448
448
  }
@@ -451,7 +451,7 @@ class Vt {
451
451
  this.busy = t, this.host.requestUpdate();
452
452
  }
453
453
  }
454
- class Un {
454
+ class Ua {
455
455
  constructor(t, e, s = 2e3) {
456
456
  this.host = t, this.kind = e, this.duration = s, this.copied = !1, t.addController(this);
457
457
  }
@@ -471,7 +471,7 @@ class Un {
471
471
  }, this.duration), S(this.host, "pont2-copied", { kind: this.kind }), !0;
472
472
  }
473
473
  }
474
- const Vl = ["default", "secondary", "destructive", "outline", "ghost", "link"], Pt = class Pt extends l {
474
+ const Il = ["default", "secondary", "destructive", "outline", "ghost", "link"], Pt = class Pt extends l {
475
475
  constructor() {
476
476
  super(), this.variant = "default";
477
477
  }
@@ -483,9 +483,9 @@ Pt.identity = "badge", Pt.slotName = "badge", Pt.properties = {
483
483
  variant: { type: String, reflect: !0 }
484
484
  };
485
485
  let Ce = Pt;
486
- n("pont2-prim-badge", Ce);
487
- const Tl = ["default", "outline", "secondary", "ghost", "destructive", "link"], Rl = ["default", "xs", "sm", "lg", "icon", "icon-xs", "icon-sm", "icon-lg"];
488
- function Vn(i, t) {
486
+ a("pont2-prim-badge", Ce);
487
+ const Bl = ["default", "outline", "secondary", "ghost", "destructive", "link"], Pl = ["default", "xs", "sm", "lg", "icon", "icon-xs", "icon-sm", "icon-lg"];
488
+ function Va(i, t) {
489
489
  i.hasAttribute("data-pont2-button") || i.setAttribute("data-pont2-button", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", "button"), i.setAttribute("data-variant", t.variant ?? "default"), i.setAttribute("data-size", t.size ?? "default");
490
490
  const e = !!t.disabled, s = i instanceof HTMLButtonElement;
491
491
  i.toggleAttribute("data-disabled", e), s && !t.focusableWhenDisabled ? (i.disabled = e, i.removeAttribute("aria-disabled")) : (s && (i.disabled = !1), e ? i.setAttribute("aria-disabled", "true") : i.removeAttribute("aria-disabled"), s || (e && !t.focusableWhenDisabled ? i.tabIndex = -1 : i.removeAttribute("tabindex")));
@@ -494,7 +494,7 @@ function bo(i) {
494
494
  return i.getAttribute("aria-disabled") === "true" || i.hasAttribute("data-disabled");
495
495
  }
496
496
  function V(i, t) {
497
- const e = i.variant ?? "default", s = i.size ?? "default", r = i.slot ?? "button", a = !!i.disabled, o = a && (i.focusableWhenDisabled || i.href !== void 0), h = (c) => {
497
+ const e = i.variant ?? "default", s = i.size ?? "default", r = i.slot ?? "button", n = !!i.disabled, o = n && (i.focusableWhenDisabled || i.href !== void 0), h = (c) => {
498
498
  var f;
499
499
  if (o) {
500
500
  c.preventDefault(), c.stopImmediatePropagation();
@@ -510,9 +510,9 @@ function V(i, t) {
510
510
  href=${i.href}
511
511
  target=${i.target ?? u}
512
512
  rel=${i.rel ?? u}
513
- ?data-disabled=${a}
514
- aria-disabled=${a ? "true" : u}
515
- tabindex=${a && !i.focusableWhenDisabled ? "-1" : u}
513
+ ?data-disabled=${n}
514
+ aria-disabled=${n ? "true" : u}
515
+ tabindex=${n && !i.focusableWhenDisabled ? "-1" : u}
516
516
  ${N(i.attrs ?? {})}
517
517
  @click=${h}
518
518
  >${t}</a
@@ -524,14 +524,14 @@ function V(i, t) {
524
524
  type=${i.type ?? "button"}
525
525
  name=${i.name ?? u}
526
526
  .value=${i.value ?? ""}
527
- ?disabled=${a && !i.focusableWhenDisabled}
528
- ?data-disabled=${a}
527
+ ?disabled=${n && !i.focusableWhenDisabled}
528
+ ?data-disabled=${n}
529
529
  aria-disabled=${o ? "true" : u}
530
530
  ${N(i.attrs ?? {})}
531
531
  @click=${h}
532
532
  >${t}</button>`;
533
533
  }
534
- const Tn = {
534
+ const Ta = {
535
535
  variant: { type: String, reflect: !0 },
536
536
  size: { type: String, reflect: !0 },
537
537
  disabled: { type: Boolean, reflect: !0 },
@@ -544,12 +544,12 @@ const Tn = {
544
544
  }, this.variant = "default", this.size = "default", this.disabled = !1, this.focusableWhenDisabled = !1, this.addEventListener("click", this.guard, { capture: !0 });
545
545
  }
546
546
  apply(t) {
547
- Vn(t, this);
547
+ Va(t, this);
548
548
  }
549
549
  };
550
- di.nativeSelector = "button, a", di.properties = Tn;
550
+ di.nativeSelector = "button, a", di.properties = Ta;
551
551
  let ge = di;
552
- const Ka = class Ka extends Ot {
552
+ const Wn = class Wn extends Ot {
553
553
  constructor() {
554
554
  super(), this.variant = "default", this.size = "default", this.disabled = !1, this.focusableWhenDisabled = !1, this.type = "button";
555
555
  }
@@ -558,15 +558,15 @@ const Ka = class Ka extends Ot {
558
558
  return this.querySelector(":scope > [data-pont2-button]");
559
559
  }
560
560
  buttonOptions() {
561
- const { variant: t, size: e, type: s, name: r, value: a, disabled: o, focusableWhenDisabled: h, href: c, target: f, rel: p } = this;
562
- return { variant: t, size: e, type: s, name: r, value: a, disabled: o, focusableWhenDisabled: h, href: c, target: f, rel: p };
561
+ const { variant: t, size: e, type: s, name: r, value: n, disabled: o, focusableWhenDisabled: h, href: c, target: f, rel: p } = this;
562
+ return { variant: t, size: e, type: s, name: r, value: n, disabled: o, focusableWhenDisabled: h, href: c, target: f, rel: p };
563
563
  }
564
564
  render() {
565
565
  return V(this.buttonOptions(), this.renderContent());
566
566
  }
567
567
  };
568
- Ka.properties = {
569
- ...Tn,
568
+ Wn.properties = {
569
+ ...Ta,
570
570
  type: { type: String },
571
571
  name: { type: String },
572
572
  value: { type: String },
@@ -574,8 +574,8 @@ Ka.properties = {
574
574
  target: { type: String },
575
575
  rel: { type: String }
576
576
  };
577
- let Us = Ka;
578
- n("pont2-prim-button", ge);
577
+ let Us = Wn;
578
+ a("pont2-prim-button", ge);
579
579
  const Z = class Z extends M {
580
580
  constructor() {
581
581
  super(), this.onClick = (t) => {
@@ -629,18 +629,18 @@ Z.identity = "checkbox", Z.slotName = "checkbox", Z.role = "checkbox", Z.propert
629
629
  uncheckedValue: { type: String, attribute: "unchecked-value" }
630
630
  };
631
631
  let Oe = Z;
632
- n("pont2-prim-checkbox", Oe);
633
- function Rn(i, t = "input") {
632
+ a("pont2-prim-checkbox", Oe);
633
+ function Ra(i, t = "input") {
634
634
  i.hasAttribute("data-pont2-input") || i.setAttribute("data-pont2-input", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", t);
635
635
  }
636
- function Mn(i = {}) {
636
+ function Ma(i = {}) {
637
637
  return d`<input
638
638
  data-pont2-input
639
639
  data-slot=${i.slot ?? "input"}
640
640
  id=${i.id ?? u}
641
641
  name=${i.name ?? u}
642
642
  type=${i.type ?? "text"}
643
- .value=${Va(i.value ?? "")}
643
+ .value=${Tn(i.value ?? "")}
644
644
  placeholder=${i.placeholder ?? u}
645
645
  autocomplete=${i.autocomplete ?? u}
646
646
  inputmode=${i.inputmode ?? u}
@@ -654,14 +654,14 @@ function Mn(i = {}) {
654
654
  @change=${i.onChange ?? u}
655
655
  />`;
656
656
  }
657
- const Wa = class Wa extends O {
657
+ const Fn = class Fn extends O {
658
658
  apply(t) {
659
- Rn(t);
659
+ Ra(t);
660
660
  }
661
661
  };
662
- Wa.nativeSelector = "input";
663
- let Le = Wa;
664
- n("pont2-prim-input", Le);
662
+ Fn.nativeSelector = "input";
663
+ let Le = Fn;
664
+ a("pont2-prim-input", Le);
665
665
  const ui = class ui extends l {
666
666
  };
667
667
  ui.identity = "kbd", ui.slotName = "kbd";
@@ -670,12 +670,12 @@ const pi = class pi extends l {
670
670
  };
671
671
  pi.identity = "kbd-group", pi.slotName = "kbd-group";
672
672
  let ze = pi;
673
- n("pont2-prim-kbd", qe);
674
- n("pont2-prim-kbd-group", ze);
675
- function In(i, t = "label") {
673
+ a("pont2-prim-kbd", qe);
674
+ a("pont2-prim-kbd-group", ze);
675
+ function Ia(i, t = "label") {
676
676
  i.hasAttribute("data-pont2-label") || i.setAttribute("data-pont2-label", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", t);
677
677
  }
678
- function Ml(i, t) {
678
+ function Kl(i, t) {
679
679
  const e = {};
680
680
  for (const s of i.identities ?? []) e[`data-pont2-${s}`] = !0;
681
681
  return d`<label
@@ -687,14 +687,14 @@ function Ml(i, t) {
687
687
  >${t}</label
688
688
  >`;
689
689
  }
690
- const Fa = class Fa extends O {
690
+ const Hn = class Hn extends O {
691
691
  apply(t) {
692
- In(t);
692
+ Ia(t);
693
693
  }
694
694
  };
695
- Fa.nativeSelector = "label";
696
- let Ue = Fa;
697
- n("pont2-prim-label", Ue);
695
+ Hn.nativeSelector = "label";
696
+ let Ue = Hn;
697
+ a("pont2-prim-label", Ue);
698
698
  const J = class J extends l {
699
699
  constructor() {
700
700
  super(), this.orientation = "horizontal";
@@ -708,12 +708,12 @@ J.identity = "separator", J.slotName = "separator", J.role = "separator", J.prop
708
708
  orientation: { type: String, reflect: !0 }
709
709
  };
710
710
  let T = J;
711
- n("pont2-prim-separator", T);
711
+ a("pont2-prim-separator", T);
712
712
  const fi = class fi extends l {
713
713
  };
714
714
  fi.identity = "skeleton", fi.slotName = "skeleton";
715
715
  let Ve = fi;
716
- n("pont2-prim-skeleton", Ve);
716
+ a("pont2-prim-skeleton", Ve);
717
717
  const Kt = class Kt extends l {
718
718
  connectedCallback() {
719
719
  super.connectedCallback(), this.internals.ariaLabel || (this.internals.ariaLabel = "Loading");
@@ -721,8 +721,8 @@ const Kt = class Kt extends l {
721
721
  };
722
722
  Kt.identity = "spinner", Kt.slotName = "spinner", Kt.role = "status";
723
723
  let qt = Kt;
724
- n("pont2-prim-spinner", qt);
725
- function Bn(i, t = "textarea") {
724
+ a("pont2-prim-spinner", qt);
725
+ function Ba(i, t = "textarea") {
726
726
  i.hasAttribute("data-pont2-textarea") || i.setAttribute("data-pont2-textarea", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", t);
727
727
  }
728
728
  function yo(i = {}) {
@@ -738,20 +738,20 @@ function yo(i = {}) {
738
738
  ?readonly=${i.readonly}
739
739
  aria-invalid=${i.invalid ? "true" : u}
740
740
  aria-describedby=${i.describedBy ?? u}
741
- .value=${Va(i.value ?? "")}
741
+ .value=${Tn(i.value ?? "")}
742
742
  ${N(i.attrs ?? {})}
743
743
  @input=${i.onInput ?? u}
744
744
  ></textarea>`;
745
745
  }
746
- const Ha = class Ha extends O {
746
+ const jn = class jn extends O {
747
747
  apply(t) {
748
- Bn(t);
748
+ Ba(t);
749
749
  }
750
750
  };
751
- Ha.nativeSelector = "textarea";
752
- let Te = Ha;
753
- n("pont2-prim-textarea", Te);
754
- const Il = ["default", "destructive"], Q = class Q extends l {
751
+ jn.nativeSelector = "textarea";
752
+ let Te = jn;
753
+ a("pont2-prim-textarea", Te);
754
+ const Wl = ["default", "destructive"], Q = class Q extends l {
755
755
  constructor() {
756
756
  super(), this.variant = "default";
757
757
  }
@@ -775,10 +775,10 @@ const bi = class bi extends l {
775
775
  };
776
776
  bi.identity = "alert-action", bi.slotName = "alert-action";
777
777
  let Vs = bi;
778
- n("pont2-prim-alert", Re);
779
- n("pont2-prim-alert-title", Me);
780
- n("pont2-prim-alert-description", Ie);
781
- n("pont2-prim-alert-action", Vs);
778
+ a("pont2-prim-alert", Re);
779
+ a("pont2-prim-alert-title", Me);
780
+ a("pont2-prim-alert-description", Ie);
781
+ a("pont2-prim-alert-action", Vs);
782
782
  const Wt = class Wt extends l {
783
783
  constructor() {
784
784
  super(), this.img = null, this.onLoad = () => this.setStatus("loaded"), this.onError = () => this.setStatus("error"), this.size = "default", this.imageLoadingStatus = "idle";
@@ -833,11 +833,11 @@ const xi = class xi extends l {
833
833
  };
834
834
  xi.identity = "avatar-group-count", xi.slotName = "avatar-group-count";
835
835
  let Rs = xi;
836
- n("pont2-prim-avatar", Be);
837
- n("pont2-prim-avatar-fallback", Pe);
838
- n("pont2-prim-avatar-badge", Ke);
839
- n("pont2-prim-avatar-group", Ts);
840
- n("pont2-prim-avatar-group-count", Rs);
836
+ a("pont2-prim-avatar", Be);
837
+ a("pont2-prim-avatar-fallback", Pe);
838
+ a("pont2-prim-avatar-badge", Ke);
839
+ a("pont2-prim-avatar-group", Ts);
840
+ a("pont2-prim-avatar-group-count", Rs);
841
841
  const G = class G extends l {
842
842
  constructor() {
843
843
  super(), this.orientation = "horizontal";
@@ -861,9 +861,9 @@ const $i = class $i extends T {
861
861
  };
862
862
  $i.identity = "button-group-separator", $i.slotName = "button-group-separator";
863
863
  let Bs = $i;
864
- n("pont2-prim-button-group", Ms);
865
- n("pont2-prim-button-group-text", Is);
866
- n("pont2-prim-button-group-separator", Bs);
864
+ a("pont2-prim-button-group", Ms);
865
+ a("pont2-prim-button-group-text", Is);
866
+ a("pont2-prim-button-group-separator", Bs);
867
867
  const Ft = class Ft extends l {
868
868
  constructor() {
869
869
  super(), this.size = "default";
@@ -900,13 +900,13 @@ const Ci = class Ci extends l {
900
900
  };
901
901
  Ci.identity = "card-footer", Ci.slotName = "card-footer";
902
902
  let Fe = Ci;
903
- n("pont2-prim-card", We);
904
- n("pont2-prim-card-header", Ps);
905
- n("pont2-prim-card-title", Ks);
906
- n("pont2-prim-card-description", Ws);
907
- n("pont2-prim-card-action", Fs);
908
- n("pont2-prim-card-content", Hs);
909
- n("pont2-prim-card-footer", Fe);
903
+ a("pont2-prim-card", We);
904
+ a("pont2-prim-card-header", Ps);
905
+ a("pont2-prim-card-title", Ks);
906
+ a("pont2-prim-card-description", Ws);
907
+ a("pont2-prim-card-action", Fs);
908
+ a("pont2-prim-card-content", Hs);
909
+ a("pont2-prim-card-footer", Fe);
910
910
  const Oi = class Oi extends l {
911
911
  };
912
912
  Oi.identity = "empty", Oi.slotName = "empty";
@@ -939,21 +939,21 @@ const Ui = class Ui extends l {
939
939
  };
940
940
  Ui.identity = "empty-content", Ui.slotName = "empty-content";
941
941
  let Qs = Ui;
942
- n("pont2-prim-empty", js);
943
- n("pont2-prim-empty-header", Xs);
944
- n("pont2-prim-empty-media", Ys);
945
- n("pont2-prim-empty-title", Zs);
946
- n("pont2-prim-empty-description", Js);
947
- n("pont2-prim-empty-content", Qs);
942
+ a("pont2-prim-empty", js);
943
+ a("pont2-prim-empty-header", Xs);
944
+ a("pont2-prim-empty-media", Ys);
945
+ a("pont2-prim-empty-title", Zs);
946
+ a("pont2-prim-empty-description", Js);
947
+ a("pont2-prim-empty-content", Qs);
948
948
  function vo(i) {
949
949
  i.hasAttribute("data-pont2-field-set") || i.setAttribute("data-pont2-field-set", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", "field-set");
950
950
  }
951
- function Bl(i, t) {
951
+ function Fl(i, t) {
952
952
  return d`<fieldset data-pont2-field-set data-slot="field-set" ?disabled=${i.disabled} ${N(i.attrs ?? {})}>
953
953
  ${t}
954
954
  </fieldset>`;
955
955
  }
956
- function Pl(i, t) {
956
+ function Hl(i, t) {
957
957
  return d`<legend
958
958
  data-pont2-field-legend
959
959
  data-slot="field-legend"
@@ -962,13 +962,13 @@ function Pl(i, t) {
962
962
  >${t}</legend
963
963
  >`;
964
964
  }
965
- const ja = class ja extends O {
965
+ const Xn = class Xn extends O {
966
966
  apply(t) {
967
967
  vo(t);
968
968
  }
969
969
  };
970
- ja.nativeSelector = "fieldset";
971
- let Gs = ja;
970
+ Xn.nativeSelector = "fieldset";
971
+ let Gs = Xn;
972
972
  const Vi = class Vi extends l {
973
973
  };
974
974
  Vi.identity = "field-group", Vi.slotName = "field-group";
@@ -992,7 +992,7 @@ const Ti = class Ti extends l {
992
992
  Ti.identity = "field-content", Ti.slotName = "field-content";
993
993
  let tr = Ti;
994
994
  function wo(i) {
995
- In(i, "field-label"), i.hasAttribute("data-pont2-field-label") || i.setAttribute("data-pont2-field-label", "");
995
+ Ia(i, "field-label"), i.hasAttribute("data-pont2-field-label") || i.setAttribute("data-pont2-field-label", "");
996
996
  }
997
997
  function xo(i, t) {
998
998
  return d`<label
@@ -1005,13 +1005,13 @@ function xo(i, t) {
1005
1005
  >${t}</label
1006
1006
  >`;
1007
1007
  }
1008
- const Xa = class Xa extends O {
1008
+ const Yn = class Yn extends O {
1009
1009
  apply(t) {
1010
1010
  wo(t);
1011
1011
  }
1012
1012
  };
1013
- Xa.nativeSelector = "label";
1014
- let er = Xa;
1013
+ Yn.nativeSelector = "label";
1014
+ let er = Yn;
1015
1015
  const Ri = class Ri extends l {
1016
1016
  };
1017
1017
  Ri.identity = "field-title", Ri.slotName = "field-label";
@@ -1049,15 +1049,15 @@ tt.identity = "field-error", tt.slotName = "field-error", tt.role = "alert", tt.
1049
1049
  errors: { attribute: !1 }
1050
1050
  };
1051
1051
  let Xe = tt;
1052
- n("pont2-prim-field-set", Gs);
1053
- n("pont2-prim-field-group", _s);
1054
- n("pont2-prim-field", be);
1055
- n("pont2-prim-field-content", tr);
1056
- n("pont2-prim-field-label", er);
1057
- n("pont2-prim-field-title", ir);
1058
- n("pont2-prim-field-description", He);
1059
- n("pont2-prim-field-separator", je);
1060
- n("pont2-prim-field-error", Xe);
1052
+ a("pont2-prim-field-set", Gs);
1053
+ a("pont2-prim-field-group", _s);
1054
+ a("pont2-prim-field", be);
1055
+ a("pont2-prim-field-content", tr);
1056
+ a("pont2-prim-field-label", er);
1057
+ a("pont2-prim-field-title", ir);
1058
+ a("pont2-prim-field-description", He);
1059
+ a("pont2-prim-field-separator", je);
1060
+ a("pont2-prim-field-error", Xe);
1061
1061
  const et = class et extends l {
1062
1062
  constructor() {
1063
1063
  super(), this.disabled = !1;
@@ -1085,21 +1085,21 @@ it.identity = "input-group-addon", it.slotName = "input-group-addon", it.role =
1085
1085
  align: { type: String, reflect: !0 }
1086
1086
  };
1087
1087
  let ve = it;
1088
- const Ya = class Ya extends l {
1088
+ const Zn = class Zn extends l {
1089
1089
  };
1090
- Ya.identity = "input-group-text";
1091
- let sr = Ya;
1090
+ Zn.identity = "input-group-text";
1091
+ let sr = Zn;
1092
1092
  const j = "input-group-control";
1093
- function Pn(i, t) {
1093
+ function Pa(i, t) {
1094
1094
  i.hasAttribute(`data-pont2-${t}`) || i.setAttribute(`data-pont2-${t}`, ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", j);
1095
1095
  }
1096
- function Kn(i = {}) {
1097
- return Mn({ ...i, slot: j, attrs: { "data-pont2-input-group-input": !0, ...i.attrs ?? {} } });
1096
+ function Ka(i = {}) {
1097
+ return Ma({ ...i, slot: j, attrs: { "data-pont2-input-group-input": !0, ...i.attrs ?? {} } });
1098
1098
  }
1099
- function Kl(i = {}) {
1099
+ function jl(i = {}) {
1100
1100
  return yo({ ...i, slot: j, attrs: { "data-pont2-input-group-textarea": !0, ...i.attrs ?? {} } });
1101
1101
  }
1102
- function Wn(i, t) {
1102
+ function Wa(i, t) {
1103
1103
  return V(
1104
1104
  {
1105
1105
  variant: "ghost",
@@ -1110,38 +1110,38 @@ function Wn(i, t) {
1110
1110
  t
1111
1111
  );
1112
1112
  }
1113
- const Za = class Za extends O {
1113
+ const Jn = class Jn extends O {
1114
1114
  apply(t) {
1115
- t.hasAttribute("data-slot") || t.setAttribute("data-slot", j), Rn(t, j), Pn(t, "input-group-input");
1115
+ t.hasAttribute("data-slot") || t.setAttribute("data-slot", j), Ra(t, j), Pa(t, "input-group-input");
1116
1116
  }
1117
1117
  };
1118
- Za.nativeSelector = "input";
1119
- let rr = Za;
1120
- const Ja = class Ja extends O {
1118
+ Jn.nativeSelector = "input";
1119
+ let rr = Jn;
1120
+ const Qn = class Qn extends O {
1121
1121
  apply(t) {
1122
- t.hasAttribute("data-slot") || t.setAttribute("data-slot", j), Bn(t, j), Pn(t, "input-group-textarea");
1122
+ t.hasAttribute("data-slot") || t.setAttribute("data-slot", j), Ba(t, j), Pa(t, "input-group-textarea");
1123
1123
  }
1124
1124
  };
1125
- Ja.nativeSelector = "textarea";
1126
- let ar = Ja;
1125
+ Qn.nativeSelector = "textarea";
1126
+ let nr = Qn;
1127
1127
  class ko extends ge {
1128
1128
  constructor() {
1129
1129
  super(), this.variant = "ghost", this.size = "xs";
1130
1130
  }
1131
1131
  apply(t) {
1132
- Vn(t, this), t.hasAttribute("data-pont2-input-group-button") || t.setAttribute("data-pont2-input-group-button", ""), t instanceof HTMLButtonElement && !t.hasAttribute("type") && (t.type = "button");
1132
+ Va(t, this), t.hasAttribute("data-pont2-input-group-button") || t.setAttribute("data-pont2-input-group-button", ""), t instanceof HTMLButtonElement && !t.hasAttribute("type") && (t.type = "button");
1133
1133
  }
1134
1134
  }
1135
- n("pont2-prim-input-group", ye);
1136
- n("pont2-prim-input-group-addon", ve);
1137
- n("pont2-prim-input-group-text", sr);
1138
- n("pont2-prim-input-group-input", rr);
1139
- n("pont2-prim-input-group-textarea", ar);
1140
- n("pont2-prim-input-group-button", ko);
1135
+ a("pont2-prim-input-group", ye);
1136
+ a("pont2-prim-input-group-addon", ve);
1137
+ a("pont2-prim-input-group-text", sr);
1138
+ a("pont2-prim-input-group-input", rr);
1139
+ a("pont2-prim-input-group-textarea", nr);
1140
+ a("pont2-prim-input-group-button", ko);
1141
1141
  const jt = class jt extends l {
1142
1142
  };
1143
1143
  jt.identity = "item-group", jt.slotName = "item-group", jt.role = "list";
1144
- let nr = jt;
1144
+ let ar = jt;
1145
1145
  const Bi = class Bi extends T {
1146
1146
  };
1147
1147
  Bi.identity = "item-separator", Bi.slotName = "item-separator";
@@ -1195,16 +1195,16 @@ const ji = class ji extends l {
1195
1195
  };
1196
1196
  ji.identity = "item-footer", ji.slotName = "item-footer";
1197
1197
  let mr = ji;
1198
- n("pont2-prim-item-group", nr);
1199
- n("pont2-prim-item-separator", or);
1200
- n("pont2-prim-item", lr);
1201
- n("pont2-prim-item-media", cr);
1202
- n("pont2-prim-item-content", hr);
1203
- n("pont2-prim-item-title", dr);
1204
- n("pont2-prim-item-description", ur);
1205
- n("pont2-prim-item-actions", pr);
1206
- n("pont2-prim-item-header", fr);
1207
- n("pont2-prim-item-footer", mr);
1198
+ a("pont2-prim-item-group", ar);
1199
+ a("pont2-prim-item-separator", or);
1200
+ a("pont2-prim-item", lr);
1201
+ a("pont2-prim-item-media", cr);
1202
+ a("pont2-prim-item-content", hr);
1203
+ a("pont2-prim-item-title", dr);
1204
+ a("pont2-prim-item-description", ur);
1205
+ a("pont2-prim-item-actions", pr);
1206
+ a("pont2-prim-item-header", fr);
1207
+ a("pont2-prim-item-footer", mr);
1208
1208
  const Zt = class Zt extends l {
1209
1209
  constructor() {
1210
1210
  super(), this.size = "default";
@@ -1238,7 +1238,7 @@ let Ye = Zt;
1238
1238
  function $o(i, t = "default") {
1239
1239
  i.hasAttribute("data-pont2-native-select") || i.setAttribute("data-pont2-native-select", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", "native-select"), i.setAttribute("data-size", t);
1240
1240
  }
1241
- function Wl(i, t) {
1241
+ function Xl(i, t) {
1242
1242
  const e = i.size ?? "default";
1243
1243
  return d`<div data-pont2-native-select-wrapper data-slot="native-select-wrapper" data-size=${e}>
1244
1244
  <select
@@ -1257,7 +1257,7 @@ function Wl(i, t) {
1257
1257
  </select>
1258
1258
  </div>`;
1259
1259
  }
1260
- n("pont2-prim-native-select", Ye);
1260
+ a("pont2-prim-native-select", Ye);
1261
1261
  const Xi = class Xi extends l {
1262
1262
  /** The native `<table>` this container holds. */
1263
1263
  get table() {
@@ -1298,8 +1298,8 @@ function So(i) {
1298
1298
  for (const e of Array.from(t.cells)) Rt(e, Ee[e.tagName]);
1299
1299
  }
1300
1300
  }
1301
- n("pont2-prim-table", Ze);
1302
- const Je = "^\\d+$", Fl = "^[a-zA-Z]+$", Hl = "^[a-zA-Z0-9]+$";
1301
+ a("pont2-prim-table", Ze);
1302
+ const Je = "^\\d+$", Yl = "^[a-zA-Z]+$", Zl = "^[a-zA-Z0-9]+$";
1303
1303
  function Es(i, t, e = Je) {
1304
1304
  let s = null;
1305
1305
  if (e)
@@ -1309,23 +1309,23 @@ function Es(i, t, e = Je) {
1309
1309
  s = null;
1310
1310
  }
1311
1311
  let r = "";
1312
- for (const a of Array.from(i)) {
1312
+ for (const n of Array.from(i)) {
1313
1313
  if (r.length >= t) break;
1314
- /\s/.test(a) || s && !s.test(a) || (r += a);
1314
+ /\s/.test(n) || s && !s.test(n) || (r += n);
1315
1315
  }
1316
1316
  return r;
1317
1317
  }
1318
1318
  function Ao(i, t, e, s, r) {
1319
- const a = Array.from(i);
1320
- let o = s ?? a.length, h = r ?? o;
1319
+ const n = Array.from(i);
1320
+ let o = s ?? n.length, h = r ?? o;
1321
1321
  o === h && o >= t && (o = t - 1, h = t);
1322
1322
  const c = o === h;
1323
1323
  return Array.from({ length: t }, (f, p) => {
1324
- const b = a[p] ?? null, y = e && (c ? p === o : p >= o && p < h);
1324
+ const b = n[p] ?? null, y = e && (c ? p === o : p >= o && p < h);
1325
1325
  return { char: b, isActive: y, hasFakeCaret: y && c && b === null };
1326
1326
  });
1327
1327
  }
1328
- const Fn = m("input-otp"), Eo = m("input-otp-slot"), gn = ["aria-label", "aria-labelledby", "aria-describedby", "aria-invalid"], Yi = class Yi extends l {
1328
+ const Fa = m("input-otp"), Eo = m("input-otp-slot"), ga = ["aria-label", "aria-labelledby", "aria-describedby", "aria-invalid"], Yi = class Yi extends l {
1329
1329
  constructor() {
1330
1330
  super(), this.dirty = !1, this.focused = !1, this.onInput = (t) => {
1331
1331
  this.setFromInput(t.target.value, t.target);
@@ -1334,8 +1334,8 @@ const Fn = m("input-otp"), Eo = m("input-otp-slot"), gn = ["aria-label", "aria-l
1334
1334
  const e = t.target, s = (o = t.clipboardData) == null ? void 0 : o.getData("text/plain");
1335
1335
  if (s == null) return;
1336
1336
  t.preventDefault();
1337
- const r = e.selectionStart ?? e.value.length, a = e.selectionEnd ?? r;
1338
- this.setFromInput(e.value.slice(0, r) + s + e.value.slice(a), e), e.dispatchEvent(new Event("input", { bubbles: !0, composed: !0 }));
1337
+ const r = e.selectionStart ?? e.value.length, n = e.selectionEnd ?? r;
1338
+ this.setFromInput(e.value.slice(0, r) + s + e.value.slice(n), e), e.dispatchEvent(new Event("input", { bubbles: !0, composed: !0 }));
1339
1339
  }, this.placeCaret = () => {
1340
1340
  const t = this.input;
1341
1341
  if (!t) return;
@@ -1366,7 +1366,7 @@ const Fn = m("input-otp"), Eo = m("input-otp-slot"), gn = ["aria-label", "aria-l
1366
1366
  connectedCallback() {
1367
1367
  super.connectedCallback(), this.readForwarded(), this.observer ?? (this.observer = new MutationObserver((t) => {
1368
1368
  t.some((e) => e.type === "attributes" && e.target === this) ? this.readForwarded() : this.syncSlots();
1369
- })), this.observer.observe(this, { attributes: !0, attributeFilter: [...gn], childList: !0, subtree: !0 }), document.addEventListener("selectionchange", this.onSelectionChange);
1369
+ })), this.observer.observe(this, { attributes: !0, attributeFilter: [...ga], childList: !0, subtree: !0 }), document.addEventListener("selectionchange", this.onSelectionChange);
1370
1370
  }
1371
1371
  disconnectedCallback() {
1372
1372
  var t;
@@ -1374,17 +1374,17 @@ const Fn = m("input-otp"), Eo = m("input-otp-slot"), gn = ["aria-label", "aria-l
1374
1374
  }
1375
1375
  readForwarded() {
1376
1376
  const t = {};
1377
- for (const e of gn) t[e] = this.getAttribute(e);
1377
+ for (const e of ga) t[e] = this.getAttribute(e);
1378
1378
  this.forwarded = t;
1379
1379
  }
1380
1380
  get slots() {
1381
- return Array.from(this.querySelectorAll(Eo)).filter((t) => t.closest(Fn) === this);
1381
+ return Array.from(this.querySelectorAll(Eo)).filter((t) => t.closest(Fa) === this);
1382
1382
  }
1383
1383
  /** Push per-slot state into the slot elements. */
1384
1384
  syncSlots() {
1385
1385
  const t = this.input, e = Ao(this.current, this.maxLength, this.focused, (t == null ? void 0 : t.selectionStart) ?? null, (t == null ? void 0 : t.selectionEnd) ?? null), s = this.forwarded["aria-invalid"] === "true";
1386
- this.slots.forEach((r, a) => {
1387
- const o = r.hasAttribute("index") ? Number(r.getAttribute("index")) : a;
1386
+ this.slots.forEach((r, n) => {
1387
+ const o = r.hasAttribute("index") ? Number(r.getAttribute("index")) : n;
1388
1388
  typeof r.sync == "function" && r.sync(e[o] ?? { char: null, isActive: !1, hasFakeCaret: !1 }, s);
1389
1389
  });
1390
1390
  }
@@ -1414,7 +1414,7 @@ const Fn = m("input-otp"), Eo = m("input-otp-slot"), gn = ["aria-label", "aria-l
1414
1414
  data-slot="input-otp"
1415
1415
  id=${this.inputId ?? u}
1416
1416
  name=${this.name ?? u}
1417
- .value=${Va(this.current)}
1417
+ .value=${Tn(this.current)}
1418
1418
  maxlength=${this.maxLength}
1419
1419
  pattern=${this.pattern || u}
1420
1420
  inputmode=${this.keyboardMode ?? (t ? "numeric" : "text")}
@@ -1460,7 +1460,7 @@ const Jt = class Jt extends l {
1460
1460
  }
1461
1461
  connectedCallback() {
1462
1462
  var t;
1463
- super.connectedCallback(), (t = this.closest(Fn)) == null || t.requestUpdate();
1463
+ super.connectedCallback(), (t = this.closest(Fa)) == null || t.requestUpdate();
1464
1464
  }
1465
1465
  /** @internal Called by the InputOTP. */
1466
1466
  sync(t, e) {
@@ -1482,11 +1482,11 @@ const Qt = class Qt extends l {
1482
1482
  };
1483
1483
  Qt.identity = "input-otp-separator", Qt.slotName = "input-otp-separator", Qt.role = "separator";
1484
1484
  let _e = Qt;
1485
- n("pont2-prim-input-otp", Qe);
1486
- n("pont2-prim-input-otp-group", Ge);
1487
- n("pont2-prim-input-otp-slot", gr);
1488
- n("pont2-prim-input-otp-separator", _e);
1489
- const Hn = m("progress"), st = class st extends l {
1485
+ a("pont2-prim-input-otp", Qe);
1486
+ a("pont2-prim-input-otp-group", Ge);
1487
+ a("pont2-prim-input-otp-slot", gr);
1488
+ a("pont2-prim-input-otp-separator", _e);
1489
+ const Ha = m("progress"), st = class st extends l {
1490
1490
  constructor() {
1491
1491
  super(), this.value = null, this.min = 0, this.max = 100;
1492
1492
  }
@@ -1517,7 +1517,7 @@ const Hn = m("progress"), st = class st extends l {
1517
1517
  for (const s of e) typeof s.sync == "function" && s.sync(this.status, this.formattedValue);
1518
1518
  }
1519
1519
  own(t) {
1520
- return Array.from(this.querySelectorAll(t)).filter((e) => e.closest(Hn) === this);
1520
+ return Array.from(this.querySelectorAll(t)).filter((e) => e.closest(Ha) === this);
1521
1521
  }
1522
1522
  render() {
1523
1523
  const t = this.status, e = this.fraction;
@@ -1545,21 +1545,21 @@ st.identity = "progress", st.slotName = "progress", st.role = "progressbar", st.
1545
1545
  max: { type: Number }
1546
1546
  };
1547
1547
  let br = st;
1548
- class jn extends l {
1548
+ class ja extends l {
1549
1549
  connectedCallback() {
1550
1550
  var t;
1551
- super.connectedCallback(), (t = this.closest(Hn)) == null || t.requestUpdate();
1551
+ super.connectedCallback(), (t = this.closest(Ha)) == null || t.requestUpdate();
1552
1552
  }
1553
1553
  /** @internal Called by the root. */
1554
1554
  sync(t, e) {
1555
1555
  for (const s of ["progressing", "complete", "indeterminate"]) this.setData(s, s === t);
1556
1556
  }
1557
1557
  }
1558
- const Ji = class Ji extends jn {
1558
+ const Ji = class Ji extends ja {
1559
1559
  };
1560
1560
  Ji.identity = "progress-label", Ji.slotName = "progress-label";
1561
1561
  let yr = Ji;
1562
- const Gt = class Gt extends jn {
1562
+ const Gt = class Gt extends ja {
1563
1563
  constructor() {
1564
1564
  super(), this.authored = !1, this.formatted = "";
1565
1565
  }
@@ -1577,12 +1577,12 @@ Gt.identity = "progress-value", Gt.slotName = "progress-value", Gt.properties =
1577
1577
  formatted: { state: !0 }
1578
1578
  };
1579
1579
  let vr = Gt;
1580
- n("pont2-prim-progress", br);
1581
- n("pont2-prim-progress-label", yr);
1582
- n("pont2-prim-progress-value", vr);
1580
+ a("pont2-prim-progress", br);
1581
+ a("pont2-prim-progress-label", yr);
1582
+ a("pont2-prim-progress-value", vr);
1583
1583
  const rt = class rt extends M {
1584
1584
  constructor() {
1585
- super(), this.roving = new zn(this, {
1585
+ super(), this.roving = new za(this, {
1586
1586
  items: () => this.items,
1587
1587
  orientation: () => this.orientation ?? "both",
1588
1588
  onNavigate: (t) => this.selectItem(t)
@@ -1694,10 +1694,10 @@ P.formAssociated = !0, P.identity = "radio-group-item", P.slotName = "radio-grou
1694
1694
  formDisabled: { state: !0 }
1695
1695
  };
1696
1696
  let xr = P;
1697
- n("pont2-prim-radio-group", wr);
1698
- n("pont2-prim-radio-group-item", xr);
1697
+ a("pont2-prim-radio-group", wr);
1698
+ a("pont2-prim-radio-group-item", xr);
1699
1699
  const we = (i, t, e) => Math.min(e, Math.max(t, i));
1700
- function bn(i) {
1700
+ function ba(i) {
1701
1701
  if (!Number.isFinite(i)) return 0;
1702
1702
  const t = String(i);
1703
1703
  if (t.includes("e-")) return Number(t.split("e-")[1]);
@@ -1706,37 +1706,37 @@ function bn(i) {
1706
1706
  }
1707
1707
  function Do(i, { min: t, max: e, step: s }) {
1708
1708
  if (!(s > 0)) return we(i, t, e);
1709
- const r = Math.round((i - t) / s) * s + t, a = Math.max(bn(s), bn(t));
1710
- return we(Number(r.toFixed(a)), t, e);
1709
+ const r = Math.round((i - t) / s) * s + t, n = Math.max(ba(s), ba(t));
1710
+ return we(Number(r.toFixed(n)), t, e);
1711
1711
  }
1712
1712
  function No(i, { min: t, max: e }) {
1713
1713
  return e <= t ? 0 : we((i - t) / (e - t), 0, 1);
1714
1714
  }
1715
- function yn(i, { min: t, max: e }) {
1715
+ function ya(i, { min: t, max: e }) {
1716
1716
  return t + we(i, 0, 1) * (e - t);
1717
1717
  }
1718
1718
  function Co(i, t) {
1719
1719
  let e = 0, s = 1 / 0;
1720
- return i.forEach((r, a) => {
1720
+ return i.forEach((r, n) => {
1721
1721
  const o = Math.abs(r - t);
1722
- (o < s || o === s && t > r) && (e = a, s = o);
1722
+ (o < s || o === s && t > r) && (e = n, s = o);
1723
1723
  }), e;
1724
1724
  }
1725
1725
  function Ds(i, t, e, s, r = 0) {
1726
- const a = r * s.step, o = t > 0 ? i[t - 1] + a : s.min, h = t < i.length - 1 ? i[t + 1] - a : s.max, c = i.slice();
1726
+ const n = r * s.step, o = t > 0 ? i[t - 1] + n : s.min, h = t < i.length - 1 ? i[t + 1] - n : s.max, c = i.slice();
1727
1727
  return c[t] = we(Do(e, s), o, h), c;
1728
1728
  }
1729
1729
  function Oo(i, t, e, s = {}) {
1730
- const r = s.shift ? e.largeStep : e.step, a = s.rtl && !s.vertical ? -1 : 1;
1730
+ const r = s.shift ? e.largeStep : e.step, n = s.rtl && !s.vertical ? -1 : 1;
1731
1731
  switch (i) {
1732
1732
  case "ArrowUp":
1733
1733
  return t + r;
1734
1734
  case "ArrowDown":
1735
1735
  return t - r;
1736
1736
  case "ArrowRight":
1737
- return t + r * a;
1737
+ return t + r * n;
1738
1738
  case "ArrowLeft":
1739
- return t - r * a;
1739
+ return t - r * n;
1740
1740
  case "PageUp":
1741
1741
  return t + e.largeStep;
1742
1742
  case "PageDown":
@@ -1767,8 +1767,8 @@ const _t = class _t extends M {
1767
1767
  }, this.onPointerDown = (t) => {
1768
1768
  var o, h, c;
1769
1769
  if (this.isDisabled || this.readOnly || t.button !== 0) return;
1770
- const e = this.control, s = this.valueFromPointer(t), r = (h = (o = t.target).closest) == null ? void 0 : h.call(o, "[data-slot=slider-thumb]"), a = r ? this.thumbs.indexOf(r) : Co(this.values, s);
1771
- this.dragging = a, this.activeThumb = a, e.setPointerCapture(t.pointerId), t.preventDefault(), (c = this.thumbs[a]) == null || c.focus({ preventScroll: !0 }), r || this.commit(a, s, !1);
1770
+ const e = this.control, s = this.valueFromPointer(t), r = (h = (o = t.target).closest) == null ? void 0 : h.call(o, "[data-slot=slider-thumb]"), n = r ? this.thumbs.indexOf(r) : Co(this.values, s);
1771
+ this.dragging = n, this.activeThumb = n, e.setPointerCapture(t.pointerId), t.preventDefault(), (c = this.thumbs[n]) == null || c.focus({ preventScroll: !0 }), r || this.commit(n, s, !1);
1772
1772
  }, this.onPointerMove = (t) => {
1773
1773
  this.dragging < 0 || this.commit(this.dragging, this.valueFromPointer(t), !1);
1774
1774
  }, this.onPointerUp = (t) => {
@@ -1823,19 +1823,19 @@ const _t = class _t extends M {
1823
1823
  /* Interaction */
1824
1824
  /* -------------------------------------------------------------- */
1825
1825
  commit(t, e, s) {
1826
- const r = Ds(this.values, t, e, this.range, this.minStepsBetweenValues), a = r[t] !== this.values[t];
1827
- a && (this.dirty = !0, this.values = r, k(this, "input")), s && (a || this.dragging >= 0) && k(this, "change");
1826
+ const r = Ds(this.values, t, e, this.range, this.minStepsBetweenValues), n = r[t] !== this.values[t];
1827
+ n && (this.dirty = !0, this.values = r, k(this, "input")), s && (n || this.dragging >= 0) && k(this, "change");
1828
1828
  }
1829
1829
  valueFromPointer(t) {
1830
1830
  var o;
1831
1831
  const e = this.control.getBoundingClientRect(), s = (o = this.thumbs[0]) == null ? void 0 : o.getBoundingClientRect();
1832
1832
  if (this.orientation === "vertical") {
1833
1833
  const h = (s == null ? void 0 : s.height) ?? 0;
1834
- return yn(1 - (t.clientY - e.top - h / 2) / Math.max(1, e.height - h), this.range);
1834
+ return ya(1 - (t.clientY - e.top - h / 2) / Math.max(1, e.height - h), this.range);
1835
1835
  }
1836
1836
  const r = (s == null ? void 0 : s.width) ?? 0;
1837
- let a = (t.clientX - e.left - r / 2) / Math.max(1, e.width - r);
1838
- return Lt(this) === "rtl" && (a = 1 - a), yn(a, this.range);
1837
+ let n = (t.clientX - e.left - r / 2) / Math.max(1, e.width - r);
1838
+ return Lt(this) === "rtl" && (n = 1 - n), ya(n, this.range);
1839
1839
  }
1840
1840
  /* -------------------------------------------------------------- */
1841
1841
  /* Render */
@@ -1850,7 +1850,7 @@ const _t = class _t extends M {
1850
1850
  s ? r.setAttribute("aria-labelledby", s) : r.removeAttribute("aria-labelledby");
1851
1851
  }
1852
1852
  render() {
1853
- const t = this.orientation === "vertical", e = t ? "vertical" : "horizontal", s = this.isDisabled, r = this.values.map((b) => No(b, this.range)), a = (b) => `calc(${b} * (100% - var(--_pont2-slider-thumb)))`, o = this.values.length > 1 ? r[0] : 0, h = r[r.length - 1], c = t ? { bottom: this.values.length > 1 ? `calc(${a(o)} + var(--_pont2-slider-thumb) / 2)` : "0", top: `calc(100% - ${a(h)} - var(--_pont2-slider-thumb) / 2)` } : { insetInlineStart: this.values.length > 1 ? `calc(${a(o)} + var(--_pont2-slider-thumb) / 2)` : "0", insetInlineEnd: `calc(100% - ${a(h)} - var(--_pont2-slider-thumb) / 2)` }, f = this.getAttribute("aria-label"), p = this.values.length === 2 ? ["Minimum", "Maximum"] : [];
1853
+ const t = this.orientation === "vertical", e = t ? "vertical" : "horizontal", s = this.isDisabled, r = this.values.map((b) => No(b, this.range)), n = (b) => `calc(${b} * (100% - var(--_pont2-slider-thumb)))`, o = this.values.length > 1 ? r[0] : 0, h = r[r.length - 1], c = t ? { bottom: this.values.length > 1 ? `calc(${n(o)} + var(--_pont2-slider-thumb) / 2)` : "0", top: `calc(100% - ${n(h)} - var(--_pont2-slider-thumb) / 2)` } : { insetInlineStart: this.values.length > 1 ? `calc(${n(o)} + var(--_pont2-slider-thumb) / 2)` : "0", insetInlineEnd: `calc(100% - ${n(h)} - var(--_pont2-slider-thumb) / 2)` }, f = this.getAttribute("aria-label"), p = this.values.length === 2 ? ["Minimum", "Maximum"] : [];
1854
1854
  return d`<div
1855
1855
  data-pont2-slider-control
1856
1856
  data-slot="slider-control"
@@ -1864,7 +1864,7 @@ const _t = class _t extends M {
1864
1864
  <div data-pont2-slider-track data-slot="slider-track" data-orientation=${e} ?data-disabled=${s}>
1865
1865
  <div data-pont2-slider-range data-slot="slider-range" data-orientation=${e} ?data-disabled=${s} style=${Ne(c)}></div>
1866
1866
  </div>
1867
- ${Ta(
1867
+ ${Rn(
1868
1868
  this.values,
1869
1869
  (b, y) => y,
1870
1870
  (b, y) => d`<div
@@ -1882,7 +1882,7 @@ const _t = class _t extends M {
1882
1882
  aria-orientation=${e}
1883
1883
  aria-disabled=${s ? "true" : "false"}
1884
1884
  aria-label=${f ? p[y] ? `${f} ${p[y].toLowerCase()}` : f : p[y] ?? u}
1885
- style=${Ne(t ? { bottom: a(r[y]) } : { insetInlineStart: a(r[y]) })}
1885
+ style=${Ne(t ? { bottom: n(r[y]) } : { insetInlineStart: n(r[y]) })}
1886
1886
  @keydown=${(x) => this.onKeyDown(x, y)}
1887
1887
  ></div>`
1888
1888
  )}
@@ -1901,8 +1901,8 @@ _t.identity = "slider", _t.slotName = "slider", _t.properties = {
1901
1901
  activeThumb: { state: !0 }
1902
1902
  };
1903
1903
  let ti = _t;
1904
- n("pont2-prim-slider", ti);
1905
- const at = class at extends M {
1904
+ a("pont2-prim-slider", ti);
1905
+ const nt = class nt extends M {
1906
1906
  constructor() {
1907
1907
  super(), this.onClick = (t) => {
1908
1908
  if (this.isDisabled || this.readOnly) {
@@ -1945,17 +1945,17 @@ const at = class at extends M {
1945
1945
  ></span>`;
1946
1946
  }
1947
1947
  };
1948
- at.identity = "switch", at.slotName = "switch", at.role = "switch", at.properties = {
1948
+ nt.identity = "switch", nt.slotName = "switch", nt.role = "switch", nt.properties = {
1949
1949
  checked: { type: Boolean },
1950
1950
  size: { type: String, reflect: !0 },
1951
1951
  value: { type: String },
1952
1952
  uncheckedValue: { type: String, attribute: "unchecked-value" }
1953
1953
  };
1954
- let ei = at;
1955
- n("pont2-prim-switch", ei);
1954
+ let ei = nt;
1955
+ a("pont2-prim-switch", ei);
1956
1956
  const As = m("tabs"), qo = m("tabs-trigger"), zo = m("tabs-content");
1957
- function Xn(i, t, e, s, r) {
1958
- e in ElementInternals.prototype ? i[e] = r.length ? r : null : r.length ? t.setAttribute(s, r.map((a) => $(a, "tabs")).join(" ")) : t.removeAttribute(s);
1957
+ function Xa(i, t, e, s, r) {
1958
+ e in ElementInternals.prototype ? i[e] = r.length ? r : null : r.length ? t.setAttribute(s, r.map((n) => $(n, "tabs")).join(" ")) : t.removeAttribute(s);
1959
1959
  }
1960
1960
  const te = class te extends l {
1961
1961
  constructor() {
@@ -1990,8 +1990,8 @@ const te = class te extends l {
1990
1990
  /** Activate a trigger as the user would (fires input/change). */
1991
1991
  select(t) {
1992
1992
  if (t.disabled || t.value === this.value) return;
1993
- const e = this.triggers, s = e.findIndex((o) => o.value === this.value), r = e.indexOf(t), a = this.orientation === "vertical";
1994
- this.direction = s < 0 || r === s ? "none" : r > s ? a ? "down" : "right" : a ? "up" : "left", this.value = t.value, k(this, "input"), k(this, "change");
1993
+ const e = this.triggers, s = e.findIndex((o) => o.value === this.value), r = e.indexOf(t), n = this.orientation === "vertical";
1994
+ this.direction = s < 0 || r === s ? "none" : r > s ? n ? "down" : "right" : n ? "up" : "left", this.value = t.value, k(this, "input"), k(this, "change");
1995
1995
  }
1996
1996
  willUpdate(t) {
1997
1997
  !this.dirty && (t.has("defaultValue") || !this.hasUpdated) && (this.current = this.defaultValue ?? "");
@@ -2001,18 +2001,18 @@ const te = class te extends l {
2001
2001
  const t = this.orientation === "vertical" ? "vertical" : "horizontal", e = this.triggers, s = this.panels;
2002
2002
  let r = this.current;
2003
2003
  e.some((c) => c.getAttribute("value") === r) || (r = ((h = e.find((c) => !c.hasAttribute("disabled"))) == null ? void 0 : h.getAttribute("value")) ?? ""), this.setData("orientation", t), this.setData("activation-direction", this.direction);
2004
- const a = (c) => typeof c.sync == "function";
2005
- for (const c of this.lists) a(c) && c.sync(t, this.direction);
2004
+ const n = (c) => typeof c.sync == "function";
2005
+ for (const c of this.lists) n(c) && c.sync(t, this.direction);
2006
2006
  let o = null;
2007
2007
  for (const c of e) {
2008
2008
  const f = c.getAttribute("value") === r, p = s.find((b) => b.getAttribute("value") === c.getAttribute("value")) ?? null;
2009
- a(c) && c.sync(f, t, p), f && (o = c);
2009
+ n(c) && c.sync(f, t, p), f && (o = c);
2010
2010
  }
2011
2011
  for (const c of s) {
2012
2012
  const f = e.find((p) => p.getAttribute("value") === c.getAttribute("value")) ?? null;
2013
- a(c) && c.sync(c.getAttribute("value") === r, t, f);
2013
+ n(c) && c.sync(c.getAttribute("value") === r, t, f);
2014
2014
  }
2015
- for (const c of this.lists) a(c) && c.focusSync(o);
2015
+ for (const c of this.lists) n(c) && c.focusSync(o);
2016
2016
  }
2017
2017
  };
2018
2018
  te.identity = "tabs", te.slotName = "tabs", te.properties = {
@@ -2021,9 +2021,9 @@ te.identity = "tabs", te.slotName = "tabs", te.properties = {
2021
2021
  current: { state: !0 }
2022
2022
  };
2023
2023
  let kr = te;
2024
- const nt = class nt extends l {
2024
+ const at = class at extends l {
2025
2025
  constructor() {
2026
- super(), this.orientation = "horizontal", this.roving = new zn(this, {
2026
+ super(), this.orientation = "horizontal", this.roving = new za(this, {
2027
2027
  items: () => {
2028
2028
  var t;
2029
2029
  return ((t = this.root) == null ? void 0 : t.triggers.filter((e) => this.contains(e))) ?? [];
@@ -2057,12 +2057,12 @@ const nt = class nt extends l {
2057
2057
  this.setData("variant", this.variant === "line" ? "line" : "default");
2058
2058
  }
2059
2059
  };
2060
- nt.identity = "tabs-list", nt.slotName = "tabs-list", nt.role = "tablist", nt.properties = {
2060
+ at.identity = "tabs-list", at.slotName = "tabs-list", at.role = "tablist", at.properties = {
2061
2061
  variant: { type: String, reflect: !0 },
2062
2062
  activateOnFocus: { type: Boolean, attribute: "activate-on-focus" },
2063
2063
  loop: { type: String }
2064
2064
  };
2065
- let $r = nt;
2065
+ let $r = at;
2066
2066
  const ot = class ot extends l {
2067
2067
  constructor() {
2068
2068
  super(), this.onClick = () => {
@@ -2082,7 +2082,7 @@ const ot = class ot extends l {
2082
2082
  }
2083
2083
  /** @internal Called by the root. */
2084
2084
  sync(t, e, s) {
2085
- this.internals.ariaSelected = String(t), this.internals.ariaDisabled = this.disabled ? "true" : null, Xn(this.internals, this, "ariaControlsElements", "aria-controls", s ? [s] : []), this.setData("active", t), this.setData("disabled", this.disabled), this.setData("orientation", e), this.setState("active", t);
2085
+ this.internals.ariaSelected = String(t), this.internals.ariaDisabled = this.disabled ? "true" : null, Xa(this.internals, this, "ariaControlsElements", "aria-controls", s ? [s] : []), this.setData("active", t), this.setData("disabled", this.disabled), this.setData("orientation", e), this.setState("active", t);
2086
2086
  }
2087
2087
  };
2088
2088
  ot.identity = "tabs-trigger", ot.slotName = "tabs-trigger", ot.role = "tab", ot.properties = {
@@ -2100,18 +2100,18 @@ const lt = class lt extends l {
2100
2100
  }
2101
2101
  /** @internal Called by the root. */
2102
2102
  sync(t, e, s) {
2103
- Xn(this.internals, this, "ariaLabelledByElements", "aria-labelledby", s ? [s] : []), this.hidden = !t, this.setData("hidden", !t), this.setData("orientation", e), this.hasAttribute("tabindex") || (this.tabIndex = 0);
2103
+ Xa(this.internals, this, "ariaLabelledByElements", "aria-labelledby", s ? [s] : []), this.hidden = !t, this.setData("hidden", !t), this.setData("orientation", e), this.hasAttribute("tabindex") || (this.tabIndex = 0);
2104
2104
  }
2105
2105
  };
2106
2106
  lt.identity = "tabs-content", lt.slotName = "tabs-content", lt.role = "tabpanel", lt.properties = {
2107
2107
  value: { type: String }
2108
2108
  };
2109
2109
  let Ar = lt;
2110
- n("pont2-prim-tabs", kr);
2111
- n("pont2-prim-tabs-list", $r);
2112
- n("pont2-prim-tabs-trigger", Sr);
2113
- n("pont2-prim-tabs-content", Ar);
2114
- const vn = { top: "bottom", bottom: "top", left: "right", right: "left" };
2110
+ a("pont2-prim-tabs", kr);
2111
+ a("pont2-prim-tabs-list", $r);
2112
+ a("pont2-prim-tabs-trigger", Sr);
2113
+ a("pont2-prim-tabs-content", Ar);
2114
+ const va = { top: "bottom", bottom: "top", left: "right", right: "left" };
2115
2115
  function Uo(i, t) {
2116
2116
  return i === "inline-start" ? t === "rtl" ? "right" : "left" : i === "inline-end" ? t === "rtl" ? "left" : "right" : i;
2117
2117
  }
@@ -2137,7 +2137,7 @@ function To(i) {
2137
2137
  floating: e,
2138
2138
  viewport: s,
2139
2139
  side: r = "bottom",
2140
- align: a = "center",
2140
+ align: n = "center",
2141
2141
  sideOffset: o = 0,
2142
2142
  alignOffset: h = 0,
2143
2143
  collisionPadding: c = 5,
@@ -2147,8 +2147,8 @@ function To(i) {
2147
2147
  } = i, y = c;
2148
2148
  let x = Uo(r, b);
2149
2149
  if (f) {
2150
- const C = Mt(x) ? e.height : e.width, L = Ns(x, t, s, o, y), Tt = Ns(vn[x], t, s, o, y);
2151
- L < C && Tt > L && (x = vn[x]);
2150
+ const C = Mt(x) ? e.height : e.width, L = Ns(x, t, s, o, y), Tt = Ns(va[x], t, s, o, y);
2151
+ L < C && Tt > L && (x = va[x]);
2152
2152
  }
2153
2153
  let D = 0, z = 0;
2154
2154
  switch (x) {
@@ -2167,9 +2167,9 @@ function To(i) {
2167
2167
  }
2168
2168
  if (Mt(x)) {
2169
2169
  const C = b === "rtl" ? t.x + t.width - e.width : t.x, L = b === "rtl" ? t.x : t.x + t.width - e.width, Tt = b === "rtl" ? -1 : 1;
2170
- a === "start" ? D = C + Tt * h : a === "end" ? D = L - Tt * h : D = t.x + (t.width - e.width) / 2 + Tt * h;
2170
+ n === "start" ? D = C + Tt * h : n === "end" ? D = L - Tt * h : D = t.x + (t.width - e.width) / 2 + Tt * h;
2171
2171
  } else
2172
- a === "start" ? z = t.y + h : a === "end" ? z = t.y + t.height - e.height - h : z = t.y + (t.height - e.height) / 2 + h;
2172
+ n === "start" ? z = t.y + h : n === "end" ? z = t.y + t.height - e.height - h : z = t.y + (t.height - e.height) / 2 + h;
2173
2173
  if (p)
2174
2174
  if (Mt(x)) {
2175
2175
  const C = s.x + y, L = s.x + s.width - y - e.width;
@@ -2178,21 +2178,21 @@ function To(i) {
2178
2178
  const C = s.y + y, L = s.y + s.height - y - e.height;
2179
2179
  z = L < C ? C : Math.min(Math.max(z, C), L);
2180
2180
  }
2181
- const cn = Math.max(0, Ns(x, t, s, o, y)), eo = Mt(x) ? cn : Math.max(0, s.height - 2 * y), io = Mt(x) ? Math.max(0, s.width - 2 * y) : cn, hn = t.x + t.width / 2 - D, dn = t.y + t.height / 2 - z, so = x === "bottom" ? `${q(hn)}px ${-o}px` : x === "top" ? `${q(hn)}px ${e.height + o}px` : x === "right" ? `${-o}px ${q(dn)}px` : `${e.width + o}px ${q(dn)}px`;
2181
+ const ca = Math.max(0, Ns(x, t, s, o, y)), eo = Mt(x) ? ca : Math.max(0, s.height - 2 * y), io = Mt(x) ? Math.max(0, s.width - 2 * y) : ca, ha = t.x + t.width / 2 - D, da = t.y + t.height / 2 - z, so = x === "bottom" ? `${q(ha)}px ${-o}px` : x === "top" ? `${q(ha)}px ${e.height + o}px` : x === "right" ? `${-o}px ${q(da)}px` : `${e.width + o}px ${q(da)}px`;
2182
2182
  return {
2183
2183
  x: q(D),
2184
2184
  y: q(z),
2185
2185
  side: Vo(x, r, b),
2186
2186
  physicalSide: x,
2187
- align: a,
2187
+ align: n,
2188
2188
  availableWidth: q(io),
2189
2189
  availableHeight: q(eo),
2190
2190
  transformOrigin: so
2191
2191
  };
2192
2192
  }
2193
2193
  function Ro(i) {
2194
- const t = i.collisionPadding ?? 5, { anchor: e, floating: s, viewport: r } = i, a = e.y + e.height / 2 - (i.itemTop + i.itemHeight / 2), o = r.y + t, h = r.y + r.height - t - s.height;
2195
- return h < o || a < o || a > h ? null : { x: q(e.x), y: q(a) };
2194
+ const t = i.collisionPadding ?? 5, { anchor: e, floating: s, viewport: r } = i, n = e.y + e.height / 2 - (i.itemTop + i.itemHeight / 2), o = r.y + t, h = r.y + r.height - t - s.height;
2195
+ return h < o || n < o || n > h ? null : { x: q(e.x), y: q(n) };
2196
2196
  }
2197
2197
  const q = (i) => Math.round(i * 100) / 100;
2198
2198
  class Mo {
@@ -2222,7 +2222,7 @@ class Mo {
2222
2222
  const t = this.anchor();
2223
2223
  if (!t || !this.floating.isConnected) return;
2224
2224
  this.observeAnchor();
2225
- const e = t.getBoundingClientRect(), s = { x: e.left, y: e.top, width: e.width, height: e.height }, r = { width: this.floating.offsetWidth, height: this.floating.offsetHeight }, a = {
2225
+ const e = t.getBoundingClientRect(), s = { x: e.left, y: e.top, width: e.width, height: e.height }, r = { width: this.floating.offsetWidth, height: this.floating.offsetHeight }, n = {
2226
2226
  x: 0,
2227
2227
  y: 0,
2228
2228
  width: document.documentElement.clientWidth,
@@ -2234,20 +2234,20 @@ class Mo {
2234
2234
  const p = this.floating.getBoundingClientRect(), b = o.alignItem.getBoundingClientRect(), y = Ro({
2235
2235
  anchor: s,
2236
2236
  floating: r,
2237
- viewport: a,
2237
+ viewport: n,
2238
2238
  itemTop: b.top - p.top,
2239
2239
  itemHeight: b.height,
2240
2240
  collisionPadding: o.collisionPadding
2241
2241
  });
2242
2242
  if (y) {
2243
- h.setProperty("--pont2-popup-x", `${y.x}px`), h.setProperty("--pont2-popup-y", `${y.y}px`), c("available-height", `${a.height - 2 * o.collisionPadding}px`), c("available-width", `${a.width - 2 * o.collisionPadding}px`), c("transform-origin", "center"), this.floating.setAttribute("data-side", "none"), this.floating.setAttribute("data-align", "center");
2243
+ h.setProperty("--pont2-popup-x", `${y.x}px`), h.setProperty("--pont2-popup-y", `${y.y}px`), c("available-height", `${n.height - 2 * o.collisionPadding}px`), c("available-width", `${n.width - 2 * o.collisionPadding}px`), c("transform-origin", "center"), this.floating.setAttribute("data-side", "none"), this.floating.setAttribute("data-align", "center");
2244
2244
  return;
2245
2245
  }
2246
2246
  }
2247
2247
  const f = To({
2248
2248
  anchor: s,
2249
2249
  floating: r,
2250
- viewport: a,
2250
+ viewport: n,
2251
2251
  side: o.side,
2252
2252
  align: o.align,
2253
2253
  sideOffset: o.sideOffset,
@@ -2260,28 +2260,28 @@ class Mo {
2260
2260
  }
2261
2261
  const Ae = (i) => i.hasAttribute("data-disabled") || i.getAttribute("aria-disabled") === "true", It = (i) => !i.hidden && !i.closest("[hidden]");
2262
2262
  function xe(i, t, e, { loop: s = !0, isDisabled: r = Ae } = {}) {
2263
- const a = i.length;
2264
- if (!a) return -1;
2263
+ const n = i.length;
2264
+ if (!n) return -1;
2265
2265
  const o = (c) => !r(i[c]);
2266
2266
  if (e === "first") {
2267
- for (let c = 0; c < a; c++) if (o(c)) return c;
2267
+ for (let c = 0; c < n; c++) if (o(c)) return c;
2268
2268
  return -1;
2269
2269
  }
2270
2270
  if (e === "last") {
2271
- for (let c = a - 1; c >= 0; c--) if (o(c)) return c;
2271
+ for (let c = n - 1; c >= 0; c--) if (o(c)) return c;
2272
2272
  return -1;
2273
2273
  }
2274
2274
  const h = e === "next" ? 1 : -1;
2275
2275
  if (t < 0) return xe(i, -1, h === 1 ? "first" : "last", { loop: s, isDisabled: r });
2276
- for (let c = 1; c <= a; c++) {
2276
+ for (let c = 1; c <= n; c++) {
2277
2277
  let f = t + h * c;
2278
- if (s) f = (f + a) % a;
2279
- else if (f < 0 || f >= a) return t;
2278
+ if (s) f = (f + n) % n;
2279
+ else if (f < 0 || f >= n) return t;
2280
2280
  if (o(f)) return f;
2281
2281
  }
2282
2282
  return t;
2283
2283
  }
2284
- function Ra(i) {
2284
+ function Mn(i) {
2285
2285
  switch (i) {
2286
2286
  case "ArrowDown":
2287
2287
  return "next";
@@ -2306,9 +2306,9 @@ class zt {
2306
2306
  get active() {
2307
2307
  return this.buffer.length > 0;
2308
2308
  }
2309
- match(t, e, s, r = (a) => a.textContent ?? "") {
2309
+ match(t, e, s, r = (n) => n.textContent ?? "") {
2310
2310
  clearTimeout(this.timer), this.timer = setTimeout(() => this.buffer = "", this.timeout), this.buffer += t.toLowerCase();
2311
- const a = this.buffer.split("").every((f) => f === this.buffer[0]), o = a ? this.buffer[0] : this.buffer, h = e.length, c = a || s < 0 ? s + 1 : s;
2311
+ const n = this.buffer.split("").every((f) => f === this.buffer[0]), o = n ? this.buffer[0] : this.buffer, h = e.length, c = n || s < 0 ? s + 1 : s;
2312
2312
  for (let f = 0; f < h; f++) {
2313
2313
  const p = (c + f + h) % h, b = e[p];
2314
2314
  if (!Ae(b) && r(b).trim().toLowerCase().startsWith(o))
@@ -2321,9 +2321,9 @@ class zt {
2321
2321
  }
2322
2322
  }
2323
2323
  const U = [];
2324
- let wn = !1;
2324
+ let wa = !1;
2325
2325
  function Io() {
2326
- wn || (wn = !0, document.addEventListener("keydown", (i) => {
2326
+ wa || (wa = !0, document.addEventListener("keydown", (i) => {
2327
2327
  if (i.key !== "Escape" || i.defaultPrevented) return;
2328
2328
  const t = U.at(-1);
2329
2329
  t && (i.preventDefault(), i.stopPropagation(), t.requestClose("escape-key"));
@@ -2422,14 +2422,14 @@ Qi.identity = "popup", Qi.properties = {
2422
2422
  collisionPadding: { type: Number, attribute: "collision-padding" }
2423
2423
  };
2424
2424
  let X = Qi;
2425
- const jl = () => U;
2425
+ const Jl = () => U;
2426
2426
  function E(i, t, e) {
2427
2427
  var s;
2428
2428
  for (const r of Array.from(i.querySelectorAll(t)))
2429
2429
  if (((s = r.parentElement) == null ? void 0 : s.closest(e)) === i) return r;
2430
2430
  return null;
2431
2431
  }
2432
- function Xl(i, t, e) {
2432
+ function Ql(i, t, e) {
2433
2433
  return Array.from(i.querySelectorAll(t)).filter(
2434
2434
  (s) => {
2435
2435
  var r;
@@ -2515,7 +2515,7 @@ const ee = class ee extends O {
2515
2515
  };
2516
2516
  ee.nativeSelector = "button", ee.rootTag = "", ee.controlSlot = "trigger";
2517
2517
  let ke = ee;
2518
- const Er = m("popover"), Bo = 'button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', Qa = class Qa extends I {
2518
+ const Er = m("popover"), Bo = 'button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', Gn = class Gn extends I {
2519
2519
  get triggerElement() {
2520
2520
  var t;
2521
2521
  return ((t = E(this, me("popover-trigger"), Er)) == null ? void 0 : t.control) ?? null;
@@ -2532,8 +2532,8 @@ const Er = m("popover"), Bo = 'button:not([disabled]), [href], input:not([disabl
2532
2532
  (t.querySelector(Bo) ?? t).focus({ preventScroll: !0 });
2533
2533
  }
2534
2534
  };
2535
- Qa.identity = "popover";
2536
- let Dr = Qa;
2535
+ Gn.identity = "popover";
2536
+ let Dr = Gn;
2537
2537
  const _i = class _i extends ke {
2538
2538
  };
2539
2539
  _i.rootTag = Er, _i.controlSlot = "popover-trigger";
@@ -2568,13 +2568,13 @@ const es = class es extends l {
2568
2568
  };
2569
2569
  es.identity = "popover-description", es.slotName = "popover-description";
2570
2570
  let qr = es;
2571
- n("pont2-prim-popover", Dr);
2572
- n("pont2-prim-popover-trigger", Nr);
2573
- n("pont2-prim-popover-content", Cr);
2574
- n("pont2-prim-popover-header", Or);
2575
- n("pont2-prim-popover-title", Lr);
2576
- n("pont2-prim-popover-description", qr);
2577
- const ii = `${m("dropdown-menu")}, ${m("dropdown-menu-sub")}`, Y = "[data-pont2-dropdown-menu-content]", Po = "[data-pont2-menu-item]", Ko = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, Ga = class Ga extends I {
2571
+ a("pont2-prim-popover", Dr);
2572
+ a("pont2-prim-popover-trigger", Nr);
2573
+ a("pont2-prim-popover-content", Cr);
2574
+ a("pont2-prim-popover-header", Or);
2575
+ a("pont2-prim-popover-title", Lr);
2576
+ a("pont2-prim-popover-description", qr);
2577
+ const ii = `${m("dropdown-menu")}, ${m("dropdown-menu-sub")}`, Y = "[data-pont2-dropdown-menu-content]", Po = "[data-pont2-menu-item]", Ko = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, _n = class _n extends I {
2578
2578
  constructor() {
2579
2579
  super(...arguments), this.focusOnOpen = "popup";
2580
2580
  }
@@ -2600,9 +2600,9 @@ const ii = `${m("dropdown-menu")}, ${m("dropdown-menu-sub")}`, Y = "[data-pont2-
2600
2600
  (t = this.contentElement) == null || t.focusTarget(this.focusOnOpen);
2601
2601
  }
2602
2602
  };
2603
- Ga.identity = "dropdown-menu";
2604
- let zr = Ga;
2605
- const _a = class _a extends I {
2603
+ _n.identity = "dropdown-menu";
2604
+ let zr = _n;
2605
+ const ta = class ta extends I {
2606
2606
  constructor() {
2607
2607
  super(...arguments), this.focusOnOpen = "popup";
2608
2608
  }
@@ -2624,8 +2624,8 @@ const _a = class _a extends I {
2624
2624
  this.focusOnOpen !== "popup" && ((t = this.contentElement) == null || t.focusTarget(this.focusOnOpen));
2625
2625
  }
2626
2626
  };
2627
- _a.identity = "dropdown-menu-sub";
2628
- let Ur = _a;
2627
+ ta.identity = "dropdown-menu-sub";
2628
+ let Ur = ta;
2629
2629
  const is = class is extends ke {
2630
2630
  onKeyDown(t) {
2631
2631
  const e = this.root;
@@ -2644,20 +2644,20 @@ const re = class re extends X {
2644
2644
  }, this.onKeyDown = (t) => {
2645
2645
  var c, f;
2646
2646
  if (t.target.closest(Y) !== this || t.defaultPrevented) return;
2647
- const s = this.items, r = s.indexOf(t.target), a = Lt(this) === "rtl";
2647
+ const s = this.items, r = s.indexOf(t.target), n = Lt(this) === "rtl";
2648
2648
  if (t.key === "Tab") {
2649
2649
  const p = this.closest(m("dropdown-menu"));
2650
2650
  p == null || p.setOpen(!1, "focus-out"), (c = p == null ? void 0 : p.triggerElement) == null || c.focus();
2651
2651
  return;
2652
2652
  }
2653
- const o = a ? "ArrowRight" : "ArrowLeft";
2653
+ const o = n ? "ArrowRight" : "ArrowLeft";
2654
2654
  if (t.key === o && this instanceof ri) {
2655
2655
  t.preventDefault();
2656
2656
  const p = this.closest(m("dropdown-menu-sub"));
2657
2657
  p == null || p.setOpen(!1, "list-navigation"), (f = p == null ? void 0 : p.triggerElement) == null || f.focus();
2658
2658
  return;
2659
2659
  }
2660
- const h = Ra(t.key);
2660
+ const h = Mn(t.key);
2661
2661
  if (h) {
2662
2662
  t.preventDefault();
2663
2663
  const p = xe(s, r, h);
@@ -2723,7 +2723,7 @@ const ss = class ss extends si {
2723
2723
  };
2724
2724
  ss.identity = "dropdown-menu-sub-content", ss.slotName = "dropdown-menu-sub-content";
2725
2725
  let ri = ss;
2726
- const ae = class ae extends l {
2726
+ const ne = class ne extends l {
2727
2727
  constructor() {
2728
2728
  super(), this.onPointerMove = (t) => {
2729
2729
  var e;
@@ -2754,13 +2754,13 @@ const ae = class ae extends l {
2754
2754
  super.willUpdate(t), this.setData("disabled", this.disabled), this.setData("inset", this.inset), this.internals.ariaDisabled = this.disabled ? "true" : null;
2755
2755
  }
2756
2756
  };
2757
- ae.identity = "menu-item", ae.role = "menuitem", ae.properties = {
2757
+ ne.identity = "menu-item", ne.role = "menuitem", ne.properties = {
2758
2758
  disabled: { type: Boolean, reflect: !0 },
2759
2759
  inset: { type: Boolean, reflect: !0 },
2760
2760
  closeOnClick: { attribute: "close-on-click", converter: Ko }
2761
2761
  };
2762
- let Ut = ae;
2763
- const ne = class ne extends Ut {
2762
+ let Ut = ne;
2763
+ const ae = class ae extends Ut {
2764
2764
  constructor() {
2765
2765
  super(), this.variant = "default";
2766
2766
  }
@@ -2768,11 +2768,11 @@ const ne = class ne extends Ut {
2768
2768
  super.willUpdate(t), this.setData("variant", this.variant || "default");
2769
2769
  }
2770
2770
  };
2771
- ne.identity = "dropdown-menu-item", ne.slotName = "dropdown-menu-item", ne.properties = {
2771
+ ae.identity = "dropdown-menu-item", ae.slotName = "dropdown-menu-item", ae.properties = {
2772
2772
  variant: { type: String, reflect: !0 }
2773
2773
  };
2774
- let Tr = ne;
2775
- const Yn = (i, t) => d`<span data-pont2-dropdown-menu-item-indicator data-slot=${i}>${t ? v.check() : u}</span>`, ct = class ct extends Ut {
2774
+ let Tr = ae;
2775
+ const Ya = (i, t) => d`<span data-pont2-dropdown-menu-item-indicator data-slot=${i}>${t ? v.check() : u}</span>`, ct = class ct extends Ut {
2776
2776
  constructor() {
2777
2777
  super(), this.checked = !1, this.closeOnClick = !1;
2778
2778
  }
@@ -2783,7 +2783,7 @@ const Yn = (i, t) => d`<span data-pont2-dropdown-menu-item-indicator data-slot=$
2783
2783
  super.willUpdate(t), this.internals.ariaChecked = String(this.checked), this.setData("checked", this.checked), this.setData("unchecked", !this.checked);
2784
2784
  }
2785
2785
  render() {
2786
- return Yn("dropdown-menu-checkbox-item-indicator", this.checked);
2786
+ return Ya("dropdown-menu-checkbox-item-indicator", this.checked);
2787
2787
  }
2788
2788
  };
2789
2789
  ct.identity = "dropdown-menu-checkbox-item", ct.slotName = "dropdown-menu-checkbox-item", ct.role = "menuitemcheckbox", ct.properties = {
@@ -2824,7 +2824,7 @@ const dt = class dt extends Ut {
2824
2824
  super.willUpdate(t), this.internals.ariaChecked = String(this.checked), this.setData("checked", this.checked), this.setData("unchecked", !this.checked);
2825
2825
  }
2826
2826
  render() {
2827
- return Yn("dropdown-menu-radio-item-indicator", this.checked);
2827
+ return Ya("dropdown-menu-radio-item-indicator", this.checked);
2828
2828
  }
2829
2829
  };
2830
2830
  dt.identity = "dropdown-menu-radio-item", dt.slotName = "dropdown-menu-radio-item", dt.role = "menuitemradio", dt.properties = {
@@ -2882,28 +2882,28 @@ const le = class le extends l {
2882
2882
  };
2883
2883
  le.identity = "dropdown-menu-label", le.slotName = "dropdown-menu-label", le.properties = { inset: { type: Boolean, reflect: !0 } };
2884
2884
  let Pr = le;
2885
- const as = class as extends T {
2886
- };
2887
- as.identity = "dropdown-menu-separator", as.slotName = "dropdown-menu-separator";
2888
- let Kr = as;
2889
- const ns = class ns extends l {
2890
- };
2891
- ns.identity = "dropdown-menu-shortcut", ns.slotName = "dropdown-menu-shortcut";
2892
- let Wr = ns;
2893
- n("pont2-prim-dropdown-menu", zr);
2894
- n("pont2-prim-dropdown-menu-sub", Ur);
2895
- n("pont2-prim-dropdown-menu-trigger", Vr);
2896
- n("pont2-prim-dropdown-menu-content", si);
2897
- n("pont2-prim-dropdown-menu-sub-content", ri);
2898
- n("pont2-prim-dropdown-menu-item", Tr);
2899
- n("pont2-prim-dropdown-menu-checkbox-item", Rr);
2900
- n("pont2-prim-dropdown-menu-radio-group", Mr);
2901
- n("pont2-prim-dropdown-menu-radio-item", Ir);
2902
- n("pont2-prim-dropdown-menu-sub-trigger", $e);
2903
- n("pont2-prim-dropdown-menu-group", Br);
2904
- n("pont2-prim-dropdown-menu-label", Pr);
2905
- n("pont2-prim-dropdown-menu-separator", Kr);
2906
- n("pont2-prim-dropdown-menu-shortcut", Wr);
2885
+ const ns = class ns extends T {
2886
+ };
2887
+ ns.identity = "dropdown-menu-separator", ns.slotName = "dropdown-menu-separator";
2888
+ let Kr = ns;
2889
+ const as = class as extends l {
2890
+ };
2891
+ as.identity = "dropdown-menu-shortcut", as.slotName = "dropdown-menu-shortcut";
2892
+ let Wr = as;
2893
+ a("pont2-prim-dropdown-menu", zr);
2894
+ a("pont2-prim-dropdown-menu-sub", Ur);
2895
+ a("pont2-prim-dropdown-menu-trigger", Vr);
2896
+ a("pont2-prim-dropdown-menu-content", si);
2897
+ a("pont2-prim-dropdown-menu-sub-content", ri);
2898
+ a("pont2-prim-dropdown-menu-item", Tr);
2899
+ a("pont2-prim-dropdown-menu-checkbox-item", Rr);
2900
+ a("pont2-prim-dropdown-menu-radio-group", Mr);
2901
+ a("pont2-prim-dropdown-menu-radio-item", Ir);
2902
+ a("pont2-prim-dropdown-menu-sub-trigger", $e);
2903
+ a("pont2-prim-dropdown-menu-group", Br);
2904
+ a("pont2-prim-dropdown-menu-label", Pr);
2905
+ a("pont2-prim-dropdown-menu-separator", Kr);
2906
+ a("pont2-prim-dropdown-menu-shortcut", Wr);
2907
2907
  const F = m("select"), Wo = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, ce = class ce extends I {
2908
2908
  constructor() {
2909
2909
  super(), this.typeahead = new zt(), this.focusSelectedOnOpen = !0, this.value = "", this.name = "", this.required = !1, this.formDisabled = !1, this.addEventListener("click", (t) => {
@@ -3018,7 +3018,7 @@ ce.formAssociated = !0, ce.identity = "select", ce.properties = {
3018
3018
  formDisabled: { state: !0 }
3019
3019
  };
3020
3020
  let Fr = ce;
3021
- const tn = class tn extends Ot {
3021
+ const ea = class ea extends Ot {
3022
3022
  constructor() {
3023
3023
  super(), this.onClick = (t) => {
3024
3024
  const e = this.root;
@@ -3057,11 +3057,11 @@ const tn = class tn extends Ot {
3057
3057
  >${v.chevronDown()}</button>`;
3058
3058
  }
3059
3059
  };
3060
- tn.properties = {
3060
+ ea.properties = {
3061
3061
  placeholder: { type: String },
3062
3062
  size: { type: String }
3063
3063
  };
3064
- let Hr = tn;
3064
+ let Hr = ea;
3065
3065
  const ut = class ut extends X {
3066
3066
  constructor() {
3067
3067
  super(), this.typeahead = new zt(), this.onKeyDown = (t) => {
@@ -3073,10 +3073,10 @@ const ut = class ut extends X {
3073
3073
  e.setOpen(!1, "focus-out"), (o = e.triggerElement) == null || o.focus();
3074
3074
  return;
3075
3075
  }
3076
- const a = Ra(t.key);
3077
- if (a) {
3076
+ const n = Mn(t.key);
3077
+ if (n) {
3078
3078
  t.preventDefault();
3079
- const h = xe(s, r, a, { loop: !1 });
3079
+ const h = xe(s, r, n, { loop: !1 });
3080
3080
  h >= 0 && s[h].focus();
3081
3081
  return;
3082
3082
  }
@@ -3188,13 +3188,13 @@ const ls = class ls extends T {
3188
3188
  };
3189
3189
  ls.identity = "select-separator", ls.slotName = "select-separator";
3190
3190
  let Jr = ls;
3191
- n("pont2-prim-select", Fr);
3192
- n("pont2-prim-select-trigger", Hr);
3193
- n("pont2-prim-select-content", jr);
3194
- n("pont2-prim-select-item", Xr);
3195
- n("pont2-prim-select-group", Yr);
3196
- n("pont2-prim-select-label", Zr);
3197
- n("pont2-prim-select-separator", Jr);
3191
+ a("pont2-prim-select", Fr);
3192
+ a("pont2-prim-select-trigger", Hr);
3193
+ a("pont2-prim-select-content", jr);
3194
+ a("pont2-prim-select-item", Xr);
3195
+ a("pont2-prim-select-group", Yr);
3196
+ a("pont2-prim-select-label", Zr);
3197
+ a("pont2-prim-select-separator", Jr);
3198
3198
  const B = m("combobox"), Fo = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, ft = class ft extends I {
3199
3199
  constructor() {
3200
3200
  super(), this.highlighted = null, this.value = "", this.name = "", this.required = !1, this.query = "", this.formDisabled = !1, this.addEventListener("click", (t) => {
@@ -3297,11 +3297,11 @@ const B = m("combobox"), Fo = { fromAttribute: (i) => i !== "false", toAttribute
3297
3297
  /** From the input: keyboard. */
3298
3298
  handleKey(t) {
3299
3299
  if (this.isDisabled) return;
3300
- const e = t.key === "ArrowDown" || t.key === "ArrowUp" ? Ra(t.key) : null;
3300
+ const e = t.key === "ArrowDown" || t.key === "ArrowUp" ? Mn(t.key) : null;
3301
3301
  if (e) {
3302
3302
  t.preventDefault(), this.open || (this.setOpen(!0, "list-navigation", { keyboard: !0 }), this.applyFilter());
3303
- const s = this.items, r = this.highlighted ? s.indexOf(this.highlighted) : -1, a = xe(s, r, e);
3304
- this.highlight(a >= 0 ? s[a] : null);
3303
+ const s = this.items, r = this.highlighted ? s.indexOf(this.highlighted) : -1, n = xe(s, r, e);
3304
+ this.highlight(n >= 0 ? s[n] : null);
3305
3305
  return;
3306
3306
  }
3307
3307
  if (t.key === "Enter" && this.open) {
@@ -3312,7 +3312,7 @@ const B = m("combobox"), Fo = { fromAttribute: (i) => i !== "false", toAttribute
3312
3312
  }
3313
3313
  /** Hide items (and empty groups) that do not match the query. */
3314
3314
  applyFilter() {
3315
- var r, a, o;
3315
+ var r, n, o;
3316
3316
  const t = this.query;
3317
3317
  let e = 0;
3318
3318
  for (const h of this.allItems) {
@@ -3322,7 +3322,7 @@ const B = m("combobox"), Fo = { fromAttribute: (i) => i !== "false", toAttribute
3322
3322
  for (const h of Array.from(this.querySelectorAll(m("combobox-group"))))
3323
3323
  h.closest(B) === this && (h.hidden = !h.querySelector(`${m("combobox-item")}:not([hidden])`));
3324
3324
  const s = e === 0;
3325
- (r = this.listElement) == null || r.toggleAttribute("data-empty", s), (a = this.contentElement) == null || a.toggleAttribute("data-empty", s), (o = this.contentElement) == null || o.reposition();
3325
+ (r = this.listElement) == null || r.toggleAttribute("data-empty", s), (n = this.contentElement) == null || n.toggleAttribute("data-empty", s), (o = this.contentElement) == null || o.reposition();
3326
3326
  }
3327
3327
  wire() {
3328
3328
  super.wire();
@@ -3463,7 +3463,7 @@ let _r = cs;
3463
3463
  const de = class de extends l {
3464
3464
  };
3465
3465
  de.identity = "combobox-list", de.slotName = "combobox-list", de.role = "listbox";
3466
- let ta = de;
3466
+ let tn = de;
3467
3467
  const gt = class gt extends l {
3468
3468
  constructor() {
3469
3469
  super(), this.value = "", this.disabled = !1, this.addEventListener("pointermove", (t) => {
@@ -3505,14 +3505,14 @@ gt.identity = "combobox-item", gt.slotName = "combobox-item", gt.role = "option"
3505
3505
  value: { type: String },
3506
3506
  disabled: { type: Boolean, reflect: !0 }
3507
3507
  };
3508
- let ea = gt;
3508
+ let en = gt;
3509
3509
  const hs = class hs extends l {
3510
3510
  connectedCallback() {
3511
3511
  super.connectedCallback(), this.internals.role = "status", this.internals.ariaLive = "polite";
3512
3512
  }
3513
3513
  };
3514
3514
  hs.identity = "combobox-empty", hs.slotName = "combobox-empty";
3515
- let ia = hs;
3515
+ let sn = hs;
3516
3516
  const ue = class ue extends l {
3517
3517
  connectedCallback() {
3518
3518
  super.connectedCallback(), queueMicrotask(() => {
@@ -3522,34 +3522,34 @@ const ue = class ue extends l {
3522
3522
  }
3523
3523
  };
3524
3524
  ue.identity = "combobox-group", ue.slotName = "combobox-group", ue.role = "group";
3525
- let sa = ue;
3525
+ let rn = ue;
3526
3526
  const ds = class ds extends l {
3527
3527
  };
3528
3528
  ds.identity = "combobox-label", ds.slotName = "combobox-label";
3529
- let ra = ds;
3529
+ let nn = ds;
3530
3530
  const us = class us extends T {
3531
3531
  };
3532
3532
  us.identity = "combobox-separator", us.slotName = "combobox-separator";
3533
- let aa = us;
3534
- n("pont2-prim-combobox", Qr);
3535
- n("pont2-prim-combobox-input", Gr);
3536
- n("pont2-prim-combobox-content", _r);
3537
- n("pont2-prim-combobox-list", ta);
3538
- n("pont2-prim-combobox-item", ea);
3539
- n("pont2-prim-combobox-empty", ia);
3540
- n("pont2-prim-combobox-group", sa);
3541
- n("pont2-prim-combobox-label", ra);
3542
- n("pont2-prim-combobox-separator", aa);
3543
- const na = m("tooltip"), ps = class ps extends I {
3533
+ let an = us;
3534
+ a("pont2-prim-combobox", Qr);
3535
+ a("pont2-prim-combobox-input", Gr);
3536
+ a("pont2-prim-combobox-content", _r);
3537
+ a("pont2-prim-combobox-list", tn);
3538
+ a("pont2-prim-combobox-item", en);
3539
+ a("pont2-prim-combobox-empty", sn);
3540
+ a("pont2-prim-combobox-group", rn);
3541
+ a("pont2-prim-combobox-label", nn);
3542
+ a("pont2-prim-combobox-separator", an);
3543
+ const on = m("tooltip"), ps = class ps extends I {
3544
3544
  constructor() {
3545
3545
  super(), this.timer = 0, this.delay = 0, this.closeDelay = 0;
3546
3546
  }
3547
3547
  get triggerElement() {
3548
3548
  var t;
3549
- return ((t = E(this, me("tooltip-trigger"), na)) == null ? void 0 : t.control) ?? null;
3549
+ return ((t = E(this, me("tooltip-trigger"), on)) == null ? void 0 : t.control) ?? null;
3550
3550
  }
3551
3551
  get contentElement() {
3552
- return E(this, m("tooltip-content"), na);
3552
+ return E(this, m("tooltip-content"), on);
3553
3553
  }
3554
3554
  get popupKind() {
3555
3555
  return "true";
@@ -3575,7 +3575,7 @@ ps.identity = "tooltip", ps.properties = {
3575
3575
  delay: { type: Number },
3576
3576
  closeDelay: { type: Number, attribute: "close-delay" }
3577
3577
  };
3578
- let oa = ps;
3578
+ let ln = ps;
3579
3579
  const fs = class fs extends ke {
3580
3580
  constructor() {
3581
3581
  super(), this.addEventListener("pointerenter", (t) => {
@@ -3598,18 +3598,18 @@ const fs = class fs extends ke {
3598
3598
  t != null && t.open && t.setOpen(!1, "trigger-press");
3599
3599
  }
3600
3600
  };
3601
- fs.rootTag = na, fs.controlSlot = "tooltip-trigger";
3602
- let la = fs;
3601
+ fs.rootTag = on, fs.controlSlot = "tooltip-trigger";
3602
+ let cn = fs;
3603
3603
  const pe = class pe extends X {
3604
3604
  constructor() {
3605
3605
  super(), this.side = "top", this.align = "center", this.sideOffset = 4;
3606
3606
  }
3607
3607
  };
3608
3608
  pe.identity = "tooltip-content", pe.slotName = "tooltip-content", pe.role = "tooltip";
3609
- let ca = pe;
3610
- n("pont2-prim-tooltip", oa);
3611
- n("pont2-prim-tooltip-trigger", la);
3612
- n("pont2-prim-tooltip-content", ca);
3609
+ let hn = pe;
3610
+ a("pont2-prim-tooltip", ln);
3611
+ a("pont2-prim-tooltip-trigger", cn);
3612
+ a("pont2-prim-tooltip-content", hn);
3613
3613
  A("pont2-badge", Ce);
3614
3614
  A("pont2-button", ge);
3615
3615
  A("pont2-checkbox", Oe);
@@ -3625,7 +3625,7 @@ A("pont2-spinner", qt);
3625
3625
  A("pont2-switch", ei);
3626
3626
  A("pont2-table", Ze);
3627
3627
  A("pont2-textarea", Te);
3628
- const xn = ["default", "error", "warning", "success", "info"], Ho = {
3628
+ const xa = ["default", "error", "warning", "success", "info"], Ho = {
3629
3629
  default: v.circleAlert,
3630
3630
  error: v.circleX,
3631
3631
  warning: v.triangleAlert,
@@ -3636,11 +3636,11 @@ const xn = ["default", "error", "warning", "success", "info"], Ho = {
3636
3636
  super(), this.status = "default", this.heading = "", this.description = "", this.icon = !1;
3637
3637
  }
3638
3638
  willUpdate() {
3639
- const t = xn.includes(this.status) ? this.status : "default";
3639
+ const t = xa.includes(this.status) ? this.status : "default";
3640
3640
  this.variant = t === "error" ? "destructive" : "default", super.willUpdate(), this.setData("status", t), this.internals.role = t === "error" || t === "warning" ? "alert" : "status";
3641
3641
  }
3642
3642
  render() {
3643
- const t = xn.includes(this.status) ? this.status : "default";
3643
+ const t = xa.includes(this.status) ? this.status : "default";
3644
3644
  return d`${this.icon ? Ho[t]() : u}${this.heading ? d`<div ${Me.part()}>${this.heading}</div>` : u}${this.description ? d`<div ${Ie.part()}>${this.description}</div>` : u}`;
3645
3645
  }
3646
3646
  };
@@ -3650,8 +3650,8 @@ ms.composite = !0, ms.properties = {
3650
3650
  description: { type: String },
3651
3651
  icon: { type: Boolean, reflect: !0 }
3652
3652
  };
3653
- let ha = ms;
3654
- n("pont2-alert", ha);
3653
+ let dn = ms;
3654
+ a("pont2-alert", dn);
3655
3655
  function jo(i) {
3656
3656
  const t = i.trim().split(/\s+/).filter(Boolean);
3657
3657
  return (t.length > 1 ? [t[0], t[t.length - 1]] : t).map((s) => Array.from(s)[0] ?? "").join("").toLocaleUpperCase();
@@ -3674,22 +3674,22 @@ gs.composite = !0, gs.properties = {
3674
3674
  fallback: { type: String },
3675
3675
  badge: { type: Boolean, reflect: !0 }
3676
3676
  };
3677
- let da = gs;
3678
- n("pont2-avatar", da);
3677
+ let un = gs;
3678
+ a("pont2-avatar", un);
3679
3679
  function Xo(i, t) {
3680
3680
  const e = Math.max(0, Math.floor(i)), s = Math.floor(t);
3681
3681
  if (!(s > 0) || s >= e) return e ? [e] : [];
3682
3682
  const r = [];
3683
- for (let a = e; a > 0; a -= s) r.push(Math.min(s, a));
3683
+ for (let n = e; n > 0; n -= s) r.push(Math.min(s, n));
3684
3684
  return r;
3685
3685
  }
3686
- function Zn(i, t, e) {
3686
+ function Za(i, t, e) {
3687
3687
  let s = 0;
3688
- return Xo(i, t).map((r, a) => {
3688
+ return Xo(i, t).map((r, n) => {
3689
3689
  const o = Array.from({ length: r }, () => {
3690
3690
  const c = s++;
3691
3691
  return d`<pont2-prim-input-otp-slot index=${c}></pont2-prim-input-otp-slot>`;
3692
- }), h = a > 0 && e ? d`<div ${_e.part()}>${v.minus()}</div>` : u;
3692
+ }), h = n > 0 && e ? d`<div ${_e.part()}>${v.minus()}</div>` : u;
3693
3693
  return d`${h}<div ${Ge.part()}>${o}</div>`;
3694
3694
  });
3695
3695
  }
@@ -3698,16 +3698,16 @@ const bs = class bs extends Qe {
3698
3698
  super(), this.groupSize = 0, this.separator = !1;
3699
3699
  }
3700
3700
  render() {
3701
- return d`${Zn(this.maxLength, this.groupSize, this.separator)}${super.render()}`;
3701
+ return d`${Za(this.maxLength, this.groupSize, this.separator)}${super.render()}`;
3702
3702
  }
3703
3703
  };
3704
3704
  bs.composite = !0, bs.properties = {
3705
3705
  groupSize: { type: Number, attribute: "group-size" },
3706
3706
  separator: { type: Boolean }
3707
3707
  };
3708
- let ua = bs;
3709
- n("pont2-input-otp", ua);
3710
- const Ma = ["apple", "discord", "facebook", "github", "google", "linkedin", "meta", "microsoft", "x"], Yo = {
3708
+ let pn = bs;
3709
+ a("pont2-input-otp", pn);
3710
+ const In = ["apple", "discord", "facebook", "github", "google", "linkedin", "meta", "microsoft", "x"], Yo = {
3711
3711
  apple: "Apple",
3712
3712
  discord: "Discord",
3713
3713
  facebook: "Facebook",
@@ -3727,7 +3727,7 @@ const Ma = ["apple", "discord", "facebook", "github", "google", "linkedin", "met
3727
3727
  meta: g`<path d="M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z" />`,
3728
3728
  microsoft: g`<path d="M11.4 24H0V12.6h11.4V24zM24 24H12.6V12.6H24V24zM11.4 11.4H0V0h11.4v11.4zM24 11.4H12.6V0H24v11.4z" />`,
3729
3729
  x: g`<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.763l7.726-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z" />`
3730
- }, kn = (i) => Ma.includes(i);
3730
+ }, ka = (i) => In.includes(i);
3731
3731
  function Jo(i, t = {}) {
3732
3732
  return d`<svg
3733
3733
  xmlns="http://www.w3.org/2000/svg"
@@ -3738,7 +3738,7 @@ function Jo(i, t = {}) {
3738
3738
  ${N(t)}
3739
3739
  >${Zo[i]}</svg>`;
3740
3740
  }
3741
- const Yl = ["label", "icon-label", "icon"], ys = class ys extends Us {
3741
+ const Gl = ["label", "icon-label", "icon"], ys = class ys extends Us {
3742
3742
  constructor() {
3743
3743
  super(), this.action = new Vt(this), this.content = "label", this.iconAlign = "start", this.label = "", this.event = void 0, this.loading = !1;
3744
3744
  }
@@ -3779,8 +3779,8 @@ const Yl = ["label", "icon-label", "icon"], ys = class ys extends Us {
3779
3779
  return {};
3780
3780
  }
3781
3781
  renderContent() {
3782
- const t = this.content !== "label", e = this.content !== "icon", s = this.content === "icon" ? null : this.iconAlign === "end" ? "inline-end" : "inline-start", a = ((o) => this.busy ? d`<span ${qt.part({ ...o, role: !1, "aria-hidden": "true" })}></span>` : t ? this.renderIcon(o) : u)(s ? { "data-icon": s } : {});
3783
- return this.iconAlign === "end" ? d`${e ? this.text : u}${a}` : d`${a}${e ? this.text : u}`;
3782
+ const t = this.content !== "label", e = this.content !== "icon", s = this.content === "icon" ? null : this.iconAlign === "end" ? "inline-end" : "inline-start", n = ((o) => this.busy ? d`<span ${qt.part({ ...o, role: !1, "aria-hidden": "true" })}></span>` : t ? this.renderIcon(o) : u)(s ? { "data-icon": s } : {});
3783
+ return this.iconAlign === "end" ? d`${e ? this.text : u}${n}` : d`${n}${e ? this.text : u}`;
3784
3784
  }
3785
3785
  };
3786
3786
  ys.composite = !0, ys.properties = {
@@ -3791,16 +3791,16 @@ ys.composite = !0, ys.properties = {
3791
3791
  loading: { type: Boolean, reflect: !0 }
3792
3792
  };
3793
3793
  let Se = ys;
3794
- const en = class en extends Se {
3794
+ const ia = class ia extends Se {
3795
3795
  constructor() {
3796
3796
  super(), this.variant = "outline", this.content = "icon-label", this.prompt = "Continue with";
3797
3797
  }
3798
3798
  defaultLabel() {
3799
- const t = kn(this.provider) ? Yo[this.provider] : this.provider ?? "";
3799
+ const t = ka(this.provider) ? Yo[this.provider] : this.provider ?? "";
3800
3800
  return `${this.prompt || "Continue with"} ${t}`.trim();
3801
3801
  }
3802
3802
  renderIcon(t) {
3803
- return kn(this.provider) ? Jo(this.provider, t) : u;
3803
+ return ka(this.provider) ? Jo(this.provider, t) : u;
3804
3804
  }
3805
3805
  actionData() {
3806
3806
  return { provider: this.provider };
@@ -3809,11 +3809,11 @@ const en = class en extends Se {
3809
3809
  return { "data-provider": this.provider };
3810
3810
  }
3811
3811
  };
3812
- en.properties = {
3812
+ ia.properties = {
3813
3813
  provider: { type: String, reflect: !0 },
3814
3814
  prompt: { type: String }
3815
3815
  };
3816
- let pa = en;
3816
+ let fn = ia;
3817
3817
  class Qo extends Se {
3818
3818
  constructor() {
3819
3819
  super(), this.variant = "secondary";
@@ -3836,8 +3836,8 @@ class Go extends Se {
3836
3836
  t.preventDefault();
3837
3837
  return;
3838
3838
  }
3839
- const a = new FormData(s, e);
3840
- this.action.request(this.event, { form: s, formData: a }) && t.preventDefault();
3839
+ const n = new FormData(s, e);
3840
+ this.action.request(this.event, { form: s, formData: n }) && t.preventDefault();
3841
3841
  }, this.type = "submit", this.iconAlign = "end";
3842
3842
  }
3843
3843
  defaultLabel() {
@@ -3857,9 +3857,9 @@ class Go extends Se {
3857
3857
  e instanceof HTMLButtonElement && e.form && this.type === "submit" || this.action.request(this.event, {});
3858
3858
  }
3859
3859
  }
3860
- n("pont2-provider-button", pa);
3861
- n("pont2-passkey-button", Qo);
3862
- n("pont2-submit-button", Go);
3860
+ a("pont2-provider-button", fn);
3861
+ a("pont2-passkey-button", Qo);
3862
+ a("pont2-submit-button", Go);
3863
3863
  const Cs = (i) => i.charAt(0).toUpperCase() + i.slice(1).toLowerCase(), H = {
3864
3864
  required: (i) => `${Cs(i)} is a required field.`,
3865
3865
  format: (i) => `Please enter a valid ${i.toLowerCase()}.`,
@@ -3878,7 +3878,7 @@ function _o(i) {
3878
3878
  }
3879
3879
  }
3880
3880
  }
3881
- const $n = { fromAttribute: (i) => i != null && Number(i) > 0 ? Number(i) : void 0 };
3881
+ const $a = { fromAttribute: (i) => i != null && Number(i) > 0 ? Number(i) : void 0 };
3882
3882
  let Os = !1;
3883
3883
  const vs = class vs extends be {
3884
3884
  constructor() {
@@ -4036,7 +4036,7 @@ const vs = class vs extends be {
4036
4036
  };
4037
4037
  }
4038
4038
  renderControl(t) {
4039
- return Mn(t);
4039
+ return Ma(t);
4040
4040
  }
4041
4041
  renderLabel() {
4042
4042
  const t = this.mark ? d`<span data-slot="field-mark">${this.mark}</span>` : this.caret && this.required ? d`<span data-slot="field-mark" data-caret aria-hidden="true">*</span>` : u;
@@ -4047,8 +4047,8 @@ const vs = class vs extends be {
4047
4047
  return d`<div ${Xe.part({ id: t })}>${s.length === 1 ? s[0] : d`<ul data-slot="field-error-list">${s.map((r) => d`<li>${r}</li>`)}</ul>`}</div>`;
4048
4048
  }
4049
4049
  render() {
4050
- const t = this.controlId, e = `${t}-description`, s = `${t}-error`, r = this.shown ? this.computeIssues() : [], a = [this.description ? e : "", r.length ? s : ""].filter(Boolean).join(" ") || void 0;
4051
- return d`${this.renderLabel()}${this.renderControl(this.controlOptions(a))}${this.description ? d`<p ${He.part({ id: e })}>${this.description}</p>` : u}${r.length ? this.renderError(s, r) : u}`;
4050
+ const t = this.controlId, e = `${t}-description`, s = `${t}-error`, r = this.shown ? this.computeIssues() : [], n = [this.description ? e : "", r.length ? s : ""].filter(Boolean).join(" ") || void 0;
4051
+ return d`${this.renderLabel()}${this.renderControl(this.controlOptions(n))}${this.description ? d`<p ${He.part({ id: e })}>${this.description}</p>` : u}${r.length ? this.renderError(s, r) : u}`;
4052
4052
  }
4053
4053
  /** The `invalid` event does not bubble, so it is listened to on the input itself. */
4054
4054
  connectedCallback() {
@@ -4068,8 +4068,8 @@ vs.composite = !0, vs.properties = {
4068
4068
  required: { type: Boolean, reflect: !0 },
4069
4069
  validation: { type: String },
4070
4070
  pattern: { type: String },
4071
- minlength: { attribute: "minlength", converter: $n },
4072
- maxlength: { attribute: "maxlength", converter: $n },
4071
+ minlength: { attribute: "minlength", converter: $a },
4072
+ maxlength: { attribute: "maxlength", converter: $a },
4073
4073
  requiredError: { type: String, attribute: "required-error" },
4074
4074
  formatError: { type: String, attribute: "format-error" },
4075
4075
  minlengthError: { type: String, attribute: "minlength-error" },
@@ -4156,12 +4156,12 @@ class sl extends R {
4156
4156
  }
4157
4157
  }
4158
4158
  const rl = ["email", "phone", "username"];
4159
- function al(i) {
4159
+ function nl(i) {
4160
4160
  if (!i.length) return "Identifier";
4161
4161
  const t = i.length === 1 ? i[0] : i.length === 2 ? `${i[0]} or ${i[1]}` : `${i.slice(0, -1).join(", ")}, or ${i[i.length - 1]}`;
4162
4162
  return t.charAt(0).toUpperCase() + t.slice(1);
4163
4163
  }
4164
- const sn = class sn extends R {
4164
+ const sa = class sa extends R {
4165
4165
  constructor() {
4166
4166
  super(), this.identifiers = [];
4167
4167
  }
@@ -4169,7 +4169,7 @@ const sn = class sn extends R {
4169
4169
  return "login_id";
4170
4170
  }
4171
4171
  defaultLabel() {
4172
- return al(this.identifiers ?? []);
4172
+ return nl(this.identifiers ?? []);
4173
4173
  }
4174
4174
  inputType() {
4175
4175
  const t = this.identifiers ?? [];
@@ -4188,20 +4188,20 @@ const sn = class sn extends R {
4188
4188
  return t.trim().toLowerCase();
4189
4189
  }
4190
4190
  };
4191
- sn.properties = {
4191
+ sa.properties = {
4192
4192
  identifiers: {
4193
4193
  converter: {
4194
4194
  fromAttribute: (t) => (t ?? "").split(/[\s,]+/).filter((e) => rl.includes(e))
4195
4195
  }
4196
4196
  }
4197
4197
  };
4198
- let fa = sn;
4199
- n("pont2-email-field", tl);
4200
- n("pont2-phone-field", el);
4201
- n("pont2-username-field", il);
4202
- n("pont2-name-field", sl);
4203
- n("pont2-identifier-field", fa);
4204
- const nl = {
4198
+ let mn = sa;
4199
+ a("pont2-email-field", tl);
4200
+ a("pont2-phone-field", el);
4201
+ a("pont2-username-field", il);
4202
+ a("pont2-name-field", sl);
4203
+ a("pont2-identifier-field", mn);
4204
+ const al = {
4205
4205
  uppercase: /[A-Z]/,
4206
4206
  lowercase: /[a-z]/,
4207
4207
  number: /[0-9]/,
@@ -4212,7 +4212,7 @@ const nl = {
4212
4212
  { name: "number", error: "Must contain a number." },
4213
4213
  { name: "special", error: "Must contain a special character." }
4214
4214
  ], ol = (i) => {
4215
- if ("name" in i) return nl[i.name] ?? null;
4215
+ if ("name" in i) return al[i.name] ?? null;
4216
4216
  try {
4217
4217
  return new RegExp(i.pattern, "u");
4218
4218
  } catch {
@@ -4228,7 +4228,7 @@ const nl = {
4228
4228
  return De;
4229
4229
  }
4230
4230
  }
4231
- }, rn = class rn extends R {
4231
+ }, ra = class ra extends R {
4232
4232
  constructor() {
4233
4233
  super(), this.toggle = () => {
4234
4234
  this.revealed = !this.revealed, this.updateComplete.then(() => {
@@ -4245,9 +4245,9 @@ const nl = {
4245
4245
  }
4246
4246
  renderControl(t) {
4247
4247
  return this.variant !== "toggle" ? super.renderControl(t) : d`<div ${ye.part({ "data-disabled": this.disabled })}>
4248
- ${Kn(t)}
4248
+ ${Ka(t)}
4249
4249
  <div ${ve.part({ "data-align": "inline-end" })}>
4250
- ${Wn(
4250
+ ${Wa(
4251
4251
  {
4252
4252
  size: "icon-xs",
4253
4253
  disabled: this.disabled,
@@ -4264,13 +4264,13 @@ const nl = {
4264
4264
  </div>`;
4265
4265
  }
4266
4266
  };
4267
- rn.properties = {
4267
+ ra.properties = {
4268
4268
  variant: { type: String },
4269
4269
  showLabel: { type: String, attribute: "show-label" },
4270
4270
  revealed: { type: Boolean, reflect: !0 }
4271
4271
  };
4272
- let ai = rn;
4273
- const an = class an extends ai {
4272
+ let ni = ra;
4273
+ const na = class na extends ni {
4274
4274
  constructor() {
4275
4275
  super(), this.forgotAction = new Vt(this), this.rules = De, this.forgot = !1, this.forgotLabel = "", this.forgotEvent = void 0;
4276
4276
  }
@@ -4289,13 +4289,13 @@ const an = class an extends ai {
4289
4289
  return [{ type: "minlength", message: this.minlengthError || H.minlength(e, this.minlength) }];
4290
4290
  if (this.maxlength && t.length > Math.max(this.maxlength, this.minlength ?? 0))
4291
4291
  return [{ type: "maxlength", message: this.maxlengthError || H.maxlength(e, this.maxlength) }];
4292
- const s = (this.rules ?? []).filter((a) => {
4293
- const o = ol(a);
4292
+ const s = (this.rules ?? []).filter((n) => {
4293
+ const o = ol(n);
4294
4294
  return o ? !o.test(t) : !1;
4295
4295
  });
4296
4296
  if (!s.length) return [];
4297
- const r = s.map((a) => a.error).filter((a) => !!a);
4298
- return r.length ? r.map((a) => ({ type: "rule", message: a })) : [{ type: "rule", message: this.formatError || H.format(e) }];
4297
+ const r = s.map((n) => n.error).filter((n) => !!n);
4298
+ return r.length ? r.map((n) => ({ type: "rule", message: n })) : [{ type: "rule", message: this.formatError || H.format(e) }];
4299
4299
  }
4300
4300
  renderLabel() {
4301
4301
  if (!this.forgot) return super.renderLabel();
@@ -4317,14 +4317,14 @@ const an = class an extends ai {
4317
4317
  </div>`;
4318
4318
  }
4319
4319
  };
4320
- an.properties = {
4320
+ na.properties = {
4321
4321
  rules: { converter: ll },
4322
4322
  forgot: { type: Boolean },
4323
4323
  forgotLabel: { type: String, attribute: "forgot-label" },
4324
4324
  forgotEvent: { type: String, attribute: "forgot-event" }
4325
4325
  };
4326
- let ma = an;
4327
- const nn = class nn extends ai {
4326
+ let gn = na;
4327
+ const aa = class aa extends ni {
4328
4328
  constructor() {
4329
4329
  super(), this.scope = null, this.onScopeInput = (t) => {
4330
4330
  const e = this.pairElement;
@@ -4358,14 +4358,14 @@ const nn = class nn extends ai {
4358
4358
  super.disconnectedCallback(), (t = this.scope) == null || t.removeEventListener("input", this.onScopeInput), this.scope = null;
4359
4359
  }
4360
4360
  };
4361
- nn.properties = {
4361
+ aa.properties = {
4362
4362
  pair: { type: String },
4363
4363
  matchError: { type: String, attribute: "match-error" }
4364
4364
  };
4365
- let ga = nn;
4366
- n("pont2-password-field", ma);
4367
- n("pont2-confirm-field", ga);
4368
- const on = class on extends R {
4365
+ let bn = aa;
4366
+ a("pont2-password-field", gn);
4367
+ a("pont2-confirm-field", bn);
4368
+ const oa = class oa extends R {
4369
4369
  constructor() {
4370
4370
  super(), this.action = new Vt(this), this.onReset = () => {
4371
4371
  setTimeout(() => {
@@ -4441,11 +4441,11 @@ const on = class on extends R {
4441
4441
  aria-describedby=${t.describedBy ?? u}
4442
4442
  aria-invalid=${t.invalid ? "true" : u}
4443
4443
  aria-busy=${this.busy ? "true" : u}
4444
- >${Zn(this.length, e, s)}</pont2-prim-input-otp
4444
+ >${Za(this.length, e, s)}</pont2-prim-input-otp
4445
4445
  >`;
4446
4446
  }
4447
4447
  };
4448
- on.properties = {
4448
+ oa.properties = {
4449
4449
  length: { type: Number },
4450
4450
  layout: { type: String },
4451
4451
  groupSize: { type: Number, attribute: "group-size" },
@@ -4454,8 +4454,8 @@ on.properties = {
4454
4454
  event: { type: String },
4455
4455
  incompleteError: { type: String, attribute: "incomplete-error" }
4456
4456
  };
4457
- let ba = on;
4458
- n("pont2-otp-field", ba);
4457
+ let yn = oa;
4458
+ a("pont2-otp-field", yn);
4459
4459
  const bt = class bt extends l {
4460
4460
  constructor() {
4461
4461
  super(), this.action = new Vt(this), this.press = () => {
@@ -4506,8 +4506,8 @@ bt.identity = "otp-resend", bt.slotName = "otp-resend", bt.composite = !0, bt.pr
4506
4506
  countdownText: { type: String, attribute: "countdown-text" },
4507
4507
  remaining: { state: !0 }
4508
4508
  };
4509
- let ya = bt;
4510
- n("pont2-otp-resend", ya);
4509
+ let vn = bt;
4510
+ a("pont2-otp-resend", vn);
4511
4511
  const yt = class yt extends l {
4512
4512
  constructor() {
4513
4513
  super(), this.action = new Vt(this), this.label = "", this.prompt = "", this.event = void 0, this.service = "auth", this.href = void 0, this.target = void 0, this.rel = void 0, this.align = "center", this.disabled = !1, this.loading = !1;
@@ -4552,8 +4552,8 @@ yt.identity = "link", yt.slotName = "link", yt.composite = !0, yt.properties = {
4552
4552
  disabled: { type: Boolean, reflect: !0 },
4553
4553
  loading: { type: Boolean, reflect: !0 }
4554
4554
  };
4555
- let va = yt;
4556
- n("pont2-link", va);
4555
+ let wn = yt;
4556
+ a("pont2-link", wn);
4557
4557
  const ws = class ws extends je {
4558
4558
  constructor() {
4559
4559
  super(), this.label = "";
@@ -4565,8 +4565,8 @@ const ws = class ws extends je {
4565
4565
  ws.composite = !0, ws.properties = {
4566
4566
  label: { type: String }
4567
4567
  };
4568
- let wa = ws;
4569
- n("pont2-divider", wa);
4568
+ let xn = ws;
4569
+ a("pont2-divider", xn);
4570
4570
  const xs = class xs extends Ot {
4571
4571
  constructor() {
4572
4572
  super(), this.content = "", this.align = "auto";
@@ -4579,8 +4579,8 @@ xs.composite = !0, xs.properties = {
4579
4579
  content: { type: String },
4580
4580
  align: { type: String }
4581
4581
  };
4582
- let ni = xs;
4583
- const ln = class ln extends ni {
4582
+ let ai = xs;
4583
+ const la = class la extends ai {
4584
4584
  constructor() {
4585
4585
  super(), this.level = "1";
4586
4586
  }
@@ -4598,22 +4598,22 @@ const ln = class ln extends ni {
4598
4598
  }
4599
4599
  }
4600
4600
  };
4601
- ln.properties = {
4601
+ la.properties = {
4602
4602
  level: { type: String }
4603
4603
  };
4604
- let xa = ln;
4605
- class cl extends ni {
4604
+ let kn = la;
4605
+ class cl extends ai {
4606
4606
  render() {
4607
4607
  return d`<p data-pont2-subtitle data-align=${this.align || "auto"}>${this.content}</p>`;
4608
4608
  }
4609
4609
  }
4610
- n("pont2-title", xa);
4611
- n("pont2-subtitle", cl);
4610
+ a("pont2-title", kn);
4611
+ a("pont2-subtitle", cl);
4612
4612
  function hl(i) {
4613
4613
  return i < 3 ? "one" : i % 3 === 0 ? "three" : i === 5 ? "two-three" : i === 7 ? "three-four" : "four";
4614
4614
  }
4615
4615
  const dl = (i) => `signin_with_oauth(${i})`, ul = {
4616
- fromAttribute: (i) => (i ?? "").split(/[\s,]+/).filter((t) => Ma.includes(t))
4616
+ fromAttribute: (i) => (i ?? "").split(/[\s,]+/).filter((t) => In.includes(t))
4617
4617
  }, pl = {
4618
4618
  fromAttribute: (i) => {
4619
4619
  try {
@@ -4629,7 +4629,7 @@ const dl = (i) => `signin_with_oauth(${i})`, ul = {
4629
4629
  }
4630
4630
  /** The providers actually rendered: known names, first occurrence only. */
4631
4631
  get list() {
4632
- return [...new Set((this.providers ?? []).filter((t) => Ma.includes(t)))];
4632
+ return [...new Set((this.providers ?? []).filter((t) => In.includes(t)))];
4633
4633
  }
4634
4634
  /** The rendered `<pont2-provider-button>` elements. */
4635
4635
  get buttons() {
@@ -4640,22 +4640,22 @@ const dl = (i) => `signin_with_oauth(${i})`, ul = {
4640
4640
  }
4641
4641
  render() {
4642
4642
  const t = this.list, e = new Map((this.overrides ?? []).map((r) => [r.provider, r])), s = t.length > 2 ? "icon" : void 0;
4643
- return Ta(
4643
+ return Rn(
4644
4644
  t,
4645
4645
  (r) => r,
4646
4646
  (r) => {
4647
- const a = e.get(r) ?? {}, o = (h) => h == null || h === "" ? u : h;
4647
+ const n = e.get(r) ?? {}, o = (h) => h == null || h === "" ? u : h;
4648
4648
  return d`<pont2-provider-button
4649
4649
  provider=${r}
4650
- event=${a.event ?? this.event ?? dl(r)}
4651
- variant=${o(a.variant ?? this.variant)}
4652
- size=${o(a.size ?? this.size)}
4653
- content=${o(a.content ?? this.content ?? s)}
4654
- icon-align=${o(a.iconAlign ?? this.iconAlign)}
4655
- prompt=${o(a.prompt ?? this.prompt)}
4656
- label=${o(a.label ?? this.label)}
4657
- ?disabled=${!!(a.disabled || this.disabled)}
4658
- ?loading=${!!(a.loading || this.loading)}
4650
+ event=${n.event ?? this.event ?? dl(r)}
4651
+ variant=${o(n.variant ?? this.variant)}
4652
+ size=${o(n.size ?? this.size)}
4653
+ content=${o(n.content ?? this.content ?? s)}
4654
+ icon-align=${o(n.iconAlign ?? this.iconAlign)}
4655
+ prompt=${o(n.prompt ?? this.prompt)}
4656
+ label=${o(n.label ?? this.label)}
4657
+ ?disabled=${!!(n.disabled || this.disabled)}
4658
+ ?loading=${!!(n.loading || this.loading)}
4659
4659
  ></pont2-provider-button>`;
4660
4660
  }
4661
4661
  );
@@ -4673,18 +4673,18 @@ ks.composite = !0, ks.properties = {
4673
4673
  label: { type: String },
4674
4674
  loading: { type: Boolean }
4675
4675
  };
4676
- let ka = ks;
4677
- n("pont2-provider-field", ka);
4678
- const fl = g`<polygon points="113.15,120.26 72.47,190.69 72.46,190.71 61.31,210.02 34.66,256.16 0,196.08 78.48,60.19" /><polygon points="256.23,117.67 179.4,250.76 107.12,250.76 72.46,190.71 72.47,190.69 144.73,190.69 186.89,117.67 153.68,60.07 78.48,60.07 34.65,0 188.35,0" />`, ml = g`<path d="M305.95,36.62h76.01c37.22,0,63.16,24.13,63.16,58.64c0,35.19-25.94,59.77-63.16,59.77h-40.83v62.03h-35.19V36.62z M381.51,123.46c16.24,0,27.52-11.28,27.52-27.74c0-16.24-11.28-27.52-27.52-27.52h-40.37v55.26H381.51z" /><path d="M454.59,143.76c0-45.11,31.58-75.79,76.91-75.79c45.34,0,76.91,30.68,76.91,75.79c0,45.34-31.58,75.79-76.91,75.79C486.17,219.54,454.59,189.09,454.59,143.76z M531.51,187.74c24.13,0,41.05-17.59,41.05-43.98c0-26.16-16.92-43.98-41.05-43.98c-23.91,0-40.83,17.82-40.83,43.98C490.68,170.15,507.6,187.74,531.51,187.74z" /><path d="M635.48,70.45h34.96v18.72c3.61-8.8,17.14-21.2,40.37-21.2c33.38,0,59.1,25.71,59.1,63.83v85.26h-35.19v-84.58c0-19.85-12.86-33.16-32.03-33.16c-19.17,0-32.03,13.31-32.03,33.16v84.58h-35.19V70.45z" /><path d="M815.02,102.03h-27.07V70.45h27.07V36.62h35.19v33.83h26.84v31.58h-26.84v115.03h-35.19V102.03z" /><path d="M899.6,36.62h35.19V68.2H899.6V36.62z M899.6,89.85h35.19v127.21H899.6V89.85z" /><path d="M955.09,70.45h36.31l39.7,103.76l39.47-103.76h36.31l-58.19,146.61h-35.19L955.09,70.45z" /><path d="M1117.49,144.21c0-45.56,32.03-76.24,76.46-76.24c49.85,0,81.65,39.25,76.24,87.29h-116.16c2.48,20.53,20.3,33.16,39.47,33.16c15.56,0,30.68-8.12,37.22-22.33h36.99c-9.92,32.48-36.99,53.46-74.66,53.46C1148.39,219.54,1117.49,188.87,1117.49,144.21z M1232.75,127.97c-5.64-17.59-20.07-28.87-38.34-28.87c-18.5,0-33.38,11.05-38.8,29.1L1232.75,127.97z" />`, Sn = () => d`<svg
4676
+ let $n = ks;
4677
+ a("pont2-provider-field", $n);
4678
+ const fl = g`<polygon points="113.15,120.26 72.47,190.69 72.46,190.71 61.31,210.02 34.66,256.16 0,196.08 78.48,60.19" /><polygon points="256.23,117.67 179.4,250.76 107.12,250.76 72.46,190.71 72.47,190.69 144.73,190.69 186.89,117.67 153.68,60.07 78.48,60.07 34.65,0 188.35,0" />`, ml = g`<path d="M305.95,36.62h76.01c37.22,0,63.16,24.13,63.16,58.64c0,35.19-25.94,59.77-63.16,59.77h-40.83v62.03h-35.19V36.62z M381.51,123.46c16.24,0,27.52-11.28,27.52-27.74c0-16.24-11.28-27.52-27.52-27.52h-40.37v55.26H381.51z" /><path d="M454.59,143.76c0-45.11,31.58-75.79,76.91-75.79c45.34,0,76.91,30.68,76.91,75.79c0,45.34-31.58,75.79-76.91,75.79C486.17,219.54,454.59,189.09,454.59,143.76z M531.51,187.74c24.13,0,41.05-17.59,41.05-43.98c0-26.16-16.92-43.98-41.05-43.98c-23.91,0-40.83,17.82-40.83,43.98C490.68,170.15,507.6,187.74,531.51,187.74z" /><path d="M635.48,70.45h34.96v18.72c3.61-8.8,17.14-21.2,40.37-21.2c33.38,0,59.1,25.71,59.1,63.83v85.26h-35.19v-84.58c0-19.85-12.86-33.16-32.03-33.16c-19.17,0-32.03,13.31-32.03,33.16v84.58h-35.19V70.45z" /><path d="M815.02,102.03h-27.07V70.45h27.07V36.62h35.19v33.83h26.84v31.58h-26.84v115.03h-35.19V102.03z" /><path d="M899.6,36.62h35.19V68.2H899.6V36.62z M899.6,89.85h35.19v127.21H899.6V89.85z" /><path d="M955.09,70.45h36.31l39.7,103.76l39.47-103.76h36.31l-58.19,146.61h-35.19L955.09,70.45z" /><path d="M1117.49,144.21c0-45.56,32.03-76.24,76.46-76.24c49.85,0,81.65,39.25,76.24,87.29h-116.16c2.48,20.53,20.3,33.16,39.47,33.16c15.56,0,30.68-8.12,37.22-22.33h36.99c-9.92,32.48-36.99,53.46-74.66,53.46C1148.39,219.54,1117.49,188.87,1117.49,144.21z M1232.75,127.97c-5.64-17.59-20.07-28.87-38.34-28.87c-18.5,0-33.38,11.05-38.8,29.1L1232.75,127.97z" />`, Sa = () => d`<svg
4679
4679
  data-slot="watermark-logo"
4680
4680
  xmlns="http://www.w3.org/2000/svg"
4681
4681
  viewBox="0 0 1270.79 256.16"
4682
4682
  role="img"
4683
4683
  aria-label="Pontive"
4684
4684
  ><g data-logo-mark>${fl}</g><g data-logo-wordmark>${ml}</g></svg>`;
4685
- function Jn(i, t) {
4685
+ function Ja(i, t) {
4686
4686
  const e = d`<span data-slot="watermark-label">${i || "Powered by"}</span>`;
4687
- return t === "start" ? d`${Sn()}${e}` : d`${e}${Sn()}`;
4687
+ return t === "start" ? d`${Sa()}${e}` : d`${e}${Sa()}`;
4688
4688
  }
4689
4689
  const vt = class vt extends l {
4690
4690
  constructor() {
@@ -4694,7 +4694,7 @@ const vt = class vt extends l {
4694
4694
  this.setData("variant", this.variant || "brand");
4695
4695
  }
4696
4696
  render() {
4697
- return Jn(this.label, this.logoAlign);
4697
+ return Ja(this.label, this.logoAlign);
4698
4698
  }
4699
4699
  };
4700
4700
  vt.identity = "watermark", vt.slotName = "watermark", vt.composite = !0, vt.properties = {
@@ -4703,11 +4703,11 @@ vt.identity = "watermark", vt.slotName = "watermark", vt.composite = !0, vt.prop
4703
4703
  label: { type: String }
4704
4704
  };
4705
4705
  let oi = vt;
4706
- n("pont2-watermark", oi);
4707
- const Bt = { showWatermark: !0 }, Qn = lo("pont2:branding");
4706
+ a("pont2-watermark", oi);
4707
+ const Bt = { showWatermark: !0 }, Qa = lo("pont2:branding");
4708
4708
  class gl {
4709
4709
  constructor(t) {
4710
- this.consumer = new co(t, { context: Qn, subscribe: !0 });
4710
+ this.consumer = new co(t, { context: Qa, subscribe: !0 });
4711
4711
  }
4712
4712
  get showWatermark() {
4713
4713
  var t;
@@ -4723,7 +4723,7 @@ const $s = class $s extends We {
4723
4723
  }
4724
4724
  render() {
4725
4725
  return this.branding.showWatermark ? d`<div ${Fe.part({ "data-border": "top", "data-block-footer": !0 })}>
4726
- <span ${oi.part({ "data-variant": "muted" })}>${Jn("", "end")}</span>
4726
+ <span ${oi.part({ "data-variant": "muted" })}>${Ja("", "end")}</span>
4727
4727
  </div>` : u;
4728
4728
  }
4729
4729
  };
@@ -4731,8 +4731,8 @@ $s.composite = !1, $s.properties = {
4731
4731
  align: { type: String },
4732
4732
  justify: { type: String }
4733
4733
  };
4734
- let $a = $s;
4735
- n("pont2-block", $a);
4734
+ let Sn = $s;
4735
+ a("pont2-block", Sn);
4736
4736
  const wt = class wt extends l {
4737
4737
  constructor() {
4738
4738
  super(), this.type = "flex_column", this.align = "stretch", this.justify = "start";
@@ -4746,8 +4746,8 @@ wt.identity = "container", wt.slotName = "container", wt.composite = !1, wt.prop
4746
4746
  align: { type: String },
4747
4747
  justify: { type: String }
4748
4748
  };
4749
- let Sa = wt;
4750
- n("pont2-container", Sa);
4749
+ let An = wt;
4750
+ a("pont2-container", An);
4751
4751
  const xt = class xt extends l {
4752
4752
  constructor() {
4753
4753
  super(), this.align = "center";
@@ -4759,8 +4759,8 @@ const xt = class xt extends l {
4759
4759
  xt.identity = "header", xt.slotName = "header", xt.composite = !1, xt.properties = {
4760
4760
  align: { type: String }
4761
4761
  };
4762
- let Aa = xt;
4763
- n("pont2-header", Aa);
4762
+ let En = xt;
4763
+ a("pont2-header", En);
4764
4764
  const kt = class kt extends l {
4765
4765
  constructor() {
4766
4766
  super(), this.size = "8px", this.type = "vertical";
@@ -4776,9 +4776,9 @@ kt.identity = "gap", kt.slotName = "gap", kt.composite = !0, kt.properties = {
4776
4776
  size: { type: String },
4777
4777
  type: { type: String }
4778
4778
  };
4779
- let Ea = kt;
4780
- n("pont2-gap", Ea);
4781
- function An(i, t) {
4779
+ let Dn = kt;
4780
+ a("pont2-gap", Dn);
4781
+ function Aa(i, t) {
4782
4782
  if (!i) return "";
4783
4783
  const e = i.replace("{{theme}}", t);
4784
4784
  return /^(https?:|data:|blob:|\/|\.{1,2}\/)/.test(e) ? e : `data:image/svg+xml;base64,${e}`;
@@ -4791,9 +4791,9 @@ const $t = class $t extends l {
4791
4791
  this.setData("align", this.align || "center");
4792
4792
  }
4793
4793
  render() {
4794
- const t = An(this.imageUrl, "light");
4794
+ const t = Aa(this.imageUrl, "light");
4795
4795
  if (!t) return u;
4796
- const e = An(this.imageUrlDark || this.imageUrl, "dark"), s = Ne({ width: this.width || void 0, height: this.height || void 0 }), r = this.alt || "Logo";
4796
+ const e = Aa(this.imageUrlDark || this.imageUrl, "dark"), s = Ne({ width: this.width || void 0, height: this.height || void 0 }), r = this.alt || "Logo";
4797
4797
  return d`<img data-logo-theme="light" src=${t} alt=${r} style=${s} />${e !== t ? d`<img data-logo-theme="dark" src=${e} alt=${r} style=${s} />` : u}`;
4798
4798
  }
4799
4799
  };
@@ -4805,8 +4805,8 @@ $t.identity = "logo", $t.slotName = "logo", $t.composite = !0, $t.properties = {
4805
4805
  width: { type: String },
4806
4806
  height: { type: String }
4807
4807
  };
4808
- let Da = $t;
4809
- n("pont2-logo", Da);
4808
+ let Nn = $t;
4809
+ a("pont2-logo", Nn);
4810
4810
  function bl(i, t = ((e) => (e = globalThis.location) == null ? void 0 : e.href)()) {
4811
4811
  if (!i) return null;
4812
4812
  try {
@@ -4856,8 +4856,8 @@ K.identity = "countdown", K.slotName = "countdown", K.role = "timer", K.composit
4856
4856
  redirectUrl: { type: String, attribute: "redirect-url" },
4857
4857
  remaining: { state: !0 }
4858
4858
  };
4859
- let Na = K;
4860
- n("pont2-countdown", Na);
4859
+ let Cn = K;
4860
+ a("pont2-countdown", Cn);
4861
4861
  const St = class St extends l {
4862
4862
  constructor() {
4863
4863
  super(), this.action = new Vt(this), this.identifier = "", this.event = void 0, this.label = "";
@@ -4890,11 +4890,11 @@ St.identity = "edit-identifier", St.slotName = "edit-identifier", St.composite =
4890
4890
  event: { type: String },
4891
4891
  label: { type: String }
4892
4892
  };
4893
- let Ca = St;
4894
- n("pont2-edit-identifier", Ca);
4893
+ let On = St;
4894
+ a("pont2-edit-identifier", On);
4895
4895
  const At = class At extends l {
4896
4896
  constructor() {
4897
- super(), this.clipboard = new Un(this, "secret"), this.inputId = Ss("secret"), this.secret = "", this.issuer = "", this.account = "", this.titleText = "", this.secretLabel = "", this.issuerLabel = "", this.accountLabel = "", this.copyLabel = "", this.copiedText = "", this.disabled = !1;
4897
+ super(), this.clipboard = new Ua(this, "secret"), this.inputId = Ss("secret"), this.secret = "", this.issuer = "", this.account = "", this.titleText = "", this.secretLabel = "", this.issuerLabel = "", this.accountLabel = "", this.copyLabel = "", this.copiedText = "", this.disabled = !1;
4898
4898
  }
4899
4899
  /** Copies the secret (also what the button does). */
4900
4900
  copy() {
@@ -4904,14 +4904,14 @@ const At = class At extends l {
4904
4904
  const t = this.clipboard.copied, e = (s, r) => r ? d`<div><dt>${s}</dt><dd>${r}</dd></div>` : u;
4905
4905
  return d`<p data-slot="secret-title">${this.titleText || "Can't scan?"}</p>
4906
4906
  <div ${ye.part()}>
4907
- ${Kn({
4907
+ ${Ka({
4908
4908
  id: this.inputId,
4909
4909
  value: this.secret,
4910
4910
  readonly: !0,
4911
4911
  attrs: { "aria-label": this.secretLabel || "Manual secret", spellcheck: "false", "data-secret": !0 }
4912
4912
  })}
4913
4913
  <div ${ve.part({ "data-align": "inline-end" })}>
4914
- ${Wn(
4914
+ ${Wa(
4915
4915
  {
4916
4916
  size: "icon-xs",
4917
4917
  disabled: this.disabled || !this.secret,
@@ -4940,17 +4940,17 @@ At.identity = "secret", At.slotName = "secret", At.composite = !0, At.properties
4940
4940
  copiedText: { type: String, attribute: "copied-text" },
4941
4941
  disabled: { type: Boolean, reflect: !0 }
4942
4942
  };
4943
- let Oa = At;
4944
- n("pont2-secret", Oa);
4943
+ let Ln = At;
4944
+ a("pont2-secret", Ln);
4945
4945
  const Ls = 4;
4946
4946
  function yl(i, t) {
4947
4947
  if (!i) return null;
4948
4948
  try {
4949
4949
  const { modules: e } = uo.create(i, { errorCorrectionLevel: t }), s = e.size;
4950
4950
  let r = "";
4951
- for (let a = 0; a < s; a++)
4951
+ for (let n = 0; n < s; n++)
4952
4952
  for (let o = 0; o < s; o++)
4953
- e.data[a * s + o] && (r += `M${o + Ls} ${a + Ls}h1v1h-1z`);
4953
+ e.data[n * s + o] && (r += `M${o + Ls} ${n + Ls}h1v1h-1z`);
4954
4954
  return { d: r, size: s + Ls * 2 };
4955
4955
  } catch {
4956
4956
  return null;
@@ -5010,8 +5010,8 @@ Et.identity = "qr-code", Et.slotName = "qr-code", Et.composite = !0, Et.properti
5010
5010
  disabled: { type: Boolean, reflect: !0 },
5011
5011
  obscured: { state: !0 }
5012
5012
  };
5013
- let La = Et;
5014
- n("pont2-qr-code", La);
5013
+ let qn = Et;
5014
+ a("pont2-qr-code", qn);
5015
5015
  const vl = {
5016
5016
  fromAttribute: (i) => {
5017
5017
  const t = (i ?? "").trim();
@@ -5027,7 +5027,7 @@ const vl = {
5027
5027
  }
5028
5028
  }, Dt = class Dt extends l {
5029
5029
  constructor() {
5030
- super(), this.clipboard = new Un(this, "recovery-codes"), this.codes = [], this.titleText = "", this.description = "", this.emptyText = "", this.copyLabel = "", this.downloadLabel = "", this.copiedText = "", this.filename = "", this.disabled = !1;
5030
+ super(), this.clipboard = new Ua(this, "recovery-codes"), this.codes = [], this.titleText = "", this.description = "", this.emptyText = "", this.copyLabel = "", this.downloadLabel = "", this.copiedText = "", this.filename = "", this.disabled = !1;
5031
5031
  }
5032
5032
  get text() {
5033
5033
  return (this.codes ?? []).join(`
@@ -5076,29 +5076,29 @@ Dt.identity = "recovery-codes", Dt.slotName = "recovery-codes", Dt.composite = !
5076
5076
  filename: { type: String },
5077
5077
  disabled: { type: Boolean, reflect: !0 }
5078
5078
  };
5079
- let qa = Dt;
5080
- n("pont2-recovery-codes", qa);
5081
- function Gn(i) {
5079
+ let zn = Dt;
5080
+ a("pont2-recovery-codes", zn);
5081
+ function Ga(i) {
5082
5082
  if (!Array.isArray(i)) return [];
5083
5083
  const t = /* @__PURE__ */ new Set();
5084
5084
  return i.flatMap((e) => {
5085
5085
  if (!e || typeof e != "object") return [];
5086
- const { scope: s, label: r, granted: a, required: o } = e;
5086
+ const { scope: s, label: r, granted: n, required: o } = e;
5087
5087
  if (typeof s != "string" || !s.trim()) return [];
5088
5088
  const h = s.trim();
5089
- return t.has(h) ? [] : (t.add(h), [{ scope: h, label: typeof r == "string" && r ? r : h, granted: a === !0, required: o === !0 }]);
5089
+ return t.has(h) ? [] : (t.add(h), [{ scope: h, label: typeof r == "string" && r ? r : h, granted: n === !0, required: o === !0 }]);
5090
5090
  });
5091
5091
  }
5092
- function _n(i, t) {
5092
+ function _a(i, t) {
5093
5093
  return !!i.required || !t.has(i.scope);
5094
5094
  }
5095
5095
  function wl(i, t) {
5096
- return Array.from(new Set(i.filter((e) => _n(e, t)).map((e) => e.scope))).join(" ");
5096
+ return Array.from(new Set(i.filter((e) => _a(e, t)).map((e) => e.scope))).join(" ");
5097
5097
  }
5098
5098
  const xl = {
5099
5099
  fromAttribute: (i) => {
5100
5100
  try {
5101
- return Gn(JSON.parse(i ?? "[]"));
5101
+ return Ga(JSON.parse(i ?? "[]"));
5102
5102
  } catch {
5103
5103
  return [];
5104
5104
  }
@@ -5109,7 +5109,7 @@ const xl = {
5109
5109
  }
5110
5110
  /** The normalised scope list. */
5111
5111
  get list() {
5112
- return Gn(this.scopes);
5112
+ return Ga(this.scopes);
5113
5113
  }
5114
5114
  /** The submitted value: ticked scopes, space-separated. */
5115
5115
  get value() {
@@ -5135,7 +5135,7 @@ const xl = {
5135
5135
  e.target.checked ? s.delete(t) : s.add(t), this.unticked = s, this.dispatchEvent(new Event("input", { bubbles: !0, composed: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 }));
5136
5136
  }
5137
5137
  render() {
5138
- return Ta(
5138
+ return Rn(
5139
5139
  this.list,
5140
5140
  (t) => t.scope,
5141
5141
  (t) => d`<div
@@ -5147,7 +5147,7 @@ const xl = {
5147
5147
  >
5148
5148
  <label data-slot="scope-list-label">
5149
5149
  <pont2-prim-checkbox
5150
- .checked=${_n(t, this.unticked)}
5150
+ .checked=${_a(t, this.unticked)}
5151
5151
  ?disabled=${this.isDisabled || t.required}
5152
5152
  ?required=${t.required}
5153
5153
  @input=${(e) => e.stopPropagation()}
@@ -5163,9 +5163,9 @@ W.identity = "scope-list", W.slotName = "scope-list", W.role = "list", W.composi
5163
5163
  scopes: { converter: xl },
5164
5164
  unticked: { state: !0 }
5165
5165
  };
5166
- let za = W;
5167
- n("pont2-scope-list", za);
5168
- const Ia = {
5166
+ let Un = W;
5167
+ a("pont2-scope-list", Un);
5168
+ const Bn = {
5169
5169
  connection_failed: "We couldn't reach the server. Check your connection and try again.",
5170
5170
  too_many_attempts: "Too many attempts. Try again later.",
5171
5171
  server_error: "Something went wrong on our side. Please try again.",
@@ -5178,11 +5178,11 @@ const Ia = {
5178
5178
  continue_here: "Continue here instead"
5179
5179
  }, kl = 409;
5180
5180
  function to(i, t = {}) {
5181
- const e = (o) => t[o] || Ia[o];
5181
+ const e = (o) => t[o] || Bn[o];
5182
5182
  if (typeof DOMException < "u" && i instanceof DOMException && (i.name === "NotAllowedError" || i.name === "AbortError"))
5183
5183
  return { message: e("passkey_cancelled"), restartable: !1 };
5184
- const { status: s, code: r, message: a } = $l(i);
5185
- return s === kl ? { message: En(a) ?? e("flow_ended"), restartable: !0 } : s === void 0 && (r === "NETWORK_ERROR" || r === "TIMEOUT") ? { message: e("connection_failed"), restartable: !1 } : s === 429 ? { message: e("too_many_attempts"), restartable: !1 } : s !== void 0 && s >= 500 ? { message: e("server_error"), restartable: !1 } : { message: En(a) ?? e("generic_error"), restartable: !1 };
5184
+ const { status: s, code: r, message: n } = $l(i);
5185
+ return s === kl ? { message: Ea(n) ?? e("flow_ended"), restartable: !0 } : s === void 0 && (r === "NETWORK_ERROR" || r === "TIMEOUT") ? { message: e("connection_failed"), restartable: !1 } : s === 429 ? { message: e("too_many_attempts"), restartable: !1 } : s !== void 0 && s >= 500 ? { message: e("server_error"), restartable: !1 } : { message: Ea(n) ?? e("generic_error"), restartable: !1 };
5186
5186
  }
5187
5187
  function $l(i) {
5188
5188
  if (typeof i == "string") return { message: i };
@@ -5194,7 +5194,7 @@ function $l(i) {
5194
5194
  message: typeof t.message == "string" ? t.message : void 0
5195
5195
  };
5196
5196
  }
5197
- function En(i) {
5197
+ function Ea(i) {
5198
5198
  const t = i == null ? void 0 : i.trim();
5199
5199
  if (!t || /^HTTP \d{3}\b/.test(t) || t.includes("`")) return;
5200
5200
  const e = t.charAt(0).toUpperCase() + t.slice(1);
@@ -5206,9 +5206,9 @@ function Sl(i) {
5206
5206
  for (const [e, s] of i.entries()) typeof s == "string" && (t[e] = s);
5207
5207
  return Object.keys(t).length ? t : void 0;
5208
5208
  }
5209
- const qs = "data-flow-error", Dn = /* @__PURE__ */ new Set(), Nt = class Nt extends l {
5209
+ const qs = "data-flow-error", Da = /* @__PURE__ */ new Set(), Nt = class Nt extends l {
5210
5210
  constructor() {
5211
- super(), this.provider = new ho(this, { context: Qn, initialValue: Bt }), this.pending = null, this.client = void 0, this.renderSpec = "", this.branding = Bt, this.messages = {}, this.busy = !1, this.addEventListener("pont2-action", (t) => this.onAction(t)), this.addEventListener("pont2-action-error", (t) => this.onError(t));
5211
+ super(), this.provider = new ho(this, { context: Qa, initialValue: Bt }), this.pending = null, this.client = void 0, this.renderSpec = "", this.branding = Bt, this.messages = {}, this.busy = !1, this.addEventListener("pont2-action", (t) => this.onAction(t)), this.addEventListener("pont2-action-error", (t) => this.onError(t));
5212
5212
  }
5213
5213
  /** The layout's form (holds the screen). */
5214
5214
  get form() {
@@ -5216,11 +5216,11 @@ const qs = "data-flow-error", Dn = /* @__PURE__ */ new Set(), Nt = class Nt exte
5216
5216
  }
5217
5217
  /** Runs one flow request (what a `pont2-action` from inside triggers). */
5218
5218
  run(t, e) {
5219
- var a;
5219
+ var n;
5220
5220
  const s = this.client;
5221
5221
  if (!s) return Promise.reject(new Error("pont2-layout has no client"));
5222
5222
  if (this.pending) return this.pending;
5223
- this.clearBanner(), this.busy = !0, (a = this.form) == null || a.setAttribute("aria-busy", "true");
5223
+ this.clearBanner(), this.busy = !0, (n = this.form) == null || n.setAttribute("aria-busy", "true");
5224
5224
  const r = s.processLoginflowEvent(e ? { event: t, data: e } : { event: t }).then((o) => (typeof (o == null ? void 0 : o.render_spec) == "string" && o.render_spec && (this.renderSpec = o.render_spec), S(this, "pont2-flow-response", { action: t, result: o }), o)).finally(() => {
5225
5225
  var o;
5226
5226
  this.pending = null, this.busy = !1, (o = this.form) == null || o.setAttribute("aria-busy", "false");
@@ -5242,17 +5242,17 @@ const qs = "data-flow-error", Dn = /* @__PURE__ */ new Set(), Nt = class Nt exte
5242
5242
  this.clearBanner();
5243
5243
  const r = document.createElement("pont2-alert");
5244
5244
  r.setAttribute("status", "error"), r.setAttribute("icon", ""), r.setAttribute("description", t), r.setAttribute(qs, "");
5245
- const a = [r];
5245
+ const n = [r];
5246
5246
  if (e) {
5247
5247
  const f = document.createElement("pont2-button");
5248
5248
  f.setAttribute("variant", "outline"), f.setAttribute(qs, "");
5249
5249
  const p = document.createElement("button");
5250
- p.type = "button", p.textContent = this.messages.start_again || Ia.start_again, p.addEventListener("click", () => S(this, "pont2-layout-restart", {})), f.append(p), a.push(f);
5250
+ p.type = "button", p.textContent = this.messages.start_again || Bn.start_again, p.addEventListener("click", () => S(this, "pont2-layout-restart", {})), f.append(p), n.push(f);
5251
5251
  }
5252
5252
  const h = s.querySelector(":scope > pont2-block") ?? s;
5253
5253
  let c = h.firstElementChild;
5254
5254
  for (; c && /^pont2-(logo|header)$/.test(c.localName); ) c = c.nextElementSibling;
5255
- for (const f of a) h.insertBefore(f, c);
5255
+ for (const f of n) h.insertBefore(f, c);
5256
5256
  }
5257
5257
  clearBanner() {
5258
5258
  var t;
@@ -5268,7 +5268,7 @@ const qs = "data-flow-error", Dn = /* @__PURE__ */ new Set(), Nt = class Nt exte
5268
5268
  renderScreen(t) {
5269
5269
  t.innerHTML = this.renderSpec || "";
5270
5270
  for (const e of Array.from(t.querySelectorAll("*")))
5271
- e.localName.includes("-") && (customElements.get(e.localName) ? customElements.upgrade(e) : Dn.has(e.localName) || (Dn.add(e.localName), console.warn(`[pont2] <${e.localName}> is in the render spec but is not defined in this bundle.`), document.dispatchEvent(
5271
+ e.localName.includes("-") && (customElements.get(e.localName) ? customElements.upgrade(e) : Da.has(e.localName) || (Da.add(e.localName), console.warn(`[pont2] <${e.localName}> is in the render spec but is not defined in this bundle.`), document.dispatchEvent(
5272
5272
  new CustomEvent("pont2-unregistered-element", { detail: { tag: e.localName } })
5273
5273
  )));
5274
5274
  }
@@ -5283,15 +5283,15 @@ Nt.identity = "layout", Nt.slotName = "layout", Nt.composite = !0, Nt.properties
5283
5283
  messages: { attribute: !1 },
5284
5284
  busy: { state: !0 }
5285
5285
  };
5286
- let Ua = Nt;
5287
- n("pont2-layout", Ua);
5288
- function Zl(i) {
5286
+ let Vn = Nt;
5287
+ a("pont2-layout", Vn);
5288
+ function _l(i) {
5289
5289
  document.dispatchEvent(new CustomEvent("pont2-flow-state", { detail: i }));
5290
5290
  }
5291
5291
  function zs(i) {
5292
5292
  return i.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
5293
5293
  }
5294
- const Nn = 5e3, Ct = class Ct extends l {
5294
+ const Na = 5e3, Ct = class Ct extends l {
5295
5295
  constructor() {
5296
5296
  super(), this.started = !1, this.onFlowState = (t) => this.applyFlowState(t.detail), this.client = void 0, this.branding = Bt, this.flowId = "", this.renderSpec = "", this.messages = {}, this.starting = !1, this.startError = null, this.addEventListener("pont2-layout-restart", () => void this.restart());
5297
5297
  }
@@ -5314,7 +5314,7 @@ const Nn = 5e3, Ct = class Ct extends l {
5314
5314
  }
5315
5315
  }
5316
5316
  msg(t) {
5317
- return this.messages[t] || Ia[t];
5317
+ return this.messages[t] || Bn[t];
5318
5318
  }
5319
5319
  continuedElsewhereSpec() {
5320
5320
  return `<pont2-block>
@@ -5347,8 +5347,8 @@ const Nn = 5e3, Ct = class Ct extends l {
5347
5347
  try {
5348
5348
  t.whenConfigured && (await Promise.race([
5349
5349
  t.whenConfigured().then(() => !0),
5350
- new Promise((r) => setTimeout(() => r(!1), Nn))
5351
- ]) || console.warn(`[pont2] <${this.localName}>: the client is not configured after ${Nn}ms.`));
5350
+ new Promise((r) => setTimeout(() => r(!1), Na))
5351
+ ]) || console.warn(`[pont2] <${this.localName}>: the client is not configured after ${Na}ms.`));
5352
5352
  const e = await t.startLoginflow(this.flowId || this.defaultFlowId());
5353
5353
  e != null && e.messages && (this.messages = { ...e.messages }), typeof (e == null ? void 0 : e.render_spec) == "string" && (this.renderSpec = e.render_spec);
5354
5354
  } catch (e) {
@@ -5395,13 +5395,72 @@ class El extends li {
5395
5395
  return "sys_signup-flow";
5396
5396
  }
5397
5397
  }
5398
- n("pont2-signin", Al);
5399
- n("pont2-signup", El);
5398
+ a("pont2-signin", Al);
5399
+ a("pont2-signup", El);
5400
+ const Dl = `<pont2-block>
5401
+ <pont2-header>
5402
+ <pont2-title content="Welcome back"></pont2-title>
5403
+ <pont2-subtitle content="Sign in to your account"></pont2-subtitle>
5404
+ </pont2-header>
5405
+ <pont2-provider-field providers="google apple github"></pont2-provider-field>
5406
+ <pont2-divider label="Or continue with"></pont2-divider>
5407
+ <pont2-identifier-field identifiers="email username" required></pont2-identifier-field>
5408
+ <pont2-submit-button event="submit_identifier" label="Continue"></pont2-submit-button>
5409
+ <pont2-passkey-button content="icon-label" event="passkey"></pont2-passkey-button>
5410
+ <pont2-link prompt="Don't have an account?" label="Sign up" event="goto_signup"></pont2-link>
5411
+ </pont2-block>`, Nl = `<pont2-block>
5412
+ <pont2-header>
5413
+ <pont2-title content="Enter your password"></pont2-title>
5414
+ </pont2-header>
5415
+ <pont2-edit-identifier identifier="ada@example.com" event="change_identifier"></pont2-edit-identifier>
5416
+ <pont2-password-field required rules="[]" forgot forgot-event="forgot_password"></pont2-password-field>
5417
+ <pont2-submit-button event="submit_password" label="Sign in"></pont2-submit-button>
5418
+ </pont2-block>`, Cl = `<pont2-block>
5419
+ <pont2-header>
5420
+ <pont2-title content="Check your email"></pont2-title>
5421
+ <pont2-subtitle content="We sent a 6-digit code to ada@example.com"></pont2-subtitle>
5422
+ </pont2-header>
5423
+ <pont2-alert status="info" icon description="The code expires in 10 minutes."></pont2-alert>
5424
+ <pont2-container align="center">
5425
+ <pont2-otp-field layout="simple" required></pont2-otp-field>
5426
+ </pont2-container>
5427
+ <pont2-submit-button event="verify_code" label="Verify"></pont2-submit-button>
5428
+ <pont2-otp-resend duration="30" event="resend_code"></pont2-otp-resend>
5429
+ </pont2-block>`, Ol = `<pont2-block>
5430
+ <pont2-header>
5431
+ <pont2-title content="Create an account"></pont2-title>
5432
+ <pont2-subtitle content="It only takes a minute"></pont2-subtitle>
5433
+ </pont2-header>
5434
+ <pont2-name-field required></pont2-name-field>
5435
+ <pont2-email-field required></pont2-email-field>
5436
+ <pont2-password-field required></pont2-password-field>
5437
+ <pont2-confirm-field required></pont2-confirm-field>
5438
+ <pont2-submit-button event="submit_signup" label="Create account"></pont2-submit-button>
5439
+ <pont2-link prompt="Already have an account?" label="Sign in" event="goto_signin"></pont2-link>
5440
+ </pont2-block>`, tc = {
5441
+ signin: { label: "Sign in", flow: "signin", spec: Dl },
5442
+ password: { label: "Password", flow: "signin", spec: Nl },
5443
+ verify: { label: "Verification code", flow: "signin", spec: Cl },
5444
+ signup: { label: "Sign up", flow: "signup", spec: Ol }
5445
+ };
5446
+ function ec(i, t = {}) {
5447
+ const e = t.delay ?? 600, s = { ...t.messages };
5448
+ return {
5449
+ async whenConfigured() {
5450
+ },
5451
+ async startLoginflow() {
5452
+ return { render_spec: i, messages: s };
5453
+ },
5454
+ processLoginflowEvent(r) {
5455
+ return new Promise((n) => setTimeout(() => n({ state: "preview" }), e));
5456
+ }
5457
+ };
5458
+ }
5400
5459
  export {
5401
- xn as ALERT_STATUSES,
5402
- Il as ALERT_VARIANTS,
5403
- Yl as AUTH_BUTTON_CONTENTS,
5404
- Ma as AUTH_PROVIDERS,
5460
+ xa as ALERT_STATUSES,
5461
+ Wl as ALERT_VARIANTS,
5462
+ Gl as AUTH_BUTTON_CONTENTS,
5463
+ In as AUTH_PROVIDERS,
5405
5464
  Vt as ActionController,
5406
5465
  Re as Alert,
5407
5466
  Vs as AlertAction,
@@ -5415,11 +5474,11 @@ export {
5415
5474
  Pe as AvatarFallback,
5416
5475
  Ts as AvatarGroup,
5417
5476
  Rs as AvatarGroupCount,
5418
- Vl as BADGE_VARIANTS,
5419
- Rl as BUTTON_SIZES,
5420
- Tl as BUTTON_VARIANTS,
5477
+ Il as BADGE_VARIANTS,
5478
+ Pl as BUTTON_SIZES,
5479
+ Bl as BUTTON_VARIANTS,
5421
5480
  Ce as Badge,
5422
- $a as Block,
5481
+ Sn as Block,
5423
5482
  gl as BrandingController,
5424
5483
  Us as ButtonBase,
5425
5484
  Ms as ButtonGroup,
@@ -5435,20 +5494,20 @@ export {
5435
5494
  Oe as Checkbox,
5436
5495
  Qr as Combobox,
5437
5496
  _r as ComboboxContent,
5438
- ia as ComboboxEmpty,
5439
- sa as ComboboxGroup,
5497
+ sn as ComboboxEmpty,
5498
+ rn as ComboboxGroup,
5440
5499
  Gr as ComboboxInput,
5441
- ea as ComboboxItem,
5442
- ra as ComboboxLabel,
5443
- ta as ComboboxList,
5444
- aa as ComboboxSeparator,
5445
- ga as ConfirmField,
5446
- Sa as Container,
5447
- Un as CopyController,
5448
- Na as Countdown,
5500
+ en as ComboboxItem,
5501
+ nn as ComboboxLabel,
5502
+ tn as ComboboxList,
5503
+ an as ComboboxSeparator,
5504
+ bn as ConfirmField,
5505
+ An as Container,
5506
+ Ua as CopyController,
5507
+ Cn as Countdown,
5449
5508
  Bt as DEFAULT_BRANDING,
5450
5509
  De as DEFAULT_PASSWORD_RULES,
5451
- wa as Divider,
5510
+ xn as Divider,
5452
5511
  zr as DropdownMenu,
5453
5512
  Rr as DropdownMenuCheckboxItem,
5454
5513
  si as DropdownMenuContent,
@@ -5463,7 +5522,7 @@ export {
5463
5522
  ri as DropdownMenuSubContent,
5464
5523
  $e as DropdownMenuSubTrigger,
5465
5524
  Vr as DropdownMenuTrigger,
5466
- Ca as EditIdentifier,
5525
+ On as EditIdentifier,
5467
5526
  tl as EmailField,
5468
5527
  js as Empty,
5469
5528
  Qs as EmptyContent,
@@ -5471,7 +5530,7 @@ export {
5471
5530
  Xs as EmptyHeader,
5472
5531
  Ys as EmptyMedia,
5473
5532
  Zs as EmptyTitle,
5474
- Ia as FLOW_MESSAGES_EN,
5533
+ Bn as FLOW_MESSAGES_EN,
5475
5534
  be as Field,
5476
5535
  tr as FieldContent,
5477
5536
  He as FieldDescription,
@@ -5483,17 +5542,17 @@ export {
5483
5542
  ir as FieldTitle,
5484
5543
  li as FlowWidget,
5485
5544
  M as FormControlElement,
5486
- Ea as Gap,
5487
- Aa as Header,
5545
+ Dn as Gap,
5546
+ En as Header,
5488
5547
  l as HostElement,
5489
5548
  rl as IDENTIFIER_KINDS,
5490
- fa as IdentifierField,
5549
+ mn as IdentifierField,
5491
5550
  ye as InputGroup,
5492
5551
  ve as InputGroupAddon,
5493
5552
  ko as InputGroupButton,
5494
5553
  rr as InputGroupInput,
5495
5554
  sr as InputGroupText,
5496
- ar as InputGroupTextarea,
5555
+ nr as InputGroupTextarea,
5497
5556
  Qe as InputOTP,
5498
5557
  Ge as InputOTPGroup,
5499
5558
  _e as InputOTPSeparator,
@@ -5503,31 +5562,32 @@ export {
5503
5562
  hr as ItemContent,
5504
5563
  ur as ItemDescription,
5505
5564
  mr as ItemFooter,
5506
- nr as ItemGroup,
5565
+ ar as ItemGroup,
5507
5566
  fr as ItemHeader,
5508
5567
  cr as ItemMedia,
5509
5568
  or as ItemSeparator,
5510
5569
  dr as ItemTitle,
5511
5570
  qe as Kbd,
5512
5571
  ze as KbdGroup,
5513
- ha as KitAlert,
5514
- da as KitAvatar,
5515
- ua as KitInputOTP,
5516
- Ua as Layout,
5517
- va as Link,
5518
- Da as Logo,
5572
+ dn as KitAlert,
5573
+ un as KitAvatar,
5574
+ pn as KitInputOTP,
5575
+ Vn as Layout,
5576
+ wn as Link,
5577
+ Nn as Logo,
5519
5578
  Ut as MenuItemBase,
5520
5579
  sl as NameField,
5521
5580
  O as NativeEnhancer,
5522
5581
  Ye as NativeSelect,
5523
- ba as OtpField,
5524
- ya as OtpResend,
5525
- nl as PASSWORD_RULE_PATTERNS,
5582
+ yn as OtpField,
5583
+ vn as OtpResend,
5584
+ al as PASSWORD_RULE_PATTERNS,
5526
5585
  fe as PREFIX,
5586
+ tc as PREVIEW_SCREENS,
5527
5587
  mo as PRIM,
5528
5588
  Yo as PROVIDER_NAMES,
5529
5589
  Qo as PasskeyButton,
5530
- ma as PasswordField,
5590
+ gn as PasswordField,
5531
5591
  el as PhoneField,
5532
5592
  ge as Pont2Button,
5533
5593
  Le as Pont2Input,
@@ -5545,19 +5605,19 @@ export {
5545
5605
  br as Progress,
5546
5606
  yr as ProgressLabel,
5547
5607
  vr as ProgressValue,
5548
- pa as ProviderButton,
5549
- ka as ProviderField,
5550
- La as QrCode,
5551
- Fl as REGEXP_ONLY_CHARS,
5608
+ fn as ProviderButton,
5609
+ $n as ProviderField,
5610
+ qn as QrCode,
5611
+ Yl as REGEXP_ONLY_CHARS,
5552
5612
  Je as REGEXP_ONLY_DIGITS,
5553
- Hl as REGEXP_ONLY_DIGITS_AND_CHARS,
5613
+ Zl as REGEXP_ONLY_DIGITS_AND_CHARS,
5554
5614
  wr as RadioGroup,
5555
5615
  xr as RadioGroupItem,
5556
- qa as RecoveryCodes,
5557
- zn as RovingFocusController,
5558
- za as ScopeList,
5559
- Oa as Secret,
5560
- ai as SecretField,
5616
+ zn as RecoveryCodes,
5617
+ za as RovingFocusController,
5618
+ Un as ScopeList,
5619
+ Ln as Secret,
5620
+ ni as SecretField,
5561
5621
  Fr as Select,
5562
5622
  jr as SelectContent,
5563
5623
  Yr as SelectGroup,
@@ -5580,67 +5640,68 @@ export {
5580
5640
  Ar as TabsContent,
5581
5641
  $r as TabsList,
5582
5642
  Sr as TabsTrigger,
5583
- xa as Title,
5584
- oa as Tooltip,
5585
- ca as TooltipContent,
5586
- la as TooltipTrigger,
5643
+ kn as Title,
5644
+ ln as Tooltip,
5645
+ hn as TooltipContent,
5646
+ cn as TooltipTrigger,
5587
5647
  zt as Typeahead,
5588
5648
  il as UsernameField,
5589
5649
  oi as Watermark,
5590
5650
  Ro as alignItemWithAnchor,
5591
5651
  fo as applyAttrs,
5592
- Vn as applyButton,
5652
+ Va as applyButton,
5593
5653
  wo as applyFieldLabel,
5594
5654
  vo as applyFieldSet,
5595
- Rn as applyInput,
5596
- In as applyLabel,
5655
+ Ra as applyInput,
5656
+ Ia as applyLabel,
5597
5657
  $o as applyNativeSelect,
5598
5658
  So as applyTable,
5599
- Bn as applyTextarea,
5659
+ Ba as applyTextarea,
5600
5660
  N as attrs,
5601
- Qn as brandingContext,
5661
+ Qa as brandingContext,
5602
5662
  V as button,
5603
5663
  _o as compilePattern,
5604
5664
  To as computePosition,
5605
- n as define,
5665
+ a as define,
5606
5666
  A as defineAlias,
5607
5667
  to as describeFlowError,
5608
5668
  Lt as directionOf,
5609
- Zl as dispatchFlowState,
5669
+ _l as dispatchFlowState,
5610
5670
  $ as ensureId,
5611
5671
  zs as escapeAttr,
5612
5672
  xo as fieldLabel,
5613
- Pl as fieldLegend,
5673
+ Hl as fieldLegend,
5614
5674
  H as fieldMessages,
5615
- Bl as fieldSet,
5675
+ Fl as fieldSet,
5616
5676
  S as fire,
5617
5677
  k as fireNative,
5618
5678
  Sl as formDataToObject,
5619
5679
  Xo as groupSizes,
5620
5680
  v as icons,
5621
- al as identifierLabel,
5622
- fn as identitiesOf,
5623
- qn as identityAttr,
5681
+ nl as identifierLabel,
5682
+ fa as identitiesOf,
5683
+ qa as identityAttr,
5624
5684
  jo as initials,
5625
- Mn as input,
5626
- Wn as inputGroupButton,
5627
- Kn as inputGroupInput,
5628
- Kl as inputGroupTextarea,
5685
+ Ma as input,
5686
+ Wa as inputGroupButton,
5687
+ Ka as inputGroupInput,
5688
+ jl as inputGroupTextarea,
5629
5689
  Ae as isItemDisabled,
5630
5690
  It as isItemVisible,
5631
- _n as isScopeChecked,
5691
+ _a as isScopeChecked,
5632
5692
  bo as isSoftDisabled,
5633
- Ra as keyToMove,
5634
- Ml as label,
5635
- An as logoSource,
5693
+ Mn as keyToMove,
5694
+ Kl as label,
5695
+ Aa as logoSource,
5636
5696
  xe as moveIndex,
5637
- Wl as nativeSelect,
5638
- Gn as normalizeScopes,
5639
- jl as openPopups,
5640
- Zn as otpGroups,
5697
+ Xl as nativeSelect,
5698
+ Ga as normalizeScopes,
5699
+ Jl as openPopups,
5700
+ Za as otpGroups,
5641
5701
  E as ownQuery,
5642
- Xl as ownQueryAll,
5643
- Ln as primTag,
5702
+ Ql as ownQueryAll,
5703
+ ec as previewClient,
5704
+ La as primTag,
5644
5705
  hl as providerColumns,
5645
5706
  dl as providerEvent,
5646
5707
  Jo as providerIcon,
@@ -5649,12 +5710,12 @@ export {
5649
5710
  wl as scopeListValue,
5650
5711
  m as sel,
5651
5712
  Ns as spaceOn,
5652
- On as tag,
5713
+ Oa as tag,
5653
5714
  me as tags,
5654
5715
  yo as textarea,
5655
5716
  Uo as toPhysical,
5656
- Ul as toggleIdRef,
5717
+ Ml as toggleIdRef,
5657
5718
  Ss as uid,
5658
- Jn as watermarkContent
5719
+ Ja as watermarkContent
5659
5720
  };
5660
5721
  //# sourceMappingURL=index.mjs.map