@getauthui/core 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- const kt = globalThis, pi = kt.ShadowRoot && (kt.ShadyCSS === void 0 || kt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, hi = /* @__PURE__ */ Symbol(), Ai = /* @__PURE__ */ new WeakMap();
2
- let Yi = class {
1
+ const kt = globalThis, hi = kt.ShadowRoot && (kt.ShadyCSS === void 0 || kt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = /* @__PURE__ */ Symbol(), Si = /* @__PURE__ */ new WeakMap();
2
+ let Qi = class {
3
3
  constructor(e, n, i) {
4
- if (this._$cssResult$ = !0, i !== hi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
4
+ if (this._$cssResult$ = !0, i !== fi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
5
5
  this.cssText = e, this.t = n;
6
6
  }
7
7
  get styleSheet() {
8
8
  let e = this.o;
9
9
  const n = this.t;
10
- if (pi && e === void 0) {
10
+ if (hi && e === void 0) {
11
11
  const i = n !== void 0 && n.length === 1;
12
- i && (e = Ai.get(n)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && Ai.set(n, e));
12
+ i && (e = Si.get(n)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && Si.set(n, e));
13
13
  }
14
14
  return e;
15
15
  }
@@ -17,28 +17,28 @@ let Yi = class {
17
17
  return this.cssText;
18
18
  }
19
19
  };
20
- const an = (t) => new Yi(typeof t == "string" ? t : t + "", void 0, hi), We = (t, ...e) => {
20
+ const cn = (t) => new Qi(typeof t == "string" ? t : t + "", void 0, fi), We = (t, ...e) => {
21
21
  const n = t.length === 1 ? t[0] : e.reduce((i, o, a) => i + ((s) => {
22
22
  if (s._$cssResult$ === !0) return s.cssText;
23
23
  if (typeof s == "number") return s;
24
24
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
25
25
  })(o) + t[a + 1], t[0]);
26
- return new Yi(n, t, hi);
27
- }, sn = (t, e) => {
28
- if (pi) t.adoptedStyleSheets = e.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
26
+ return new Qi(n, t, fi);
27
+ }, dn = (t, e) => {
28
+ if (hi) t.adoptedStyleSheets = e.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
29
29
  else for (const n of e) {
30
30
  const i = document.createElement("style"), o = kt.litNonce;
31
31
  o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, t.appendChild(i);
32
32
  }
33
- }, ki = pi ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
33
+ }, $i = hi ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
34
34
  let n = "";
35
35
  for (const i of e.cssRules) n += i.cssText;
36
- return an(n);
36
+ return cn(n);
37
37
  })(t) : t;
38
- const { is: rn, defineProperty: cn, getOwnPropertyDescriptor: dn, getOwnPropertyNames: ln, getOwnPropertySymbols: un, getPrototypeOf: pn } = Object, Ut = globalThis, Si = Ut.trustedTypes, hn = Si ? Si.emptyScript : "", fn = Ut.reactiveElementPolyfillSupport, ut = (t, e) => t, $t = { toAttribute(t, e) {
38
+ const { is: ln, defineProperty: un, getOwnPropertyDescriptor: pn, getOwnPropertyNames: hn, getOwnPropertySymbols: fn, getPrototypeOf: gn } = Object, Mt = globalThis, ji = Mt.trustedTypes, yn = ji ? ji.emptyScript : "", mn = Mt.reactiveElementPolyfillSupport, ut = (t, e) => t, jt = { toAttribute(t, e) {
39
39
  switch (e) {
40
40
  case Boolean:
41
- t = t ? hn : null;
41
+ t = t ? yn : null;
42
42
  break;
43
43
  case Object:
44
44
  case Array:
@@ -63,23 +63,23 @@ const { is: rn, defineProperty: cn, getOwnPropertyDescriptor: dn, getOwnProperty
63
63
  }
64
64
  }
65
65
  return n;
66
- } }, fi = (t, e) => !rn(t, e), ji = { attribute: !0, type: String, converter: $t, reflect: !1, useDefault: !1, hasChanged: fi };
67
- Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Ut.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
68
- let Fe = class extends HTMLElement {
66
+ } }, gi = (t, e) => !ln(t, e), Pi = { attribute: !0, type: String, converter: jt, reflect: !1, useDefault: !1, hasChanged: gi };
67
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Mt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
68
+ let et = class extends HTMLElement {
69
69
  static addInitializer(e) {
70
70
  this._$Ei(), (this.l ??= []).push(e);
71
71
  }
72
72
  static get observedAttributes() {
73
73
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
74
74
  }
75
- static createProperty(e, n = ji) {
75
+ static createProperty(e, n = Pi) {
76
76
  if (n.state && (n.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((n = Object.create(n)).wrapped = !0), this.elementProperties.set(e, n), !n.noAccessor) {
77
77
  const i = /* @__PURE__ */ Symbol(), o = this.getPropertyDescriptor(e, i, n);
78
- o !== void 0 && cn(this.prototype, e, o);
78
+ o !== void 0 && un(this.prototype, e, o);
79
79
  }
80
80
  }
81
81
  static getPropertyDescriptor(e, n, i) {
82
- const { get: o, set: a } = dn(this.prototype, e) ?? { get() {
82
+ const { get: o, set: a } = pn(this.prototype, e) ?? { get() {
83
83
  return this[n];
84
84
  }, set(s) {
85
85
  this[n] = s;
@@ -90,17 +90,17 @@ let Fe = class extends HTMLElement {
90
90
  }, configurable: !0, enumerable: !0 };
91
91
  }
92
92
  static getPropertyOptions(e) {
93
- return this.elementProperties.get(e) ?? ji;
93
+ return this.elementProperties.get(e) ?? Pi;
94
94
  }
95
95
  static _$Ei() {
96
96
  if (this.hasOwnProperty(ut("elementProperties"))) return;
97
- const e = pn(this);
97
+ const e = gn(this);
98
98
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
99
99
  }
100
100
  static finalize() {
101
101
  if (this.hasOwnProperty(ut("finalized"))) return;
102
102
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ut("properties"))) {
103
- const n = this.properties, i = [...ln(n), ...un(n)];
103
+ const n = this.properties, i = [...hn(n), ...fn(n)];
104
104
  for (const o of i) this.createProperty(o, n[o]);
105
105
  }
106
106
  const e = this[Symbol.metadata];
@@ -119,8 +119,8 @@ let Fe = class extends HTMLElement {
119
119
  const n = [];
120
120
  if (Array.isArray(e)) {
121
121
  const i = new Set(e.flat(1 / 0).reverse());
122
- for (const o of i) n.unshift(ki(o));
123
- } else e !== void 0 && n.push(ki(e));
122
+ for (const o of i) n.unshift($i(o));
123
+ } else e !== void 0 && n.push($i(e));
124
124
  return n;
125
125
  }
126
126
  static _$Eu(e, n) {
@@ -146,7 +146,7 @@ let Fe = class extends HTMLElement {
146
146
  }
147
147
  createRenderRoot() {
148
148
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
149
- return sn(e, this.constructor.elementStyles), e;
149
+ return dn(e, this.constructor.elementStyles), e;
150
150
  }
151
151
  connectedCallback() {
152
152
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
@@ -162,14 +162,14 @@ let Fe = class extends HTMLElement {
162
162
  _$ET(e, n) {
163
163
  const i = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, i);
164
164
  if (o !== void 0 && i.reflect === !0) {
165
- const a = (i.converter?.toAttribute !== void 0 ? i.converter : $t).toAttribute(n, i.type);
165
+ const a = (i.converter?.toAttribute !== void 0 ? i.converter : jt).toAttribute(n, i.type);
166
166
  this._$Em = e, a == null ? this.removeAttribute(o) : this.setAttribute(o, a), this._$Em = null;
167
167
  }
168
168
  }
169
169
  _$AK(e, n) {
170
170
  const i = this.constructor, o = i._$Eh.get(e);
171
171
  if (o !== void 0 && this._$Em !== o) {
172
- const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter : $t;
172
+ const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter : jt;
173
173
  this._$Em = o;
174
174
  const r = s.fromAttribute(n, a.type);
175
175
  this[o] = r ?? this._$Ej?.get(o) ?? r, this._$Em = null;
@@ -178,7 +178,7 @@ let Fe = class extends HTMLElement {
178
178
  requestUpdate(e, n, i, o = !1, a) {
179
179
  if (e !== void 0) {
180
180
  const s = this.constructor;
181
- if (o === !1 && (a = this[e]), i ??= s.getPropertyOptions(e), !((i.hasChanged ?? fi)(a, n) || i.useDefault && i.reflect && a === this._$Ej?.get(e) && !this.hasAttribute(s._$Eu(e, i)))) return;
181
+ if (o === !1 && (a = this[e]), i ??= s.getPropertyOptions(e), !((i.hasChanged ?? gi)(a, n) || i.useDefault && i.reflect && a === this._$Ej?.get(e) && !this.hasAttribute(s._$Eu(e, i)))) return;
182
182
  this.C(e, n, i);
183
183
  }
184
184
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -246,70 +246,70 @@ let Fe = class extends HTMLElement {
246
246
  firstUpdated(e) {
247
247
  }
248
248
  };
249
- Fe.elementStyles = [], Fe.shadowRootOptions = { mode: "open" }, Fe[ut("elementProperties")] = /* @__PURE__ */ new Map(), Fe[ut("finalized")] = /* @__PURE__ */ new Map(), fn?.({ ReactiveElement: Fe }), (Ut.reactiveElementVersions ??= []).push("2.1.2");
250
- const gi = globalThis, $i = (t) => t, Pt = gi.trustedTypes, Pi = Pt ? Pt.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Ji = "$lit$", Be = `lit$${Math.random().toFixed(9).slice(2)}$`, Zi = "?" + Be, gn = `<${Zi}>`, Ze = document, ht = () => Ze.createComment(""), ft = (t) => t === null || typeof t != "object" && typeof t != "function", yi = Array.isArray, yn = (t) => yi(t) || typeof t?.[Symbol.iterator] == "function", Xt = `[
251
- \f\r]`, ct = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ci = /-->/g, xi = />/g, Ke = RegExp(`>|${Xt}(?:([^\\s"'>=/]+)(${Xt}*=${Xt}*(?:[^
252
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ui = /'/g, Mi = /"/g, Qi = /^(?:script|style|textarea|title)$/i, Ti = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), b = Ti(1), W = Ti(2), tt = /* @__PURE__ */ Symbol.for("lit-noChange"), M = /* @__PURE__ */ Symbol.for("lit-nothing"), Ri = /* @__PURE__ */ new WeakMap(), Ye = Ze.createTreeWalker(Ze, 129);
253
- function zi(t, e) {
254
- if (!yi(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
255
- return Pi !== void 0 ? Pi.createHTML(e) : e;
249
+ et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[ut("elementProperties")] = /* @__PURE__ */ new Map(), et[ut("finalized")] = /* @__PURE__ */ new Map(), mn?.({ ReactiveElement: et }), (Mt.reactiveElementVersions ??= []).push("2.1.2");
250
+ const yi = globalThis, Ci = (t) => t, Pt = yi.trustedTypes, xi = Pt ? Pt.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Ti = "$lit$", Xe = `lit$${Math.random().toFixed(9).slice(2)}$`, zi = "?" + Xe, wn = `<${zi}>`, Te = document, ht = () => Te.createComment(""), ft = (t) => t === null || typeof t != "object" && typeof t != "function", mi = Array.isArray, bn = (t) => mi(t) || typeof t?.[Symbol.iterator] == "function", Vt = `[
251
+ \f\r]`, ct = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ui = /-->/g, Mi = />/g, Je = RegExp(`>|${Vt}(?:([^\\s"'>=/]+)(${Vt}*=${Vt}*(?:[^
252
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ri = /'/g, Ei = /"/g, Oi = /^(?:script|style|textarea|title)$/i, Fi = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), b = Fi(1), G = Fi(2), it = /* @__PURE__ */ Symbol.for("lit-noChange"), M = /* @__PURE__ */ Symbol.for("lit-nothing"), qi = /* @__PURE__ */ new WeakMap(), Ze = Te.createTreeWalker(Te, 129);
253
+ function en(t, e) {
254
+ if (!mi(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
255
+ return xi !== void 0 ? xi.createHTML(e) : e;
256
256
  }
257
- const mn = (t, e) => {
257
+ const vn = (t, e) => {
258
258
  const n = t.length - 1, i = [];
259
259
  let o, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = ct;
260
260
  for (let r = 0; r < n; r++) {
261
261
  const d = t[r];
262
262
  let c, p, u = -1, m = 0;
263
- for (; m < d.length && (s.lastIndex = m, p = s.exec(d), p !== null); ) m = s.lastIndex, s === ct ? p[1] === "!--" ? s = Ci : p[1] !== void 0 ? s = xi : p[2] !== void 0 ? (Qi.test(p[2]) && (o = RegExp("</" + p[2], "g")), s = Ke) : p[3] !== void 0 && (s = Ke) : s === Ke ? p[0] === ">" ? (s = o ?? ct, u = -1) : p[1] === void 0 ? u = -2 : (u = s.lastIndex - p[2].length, c = p[1], s = p[3] === void 0 ? Ke : p[3] === '"' ? Mi : Ui) : s === Mi || s === Ui ? s = Ke : s === Ci || s === xi ? s = ct : (s = Ke, o = void 0);
264
- const j = s === Ke && t[r + 1].startsWith("/>") ? " " : "";
265
- a += s === ct ? d + gn : u >= 0 ? (i.push(c), d.slice(0, u) + Ji + d.slice(u) + Be + j) : d + Be + (u === -2 ? r : j);
263
+ for (; m < d.length && (s.lastIndex = m, p = s.exec(d), p !== null); ) m = s.lastIndex, s === ct ? p[1] === "!--" ? s = Ui : p[1] !== void 0 ? s = Mi : p[2] !== void 0 ? (Oi.test(p[2]) && (o = RegExp("</" + p[2], "g")), s = Je) : p[3] !== void 0 && (s = Je) : s === Je ? p[0] === ">" ? (s = o ?? ct, u = -1) : p[1] === void 0 ? u = -2 : (u = s.lastIndex - p[2].length, c = p[1], s = p[3] === void 0 ? Je : p[3] === '"' ? Ei : Ri) : s === Ei || s === Ri ? s = Je : s === Ui || s === Mi ? s = ct : (s = Je, o = void 0);
264
+ const $ = s === Je && t[r + 1].startsWith("/>") ? " " : "";
265
+ a += s === ct ? d + wn : u >= 0 ? (i.push(c), d.slice(0, u) + Ti + d.slice(u) + Xe + $) : d + Xe + (u === -2 ? r : $);
266
266
  }
267
- return [zi(t, a + (t[n] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
267
+ return [en(t, a + (t[n] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
268
268
  };
269
269
  class gt {
270
270
  constructor({ strings: e, _$litType$: n }, i) {
271
271
  let o;
272
272
  this.parts = [];
273
273
  let a = 0, s = 0;
274
- const r = e.length - 1, d = this.parts, [c, p] = mn(e, n);
275
- if (this.el = gt.createElement(c, i), Ye.currentNode = this.el.content, n === 2 || n === 3) {
274
+ const r = e.length - 1, d = this.parts, [c, p] = vn(e, n);
275
+ if (this.el = gt.createElement(c, i), Ze.currentNode = this.el.content, n === 2 || n === 3) {
276
276
  const u = this.el.content.firstChild;
277
277
  u.replaceWith(...u.childNodes);
278
278
  }
279
- for (; (o = Ye.nextNode()) !== null && d.length < r; ) {
279
+ for (; (o = Ze.nextNode()) !== null && d.length < r; ) {
280
280
  if (o.nodeType === 1) {
281
- if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(Ji)) {
282
- const m = p[s++], j = o.getAttribute(u).split(Be), q = /([.?@])?(.*)/.exec(m);
283
- d.push({ type: 1, index: a, name: q[2], strings: j, ctor: q[1] === "." ? bn : q[1] === "?" ? vn : q[1] === "@" ? In : Mt }), o.removeAttribute(u);
284
- } else u.startsWith(Be) && (d.push({ type: 6, index: a }), o.removeAttribute(u));
285
- if (Qi.test(o.tagName)) {
286
- const u = o.textContent.split(Be), m = u.length - 1;
281
+ if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(Ti)) {
282
+ const m = p[s++], $ = o.getAttribute(u).split(Xe), E = /([.?@])?(.*)/.exec(m);
283
+ d.push({ type: 1, index: a, name: E[2], strings: $, ctor: E[1] === "." ? An : E[1] === "?" ? kn : E[1] === "@" ? Sn : Rt }), o.removeAttribute(u);
284
+ } else u.startsWith(Xe) && (d.push({ type: 6, index: a }), o.removeAttribute(u));
285
+ if (Oi.test(o.tagName)) {
286
+ const u = o.textContent.split(Xe), m = u.length - 1;
287
287
  if (m > 0) {
288
288
  o.textContent = Pt ? Pt.emptyScript : "";
289
- for (let j = 0; j < m; j++) o.append(u[j], ht()), Ye.nextNode(), d.push({ type: 2, index: ++a });
289
+ for (let $ = 0; $ < m; $++) o.append(u[$], ht()), Ze.nextNode(), d.push({ type: 2, index: ++a });
290
290
  o.append(u[m], ht());
291
291
  }
292
292
  }
293
- } else if (o.nodeType === 8) if (o.data === Zi) d.push({ type: 2, index: a });
293
+ } else if (o.nodeType === 8) if (o.data === zi) d.push({ type: 2, index: a });
294
294
  else {
295
295
  let u = -1;
296
- for (; (u = o.data.indexOf(Be, u + 1)) !== -1; ) d.push({ type: 7, index: a }), u += Be.length - 1;
296
+ for (; (u = o.data.indexOf(Xe, u + 1)) !== -1; ) d.push({ type: 7, index: a }), u += Xe.length - 1;
297
297
  }
298
298
  a++;
299
299
  }
300
300
  }
301
301
  static createElement(e, n) {
302
- const i = Ze.createElement("template");
302
+ const i = Te.createElement("template");
303
303
  return i.innerHTML = e, i;
304
304
  }
305
305
  }
306
- function it(t, e, n = t, i) {
307
- if (e === tt) return e;
306
+ function nt(t, e, n = t, i) {
307
+ if (e === it) return e;
308
308
  let o = i !== void 0 ? n._$Co?.[i] : n._$Cl;
309
309
  const a = ft(e) ? void 0 : e._$litDirective$;
310
- return o?.constructor !== a && (o?._$AO?.(!1), a === void 0 ? o = void 0 : (o = new a(t), o._$AT(t, n, i)), i !== void 0 ? (n._$Co ??= [])[i] = o : n._$Cl = o), o !== void 0 && (e = it(t, o._$AS(t, e.values), o, i)), e;
310
+ return o?.constructor !== a && (o?._$AO?.(!1), a === void 0 ? o = void 0 : (o = new a(t), o._$AT(t, n, i)), i !== void 0 ? (n._$Co ??= [])[i] = o : n._$Cl = o), o !== void 0 && (e = nt(t, o._$AS(t, e.values), o, i)), e;
311
311
  }
312
- class wn {
312
+ class In {
313
313
  constructor(e, n) {
314
314
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = n;
315
315
  }
@@ -320,17 +320,17 @@ class wn {
320
320
  return this._$AM._$AU;
321
321
  }
322
322
  u(e) {
323
- const { el: { content: n }, parts: i } = this._$AD, o = (e?.creationScope ?? Ze).importNode(n, !0);
324
- Ye.currentNode = o;
325
- let a = Ye.nextNode(), s = 0, r = 0, d = i[0];
323
+ const { el: { content: n }, parts: i } = this._$AD, o = (e?.creationScope ?? Te).importNode(n, !0);
324
+ Ze.currentNode = o;
325
+ let a = Ze.nextNode(), s = 0, r = 0, d = i[0];
326
326
  for (; d !== void 0; ) {
327
327
  if (s === d.index) {
328
328
  let c;
329
- d.type === 2 ? c = new bt(a, a.nextSibling, this, e) : d.type === 1 ? c = new d.ctor(a, d.name, d.strings, this, e) : d.type === 6 && (c = new An(a, this, e)), this._$AV.push(c), d = i[++r];
329
+ d.type === 2 ? c = new bt(a, a.nextSibling, this, e) : d.type === 1 ? c = new d.ctor(a, d.name, d.strings, this, e) : d.type === 6 && (c = new $n(a, this, e)), this._$AV.push(c), d = i[++r];
330
330
  }
331
- s !== d?.index && (a = Ye.nextNode(), s++);
331
+ s !== d?.index && (a = Ze.nextNode(), s++);
332
332
  }
333
- return Ye.currentNode = Ze, o;
333
+ return Ze.currentNode = Te, o;
334
334
  }
335
335
  p(e) {
336
336
  let n = 0;
@@ -356,7 +356,7 @@ class bt {
356
356
  return this._$AB;
357
357
  }
358
358
  _$AI(e, n = this) {
359
- e = it(this, e, n), ft(e) ? e === M || e == null || e === "" ? (this._$AH !== M && this._$AR(), this._$AH = M) : e !== this._$AH && e !== tt && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : yn(e) ? this.k(e) : this._(e);
359
+ e = nt(this, e, n), ft(e) ? e === M || e == null || e === "" ? (this._$AH !== M && this._$AR(), this._$AH = M) : e !== this._$AH && e !== it && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : bn(e) ? this.k(e) : this._(e);
360
360
  }
361
361
  O(e) {
362
362
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -365,22 +365,22 @@ class bt {
365
365
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
366
366
  }
367
367
  _(e) {
368
- this._$AH !== M && ft(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Ze.createTextNode(e)), this._$AH = e;
368
+ this._$AH !== M && ft(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Te.createTextNode(e)), this._$AH = e;
369
369
  }
370
370
  $(e) {
371
- const { values: n, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = gt.createElement(zi(i.h, i.h[0]), this.options)), i);
371
+ const { values: n, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = gt.createElement(en(i.h, i.h[0]), this.options)), i);
372
372
  if (this._$AH?._$AD === o) this._$AH.p(n);
373
373
  else {
374
- const a = new wn(o, this), s = a.u(this.options);
374
+ const a = new In(o, this), s = a.u(this.options);
375
375
  a.p(n), this.T(s), this._$AH = a;
376
376
  }
377
377
  }
378
378
  _$AC(e) {
379
- let n = Ri.get(e.strings);
380
- return n === void 0 && Ri.set(e.strings, n = new gt(e)), n;
379
+ let n = qi.get(e.strings);
380
+ return n === void 0 && qi.set(e.strings, n = new gt(e)), n;
381
381
  }
382
382
  k(e) {
383
- yi(this._$AH) || (this._$AH = [], this._$AR());
383
+ mi(this._$AH) || (this._$AH = [], this._$AR());
384
384
  const n = this._$AH;
385
385
  let i, o = 0;
386
386
  for (const a of e) o === n.length ? n.push(i = new bt(this.O(ht()), this.O(ht()), this, this.options)) : i = n[o], i._$AI(a), o++;
@@ -388,15 +388,15 @@ class bt {
388
388
  }
389
389
  _$AR(e = this._$AA.nextSibling, n) {
390
390
  for (this._$AP?.(!1, !0, n); e !== this._$AB; ) {
391
- const i = $i(e).nextSibling;
392
- $i(e).remove(), e = i;
391
+ const i = Ci(e).nextSibling;
392
+ Ci(e).remove(), e = i;
393
393
  }
394
394
  }
395
395
  setConnected(e) {
396
396
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
397
397
  }
398
398
  }
399
- class Mt {
399
+ class Rt {
400
400
  get tagName() {
401
401
  return this.element.tagName;
402
402
  }
@@ -409,11 +409,11 @@ class Mt {
409
409
  _$AI(e, n = this, i, o) {
410
410
  const a = this.strings;
411
411
  let s = !1;
412
- if (a === void 0) e = it(this, e, n, 0), s = !ft(e) || e !== this._$AH && e !== tt, s && (this._$AH = e);
412
+ if (a === void 0) e = nt(this, e, n, 0), s = !ft(e) || e !== this._$AH && e !== it, s && (this._$AH = e);
413
413
  else {
414
414
  const r = e;
415
415
  let d, c;
416
- for (e = a[0], d = 0; d < a.length - 1; d++) c = it(this, r[i + d], n, d), c === tt && (c = this._$AH[d]), s ||= !ft(c) || c !== this._$AH[d], c === M ? e = M : e !== M && (e += (c ?? "") + a[d + 1]), this._$AH[d] = c;
416
+ for (e = a[0], d = 0; d < a.length - 1; d++) c = nt(this, r[i + d], n, d), c === it && (c = this._$AH[d]), s ||= !ft(c) || c !== this._$AH[d], c === M ? e = M : e !== M && (e += (c ?? "") + a[d + 1]), this._$AH[d] = c;
417
417
  }
418
418
  s && !o && this.j(e);
419
419
  }
@@ -421,7 +421,7 @@ class Mt {
421
421
  e === M ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
422
422
  }
423
423
  }
424
- class bn extends Mt {
424
+ class An extends Rt {
425
425
  constructor() {
426
426
  super(...arguments), this.type = 3;
427
427
  }
@@ -429,7 +429,7 @@ class bn extends Mt {
429
429
  this.element[this.name] = e === M ? void 0 : e;
430
430
  }
431
431
  }
432
- class vn extends Mt {
432
+ class kn extends Rt {
433
433
  constructor() {
434
434
  super(...arguments), this.type = 4;
435
435
  }
@@ -437,12 +437,12 @@ class vn extends Mt {
437
437
  this.element.toggleAttribute(this.name, !!e && e !== M);
438
438
  }
439
439
  }
440
- class In extends Mt {
440
+ class Sn extends Rt {
441
441
  constructor(e, n, i, o, a) {
442
442
  super(e, n, i, o, a), this.type = 5;
443
443
  }
444
444
  _$AI(e, n = this) {
445
- if ((e = it(this, e, n, 0) ?? M) === tt) return;
445
+ if ((e = nt(this, e, n, 0) ?? M) === it) return;
446
446
  const i = this._$AH, o = e === M && i !== M || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, a = e !== M && (i === M || o);
447
447
  o && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
448
448
  }
@@ -450,7 +450,7 @@ class In extends Mt {
450
450
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
451
451
  }
452
452
  }
453
- class An {
453
+ class $n {
454
454
  constructor(e, n, i) {
455
455
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
456
456
  }
@@ -458,12 +458,12 @@ class An {
458
458
  return this._$AM._$AU;
459
459
  }
460
460
  _$AI(e) {
461
- it(this, e);
461
+ nt(this, e);
462
462
  }
463
463
  }
464
- const kn = gi.litHtmlPolyfillSupport;
465
- kn?.(gt, bt), (gi.litHtmlVersions ??= []).push("3.3.3");
466
- const Sn = (t, e, n) => {
464
+ const jn = yi.litHtmlPolyfillSupport;
465
+ jn?.(gt, bt), (yi.litHtmlVersions ??= []).push("3.3.3");
466
+ const Pn = (t, e, n) => {
467
467
  const i = n?.renderBefore ?? e;
468
468
  let o = i._$litPart$;
469
469
  if (o === void 0) {
@@ -472,8 +472,8 @@ const Sn = (t, e, n) => {
472
472
  }
473
473
  return o._$AI(t), o;
474
474
  };
475
- const mi = globalThis;
476
- class Je extends Fe {
475
+ const wi = globalThis;
476
+ class Qe extends et {
477
477
  constructor() {
478
478
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
479
479
  }
@@ -483,7 +483,7 @@ class Je extends Fe {
483
483
  }
484
484
  update(e) {
485
485
  const n = this.render();
486
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Sn(n, this.renderRoot, this.renderOptions);
486
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Pn(n, this.renderRoot, this.renderOptions);
487
487
  }
488
488
  connectedCallback() {
489
489
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -492,19 +492,19 @@ class Je extends Fe {
492
492
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
493
493
  }
494
494
  render() {
495
- return tt;
495
+ return it;
496
496
  }
497
497
  }
498
- Je._$litElement$ = !0, Je.finalized = !0, mi.litElementHydrateSupport?.({ LitElement: Je });
499
- const jn = mi.litElementPolyfillSupport;
500
- jn?.({ LitElement: Je });
501
- (mi.litElementVersions ??= []).push("4.2.2");
502
- const Qe = (t) => (e, n) => {
498
+ Qe._$litElement$ = !0, Qe.finalized = !0, wi.litElementHydrateSupport?.({ LitElement: Qe });
499
+ const Cn = wi.litElementPolyfillSupport;
500
+ Cn?.({ LitElement: Qe });
501
+ (wi.litElementVersions ??= []).push("4.2.2");
502
+ const ze = (t) => (e, n) => {
503
503
  n !== void 0 ? n.addInitializer(() => {
504
504
  customElements.define(t, e);
505
505
  }) : customElements.define(t, e);
506
506
  };
507
- const $n = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: fi }, Pn = (t = $n, e, n) => {
507
+ const xn = { attribute: !0, type: String, converter: jt, reflect: !1, hasChanged: gi }, Un = (t = xn, e, n) => {
508
508
  const { kind: i, metadata: o } = n;
509
509
  let a = globalThis.litPropertyMetadata.get(o);
510
510
  if (a === void 0 && globalThis.litPropertyMetadata.set(o, a = /* @__PURE__ */ new Map()), i === "setter" && ((t = Object.create(t)).wrapped = !0), a.set(n.name, t), i === "accessor") {
@@ -526,33 +526,33 @@ const $n = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged
526
526
  throw Error("Unsupported decorator location: " + i);
527
527
  };
528
528
  function ee(t) {
529
- return (e, n) => typeof n == "object" ? Pn(t, e, n) : ((i, o, a) => {
529
+ return (e, n) => typeof n == "object" ? Un(t, e, n) : ((i, o, a) => {
530
530
  const s = o.hasOwnProperty(a);
531
531
  return o.constructor.createProperty(a, i), s ? Object.getOwnPropertyDescriptor(o, a) : void 0;
532
532
  })(t, e, n);
533
533
  }
534
- function G(t) {
534
+ function V(t) {
535
535
  return ee({ ...t, state: !0, attribute: !1 });
536
536
  }
537
- const Cn = (t, e, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(t, e, n), n);
538
- function Oi(t, e) {
537
+ const Mn = (t, e, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(t, e, n), n);
538
+ function bi(t, e) {
539
539
  return (n, i, o) => {
540
540
  const a = (s) => s.renderRoot?.querySelector(t) ?? null;
541
- return Cn(n, i, { get() {
541
+ return Mn(n, i, { get() {
542
542
  return a(this);
543
543
  } });
544
544
  };
545
545
  }
546
- function xn(t) {
546
+ function Rn(t) {
547
547
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
548
548
  }
549
- var dt = { exports: {} }, Vt = { exports: {} }, St = { exports: {} }, Un = St.exports, qi;
550
- function Fi() {
551
- return qi || (qi = 1, (function(t) {
549
+ var dt = { exports: {} }, Wt = { exports: {} }, St = { exports: {} }, En = St.exports, _i;
550
+ function tn() {
551
+ return _i || (_i = 1, (function(t) {
552
552
  (function(e) {
553
- var n, i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, o = Math.ceil, a = Math.floor, s = "[BigNumber Error] ", r = s + "Number primitive has more than 15 significant digits: ", d = 1e14, c = 14, p = 9007199254740991, u = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], m = 1e7, j = 1e9;
554
- function q(H) {
555
- var L, te, X, U = x.prototype = { constructor: x, toString: null, valueOf: null }, Y = new x(1), Q = 20, ie = 4, ce = -7, de = 21, Ue = -1e7, Ae = 1e7, qe = !1, st = 1, De = 0, _t = {
553
+ var n, i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, o = Math.ceil, a = Math.floor, s = "[BigNumber Error] ", r = s + "Number primitive has more than 15 significant digits: ", d = 1e14, c = 14, p = 9007199254740991, u = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], m = 1e7, $ = 1e9;
554
+ function E(H) {
555
+ var L, te, X, U = x.prototype = { constructor: x, toString: null, valueOf: null }, Y = new x(1), Q = 20, ie = 4, ce = -7, de = 21, Ue = -1e7, Ae = 1e7, _e = !1, st = 1, Be = 0, Lt = {
556
556
  prefix: "",
557
557
  groupSize: 3,
558
558
  secondaryGroupSize: 0,
@@ -562,9 +562,9 @@ function Fi() {
562
562
  fractionGroupSeparator: " ",
563
563
  // non-breaking space
564
564
  suffix: ""
565
- }, Ge = "0123456789abcdefghijklmnopqrstuvwxyz", Lt = !0;
565
+ }, Ye = "0123456789abcdefghijklmnopqrstuvwxyz", Nt = !0;
566
566
  function x(l, f) {
567
- var g, k, w, I, $, y, v, S, A = this;
567
+ var g, k, w, I, j, y, v, S, A = this;
568
568
  if (!(A instanceof x)) return new x(l, f);
569
569
  if (f == null) {
570
570
  if (l && l._isBigNumber === !0) {
@@ -573,7 +573,7 @@ function Fi() {
573
573
  }
574
574
  if ((y = typeof l == "number") && l * 0 == 0) {
575
575
  if (A.s = 1 / l < 0 ? (l = -l, -1) : 1, l === ~~l) {
576
- for (I = 0, $ = l; $ >= 10; $ /= 10, I++) ;
576
+ for (I = 0, j = l; j >= 10; j /= 10, I++) ;
577
577
  I > Ae ? A.c = A.e = null : (A.e = I, A.c = [l]);
578
578
  return;
579
579
  }
@@ -582,9 +582,9 @@ function Fi() {
582
582
  if (!i.test(S = String(l))) return X(A, S, y);
583
583
  A.s = S.charCodeAt(0) == 45 ? (S = S.slice(1), -1) : 1;
584
584
  }
585
- (I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), ($ = S.search(/e/i)) > 0 ? (I < 0 && (I = $), I += +S.slice($ + 1), S = S.substring(0, $)) : I < 0 && (I = S.length);
585
+ (I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), (j = S.search(/e/i)) > 0 ? (I < 0 && (I = j), I += +S.slice(j + 1), S = S.substring(0, j)) : I < 0 && (I = S.length);
586
586
  } else {
587
- if (E(f, 2, Ge.length, "Base"), f == 10 && Lt)
587
+ if (q(f, 2, Ye.length, "Base"), f == 10 && Nt)
588
588
  return A = new x(l), Se(A, Q + A.e + 1, ie);
589
589
  if (S = String(l), y = typeof l == "number") {
590
590
  if (l * 0 != 0) return X(A, S, y, f);
@@ -592,51 +592,51 @@ function Fi() {
592
592
  throw Error(r + l);
593
593
  } else
594
594
  A.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
595
- for (g = Ge.slice(0, f), I = $ = 0, v = S.length; $ < v; $++)
596
- if (g.indexOf(k = S.charAt($)) < 0) {
595
+ for (g = Ye.slice(0, f), I = j = 0, v = S.length; j < v; j++)
596
+ if (g.indexOf(k = S.charAt(j)) < 0) {
597
597
  if (k == ".") {
598
- if ($ > I) {
598
+ if (j > I) {
599
599
  I = v;
600
600
  continue;
601
601
  }
602
602
  } else if (!w && (S == S.toUpperCase() && (S = S.toLowerCase()) || S == S.toLowerCase() && (S = S.toUpperCase()))) {
603
- w = !0, $ = -1, I = 0;
603
+ w = !0, j = -1, I = 0;
604
604
  continue;
605
605
  }
606
606
  return X(A, String(l), y, f);
607
607
  }
608
608
  y = !1, S = te(S, f, 10, A.s), (I = S.indexOf(".")) > -1 ? S = S.replace(".", "") : I = S.length;
609
609
  }
610
- for ($ = 0; S.charCodeAt($) === 48; $++) ;
610
+ for (j = 0; S.charCodeAt(j) === 48; j++) ;
611
611
  for (v = S.length; S.charCodeAt(--v) === 48; ) ;
612
- if (S = S.slice($, ++v)) {
613
- if (v -= $, y && x.DEBUG && v > 15 && (l > p || l !== a(l)))
612
+ if (S = S.slice(j, ++v)) {
613
+ if (v -= j, y && x.DEBUG && v > 15 && (l > p || l !== a(l)))
614
614
  throw Error(r + A.s * l);
615
- if ((I = I - $ - 1) > Ae)
615
+ if ((I = I - j - 1) > Ae)
616
616
  A.c = A.e = null;
617
617
  else if (I < Ue)
618
618
  A.c = [A.e = 0];
619
619
  else {
620
- if (A.e = I, A.c = [], $ = (I + 1) % c, I < 0 && ($ += c), $ < v) {
621
- for ($ && A.c.push(+S.slice(0, $)), v -= c; $ < v; )
622
- A.c.push(+S.slice($, $ += c));
623
- $ = c - (S = S.slice($)).length;
620
+ if (A.e = I, A.c = [], j = (I + 1) % c, I < 0 && (j += c), j < v) {
621
+ for (j && A.c.push(+S.slice(0, j)), v -= c; j < v; )
622
+ A.c.push(+S.slice(j, j += c));
623
+ j = c - (S = S.slice(j)).length;
624
624
  } else
625
- $ -= v;
626
- for (; $--; S += "0") ;
625
+ j -= v;
626
+ for (; j--; S += "0") ;
627
627
  A.c.push(+S);
628
628
  }
629
629
  } else
630
630
  A.c = [A.e = 0];
631
631
  }
632
- x.clone = q, x.ROUND_UP = 0, x.ROUND_DOWN = 1, x.ROUND_CEIL = 2, x.ROUND_FLOOR = 3, x.ROUND_HALF_UP = 4, x.ROUND_HALF_DOWN = 5, x.ROUND_HALF_EVEN = 6, x.ROUND_HALF_CEIL = 7, x.ROUND_HALF_FLOOR = 8, x.EUCLID = 9, x.config = x.set = function(l) {
632
+ x.clone = E, x.ROUND_UP = 0, x.ROUND_DOWN = 1, x.ROUND_CEIL = 2, x.ROUND_FLOOR = 3, x.ROUND_HALF_UP = 4, x.ROUND_HALF_DOWN = 5, x.ROUND_HALF_EVEN = 6, x.ROUND_HALF_CEIL = 7, x.ROUND_HALF_FLOOR = 8, x.EUCLID = 9, x.config = x.set = function(l) {
633
633
  var f, g;
634
634
  if (l != null)
635
635
  if (typeof l == "object") {
636
- if (l.hasOwnProperty(f = "DECIMAL_PLACES") && (g = l[f], E(g, 0, j, f), Q = g), l.hasOwnProperty(f = "ROUNDING_MODE") && (g = l[f], E(g, 0, 8, f), ie = g), l.hasOwnProperty(f = "EXPONENTIAL_AT") && (g = l[f], g && g.pop ? (E(g[0], -j, 0, f), E(g[1], 0, j, f), ce = g[0], de = g[1]) : (E(g, -j, j, f), ce = -(de = g < 0 ? -g : g))), l.hasOwnProperty(f = "RANGE"))
636
+ if (l.hasOwnProperty(f = "DECIMAL_PLACES") && (g = l[f], q(g, 0, $, f), Q = g), l.hasOwnProperty(f = "ROUNDING_MODE") && (g = l[f], q(g, 0, 8, f), ie = g), l.hasOwnProperty(f = "EXPONENTIAL_AT") && (g = l[f], g && g.pop ? (q(g[0], -$, 0, f), q(g[1], 0, $, f), ce = g[0], de = g[1]) : (q(g, -$, $, f), ce = -(de = g < 0 ? -g : g))), l.hasOwnProperty(f = "RANGE"))
637
637
  if (g = l[f], g && g.pop)
638
- E(g[0], -j, -1, f), E(g[1], 1, j, f), Ue = g[0], Ae = g[1];
639
- else if (E(g, -j, j, f), g)
638
+ q(g[0], -$, -1, f), q(g[1], 1, $, f), Ue = g[0], Ae = g[1];
639
+ else if (q(g, -$, $, f), g)
640
640
  Ue = -(Ae = g < 0 ? -g : g);
641
641
  else
642
642
  throw Error(s + f + " cannot be zero: " + g);
@@ -644,19 +644,19 @@ function Fi() {
644
644
  if (g = l[f], g === !!g)
645
645
  if (g)
646
646
  if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
647
- qe = g;
647
+ _e = g;
648
648
  else
649
- throw qe = !g, Error(s + "crypto unavailable");
649
+ throw _e = !g, Error(s + "crypto unavailable");
650
650
  else
651
- qe = g;
651
+ _e = g;
652
652
  else
653
653
  throw Error(s + f + " not true or false: " + g);
654
- if (l.hasOwnProperty(f = "MODULO_MODE") && (g = l[f], E(g, 0, 9, f), st = g), l.hasOwnProperty(f = "POW_PRECISION") && (g = l[f], E(g, 0, j, f), De = g), l.hasOwnProperty(f = "FORMAT"))
655
- if (g = l[f], typeof g == "object") _t = g;
654
+ if (l.hasOwnProperty(f = "MODULO_MODE") && (g = l[f], q(g, 0, 9, f), st = g), l.hasOwnProperty(f = "POW_PRECISION") && (g = l[f], q(g, 0, $, f), Be = g), l.hasOwnProperty(f = "FORMAT"))
655
+ if (g = l[f], typeof g == "object") Lt = g;
656
656
  else throw Error(s + f + " not an object: " + g);
657
657
  if (l.hasOwnProperty(f = "ALPHABET"))
658
658
  if (g = l[f], typeof g == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(g))
659
- Lt = g.slice(0, 10) == "0123456789", Ge = g;
659
+ Nt = g.slice(0, 10) == "0123456789", Ye = g;
660
660
  else
661
661
  throw Error(s + f + " invalid: " + g);
662
662
  } else
@@ -666,18 +666,18 @@ function Fi() {
666
666
  ROUNDING_MODE: ie,
667
667
  EXPONENTIAL_AT: [ce, de],
668
668
  RANGE: [Ue, Ae],
669
- CRYPTO: qe,
669
+ CRYPTO: _e,
670
670
  MODULO_MODE: st,
671
- POW_PRECISION: De,
672
- FORMAT: _t,
673
- ALPHABET: Ge
671
+ POW_PRECISION: Be,
672
+ FORMAT: Lt,
673
+ ALPHABET: Ye
674
674
  };
675
675
  }, x.isBigNumber = function(l) {
676
676
  if (!l || l._isBigNumber !== !0) return !1;
677
677
  if (!x.DEBUG) return !0;
678
678
  var f, g, k = l.c, w = l.e, I = l.s;
679
679
  e: if ({}.toString.call(k) == "[object Array]") {
680
- if ((I === 1 || I === -1) && w >= -j && w <= j && w === a(w)) {
680
+ if ((I === 1 || I === -1) && w >= -$ && w <= $ && w === a(w)) {
681
681
  if (k[0] === 0) {
682
682
  if (w === 0 && k.length === 1) return !0;
683
683
  break e;
@@ -692,9 +692,9 @@ function Fi() {
692
692
  return !0;
693
693
  throw Error(s + "Invalid BigNumber: " + l);
694
694
  }, x.maximum = x.max = function() {
695
- return Ii(arguments, -1);
695
+ return ki(arguments, -1);
696
696
  }, x.minimum = x.min = function() {
697
- return Ii(arguments, 1);
697
+ return ki(arguments, 1);
698
698
  }, x.random = (function() {
699
699
  var l = 9007199254740992, f = Math.random() * l & 2097151 ? function() {
700
700
  return a(Math.random() * l);
@@ -702,22 +702,22 @@ function Fi() {
702
702
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
703
703
  };
704
704
  return function(g) {
705
- var k, w, I, $, y, v = 0, S = [], A = new x(Y);
706
- if (g == null ? g = Q : E(g, 0, j), $ = o(g / c), qe)
705
+ var k, w, I, j, y, v = 0, S = [], A = new x(Y);
706
+ if (g == null ? g = Q : q(g, 0, $), j = o(g / c), _e)
707
707
  if (crypto.getRandomValues) {
708
- for (k = crypto.getRandomValues(new Uint32Array($ *= 2)); v < $; )
708
+ for (k = crypto.getRandomValues(new Uint32Array(j *= 2)); v < j; )
709
709
  y = k[v] * 131072 + (k[v + 1] >>> 11), y >= 9e15 ? (w = crypto.getRandomValues(new Uint32Array(2)), k[v] = w[0], k[v + 1] = w[1]) : (S.push(y % 1e14), v += 2);
710
- v = $ / 2;
710
+ v = j / 2;
711
711
  } else if (crypto.randomBytes) {
712
- for (k = crypto.randomBytes($ *= 7); v < $; )
712
+ for (k = crypto.randomBytes(j *= 7); v < j; )
713
713
  y = (k[v] & 31) * 281474976710656 + k[v + 1] * 1099511627776 + k[v + 2] * 4294967296 + k[v + 3] * 16777216 + (k[v + 4] << 16) + (k[v + 5] << 8) + k[v + 6], y >= 9e15 ? crypto.randomBytes(7).copy(k, v) : (S.push(y % 1e14), v += 7);
714
- v = $ / 7;
714
+ v = j / 7;
715
715
  } else
716
- throw qe = !1, Error(s + "crypto unavailable");
717
- if (!qe)
718
- for (; v < $; )
716
+ throw _e = !1, Error(s + "crypto unavailable");
717
+ if (!_e)
718
+ for (; v < j; )
719
719
  y = f(), y < 9e15 && (S[v++] = y % 1e14);
720
- for ($ = S[--v], g %= c, $ && g && (y = u[c - g], S[v] = a($ / y) * y); S[v] === 0; S.pop(), v--) ;
720
+ for (j = S[--v], g %= c, j && g && (y = u[c - g], S[v] = a(j / y) * y); S[v] === 0; S.pop(), v--) ;
721
721
  if (v < 0)
722
722
  S = [I = 0];
723
723
  else {
@@ -733,21 +733,21 @@ function Fi() {
733
733
  }, te = /* @__PURE__ */ (function() {
734
734
  var l = "0123456789";
735
735
  function f(g, k, w, I) {
736
- for (var $, y = [0], v, S = 0, A = g.length; S < A; ) {
736
+ for (var j, y = [0], v, S = 0, A = g.length; S < A; ) {
737
737
  for (v = y.length; v--; y[v] *= k) ;
738
- for (y[0] += I.indexOf(g.charAt(S++)), $ = 0; $ < y.length; $++)
739
- y[$] > w - 1 && (y[$ + 1] == null && (y[$ + 1] = 0), y[$ + 1] += y[$] / w | 0, y[$] %= w);
738
+ for (y[0] += I.indexOf(g.charAt(S++)), j = 0; j < y.length; j++)
739
+ y[j] > w - 1 && (y[j + 1] == null && (y[j + 1] = 0), y[j + 1] += y[j] / w | 0, y[j] %= w);
740
740
  }
741
741
  return y.reverse();
742
742
  }
743
- return function(g, k, w, I, $) {
743
+ return function(g, k, w, I, j) {
744
744
  var y, v, S, A, C, D, B, ne, le = g.indexOf("."), he = Q, F = ie;
745
- for (le >= 0 && (A = De, De = 0, g = g.replace(".", ""), ne = new x(k), D = ne.pow(g.length - le), De = A, ne.c = f(
746
- ae(V(D.c), D.e, "0"),
745
+ for (le >= 0 && (A = Be, Be = 0, g = g.replace(".", ""), ne = new x(k), D = ne.pow(g.length - le), Be = A, ne.c = f(
746
+ ae(W(D.c), D.e, "0"),
747
747
  10,
748
748
  w,
749
749
  l
750
- ), ne.e = ne.c.length), B = f(g, k, w, $ ? (y = Ge, l) : (y = l, Ge)), S = A = B.length; B[--A] == 0; B.pop()) ;
750
+ ), ne.e = ne.c.length), B = f(g, k, w, j ? (y = Ye, l) : (y = l, Ye)), S = A = B.length; B[--A] == 0; B.pop()) ;
751
751
  if (!B[0]) return y.charAt(0);
752
752
  if (le < 0 ? --S : (D.c = B, D.e = S, D.s = I, D = L(D, ne, he, F, w), B = D.c, C = D.r, S = D.e), v = S + he + 1, le = B[v], A = w / 2, C = C || v < 0 || B[v + 1] != null, C = F < 4 ? (le != null || C) && (F == 0 || F == (D.s < 0 ? 3 : 2)) : le > A || le == A && (F == 4 || C || F == 6 && B[v - 1] & 1 || F == (D.s < 0 ? 8 : 7)), v < 1 || !B[0])
753
753
  g = C ? ae(y.charAt(1), -he, y.charAt(0)) : y.charAt(0);
@@ -763,15 +763,15 @@ function Fi() {
763
763
  };
764
764
  })(), L = /* @__PURE__ */ (function() {
765
765
  function l(k, w, I) {
766
- var $, y, v, S, A = 0, C = k.length, D = w % m, B = w / m | 0;
766
+ var j, y, v, S, A = 0, C = k.length, D = w % m, B = w / m | 0;
767
767
  for (k = k.slice(); C--; )
768
- v = k[C] % m, S = k[C] / m | 0, $ = B * v + S * D, y = D * v + $ % m * m + A, A = (y / I | 0) + ($ / m | 0) + B * S, k[C] = y % I;
768
+ v = k[C] % m, S = k[C] / m | 0, j = B * v + S * D, y = D * v + j % m * m + A, A = (y / I | 0) + (j / m | 0) + B * S, k[C] = y % I;
769
769
  return A && (k = [A].concat(k)), k;
770
770
  }
771
- function f(k, w, I, $) {
771
+ function f(k, w, I, j) {
772
772
  var y, v;
773
- if (I != $)
774
- v = I > $ ? 1 : -1;
773
+ if (I != j)
774
+ v = I > j ? 1 : -1;
775
775
  else
776
776
  for (y = v = 0; y < I; y++)
777
777
  if (k[y] != w[y]) {
@@ -780,30 +780,30 @@ function Fi() {
780
780
  }
781
781
  return v;
782
782
  }
783
- function g(k, w, I, $) {
783
+ function g(k, w, I, j) {
784
784
  for (var y = 0; I--; )
785
- k[I] -= y, y = k[I] < w[I] ? 1 : 0, k[I] = y * $ + k[I] - w[I];
785
+ k[I] -= y, y = k[I] < w[I] ? 1 : 0, k[I] = y * j + k[I] - w[I];
786
786
  for (; !k[0] && k.length > 1; k.splice(0, 1)) ;
787
787
  }
788
- return function(k, w, I, $, y) {
789
- var v, S, A, C, D, B, ne, le, he, F, re, me, vt, Dt, Bt, Me, rt, je = k.s == w.s ? 1 : -1, be = k.c, ue = w.c;
788
+ return function(k, w, I, j, y) {
789
+ var v, S, A, C, D, B, ne, le, he, F, re, me, vt, Bt, Xt, Me, rt, $e = k.s == w.s ? 1 : -1, be = k.c, ue = w.c;
790
790
  if (!be || !be[0] || !ue || !ue[0])
791
791
  return new x(
792
792
  // Return NaN if either NaN, or both Infinity or 0.
793
793
  !k.s || !w.s || (be ? ue && be[0] == ue[0] : !ue) ? NaN : (
794
794
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
795
- be && be[0] == 0 || !ue ? je * 0 : je / 0
795
+ be && be[0] == 0 || !ue ? $e * 0 : $e / 0
796
796
  )
797
797
  );
798
- for (le = new x(je), he = le.c = [], S = k.e - w.e, je = I + S + 1, y || (y = d, S = Z(k.e / c) - Z(w.e / c), je = je / c | 0), A = 0; ue[A] == (be[A] || 0); A++) ;
799
- if (ue[A] > (be[A] || 0) && S--, je < 0)
798
+ for (le = new x($e), he = le.c = [], S = k.e - w.e, $e = I + S + 1, y || (y = d, S = Z(k.e / c) - Z(w.e / c), $e = $e / c | 0), A = 0; ue[A] == (be[A] || 0); A++) ;
799
+ if (ue[A] > (be[A] || 0) && S--, $e < 0)
800
800
  he.push(1), C = !0;
801
801
  else {
802
- for (Dt = be.length, Me = ue.length, A = 0, je += 2, D = a(y / (ue[0] + 1)), D > 1 && (ue = l(ue, D, y), be = l(be, D, y), Me = ue.length, Dt = be.length), vt = Me, F = be.slice(0, Me), re = F.length; re < Me; F[re++] = 0) ;
803
- rt = ue.slice(), rt = [0].concat(rt), Bt = ue[0], ue[1] >= y / 2 && Bt++;
802
+ for (Bt = be.length, Me = ue.length, A = 0, $e += 2, D = a(y / (ue[0] + 1)), D > 1 && (ue = l(ue, D, y), be = l(be, D, y), Me = ue.length, Bt = be.length), vt = Me, F = be.slice(0, Me), re = F.length; re < Me; F[re++] = 0) ;
803
+ rt = ue.slice(), rt = [0].concat(rt), Xt = ue[0], ue[1] >= y / 2 && Xt++;
804
804
  do {
805
805
  if (D = 0, v = f(ue, F, Me, re), v < 0) {
806
- if (me = F[0], Me != re && (me = me * y + (F[1] || 0)), D = a(me / Bt), D > 1)
806
+ if (me = F[0], Me != re && (me = me * y + (F[1] || 0)), D = a(me / Xt), D > 1)
807
807
  for (D >= y && (D = y - 1), B = l(ue, D, y), ne = B.length, re = F.length; f(B, F, ne, re) == 1; )
808
808
  D--, g(B, Me < ne ? rt : ue, ne, y), ne = B.length, v = 1;
809
809
  else
@@ -813,87 +813,87 @@ function Fi() {
813
813
  D++, g(F, Me < re ? rt : ue, re, y), re = F.length;
814
814
  } else v === 0 && (D++, F = [0]);
815
815
  he[A++] = D, F[0] ? F[re++] = be[vt] || 0 : (F = [be[vt]], re = 1);
816
- } while ((vt++ < Dt || F[0] != null) && je--);
816
+ } while ((vt++ < Bt || F[0] != null) && $e--);
817
817
  C = F[0] != null, he[0] || he.splice(0, 1);
818
818
  }
819
819
  if (y == d) {
820
- for (A = 1, je = he[0]; je >= 10; je /= 10, A++) ;
821
- Se(le, I + (le.e = A + S * c - 1) + 1, $, C);
820
+ for (A = 1, $e = he[0]; $e >= 10; $e /= 10, A++) ;
821
+ Se(le, I + (le.e = A + S * c - 1) + 1, j, C);
822
822
  } else
823
823
  le.e = S, le.r = +C;
824
824
  return le;
825
825
  };
826
826
  })();
827
- function Nt(l, f, g, k) {
828
- var w, I, $, y, v;
829
- if (g == null ? g = ie : E(g, 0, 8), !l.c) return l.toString();
830
- if (w = l.c[0], $ = l.e, f == null)
831
- v = V(l.c), v = k == 1 || k == 2 && ($ <= ce || $ >= de) ? J(v, $) : ae(v, $, "0");
832
- else if (l = Se(new x(l), f, g), I = l.e, v = V(l.c), y = v.length, k == 1 || k == 2 && (f <= I || I <= ce)) {
827
+ function Ht(l, f, g, k) {
828
+ var w, I, j, y, v;
829
+ if (g == null ? g = ie : q(g, 0, 8), !l.c) return l.toString();
830
+ if (w = l.c[0], j = l.e, f == null)
831
+ v = W(l.c), v = k == 1 || k == 2 && (j <= ce || j >= de) ? J(v, j) : ae(v, j, "0");
832
+ else if (l = Se(new x(l), f, g), I = l.e, v = W(l.c), y = v.length, k == 1 || k == 2 && (f <= I || I <= ce)) {
833
833
  for (; y < f; v += "0", y++) ;
834
834
  v = J(v, I);
835
- } else if (f -= $ + (k === 2 && I > $), v = ae(v, I, "0"), I + 1 > y) {
835
+ } else if (f -= j + (k === 2 && I > j), v = ae(v, I, "0"), I + 1 > y) {
836
836
  if (--f > 0) for (v += "."; f--; v += "0") ;
837
837
  } else if (f += I - y, f > 0)
838
838
  for (I + 1 == y && (v += "."); f--; v += "0") ;
839
839
  return l.s < 0 && w ? "-" + v : v;
840
840
  }
841
- function Ii(l, f) {
841
+ function ki(l, f) {
842
842
  for (var g, k, w = 1, I = new x(l[0]); w < l.length; w++)
843
843
  k = new x(l[w]), (!k.s || (g = K(I, k)) === f || g === 0 && I.s === f) && (I = k);
844
844
  return I;
845
845
  }
846
- function Ht(l, f, g) {
846
+ function Dt(l, f, g) {
847
847
  for (var k = 1, w = f.length; !f[--w]; f.pop()) ;
848
848
  for (w = f[0]; w >= 10; w /= 10, k++) ;
849
849
  return (g = k + g * c - 1) > Ae ? l.c = l.e = null : g < Ue ? l.c = [l.e = 0] : (l.e = g, l.c = f), l;
850
850
  }
851
851
  X = /* @__PURE__ */ (function() {
852
852
  var l = /^(-?)0([xbo])(?=\w[\w.]*$)/i, f = /^([^.]+)\.$/, g = /^\.([^.]+)$/, k = /^-?(Infinity|NaN)$/, w = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
853
- return function(I, $, y, v) {
854
- var S, A = y ? $ : $.replace(w, "");
853
+ return function(I, j, y, v) {
854
+ var S, A = y ? j : j.replace(w, "");
855
855
  if (k.test(A))
856
856
  I.s = isNaN(A) ? null : A < 0 ? -1 : 1;
857
857
  else {
858
858
  if (!y && (A = A.replace(l, function(C, D, B) {
859
859
  return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !v || v == S ? D : C;
860
- }), v && (S = v, A = A.replace(f, "$1").replace(g, "0.$1")), $ != A))
860
+ }), v && (S = v, A = A.replace(f, "$1").replace(g, "0.$1")), j != A))
861
861
  return new x(A, S);
862
862
  if (x.DEBUG)
863
- throw Error(s + "Not a" + (v ? " base " + v : "") + " number: " + $);
863
+ throw Error(s + "Not a" + (v ? " base " + v : "") + " number: " + j);
864
864
  I.s = null;
865
865
  }
866
866
  I.c = I.e = null;
867
867
  };
868
868
  })();
869
869
  function Se(l, f, g, k) {
870
- var w, I, $, y, v, S, A, C = l.c, D = u;
870
+ var w, I, j, y, v, S, A, C = l.c, D = u;
871
871
  if (C) {
872
872
  e: {
873
873
  for (w = 1, y = C[0]; y >= 10; y /= 10, w++) ;
874
874
  if (I = f - w, I < 0)
875
- I += c, $ = f, v = C[S = 0], A = a(v / D[w - $ - 1] % 10);
875
+ I += c, j = f, v = C[S = 0], A = a(v / D[w - j - 1] % 10);
876
876
  else if (S = o((I + 1) / c), S >= C.length)
877
877
  if (k) {
878
878
  for (; C.length <= S; C.push(0)) ;
879
- v = A = 0, w = 1, I %= c, $ = I - c + 1;
879
+ v = A = 0, w = 1, I %= c, j = I - c + 1;
880
880
  } else
881
881
  break e;
882
882
  else {
883
883
  for (v = y = C[S], w = 1; y >= 10; y /= 10, w++) ;
884
- I %= c, $ = I - c + w, A = $ < 0 ? 0 : a(v / D[w - $ - 1] % 10);
884
+ I %= c, j = I - c + w, A = j < 0 ? 0 : a(v / D[w - j - 1] % 10);
885
885
  }
886
886
  if (k = k || f < 0 || // Are there any non-zero digits after the rounding digit?
887
887
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
888
888
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
889
- C[S + 1] != null || ($ < 0 ? v : v % D[w - $ - 1]), k = g < 4 ? (A || k) && (g == 0 || g == (l.s < 0 ? 3 : 2)) : A > 5 || A == 5 && (g == 4 || k || g == 6 && // Check whether the digit to the left of the rounding digit is odd.
890
- (I > 0 ? $ > 0 ? v / D[w - $] : 0 : C[S - 1]) % 10 & 1 || g == (l.s < 0 ? 8 : 7)), f < 1 || !C[0])
889
+ C[S + 1] != null || (j < 0 ? v : v % D[w - j - 1]), k = g < 4 ? (A || k) && (g == 0 || g == (l.s < 0 ? 3 : 2)) : A > 5 || A == 5 && (g == 4 || k || g == 6 && // Check whether the digit to the left of the rounding digit is odd.
890
+ (I > 0 ? j > 0 ? v / D[w - j] : 0 : C[S - 1]) % 10 & 1 || g == (l.s < 0 ? 8 : 7)), f < 1 || !C[0])
891
891
  return C.length = 0, k ? (f -= l.e + 1, C[0] = D[(c - f % c) % c], l.e = -f || 0) : C[0] = l.e = 0, l;
892
- if (I == 0 ? (C.length = S, y = 1, S--) : (C.length = S + 1, y = D[c - I], C[S] = $ > 0 ? a(v / D[w - $] % D[$]) * y : 0), k)
892
+ if (I == 0 ? (C.length = S, y = 1, S--) : (C.length = S + 1, y = D[c - I], C[S] = j > 0 ? a(v / D[w - j] % D[j]) * y : 0), k)
893
893
  for (; ; )
894
894
  if (S == 0) {
895
- for (I = 1, $ = C[0]; $ >= 10; $ /= 10, I++) ;
896
- for ($ = C[0] += y, y = 1; $ >= 10; $ /= 10, y++) ;
895
+ for (I = 1, j = C[0]; j >= 10; j /= 10, I++) ;
896
+ for (j = C[0] += y, y = 1; j >= 10; j /= 10, y++) ;
897
897
  I != y && (l.e++, C[0] == d && (C[0] = 1));
898
898
  break;
899
899
  } else {
@@ -906,9 +906,9 @@ function Fi() {
906
906
  }
907
907
  return l;
908
908
  }
909
- function Ee(l) {
909
+ function Le(l) {
910
910
  var f, g = l.e;
911
- return g === null ? l.toString() : (f = V(l.c), f = g <= ce || g >= de ? J(f, g) : ae(f, g, "0"), l.s < 0 ? "-" + f : f);
911
+ return g === null ? l.toString() : (f = W(l.c), f = g <= ce || g >= de ? J(f, g) : ae(f, g, "0"), l.s < 0 ? "-" + f : f);
912
912
  }
913
913
  return U.absoluteValue = U.abs = function() {
914
914
  var l = new x(this);
@@ -918,7 +918,7 @@ function Fi() {
918
918
  }, U.decimalPlaces = U.dp = function(l, f) {
919
919
  var g, k, w, I = this;
920
920
  if (l != null)
921
- return E(l, 0, j), f == null ? f = ie : E(f, 0, 8), Se(new x(I), l + I.e + 1, f);
921
+ return q(l, 0, $), f == null ? f = ie : q(f, 0, 8), Se(new x(I), l + I.e + 1, f);
922
922
  if (!(g = I.c)) return null;
923
923
  if (k = ((w = g.length - 1) - Z(this.e / c)) * c, w = g[w]) for (; w % 10 == 0; w /= 10, k--) ;
924
924
  return k < 0 && (k = 0), k;
@@ -927,20 +927,20 @@ function Fi() {
927
927
  }, U.dividedToIntegerBy = U.idiv = function(l, f) {
928
928
  return L(this, new x(l, f), 0, 1);
929
929
  }, U.exponentiatedBy = U.pow = function(l, f) {
930
- var g, k, w, I, $, y, v, S, A, C = this;
930
+ var g, k, w, I, j, y, v, S, A, C = this;
931
931
  if (l = new x(l), l.c && !l.isInteger())
932
- throw Error(s + "Exponent not an integer: " + Ee(l));
932
+ throw Error(s + "Exponent not an integer: " + Le(l));
933
933
  if (f != null && (f = new x(f)), y = l.e > 14, !C.c || !C.c[0] || C.c[0] == 1 && !C.e && C.c.length == 1 || !l.c || !l.c[0])
934
- return A = new x(Math.pow(+Ee(C), y ? l.s * (2 - N(l)) : +Ee(l))), f ? A.mod(f) : A;
934
+ return A = new x(Math.pow(+Le(C), y ? l.s * (2 - N(l)) : +Le(l))), f ? A.mod(f) : A;
935
935
  if (v = l.s < 0, f) {
936
936
  if (f.c ? !f.c[0] : !f.s) return new x(NaN);
937
937
  k = !v && C.isInteger() && f.isInteger(), k && (C = C.mod(f));
938
938
  } else {
939
939
  if (l.e > 9 && (C.e > 0 || C.e < -1 || (C.e == 0 ? C.c[0] > 1 || y && C.c[1] >= 24e7 : C.c[0] < 8e13 || y && C.c[0] <= 9999975e7)))
940
940
  return I = C.s < 0 && N(l) ? -0 : 0, C.e > -1 && (I = 1 / I), new x(v ? 1 / I : I);
941
- De && (I = o(De / c + 2));
941
+ Be && (I = o(Be / c + 2));
942
942
  }
943
- for (y ? (g = new x(0.5), v && (l.s = 1), S = N(l)) : (w = Math.abs(+Ee(l)), S = w % 2), A = new x(Y); ; ) {
943
+ for (y ? (g = new x(0.5), v && (l.s = 1), S = N(l)) : (w = Math.abs(+Le(l)), S = w % 2), A = new x(Y); ; ) {
944
944
  if (S) {
945
945
  if (A = A.times(C), !A.c) break;
946
946
  I ? A.c.length > I && (A.c.length = I) : k && (A = A.mod(f));
@@ -951,15 +951,15 @@ function Fi() {
951
951
  } else if (l = l.times(g), Se(l, l.e + 1, 1), l.e > 14)
952
952
  S = N(l);
953
953
  else {
954
- if (w = +Ee(l), w === 0) break;
954
+ if (w = +Le(l), w === 0) break;
955
955
  S = w % 2;
956
956
  }
957
957
  C = C.times(C), I ? C.c && C.c.length > I && (C.c.length = I) : k && (C = C.mod(f));
958
958
  }
959
- return k ? A : (v && (A = Y.div(A)), f ? A.mod(f) : I ? Se(A, De, ie, $) : A);
959
+ return k ? A : (v && (A = Y.div(A)), f ? A.mod(f) : I ? Se(A, Be, ie, j) : A);
960
960
  }, U.integerValue = function(l) {
961
961
  var f = new x(this);
962
- return l == null ? l = ie : E(l, 0, 8), Se(f, f.e + 1, l);
962
+ return l == null ? l = ie : q(l, 0, 8), Se(f, f.e + 1, l);
963
963
  }, U.isEqualTo = U.eq = function(l, f) {
964
964
  return K(this, new x(l, f)) === 0;
965
965
  }, U.isFinite = function() {
@@ -983,15 +983,15 @@ function Fi() {
983
983
  }, U.isZero = function() {
984
984
  return !!this.c && this.c[0] == 0;
985
985
  }, U.minus = function(l, f) {
986
- var g, k, w, I, $ = this, y = $.s;
986
+ var g, k, w, I, j = this, y = j.s;
987
987
  if (l = new x(l, f), f = l.s, !y || !f) return new x(NaN);
988
988
  if (y != f)
989
- return l.s = -f, $.plus(l);
990
- var v = $.e / c, S = l.e / c, A = $.c, C = l.c;
989
+ return l.s = -f, j.plus(l);
990
+ var v = j.e / c, S = l.e / c, A = j.c, C = l.c;
991
991
  if (!v || !S) {
992
- if (!A || !C) return A ? (l.s = -f, l) : new x(C ? $ : NaN);
992
+ if (!A || !C) return A ? (l.s = -f, l) : new x(C ? j : NaN);
993
993
  if (!A[0] || !C[0])
994
- return C[0] ? (l.s = -f, l) : new x(A[0] ? $ : (
994
+ return C[0] ? (l.s = -f, l) : new x(A[0] ? j : (
995
995
  // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
996
996
  ie == 3 ? -0 : 0
997
997
  ));
@@ -1014,21 +1014,21 @@ function Fi() {
1014
1014
  A[k] -= C[k];
1015
1015
  }
1016
1016
  for (; A[0] == 0; A.splice(0, 1), --S) ;
1017
- return A[0] ? Ht(l, A, S) : (l.s = ie == 3 ? -1 : 1, l.c = [l.e = 0], l);
1017
+ return A[0] ? Dt(l, A, S) : (l.s = ie == 3 ? -1 : 1, l.c = [l.e = 0], l);
1018
1018
  }, U.modulo = U.mod = function(l, f) {
1019
1019
  var g, k, w = this;
1020
1020
  return l = new x(l, f), !w.c || !l.s || l.c && !l.c[0] ? new x(NaN) : !l.c || w.c && !w.c[0] ? new x(w) : (st == 9 ? (k = l.s, l.s = 1, g = L(w, l, 0, 3), l.s = k, g.s *= k) : g = L(w, l, 0, st), l = w.minus(g.times(l)), !l.c[0] && st == 1 && (l.s = w.s), l);
1021
1021
  }, U.multipliedBy = U.times = function(l, f) {
1022
- var g, k, w, I, $, y, v, S, A, C, D, B, ne, le, he, F = this, re = F.c, me = (l = new x(l, f)).c;
1022
+ var g, k, w, I, j, y, v, S, A, C, D, B, ne, le, he, F = this, re = F.c, me = (l = new x(l, f)).c;
1023
1023
  if (!re || !me || !re[0] || !me[0])
1024
1024
  return !F.s || !l.s || re && !re[0] && !me || me && !me[0] && !re ? l.c = l.e = l.s = null : (l.s *= F.s, !re || !me ? l.c = l.e = null : (l.c = [0], l.e = 0)), l;
1025
1025
  for (k = Z(F.e / c) + Z(l.e / c), l.s *= F.s, v = re.length, C = me.length, v < C && (ne = re, re = me, me = ne, w = v, v = C, C = w), w = v + C, ne = []; w--; ne.push(0)) ;
1026
1026
  for (le = d, he = m, w = C; --w >= 0; ) {
1027
- for (g = 0, D = me[w] % he, B = me[w] / he | 0, $ = v, I = w + $; I > w; )
1028
- S = re[--$] % he, A = re[$] / he | 0, y = B * S + A * D, S = D * S + y % he * he + ne[I] + g, g = (S / le | 0) + (y / he | 0) + B * A, ne[I--] = S % le;
1027
+ for (g = 0, D = me[w] % he, B = me[w] / he | 0, j = v, I = w + j; I > w; )
1028
+ S = re[--j] % he, A = re[j] / he | 0, y = B * S + A * D, S = D * S + y % he * he + ne[I] + g, g = (S / le | 0) + (y / he | 0) + B * A, ne[I--] = S % le;
1029
1029
  ne[I] = g;
1030
1030
  }
1031
- return g ? ++k : ne.splice(0, 1), Ht(l, ne, k);
1031
+ return g ? ++k : ne.splice(0, 1), Dt(l, ne, k);
1032
1032
  }, U.negated = function() {
1033
1033
  var l = new x(this);
1034
1034
  return l.s = -l.s || null, l;
@@ -1037,22 +1037,22 @@ function Fi() {
1037
1037
  if (l = new x(l, f), f = l.s, !w || !f) return new x(NaN);
1038
1038
  if (w != f)
1039
1039
  return l.s = -f, k.minus(l);
1040
- var I = k.e / c, $ = l.e / c, y = k.c, v = l.c;
1041
- if (!I || !$) {
1040
+ var I = k.e / c, j = l.e / c, y = k.c, v = l.c;
1041
+ if (!I || !j) {
1042
1042
  if (!y || !v) return new x(w / 0);
1043
1043
  if (!y[0] || !v[0]) return v[0] ? l : new x(y[0] ? k : w * 0);
1044
1044
  }
1045
- if (I = Z(I), $ = Z($), y = y.slice(), w = I - $) {
1046
- for (w > 0 ? ($ = I, g = v) : (w = -w, g = y), g.reverse(); w--; g.push(0)) ;
1045
+ if (I = Z(I), j = Z(j), y = y.slice(), w = I - j) {
1046
+ for (w > 0 ? (j = I, g = v) : (w = -w, g = y), g.reverse(); w--; g.push(0)) ;
1047
1047
  g.reverse();
1048
1048
  }
1049
1049
  for (w = y.length, f = v.length, w - f < 0 && (g = v, v = y, y = g, f = w), w = 0; f; )
1050
1050
  w = (y[--f] = y[f] + v[f] + w) / d | 0, y[f] = d === y[f] ? 0 : y[f] % d;
1051
- return w && (y = [w].concat(y), ++$), Ht(l, y, $);
1051
+ return w && (y = [w].concat(y), ++j), Dt(l, y, j);
1052
1052
  }, U.precision = U.sd = function(l, f) {
1053
1053
  var g, k, w, I = this;
1054
1054
  if (l != null && l !== !!l)
1055
- return E(l, 1, j), f == null ? f = ie : E(f, 0, 8), Se(new x(I), l, f);
1055
+ return q(l, 1, $), f == null ? f = ie : q(f, 0, 8), Se(new x(I), l, f);
1056
1056
  if (!(g = I.c)) return null;
1057
1057
  if (w = g.length - 1, k = w * c + 1, w = g[w]) {
1058
1058
  for (; w % 10 == 0; w /= 10, k--) ;
@@ -1060,14 +1060,14 @@ function Fi() {
1060
1060
  }
1061
1061
  return l && I.e + 1 > k && (k = I.e + 1), k;
1062
1062
  }, U.shiftedBy = function(l) {
1063
- return E(l, -p, p), this.times("1e" + l);
1063
+ return q(l, -p, p), this.times("1e" + l);
1064
1064
  }, U.squareRoot = U.sqrt = function() {
1065
- var l, f, g, k, w, I = this, $ = I.c, y = I.s, v = I.e, S = Q + 4, A = new x("0.5");
1066
- if (y !== 1 || !$ || !$[0])
1067
- return new x(!y || y < 0 && (!$ || $[0]) ? NaN : $ ? I : 1 / 0);
1068
- if (y = Math.sqrt(+Ee(I)), y == 0 || y == 1 / 0 ? (f = V($), (f.length + v) % 2 == 0 && (f += "0"), y = Math.sqrt(+f), v = Z((v + 1) / 2) - (v < 0 || v % 2), y == 1 / 0 ? f = "5e" + v : (f = y.toExponential(), f = f.slice(0, f.indexOf("e") + 1) + v), g = new x(f)) : g = new x(y + ""), g.c[0]) {
1065
+ var l, f, g, k, w, I = this, j = I.c, y = I.s, v = I.e, S = Q + 4, A = new x("0.5");
1066
+ if (y !== 1 || !j || !j[0])
1067
+ return new x(!y || y < 0 && (!j || j[0]) ? NaN : j ? I : 1 / 0);
1068
+ if (y = Math.sqrt(+Le(I)), y == 0 || y == 1 / 0 ? (f = W(j), (f.length + v) % 2 == 0 && (f += "0"), y = Math.sqrt(+f), v = Z((v + 1) / 2) - (v < 0 || v % 2), y == 1 / 0 ? f = "5e" + v : (f = y.toExponential(), f = f.slice(0, f.indexOf("e") + 1) + v), g = new x(f)) : g = new x(y + ""), g.c[0]) {
1069
1069
  for (v = g.e, y = v + S, y < 3 && (y = 0); ; )
1070
- if (w = g, g = A.times(w.plus(L(I, w, S, 1))), V(w.c).slice(0, y) === (f = V(g.c)).slice(0, y))
1070
+ if (w = g, g = A.times(w.plus(L(I, w, S, 1))), W(w.c).slice(0, y) === (f = W(g.c)).slice(0, y))
1071
1071
  if (g.e < v && --y, f = f.slice(y - 3, y + 1), f == "9999" || !k && f == "4999") {
1072
1072
  if (!k && (Se(w, w.e + Q + 2, 0), w.times(w).eq(I))) {
1073
1073
  g = w;
@@ -1081,17 +1081,17 @@ function Fi() {
1081
1081
  }
1082
1082
  return Se(g, g.e + Q + 1, ie, l);
1083
1083
  }, U.toExponential = function(l, f) {
1084
- return l != null && (E(l, 0, j), l++), Nt(this, l, f, 1);
1084
+ return l != null && (q(l, 0, $), l++), Ht(this, l, f, 1);
1085
1085
  }, U.toFixed = function(l, f) {
1086
- return l != null && (E(l, 0, j), l = l + this.e + 1), Nt(this, l, f);
1086
+ return l != null && (q(l, 0, $), l = l + this.e + 1), Ht(this, l, f);
1087
1087
  }, U.toFormat = function(l, f, g) {
1088
1088
  var k, w = this;
1089
1089
  if (g == null)
1090
- l != null && f && typeof f == "object" ? (g = f, f = null) : l && typeof l == "object" ? (g = l, l = f = null) : g = _t;
1090
+ l != null && f && typeof f == "object" ? (g = f, f = null) : l && typeof l == "object" ? (g = l, l = f = null) : g = Lt;
1091
1091
  else if (typeof g != "object")
1092
1092
  throw Error(s + "Argument not an object: " + g);
1093
1093
  if (k = w.toFixed(l, f), w.c) {
1094
- var I, $ = k.split("."), y = +g.groupSize, v = +g.secondaryGroupSize, S = g.groupSeparator || "", A = $[0], C = $[1], D = w.s < 0, B = D ? A.slice(1) : A, ne = B.length;
1094
+ var I, j = k.split("."), y = +g.groupSize, v = +g.secondaryGroupSize, S = g.groupSeparator || "", A = j[0], C = j[1], D = w.s < 0, B = D ? A.slice(1) : A, ne = B.length;
1095
1095
  if (v && (I = y, y = v, v = I, ne -= I), y > 0 && ne > 0) {
1096
1096
  for (I = ne % y || y, A = B.substr(0, I); I < ne; I += y) A += S + B.substr(I, y);
1097
1097
  v > 0 && (A += S + B.slice(I)), D && (A = "-" + A);
@@ -1103,31 +1103,31 @@ function Fi() {
1103
1103
  }
1104
1104
  return (g.prefix || "") + k + (g.suffix || "");
1105
1105
  }, U.toFraction = function(l) {
1106
- var f, g, k, w, I, $, y, v, S, A, C, D, B = this, ne = B.c;
1106
+ var f, g, k, w, I, j, y, v, S, A, C, D, B = this, ne = B.c;
1107
1107
  if (l != null && (y = new x(l), !y.isInteger() && (y.c || y.s !== 1) || y.lt(Y)))
1108
- throw Error(s + "Argument " + (y.isInteger() ? "out of range: " : "not an integer: ") + Ee(y));
1108
+ throw Error(s + "Argument " + (y.isInteger() ? "out of range: " : "not an integer: ") + Le(y));
1109
1109
  if (!ne) return new x(B);
1110
- for (f = new x(Y), S = g = new x(Y), k = v = new x(Y), D = V(ne), I = f.e = D.length - B.e - 1, f.c[0] = u[($ = I % c) < 0 ? c + $ : $], l = !l || y.comparedTo(f) > 0 ? I > 0 ? f : S : y, $ = Ae, Ae = 1 / 0, y = new x(D), v.c[0] = 0; A = L(y, f, 0, 1), w = g.plus(A.times(k)), w.comparedTo(l) != 1; )
1110
+ for (f = new x(Y), S = g = new x(Y), k = v = new x(Y), D = W(ne), I = f.e = D.length - B.e - 1, f.c[0] = u[(j = I % c) < 0 ? c + j : j], l = !l || y.comparedTo(f) > 0 ? I > 0 ? f : S : y, j = Ae, Ae = 1 / 0, y = new x(D), v.c[0] = 0; A = L(y, f, 0, 1), w = g.plus(A.times(k)), w.comparedTo(l) != 1; )
1111
1111
  g = k, k = w, S = v.plus(A.times(w = S)), v = w, f = y.minus(A.times(w = f)), y = w;
1112
1112
  return w = L(l.minus(g), k, 0, 1), v = v.plus(w.times(S)), g = g.plus(w.times(k)), v.s = S.s = B.s, I = I * 2, C = L(S, k, I, ie).minus(B).abs().comparedTo(
1113
1113
  L(v, g, I, ie).minus(B).abs()
1114
- ) < 1 ? [S, k] : [v, g], Ae = $, C;
1114
+ ) < 1 ? [S, k] : [v, g], Ae = j, C;
1115
1115
  }, U.toNumber = function() {
1116
- return +Ee(this);
1116
+ return +Le(this);
1117
1117
  }, U.toPrecision = function(l, f) {
1118
- return l != null && E(l, 1, j), Nt(this, l, f, 2);
1118
+ return l != null && q(l, 1, $), Ht(this, l, f, 2);
1119
1119
  }, U.toString = function(l) {
1120
1120
  var f, g = this, k = g.s, w = g.e;
1121
- return w === null ? k ? (f = "Infinity", k < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = w <= ce || w >= de ? J(V(g.c), w) : ae(V(g.c), w, "0") : l === 10 && Lt ? (g = Se(new x(g), Q + w + 1, ie), f = ae(V(g.c), g.e, "0")) : (E(l, 2, Ge.length, "Base"), f = te(ae(V(g.c), w, "0"), 10, l, k, !0)), k < 0 && g.c[0] && (f = "-" + f)), f;
1121
+ return w === null ? k ? (f = "Infinity", k < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = w <= ce || w >= de ? J(W(g.c), w) : ae(W(g.c), w, "0") : l === 10 && Nt ? (g = Se(new x(g), Q + w + 1, ie), f = ae(W(g.c), g.e, "0")) : (q(l, 2, Ye.length, "Base"), f = te(ae(W(g.c), w, "0"), 10, l, k, !0)), k < 0 && g.c[0] && (f = "-" + f)), f;
1122
1122
  }, U.valueOf = U.toJSON = function() {
1123
- return Ee(this);
1123
+ return Le(this);
1124
1124
  }, U._isBigNumber = !0, H != null && x.set(H), x;
1125
1125
  }
1126
1126
  function Z(H) {
1127
1127
  var L = H | 0;
1128
1128
  return H > 0 || H === L ? L : L - 1;
1129
1129
  }
1130
- function V(H) {
1130
+ function W(H) {
1131
1131
  for (var L, te, X = 1, U = H.length, Y = H[0] + ""; X < U; ) {
1132
1132
  for (L = H[X++] + "", te = c - L.length; te--; L = "0" + L) ;
1133
1133
  Y += L;
@@ -1145,7 +1145,7 @@ function Fi() {
1145
1145
  for (ie = (ce = U.length) < (de = Y.length) ? ce : de, Q = 0; Q < ie; Q++) if (U[Q] != Y[Q]) return U[Q] > Y[Q] ^ te ? 1 : -1;
1146
1146
  return ce == de ? 0 : ce > de ^ te ? 1 : -1;
1147
1147
  }
1148
- function E(H, L, te, X) {
1148
+ function q(H, L, te, X) {
1149
1149
  if (H < L || H > te || H !== a(H))
1150
1150
  throw Error(s + (X || "Argument") + (typeof H == "number" ? H < L || H > te ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(H));
1151
1151
  }
@@ -1167,14 +1167,14 @@ function Fi() {
1167
1167
  } else L < X && (H = H.slice(0, L) + "." + H.slice(L));
1168
1168
  return H;
1169
1169
  }
1170
- n = q(), n.default = n.BigNumber = n, t.exports ? t.exports = n : (e || (e = typeof self < "u" && self ? self : window), e.BigNumber = n);
1171
- })(Un);
1170
+ n = E(), n.default = n.BigNumber = n, t.exports ? t.exports = n : (e || (e = typeof self < "u" && self ? self : window), e.BigNumber = n);
1171
+ })(En);
1172
1172
  })(St)), St.exports;
1173
1173
  }
1174
- var Ei;
1175
- function Mn() {
1176
- return Ei || (Ei = 1, (function(t) {
1177
- var e = Fi(), n = t.exports;
1174
+ var Li;
1175
+ function qn() {
1176
+ return Li || (Li = 1, (function(t) {
1177
+ var e = tn(), n = t.exports;
1178
1178
  (function() {
1179
1179
  var i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, o, a, s = {
1180
1180
  // table of character substitutions
@@ -1193,47 +1193,47 @@ function Mn() {
1193
1193
  }) + '"' : '"' + p + '"';
1194
1194
  }
1195
1195
  function c(p, u) {
1196
- var m, j, q, Z, V = o, K, E = u[p], N = E != null && (E instanceof e || e.isBigNumber(E));
1197
- switch (E && typeof E == "object" && typeof E.toJSON == "function" && (E = E.toJSON(p)), typeof r == "function" && (E = r.call(u, p, E)), typeof E) {
1196
+ var m, $, E, Z, W = o, K, q = u[p], N = q != null && (q instanceof e || e.isBigNumber(q));
1197
+ switch (q && typeof q == "object" && typeof q.toJSON == "function" && (q = q.toJSON(p)), typeof r == "function" && (q = r.call(u, p, q)), typeof q) {
1198
1198
  case "string":
1199
- return N ? E : d(E);
1199
+ return N ? q : d(q);
1200
1200
  case "number":
1201
- return isFinite(E) ? String(E) : "null";
1201
+ return isFinite(q) ? String(q) : "null";
1202
1202
  case "boolean":
1203
1203
  case "null":
1204
1204
  case "bigint":
1205
- return String(E);
1205
+ return String(q);
1206
1206
  // If the type is 'object', we might be dealing with an object or an array or
1207
1207
  // null.
1208
1208
  case "object":
1209
- if (!E)
1209
+ if (!q)
1210
1210
  return "null";
1211
- if (o += a, K = [], Object.prototype.toString.apply(E) === "[object Array]") {
1212
- for (Z = E.length, m = 0; m < Z; m += 1)
1213
- K[m] = c(m, E) || "null";
1214
- return q = K.length === 0 ? "[]" : o ? `[
1211
+ if (o += a, K = [], Object.prototype.toString.apply(q) === "[object Array]") {
1212
+ for (Z = q.length, m = 0; m < Z; m += 1)
1213
+ K[m] = c(m, q) || "null";
1214
+ return E = K.length === 0 ? "[]" : o ? `[
1215
1215
  ` + o + K.join(`,
1216
1216
  ` + o) + `
1217
- ` + V + "]" : "[" + K.join(",") + "]", o = V, q;
1217
+ ` + W + "]" : "[" + K.join(",") + "]", o = W, E;
1218
1218
  }
1219
1219
  if (r && typeof r == "object")
1220
1220
  for (Z = r.length, m = 0; m < Z; m += 1)
1221
- typeof r[m] == "string" && (j = r[m], q = c(j, E), q && K.push(d(j) + (o ? ": " : ":") + q));
1221
+ typeof r[m] == "string" && ($ = r[m], E = c($, q), E && K.push(d($) + (o ? ": " : ":") + E));
1222
1222
  else
1223
- Object.keys(E).forEach(function(J) {
1224
- var ae = c(J, E);
1223
+ Object.keys(q).forEach(function(J) {
1224
+ var ae = c(J, q);
1225
1225
  ae && K.push(d(J) + (o ? ": " : ":") + ae);
1226
1226
  });
1227
- return q = K.length === 0 ? "{}" : o ? `{
1227
+ return E = K.length === 0 ? "{}" : o ? `{
1228
1228
  ` + o + K.join(`,
1229
1229
  ` + o) + `
1230
- ` + V + "}" : "{" + K.join(",") + "}", o = V, q;
1230
+ ` + W + "}" : "{" + K.join(",") + "}", o = W, E;
1231
1231
  }
1232
1232
  }
1233
1233
  typeof n.stringify != "function" && (n.stringify = function(p, u, m) {
1234
- var j;
1234
+ var $;
1235
1235
  if (o = "", a = "", typeof m == "number")
1236
- for (j = 0; j < m; j += 1)
1236
+ for ($ = 0; $ < m; $ += 1)
1237
1237
  a += " ";
1238
1238
  else typeof m == "string" && (a = m);
1239
1239
  if (r = u, u && typeof u != "function" && (typeof u != "object" || typeof u.length != "number"))
@@ -1241,12 +1241,12 @@ function Mn() {
1241
1241
  return c("", { "": p });
1242
1242
  });
1243
1243
  })();
1244
- })(Vt)), Vt.exports;
1244
+ })(Wt)), Wt.exports;
1245
1245
  }
1246
- var Wt, _i;
1247
- function Rn() {
1248
- if (_i) return Wt;
1249
- _i = 1;
1246
+ var Gt, Ni;
1247
+ function _n() {
1248
+ if (Ni) return Gt;
1249
+ Ni = 1;
1250
1250
  var t = null;
1251
1251
  const e = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, n = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
1252
1252
  var i = function(o) {
@@ -1310,8 +1310,8 @@ function Rn() {
1310
1310
  if (N = +J, !isFinite(N))
1311
1311
  p("Bad number");
1312
1312
  else
1313
- return t == null && (t = Fi()), J.length > 15 ? a.storeAsString ? J : a.useNativeBigInt ? BigInt(J) : new t(J) : a.alwaysParseAsBig ? a.useNativeBigInt ? BigInt(N) : new t(N) : N;
1314
- }, j = function() {
1313
+ return t == null && (t = tn()), J.length > 15 ? a.storeAsString ? J : a.useNativeBigInt ? BigInt(J) : new t(J) : a.alwaysParseAsBig ? a.useNativeBigInt ? BigInt(N) : new t(N) : N;
1314
+ }, $ = function() {
1315
1315
  var N, J, ae = "", H;
1316
1316
  if (r === '"')
1317
1317
  for (var L = s; u(); ) {
@@ -1330,7 +1330,7 @@ function Rn() {
1330
1330
  }
1331
1331
  }
1332
1332
  p("Bad string");
1333
- }, q = function() {
1333
+ }, E = function() {
1334
1334
  for (; r && r <= " "; )
1335
1335
  u();
1336
1336
  }, Z = function() {
@@ -1343,39 +1343,39 @@ function Rn() {
1343
1343
  return u("n"), u("u"), u("l"), u("l"), null;
1344
1344
  }
1345
1345
  p("Unexpected '" + r + "'");
1346
- }, V, K = function() {
1346
+ }, W, K = function() {
1347
1347
  var N = [];
1348
1348
  if (r === "[") {
1349
- if (u("["), q(), r === "]")
1349
+ if (u("["), E(), r === "]")
1350
1350
  return u("]"), N;
1351
1351
  for (; r; ) {
1352
- if (N.push(V()), q(), r === "]")
1352
+ if (N.push(W()), E(), r === "]")
1353
1353
  return u("]"), N;
1354
- u(","), q();
1354
+ u(","), E();
1355
1355
  }
1356
1356
  }
1357
1357
  p("Bad array");
1358
- }, E = function() {
1358
+ }, q = function() {
1359
1359
  var N, J = /* @__PURE__ */ Object.create(null);
1360
1360
  if (r === "{") {
1361
- if (u("{"), q(), r === "}")
1361
+ if (u("{"), E(), r === "}")
1362
1362
  return u("}"), J;
1363
1363
  for (; r; ) {
1364
- if (N = j(), q(), u(":"), a.strict === !0 && Object.hasOwnProperty.call(J, N) && p('Duplicate key "' + N + '"'), e.test(N) === !0 ? a.protoAction === "error" ? p("Object contains forbidden prototype property") : a.protoAction === "ignore" ? V() : J[N] = V() : n.test(N) === !0 ? a.constructorAction === "error" ? p("Object contains forbidden constructor property") : a.constructorAction === "ignore" ? V() : J[N] = V() : J[N] = V(), q(), r === "}")
1364
+ if (N = $(), E(), u(":"), a.strict === !0 && Object.hasOwnProperty.call(J, N) && p('Duplicate key "' + N + '"'), e.test(N) === !0 ? a.protoAction === "error" ? p("Object contains forbidden prototype property") : a.protoAction === "ignore" ? W() : J[N] = W() : n.test(N) === !0 ? a.constructorAction === "error" ? p("Object contains forbidden constructor property") : a.constructorAction === "ignore" ? W() : J[N] = W() : J[N] = W(), E(), r === "}")
1365
1365
  return u("}"), J;
1366
- u(","), q();
1366
+ u(","), E();
1367
1367
  }
1368
1368
  }
1369
1369
  p("Bad object");
1370
1370
  };
1371
- return V = function() {
1372
- switch (q(), r) {
1371
+ return W = function() {
1372
+ switch (E(), r) {
1373
1373
  case "{":
1374
- return E();
1374
+ return q();
1375
1375
  case "[":
1376
1376
  return K();
1377
1377
  case '"':
1378
- return j();
1378
+ return $();
1379
1379
  case "-":
1380
1380
  return m();
1381
1381
  default:
@@ -1383,7 +1383,7 @@ function Rn() {
1383
1383
  }
1384
1384
  }, function(N, J) {
1385
1385
  var ae;
1386
- return c = N + "", s = 0, r = " ", ae = V(), q(), r && p("Syntax error"), typeof J == "function" ? (function H(L, te) {
1386
+ return c = N + "", s = 0, r = " ", ae = W(), E(), r && p("Syntax error"), typeof J == "function" ? (function H(L, te) {
1387
1387
  var X, U = L[te];
1388
1388
  return U && typeof U == "object" && Object.keys(U).forEach(function(Y) {
1389
1389
  X = H(U, Y), X !== void 0 ? U[Y] = X : delete U[Y];
@@ -1391,13 +1391,13 @@ function Rn() {
1391
1391
  })({ "": ae }, "") : ae;
1392
1392
  };
1393
1393
  };
1394
- return Wt = i, Wt;
1394
+ return Gt = i, Gt;
1395
1395
  }
1396
- var Li;
1397
- function qn() {
1398
- if (Li) return dt.exports;
1399
- Li = 1;
1400
- var t = Mn().stringify, e = Rn();
1396
+ var Hi;
1397
+ function Ln() {
1398
+ if (Hi) return dt.exports;
1399
+ Hi = 1;
1400
+ var t = qn().stringify, e = _n();
1401
1401
  return dt.exports = function(n) {
1402
1402
  return {
1403
1403
  parse: e(n),
@@ -1405,8 +1405,8 @@ function qn() {
1405
1405
  };
1406
1406
  }, dt.exports.parse = e(), dt.exports.stringify = t, dt.exports;
1407
1407
  }
1408
- var En = qn();
1409
- const wi = /* @__PURE__ */ xn(En);
1408
+ var Nn = Ln();
1409
+ const vi = /* @__PURE__ */ Rn(Nn);
1410
1410
  function Ie(t, e, n, i) {
1411
1411
  function o(a) {
1412
1412
  return a instanceof n ? a : new n(function(s) {
@@ -1434,12 +1434,12 @@ function Ie(t, e, n, i) {
1434
1434
  c((i = i.apply(t, e || [])).next());
1435
1435
  });
1436
1436
  }
1437
- function _n(t, e, n, i) {
1437
+ function Hn(t, e, n, i) {
1438
1438
  if (typeof e == "function" ? t !== e || !i : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1439
1439
  return n === "m" ? i : n === "a" ? i.call(t) : i ? i.value : e.get(t);
1440
1440
  }
1441
- var jt, en;
1442
- class Xe {
1441
+ var $t, nn;
1442
+ class Ve {
1443
1443
  /**
1444
1444
  * Uses the provided ID as the ID for the resource.
1445
1445
  *
@@ -1456,7 +1456,7 @@ class Xe {
1456
1456
  * @returns {string}
1457
1457
  */
1458
1458
  static unique(e = 7) {
1459
- const n = _n(jt, jt, "m", en).call(jt);
1459
+ const n = Hn($t, $t, "m", nn).call($t);
1460
1460
  let i = "";
1461
1461
  for (let o = 0; o < e; o++) {
1462
1462
  const a = Math.floor(Math.random() * 16).toString(16);
@@ -1465,11 +1465,11 @@ class Xe {
1465
1465
  return n + i;
1466
1466
  }
1467
1467
  }
1468
- jt = Xe, en = function() {
1468
+ $t = Ve, nn = function() {
1469
1469
  const e = /* @__PURE__ */ new Date(), n = Math.floor(e.getTime() / 1e3), i = e.getMilliseconds();
1470
1470
  return n.toString(16) + i.toString(16).padStart(5, "0");
1471
1471
  };
1472
- const Rt = wi({ useNativeBigInt: !0 });
1472
+ const Et = vi({ useNativeBigInt: !0 });
1473
1473
  class P {
1474
1474
  /**
1475
1475
  * Constructor for Query class.
@@ -1487,7 +1487,7 @@ class P {
1487
1487
  * @returns {string}
1488
1488
  */
1489
1489
  toString() {
1490
- return Rt.stringify({
1490
+ return Et.stringify({
1491
1491
  method: this.method,
1492
1492
  attribute: this.attribute,
1493
1493
  values: this.values
@@ -1537,9 +1537,9 @@ P.createdBetween = (t, e) => P.between("$createdAt", t, e);
1537
1537
  P.updatedBefore = (t) => P.lessThan("$updatedAt", t);
1538
1538
  P.updatedAfter = (t) => P.greaterThan("$updatedAt", t);
1539
1539
  P.updatedBetween = (t, e) => P.between("$updatedAt", t, e);
1540
- P.or = (t) => new P("or", void 0, t.map((e) => Rt.parse(e))).toString();
1541
- P.and = (t) => new P("and", void 0, t.map((e) => Rt.parse(e))).toString();
1542
- P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) => Rt.parse(n))).toString();
1540
+ P.or = (t) => new P("or", void 0, t.map((e) => Et.parse(e))).toString();
1541
+ P.and = (t) => new P("and", void 0, t.map((e) => Et.parse(e))).toString();
1542
+ P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) => Et.parse(n))).toString();
1543
1543
  P.distanceEqual = (t, e, n, i = !0) => new P("distanceEqual", t, [
1544
1544
  [e, n, i]
1545
1545
  ]).toString();
@@ -1569,23 +1569,23 @@ P.overlaps = (t, e) => new P("overlaps", t, [e]).toString();
1569
1569
  P.notOverlaps = (t, e) => new P("notOverlaps", t, [e]).toString();
1570
1570
  P.touches = (t, e) => new P("touches", t, [e]).toString();
1571
1571
  P.notTouches = (t, e) => new P("notTouches", t, [e]).toString();
1572
- const Ln = wi({ storeAsString: !1 }), Nn = wi({ useNativeBigInt: !0 }), Hn = BigInt(Number.MAX_SAFE_INTEGER), Dn = BigInt(Number.MIN_SAFE_INTEGER), Bn = BigInt("9223372036854775807"), Xn = BigInt("-9223372036854775808");
1573
- function Vn(t) {
1572
+ const Dn = vi({ storeAsString: !1 }), Bn = vi({ useNativeBigInt: !0 }), Xn = BigInt(Number.MAX_SAFE_INTEGER), Vn = BigInt(Number.MIN_SAFE_INTEGER), Wn = BigInt("9223372036854775807"), Gn = BigInt("-9223372036854775808");
1573
+ function Kn(t) {
1574
1574
  return t !== null && typeof t == "object" && t._isBigNumber === !0 && typeof t.isInteger == "function" && typeof t.toFixed == "function" && typeof t.toNumber == "function";
1575
1575
  }
1576
- function Wn(t, e) {
1577
- if (Vn(e)) {
1576
+ function Yn(t, e) {
1577
+ if (Kn(e)) {
1578
1578
  if (e.isInteger()) {
1579
1579
  const n = e.toFixed(), i = BigInt(n);
1580
- return i >= Dn && i <= Hn ? Number(n) : i >= Xn && i <= Bn ? i : e.toNumber();
1580
+ return i >= Vn && i <= Xn ? Number(n) : i >= Gn && i <= Wn ? i : e.toNumber();
1581
1581
  }
1582
1582
  return e.toNumber();
1583
1583
  }
1584
1584
  return e;
1585
1585
  }
1586
1586
  const we = {
1587
- parse: (t) => Ln.parse(t, Wn),
1588
- stringify: Nn.stringify
1587
+ parse: (t) => Dn.parse(t, Yn),
1588
+ stringify: Bn.stringify
1589
1589
  };
1590
1590
  class h extends Error {
1591
1591
  /**
@@ -1677,10 +1677,10 @@ class Ce {
1677
1677
  this.realtime.reconnect = !0;
1678
1678
  return;
1679
1679
  }
1680
- const j = this.realtime.getTimeout();
1681
- console.error(`Realtime got disconnected. Reconnect will be attempted in ${j / 1e3} seconds.`, c.reason), setTimeout(() => {
1680
+ const $ = this.realtime.getTimeout();
1681
+ console.error(`Realtime got disconnected. Reconnect will be attempted in ${$ / 1e3} seconds.`, c.reason), setTimeout(() => {
1682
1682
  this.realtime.reconnectAttempts++, this.realtime.createSocket();
1683
- }, j);
1683
+ }, $);
1684
1684
  })) : ((a = this.realtime.socket) === null || a === void 0 ? void 0 : a.readyState) === WebSocket.OPEN && this.realtime.sendPendingSubscribes();
1685
1685
  },
1686
1686
  sendPendingSubscribes: () => {
@@ -1955,7 +1955,7 @@ class Ce {
1955
1955
  let r = "";
1956
1956
  const d = this.realtime.subscriptions.size + 1;
1957
1957
  for (let c = 0; c < d; c++) {
1958
- const p = Xe.unique();
1958
+ const p = Ve.unique();
1959
1959
  if (!this.realtime.subscriptions.has(p)) {
1960
1960
  r = p;
1961
1961
  break;
@@ -2022,9 +2022,9 @@ class Ce {
2022
2022
  throw new Error("File not found in payload");
2023
2023
  if (p.size <= Ce.CHUNK_SIZE)
2024
2024
  return yield this.call(i, o, a, s);
2025
- const u = Math.ceil(p.size / Ce.CHUNK_SIZE), m = Math.min(Ce.CHUNK_SIZE, p.size), j = Object.assign(Object.assign({}, a), { "content-range": `bytes 0-${m - 1}/${p.size}` }), q = p.slice(0, m), Z = Object.assign({}, s);
2026
- Z[c] = new File([q], p.name);
2027
- const V = yield this.call(i, o, j, Z), K = V?.$id;
2025
+ const u = Math.ceil(p.size / Ce.CHUNK_SIZE), m = Math.min(Ce.CHUNK_SIZE, p.size), $ = Object.assign(Object.assign({}, a), { "content-range": `bytes 0-${m - 1}/${p.size}` }), E = p.slice(0, m), Z = Object.assign({}, s);
2026
+ Z[c] = new File([E], p.name);
2027
+ const W = yield this.call(i, o, $, Z), K = W?.$id;
2028
2028
  if (r && typeof r == "function" && r({
2029
2029
  $id: K,
2030
2030
  progress: Math.round(m / p.size * 100),
@@ -2032,14 +2032,14 @@ class Ce {
2032
2032
  chunksTotal: u,
2033
2033
  chunksUploaded: 1
2034
2034
  }), u === 1)
2035
- return V;
2036
- const E = [];
2035
+ return W;
2036
+ const q = [];
2037
2037
  for (let Y = 1; Y < u; Y++) {
2038
2038
  const Q = Y * Ce.CHUNK_SIZE, ie = Math.min(Q + Ce.CHUNK_SIZE, p.size);
2039
- E.push({ start: Q, end: ie });
2039
+ q.push({ start: Q, end: ie });
2040
2040
  }
2041
2041
  const N = 8;
2042
- let J = 1, ae = m, H = V, L = null, te = !1;
2042
+ let J = 1, ae = m, H = W, L = null, te = !1;
2043
2043
  const X = (Y) => {
2044
2044
  var Q;
2045
2045
  const ie = Y?.chunksUploaded, ce = (Q = Y?.chunksTotal) !== null && Q !== void 0 ? Q : u;
@@ -2062,16 +2062,16 @@ class Ce {
2062
2062
  let ie = 0, ce = 0, de = 0;
2063
2063
  const Ue = () => {
2064
2064
  if (!te) {
2065
- if (de === E.length) {
2065
+ if (de === q.length) {
2066
2066
  Y();
2067
2067
  return;
2068
2068
  }
2069
- for (; ce < N && ie < E.length; ) {
2070
- const Ae = E[ie++];
2069
+ for (; ce < N && ie < q.length; ) {
2070
+ const Ae = q[ie++];
2071
2071
  ce++, U(Ae).then(() => {
2072
2072
  ce--, de++, Ue();
2073
- }).catch((qe) => {
2074
- te = !0, Q(qe);
2073
+ }).catch((_e) => {
2074
+ te = !0, Q(_e);
2075
2075
  });
2076
2076
  }
2077
2077
  }
@@ -2092,24 +2092,24 @@ class Ce {
2092
2092
  return Ie(this, arguments, void 0, function* (i, o, a = {}, s = {}, r = "json") {
2093
2093
  var d, c, p;
2094
2094
  const { uri: u, options: m } = this.prepareRequest(i, o, a, s);
2095
- let j = null;
2096
- const q = yield fetch(u, m);
2097
- if (q.type === "opaque")
2095
+ let $ = null;
2096
+ const E = yield fetch(u, m);
2097
+ if (E.type === "opaque")
2098
2098
  throw new h(`Invalid Origin. Register your new client (${window.location.host}) as a new Web platform on your project console dashboard`, 403, "forbidden", "");
2099
- const Z = q.headers.get("x-appwrite-warning");
2100
- if (Z && Z.split(";").forEach((K) => console.warn("Warning: " + K)), !((d = q.headers.get("content-type")) === null || d === void 0) && d.includes("application/json") ? j = we.parse(yield q.text()) : r === "arrayBuffer" ? j = yield q.arrayBuffer() : j = {
2101
- message: yield q.text()
2102
- }, 400 <= q.status) {
2099
+ const Z = E.headers.get("x-appwrite-warning");
2100
+ if (Z && Z.split(";").forEach((K) => console.warn("Warning: " + K)), !((d = E.headers.get("content-type")) === null || d === void 0) && d.includes("application/json") ? $ = we.parse(yield E.text()) : r === "arrayBuffer" ? $ = yield E.arrayBuffer() : $ = {
2101
+ message: yield E.text()
2102
+ }, 400 <= E.status) {
2103
2103
  let K;
2104
- throw !((c = q.headers.get("content-type")) === null || c === void 0) && c.includes("application/json") || r === "arrayBuffer" ? K = we.stringify(j) : K = j?.message, new h((p = j?.message) !== null && p !== void 0 ? p : K, q.status, j?.type, K);
2104
+ throw !((c = E.headers.get("content-type")) === null || c === void 0) && c.includes("application/json") || r === "arrayBuffer" ? K = we.stringify($) : K = $?.message, new h((p = $?.message) !== null && p !== void 0 ? p : K, E.status, $?.type, K);
2105
2105
  }
2106
- const V = q.headers.get("X-Fallback-Cookies");
2107
- return typeof window < "u" && window.localStorage && V && (window.console.warn("Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint."), window.localStorage.setItem("cookieFallback", V)), j && typeof j == "object" && Object.defineProperty(j, "toString", {
2108
- value: () => we.stringify(j),
2106
+ const W = E.headers.get("X-Fallback-Cookies");
2107
+ return typeof window < "u" && window.localStorage && W && (window.console.warn("Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint."), window.localStorage.setItem("cookieFallback", W)), $ && typeof $ == "object" && Object.defineProperty($, "toString", {
2108
+ value: () => we.stringify($),
2109
2109
  writable: !0,
2110
2110
  enumerable: !1,
2111
2111
  configurable: !0
2112
- }), j;
2112
+ }), $;
2113
2113
  });
2114
2114
  }
2115
2115
  static flatten(e, n = "") {
@@ -2136,7 +2136,7 @@ class ye {
2136
2136
  }
2137
2137
  }
2138
2138
  ye.CHUNK_SIZE = 5 * 1024 * 1024;
2139
- class Kt {
2139
+ class Yt {
2140
2140
  constructor(e) {
2141
2141
  this.client = e;
2142
2142
  }
@@ -3228,7 +3228,7 @@ class Kt {
3228
3228
  return this.client.call("put", d, c, r);
3229
3229
  }
3230
3230
  }
3231
- class tn {
3231
+ class on {
3232
3232
  constructor(e) {
3233
3233
  this.client = e;
3234
3234
  }
@@ -3351,13 +3351,13 @@ class tn {
3351
3351
  emailHash: n[5],
3352
3352
  name: n[6]
3353
3353
  };
3354
- const o = i.width, a = i.height, s = i.quality, r = i.output, d = i.rating, c = i.userId, p = i.emailHash, u = i.name, m = "/avatars/photo", j = {};
3355
- typeof o < "u" && (j.width = o), typeof a < "u" && (j.height = a), typeof s < "u" && (j.quality = s), typeof r < "u" && (j.output = r), typeof d < "u" && (j.rating = d), typeof c < "u" && (j.userId = c), typeof p < "u" && (j.emailHash = p), typeof u < "u" && (j.name = u);
3356
- const q = new URL(this.client.config.endpoint + m);
3357
- j.project = this.client.config.project, j.impersonateuserid = this.client.config.impersonateuserid;
3358
- for (const [Z, V] of Object.entries(ye.flatten(j)))
3359
- q.searchParams.append(Z, V);
3360
- return q.toString();
3354
+ const o = i.width, a = i.height, s = i.quality, r = i.output, d = i.rating, c = i.userId, p = i.emailHash, u = i.name, m = "/avatars/photo", $ = {};
3355
+ typeof o < "u" && ($.width = o), typeof a < "u" && ($.height = a), typeof s < "u" && ($.quality = s), typeof r < "u" && ($.output = r), typeof d < "u" && ($.rating = d), typeof c < "u" && ($.userId = c), typeof p < "u" && ($.emailHash = p), typeof u < "u" && ($.name = u);
3356
+ const E = new URL(this.client.config.endpoint + m);
3357
+ $.project = this.client.config.project, $.impersonateuserid = this.client.config.impersonateuserid;
3358
+ for (const [Z, W] of Object.entries(ye.flatten($)))
3359
+ E.searchParams.append(Z, W);
3360
+ return E.toString();
3361
3361
  }
3362
3362
  getQR(e, ...n) {
3363
3363
  let i;
@@ -3402,11 +3402,11 @@ class tn {
3402
3402
  quality: n[17],
3403
3403
  output: n[18]
3404
3404
  };
3405
- const o = i.url, a = i.headers, s = i.viewportWidth, r = i.viewportHeight, d = i.scale, c = i.theme, p = i.userAgent, u = i.fullpage, m = i.locale, j = i.timezone, q = i.latitude, Z = i.longitude, V = i.accuracy, K = i.touch, E = i.permissions, N = i.sleep, J = i.width, ae = i.height, H = i.quality, L = i.output;
3405
+ const o = i.url, a = i.headers, s = i.viewportWidth, r = i.viewportHeight, d = i.scale, c = i.theme, p = i.userAgent, u = i.fullpage, m = i.locale, $ = i.timezone, E = i.latitude, Z = i.longitude, W = i.accuracy, K = i.touch, q = i.permissions, N = i.sleep, J = i.width, ae = i.height, H = i.quality, L = i.output;
3406
3406
  if (typeof o > "u")
3407
3407
  throw new h('Missing required parameter: "url"');
3408
3408
  const te = "/avatars/screenshots", X = {};
3409
- typeof o < "u" && (X.url = o), typeof a < "u" && (X.headers = a), typeof s < "u" && (X.viewportWidth = s), typeof r < "u" && (X.viewportHeight = r), typeof d < "u" && (X.scale = d), typeof c < "u" && (X.theme = c), typeof p < "u" && (X.userAgent = p), typeof u < "u" && (X.fullpage = u), typeof m < "u" && (X.locale = m), typeof j < "u" && (X.timezone = j), typeof q < "u" && (X.latitude = q), typeof Z < "u" && (X.longitude = Z), typeof V < "u" && (X.accuracy = V), typeof K < "u" && (X.touch = K), typeof E < "u" && (X.permissions = E), typeof N < "u" && (X.sleep = N), typeof J < "u" && (X.width = J), typeof ae < "u" && (X.height = ae), typeof H < "u" && (X.quality = H), typeof L < "u" && (X.output = L);
3409
+ typeof o < "u" && (X.url = o), typeof a < "u" && (X.headers = a), typeof s < "u" && (X.viewportWidth = s), typeof r < "u" && (X.viewportHeight = r), typeof d < "u" && (X.scale = d), typeof c < "u" && (X.theme = c), typeof p < "u" && (X.userAgent = p), typeof u < "u" && (X.fullpage = u), typeof m < "u" && (X.locale = m), typeof $ < "u" && (X.timezone = $), typeof E < "u" && (X.latitude = E), typeof Z < "u" && (X.longitude = Z), typeof W < "u" && (X.accuracy = W), typeof K < "u" && (X.touch = K), typeof q < "u" && (X.permissions = q), typeof N < "u" && (X.sleep = N), typeof J < "u" && (X.width = J), typeof ae < "u" && (X.height = ae), typeof H < "u" && (X.quality = H), typeof L < "u" && (X.output = L);
3410
3410
  const U = new URL(this.client.config.endpoint + te);
3411
3411
  X.project = this.client.config.project, X.impersonateuserid = this.client.config.impersonateuserid;
3412
3412
  for (const [Y, Q] of Object.entries(ye.flatten(X)))
@@ -3414,7 +3414,7 @@ class tn {
3414
3414
  return U.toString();
3415
3415
  }
3416
3416
  }
3417
- class Gn {
3417
+ class Jn {
3418
3418
  constructor(e) {
3419
3419
  this.client = e;
3420
3420
  }
@@ -3527,11 +3527,11 @@ class Gn {
3527
3527
  throw new h('Missing required parameter: "collectionId"');
3528
3528
  const p = "/databases/{databaseId}/collections/{collectionId}/documents".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))), u = {};
3529
3529
  typeof s < "u" && (u.queries = s), typeof r < "u" && (u.transactionId = r), typeof d < "u" && (u.total = d), typeof c < "u" && (u.ttl = c);
3530
- const m = new URL(this.client.config.endpoint + p), j = {
3530
+ const m = new URL(this.client.config.endpoint + p), $ = {
3531
3531
  "X-Appwrite-Project": this.client.config.project,
3532
3532
  accept: "application/json"
3533
3533
  };
3534
- return this.client.call("get", m, j, u);
3534
+ return this.client.call("get", m, $, u);
3535
3535
  }
3536
3536
  createDocument(e, ...n) {
3537
3537
  let i;
@@ -3554,12 +3554,12 @@ class Gn {
3554
3554
  throw new h('Missing required parameter: "data"');
3555
3555
  const p = "/databases/{databaseId}/collections/{collectionId}/documents".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))), u = {};
3556
3556
  typeof s < "u" && (u.documentId = s), typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
3557
- const m = new URL(this.client.config.endpoint + p), j = {
3557
+ const m = new URL(this.client.config.endpoint + p), $ = {
3558
3558
  "X-Appwrite-Project": this.client.config.project,
3559
3559
  "content-type": "application/json",
3560
3560
  accept: "application/json"
3561
3561
  };
3562
- return this.client.call("post", m, j, u);
3562
+ return this.client.call("post", m, $, u);
3563
3563
  }
3564
3564
  getDocument(e, ...n) {
3565
3565
  let i;
@@ -3604,12 +3604,12 @@ class Gn {
3604
3604
  throw new h('Missing required parameter: "documentId"');
3605
3605
  const p = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))), u = {};
3606
3606
  typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
3607
- const m = new URL(this.client.config.endpoint + p), j = {
3607
+ const m = new URL(this.client.config.endpoint + p), $ = {
3608
3608
  "X-Appwrite-Project": this.client.config.project,
3609
3609
  "content-type": "application/json",
3610
3610
  accept: "application/json"
3611
3611
  };
3612
- return this.client.call("put", m, j, u);
3612
+ return this.client.call("put", m, $, u);
3613
3613
  }
3614
3614
  updateDocument(e, ...n) {
3615
3615
  let i;
@@ -3630,12 +3630,12 @@ class Gn {
3630
3630
  throw new h('Missing required parameter: "documentId"');
3631
3631
  const p = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))), u = {};
3632
3632
  typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
3633
- const m = new URL(this.client.config.endpoint + p), j = {
3633
+ const m = new URL(this.client.config.endpoint + p), $ = {
3634
3634
  "X-Appwrite-Project": this.client.config.project,
3635
3635
  "content-type": "application/json",
3636
3636
  accept: "application/json"
3637
3637
  };
3638
- return this.client.call("patch", m, j, u);
3638
+ return this.client.call("patch", m, $, u);
3639
3639
  }
3640
3640
  deleteDocument(e, ...n) {
3641
3641
  let i;
@@ -3682,12 +3682,12 @@ class Gn {
3682
3682
  throw new h('Missing required parameter: "attribute"');
3683
3683
  const u = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/decrement".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))).replace("{attribute}", encodeURIComponent(String(r))), m = {};
3684
3684
  typeof d < "u" && (m.value = d), typeof c < "u" && (m.min = c), typeof p < "u" && (m.transactionId = p);
3685
- const j = new URL(this.client.config.endpoint + u), q = {
3685
+ const $ = new URL(this.client.config.endpoint + u), E = {
3686
3686
  "X-Appwrite-Project": this.client.config.project,
3687
3687
  "content-type": "application/json",
3688
3688
  accept: "application/json"
3689
3689
  };
3690
- return this.client.call("patch", j, q, m);
3690
+ return this.client.call("patch", $, E, m);
3691
3691
  }
3692
3692
  incrementDocumentAttribute(e, ...n) {
3693
3693
  let i;
@@ -3711,15 +3711,15 @@ class Gn {
3711
3711
  throw new h('Missing required parameter: "attribute"');
3712
3712
  const u = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/increment".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))).replace("{attribute}", encodeURIComponent(String(r))), m = {};
3713
3713
  typeof d < "u" && (m.value = d), typeof c < "u" && (m.max = c), typeof p < "u" && (m.transactionId = p);
3714
- const j = new URL(this.client.config.endpoint + u), q = {
3714
+ const $ = new URL(this.client.config.endpoint + u), E = {
3715
3715
  "X-Appwrite-Project": this.client.config.project,
3716
3716
  "content-type": "application/json",
3717
3717
  accept: "application/json"
3718
3718
  };
3719
- return this.client.call("patch", j, q, m);
3719
+ return this.client.call("patch", $, E, m);
3720
3720
  }
3721
3721
  }
3722
- class Kn {
3722
+ class Zn {
3723
3723
  constructor(e) {
3724
3724
  this.client = e;
3725
3725
  }
@@ -3832,11 +3832,11 @@ class Kn {
3832
3832
  throw new h('Missing required parameter: "collectionId"');
3833
3833
  const p = "/documentsdb/{databaseId}/collections/{collectionId}/documents".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))), u = {};
3834
3834
  typeof s < "u" && (u.queries = s), typeof r < "u" && (u.transactionId = r), typeof d < "u" && (u.total = d), typeof c < "u" && (u.ttl = c);
3835
- const m = new URL(this.client.config.endpoint + p), j = {
3835
+ const m = new URL(this.client.config.endpoint + p), $ = {
3836
3836
  "X-Appwrite-Project": this.client.config.project,
3837
3837
  accept: "application/json"
3838
3838
  };
3839
- return this.client.call("get", m, j, u);
3839
+ return this.client.call("get", m, $, u);
3840
3840
  }
3841
3841
  createDocument(e, ...n) {
3842
3842
  let i;
@@ -3859,12 +3859,12 @@ class Kn {
3859
3859
  throw new h('Missing required parameter: "data"');
3860
3860
  const p = "/documentsdb/{databaseId}/collections/{collectionId}/documents".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))), u = {};
3861
3861
  typeof s < "u" && (u.documentId = s), typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
3862
- const m = new URL(this.client.config.endpoint + p), j = {
3862
+ const m = new URL(this.client.config.endpoint + p), $ = {
3863
3863
  "X-Appwrite-Project": this.client.config.project,
3864
3864
  "content-type": "application/json",
3865
3865
  accept: "application/json"
3866
3866
  };
3867
- return this.client.call("post", m, j, u);
3867
+ return this.client.call("post", m, $, u);
3868
3868
  }
3869
3869
  createDocuments(e, ...n) {
3870
3870
  let i;
@@ -3933,12 +3933,12 @@ class Kn {
3933
3933
  throw new h('Missing required parameter: "documentId"');
3934
3934
  const p = "/documentsdb/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))), u = {};
3935
3935
  typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
3936
- const m = new URL(this.client.config.endpoint + p), j = {
3936
+ const m = new URL(this.client.config.endpoint + p), $ = {
3937
3937
  "X-Appwrite-Project": this.client.config.project,
3938
3938
  "content-type": "application/json",
3939
3939
  accept: "application/json"
3940
3940
  };
3941
- return this.client.call("put", m, j, u);
3941
+ return this.client.call("put", m, $, u);
3942
3942
  }
3943
3943
  updateDocument(e, ...n) {
3944
3944
  let i;
@@ -3959,12 +3959,12 @@ class Kn {
3959
3959
  throw new h('Missing required parameter: "documentId"');
3960
3960
  const p = "/documentsdb/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))), u = {};
3961
3961
  typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
3962
- const m = new URL(this.client.config.endpoint + p), j = {
3962
+ const m = new URL(this.client.config.endpoint + p), $ = {
3963
3963
  "X-Appwrite-Project": this.client.config.project,
3964
3964
  "content-type": "application/json",
3965
3965
  accept: "application/json"
3966
3966
  };
3967
- return this.client.call("patch", m, j, u);
3967
+ return this.client.call("patch", m, $, u);
3968
3968
  }
3969
3969
  deleteDocument(e, ...n) {
3970
3970
  let i;
@@ -4011,12 +4011,12 @@ class Kn {
4011
4011
  throw new h('Missing required parameter: "attribute"');
4012
4012
  const u = "/documentsdb/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/decrement".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))).replace("{attribute}", encodeURIComponent(String(r))), m = {};
4013
4013
  typeof d < "u" && (m.value = d), typeof c < "u" && (m.min = c), typeof p < "u" && (m.transactionId = p);
4014
- const j = new URL(this.client.config.endpoint + u), q = {
4014
+ const $ = new URL(this.client.config.endpoint + u), E = {
4015
4015
  "X-Appwrite-Project": this.client.config.project,
4016
4016
  "content-type": "application/json",
4017
4017
  accept: "application/json"
4018
4018
  };
4019
- return this.client.call("patch", j, q, m);
4019
+ return this.client.call("patch", $, E, m);
4020
4020
  }
4021
4021
  incrementDocumentAttribute(e, ...n) {
4022
4022
  let i;
@@ -4040,15 +4040,15 @@ class Kn {
4040
4040
  throw new h('Missing required parameter: "attribute"');
4041
4041
  const u = "/documentsdb/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/increment".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))).replace("{attribute}", encodeURIComponent(String(r))), m = {};
4042
4042
  typeof d < "u" && (m.value = d), typeof c < "u" && (m.max = c), typeof p < "u" && (m.transactionId = p);
4043
- const j = new URL(this.client.config.endpoint + u), q = {
4043
+ const $ = new URL(this.client.config.endpoint + u), E = {
4044
4044
  "X-Appwrite-Project": this.client.config.project,
4045
4045
  "content-type": "application/json",
4046
4046
  accept: "application/json"
4047
4047
  };
4048
- return this.client.call("patch", j, q, m);
4048
+ return this.client.call("patch", $, E, m);
4049
4049
  }
4050
4050
  }
4051
- class Yn {
4051
+ class Qn {
4052
4052
  constructor(e) {
4053
4053
  this.client = e;
4054
4054
  }
@@ -4086,12 +4086,12 @@ class Yn {
4086
4086
  throw new h('Missing required parameter: "functionId"');
4087
4087
  const u = "/functions/{functionId}/executions".replace("{functionId}", encodeURIComponent(String(o))), m = {};
4088
4088
  typeof a < "u" && (m.body = a), typeof s < "u" && (m.async = s), typeof r < "u" && (m.path = r), typeof d < "u" && (m.method = d), typeof c < "u" && (m.headers = c), typeof p < "u" && (m.scheduledAt = p);
4089
- const j = new URL(this.client.config.endpoint + u), q = {
4089
+ const $ = new URL(this.client.config.endpoint + u), E = {
4090
4090
  "X-Appwrite-Project": this.client.config.project,
4091
4091
  "content-type": "application/json",
4092
4092
  accept: "application/json"
4093
4093
  };
4094
- return this.client.call("post", j, q, m);
4094
+ return this.client.call("post", $, E, m);
4095
4095
  }
4096
4096
  getExecution(e, ...n) {
4097
4097
  let i;
@@ -4111,7 +4111,7 @@ class Yn {
4111
4111
  return this.client.call("get", d, c, r);
4112
4112
  }
4113
4113
  }
4114
- class Jn {
4114
+ class Tn {
4115
4115
  constructor(e) {
4116
4116
  this.client = e;
4117
4117
  }
@@ -4152,7 +4152,7 @@ class Jn {
4152
4152
  return this.client.call("post", s, r, a);
4153
4153
  }
4154
4154
  }
4155
- class Zn {
4155
+ class zn {
4156
4156
  constructor(e) {
4157
4157
  this.client = e;
4158
4158
  }
@@ -4263,7 +4263,7 @@ class Zn {
4263
4263
  return this.client.call("get", i, o, n);
4264
4264
  }
4265
4265
  }
4266
- class Qn {
4266
+ class On {
4267
4267
  constructor(e) {
4268
4268
  this.client = e;
4269
4269
  }
@@ -4308,7 +4308,7 @@ class Qn {
4308
4308
  return this.client.call("delete", d, c, r);
4309
4309
  }
4310
4310
  }
4311
- class Tn {
4311
+ class Fn {
4312
4312
  constructor(e) {
4313
4313
  this.client = e;
4314
4314
  }
@@ -4392,7 +4392,7 @@ class Tn {
4392
4392
  return this.client.call("delete", s, r, a);
4393
4393
  }
4394
4394
  }
4395
- class zn {
4395
+ class eo {
4396
4396
  constructor(e) {
4397
4397
  this.client = e;
4398
4398
  }
@@ -4463,12 +4463,12 @@ class zn {
4463
4463
  throw new h('Missing required parameter: "presenceId"');
4464
4464
  const p = "/presences/{presenceId}".replace("{presenceId}", encodeURIComponent(String(o))), u = {};
4465
4465
  typeof a < "u" && (u.status = a), typeof s < "u" && (u.expiresAt = s), typeof r < "u" && (u.metadata = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.purge = c);
4466
- const m = new URL(this.client.config.endpoint + p), j = {
4466
+ const m = new URL(this.client.config.endpoint + p), $ = {
4467
4467
  "X-Appwrite-Project": this.client.config.project,
4468
4468
  "content-type": "application/json",
4469
4469
  accept: "application/json"
4470
4470
  };
4471
- return this.client.call("patch", m, j, u);
4471
+ return this.client.call("patch", m, $, u);
4472
4472
  }
4473
4473
  delete(e) {
4474
4474
  let n;
@@ -4485,7 +4485,7 @@ class zn {
4485
4485
  return this.client.call("delete", s, r, a);
4486
4486
  }
4487
4487
  }
4488
- class On {
4488
+ class to {
4489
4489
  constructor(e) {
4490
4490
  this.client = e;
4491
4491
  }
@@ -4526,12 +4526,12 @@ class On {
4526
4526
  throw new h('Missing required parameter: "file"');
4527
4527
  const p = "/storage/buckets/{bucketId}/files".replace("{bucketId}", encodeURIComponent(String(a))), u = {};
4528
4528
  typeof s < "u" && (u.fileId = s), typeof r < "u" && (u.file = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.folder = c);
4529
- const m = new URL(this.client.config.endpoint + p), j = {
4529
+ const m = new URL(this.client.config.endpoint + p), $ = {
4530
4530
  "X-Appwrite-Project": this.client.config.project,
4531
4531
  "content-type": "multipart/form-data",
4532
4532
  accept: "application/json"
4533
4533
  };
4534
- return this.client.chunkedUpload("post", m, j, u, o);
4534
+ return this.client.chunkedUpload("post", m, $, u, o);
4535
4535
  }
4536
4536
  getFile(e, ...n) {
4537
4537
  let i;
@@ -4627,14 +4627,14 @@ class On {
4627
4627
  output: n[11],
4628
4628
  token: n[12]
4629
4629
  };
4630
- const o = i.bucketId, a = i.fileId, s = i.width, r = i.height, d = i.gravity, c = i.quality, p = i.borderWidth, u = i.borderColor, m = i.borderRadius, j = i.opacity, q = i.rotation, Z = i.background, V = i.output, K = i.token;
4630
+ const o = i.bucketId, a = i.fileId, s = i.width, r = i.height, d = i.gravity, c = i.quality, p = i.borderWidth, u = i.borderColor, m = i.borderRadius, $ = i.opacity, E = i.rotation, Z = i.background, W = i.output, K = i.token;
4631
4631
  if (typeof o > "u")
4632
4632
  throw new h('Missing required parameter: "bucketId"');
4633
4633
  if (typeof a > "u")
4634
4634
  throw new h('Missing required parameter: "fileId"');
4635
- const E = "/storage/buckets/{bucketId}/files/{fileId}/preview".replace("{bucketId}", encodeURIComponent(String(o))).replace("{fileId}", encodeURIComponent(String(a))), N = {};
4636
- typeof s < "u" && (N.width = s), typeof r < "u" && (N.height = r), typeof d < "u" && (N.gravity = d), typeof c < "u" && (N.quality = c), typeof p < "u" && (N.borderWidth = p), typeof u < "u" && (N.borderColor = u), typeof m < "u" && (N.borderRadius = m), typeof j < "u" && (N.opacity = j), typeof q < "u" && (N.rotation = q), typeof Z < "u" && (N.background = Z), typeof V < "u" && (N.output = V), typeof K < "u" && (N.token = K);
4637
- const J = new URL(this.client.config.endpoint + E);
4635
+ const q = "/storage/buckets/{bucketId}/files/{fileId}/preview".replace("{bucketId}", encodeURIComponent(String(o))).replace("{fileId}", encodeURIComponent(String(a))), N = {};
4636
+ typeof s < "u" && (N.width = s), typeof r < "u" && (N.height = r), typeof d < "u" && (N.gravity = d), typeof c < "u" && (N.quality = c), typeof p < "u" && (N.borderWidth = p), typeof u < "u" && (N.borderColor = u), typeof m < "u" && (N.borderRadius = m), typeof $ < "u" && (N.opacity = $), typeof E < "u" && (N.rotation = E), typeof Z < "u" && (N.background = Z), typeof W < "u" && (N.output = W), typeof K < "u" && (N.token = K);
4637
+ const J = new URL(this.client.config.endpoint + q);
4638
4638
  N.project = this.client.config.project, N.impersonateuserid = this.client.config.impersonateuserid;
4639
4639
  for (const [ae, H] of Object.entries(ye.flatten(N)))
4640
4640
  J.searchParams.append(ae, H);
@@ -4661,7 +4661,7 @@ class On {
4661
4661
  return c.toString();
4662
4662
  }
4663
4663
  }
4664
- class Fn {
4664
+ class io {
4665
4665
  constructor(e) {
4666
4666
  this.client = e;
4667
4667
  }
@@ -4774,11 +4774,11 @@ class Fn {
4774
4774
  throw new h('Missing required parameter: "tableId"');
4775
4775
  const p = "/tablesdb/{databaseId}/tables/{tableId}/rows".replace("{databaseId}", encodeURIComponent(String(o))).replace("{tableId}", encodeURIComponent(String(a))), u = {};
4776
4776
  typeof s < "u" && (u.queries = s), typeof r < "u" && (u.transactionId = r), typeof d < "u" && (u.total = d), typeof c < "u" && (u.ttl = c);
4777
- const m = new URL(this.client.config.endpoint + p), j = {
4777
+ const m = new URL(this.client.config.endpoint + p), $ = {
4778
4778
  "X-Appwrite-Project": this.client.config.project,
4779
4779
  accept: "application/json"
4780
4780
  };
4781
- return this.client.call("get", m, j, u);
4781
+ return this.client.call("get", m, $, u);
4782
4782
  }
4783
4783
  createRow(e, ...n) {
4784
4784
  let i;
@@ -4801,12 +4801,12 @@ class Fn {
4801
4801
  throw new h('Missing required parameter: "data"');
4802
4802
  const p = "/tablesdb/{databaseId}/tables/{tableId}/rows".replace("{databaseId}", encodeURIComponent(String(o))).replace("{tableId}", encodeURIComponent(String(a))), u = {};
4803
4803
  typeof s < "u" && (u.rowId = s), typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
4804
- const m = new URL(this.client.config.endpoint + p), j = {
4804
+ const m = new URL(this.client.config.endpoint + p), $ = {
4805
4805
  "X-Appwrite-Project": this.client.config.project,
4806
4806
  "content-type": "application/json",
4807
4807
  accept: "application/json"
4808
4808
  };
4809
- return this.client.call("post", m, j, u);
4809
+ return this.client.call("post", m, $, u);
4810
4810
  }
4811
4811
  getRow(e, ...n) {
4812
4812
  let i;
@@ -4851,12 +4851,12 @@ class Fn {
4851
4851
  throw new h('Missing required parameter: "rowId"');
4852
4852
  const p = "/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}".replace("{databaseId}", encodeURIComponent(String(o))).replace("{tableId}", encodeURIComponent(String(a))).replace("{rowId}", encodeURIComponent(String(s))), u = {};
4853
4853
  typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
4854
- const m = new URL(this.client.config.endpoint + p), j = {
4854
+ const m = new URL(this.client.config.endpoint + p), $ = {
4855
4855
  "X-Appwrite-Project": this.client.config.project,
4856
4856
  "content-type": "application/json",
4857
4857
  accept: "application/json"
4858
4858
  };
4859
- return this.client.call("put", m, j, u);
4859
+ return this.client.call("put", m, $, u);
4860
4860
  }
4861
4861
  updateRow(e, ...n) {
4862
4862
  let i;
@@ -4877,12 +4877,12 @@ class Fn {
4877
4877
  throw new h('Missing required parameter: "rowId"');
4878
4878
  const p = "/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}".replace("{databaseId}", encodeURIComponent(String(o))).replace("{tableId}", encodeURIComponent(String(a))).replace("{rowId}", encodeURIComponent(String(s))), u = {};
4879
4879
  typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
4880
- const m = new URL(this.client.config.endpoint + p), j = {
4880
+ const m = new URL(this.client.config.endpoint + p), $ = {
4881
4881
  "X-Appwrite-Project": this.client.config.project,
4882
4882
  "content-type": "application/json",
4883
4883
  accept: "application/json"
4884
4884
  };
4885
- return this.client.call("patch", m, j, u);
4885
+ return this.client.call("patch", m, $, u);
4886
4886
  }
4887
4887
  deleteRow(e, ...n) {
4888
4888
  let i;
@@ -4929,12 +4929,12 @@ class Fn {
4929
4929
  throw new h('Missing required parameter: "column"');
4930
4930
  const u = "/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement".replace("{databaseId}", encodeURIComponent(String(o))).replace("{tableId}", encodeURIComponent(String(a))).replace("{rowId}", encodeURIComponent(String(s))).replace("{column}", encodeURIComponent(String(r))), m = {};
4931
4931
  typeof d < "u" && (m.value = d), typeof c < "u" && (m.min = c), typeof p < "u" && (m.transactionId = p);
4932
- const j = new URL(this.client.config.endpoint + u), q = {
4932
+ const $ = new URL(this.client.config.endpoint + u), E = {
4933
4933
  "X-Appwrite-Project": this.client.config.project,
4934
4934
  "content-type": "application/json",
4935
4935
  accept: "application/json"
4936
4936
  };
4937
- return this.client.call("patch", j, q, m);
4937
+ return this.client.call("patch", $, E, m);
4938
4938
  }
4939
4939
  incrementRowColumn(e, ...n) {
4940
4940
  let i;
@@ -4958,15 +4958,15 @@ class Fn {
4958
4958
  throw new h('Missing required parameter: "column"');
4959
4959
  const u = "/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment".replace("{databaseId}", encodeURIComponent(String(o))).replace("{tableId}", encodeURIComponent(String(a))).replace("{rowId}", encodeURIComponent(String(s))).replace("{column}", encodeURIComponent(String(r))), m = {};
4960
4960
  typeof d < "u" && (m.value = d), typeof c < "u" && (m.max = c), typeof p < "u" && (m.transactionId = p);
4961
- const j = new URL(this.client.config.endpoint + u), q = {
4961
+ const $ = new URL(this.client.config.endpoint + u), E = {
4962
4962
  "X-Appwrite-Project": this.client.config.project,
4963
4963
  "content-type": "application/json",
4964
4964
  accept: "application/json"
4965
4965
  };
4966
- return this.client.call("patch", j, q, m);
4966
+ return this.client.call("patch", $, E, m);
4967
4967
  }
4968
4968
  }
4969
- class nn {
4969
+ class an {
4970
4970
  constructor(e) {
4971
4971
  this.client = e;
4972
4972
  }
@@ -5186,12 +5186,12 @@ class nn {
5186
5186
  throw new h('Missing required parameter: "roles"');
5187
5187
  const u = "/teams/{teamId}/memberships".replace("{teamId}", encodeURIComponent(String(o))), m = {};
5188
5188
  typeof s < "u" && (m.email = s), typeof r < "u" && (m.userId = r), typeof d < "u" && (m.phone = d), typeof a < "u" && (m.roles = a), typeof c < "u" && (m.url = c), typeof p < "u" && (m.name = p);
5189
- const j = new URL(this.client.config.endpoint + u), q = {
5189
+ const $ = new URL(this.client.config.endpoint + u), E = {
5190
5190
  "X-Appwrite-Project": this.client.config.project,
5191
5191
  "content-type": "application/json",
5192
5192
  accept: "application/json"
5193
5193
  };
5194
- return this.client.call("post", j, q, m);
5194
+ return this.client.call("post", $, E, m);
5195
5195
  }
5196
5196
  getMembership(e, ...n) {
5197
5197
  let i;
@@ -5311,7 +5311,7 @@ class nn {
5311
5311
  return this.client.call("put", d, c, r);
5312
5312
  }
5313
5313
  }
5314
- class eo {
5314
+ class no {
5315
5315
  constructor(e) {
5316
5316
  this.client = e;
5317
5317
  }
@@ -5424,11 +5424,11 @@ class eo {
5424
5424
  throw new h('Missing required parameter: "collectionId"');
5425
5425
  const p = "/vectorsdb/{databaseId}/collections/{collectionId}/documents".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))), u = {};
5426
5426
  typeof s < "u" && (u.queries = s), typeof r < "u" && (u.transactionId = r), typeof d < "u" && (u.total = d), typeof c < "u" && (u.ttl = c);
5427
- const m = new URL(this.client.config.endpoint + p), j = {
5427
+ const m = new URL(this.client.config.endpoint + p), $ = {
5428
5428
  "X-Appwrite-Project": this.client.config.project,
5429
5429
  accept: "application/json"
5430
5430
  };
5431
- return this.client.call("get", m, j, u);
5431
+ return this.client.call("get", m, $, u);
5432
5432
  }
5433
5433
  createDocument(e, ...n) {
5434
5434
  let i;
@@ -5451,12 +5451,12 @@ class eo {
5451
5451
  throw new h('Missing required parameter: "data"');
5452
5452
  const p = "/vectorsdb/{databaseId}/collections/{collectionId}/documents".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))), u = {};
5453
5453
  typeof s < "u" && (u.documentId = s), typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
5454
- const m = new URL(this.client.config.endpoint + p), j = {
5454
+ const m = new URL(this.client.config.endpoint + p), $ = {
5455
5455
  "X-Appwrite-Project": this.client.config.project,
5456
5456
  "content-type": "application/json",
5457
5457
  accept: "application/json"
5458
5458
  };
5459
- return this.client.call("post", m, j, u);
5459
+ return this.client.call("post", m, $, u);
5460
5460
  }
5461
5461
  createQuery(e, ...n) {
5462
5462
  let i;
@@ -5475,12 +5475,12 @@ class eo {
5475
5475
  throw new h('Missing required parameter: "collectionId"');
5476
5476
  const p = "/vectorsdb/{databaseId}/collections/{collectionId}/documents/query".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))), u = {};
5477
5477
  typeof s < "u" && (u.queries = s), typeof r < "u" && (u.transactionId = r), typeof d < "u" && (u.total = d), typeof c < "u" && (u.ttl = c);
5478
- const m = new URL(this.client.config.endpoint + p), j = {
5478
+ const m = new URL(this.client.config.endpoint + p), $ = {
5479
5479
  "X-Appwrite-Project": this.client.config.project,
5480
5480
  "content-type": "application/json",
5481
5481
  accept: "application/json"
5482
5482
  };
5483
- return this.client.call("post", m, j, u);
5483
+ return this.client.call("post", m, $, u);
5484
5484
  }
5485
5485
  getDocument(e, ...n) {
5486
5486
  let i;
@@ -5525,12 +5525,12 @@ class eo {
5525
5525
  throw new h('Missing required parameter: "documentId"');
5526
5526
  const p = "/vectorsdb/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))), u = {};
5527
5527
  typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
5528
- const m = new URL(this.client.config.endpoint + p), j = {
5528
+ const m = new URL(this.client.config.endpoint + p), $ = {
5529
5529
  "X-Appwrite-Project": this.client.config.project,
5530
5530
  "content-type": "application/json",
5531
5531
  accept: "application/json"
5532
5532
  };
5533
- return this.client.call("put", m, j, u);
5533
+ return this.client.call("put", m, $, u);
5534
5534
  }
5535
5535
  updateDocument(e, ...n) {
5536
5536
  let i;
@@ -5551,12 +5551,12 @@ class eo {
5551
5551
  throw new h('Missing required parameter: "documentId"');
5552
5552
  const p = "/vectorsdb/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}", encodeURIComponent(String(o))).replace("{collectionId}", encodeURIComponent(String(a))).replace("{documentId}", encodeURIComponent(String(s))), u = {};
5553
5553
  typeof r < "u" && (u.data = r), typeof d < "u" && (u.permissions = d), typeof c < "u" && (u.transactionId = c);
5554
- const m = new URL(this.client.config.endpoint + p), j = {
5554
+ const m = new URL(this.client.config.endpoint + p), $ = {
5555
5555
  "X-Appwrite-Project": this.client.config.project,
5556
5556
  "content-type": "application/json",
5557
5557
  accept: "application/json"
5558
5558
  };
5559
- return this.client.call("patch", m, j, u);
5559
+ return this.client.call("patch", m, $, u);
5560
5560
  }
5561
5561
  deleteDocument(e, ...n) {
5562
5562
  let i;
@@ -5586,7 +5586,7 @@ var Ct;
5586
5586
  (function(t) {
5587
5587
  t[t.NORMAL_CLOSURE = 1e3] = "NORMAL_CLOSURE", t[t.POLICY_VIOLATION = 1008] = "POLICY_VIOLATION", t[t.UNKNOWN_ERROR = -1] = "UNKNOWN_ERROR";
5588
5588
  })(Ct || (Ct = {}));
5589
- class to {
5589
+ class oo {
5590
5590
  constructor(e) {
5591
5591
  this.TYPE_ERROR = "error", this.TYPE_EVENT = "event", this.TYPE_PONG = "pong", this.TYPE_CONNECTED = "connected", this.DEBOUNCE_MS = 1, this.HEARTBEAT_INTERVAL = 2e4, this.activeSubscriptions = /* @__PURE__ */ new Map(), this.pendingSubscribes = /* @__PURE__ */ new Map(), this.appConnected = !1, this.subCallDepth = 0, this.reconnectAttempts = 0, this.connectionId = 0, this.reconnect = !0, this.onErrorCallbacks = [], this.onCloseCallbacks = [], this.onOpenCallbacks = [], this.client = e;
5592
5592
  }
@@ -5674,7 +5674,7 @@ class to {
5674
5674
  }), p.addEventListener("close", (u) => Ie(this, void 0, void 0, function* () {
5675
5675
  if (c !== this.connectionId || p !== this.socket)
5676
5676
  return;
5677
- if (this.appConnected = !1, this.stopHeartbeat(), this.onCloseCallbacks.forEach((j) => j()), !this.reconnect || u.code === Ct.POLICY_VIOLATION) {
5677
+ if (this.appConnected = !1, this.stopHeartbeat(), this.onCloseCallbacks.forEach(($) => $()), !this.reconnect || u.code === Ct.POLICY_VIOLATION) {
5678
5678
  this.reconnect = !0;
5679
5679
  return;
5680
5680
  }
@@ -5682,15 +5682,15 @@ class to {
5682
5682
  console.log(`Realtime disconnected. Re-connecting in ${m / 1e3} seconds.`), yield this.sleep(m), this.reconnectAttempts++;
5683
5683
  try {
5684
5684
  yield this.createSocket();
5685
- } catch (j) {
5686
- console.error("Failed to reconnect:", j);
5685
+ } catch ($) {
5686
+ console.error("Failed to reconnect:", $);
5687
5687
  }
5688
5688
  })), p.addEventListener("error", (u) => {
5689
5689
  if (c !== this.connectionId || p !== this.socket)
5690
5690
  return;
5691
5691
  this.stopHeartbeat();
5692
5692
  const m = new Error("WebSocket error");
5693
- console.error("WebSocket error:", m.message), this.onErrorCallbacks.forEach((j) => j(m)), d(m);
5693
+ console.error("WebSocket error:", m.message), this.onErrorCallbacks.forEach(($) => $(m)), d(m);
5694
5694
  });
5695
5695
  } catch (c) {
5696
5696
  d(c);
@@ -5728,7 +5728,7 @@ class to {
5728
5728
  generateUniqueSubscriptionId() {
5729
5729
  const e = this.activeSubscriptions.size + 1;
5730
5730
  for (let n = 0; n < e; n++) {
5731
- const i = Xe.unique();
5731
+ const i = Ve.unique();
5732
5732
  if (!this.activeSubscriptions.has(i))
5733
5733
  return i;
5734
5734
  }
@@ -5773,13 +5773,13 @@ class to {
5773
5773
  }
5774
5774
  subscribe(e, n) {
5775
5775
  return Ie(this, arguments, void 0, function* (i, o, a = []) {
5776
- const r = (Array.isArray(i) ? i : [i]).map((q) => this.channelToString(q)), d = new Set(r), c = [];
5777
- for (const q of a ?? [])
5778
- if (Array.isArray(q))
5779
- for (const Z of q)
5776
+ const r = (Array.isArray(i) ? i : [i]).map((E) => this.channelToString(E)), d = new Set(r), c = [];
5777
+ for (const E of a ?? [])
5778
+ if (Array.isArray(E))
5779
+ for (const Z of E)
5780
5780
  c.push(typeof Z == "string" ? Z : Z.toString());
5781
5781
  else
5782
- c.push(typeof q == "string" ? q : q.toString());
5782
+ c.push(typeof E == "string" ? E : E.toString());
5783
5783
  const p = this.generateUniqueSubscriptionId();
5784
5784
  this.activeSubscriptions.set(p, {
5785
5785
  channels: d,
@@ -5794,22 +5794,22 @@ class to {
5794
5794
  const u = () => Ie(this, void 0, void 0, function* () {
5795
5795
  this.activeSubscriptions.has(p) && (this.activeSubscriptions.delete(p), this.pendingSubscribes.delete(p), this.sendUnsubscribeMessage([p]));
5796
5796
  });
5797
- return { unsubscribe: u, update: (q) => Ie(this, void 0, void 0, function* () {
5797
+ return { unsubscribe: u, update: (E) => Ie(this, void 0, void 0, function* () {
5798
5798
  const Z = this.activeSubscriptions.get(p);
5799
5799
  if (Z) {
5800
- if (q.channels !== void 0) {
5801
- const V = q.channels.map((K) => this.channelToString(K));
5802
- Z.channels = new Set(V);
5800
+ if (E.channels !== void 0) {
5801
+ const W = E.channels.map((K) => this.channelToString(K));
5802
+ Z.channels = new Set(W);
5803
5803
  }
5804
- if (q.queries !== void 0) {
5805
- const V = [];
5806
- for (const K of q.queries)
5804
+ if (E.queries !== void 0) {
5805
+ const W = [];
5806
+ for (const K of E.queries)
5807
5807
  if (Array.isArray(K))
5808
- for (const E of K)
5809
- V.push(typeof E == "string" ? E : E.toString());
5808
+ for (const q of K)
5809
+ W.push(typeof q == "string" ? q : q.toString());
5810
5810
  else
5811
- V.push(typeof K == "string" ? K : K.toString());
5812
- Z.queries = V;
5811
+ W.push(typeof K == "string" ? K : K.toString());
5812
+ Z.queries = W;
5813
5813
  }
5814
5814
  this.enqueuePendingSubscribe(p), this.subCallDepth++;
5815
5815
  try {
@@ -5914,14 +5914,14 @@ class to {
5914
5914
  }
5915
5915
  }
5916
5916
  }
5917
- class ot {
5917
+ class at {
5918
5918
  }
5919
- ot.read = (t) => `read("${t}")`;
5920
- ot.write = (t) => `write("${t}")`;
5921
- ot.create = (t) => `create("${t}")`;
5922
- ot.update = (t) => `update("${t}")`;
5923
- ot.delete = (t) => `delete("${t}")`;
5924
- class io {
5919
+ at.read = (t) => `read("${t}")`;
5920
+ at.write = (t) => `write("${t}")`;
5921
+ at.create = (t) => `create("${t}")`;
5922
+ at.update = (t) => `update("${t}")`;
5923
+ at.delete = (t) => `delete("${t}")`;
5924
+ class ao {
5925
5925
  /**
5926
5926
  * Grants access to anyone.
5927
5927
  *
@@ -6002,7 +6002,7 @@ class io {
6002
6002
  return `label:${e}`;
6003
6003
  }
6004
6004
  }
6005
- function _e(t) {
6005
+ function Ne(t) {
6006
6006
  if (t == null)
6007
6007
  throw new Error("Channel ID is required");
6008
6008
  const e = String(t).trim();
@@ -6015,7 +6015,7 @@ class Pe {
6015
6015
  this.segments = e;
6016
6016
  }
6017
6017
  next(e, n) {
6018
- const i = n === void 0 ? [...this.segments, e] : [...this.segments, e, _e(n)];
6018
+ const i = n === void 0 ? [...this.segments, e] : [...this.segments, e, Ne(n)];
6019
6019
  return new Pe(i);
6020
6020
  }
6021
6021
  resolve(e) {
@@ -6060,28 +6060,28 @@ class Pe {
6060
6060
  }
6061
6061
  // --- ROOT FACTORIES ---
6062
6062
  static database(e) {
6063
- return new Pe(["databases", _e(e)]);
6063
+ return new Pe(["databases", Ne(e)]);
6064
6064
  }
6065
6065
  static execution(e) {
6066
- return new Pe(["executions", _e(e)]);
6066
+ return new Pe(["executions", Ne(e)]);
6067
6067
  }
6068
6068
  static tablesdb(e) {
6069
- return new Pe(["tablesdb", _e(e)]);
6069
+ return new Pe(["tablesdb", Ne(e)]);
6070
6070
  }
6071
6071
  static bucket(e) {
6072
- return new Pe(["buckets", _e(e)]);
6072
+ return new Pe(["buckets", Ne(e)]);
6073
6073
  }
6074
6074
  static function(e) {
6075
- return new Pe(["functions", _e(e)]);
6075
+ return new Pe(["functions", Ne(e)]);
6076
6076
  }
6077
6077
  static team(e) {
6078
- return new Pe(["teams", _e(e)]);
6078
+ return new Pe(["teams", Ne(e)]);
6079
6079
  }
6080
6080
  static membership(e) {
6081
- return new Pe(["memberships", _e(e)]);
6081
+ return new Pe(["memberships", Ne(e)]);
6082
6082
  }
6083
6083
  static presence(e) {
6084
- return new Pe(["presences", _e(e)]);
6084
+ return new Pe(["presences", Ne(e)]);
6085
6085
  }
6086
6086
  static account() {
6087
6087
  return "account";
@@ -6109,10 +6109,10 @@ class Pe {
6109
6109
  return "presences";
6110
6110
  }
6111
6111
  }
6112
- var Yt;
6112
+ var Jt;
6113
6113
  (function(t) {
6114
6114
  t.Equal = "equal", t.NotEqual = "notEqual", t.GreaterThan = "greaterThan", t.GreaterThanEqual = "greaterThanEqual", t.LessThan = "lessThan", t.LessThanEqual = "lessThanEqual", t.Contains = "contains", t.IsNull = "isNull", t.IsNotNull = "isNotNull";
6115
- })(Yt || (Yt = {}));
6115
+ })(Jt || (Jt = {}));
6116
6116
  class T {
6117
6117
  /**
6118
6118
  * Constructor for Operator class.
@@ -6204,140 +6204,140 @@ T.toggle = () => new T("toggle", []).toString();
6204
6204
  T.dateAddDays = (t) => new T("dateAddDays", [t]).toString();
6205
6205
  T.dateSubDays = (t) => new T("dateSubDays", [t]).toString();
6206
6206
  T.dateSetNow = () => new T("dateSetNow", []).toString();
6207
- var Jt;
6208
- (function(t) {
6209
- t.Totp = "totp";
6210
- })(Jt || (Jt = {}));
6211
6207
  var Zt;
6212
6208
  (function(t) {
6213
- t.Email = "email", t.Phone = "phone", t.Totp = "totp", t.Recoverycode = "recoverycode", t.Custom = "custom";
6209
+ t.Totp = "totp";
6214
6210
  })(Zt || (Zt = {}));
6215
6211
  var Qt;
6216
6212
  (function(t) {
6217
- t.Amazon = "amazon", t.Apple = "apple", t.Appwrite = "appwrite", t.Auth0 = "auth0", t.Authentik = "authentik", t.Autodesk = "autodesk", t.Bitbucket = "bitbucket", t.Bitly = "bitly", t.Box = "box", t.Cloudflare = "cloudflare", t.Dailymotion = "dailymotion", t.Discord = "discord", t.Disqus = "disqus", t.Dropbox = "dropbox", t.Etsy = "etsy", t.Facebook = "facebook", t.Figma = "figma", t.Fusionauth = "fusionauth", t.Github = "github", t.Gitlab = "gitlab", t.Google = "google", t.Huggingface = "huggingface", t.Keycloak = "keycloak", t.Kick = "kick", t.Linkedin = "linkedin", t.Microsoft = "microsoft", t.Notion = "notion", t.Oidc = "oidc", t.Okta = "okta", t.Paypal = "paypal", t.PaypalSandbox = "paypalSandbox", t.Podio = "podio", t.Resend = "resend", t.Salesforce = "salesforce", t.Slack = "slack", t.Spotify = "spotify", t.Stripe = "stripe", t.Tradeshift = "tradeshift", t.TradeshiftBox = "tradeshiftBox", t.Twitch = "twitch", t.Wordpress = "wordpress", t.X = "x", t.Yahoo = "yahoo", t.Yammer = "yammer", t.Yandex = "yandex", t.Zoho = "zoho", t.Zoom = "zoom";
6213
+ t.Email = "email", t.Phone = "phone", t.Totp = "totp", t.Recoverycode = "recoverycode", t.Custom = "custom";
6218
6214
  })(Qt || (Qt = {}));
6219
6215
  var Tt;
6220
6216
  (function(t) {
6221
- t.AvantBrowser = "aa", t.AndroidWebViewBeta = "an", t.GoogleChrome = "ch", t.GoogleChromeIOS = "ci", t.GoogleChromeMobile = "cm", t.Chromium = "cr", t.MozillaFirefox = "ff", t.Safari = "sf", t.MobileSafari = "mf", t.MicrosoftEdge = "ps", t.MicrosoftEdgeIOS = "oi", t.OperaMini = "om", t.Opera = "op", t.OperaNext = "on";
6217
+ t.Amazon = "amazon", t.Apple = "apple", t.Appwrite = "appwrite", t.Auth0 = "auth0", t.Authentik = "authentik", t.Autodesk = "autodesk", t.Bitbucket = "bitbucket", t.Bitly = "bitly", t.Box = "box", t.Cloudflare = "cloudflare", t.Dailymotion = "dailymotion", t.Discord = "discord", t.Disqus = "disqus", t.Dropbox = "dropbox", t.Etsy = "etsy", t.Facebook = "facebook", t.Figma = "figma", t.Fusionauth = "fusionauth", t.Github = "github", t.Gitlab = "gitlab", t.Google = "google", t.Huggingface = "huggingface", t.Keycloak = "keycloak", t.Kick = "kick", t.Linkedin = "linkedin", t.Microsoft = "microsoft", t.Notion = "notion", t.Oidc = "oidc", t.Okta = "okta", t.Paypal = "paypal", t.PaypalSandbox = "paypalSandbox", t.Podio = "podio", t.Resend = "resend", t.Salesforce = "salesforce", t.Slack = "slack", t.Spotify = "spotify", t.Stripe = "stripe", t.Tradeshift = "tradeshift", t.TradeshiftBox = "tradeshiftBox", t.Twitch = "twitch", t.Wordpress = "wordpress", t.X = "x", t.Yahoo = "yahoo", t.Yammer = "yammer", t.Yandex = "yandex", t.Zoho = "zoho", t.Zoom = "zoom";
6222
6218
  })(Tt || (Tt = {}));
6223
6219
  var zt;
6224
6220
  (function(t) {
6225
- t.AmericanExpress = "amex", t.Argencard = "argencard", t.Cabal = "cabal", t.Cencosud = "cencosud", t.DinersClub = "diners", t.Discover = "discover", t.Elo = "elo", t.Hipercard = "hipercard", t.JCB = "jcb", t.Mastercard = "mastercard", t.Naranja = "naranja", t.TarjetaShopping = "targeta-shopping", t.UnionPay = "unionpay", t.Visa = "visa", t.MIR = "mir", t.Maestro = "maestro", t.Rupay = "rupay";
6221
+ t.AvantBrowser = "aa", t.AndroidWebViewBeta = "an", t.GoogleChrome = "ch", t.GoogleChromeIOS = "ci", t.GoogleChromeMobile = "cm", t.Chromium = "cr", t.MozillaFirefox = "ff", t.Safari = "sf", t.MobileSafari = "mf", t.MicrosoftEdge = "ps", t.MicrosoftEdgeIOS = "oi", t.OperaMini = "om", t.Opera = "op", t.OperaNext = "on";
6226
6222
  })(zt || (zt = {}));
6227
6223
  var Ot;
6228
6224
  (function(t) {
6229
- t.Afghanistan = "af", t.Angola = "ao", t.Albania = "al", t.Andorra = "ad", t.UnitedArabEmirates = "ae", t.Argentina = "ar", t.Armenia = "am", t.AntiguaAndBarbuda = "ag", t.Australia = "au", t.Austria = "at", t.Azerbaijan = "az", t.Burundi = "bi", t.Belgium = "be", t.Benin = "bj", t.BurkinaFaso = "bf", t.Bangladesh = "bd", t.Bulgaria = "bg", t.Bahrain = "bh", t.Bahamas = "bs", t.BosniaAndHerzegovina = "ba", t.Belarus = "by", t.Belize = "bz", t.Bolivia = "bo", t.Brazil = "br", t.Barbados = "bb", t.BruneiDarussalam = "bn", t.Bhutan = "bt", t.Botswana = "bw", t.CentralAfricanRepublic = "cf", t.Canada = "ca", t.Switzerland = "ch", t.Chile = "cl", t.China = "cn", t.CoteDIvoire = "ci", t.Cameroon = "cm", t.DemocraticRepublicOfTheCongo = "cd", t.RepublicOfTheCongo = "cg", t.Colombia = "co", t.Comoros = "km", t.CapeVerde = "cv", t.CostaRica = "cr", t.Cuba = "cu", t.Cyprus = "cy", t.CzechRepublic = "cz", t.Germany = "de", t.Djibouti = "dj", t.Dominica = "dm", t.Denmark = "dk", t.DominicanRepublic = "do", t.Algeria = "dz", t.Ecuador = "ec", t.Egypt = "eg", t.Eritrea = "er", t.Spain = "es", t.Estonia = "ee", t.Ethiopia = "et", t.Finland = "fi", t.Fiji = "fj", t.France = "fr", t.MicronesiaFederatedStatesOf = "fm", t.Gabon = "ga", t.UnitedKingdom = "gb", t.Georgia = "ge", t.Ghana = "gh", t.Guinea = "gn", t.Gambia = "gm", t.GuineaBissau = "gw", t.EquatorialGuinea = "gq", t.Greece = "gr", t.Grenada = "gd", t.Guatemala = "gt", t.Guyana = "gy", t.Honduras = "hn", t.Croatia = "hr", t.Haiti = "ht", t.Hungary = "hu", t.Indonesia = "id", t.India = "in", t.Ireland = "ie", t.IranIslamicRepublicOf = "ir", t.Iraq = "iq", t.Iceland = "is", t.Israel = "il", t.Italy = "it", t.Jamaica = "jm", t.Jordan = "jo", t.Japan = "jp", t.Kazakhstan = "kz", t.Kenya = "ke", t.Kyrgyzstan = "kg", t.Cambodia = "kh", t.Kiribati = "ki", t.SaintKittsAndNevis = "kn", t.SouthKorea = "kr", t.Kuwait = "kw", t.LaoPeopleSDemocraticRepublic = "la", t.Lebanon = "lb", t.Liberia = "lr", t.Libya = "ly", t.SaintLucia = "lc", t.Liechtenstein = "li", t.SriLanka = "lk", t.Lesotho = "ls", t.Lithuania = "lt", t.Luxembourg = "lu", t.Latvia = "lv", t.Morocco = "ma", t.Monaco = "mc", t.Moldova = "md", t.Madagascar = "mg", t.Maldives = "mv", t.Mexico = "mx", t.MarshallIslands = "mh", t.NorthMacedonia = "mk", t.Mali = "ml", t.Malta = "mt", t.Myanmar = "mm", t.Montenegro = "me", t.Mongolia = "mn", t.Mozambique = "mz", t.Mauritania = "mr", t.Mauritius = "mu", t.Malawi = "mw", t.Malaysia = "my", t.Namibia = "na", t.Niger = "ne", t.Nigeria = "ng", t.Nicaragua = "ni", t.Netherlands = "nl", t.Norway = "no", t.Nepal = "np", t.Nauru = "nr", t.NewZealand = "nz", t.Oman = "om", t.Pakistan = "pk", t.Panama = "pa", t.Peru = "pe", t.Philippines = "ph", t.Palau = "pw", t.PapuaNewGuinea = "pg", t.Poland = "pl", t.FrenchPolynesia = "pf", t.NorthKorea = "kp", t.Portugal = "pt", t.Paraguay = "py", t.Qatar = "qa", t.Romania = "ro", t.Russia = "ru", t.Rwanda = "rw", t.SaudiArabia = "sa", t.Sudan = "sd", t.Senegal = "sn", t.Singapore = "sg", t.SolomonIslands = "sb", t.SierraLeone = "sl", t.ElSalvador = "sv", t.SanMarino = "sm", t.Somalia = "so", t.Serbia = "rs", t.SouthSudan = "ss", t.SaoTomeAndPrincipe = "st", t.Suriname = "sr", t.Slovakia = "sk", t.Slovenia = "si", t.Sweden = "se", t.Eswatini = "sz", t.Seychelles = "sc", t.Syria = "sy", t.Chad = "td", t.Togo = "tg", t.Thailand = "th", t.Tajikistan = "tj", t.Turkmenistan = "tm", t.TimorLeste = "tl", t.Tonga = "to", t.TrinidadAndTobago = "tt", t.Tunisia = "tn", t.Turkey = "tr", t.Tuvalu = "tv", t.Tanzania = "tz", t.Uganda = "ug", t.Ukraine = "ua", t.Uruguay = "uy", t.UnitedStates = "us", t.Uzbekistan = "uz", t.VaticanCity = "va", t.SaintVincentAndTheGrenadines = "vc", t.Venezuela = "ve", t.Vietnam = "vn", t.Vanuatu = "vu", t.Samoa = "ws", t.Yemen = "ye", t.SouthAfrica = "za", t.Zambia = "zm", t.Zimbabwe = "zw";
6225
+ t.AmericanExpress = "amex", t.Argencard = "argencard", t.Cabal = "cabal", t.Cencosud = "cencosud", t.DinersClub = "diners", t.Discover = "discover", t.Elo = "elo", t.Hipercard = "hipercard", t.JCB = "jcb", t.Mastercard = "mastercard", t.Naranja = "naranja", t.TarjetaShopping = "targeta-shopping", t.UnionPay = "unionpay", t.Visa = "visa", t.MIR = "mir", t.Maestro = "maestro", t.Rupay = "rupay";
6230
6226
  })(Ot || (Ot = {}));
6231
6227
  var Ft;
6232
6228
  (function(t) {
6233
- t.Light = "light", t.Dark = "dark";
6229
+ t.Afghanistan = "af", t.Angola = "ao", t.Albania = "al", t.Andorra = "ad", t.UnitedArabEmirates = "ae", t.Argentina = "ar", t.Armenia = "am", t.AntiguaAndBarbuda = "ag", t.Australia = "au", t.Austria = "at", t.Azerbaijan = "az", t.Burundi = "bi", t.Belgium = "be", t.Benin = "bj", t.BurkinaFaso = "bf", t.Bangladesh = "bd", t.Bulgaria = "bg", t.Bahrain = "bh", t.Bahamas = "bs", t.BosniaAndHerzegovina = "ba", t.Belarus = "by", t.Belize = "bz", t.Bolivia = "bo", t.Brazil = "br", t.Barbados = "bb", t.BruneiDarussalam = "bn", t.Bhutan = "bt", t.Botswana = "bw", t.CentralAfricanRepublic = "cf", t.Canada = "ca", t.Switzerland = "ch", t.Chile = "cl", t.China = "cn", t.CoteDIvoire = "ci", t.Cameroon = "cm", t.DemocraticRepublicOfTheCongo = "cd", t.RepublicOfTheCongo = "cg", t.Colombia = "co", t.Comoros = "km", t.CapeVerde = "cv", t.CostaRica = "cr", t.Cuba = "cu", t.Cyprus = "cy", t.CzechRepublic = "cz", t.Germany = "de", t.Djibouti = "dj", t.Dominica = "dm", t.Denmark = "dk", t.DominicanRepublic = "do", t.Algeria = "dz", t.Ecuador = "ec", t.Egypt = "eg", t.Eritrea = "er", t.Spain = "es", t.Estonia = "ee", t.Ethiopia = "et", t.Finland = "fi", t.Fiji = "fj", t.France = "fr", t.MicronesiaFederatedStatesOf = "fm", t.Gabon = "ga", t.UnitedKingdom = "gb", t.Georgia = "ge", t.Ghana = "gh", t.Guinea = "gn", t.Gambia = "gm", t.GuineaBissau = "gw", t.EquatorialGuinea = "gq", t.Greece = "gr", t.Grenada = "gd", t.Guatemala = "gt", t.Guyana = "gy", t.Honduras = "hn", t.Croatia = "hr", t.Haiti = "ht", t.Hungary = "hu", t.Indonesia = "id", t.India = "in", t.Ireland = "ie", t.IranIslamicRepublicOf = "ir", t.Iraq = "iq", t.Iceland = "is", t.Israel = "il", t.Italy = "it", t.Jamaica = "jm", t.Jordan = "jo", t.Japan = "jp", t.Kazakhstan = "kz", t.Kenya = "ke", t.Kyrgyzstan = "kg", t.Cambodia = "kh", t.Kiribati = "ki", t.SaintKittsAndNevis = "kn", t.SouthKorea = "kr", t.Kuwait = "kw", t.LaoPeopleSDemocraticRepublic = "la", t.Lebanon = "lb", t.Liberia = "lr", t.Libya = "ly", t.SaintLucia = "lc", t.Liechtenstein = "li", t.SriLanka = "lk", t.Lesotho = "ls", t.Lithuania = "lt", t.Luxembourg = "lu", t.Latvia = "lv", t.Morocco = "ma", t.Monaco = "mc", t.Moldova = "md", t.Madagascar = "mg", t.Maldives = "mv", t.Mexico = "mx", t.MarshallIslands = "mh", t.NorthMacedonia = "mk", t.Mali = "ml", t.Malta = "mt", t.Myanmar = "mm", t.Montenegro = "me", t.Mongolia = "mn", t.Mozambique = "mz", t.Mauritania = "mr", t.Mauritius = "mu", t.Malawi = "mw", t.Malaysia = "my", t.Namibia = "na", t.Niger = "ne", t.Nigeria = "ng", t.Nicaragua = "ni", t.Netherlands = "nl", t.Norway = "no", t.Nepal = "np", t.Nauru = "nr", t.NewZealand = "nz", t.Oman = "om", t.Pakistan = "pk", t.Panama = "pa", t.Peru = "pe", t.Philippines = "ph", t.Palau = "pw", t.PapuaNewGuinea = "pg", t.Poland = "pl", t.FrenchPolynesia = "pf", t.NorthKorea = "kp", t.Portugal = "pt", t.Paraguay = "py", t.Qatar = "qa", t.Romania = "ro", t.Russia = "ru", t.Rwanda = "rw", t.SaudiArabia = "sa", t.Sudan = "sd", t.Senegal = "sn", t.Singapore = "sg", t.SolomonIslands = "sb", t.SierraLeone = "sl", t.ElSalvador = "sv", t.SanMarino = "sm", t.Somalia = "so", t.Serbia = "rs", t.SouthSudan = "ss", t.SaoTomeAndPrincipe = "st", t.Suriname = "sr", t.Slovakia = "sk", t.Slovenia = "si", t.Sweden = "se", t.Eswatini = "sz", t.Seychelles = "sc", t.Syria = "sy", t.Chad = "td", t.Togo = "tg", t.Thailand = "th", t.Tajikistan = "tj", t.Turkmenistan = "tm", t.TimorLeste = "tl", t.Tonga = "to", t.TrinidadAndTobago = "tt", t.Tunisia = "tn", t.Turkey = "tr", t.Tuvalu = "tv", t.Tanzania = "tz", t.Uganda = "ug", t.Ukraine = "ua", t.Uruguay = "uy", t.UnitedStates = "us", t.Uzbekistan = "uz", t.VaticanCity = "va", t.SaintVincentAndTheGrenadines = "vc", t.Venezuela = "ve", t.Vietnam = "vn", t.Vanuatu = "vu", t.Samoa = "ws", t.Yemen = "ye", t.SouthAfrica = "za", t.Zambia = "zm", t.Zimbabwe = "zw";
6234
6230
  })(Ft || (Ft = {}));
6235
6231
  var ei;
6236
6232
  (function(t) {
6237
- t.AfricaAbidjan = "africa/abidjan", t.AfricaAccra = "africa/accra", t.AfricaAddisAbaba = "africa/addis_ababa", t.AfricaAlgiers = "africa/algiers", t.AfricaAsmara = "africa/asmara", t.AfricaBamako = "africa/bamako", t.AfricaBangui = "africa/bangui", t.AfricaBanjul = "africa/banjul", t.AfricaBissau = "africa/bissau", t.AfricaBlantyre = "africa/blantyre", t.AfricaBrazzaville = "africa/brazzaville", t.AfricaBujumbura = "africa/bujumbura", t.AfricaCairo = "africa/cairo", t.AfricaCasablanca = "africa/casablanca", t.AfricaCeuta = "africa/ceuta", t.AfricaConakry = "africa/conakry", t.AfricaDakar = "africa/dakar", t.AfricaDarEsSalaam = "africa/dar_es_salaam", t.AfricaDjibouti = "africa/djibouti", t.AfricaDouala = "africa/douala", t.AfricaElAaiun = "africa/el_aaiun", t.AfricaFreetown = "africa/freetown", t.AfricaGaborone = "africa/gaborone", t.AfricaHarare = "africa/harare", t.AfricaJohannesburg = "africa/johannesburg", t.AfricaJuba = "africa/juba", t.AfricaKampala = "africa/kampala", t.AfricaKhartoum = "africa/khartoum", t.AfricaKigali = "africa/kigali", t.AfricaKinshasa = "africa/kinshasa", t.AfricaLagos = "africa/lagos", t.AfricaLibreville = "africa/libreville", t.AfricaLome = "africa/lome", t.AfricaLuanda = "africa/luanda", t.AfricaLubumbashi = "africa/lubumbashi", t.AfricaLusaka = "africa/lusaka", t.AfricaMalabo = "africa/malabo", t.AfricaMaputo = "africa/maputo", t.AfricaMaseru = "africa/maseru", t.AfricaMbabane = "africa/mbabane", t.AfricaMogadishu = "africa/mogadishu", t.AfricaMonrovia = "africa/monrovia", t.AfricaNairobi = "africa/nairobi", t.AfricaNdjamena = "africa/ndjamena", t.AfricaNiamey = "africa/niamey", t.AfricaNouakchott = "africa/nouakchott", t.AfricaOuagadougou = "africa/ouagadougou", t.AfricaPortonovo = "africa/porto-novo", t.AfricaSaoTome = "africa/sao_tome", t.AfricaTripoli = "africa/tripoli", t.AfricaTunis = "africa/tunis", t.AfricaWindhoek = "africa/windhoek", t.AmericaAdak = "america/adak", t.AmericaAnchorage = "america/anchorage", t.AmericaAnguilla = "america/anguilla", t.AmericaAntigua = "america/antigua", t.AmericaAraguaina = "america/araguaina", t.AmericaArgentinaBuenosAires = "america/argentina/buenos_aires", t.AmericaArgentinaCatamarca = "america/argentina/catamarca", t.AmericaArgentinaCordoba = "america/argentina/cordoba", t.AmericaArgentinaJujuy = "america/argentina/jujuy", t.AmericaArgentinaLaRioja = "america/argentina/la_rioja", t.AmericaArgentinaMendoza = "america/argentina/mendoza", t.AmericaArgentinaRioGallegos = "america/argentina/rio_gallegos", t.AmericaArgentinaSalta = "america/argentina/salta", t.AmericaArgentinaSanJuan = "america/argentina/san_juan", t.AmericaArgentinaSanLuis = "america/argentina/san_luis", t.AmericaArgentinaTucuman = "america/argentina/tucuman", t.AmericaArgentinaUshuaia = "america/argentina/ushuaia", t.AmericaAruba = "america/aruba", t.AmericaAsuncion = "america/asuncion", t.AmericaAtikokan = "america/atikokan", t.AmericaBahia = "america/bahia", t.AmericaBahiaBanderas = "america/bahia_banderas", t.AmericaBarbados = "america/barbados", t.AmericaBelem = "america/belem", t.AmericaBelize = "america/belize", t.AmericaBlancsablon = "america/blanc-sablon", t.AmericaBoaVista = "america/boa_vista", t.AmericaBogota = "america/bogota", t.AmericaBoise = "america/boise", t.AmericaCambridgeBay = "america/cambridge_bay", t.AmericaCampoGrande = "america/campo_grande", t.AmericaCancun = "america/cancun", t.AmericaCaracas = "america/caracas", t.AmericaCayenne = "america/cayenne", t.AmericaCayman = "america/cayman", t.AmericaChicago = "america/chicago", t.AmericaChihuahua = "america/chihuahua", t.AmericaCiudadJuarez = "america/ciudad_juarez", t.AmericaCostaRica = "america/costa_rica", t.AmericaCoyhaique = "america/coyhaique", t.AmericaCreston = "america/creston", t.AmericaCuiaba = "america/cuiaba", t.AmericaCuracao = "america/curacao", t.AmericaDanmarkshavn = "america/danmarkshavn", t.AmericaDawson = "america/dawson", t.AmericaDawsonCreek = "america/dawson_creek", t.AmericaDenver = "america/denver", t.AmericaDetroit = "america/detroit", t.AmericaDominica = "america/dominica", t.AmericaEdmonton = "america/edmonton", t.AmericaEirunepe = "america/eirunepe", t.AmericaElSalvador = "america/el_salvador", t.AmericaFortNelson = "america/fort_nelson", t.AmericaFortaleza = "america/fortaleza", t.AmericaGlaceBay = "america/glace_bay", t.AmericaGooseBay = "america/goose_bay", t.AmericaGrandTurk = "america/grand_turk", t.AmericaGrenada = "america/grenada", t.AmericaGuadeloupe = "america/guadeloupe", t.AmericaGuatemala = "america/guatemala", t.AmericaGuayaquil = "america/guayaquil", t.AmericaGuyana = "america/guyana", t.AmericaHalifax = "america/halifax", t.AmericaHavana = "america/havana", t.AmericaHermosillo = "america/hermosillo", t.AmericaIndianaIndianapolis = "america/indiana/indianapolis", t.AmericaIndianaKnox = "america/indiana/knox", t.AmericaIndianaMarengo = "america/indiana/marengo", t.AmericaIndianaPetersburg = "america/indiana/petersburg", t.AmericaIndianaTellCity = "america/indiana/tell_city", t.AmericaIndianaVevay = "america/indiana/vevay", t.AmericaIndianaVincennes = "america/indiana/vincennes", t.AmericaIndianaWinamac = "america/indiana/winamac", t.AmericaInuvik = "america/inuvik", t.AmericaIqaluit = "america/iqaluit", t.AmericaJamaica = "america/jamaica", t.AmericaJuneau = "america/juneau", t.AmericaKentuckyLouisville = "america/kentucky/louisville", t.AmericaKentuckyMonticello = "america/kentucky/monticello", t.AmericaKralendijk = "america/kralendijk", t.AmericaLaPaz = "america/la_paz", t.AmericaLima = "america/lima", t.AmericaLosAngeles = "america/los_angeles", t.AmericaLowerPrinces = "america/lower_princes", t.AmericaMaceio = "america/maceio", t.AmericaManagua = "america/managua", t.AmericaManaus = "america/manaus", t.AmericaMarigot = "america/marigot", t.AmericaMartinique = "america/martinique", t.AmericaMatamoros = "america/matamoros", t.AmericaMazatlan = "america/mazatlan", t.AmericaMenominee = "america/menominee", t.AmericaMerida = "america/merida", t.AmericaMetlakatla = "america/metlakatla", t.AmericaMexicoCity = "america/mexico_city", t.AmericaMiquelon = "america/miquelon", t.AmericaMoncton = "america/moncton", t.AmericaMonterrey = "america/monterrey", t.AmericaMontevideo = "america/montevideo", t.AmericaMontserrat = "america/montserrat", t.AmericaNassau = "america/nassau", t.AmericaNewYork = "america/new_york", t.AmericaNome = "america/nome", t.AmericaNoronha = "america/noronha", t.AmericaNorthDakotaBeulah = "america/north_dakota/beulah", t.AmericaNorthDakotaCenter = "america/north_dakota/center", t.AmericaNorthDakotaNewSalem = "america/north_dakota/new_salem", t.AmericaNuuk = "america/nuuk", t.AmericaOjinaga = "america/ojinaga", t.AmericaPanama = "america/panama", t.AmericaParamaribo = "america/paramaribo", t.AmericaPhoenix = "america/phoenix", t.AmericaPortauprince = "america/port-au-prince", t.AmericaPortOfSpain = "america/port_of_spain", t.AmericaPortoVelho = "america/porto_velho", t.AmericaPuertoRico = "america/puerto_rico", t.AmericaPuntaArenas = "america/punta_arenas", t.AmericaRankinInlet = "america/rankin_inlet", t.AmericaRecife = "america/recife", t.AmericaRegina = "america/regina", t.AmericaResolute = "america/resolute", t.AmericaRioBranco = "america/rio_branco", t.AmericaSantarem = "america/santarem", t.AmericaSantiago = "america/santiago", t.AmericaSantoDomingo = "america/santo_domingo", t.AmericaSaoPaulo = "america/sao_paulo", t.AmericaScoresbysund = "america/scoresbysund", t.AmericaSitka = "america/sitka", t.AmericaStBarthelemy = "america/st_barthelemy", t.AmericaStJohns = "america/st_johns", t.AmericaStKitts = "america/st_kitts", t.AmericaStLucia = "america/st_lucia", t.AmericaStThomas = "america/st_thomas", t.AmericaStVincent = "america/st_vincent", t.AmericaSwiftCurrent = "america/swift_current", t.AmericaTegucigalpa = "america/tegucigalpa", t.AmericaThule = "america/thule", t.AmericaTijuana = "america/tijuana", t.AmericaToronto = "america/toronto", t.AmericaTortola = "america/tortola", t.AmericaVancouver = "america/vancouver", t.AmericaWhitehorse = "america/whitehorse", t.AmericaWinnipeg = "america/winnipeg", t.AmericaYakutat = "america/yakutat", t.AntarcticaCasey = "antarctica/casey", t.AntarcticaDavis = "antarctica/davis", t.AntarcticaDumontdurville = "antarctica/dumontdurville", t.AntarcticaMacquarie = "antarctica/macquarie", t.AntarcticaMawson = "antarctica/mawson", t.AntarcticaMcmurdo = "antarctica/mcmurdo", t.AntarcticaPalmer = "antarctica/palmer", t.AntarcticaRothera = "antarctica/rothera", t.AntarcticaSyowa = "antarctica/syowa", t.AntarcticaTroll = "antarctica/troll", t.AntarcticaVostok = "antarctica/vostok", t.ArcticLongyearbyen = "arctic/longyearbyen", t.AsiaAden = "asia/aden", t.AsiaAlmaty = "asia/almaty", t.AsiaAmman = "asia/amman", t.AsiaAnadyr = "asia/anadyr", t.AsiaAqtau = "asia/aqtau", t.AsiaAqtobe = "asia/aqtobe", t.AsiaAshgabat = "asia/ashgabat", t.AsiaAtyrau = "asia/atyrau", t.AsiaBaghdad = "asia/baghdad", t.AsiaBahrain = "asia/bahrain", t.AsiaBaku = "asia/baku", t.AsiaBangkok = "asia/bangkok", t.AsiaBarnaul = "asia/barnaul", t.AsiaBeirut = "asia/beirut", t.AsiaBishkek = "asia/bishkek", t.AsiaBrunei = "asia/brunei", t.AsiaChita = "asia/chita", t.AsiaColombo = "asia/colombo", t.AsiaDamascus = "asia/damascus", t.AsiaDhaka = "asia/dhaka", t.AsiaDili = "asia/dili", t.AsiaDubai = "asia/dubai", t.AsiaDushanbe = "asia/dushanbe", t.AsiaFamagusta = "asia/famagusta", t.AsiaGaza = "asia/gaza", t.AsiaHebron = "asia/hebron", t.AsiaHoChiMinh = "asia/ho_chi_minh", t.AsiaHongKong = "asia/hong_kong", t.AsiaHovd = "asia/hovd", t.AsiaIrkutsk = "asia/irkutsk", t.AsiaJakarta = "asia/jakarta", t.AsiaJayapura = "asia/jayapura", t.AsiaJerusalem = "asia/jerusalem", t.AsiaKabul = "asia/kabul", t.AsiaKamchatka = "asia/kamchatka", t.AsiaKarachi = "asia/karachi", t.AsiaKathmandu = "asia/kathmandu", t.AsiaKhandyga = "asia/khandyga", t.AsiaKolkata = "asia/kolkata", t.AsiaKrasnoyarsk = "asia/krasnoyarsk", t.AsiaKualaLumpur = "asia/kuala_lumpur", t.AsiaKuching = "asia/kuching", t.AsiaKuwait = "asia/kuwait", t.AsiaMacau = "asia/macau", t.AsiaMagadan = "asia/magadan", t.AsiaMakassar = "asia/makassar", t.AsiaManila = "asia/manila", t.AsiaMuscat = "asia/muscat", t.AsiaNicosia = "asia/nicosia", t.AsiaNovokuznetsk = "asia/novokuznetsk", t.AsiaNovosibirsk = "asia/novosibirsk", t.AsiaOmsk = "asia/omsk", t.AsiaOral = "asia/oral", t.AsiaPhnomPenh = "asia/phnom_penh", t.AsiaPontianak = "asia/pontianak", t.AsiaPyongyang = "asia/pyongyang", t.AsiaQatar = "asia/qatar", t.AsiaQostanay = "asia/qostanay", t.AsiaQyzylorda = "asia/qyzylorda", t.AsiaRiyadh = "asia/riyadh", t.AsiaSakhalin = "asia/sakhalin", t.AsiaSamarkand = "asia/samarkand", t.AsiaSeoul = "asia/seoul", t.AsiaShanghai = "asia/shanghai", t.AsiaSingapore = "asia/singapore", t.AsiaSrednekolymsk = "asia/srednekolymsk", t.AsiaTaipei = "asia/taipei", t.AsiaTashkent = "asia/tashkent", t.AsiaTbilisi = "asia/tbilisi", t.AsiaTehran = "asia/tehran", t.AsiaThimphu = "asia/thimphu", t.AsiaTokyo = "asia/tokyo", t.AsiaTomsk = "asia/tomsk", t.AsiaUlaanbaatar = "asia/ulaanbaatar", t.AsiaUrumqi = "asia/urumqi", t.AsiaUstnera = "asia/ust-nera", t.AsiaVientiane = "asia/vientiane", t.AsiaVladivostok = "asia/vladivostok", t.AsiaYakutsk = "asia/yakutsk", t.AsiaYangon = "asia/yangon", t.AsiaYekaterinburg = "asia/yekaterinburg", t.AsiaYerevan = "asia/yerevan", t.AtlanticAzores = "atlantic/azores", t.AtlanticBermuda = "atlantic/bermuda", t.AtlanticCanary = "atlantic/canary", t.AtlanticCapeVerde = "atlantic/cape_verde", t.AtlanticFaroe = "atlantic/faroe", t.AtlanticMadeira = "atlantic/madeira", t.AtlanticReykjavik = "atlantic/reykjavik", t.AtlanticSouthGeorgia = "atlantic/south_georgia", t.AtlanticStHelena = "atlantic/st_helena", t.AtlanticStanley = "atlantic/stanley", t.AustraliaAdelaide = "australia/adelaide", t.AustraliaBrisbane = "australia/brisbane", t.AustraliaBrokenHill = "australia/broken_hill", t.AustraliaDarwin = "australia/darwin", t.AustraliaEucla = "australia/eucla", t.AustraliaHobart = "australia/hobart", t.AustraliaLindeman = "australia/lindeman", t.AustraliaLordHowe = "australia/lord_howe", t.AustraliaMelbourne = "australia/melbourne", t.AustraliaPerth = "australia/perth", t.AustraliaSydney = "australia/sydney", t.EuropeAmsterdam = "europe/amsterdam", t.EuropeAndorra = "europe/andorra", t.EuropeAstrakhan = "europe/astrakhan", t.EuropeAthens = "europe/athens", t.EuropeBelgrade = "europe/belgrade", t.EuropeBerlin = "europe/berlin", t.EuropeBratislava = "europe/bratislava", t.EuropeBrussels = "europe/brussels", t.EuropeBucharest = "europe/bucharest", t.EuropeBudapest = "europe/budapest", t.EuropeBusingen = "europe/busingen", t.EuropeChisinau = "europe/chisinau", t.EuropeCopenhagen = "europe/copenhagen", t.EuropeDublin = "europe/dublin", t.EuropeGibraltar = "europe/gibraltar", t.EuropeGuernsey = "europe/guernsey", t.EuropeHelsinki = "europe/helsinki", t.EuropeIsleOfMan = "europe/isle_of_man", t.EuropeIstanbul = "europe/istanbul", t.EuropeJersey = "europe/jersey", t.EuropeKaliningrad = "europe/kaliningrad", t.EuropeKirov = "europe/kirov", t.EuropeKyiv = "europe/kyiv", t.EuropeLisbon = "europe/lisbon", t.EuropeLjubljana = "europe/ljubljana", t.EuropeLondon = "europe/london", t.EuropeLuxembourg = "europe/luxembourg", t.EuropeMadrid = "europe/madrid", t.EuropeMalta = "europe/malta", t.EuropeMariehamn = "europe/mariehamn", t.EuropeMinsk = "europe/minsk", t.EuropeMonaco = "europe/monaco", t.EuropeMoscow = "europe/moscow", t.EuropeOslo = "europe/oslo", t.EuropeParis = "europe/paris", t.EuropePodgorica = "europe/podgorica", t.EuropePrague = "europe/prague", t.EuropeRiga = "europe/riga", t.EuropeRome = "europe/rome", t.EuropeSamara = "europe/samara", t.EuropeSanMarino = "europe/san_marino", t.EuropeSarajevo = "europe/sarajevo", t.EuropeSaratov = "europe/saratov", t.EuropeSimferopol = "europe/simferopol", t.EuropeSkopje = "europe/skopje", t.EuropeSofia = "europe/sofia", t.EuropeStockholm = "europe/stockholm", t.EuropeTallinn = "europe/tallinn", t.EuropeTirane = "europe/tirane", t.EuropeUlyanovsk = "europe/ulyanovsk", t.EuropeVaduz = "europe/vaduz", t.EuropeVatican = "europe/vatican", t.EuropeVienna = "europe/vienna", t.EuropeVilnius = "europe/vilnius", t.EuropeVolgograd = "europe/volgograd", t.EuropeWarsaw = "europe/warsaw", t.EuropeZagreb = "europe/zagreb", t.EuropeZurich = "europe/zurich", t.IndianAntananarivo = "indian/antananarivo", t.IndianChagos = "indian/chagos", t.IndianChristmas = "indian/christmas", t.IndianCocos = "indian/cocos", t.IndianComoro = "indian/comoro", t.IndianKerguelen = "indian/kerguelen", t.IndianMahe = "indian/mahe", t.IndianMaldives = "indian/maldives", t.IndianMauritius = "indian/mauritius", t.IndianMayotte = "indian/mayotte", t.IndianReunion = "indian/reunion", t.PacificApia = "pacific/apia", t.PacificAuckland = "pacific/auckland", t.PacificBougainville = "pacific/bougainville", t.PacificChatham = "pacific/chatham", t.PacificChuuk = "pacific/chuuk", t.PacificEaster = "pacific/easter", t.PacificEfate = "pacific/efate", t.PacificFakaofo = "pacific/fakaofo", t.PacificFiji = "pacific/fiji", t.PacificFunafuti = "pacific/funafuti", t.PacificGalapagos = "pacific/galapagos", t.PacificGambier = "pacific/gambier", t.PacificGuadalcanal = "pacific/guadalcanal", t.PacificGuam = "pacific/guam", t.PacificHonolulu = "pacific/honolulu", t.PacificKanton = "pacific/kanton", t.PacificKiritimati = "pacific/kiritimati", t.PacificKosrae = "pacific/kosrae", t.PacificKwajalein = "pacific/kwajalein", t.PacificMajuro = "pacific/majuro", t.PacificMarquesas = "pacific/marquesas", t.PacificMidway = "pacific/midway", t.PacificNauru = "pacific/nauru", t.PacificNiue = "pacific/niue", t.PacificNorfolk = "pacific/norfolk", t.PacificNoumea = "pacific/noumea", t.PacificPagoPago = "pacific/pago_pago", t.PacificPalau = "pacific/palau", t.PacificPitcairn = "pacific/pitcairn", t.PacificPohnpei = "pacific/pohnpei", t.PacificPortMoresby = "pacific/port_moresby", t.PacificRarotonga = "pacific/rarotonga", t.PacificSaipan = "pacific/saipan", t.PacificTahiti = "pacific/tahiti", t.PacificTarawa = "pacific/tarawa", t.PacificTongatapu = "pacific/tongatapu", t.PacificWake = "pacific/wake", t.PacificWallis = "pacific/wallis", t.Utc = "utc";
6233
+ t.Light = "light", t.Dark = "dark";
6238
6234
  })(ei || (ei = {}));
6239
6235
  var ti;
6240
6236
  (function(t) {
6241
- t.Geolocation = "geolocation", t.Camera = "camera", t.Microphone = "microphone", t.Notifications = "notifications", t.Midi = "midi", t.Push = "push", t.Clipboardread = "clipboard-read", t.Clipboardwrite = "clipboard-write", t.Paymenthandler = "payment-handler", t.Usb = "usb", t.Bluetooth = "bluetooth", t.Accelerometer = "accelerometer", t.Gyroscope = "gyroscope", t.Magnetometer = "magnetometer", t.Ambientlightsensor = "ambient-light-sensor", t.Backgroundsync = "background-sync", t.Persistentstorage = "persistent-storage", t.Screenwakelock = "screen-wake-lock", t.Webshare = "web-share", t.Xrspatialtracking = "xr-spatial-tracking";
6237
+ t.AfricaAbidjan = "africa/abidjan", t.AfricaAccra = "africa/accra", t.AfricaAddisAbaba = "africa/addis_ababa", t.AfricaAlgiers = "africa/algiers", t.AfricaAsmara = "africa/asmara", t.AfricaBamako = "africa/bamako", t.AfricaBangui = "africa/bangui", t.AfricaBanjul = "africa/banjul", t.AfricaBissau = "africa/bissau", t.AfricaBlantyre = "africa/blantyre", t.AfricaBrazzaville = "africa/brazzaville", t.AfricaBujumbura = "africa/bujumbura", t.AfricaCairo = "africa/cairo", t.AfricaCasablanca = "africa/casablanca", t.AfricaCeuta = "africa/ceuta", t.AfricaConakry = "africa/conakry", t.AfricaDakar = "africa/dakar", t.AfricaDarEsSalaam = "africa/dar_es_salaam", t.AfricaDjibouti = "africa/djibouti", t.AfricaDouala = "africa/douala", t.AfricaElAaiun = "africa/el_aaiun", t.AfricaFreetown = "africa/freetown", t.AfricaGaborone = "africa/gaborone", t.AfricaHarare = "africa/harare", t.AfricaJohannesburg = "africa/johannesburg", t.AfricaJuba = "africa/juba", t.AfricaKampala = "africa/kampala", t.AfricaKhartoum = "africa/khartoum", t.AfricaKigali = "africa/kigali", t.AfricaKinshasa = "africa/kinshasa", t.AfricaLagos = "africa/lagos", t.AfricaLibreville = "africa/libreville", t.AfricaLome = "africa/lome", t.AfricaLuanda = "africa/luanda", t.AfricaLubumbashi = "africa/lubumbashi", t.AfricaLusaka = "africa/lusaka", t.AfricaMalabo = "africa/malabo", t.AfricaMaputo = "africa/maputo", t.AfricaMaseru = "africa/maseru", t.AfricaMbabane = "africa/mbabane", t.AfricaMogadishu = "africa/mogadishu", t.AfricaMonrovia = "africa/monrovia", t.AfricaNairobi = "africa/nairobi", t.AfricaNdjamena = "africa/ndjamena", t.AfricaNiamey = "africa/niamey", t.AfricaNouakchott = "africa/nouakchott", t.AfricaOuagadougou = "africa/ouagadougou", t.AfricaPortonovo = "africa/porto-novo", t.AfricaSaoTome = "africa/sao_tome", t.AfricaTripoli = "africa/tripoli", t.AfricaTunis = "africa/tunis", t.AfricaWindhoek = "africa/windhoek", t.AmericaAdak = "america/adak", t.AmericaAnchorage = "america/anchorage", t.AmericaAnguilla = "america/anguilla", t.AmericaAntigua = "america/antigua", t.AmericaAraguaina = "america/araguaina", t.AmericaArgentinaBuenosAires = "america/argentina/buenos_aires", t.AmericaArgentinaCatamarca = "america/argentina/catamarca", t.AmericaArgentinaCordoba = "america/argentina/cordoba", t.AmericaArgentinaJujuy = "america/argentina/jujuy", t.AmericaArgentinaLaRioja = "america/argentina/la_rioja", t.AmericaArgentinaMendoza = "america/argentina/mendoza", t.AmericaArgentinaRioGallegos = "america/argentina/rio_gallegos", t.AmericaArgentinaSalta = "america/argentina/salta", t.AmericaArgentinaSanJuan = "america/argentina/san_juan", t.AmericaArgentinaSanLuis = "america/argentina/san_luis", t.AmericaArgentinaTucuman = "america/argentina/tucuman", t.AmericaArgentinaUshuaia = "america/argentina/ushuaia", t.AmericaAruba = "america/aruba", t.AmericaAsuncion = "america/asuncion", t.AmericaAtikokan = "america/atikokan", t.AmericaBahia = "america/bahia", t.AmericaBahiaBanderas = "america/bahia_banderas", t.AmericaBarbados = "america/barbados", t.AmericaBelem = "america/belem", t.AmericaBelize = "america/belize", t.AmericaBlancsablon = "america/blanc-sablon", t.AmericaBoaVista = "america/boa_vista", t.AmericaBogota = "america/bogota", t.AmericaBoise = "america/boise", t.AmericaCambridgeBay = "america/cambridge_bay", t.AmericaCampoGrande = "america/campo_grande", t.AmericaCancun = "america/cancun", t.AmericaCaracas = "america/caracas", t.AmericaCayenne = "america/cayenne", t.AmericaCayman = "america/cayman", t.AmericaChicago = "america/chicago", t.AmericaChihuahua = "america/chihuahua", t.AmericaCiudadJuarez = "america/ciudad_juarez", t.AmericaCostaRica = "america/costa_rica", t.AmericaCoyhaique = "america/coyhaique", t.AmericaCreston = "america/creston", t.AmericaCuiaba = "america/cuiaba", t.AmericaCuracao = "america/curacao", t.AmericaDanmarkshavn = "america/danmarkshavn", t.AmericaDawson = "america/dawson", t.AmericaDawsonCreek = "america/dawson_creek", t.AmericaDenver = "america/denver", t.AmericaDetroit = "america/detroit", t.AmericaDominica = "america/dominica", t.AmericaEdmonton = "america/edmonton", t.AmericaEirunepe = "america/eirunepe", t.AmericaElSalvador = "america/el_salvador", t.AmericaFortNelson = "america/fort_nelson", t.AmericaFortaleza = "america/fortaleza", t.AmericaGlaceBay = "america/glace_bay", t.AmericaGooseBay = "america/goose_bay", t.AmericaGrandTurk = "america/grand_turk", t.AmericaGrenada = "america/grenada", t.AmericaGuadeloupe = "america/guadeloupe", t.AmericaGuatemala = "america/guatemala", t.AmericaGuayaquil = "america/guayaquil", t.AmericaGuyana = "america/guyana", t.AmericaHalifax = "america/halifax", t.AmericaHavana = "america/havana", t.AmericaHermosillo = "america/hermosillo", t.AmericaIndianaIndianapolis = "america/indiana/indianapolis", t.AmericaIndianaKnox = "america/indiana/knox", t.AmericaIndianaMarengo = "america/indiana/marengo", t.AmericaIndianaPetersburg = "america/indiana/petersburg", t.AmericaIndianaTellCity = "america/indiana/tell_city", t.AmericaIndianaVevay = "america/indiana/vevay", t.AmericaIndianaVincennes = "america/indiana/vincennes", t.AmericaIndianaWinamac = "america/indiana/winamac", t.AmericaInuvik = "america/inuvik", t.AmericaIqaluit = "america/iqaluit", t.AmericaJamaica = "america/jamaica", t.AmericaJuneau = "america/juneau", t.AmericaKentuckyLouisville = "america/kentucky/louisville", t.AmericaKentuckyMonticello = "america/kentucky/monticello", t.AmericaKralendijk = "america/kralendijk", t.AmericaLaPaz = "america/la_paz", t.AmericaLima = "america/lima", t.AmericaLosAngeles = "america/los_angeles", t.AmericaLowerPrinces = "america/lower_princes", t.AmericaMaceio = "america/maceio", t.AmericaManagua = "america/managua", t.AmericaManaus = "america/manaus", t.AmericaMarigot = "america/marigot", t.AmericaMartinique = "america/martinique", t.AmericaMatamoros = "america/matamoros", t.AmericaMazatlan = "america/mazatlan", t.AmericaMenominee = "america/menominee", t.AmericaMerida = "america/merida", t.AmericaMetlakatla = "america/metlakatla", t.AmericaMexicoCity = "america/mexico_city", t.AmericaMiquelon = "america/miquelon", t.AmericaMoncton = "america/moncton", t.AmericaMonterrey = "america/monterrey", t.AmericaMontevideo = "america/montevideo", t.AmericaMontserrat = "america/montserrat", t.AmericaNassau = "america/nassau", t.AmericaNewYork = "america/new_york", t.AmericaNome = "america/nome", t.AmericaNoronha = "america/noronha", t.AmericaNorthDakotaBeulah = "america/north_dakota/beulah", t.AmericaNorthDakotaCenter = "america/north_dakota/center", t.AmericaNorthDakotaNewSalem = "america/north_dakota/new_salem", t.AmericaNuuk = "america/nuuk", t.AmericaOjinaga = "america/ojinaga", t.AmericaPanama = "america/panama", t.AmericaParamaribo = "america/paramaribo", t.AmericaPhoenix = "america/phoenix", t.AmericaPortauprince = "america/port-au-prince", t.AmericaPortOfSpain = "america/port_of_spain", t.AmericaPortoVelho = "america/porto_velho", t.AmericaPuertoRico = "america/puerto_rico", t.AmericaPuntaArenas = "america/punta_arenas", t.AmericaRankinInlet = "america/rankin_inlet", t.AmericaRecife = "america/recife", t.AmericaRegina = "america/regina", t.AmericaResolute = "america/resolute", t.AmericaRioBranco = "america/rio_branco", t.AmericaSantarem = "america/santarem", t.AmericaSantiago = "america/santiago", t.AmericaSantoDomingo = "america/santo_domingo", t.AmericaSaoPaulo = "america/sao_paulo", t.AmericaScoresbysund = "america/scoresbysund", t.AmericaSitka = "america/sitka", t.AmericaStBarthelemy = "america/st_barthelemy", t.AmericaStJohns = "america/st_johns", t.AmericaStKitts = "america/st_kitts", t.AmericaStLucia = "america/st_lucia", t.AmericaStThomas = "america/st_thomas", t.AmericaStVincent = "america/st_vincent", t.AmericaSwiftCurrent = "america/swift_current", t.AmericaTegucigalpa = "america/tegucigalpa", t.AmericaThule = "america/thule", t.AmericaTijuana = "america/tijuana", t.AmericaToronto = "america/toronto", t.AmericaTortola = "america/tortola", t.AmericaVancouver = "america/vancouver", t.AmericaWhitehorse = "america/whitehorse", t.AmericaWinnipeg = "america/winnipeg", t.AmericaYakutat = "america/yakutat", t.AntarcticaCasey = "antarctica/casey", t.AntarcticaDavis = "antarctica/davis", t.AntarcticaDumontdurville = "antarctica/dumontdurville", t.AntarcticaMacquarie = "antarctica/macquarie", t.AntarcticaMawson = "antarctica/mawson", t.AntarcticaMcmurdo = "antarctica/mcmurdo", t.AntarcticaPalmer = "antarctica/palmer", t.AntarcticaRothera = "antarctica/rothera", t.AntarcticaSyowa = "antarctica/syowa", t.AntarcticaTroll = "antarctica/troll", t.AntarcticaVostok = "antarctica/vostok", t.ArcticLongyearbyen = "arctic/longyearbyen", t.AsiaAden = "asia/aden", t.AsiaAlmaty = "asia/almaty", t.AsiaAmman = "asia/amman", t.AsiaAnadyr = "asia/anadyr", t.AsiaAqtau = "asia/aqtau", t.AsiaAqtobe = "asia/aqtobe", t.AsiaAshgabat = "asia/ashgabat", t.AsiaAtyrau = "asia/atyrau", t.AsiaBaghdad = "asia/baghdad", t.AsiaBahrain = "asia/bahrain", t.AsiaBaku = "asia/baku", t.AsiaBangkok = "asia/bangkok", t.AsiaBarnaul = "asia/barnaul", t.AsiaBeirut = "asia/beirut", t.AsiaBishkek = "asia/bishkek", t.AsiaBrunei = "asia/brunei", t.AsiaChita = "asia/chita", t.AsiaColombo = "asia/colombo", t.AsiaDamascus = "asia/damascus", t.AsiaDhaka = "asia/dhaka", t.AsiaDili = "asia/dili", t.AsiaDubai = "asia/dubai", t.AsiaDushanbe = "asia/dushanbe", t.AsiaFamagusta = "asia/famagusta", t.AsiaGaza = "asia/gaza", t.AsiaHebron = "asia/hebron", t.AsiaHoChiMinh = "asia/ho_chi_minh", t.AsiaHongKong = "asia/hong_kong", t.AsiaHovd = "asia/hovd", t.AsiaIrkutsk = "asia/irkutsk", t.AsiaJakarta = "asia/jakarta", t.AsiaJayapura = "asia/jayapura", t.AsiaJerusalem = "asia/jerusalem", t.AsiaKabul = "asia/kabul", t.AsiaKamchatka = "asia/kamchatka", t.AsiaKarachi = "asia/karachi", t.AsiaKathmandu = "asia/kathmandu", t.AsiaKhandyga = "asia/khandyga", t.AsiaKolkata = "asia/kolkata", t.AsiaKrasnoyarsk = "asia/krasnoyarsk", t.AsiaKualaLumpur = "asia/kuala_lumpur", t.AsiaKuching = "asia/kuching", t.AsiaKuwait = "asia/kuwait", t.AsiaMacau = "asia/macau", t.AsiaMagadan = "asia/magadan", t.AsiaMakassar = "asia/makassar", t.AsiaManila = "asia/manila", t.AsiaMuscat = "asia/muscat", t.AsiaNicosia = "asia/nicosia", t.AsiaNovokuznetsk = "asia/novokuznetsk", t.AsiaNovosibirsk = "asia/novosibirsk", t.AsiaOmsk = "asia/omsk", t.AsiaOral = "asia/oral", t.AsiaPhnomPenh = "asia/phnom_penh", t.AsiaPontianak = "asia/pontianak", t.AsiaPyongyang = "asia/pyongyang", t.AsiaQatar = "asia/qatar", t.AsiaQostanay = "asia/qostanay", t.AsiaQyzylorda = "asia/qyzylorda", t.AsiaRiyadh = "asia/riyadh", t.AsiaSakhalin = "asia/sakhalin", t.AsiaSamarkand = "asia/samarkand", t.AsiaSeoul = "asia/seoul", t.AsiaShanghai = "asia/shanghai", t.AsiaSingapore = "asia/singapore", t.AsiaSrednekolymsk = "asia/srednekolymsk", t.AsiaTaipei = "asia/taipei", t.AsiaTashkent = "asia/tashkent", t.AsiaTbilisi = "asia/tbilisi", t.AsiaTehran = "asia/tehran", t.AsiaThimphu = "asia/thimphu", t.AsiaTokyo = "asia/tokyo", t.AsiaTomsk = "asia/tomsk", t.AsiaUlaanbaatar = "asia/ulaanbaatar", t.AsiaUrumqi = "asia/urumqi", t.AsiaUstnera = "asia/ust-nera", t.AsiaVientiane = "asia/vientiane", t.AsiaVladivostok = "asia/vladivostok", t.AsiaYakutsk = "asia/yakutsk", t.AsiaYangon = "asia/yangon", t.AsiaYekaterinburg = "asia/yekaterinburg", t.AsiaYerevan = "asia/yerevan", t.AtlanticAzores = "atlantic/azores", t.AtlanticBermuda = "atlantic/bermuda", t.AtlanticCanary = "atlantic/canary", t.AtlanticCapeVerde = "atlantic/cape_verde", t.AtlanticFaroe = "atlantic/faroe", t.AtlanticMadeira = "atlantic/madeira", t.AtlanticReykjavik = "atlantic/reykjavik", t.AtlanticSouthGeorgia = "atlantic/south_georgia", t.AtlanticStHelena = "atlantic/st_helena", t.AtlanticStanley = "atlantic/stanley", t.AustraliaAdelaide = "australia/adelaide", t.AustraliaBrisbane = "australia/brisbane", t.AustraliaBrokenHill = "australia/broken_hill", t.AustraliaDarwin = "australia/darwin", t.AustraliaEucla = "australia/eucla", t.AustraliaHobart = "australia/hobart", t.AustraliaLindeman = "australia/lindeman", t.AustraliaLordHowe = "australia/lord_howe", t.AustraliaMelbourne = "australia/melbourne", t.AustraliaPerth = "australia/perth", t.AustraliaSydney = "australia/sydney", t.EuropeAmsterdam = "europe/amsterdam", t.EuropeAndorra = "europe/andorra", t.EuropeAstrakhan = "europe/astrakhan", t.EuropeAthens = "europe/athens", t.EuropeBelgrade = "europe/belgrade", t.EuropeBerlin = "europe/berlin", t.EuropeBratislava = "europe/bratislava", t.EuropeBrussels = "europe/brussels", t.EuropeBucharest = "europe/bucharest", t.EuropeBudapest = "europe/budapest", t.EuropeBusingen = "europe/busingen", t.EuropeChisinau = "europe/chisinau", t.EuropeCopenhagen = "europe/copenhagen", t.EuropeDublin = "europe/dublin", t.EuropeGibraltar = "europe/gibraltar", t.EuropeGuernsey = "europe/guernsey", t.EuropeHelsinki = "europe/helsinki", t.EuropeIsleOfMan = "europe/isle_of_man", t.EuropeIstanbul = "europe/istanbul", t.EuropeJersey = "europe/jersey", t.EuropeKaliningrad = "europe/kaliningrad", t.EuropeKirov = "europe/kirov", t.EuropeKyiv = "europe/kyiv", t.EuropeLisbon = "europe/lisbon", t.EuropeLjubljana = "europe/ljubljana", t.EuropeLondon = "europe/london", t.EuropeLuxembourg = "europe/luxembourg", t.EuropeMadrid = "europe/madrid", t.EuropeMalta = "europe/malta", t.EuropeMariehamn = "europe/mariehamn", t.EuropeMinsk = "europe/minsk", t.EuropeMonaco = "europe/monaco", t.EuropeMoscow = "europe/moscow", t.EuropeOslo = "europe/oslo", t.EuropeParis = "europe/paris", t.EuropePodgorica = "europe/podgorica", t.EuropePrague = "europe/prague", t.EuropeRiga = "europe/riga", t.EuropeRome = "europe/rome", t.EuropeSamara = "europe/samara", t.EuropeSanMarino = "europe/san_marino", t.EuropeSarajevo = "europe/sarajevo", t.EuropeSaratov = "europe/saratov", t.EuropeSimferopol = "europe/simferopol", t.EuropeSkopje = "europe/skopje", t.EuropeSofia = "europe/sofia", t.EuropeStockholm = "europe/stockholm", t.EuropeTallinn = "europe/tallinn", t.EuropeTirane = "europe/tirane", t.EuropeUlyanovsk = "europe/ulyanovsk", t.EuropeVaduz = "europe/vaduz", t.EuropeVatican = "europe/vatican", t.EuropeVienna = "europe/vienna", t.EuropeVilnius = "europe/vilnius", t.EuropeVolgograd = "europe/volgograd", t.EuropeWarsaw = "europe/warsaw", t.EuropeZagreb = "europe/zagreb", t.EuropeZurich = "europe/zurich", t.IndianAntananarivo = "indian/antananarivo", t.IndianChagos = "indian/chagos", t.IndianChristmas = "indian/christmas", t.IndianCocos = "indian/cocos", t.IndianComoro = "indian/comoro", t.IndianKerguelen = "indian/kerguelen", t.IndianMahe = "indian/mahe", t.IndianMaldives = "indian/maldives", t.IndianMauritius = "indian/mauritius", t.IndianMayotte = "indian/mayotte", t.IndianReunion = "indian/reunion", t.PacificApia = "pacific/apia", t.PacificAuckland = "pacific/auckland", t.PacificBougainville = "pacific/bougainville", t.PacificChatham = "pacific/chatham", t.PacificChuuk = "pacific/chuuk", t.PacificEaster = "pacific/easter", t.PacificEfate = "pacific/efate", t.PacificFakaofo = "pacific/fakaofo", t.PacificFiji = "pacific/fiji", t.PacificFunafuti = "pacific/funafuti", t.PacificGalapagos = "pacific/galapagos", t.PacificGambier = "pacific/gambier", t.PacificGuadalcanal = "pacific/guadalcanal", t.PacificGuam = "pacific/guam", t.PacificHonolulu = "pacific/honolulu", t.PacificKanton = "pacific/kanton", t.PacificKiritimati = "pacific/kiritimati", t.PacificKosrae = "pacific/kosrae", t.PacificKwajalein = "pacific/kwajalein", t.PacificMajuro = "pacific/majuro", t.PacificMarquesas = "pacific/marquesas", t.PacificMidway = "pacific/midway", t.PacificNauru = "pacific/nauru", t.PacificNiue = "pacific/niue", t.PacificNorfolk = "pacific/norfolk", t.PacificNoumea = "pacific/noumea", t.PacificPagoPago = "pacific/pago_pago", t.PacificPalau = "pacific/palau", t.PacificPitcairn = "pacific/pitcairn", t.PacificPohnpei = "pacific/pohnpei", t.PacificPortMoresby = "pacific/port_moresby", t.PacificRarotonga = "pacific/rarotonga", t.PacificSaipan = "pacific/saipan", t.PacificTahiti = "pacific/tahiti", t.PacificTarawa = "pacific/tarawa", t.PacificTongatapu = "pacific/tongatapu", t.PacificWake = "pacific/wake", t.PacificWallis = "pacific/wallis", t.Utc = "utc";
6242
6238
  })(ti || (ti = {}));
6243
6239
  var ii;
6244
6240
  (function(t) {
6245
- t.Jpg = "jpg", t.Jpeg = "jpeg", t.Png = "png", t.Webp = "webp", t.Heic = "heic", t.Avif = "avif", t.Gif = "gif";
6241
+ t.Geolocation = "geolocation", t.Camera = "camera", t.Microphone = "microphone", t.Notifications = "notifications", t.Midi = "midi", t.Push = "push", t.Clipboardread = "clipboard-read", t.Clipboardwrite = "clipboard-write", t.Paymenthandler = "payment-handler", t.Usb = "usb", t.Bluetooth = "bluetooth", t.Accelerometer = "accelerometer", t.Gyroscope = "gyroscope", t.Magnetometer = "magnetometer", t.Ambientlightsensor = "ambient-light-sensor", t.Backgroundsync = "background-sync", t.Persistentstorage = "persistent-storage", t.Screenwakelock = "screen-wake-lock", t.Webshare = "web-share", t.Xrspatialtracking = "xr-spatial-tracking";
6246
6242
  })(ii || (ii = {}));
6247
6243
  var ni;
6248
6244
  (function(t) {
6249
- t.GET = "GET", t.POST = "POST", t.PUT = "PUT", t.PATCH = "PATCH", t.DELETE = "DELETE", t.OPTIONS = "OPTIONS", t.HEAD = "HEAD";
6245
+ t.Jpg = "jpg", t.Jpeg = "jpeg", t.Png = "png", t.Webp = "webp", t.Heic = "heic", t.Avif = "avif", t.Gif = "gif";
6250
6246
  })(ni || (ni = {}));
6251
6247
  var oi;
6252
6248
  (function(t) {
6253
- t.Auto = "auto", t.Center = "center", t.Topleft = "top-left", t.Top = "top", t.Topright = "top-right", t.Left = "left", t.Right = "right", t.Bottomleft = "bottom-left", t.Bottom = "bottom", t.Bottomright = "bottom-right";
6249
+ t.GET = "GET", t.POST = "POST", t.PUT = "PUT", t.PATCH = "PATCH", t.DELETE = "DELETE", t.OPTIONS = "OPTIONS", t.HEAD = "HEAD";
6254
6250
  })(oi || (oi = {}));
6255
6251
  var ai;
6256
6252
  (function(t) {
6257
- t.Functions = "functions", t.Sites = "sites";
6253
+ t.Auto = "auto", t.Center = "center", t.Topleft = "top-left", t.Top = "top", t.Topright = "top-right", t.Left = "left", t.Right = "right", t.Bottomleft = "bottom-left", t.Bottom = "bottom", t.Bottomright = "bottom-right";
6258
6254
  })(ai || (ai = {}));
6259
6255
  var si;
6260
6256
  (function(t) {
6261
- t.Http = "http", t.Schedule = "schedule", t.Event = "event";
6257
+ t.Functions = "functions", t.Sites = "sites";
6262
6258
  })(si || (si = {}));
6263
6259
  var ri;
6264
6260
  (function(t) {
6265
- t.Waiting = "waiting", t.Processing = "processing", t.Completed = "completed", t.Failed = "failed", t.Scheduled = "scheduled";
6261
+ t.Http = "http", t.Schedule = "schedule", t.Event = "event";
6266
6262
  })(ri || (ri = {}));
6267
- const To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6263
+ var ci;
6264
+ (function(t) {
6265
+ t.Waiting = "waiting", t.Processing = "processing", t.Completed = "completed", t.Failed = "failed", t.Scheduled = "scheduled";
6266
+ })(ci || (ci = {}));
6267
+ const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6268
6268
  __proto__: null,
6269
- Account: Kt,
6269
+ Account: Yt,
6270
6270
  AppwriteException: h,
6271
6271
  get AuthenticationFactor() {
6272
- return Zt;
6272
+ return Qt;
6273
6273
  },
6274
6274
  get AuthenticatorType() {
6275
- return Jt;
6275
+ return Zt;
6276
6276
  },
6277
- Avatars: tn,
6277
+ Avatars: on,
6278
6278
  get Browser() {
6279
- return Tt;
6279
+ return zt;
6280
6280
  },
6281
6281
  get BrowserPermission() {
6282
- return ti;
6282
+ return ii;
6283
6283
  },
6284
6284
  get BrowserTheme() {
6285
- return Ft;
6285
+ return ei;
6286
6286
  },
6287
6287
  Channel: Pe,
6288
6288
  Client: Ce,
6289
6289
  get Condition() {
6290
- return Yt;
6290
+ return Jt;
6291
6291
  },
6292
6292
  get CreditCard() {
6293
- return zt;
6293
+ return Ot;
6294
6294
  },
6295
- Databases: Gn,
6296
- DocumentsDB: Kn,
6295
+ Databases: Jn,
6296
+ DocumentsDB: Zn,
6297
6297
  get ExecutionMethod() {
6298
- return ni;
6298
+ return oi;
6299
6299
  },
6300
6300
  get ExecutionResourceType() {
6301
- return ai;
6301
+ return si;
6302
6302
  },
6303
6303
  get ExecutionStatus() {
6304
- return ri;
6304
+ return ci;
6305
6305
  },
6306
6306
  get ExecutionTrigger() {
6307
- return si;
6307
+ return ri;
6308
6308
  },
6309
6309
  get Flag() {
6310
- return Ot;
6310
+ return Ft;
6311
6311
  },
6312
- Functions: Yn,
6313
- Graphql: Jn,
6314
- ID: Xe,
6312
+ Functions: Qn,
6313
+ Graphql: Tn,
6314
+ ID: Ve,
6315
6315
  get ImageFormat() {
6316
- return ii;
6316
+ return ni;
6317
6317
  },
6318
6318
  get ImageGravity() {
6319
- return oi;
6319
+ return ai;
6320
6320
  },
6321
- Locale: Zn,
6322
- Messaging: Qn,
6321
+ Locale: zn,
6322
+ Messaging: On,
6323
6323
  get OAuthProvider() {
6324
- return Qt;
6324
+ return Tt;
6325
6325
  },
6326
6326
  Operator: T,
6327
- Organization: Tn,
6328
- Permission: ot,
6329
- Presences: zn,
6327
+ Organization: Fn,
6328
+ Permission: at,
6329
+ Presences: eo,
6330
6330
  Query: P,
6331
- Realtime: to,
6332
- Role: io,
6333
- Storage: On,
6334
- TablesDB: Fn,
6335
- Teams: nn,
6331
+ Realtime: oo,
6332
+ Role: ao,
6333
+ Storage: to,
6334
+ TablesDB: io,
6335
+ Teams: an,
6336
6336
  get Timezone() {
6337
- return ei;
6337
+ return ti;
6338
6338
  },
6339
- VectorsDB: eo
6340
- }, Symbol.toStringTag, { value: "Module" })), no = {
6339
+ VectorsDB: no
6340
+ }, Symbol.toStringTag, { value: "Module" })), so = {
6341
6341
  signIn: "Sign in",
6342
6342
  dialogSignIn: "Sign in",
6343
6343
  signUp: "Sign up",
@@ -6379,6 +6379,7 @@ const To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6379
6379
  resetPassword: "Reset password",
6380
6380
  resetLinkSent: "If an account exists for {email}, a reset link is on its way.",
6381
6381
  passwordUpdated: "Your password was updated. You can sign in now.",
6382
+ passwordChanged: "Your password was updated.",
6382
6383
  sendResetLink: "Send reset link",
6383
6384
  requestNewLink: "Request a new link",
6384
6385
  agreeTo: "By continuing you agree to our",
@@ -6505,13 +6506,13 @@ const To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6505
6506
  guestAccountDescription: "Add an email and password to keep your data.",
6506
6507
  preview: "Preview"
6507
6508
  };
6508
- function oo(t, e = {}) {
6509
+ function ro(t, e = {}) {
6509
6510
  return t.replace(
6510
6511
  /\{(\w+)\}/g,
6511
6512
  (n, i) => i in e ? String(e[i]) : `{${i}}`
6512
6513
  );
6513
6514
  }
6514
- const ao = {
6515
+ const co = {
6515
6516
  amazon: "Amazon",
6516
6517
  apple: "Apple",
6517
6518
  appwrite: "Appwrite",
@@ -6563,9 +6564,9 @@ const ao = {
6563
6564
  zoom: "Zoom"
6564
6565
  };
6565
6566
  function pt(t) {
6566
- return ao[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
6567
+ return co[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
6567
6568
  }
6568
- const It = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }), xe = () => (/* @__PURE__ */ new Date()).toISOString(), Le = (t) => new Date(Date.now() - t * 6e4).toISOString(), At = [
6569
+ const It = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }), xe = () => (/* @__PURE__ */ new Date()).toISOString(), He = (t) => new Date(Date.now() - t * 6e4).toISOString(), At = [
6569
6570
  "amber",
6570
6571
  "brave",
6571
6572
  "calm",
@@ -6578,13 +6579,13 @@ const It = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }),
6578
6579
  "juniper",
6579
6580
  "kite",
6580
6581
  "lumen"
6581
- ], Ni = () => `${At[Math.floor(Math.random() * At.length)]}-${At[Math.floor(Math.random() * At.length)]}`, ze = () => Math.random().toString(36).slice(2, 12), Hi = () => Array.from({ length: 2 }, () => Math.random().toString(36).slice(2, 7)).join("-"), so = {
6582
+ ], Di = () => `${At[Math.floor(Math.random() * At.length)]}-${At[Math.floor(Math.random() * At.length)]}`, Oe = () => Math.random().toString(36).slice(2, 12), Bi = () => Array.from({ length: 2 }, () => Math.random().toString(36).slice(2, 7)).join("-"), lo = {
6582
6583
  name: "Ada Lovelace",
6583
6584
  email: "ada@example.com",
6584
6585
  phone: "+15550100"
6585
6586
  };
6586
- class ro {
6587
- constructor(e = so) {
6587
+ class uo {
6588
+ constructor(e = lo) {
6588
6589
  this.seed = e, this.user = null, this.mfaPending = !1, this.mfaEnabled = !1, this.totpEnrolled = !1, this.recoveryCodes = [], this.lastChallenge = 0, this.sessions = [], this.identities = [], this.logs = [], this.tokens = /* @__PURE__ */ new Map(), this.pendingAuthenticator = null;
6589
6590
  }
6590
6591
  // ───────────────────────── helpers ─────────────────────────
@@ -6592,13 +6593,13 @@ class ro {
6592
6593
  const n = e.anonymous ?? !1;
6593
6594
  return this.user = {
6594
6595
  $id: "preview-user",
6595
- $createdAt: Le(1440 * 30),
6596
+ $createdAt: He(1440 * 30),
6596
6597
  $updatedAt: xe(),
6597
6598
  name: n ? "" : e.name ?? this.seed.name,
6598
- registration: Le(1440 * 30),
6599
+ registration: He(1440 * 30),
6599
6600
  status: !0,
6600
6601
  labels: [],
6601
- passwordUpdate: n ? "" : Le(1440 * 7),
6602
+ passwordUpdate: n ? "" : He(1440 * 7),
6602
6603
  email: n ? "" : e.email ?? this.seed.email,
6603
6604
  phone: n ? "" : e.phone ?? this.seed.phone,
6604
6605
  emailVerification: !n,
@@ -6648,8 +6649,8 @@ class ro {
6648
6649
  },
6649
6650
  {
6650
6651
  ...n,
6651
- $id: ze(),
6652
- $createdAt: Le(300),
6652
+ $id: Oe(),
6653
+ $createdAt: He(300),
6653
6654
  provider: e,
6654
6655
  ip: "198.51.100.7",
6655
6656
  osCode: "IOS",
@@ -6665,8 +6666,8 @@ class ro {
6665
6666
  },
6666
6667
  {
6667
6668
  ...n,
6668
- $id: ze(),
6669
- $createdAt: Le(1440 * 3),
6669
+ $id: Oe(),
6670
+ $createdAt: He(1440 * 3),
6670
6671
  provider: "oauth2",
6671
6672
  ip: "192.0.2.90",
6672
6673
  osCode: "WIN",
@@ -6681,8 +6682,8 @@ class ro {
6681
6682
  ], this.identities = [
6682
6683
  {
6683
6684
  $id: "identity-github",
6684
- $createdAt: Le(1440 * 20),
6685
- $updatedAt: Le(1440 * 20),
6685
+ $createdAt: He(1440 * 20),
6686
+ $updatedAt: He(1440 * 20),
6686
6687
  userId: "preview-user",
6687
6688
  provider: "github",
6688
6689
  providerUid: "8675309",
@@ -6702,7 +6703,7 @@ class ro {
6702
6703
  },
6703
6704
  {
6704
6705
  event: "user.update.name",
6705
- time: Le(1440 * 2),
6706
+ time: He(1440 * 2),
6706
6707
  clientName: "Safari",
6707
6708
  osName: "iOS",
6708
6709
  countryName: "Germany",
@@ -6710,7 +6711,7 @@ class ro {
6710
6711
  },
6711
6712
  {
6712
6713
  event: "session.create",
6713
- time: Le(1440 * 3),
6714
+ time: He(1440 * 3),
6714
6715
  clientName: "Firefox",
6715
6716
  osName: "Windows",
6716
6717
  countryName: "United States",
@@ -6766,26 +6767,26 @@ class ro {
6766
6767
  }
6767
6768
  async createMagicURLToken(e, n) {
6768
6769
  return this.tokens.set(e, { email: n }), this.delay({
6769
- $id: ze(),
6770
+ $id: Oe(),
6770
6771
  $createdAt: xe(),
6771
6772
  userId: e,
6772
6773
  secret: "",
6773
6774
  expire: "",
6774
- phrase: Ni()
6775
+ phrase: Di()
6775
6776
  });
6776
6777
  }
6777
6778
  async createEmailToken(e, n) {
6778
6779
  return this.tokens.set(e, { email: n }), this.delay({
6779
- $id: ze(),
6780
+ $id: Oe(),
6780
6781
  $createdAt: xe(),
6781
6782
  userId: e,
6782
6783
  secret: "",
6783
6784
  expire: "",
6784
- phrase: Ni()
6785
+ phrase: Di()
6785
6786
  });
6786
6787
  }
6787
6788
  async createPhoneToken(e, n) {
6788
- return this.tokens.set(e, { phone: n }), this.delay({ $id: ze(), $createdAt: xe(), userId: e, secret: "", expire: "", phrase: "" });
6789
+ return this.tokens.set(e, { phone: n }), this.delay({ $id: Oe(), $createdAt: xe(), userId: e, secret: "", expire: "", phrase: "" });
6789
6790
  }
6790
6791
  async createSession(e) {
6791
6792
  return this.delay(() => {
@@ -6877,7 +6878,7 @@ class ro {
6877
6878
  });
6878
6879
  }
6879
6880
  async createMFAChallenge() {
6880
- return this.delay({ $id: ze(), $createdAt: xe(), userId: "preview-user", expire: "" });
6881
+ return this.delay({ $id: Oe(), $createdAt: xe(), userId: "preview-user", expire: "" });
6881
6882
  }
6882
6883
  async updateMFAChallenge() {
6883
6884
  return this.delay(() => (this.mfaPending = !1, this.lastChallenge = Date.now(), this.sessions[0]));
@@ -6907,21 +6908,21 @@ class ro {
6907
6908
  return this.delay(() => {
6908
6909
  if (this.recoveryCodes.length > 0)
6909
6910
  throw It("user_recovery_codes_already_exists", "Recovery codes already generated.", 409);
6910
- return this.recoveryCodes = Array.from({ length: 6 }, Hi), { recoveryCodes: this.recoveryCodes };
6911
+ return this.recoveryCodes = Array.from({ length: 6 }, Bi), { recoveryCodes: this.recoveryCodes };
6911
6912
  });
6912
6913
  }
6913
6914
  async getMFARecoveryCodes() {
6914
6915
  return this.delay(() => (this.requireRecentChallenge(), { recoveryCodes: this.recoveryCodes }));
6915
6916
  }
6916
6917
  async updateMFARecoveryCodes() {
6917
- return this.delay(() => (this.requireRecentChallenge(), this.recoveryCodes = Array.from({ length: 6 }, Hi), { recoveryCodes: this.recoveryCodes }));
6918
+ return this.delay(() => (this.requireRecentChallenge(), this.recoveryCodes = Array.from({ length: 6 }, Bi), { recoveryCodes: this.recoveryCodes }));
6918
6919
  }
6919
6920
  /** Forget everything, as a sign out would. */
6920
6921
  reset() {
6921
6922
  this.user = null, this.mfaPending = !1, this.sessions = [], this.identities = [], this.logs = [], this.tokens.clear();
6922
6923
  }
6923
6924
  }
6924
- function co(t) {
6925
+ function po(t) {
6925
6926
  let e = 2166136261;
6926
6927
  const n = () => (e ^= e << 13, e ^= e >>> 17, e ^= e << 5, (e >>> 0) / 4294967296);
6927
6928
  for (const r of t) e = (e ^ r.charCodeAt(0)) * 16777619;
@@ -6969,7 +6970,7 @@ const oe = {
6969
6970
  targetAlreadyExists: "user_target_already_exists",
6970
6971
  argumentInvalid: "general_argument_invalid"
6971
6972
  };
6972
- function et(t) {
6973
+ function tt(t) {
6973
6974
  if (t && typeof t == "object") {
6974
6975
  const e = t;
6975
6976
  let n = typeof e.message == "string" ? e.message : "Unknown error";
@@ -6982,10 +6983,10 @@ function et(t) {
6982
6983
  return { message: String(t), type: "", code: 0 };
6983
6984
  }
6984
6985
  function yt(t, e) {
6985
- return et(t).type === e;
6986
+ return tt(t).type === e;
6986
6987
  }
6987
6988
  function xt(t, e, n = "link") {
6988
- const i = et(t);
6989
+ const i = tt(t);
6989
6990
  switch (i.type) {
6990
6991
  case oe.invalidCredentials:
6991
6992
  return n === "password" ? e.errorCurrentPassword : e.errorInvalidCredentials;
@@ -7027,27 +7028,77 @@ function xt(t, e, n = "link") {
7027
7028
  }
7028
7029
  return i.type === oe.projectNotFound || i.type === oe.unknownOrigin ? e.errorConfig : i.type === oe.routeNotFound ? e.errorConfigEndpoint : i.code === 0 && /fetch|network/i.test(i.message) ? e.errorNetwork : /Invalid `\w+` param/i.test(i.message) ? e.errorGeneric : i.message ? i.message || e.errorGeneric : i.code === 404 || i.type === oe.routeNotFound ? e.errorConfigEndpoint : e.errorGeneric;
7029
7030
  }
7030
- function lo(t) {
7031
- const e = et(t);
7031
+ function ho(t) {
7032
+ const e = tt(t);
7032
7033
  return !!(e.type === oe.projectNotFound || e.type === oe.unknownOrigin || e.type === oe.routeNotFound || !e.message && e.code === 404 || e.code === 0 && /fetch|network|load failed|failed to fetch/i.test(e.message));
7033
7034
  }
7034
- const ci = (t) => `authui:active-team:${t}`;
7035
- function Di(t) {
7035
+ const di = (t) => `authui:active-team:${t}`;
7036
+ function Xi(t) {
7036
7037
  if (typeof localStorage > "u" || !t) return null;
7037
7038
  try {
7038
- return localStorage.getItem(ci(t));
7039
+ return localStorage.getItem(di(t));
7039
7040
  } catch {
7040
7041
  return null;
7041
7042
  }
7042
7043
  }
7043
- function uo(t, e) {
7044
+ function fo(t, e) {
7044
7045
  if (!(typeof localStorage > "u" || !t))
7045
7046
  try {
7046
- e ? localStorage.setItem(ci(t), e) : localStorage.removeItem(ci(t));
7047
+ e ? localStorage.setItem(di(t), e) : localStorage.removeItem(di(t));
7047
7048
  } catch {
7048
7049
  }
7049
7050
  }
7050
- function $e(t, e, n) {
7051
+ const Ii = "authui:last-method";
7052
+ function lt(t) {
7053
+ if (!(typeof localStorage > "u")) {
7054
+ if (!t || t === "mfa" || t === "sign-up")
7055
+ if (t === "sign-up") t = "email-password";
7056
+ else return;
7057
+ try {
7058
+ localStorage.setItem(Ii, t);
7059
+ } catch {
7060
+ }
7061
+ }
7062
+ }
7063
+ function Fe() {
7064
+ if (typeof localStorage > "u") return null;
7065
+ try {
7066
+ return localStorage.getItem(Ii);
7067
+ } catch {
7068
+ return null;
7069
+ }
7070
+ }
7071
+ function ta() {
7072
+ if (!(typeof localStorage > "u"))
7073
+ try {
7074
+ localStorage.removeItem(Ii);
7075
+ } catch {
7076
+ }
7077
+ }
7078
+ const Ut = "authui:pending-oauth";
7079
+ function go(t) {
7080
+ if (!(typeof sessionStorage > "u"))
7081
+ try {
7082
+ sessionStorage.setItem(Ut, t);
7083
+ } catch {
7084
+ }
7085
+ }
7086
+ function sn() {
7087
+ if (!(typeof sessionStorage > "u"))
7088
+ try {
7089
+ const t = sessionStorage.getItem(Ut);
7090
+ sessionStorage.removeItem(Ut), t && lt(`oauth:${t}`);
7091
+ } catch {
7092
+ }
7093
+ }
7094
+ function Vi() {
7095
+ if (!(typeof sessionStorage > "u"))
7096
+ try {
7097
+ sessionStorage.removeItem(Ut);
7098
+ } catch {
7099
+ }
7100
+ }
7101
+ function je(t, e, n) {
7051
7102
  for (const i of e) {
7052
7103
  const o = t[i];
7053
7104
  if (typeof o == "function")
@@ -7057,7 +7108,7 @@ function $e(t, e, n) {
7057
7108
  new Error(`Appwrite SDK is missing ${e[0]}(). Update the appwrite package.`)
7058
7109
  );
7059
7110
  }
7060
- const di = "authui", Bi = ["userId", "secret", "expire", "project", "error", di], Xi = () => ({
7111
+ const li = "authui", Wi = ["userId", "secret", "expire", "project", "error", li], Gi = () => ({
7061
7112
  status: "loading",
7062
7113
  user: null,
7063
7114
  mfaFactors: null,
@@ -7065,9 +7116,9 @@ const di = "authui", Bi = ["userId", "secret", "expire", "project", "error", di]
7065
7116
  configured: !1,
7066
7117
  configError: null
7067
7118
  });
7068
- class po {
7119
+ class yo {
7069
7120
  constructor() {
7070
- this.client = null, this.account = null, this.config = null, this.state = Xi(), this.listeners = /* @__PURE__ */ new Map(), this.refreshPromise = null, this.preview = null, this.teams = null, this.activeTeamId = null;
7121
+ this.client = null, this.account = null, this.config = null, this.state = Gi(), this.listeners = /* @__PURE__ */ new Map(), this.refreshPromise = null, this.preview = null, this.teams = null, this.activeTeamId = null;
7071
7122
  }
7072
7123
  // ───────────────────────────── configuration ─────────────────────────────
7073
7124
  /** Configure the Appwrite client. Safe to call more than once; the last call wins. */
@@ -7075,7 +7126,7 @@ class po {
7075
7126
  const n = e.endpoint.trim().replace(/\/+$/, "");
7076
7127
  n && !n.endsWith("/v1") && console.warn(
7077
7128
  `[authui] endpoint should end with /v1 (got "${e.endpoint}"). Without it Appwrite returns HTML 404 pages.`
7078
- ), this.config = e, this.client = new Ce().setEndpoint(e.endpoint).setProject(e.project), this.preview = e.preview ? new ro() : null, this.account = this.preview ? this.preview : new Kt(this.client), this.teams = null, this.activeTeamId = Di(e.project), this.setState({ configured: !0, status: "loading", configError: null }), this.preview ? this.refresh() : typeof window < "u" && this.handleRedirect().then(() => this.refresh());
7129
+ ), this.config = e, this.client = new Ce().setEndpoint(e.endpoint).setProject(e.project), this.preview = e.preview ? new uo() : null, this.account = this.preview ? this.preview : new Yt(this.client), this.teams = null, this.activeTeamId = Xi(e.project), this.setState({ configured: !0, status: "loading", configError: null }), this.preview ? this.refresh() : typeof window < "u" && this.handleRedirect().then(() => this.refresh());
7079
7130
  }
7080
7131
  /**
7081
7132
  * Called by <authui-config> when it is on the page but missing endpoint or project.
@@ -7121,7 +7172,7 @@ class po {
7121
7172
  /** List teams the signed-in user belongs to. Empty in preview or when signed out. */
7122
7173
  async listTeams() {
7123
7174
  if (this.preview || !this.client || this.state.status !== "signed-in") return [];
7124
- this.teams ??= new nn(this.client);
7175
+ this.teams ??= new an(this.client);
7125
7176
  try {
7126
7177
  return (await this.teams.list()).teams ?? [];
7127
7178
  } catch (e) {
@@ -7131,7 +7182,7 @@ class po {
7131
7182
  getActiveTeamId() {
7132
7183
  if (this.activeTeamId) return this.activeTeamId;
7133
7184
  const e = this.config?.project;
7134
- return e ? (this.activeTeamId = Di(e), this.activeTeamId) : null;
7185
+ return e ? (this.activeTeamId = Xi(e), this.activeTeamId) : null;
7135
7186
  }
7136
7187
  /**
7137
7188
  * Remember the active team locally and emit `active-team`.
@@ -7139,10 +7190,10 @@ class po {
7139
7190
  */
7140
7191
  setActiveTeam(e) {
7141
7192
  const n = this.config?.project;
7142
- n && uo(n, e?.$id ?? null), this.activeTeamId = e?.$id ?? null, this.emit("active-team", { teamId: this.activeTeamId, team: e });
7193
+ n && fo(n, e?.$id ?? null), this.activeTeamId = e?.$id ?? null, this.emit("active-team", { teamId: this.activeTeamId, team: e });
7143
7194
  }
7144
7195
  getStrings() {
7145
- return { ...no, ...this.config?.strings ?? {} };
7196
+ return { ...so, ...this.config?.strings ?? {} };
7146
7197
  }
7147
7198
  getState() {
7148
7199
  return { ...this.state };
@@ -7168,7 +7219,7 @@ class po {
7168
7219
  this.state = { ...this.state, ...e }, this.emit("change", this.getState());
7169
7220
  }
7170
7221
  fail(e) {
7171
- const n = et(e);
7222
+ const n = tt(e);
7172
7223
  throw this.emit("error", n), e;
7173
7224
  }
7174
7225
  acct() {
@@ -7191,7 +7242,7 @@ class po {
7191
7242
  if (yt(n, oe.moreFactorsRequired)) {
7192
7243
  let i = null;
7193
7244
  try {
7194
- i = await $e(
7245
+ i = await je(
7195
7246
  this.account,
7196
7247
  ["listMFAFactors", "listMfaFactors"],
7197
7248
  []
@@ -7210,12 +7261,12 @@ class po {
7210
7261
  message: this.getStrings().errorUserBlocked
7211
7262
  }
7212
7263
  }), e && this.emit("signed-out", void 0);
7213
- else if (!e && lo(n)) {
7264
+ else if (!e && ho(n)) {
7214
7265
  const o = xt(n, this.getStrings()) || this.getStrings().errorConfig;
7215
7266
  console.warn(
7216
7267
  `[authui] ${o} (endpoint=${this.config?.endpoint ?? "?"}, project=${this.config?.project ?? "?"})`
7217
7268
  );
7218
- const a = et(n);
7269
+ const a = tt(n);
7219
7270
  this.emit("error", { message: o, type: a.type, code: a.code }), this.setState({
7220
7271
  status: "signed-out",
7221
7272
  user: null,
@@ -7260,7 +7311,7 @@ class po {
7260
7311
  localStorage.removeItem("cookieFallback");
7261
7312
  } catch {
7262
7313
  }
7263
- this.config && !this.preview && (this.client = new Ce().setEndpoint(this.config.endpoint).setProject(this.config.project), this.account = new Kt(this.client));
7314
+ this.config && !this.preview && (this.client = new Ce().setEndpoint(this.config.endpoint).setProject(this.config.project), this.account = new Yt(this.client));
7264
7315
  }
7265
7316
  // ─────────────────────────────── sign in ───────────────────────────────
7266
7317
  async signInWithEmailPassword(e, n) {
@@ -7273,7 +7324,7 @@ class po {
7273
7324
  }
7274
7325
  async signUp(e, n, i) {
7275
7326
  try {
7276
- await this.acct().create(Xe.unique(), e.trim(), n, i?.trim() || void 0), await this.acct().createEmailPasswordSession(e.trim(), n);
7327
+ await this.acct().create(Ve.unique(), e.trim(), n, i?.trim() || void 0), await this.acct().createEmailPasswordSession(e.trim(), n);
7277
7328
  } catch (o) {
7278
7329
  this.fail(o);
7279
7330
  }
@@ -7316,7 +7367,7 @@ class po {
7316
7367
  async sendMagicUrl(e) {
7317
7368
  try {
7318
7369
  return await this.acct().createMagicURLToken(
7319
- Xe.unique(),
7370
+ Ve.unique(),
7320
7371
  e.trim(),
7321
7372
  this.redirectUrl("magic-url"),
7322
7373
  this.config?.securityPhrase ?? !0
@@ -7328,7 +7379,7 @@ class po {
7328
7379
  async sendEmailOtp(e) {
7329
7380
  try {
7330
7381
  return await this.acct().createEmailToken(
7331
- Xe.unique(),
7382
+ Ve.unique(),
7332
7383
  e.trim(),
7333
7384
  this.config?.securityPhrase ?? !0
7334
7385
  );
@@ -7338,7 +7389,7 @@ class po {
7338
7389
  }
7339
7390
  async sendPhoneOtp(e) {
7340
7391
  try {
7341
- return await this.acct().createPhoneToken(Xe.unique(), e.replace(/[\s()-]/g, ""));
7392
+ return await this.acct().createPhoneToken(Ve.unique(), e.replace(/[\s()-]/g, ""));
7342
7393
  } catch (n) {
7343
7394
  return this.fail(n);
7344
7395
  }
@@ -7355,7 +7406,7 @@ class po {
7355
7406
  // ─────────────────────────────── MFA ───────────────────────────────
7356
7407
  async createMfaChallenge(e) {
7357
7408
  try {
7358
- return await $e(
7409
+ return await je(
7359
7410
  this.acct(),
7360
7411
  ["createMFAChallenge", "createMfaChallenge"],
7361
7412
  [e]
@@ -7367,7 +7418,7 @@ class po {
7367
7418
  /** Verify a challenge. Completes a pending sign in, or acts as a step-up for protected actions. */
7368
7419
  async completeMfaChallenge(e, n, i = {}) {
7369
7420
  try {
7370
- await $e(
7421
+ await je(
7371
7422
  this.acct(),
7372
7423
  ["updateMFAChallenge", "updateMfaChallenge"],
7373
7424
  [e, n.trim()]
@@ -7379,7 +7430,7 @@ class po {
7379
7430
  }
7380
7431
  async listMfaFactors() {
7381
7432
  try {
7382
- return await $e(this.acct(), ["listMFAFactors", "listMfaFactors"], []);
7433
+ return await je(this.acct(), ["listMFAFactors", "listMfaFactors"], []);
7383
7434
  } catch (e) {
7384
7435
  return this.fail(e);
7385
7436
  }
@@ -7394,7 +7445,7 @@ class po {
7394
7445
  }
7395
7446
  async addAuthenticator() {
7396
7447
  try {
7397
- return await $e(
7448
+ return await je(
7398
7449
  this.acct(),
7399
7450
  ["createMFAAuthenticator", "createMfaAuthenticator"],
7400
7451
  ["totp"]
@@ -7405,7 +7456,7 @@ class po {
7405
7456
  }
7406
7457
  async verifyAuthenticator(e) {
7407
7458
  try {
7408
- await $e(
7459
+ await je(
7409
7460
  this.acct(),
7410
7461
  ["updateMFAAuthenticator", "updateMfaAuthenticator"],
7411
7462
  ["totp", e.trim()]
@@ -7418,7 +7469,7 @@ class po {
7418
7469
  /** Requires a recent MFA challenge (server rejects with user_challenge_required otherwise). */
7419
7470
  async removeAuthenticator() {
7420
7471
  try {
7421
- await $e(this.acct(), ["deleteMFAAuthenticator", "deleteMfaAuthenticator"], ["totp"]);
7472
+ await je(this.acct(), ["deleteMFAAuthenticator", "deleteMfaAuthenticator"], ["totp"]);
7422
7473
  } catch (e) {
7423
7474
  this.fail(e);
7424
7475
  }
@@ -7426,7 +7477,7 @@ class po {
7426
7477
  }
7427
7478
  async createRecoveryCodes() {
7428
7479
  try {
7429
- return (await $e(
7480
+ return (await je(
7430
7481
  this.acct(),
7431
7482
  ["createMFARecoveryCodes", "createMfaRecoveryCodes"],
7432
7483
  []
@@ -7438,7 +7489,7 @@ class po {
7438
7489
  /** Requires a recent MFA challenge. */
7439
7490
  async regenerateRecoveryCodes() {
7440
7491
  try {
7441
- return (await $e(
7492
+ return (await je(
7442
7493
  this.acct(),
7443
7494
  ["updateMFARecoveryCodes", "updateMfaRecoveryCodes"],
7444
7495
  []
@@ -7450,7 +7501,7 @@ class po {
7450
7501
  /** Requires a recent MFA challenge. */
7451
7502
  async getRecoveryCodes() {
7452
7503
  try {
7453
- return (await $e(
7504
+ return (await je(
7454
7505
  this.acct(),
7455
7506
  ["getMFARecoveryCodes", "getMfaRecoveryCodes"],
7456
7507
  []
@@ -7572,7 +7623,7 @@ class po {
7572
7623
  }
7573
7624
  async sendEmailVerification() {
7574
7625
  try {
7575
- await $e(
7626
+ await je(
7576
7627
  this.acct(),
7577
7628
  ["createEmailVerification", "createVerification"],
7578
7629
  [this.redirectUrl("verify-email")]
@@ -7612,8 +7663,8 @@ class po {
7612
7663
  /** Build the URL Appwrite should send the user back to for a given flow. */
7613
7664
  redirectUrl(e) {
7614
7665
  const n = this.config?.redirectUrl ?? (typeof window < "u" ? window.location.origin + window.location.pathname : ""), i = new URL(n, typeof window < "u" ? window.location.href : void 0);
7615
- for (const o of Bi) i.searchParams.delete(o);
7616
- return i.searchParams.set(di, e), i.toString();
7666
+ for (const o of Wi) i.searchParams.delete(o);
7667
+ return i.searchParams.set(li, e), i.toString();
7617
7668
  }
7618
7669
  setPending(e) {
7619
7670
  this.setState({ pending: e });
@@ -7624,7 +7675,7 @@ class po {
7624
7675
  */
7625
7676
  async handleRedirect() {
7626
7677
  if (typeof window > "u") return !1;
7627
- const e = new URLSearchParams(window.location.search), n = e.get(di);
7678
+ const e = new URLSearchParams(window.location.search), n = e.get(li);
7628
7679
  if (!n) return !1;
7629
7680
  const i = e.get("userId") ?? "", o = e.get("secret") ?? "";
7630
7681
  this.cleanUrl();
@@ -7641,16 +7692,22 @@ class po {
7641
7692
  switch (n) {
7642
7693
  case "oauth":
7643
7694
  case "magic-url":
7644
- i && o ? await this.acct().createSession(i, o) : a();
7695
+ i && o ? (await this.acct().createSession(i, o), n === "oauth" && sn()) : (n === "oauth" && Vi(), a());
7645
7696
  break;
7646
7697
  case "oauth-failed":
7647
- this.setState({ pending: { type: "oauth-failed" } });
7698
+ Vi(), this.setState({
7699
+ pending: {
7700
+ type: "notice",
7701
+ tone: "error",
7702
+ message: this.getStrings().errorOAuth
7703
+ }
7704
+ });
7648
7705
  break;
7649
7706
  case "recovery":
7650
7707
  i && o ? this.setState({ pending: { type: "reset-password", userId: i, secret: o } }) : a();
7651
7708
  break;
7652
7709
  case "verify-email":
7653
- i && o ? (await $e(
7710
+ i && o ? (await je(
7654
7711
  this.acct(),
7655
7712
  ["updateEmailVerification", "updateVerification"],
7656
7713
  [i, o]
@@ -7664,23 +7721,23 @@ class po {
7664
7721
  break;
7665
7722
  }
7666
7723
  } catch (s) {
7667
- const r = et(s), d = xt(s, this.getStrings(), "link");
7724
+ const r = tt(s), d = xt(s, this.getStrings(), "link");
7668
7725
  this.emit("error", r), this.setState({ pending: { type: "notice", message: d, tone: "error" } });
7669
7726
  }
7670
7727
  return !0;
7671
7728
  }
7672
7729
  cleanUrl() {
7673
7730
  const e = new URL(window.location.href);
7674
- for (const n of Bi) e.searchParams.delete(n);
7731
+ for (const n of Wi) e.searchParams.delete(n);
7675
7732
  window.history.replaceState(window.history.state, "", e.toString());
7676
7733
  }
7677
7734
  /** Test helper. */
7678
7735
  reset() {
7679
- this.client = null, this.account = null, this.teams = null, this.activeTeamId = null, this.preview = null, this.config = null, this.state = Xi(), this.listeners.clear();
7736
+ this.client = null, this.account = null, this.teams = null, this.activeTeamId = null, this.preview = null, this.config = null, this.state = Gi(), this.listeners.clear();
7680
7737
  }
7681
7738
  }
7682
- const R = new po();
7683
- class ho {
7739
+ const R = new yo();
7740
+ class mo {
7684
7741
  constructor() {
7685
7742
  this.listeners = /* @__PURE__ */ new Set(), this.observer = null, this.media = null, this.notify = () => {
7686
7743
  const e = this.isDark("auto");
@@ -7708,14 +7765,14 @@ class ho {
7708
7765
  this.observer?.disconnect(), this.observer = null, this.media?.removeEventListener?.("change", this.notify), this.media = null;
7709
7766
  }
7710
7767
  }
7711
- const Vi = new ho(), Wi = {
7768
+ const Ki = new mo(), Yi = {
7712
7769
  none: "0px",
7713
7770
  sm: "0.25rem",
7714
7771
  md: "0.625rem",
7715
7772
  lg: "0.875rem",
7716
7773
  xl: "1.125rem",
7717
7774
  full: "1.5rem"
7718
- }, fo = We`
7775
+ }, wo = We`
7719
7776
  :host {
7720
7777
  /* Light theme (matches :root in the console) */
7721
7778
  --authui-background: oklch(1 0 0);
@@ -7793,7 +7850,7 @@ const Vi = new ho(), Wi = {
7793
7850
  --authui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
7794
7851
  color-scheme: dark;
7795
7852
  }
7796
- `, go = We`
7853
+ `, bo = We`
7797
7854
  *,
7798
7855
  *::before,
7799
7856
  *::after {
@@ -8598,25 +8655,25 @@ const Vi = new ho(), Wi = {
8598
8655
  }
8599
8656
  }
8600
8657
  `;
8601
- var yo = Object.defineProperty, mo = (t, e, n, i) => {
8658
+ var vo = Object.defineProperty, Io = (t, e, n, i) => {
8602
8659
  for (var o = void 0, a = t.length - 1, s; a >= 0; a--)
8603
8660
  (s = t[a]) && (o = s(e, n, o) || o);
8604
- return o && yo(e, n, o), o;
8605
- }, Ne;
8606
- const on = (Ne = class extends Je {
8661
+ return o && vo(e, n, o), o;
8662
+ }, De;
8663
+ const rn = (De = class extends Qe {
8607
8664
  constructor() {
8608
8665
  super(...arguments), this.auth = R.getState(), this.unsubscribeStore = null, this.unsubscribeTheme = null, this.stopKeys = (e) => e.stopPropagation();
8609
8666
  }
8610
8667
  connectedCallback() {
8611
8668
  super.connectedCallback();
8612
- for (const e of Ne.KEY_EVENTS) this.addEventListener(e, this.stopKeys);
8669
+ for (const e of De.KEY_EVENTS) this.addEventListener(e, this.stopKeys);
8613
8670
  this.auth = R.getState(), this.unsubscribeStore = R.on("change", (e) => {
8614
8671
  this.auth = e, this.applyBranding();
8615
- }), this.unsubscribeTheme = Vi.subscribe(() => this.applyBranding()), this.applyBranding();
8672
+ }), this.unsubscribeTheme = Ki.subscribe(() => this.applyBranding()), this.applyBranding();
8616
8673
  }
8617
8674
  disconnectedCallback() {
8618
8675
  super.disconnectedCallback();
8619
- for (const e of Ne.KEY_EVENTS) this.removeEventListener(e, this.stopKeys);
8676
+ for (const e of De.KEY_EVENTS) this.removeEventListener(e, this.stopKeys);
8620
8677
  this.unsubscribeStore?.(), this.unsubscribeTheme?.(), this.unsubscribeStore = null, this.unsubscribeTheme = null;
8621
8678
  }
8622
8679
  get strings() {
@@ -8624,7 +8681,7 @@ const on = (Ne = class extends Je {
8624
8681
  }
8625
8682
  /** Translate a string key with optional `{placeholders}`. */
8626
8683
  t(e, n) {
8627
- return oo(this.strings[e], n);
8684
+ return ro(this.strings[e], n);
8628
8685
  }
8629
8686
  get config() {
8630
8687
  return R.getConfig();
@@ -8634,27 +8691,27 @@ const on = (Ne = class extends Je {
8634
8691
  }
8635
8692
  /** Push theme and branding from config onto the host element. */
8636
8693
  applyBranding() {
8637
- const e = this.config?.branding, n = Vi.isDark(e?.theme ?? "auto");
8694
+ const e = this.config?.branding, n = Ki.isDark(e?.theme ?? "auto");
8638
8695
  this.setAttribute("data-theme", n ? "dark" : "light"), e?.primary && (this.style.setProperty("--authui-primary", e.primary), this.style.setProperty(
8639
8696
  "--authui-primary-foreground",
8640
8697
  e.primaryForeground ?? "#ffffff"
8641
- )), e?.radius && Wi[e.radius] && this.style.setProperty("--authui-radius", Wi[e.radius]);
8698
+ )), e?.radius && Yi[e.radius] && this.style.setProperty("--authui-radius", Yi[e.radius]);
8642
8699
  }
8643
8700
  /** Emit a composed custom event from this element. */
8644
8701
  fire(e, n) {
8645
8702
  this.dispatchEvent(new CustomEvent(e, { detail: n, bubbles: !0, composed: !0 }));
8646
8703
  }
8647
- }, Ne.styles = [fo, go], Ne.KEY_EVENTS = ["keydown", "keyup", "keypress"], Ne);
8648
- mo([
8649
- G()
8650
- ], on.prototype, "auth");
8651
- let Re = on;
8652
- var wo = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, fe = (t, e, n, i) => {
8653
- for (var o = i > 1 ? void 0 : i ? bo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
8704
+ }, De.styles = [wo, bo], De.KEY_EVENTS = ["keydown", "keyup", "keypress"], De);
8705
+ Io([
8706
+ V()
8707
+ ], rn.prototype, "auth");
8708
+ let qe = rn;
8709
+ var Ao = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, fe = (t, e, n, i) => {
8710
+ for (var o = i > 1 ? void 0 : i ? ko(e, n) : e, a = t.length - 1, s; a >= 0; a--)
8654
8711
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
8655
- return i && o && wo(e, n, o), o;
8712
+ return i && o && Ao(e, n, o), o;
8656
8713
  };
8657
- let pe = class extends Je {
8714
+ let pe = class extends Qe {
8658
8715
  constructor() {
8659
8716
  super(...arguments), this.endpoint = "", this.project = "", this.redirectUrl = "", this.successUrl = "", this.methods = "email-password", this.signUp = "true", this.requireName = "true", this.mfa = "true", this.securityPhrase = "true", this.name = "", this.logo = "", this.theme = "auto", this.radius = "", this.primary = "", this.primaryForeground = "", this.termsUrl = "", this.privacyUrl = "", this.preview = "";
8660
8717
  }
@@ -8764,38 +8821,38 @@ fe([
8764
8821
  ee({ type: String })
8765
8822
  ], pe.prototype, "preview", 2);
8766
8823
  pe = fe([
8767
- Qe("authui-config")
8824
+ ze("authui-config")
8768
8825
  ], pe);
8769
- var vo = Object.defineProperty, Io = Object.getOwnPropertyDescriptor, qt = (t, e, n, i) => {
8770
- for (var o = i > 1 ? void 0 : i ? Io(e, n) : e, a = t.length - 1, s; a >= 0; a--)
8826
+ var So = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, qt = (t, e, n, i) => {
8827
+ for (var o = i > 1 ? void 0 : i ? $o(e, n) : e, a = t.length - 1, s; a >= 0; a--)
8771
8828
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
8772
- return i && o && vo(e, n, o), o;
8829
+ return i && o && So(e, n, o), o;
8773
8830
  };
8774
- const Gi = "authui-show:not([ready]){display:none}", zo = "authui-show:not([ready]){display:none}authui-button:not(:defined),authui-user-button:not(:defined){visibility:hidden}";
8775
- let Ki = !1;
8776
- function Ao() {
8777
- if (!(typeof document > "u" || Ki)) {
8778
- Ki = !0;
8831
+ const Ji = "authui-show:not([ready]){display:none}", ia = "authui-show:not([ready]){display:none}authui-button:not(:defined),authui-user-button:not(:defined){visibility:hidden}";
8832
+ let Zi = !1;
8833
+ function jo() {
8834
+ if (!(typeof document > "u" || Zi)) {
8835
+ Zi = !0;
8779
8836
  try {
8780
8837
  if (typeof CSSStyleSheet < "u" && "adoptedStyleSheets" in Document.prototype) {
8781
8838
  const t = new CSSStyleSheet();
8782
- t.replaceSync(Gi), document.adoptedStyleSheets = [...document.adoptedStyleSheets, t];
8839
+ t.replaceSync(Ji), document.adoptedStyleSheets = [...document.adoptedStyleSheets, t];
8783
8840
  return;
8784
8841
  }
8785
8842
  } catch {
8786
8843
  }
8787
8844
  if (!document.getElementById("authui-fouc")) {
8788
8845
  const t = document.createElement("style");
8789
- t.id = "authui-fouc", t.textContent = Gi, document.head.appendChild(t);
8846
+ t.id = "authui-fouc", t.textContent = Ji, document.head.appendChild(t);
8790
8847
  }
8791
8848
  }
8792
8849
  }
8793
- Ao();
8794
- const ko = ["loading", "signed-out", "signed-in", "mfa-required"];
8795
- function Gt(t) {
8796
- return t ? t.split(/[\s,]+/).map((e) => e.trim()).filter((e) => ko.includes(e)) : [];
8850
+ jo();
8851
+ const Po = ["loading", "signed-out", "signed-in", "mfa-required"];
8852
+ function Kt(t) {
8853
+ return t ? t.split(/[\s,]+/).map((e) => e.trim()).filter((e) => Po.includes(e)) : [];
8797
8854
  }
8798
- let mt = class extends Je {
8855
+ let mt = class extends Qe {
8799
8856
  constructor() {
8800
8857
  super(...arguments), this.when = "", this.unless = "", this.status = R.getState().status, this.unsubscribe = null;
8801
8858
  }
@@ -8807,11 +8864,11 @@ let mt = class extends Je {
8807
8864
  }
8808
8865
  /** Whether the current status satisfies `when` and `unless`. */
8809
8866
  get visible() {
8810
- const t = Gt(this.when), e = Gt(this.unless);
8867
+ const t = Kt(this.when), e = Kt(this.unless);
8811
8868
  return !(this.status === "loading" && !t.includes("loading") || t.length > 0 && !t.includes(this.status) || e.includes(this.status));
8812
8869
  }
8813
8870
  updated() {
8814
- (this.status !== "loading" || Gt(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
8871
+ (this.status !== "loading" || Kt(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
8815
8872
  }
8816
8873
  render() {
8817
8874
  return this.visible ? b`<slot></slot>` : M;
@@ -8824,12 +8881,12 @@ qt([
8824
8881
  ee({ type: String })
8825
8882
  ], mt.prototype, "unless", 2);
8826
8883
  qt([
8827
- G()
8884
+ V()
8828
8885
  ], mt.prototype, "status", 2);
8829
8886
  mt = qt([
8830
- Qe("authui-show")
8887
+ ze("authui-show")
8831
8888
  ], mt);
8832
- const So = We`
8889
+ const Co = We`
8833
8890
  :host {
8834
8891
  display: block;
8835
8892
  width: 100%;
@@ -8896,146 +8953,146 @@ const So = We`
8896
8953
  ${t}
8897
8954
  </svg>`, _ = {
8898
8955
  mail: se(
8899
- W`<rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/>`
8956
+ G`<rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/>`
8900
8957
  ),
8901
8958
  phone: se(
8902
- W`<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/>`
8959
+ G`<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/>`
8903
8960
  ),
8904
8961
  user: se(
8905
- W`<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>`
8962
+ G`<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>`
8906
8963
  ),
8907
8964
  userX: se(
8908
- W`<path d="M2 21a8 8 0 0 1 11.873-7"/><circle cx="10" cy="8" r="5"/><path d="m17 17 5 5"/><path d="m22 17-5 5"/>`
8965
+ G`<path d="M2 21a8 8 0 0 1 11.873-7"/><circle cx="10" cy="8" r="5"/><path d="m17 17 5 5"/><path d="m22 17-5 5"/>`
8909
8966
  ),
8910
8967
  lock: se(
8911
- W`<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`
8968
+ G`<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`
8912
8969
  ),
8913
8970
  key: se(
8914
- W`<path d="m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4"/><path d="m21 2-9.6 9.6"/><circle cx="7.5" cy="15.5" r="5.5"/>`
8971
+ G`<path d="m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4"/><path d="m21 2-9.6 9.6"/><circle cx="7.5" cy="15.5" r="5.5"/>`
8915
8972
  ),
8916
8973
  shield: se(
8917
- W`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>`
8974
+ G`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>`
8918
8975
  ),
8919
8976
  shieldCheck: se(
8920
- W`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/>`
8977
+ G`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/>`
8921
8978
  ),
8922
8979
  smartphone: se(
8923
- W`<rect width="14" height="20" x="5" y="2" rx="2" ry="2"/><path d="M12 18h.01"/>`
8980
+ G`<rect width="14" height="20" x="5" y="2" rx="2" ry="2"/><path d="M12 18h.01"/>`
8924
8981
  ),
8925
8982
  monitor: se(
8926
- W`<rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/>`
8983
+ G`<rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/>`
8927
8984
  ),
8928
8985
  globe: se(
8929
- W`<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>`
8986
+ G`<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>`
8930
8987
  ),
8931
8988
  logOut: se(
8932
- W`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" x2="9" y1="12" y2="12"/>`
8989
+ G`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" x2="9" y1="12" y2="12"/>`
8933
8990
  ),
8934
8991
  settings: se(
8935
- W`<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>`
8992
+ G`<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>`
8936
8993
  ),
8937
- x: se(W`<path d="M18 6 6 18"/><path d="m6 6 12 12"/>`),
8938
- check: se(W`<path d="M20 6 9 17l-5-5"/>`),
8994
+ x: se(G`<path d="M18 6 6 18"/><path d="m6 6 12 12"/>`),
8995
+ check: se(G`<path d="M20 6 9 17l-5-5"/>`),
8939
8996
  users: se(
8940
- W`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/>`
8997
+ G`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/>`
8941
8998
  ),
8942
8999
  copy: se(
8943
- W`<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>`
9000
+ G`<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>`
8944
9001
  ),
8945
9002
  eye: se(
8946
- W`<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/>`
9003
+ G`<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/>`
8947
9004
  ),
8948
9005
  eyeOff: se(
8949
- W`<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/>`
9006
+ G`<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/>`
8950
9007
  ),
8951
- arrowLeft: se(W`<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>`),
9008
+ arrowLeft: se(G`<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>`),
8952
9009
  alert: se(
8953
- W`<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>`
9010
+ G`<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>`
8954
9011
  ),
8955
- info: se(W`<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>`),
8956
- checkCircle: se(W`<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>`),
9012
+ info: se(G`<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>`),
9013
+ checkCircle: se(G`<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>`),
8957
9014
  link: se(
8958
- W`<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>`
9015
+ G`<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>`
8959
9016
  ),
8960
9017
  activity: se(
8961
- W`<path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/>`
9018
+ G`<path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/>`
8962
9019
  ),
8963
9020
  trash: se(
8964
- W`<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>`
9021
+ G`<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>`
8965
9022
  ),
8966
9023
  sparkles: se(
8967
- W`<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/>`
9024
+ G`<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/>`
8968
9025
  ),
8969
9026
  refresh: se(
8970
- W`<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>`
9027
+ G`<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>`
8971
9028
  ),
8972
- chevronDown: se(W`<path d="m6 9 6 6 6-6"/>`),
9029
+ chevronDown: se(G`<path d="m6 9 6 6 6-6"/>`),
8973
9030
  ghost: se(
8974
- W`<path d="M9 10h.01"/><path d="M15 10h.01"/><path d="M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z"/>`
9031
+ G`<path d="M9 10h.01"/><path d="M15 10h.01"/><path d="M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z"/>`
8975
9032
  ),
8976
9033
  qr: se(
8977
- W`<rect width="5" height="5" x="3" y="3" rx="1"/><rect width="5" height="5" x="16" y="3" rx="1"/><rect width="5" height="5" x="3" y="16" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3"/><path d="M21 21v.01"/><path d="M12 7v3a2 2 0 0 1-2 2H7"/><path d="M3 12h.01"/><path d="M12 3h.01"/><path d="M12 16v.01"/><path d="M16 12h1"/><path d="M21 12v.01"/><path d="M12 21v-1"/>`
9034
+ G`<rect width="5" height="5" x="3" y="3" rx="1"/><rect width="5" height="5" x="16" y="3" rx="1"/><rect width="5" height="5" x="3" y="16" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3"/><path d="M21 21v.01"/><path d="M12 7v3a2 2 0 0 1-2 2H7"/><path d="M3 12h.01"/><path d="M12 3h.01"/><path d="M12 16v.01"/><path d="M16 12h1"/><path d="M21 12v.01"/><path d="M12 21v-1"/>`
8978
9035
  )
8979
- }, ge = (t, e = "0 0 24 24") => b`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`, jo = {
9036
+ }, ge = (t, e = "0 0 24 24") => b`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`, xo = {
8980
9037
  google: ge(
8981
- W`<path fill="#4285F4" d="M23.49 12.27c0-.79-.07-1.54-.19-2.27H12v4.51h6.47a5.57 5.57 0 0 1-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"/><path fill="#34A853" d="M12 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.09A11.99 11.99 0 0 0 12 24z"/><path fill="#FBBC05" d="M5.27 14.29A7.2 7.2 0 0 1 4.89 12c0-.8.14-1.57.38-2.29V6.62H1.29A11.97 11.97 0 0 0 0 12c0 1.94.46 3.77 1.29 5.38l3.98-3.09z"/><path fill="#EA4335" d="M12 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42C17.95 1.19 15.24 0 12 0 7.31 0 3.26 2.69 1.29 6.62l3.98 3.09C6.22 6.86 8.87 4.75 12 4.75z"/>`
9038
+ G`<path fill="#4285F4" d="M23.49 12.27c0-.79-.07-1.54-.19-2.27H12v4.51h6.47a5.57 5.57 0 0 1-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"/><path fill="#34A853" d="M12 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.09A11.99 11.99 0 0 0 12 24z"/><path fill="#FBBC05" d="M5.27 14.29A7.2 7.2 0 0 1 4.89 12c0-.8.14-1.57.38-2.29V6.62H1.29A11.97 11.97 0 0 0 0 12c0 1.94.46 3.77 1.29 5.38l3.98-3.09z"/><path fill="#EA4335" d="M12 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42C17.95 1.19 15.24 0 12 0 7.31 0 3.26 2.69 1.29 6.62l3.98 3.09C6.22 6.86 8.87 4.75 12 4.75z"/>`
8982
9039
  ),
8983
9040
  github: ge(
8984
- W`<path fill="currentColor" d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"/>`
9041
+ G`<path fill="currentColor" d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"/>`
8985
9042
  ),
8986
9043
  apple: ge(
8987
- W`<path fill="currentColor" d="M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"/>`
9044
+ G`<path fill="currentColor" d="M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"/>`
8988
9045
  ),
8989
9046
  facebook: ge(
8990
- W`<path fill="#1877F2" d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>`
9047
+ G`<path fill="#1877F2" d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>`
8991
9048
  ),
8992
9049
  x: ge(
8993
- W`<path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/>`
9050
+ G`<path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/>`
8994
9051
  ),
8995
9052
  microsoft: ge(
8996
- W`<path fill="#F25022" d="M1 1h10v10H1z"/><path fill="#7FBA00" d="M13 1h10v10H13z"/><path fill="#00A4EF" d="M1 13h10v10H1z"/><path fill="#FFB900" d="M13 13h10v10H13z"/>`
9053
+ G`<path fill="#F25022" d="M1 1h10v10H1z"/><path fill="#7FBA00" d="M13 1h10v10H13z"/><path fill="#00A4EF" d="M1 13h10v10H1z"/><path fill="#FFB900" d="M13 13h10v10H13z"/>`
8997
9054
  ),
8998
9055
  discord: ge(
8999
- W`<path fill="#5865F2" d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/>`
9056
+ G`<path fill="#5865F2" d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/>`
9000
9057
  ),
9001
9058
  gitlab: ge(
9002
- W`<path fill="#FC6D26" d="m23.6 9.593-.033-.086L20.3.98a.851.851 0 0 0-.336-.405.876.876 0 0 0-1.001.054.874.874 0 0 0-.29.44l-2.205 6.748H7.535L5.33 1.069a.857.857 0 0 0-.29-.441.876.876 0 0 0-1.001-.054.86.86 0 0 0-.336.405L.436 9.502l-.032.086a6.066 6.066 0 0 0 2.012 7.01l.011.009.03.021 4.976 3.727 2.462 1.863 1.5 1.132a1.009 1.009 0 0 0 1.22 0l1.5-1.132 2.461-1.863 5.006-3.75.013-.01a6.068 6.068 0 0 0 2.006-7.002z"/>`
9059
+ G`<path fill="#FC6D26" d="m23.6 9.593-.033-.086L20.3.98a.851.851 0 0 0-.336-.405.876.876 0 0 0-1.001.054.874.874 0 0 0-.29.44l-2.205 6.748H7.535L5.33 1.069a.857.857 0 0 0-.29-.441.876.876 0 0 0-1.001-.054.86.86 0 0 0-.336.405L.436 9.502l-.032.086a6.066 6.066 0 0 0 2.012 7.01l.011.009.03.021 4.976 3.727 2.462 1.863 1.5 1.132a1.009 1.009 0 0 0 1.22 0l1.5-1.132 2.461-1.863 5.006-3.75.013-.01a6.068 6.068 0 0 0 2.006-7.002z"/>`
9003
9060
  ),
9004
9061
  linkedin: ge(
9005
- W`<path fill="#0A66C2" d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>`
9062
+ G`<path fill="#0A66C2" d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>`
9006
9063
  ),
9007
9064
  slack: ge(
9008
- W`<path fill="#E01E5A" d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313z"/><path fill="#36C5F0" d="M8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312z"/><path fill="#2EB67D" d="M18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.27 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.163 0a2.528 2.528 0 0 1 2.523 2.522v6.312z"/><path fill="#ECB22E" d="M15.163 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.163 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.27a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.315A2.527 2.527 0 0 1 24 15.163a2.528 2.528 0 0 1-2.522 2.523h-6.315z"/>`
9065
+ G`<path fill="#E01E5A" d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313z"/><path fill="#36C5F0" d="M8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312z"/><path fill="#2EB67D" d="M18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.27 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.163 0a2.528 2.528 0 0 1 2.523 2.522v6.312z"/><path fill="#ECB22E" d="M15.163 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.163 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.27a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.315A2.527 2.527 0 0 1 24 15.163a2.528 2.528 0 0 1-2.522 2.523h-6.315z"/>`
9009
9066
  ),
9010
9067
  twitch: ge(
9011
- W`<path fill="#9146FF" d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0 1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/>`
9068
+ G`<path fill="#9146FF" d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0 1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/>`
9012
9069
  ),
9013
9070
  spotify: ge(
9014
- W`<path fill="#1DB954" d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"/>`
9071
+ G`<path fill="#1DB954" d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"/>`
9015
9072
  ),
9016
9073
  notion: ge(
9017
- W`<path fill="currentColor" d="M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"/>`
9074
+ G`<path fill="currentColor" d="M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"/>`
9018
9075
  ),
9019
9076
  dropbox: ge(
9020
- W`<path fill="#0061FF" d="M6 1.807 0 5.629l6 3.822 6.001-3.822L6 1.807zm12 0-6 3.822 6 3.822 6-3.822-6-3.822zM0 13.274l6 3.822 6.001-3.822L6 9.452l-6 3.822zm18-3.822-6 3.822 6 3.822 6-3.822-6-3.822zM6 18.371l6.001 3.822 6-3.822-6-3.822L6 18.371z"/>`
9077
+ G`<path fill="#0061FF" d="M6 1.807 0 5.629l6 3.822 6.001-3.822L6 1.807zm12 0-6 3.822 6 3.822 6-3.822-6-3.822zM0 13.274l6 3.822 6.001-3.822L6 9.452l-6 3.822zm18-3.822-6 3.822 6 3.822 6-3.822-6-3.822zM6 18.371l6.001 3.822 6-3.822-6-3.822L6 18.371z"/>`
9021
9078
  ),
9022
9079
  figma: ge(
9023
- W`<path fill="#F24E1E" d="M8 24a4 4 0 0 0 4-4v-4H8a4 4 0 0 0 0 8z"/><path fill="#A259FF" d="M4 12a4 4 0 0 1 4-4h4v8H8a4 4 0 0 1-4-4z"/><path fill="#FF7262" d="M4 4a4 4 0 0 1 4-4h4v8H8a4 4 0 0 1-4-4z"/><path fill="#1ABCFE" d="M12 0h4a4 4 0 0 1 0 8h-4V0z"/><path fill="#0ACF83" d="M20 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0z"/>`
9080
+ G`<path fill="#F24E1E" d="M8 24a4 4 0 0 0 4-4v-4H8a4 4 0 0 0 0 8z"/><path fill="#A259FF" d="M4 12a4 4 0 0 1 4-4h4v8H8a4 4 0 0 1-4-4z"/><path fill="#FF7262" d="M4 4a4 4 0 0 1 4-4h4v8H8a4 4 0 0 1-4-4z"/><path fill="#1ABCFE" d="M12 0h4a4 4 0 0 1 0 8h-4V0z"/><path fill="#0ACF83" d="M20 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0z"/>`
9024
9081
  ),
9025
9082
  bitbucket: ge(
9026
- W`<path fill="#2684FF" d="M.778 1.213a.768.768 0 0 0-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 0 0 .77-.646l3.27-20.03a.768.768 0 0 0-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z"/>`
9083
+ G`<path fill="#2684FF" d="M.778 1.213a.768.768 0 0 0-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 0 0 .77-.646l3.27-20.03a.768.768 0 0 0-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z"/>`
9027
9084
  ),
9028
9085
  amazon: ge(
9029
- W`<path fill="currentColor" d="M.045 18.02c.072-.116.187-.124.348-.022 3.636 2.11 7.594 3.166 11.87 3.166 2.852 0 5.668-.533 8.447-1.595l.315-.14c.138-.06.234-.1.293-.13.226-.088.39-.046.525.13.12.174.09.336-.12.48-.256.19-.6.41-1.006.654-1.244.743-2.64 1.316-4.185 1.726a17.617 17.617 0 0 1-10.951-.577 17.88 17.88 0 0 1-5.43-3.35c-.1-.074-.151-.15-.151-.22 0-.047.021-.09.051-.13zm6.565-6.218c0-1.005.247-1.863.743-2.577.495-.71 1.17-1.25 2.04-1.615.796-.335 1.756-.575 2.912-.72.39-.046 1.033-.103 1.92-.174v-.37c0-.93-.105-1.558-.3-1.875-.302-.43-.78-.65-1.44-.65h-.182c-.48.046-.896.196-1.246.46-.35.27-.575.63-.675 1.096-.06.3-.206.465-.435.51l-2.52-.315c-.248-.06-.372-.18-.372-.39 0-.046.007-.09.022-.15.247-1.29.855-2.25 1.82-2.88.976-.616 2.1-.975 3.39-1.05h.54c1.65 0 2.957.434 3.888 1.29.135.15.27.3.405.48.12.165.224.314.283.45.075.134.15.33.195.57.06.254.105.42.135.51.03.104.062.3.076.615.01.313.02.493.02.553v5.28c0 .376.06.72.165 1.036.105.313.21.54.315.674l.51.674c.09.136.136.256.136.36 0 .12-.06.226-.18.314-1.2 1.05-1.86 1.62-1.963 1.71-.165.135-.373.15-.61.045a6.62 6.62 0 0 1-.526-.496l-.31-.347a9.858 9.858 0 0 1-.317-.42l-.3-.435c-.81.886-1.603 1.44-2.4 1.665-.494.15-1.093.227-1.83.227-1.11 0-2.04-.343-2.76-1.034-.72-.69-1.08-1.665-1.08-2.94l-.05-.076zm3.753-.438c0 .566.14 1.02.425 1.364.285.34.675.512 1.155.512.045 0 .106-.007.195-.02.09-.016.134-.023.166-.023.614-.16 1.08-.553 1.424-1.178.165-.28.285-.58.36-.91.09-.32.12-.59.135-.8.015-.195.015-.54.015-1.005v-.54c-.84 0-1.484.06-1.92.18-1.275.36-1.92 1.17-1.92 2.43l-.035-.01zm9.162 7.027c.03-.06.075-.11.132-.17.362-.243.714-.41 1.05-.5a8.094 8.094 0 0 1 1.612-.24c.14-.012.28 0 .41.03.65.06 1.05.168 1.172.33.063.09.099.228.099.39v.15c0 .51-.149 1.11-.424 1.8-.278.69-.664 1.248-1.156 1.68-.073.06-.14.09-.197.09-.03 0-.06 0-.09-.012-.09-.044-.107-.12-.064-.24.54-1.26.806-2.143.806-2.64 0-.15-.03-.27-.087-.344-.145-.166-.55-.257-1.224-.257-.243 0-.533.016-.87.045-.363.045-.7.09-1 .135-.09 0-.148-.014-.18-.044-.03-.03-.036-.06-.02-.106 0-.014.007-.03.02-.06z"/>`
9086
+ G`<path fill="currentColor" d="M.045 18.02c.072-.116.187-.124.348-.022 3.636 2.11 7.594 3.166 11.87 3.166 2.852 0 5.668-.533 8.447-1.595l.315-.14c.138-.06.234-.1.293-.13.226-.088.39-.046.525.13.12.174.09.336-.12.48-.256.19-.6.41-1.006.654-1.244.743-2.64 1.316-4.185 1.726a17.617 17.617 0 0 1-10.951-.577 17.88 17.88 0 0 1-5.43-3.35c-.1-.074-.151-.15-.151-.22 0-.047.021-.09.051-.13zm6.565-6.218c0-1.005.247-1.863.743-2.577.495-.71 1.17-1.25 2.04-1.615.796-.335 1.756-.575 2.912-.72.39-.046 1.033-.103 1.92-.174v-.37c0-.93-.105-1.558-.3-1.875-.302-.43-.78-.65-1.44-.65h-.182c-.48.046-.896.196-1.246.46-.35.27-.575.63-.675 1.096-.06.3-.206.465-.435.51l-2.52-.315c-.248-.06-.372-.18-.372-.39 0-.046.007-.09.022-.15.247-1.29.855-2.25 1.82-2.88.976-.616 2.1-.975 3.39-1.05h.54c1.65 0 2.957.434 3.888 1.29.135.15.27.3.405.48.12.165.224.314.283.45.075.134.15.33.195.57.06.254.105.42.135.51.03.104.062.3.076.615.01.313.02.493.02.553v5.28c0 .376.06.72.165 1.036.105.313.21.54.315.674l.51.674c.09.136.136.256.136.36 0 .12-.06.226-.18.314-1.2 1.05-1.86 1.62-1.963 1.71-.165.135-.373.15-.61.045a6.62 6.62 0 0 1-.526-.496l-.31-.347a9.858 9.858 0 0 1-.317-.42l-.3-.435c-.81.886-1.603 1.44-2.4 1.665-.494.15-1.093.227-1.83.227-1.11 0-2.04-.343-2.76-1.034-.72-.69-1.08-1.665-1.08-2.94l-.05-.076zm3.753-.438c0 .566.14 1.02.425 1.364.285.34.675.512 1.155.512.045 0 .106-.007.195-.02.09-.016.134-.023.166-.023.614-.16 1.08-.553 1.424-1.178.165-.28.285-.58.36-.91.09-.32.12-.59.135-.8.015-.195.015-.54.015-1.005v-.54c-.84 0-1.484.06-1.92.18-1.275.36-1.92 1.17-1.92 2.43l-.035-.01zm9.162 7.027c.03-.06.075-.11.132-.17.362-.243.714-.41 1.05-.5a8.094 8.094 0 0 1 1.612-.24c.14-.012.28 0 .41.03.65.06 1.05.168 1.172.33.063.09.099.228.099.39v.15c0 .51-.149 1.11-.424 1.8-.278.69-.664 1.248-1.156 1.68-.073.06-.14.09-.197.09-.03 0-.06 0-.09-.012-.09-.044-.107-.12-.064-.24.54-1.26.806-2.143.806-2.64 0-.15-.03-.27-.087-.344-.145-.166-.55-.257-1.224-.257-.243 0-.533.016-.87.045-.363.045-.7.09-1 .135-.09 0-.148-.014-.18-.044-.03-.03-.036-.06-.02-.106 0-.014.007-.03.02-.06z"/>`
9030
9087
  ),
9031
9088
  paypal: ge(
9032
- W`<path fill="#003087" d="M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z"/>`
9089
+ G`<path fill="#003087" d="M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z"/>`
9033
9090
  )
9034
9091
  };
9035
- function li(t) {
9036
- return jo[t] ?? _.globe;
9092
+ function ui(t) {
9093
+ return xo[t] ?? _.globe;
9037
9094
  }
9038
- function bi(t) {
9095
+ function Ai(t) {
9039
9096
  const e = (t.trim()[0] ?? "?").toUpperCase();
9040
9097
  return /[A-Z0-9]/i.test(e) ? e : _.user;
9041
9098
  }
@@ -9044,10 +9101,10 @@ function wt(t) {
9044
9101
  window.dispatchEvent(new CustomEvent("authui:open", { detail: { view: t } }));
9045
9102
  }));
9046
9103
  }
9047
- function $o() {
9104
+ function Uo() {
9048
9105
  typeof window > "u" || window.dispatchEvent(new CustomEvent("authui:close"));
9049
9106
  }
9050
- function ui(t) {
9107
+ function pi(t) {
9051
9108
  const e = {
9052
9109
  length: t.length >= 8,
9053
9110
  long: t.length >= 12,
@@ -9063,39 +9120,12 @@ function ui(t) {
9063
9120
  let i, o;
9064
9121
  return !e.length || n <= 1 ? (i = 1, o = "passwordStrengthTooWeak") : n === 2 ? (i = 2, o = "passwordStrengthWeak") : n === 3 ? (i = 3, o = "passwordStrengthFair") : n >= 5 && e.long && e.lower && e.upper && e.number && e.symbol ? (i = 4, o = "passwordStrengthVeryStrong") : (i = 4, o = "passwordStrengthStrong"), { level: i, percent: i * 25, labelKey: o, checks: e };
9065
9122
  }
9066
- const vi = "authui:last-method";
9067
- function lt(t) {
9068
- if (!(typeof localStorage > "u")) {
9069
- if (!t || t === "mfa" || t === "sign-up")
9070
- if (t === "sign-up") t = "email-password";
9071
- else return;
9072
- try {
9073
- localStorage.setItem(vi, t);
9074
- } catch {
9075
- }
9076
- }
9077
- }
9078
- function Oe() {
9079
- if (typeof localStorage > "u") return null;
9080
- try {
9081
- return localStorage.getItem(vi);
9082
- } catch {
9083
- return null;
9084
- }
9085
- }
9086
- function Oo() {
9087
- if (!(typeof localStorage > "u"))
9088
- try {
9089
- localStorage.removeItem(vi);
9090
- } catch {
9091
- }
9092
- }
9093
- var Po = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, ke = (t, e, n, i) => {
9094
- for (var o = i > 1 ? void 0 : i ? Co(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9123
+ var Mo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, ke = (t, e, n, i) => {
9124
+ for (var o = i > 1 ? void 0 : i ? Ro(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9095
9125
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
9096
- return i && o && Po(e, n, o), o;
9126
+ return i && o && Mo(e, n, o), o;
9097
9127
  };
9098
- let ve = class extends Re {
9128
+ let ve = class extends qe {
9099
9129
  constructor() {
9100
9130
  super(...arguments), this.view = "sign-in", this.embedded = !1, this.step = "sign-in", this.busy = !1, this.error = "", this.notice = null, this.showPassword = !1, this.token = null, this.focusOnStep = !1, this.resendCooldownUntil = 0, this.challenge = null, this.recovery = null, this.email = "", this.password = "", this.passwordConfirm = "", this.name = "", this.phone = "", this.code = "", this.onSignIn = (t) => {
9101
9131
  t.preventDefault(), this.requireValid(t) && this.run(async () => {
@@ -9111,8 +9141,8 @@ let ve = class extends Re {
9111
9141
  });
9112
9142
  }, this.onOAuth = (t) => {
9113
9143
  this.run(async () => {
9114
- if (lt(`oauth:${t}`), await R.signInWithOAuth(t), R.isPreview) {
9115
- this.fire("authui-success", { method: "oauth" });
9144
+ if (go(t), await R.signInWithOAuth(t), R.isPreview) {
9145
+ sn(), this.fire("authui-success", { method: "oauth" });
9116
9146
  return;
9117
9147
  }
9118
9148
  await new Promise((e) => setTimeout(e, 4e3));
@@ -9129,7 +9159,7 @@ let ve = class extends Re {
9129
9159
  }
9130
9160
  const e = this.recovery;
9131
9161
  e && this.run(async () => {
9132
- await R.completePasswordRecovery(e.userId, e.secret, this.password), this.password = "", this.passwordConfirm = "", this.recovery = null, this.auth.pending?.type === "reset-password" && R.setPending(null), this.notice = { tone: "success", message: this.t("passwordUpdated") }, this.go("sign-in");
9162
+ await R.completePasswordRecovery(e.userId, e.secret, this.password), this.password = "", this.passwordConfirm = "", this.recovery = null, this.auth.pending?.type === "reset-password" && R.setPending(null), this.go("sign-in"), this.notice = { tone: "success", message: this.t("passwordUpdated") };
9133
9163
  });
9134
9164
  }, this.onMagicUrl = (t) => {
9135
9165
  t.preventDefault(), this.requireValid(t) && this.run(async () => {
@@ -9200,7 +9230,7 @@ let ve = class extends Re {
9200
9230
  const { status: t, pending: e } = this.auth;
9201
9231
  t === "mfa-required" && this.step !== "mfa" && this.go("mfa");
9202
9232
  const n = this.step === "reset-password" || e?.type === "reset-password" || this.recovery !== null;
9203
- (t === "signed-in" || t === "signed-out") && !n && (this.step === "mfa" || this.step === "phone" || this.step === "email-otp" || this.step === "magic-url" || this.step === "forgot-password" || this.token !== null || this.challenge !== null || t === "signed-out") && (this.token = null, this.challenge = null, this.code = "", this.password = "", this.notice = null, this.go(this.view === "sign-up" ? "sign-up" : "sign-in")), e?.type === "reset-password" && this.step !== "reset-password" && (this.recovery = { userId: e.userId, secret: e.secret }, this.go("reset-password")), e?.type === "oauth-failed" && (this.notice = { tone: "error", message: this.t("errorOAuth") }, R.setPending(null)), e?.type === "notice" && !this.notice && (this.notice = {
9233
+ (t === "signed-in" || t === "signed-out") && !n && (this.step === "mfa" || this.step === "phone" || this.step === "email-otp" || this.step === "magic-url" || this.step === "forgot-password" || this.token !== null || this.challenge !== null || t === "signed-out") && (this.token = null, this.challenge = null, this.code = "", this.password = "", this.notice = null, this.go(this.view === "sign-up" ? "sign-up" : "sign-in")), e?.type === "reset-password" && this.step !== "reset-password" && (this.recovery = { userId: e.userId, secret: e.secret }, this.go("reset-password")), e?.type === "oauth-failed" && (this.notice = { tone: "error", message: this.t("errorOAuth") }), e?.type === "notice" && !this.notice && (this.notice = {
9204
9234
  tone: e.tone === "error" ? "error" : e.tone,
9205
9235
  message: e.message
9206
9236
  });
@@ -9210,7 +9240,7 @@ let ve = class extends Re {
9210
9240
  this.notice = null, this.auth.pending?.type === "notice" && R.setPending(null);
9211
9241
  }
9212
9242
  go(t) {
9213
- t === "sign-up" && this.config?.signUp === !1 && (t = "sign-in"), this.focusOnStep = !0, this.step = t, this.error = "", this.notice = null, this.auth.pending?.type === "notice" && R.setPending(null), this.busy = !1, this.showPassword = !1, this.password = "", this.passwordConfirm = "", t !== "mfa" && (this.challenge = null), t !== "email-otp" && t !== "phone" && t !== "magic-url" && (this.token = null), this.fire("authui-view", { view: t });
9243
+ t === "sign-up" && this.config?.signUp === !1 && (t = "sign-in"), this.focusOnStep = !0, this.step = t, this.error = "", this.notice = null, this.busy = !1, this.showPassword = !1, this.password = "", this.passwordConfirm = "", t !== "mfa" && (this.challenge = null), t !== "email-otp" && t !== "phone" && t !== "magic-url" && (this.token = null), this.fire("authui-view", { view: t });
9214
9244
  }
9215
9245
  // ───────────────────────────── actions ─────────────────────────────
9216
9246
  async run(t, e = "link") {
@@ -9312,7 +9342,7 @@ let ve = class extends Re {
9312
9342
  </button>`;
9313
9343
  }
9314
9344
  passwordField(t) {
9315
- const e = this[t.field], n = t.meter ? ui(e) : null;
9345
+ const e = this[t.field], n = t.meter ? pi(e) : null;
9316
9346
  return b`
9317
9347
  <div class="field">
9318
9348
  <label class="label" for=${t.id}>
@@ -9455,7 +9485,7 @@ let ve = class extends Re {
9455
9485
  <div class="stack">
9456
9486
  <div class="row">
9457
9487
  <div class="inline">
9458
- <span class="avatar">${bi(e)}</span>
9488
+ <span class="avatar">${Ai(e)}</span>
9459
9489
  <div class="row-main">
9460
9490
  <span class="row-title" title=${e}>${e}</span>
9461
9491
  ${t.email && t.name ? b`<span class="row-sub" title=${t.email}>${t.email}</span>` : M}
@@ -9485,7 +9515,7 @@ let ve = class extends Re {
9485
9515
  renderProviders() {
9486
9516
  const t = [...this.config?.methods?.oauth ?? []];
9487
9517
  if (t.length === 0) return M;
9488
- const e = Oe();
9518
+ const e = Fe();
9489
9519
  t.sort((i, o) => {
9490
9520
  const a = e === `oauth:${i}` ? 0 : 1, s = e === `oauth:${o}` ? 0 : 1;
9491
9521
  return a - s;
@@ -9502,7 +9532,7 @@ let ve = class extends Re {
9502
9532
  ?disabled=${this.busy}
9503
9533
  aria-label=${this.t("continueWith", { provider: pt(i) })}
9504
9534
  >
9505
- ${li(i)}
9535
+ ${ui(i)}
9506
9536
  <span
9507
9537
  >${n ? pt(i) : this.t("continueWith", { provider: pt(i) })}</span
9508
9538
  >
@@ -9523,11 +9553,11 @@ let ve = class extends Re {
9523
9553
  ${this.renderProviders()}
9524
9554
  ${n && (e || i.length > 0) ? b`<div class="separator-text">${this.t("or")}</div>` : M}
9525
9555
  ${e ? b`<form
9526
- class="form ${Oe() === "email-password" ? "last-used-form" : ""}"
9556
+ class="form ${Fe() === "email-password" ? "last-used-form" : ""}"
9527
9557
  @submit=${this.onSignIn}
9528
9558
  novalidate
9529
9559
  >
9530
- ${Oe() === "email-password" ? b`<p class="hint">
9560
+ ${Fe() === "email-password" ? b`<p class="hint">
9531
9561
  <span class="last-used-badge">${this.t("lastUsed")}</span>
9532
9562
  </p>` : M}
9533
9563
  ${this.emailField()}
@@ -9536,7 +9566,7 @@ let ve = class extends Re {
9536
9566
  </form>` : this.renderError()}
9537
9567
  ${i.length > 0 ? b`<div class="stack-sm">
9538
9568
  ${i.map((o) => {
9539
- const a = Oe() === o.step;
9569
+ const a = Fe() === o.step;
9540
9570
  return b`<button
9541
9571
  type="button"
9542
9572
  class="btn btn-secondary btn-block ${a ? "last-used" : ""}"
@@ -9549,12 +9579,12 @@ let ve = class extends Re {
9549
9579
  </div>` : M}
9550
9580
  ${t.anonymous ? b`<button
9551
9581
  type="button"
9552
- class="btn btn-ghost btn-block ${Oe() === "anonymous" ? "last-used" : ""}"
9582
+ class="btn btn-ghost btn-block ${Fe() === "anonymous" ? "last-used" : ""}"
9553
9583
  @click=${this.onGuest}
9554
9584
  ?disabled=${this.busy}
9555
9585
  >
9556
9586
  ${_.ghost} ${this.t("continueAsGuest")}
9557
- ${Oe() === "anonymous" ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : M}
9587
+ ${Fe() === "anonymous" ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : M}
9558
9588
  </button>` : M}
9559
9589
  ${e && this.config?.signUp !== !1 ? b`<div class="links">
9560
9590
  <span>${this.t("noAccount")}</span>
@@ -9840,7 +9870,7 @@ let ve = class extends Re {
9840
9870
  `;
9841
9871
  }
9842
9872
  };
9843
- ve.styles = [...Re.styles, So];
9873
+ ve.styles = [...qe.styles, Co];
9844
9874
  ke([
9845
9875
  ee({ type: String })
9846
9876
  ], ve.prototype, "view", 2);
@@ -9848,46 +9878,46 @@ ke([
9848
9878
  ee({ type: Boolean })
9849
9879
  ], ve.prototype, "embedded", 2);
9850
9880
  ke([
9851
- G()
9881
+ V()
9852
9882
  ], ve.prototype, "step", 2);
9853
9883
  ke([
9854
- G()
9884
+ V()
9855
9885
  ], ve.prototype, "busy", 2);
9856
9886
  ke([
9857
- G()
9887
+ V()
9858
9888
  ], ve.prototype, "error", 2);
9859
9889
  ke([
9860
- G()
9890
+ V()
9861
9891
  ], ve.prototype, "notice", 2);
9862
9892
  ke([
9863
- G()
9893
+ V()
9864
9894
  ], ve.prototype, "showPassword", 2);
9865
9895
  ke([
9866
- G()
9896
+ V()
9867
9897
  ], ve.prototype, "token", 2);
9868
9898
  ke([
9869
- G()
9899
+ V()
9870
9900
  ], ve.prototype, "resendCooldownUntil", 2);
9871
9901
  ke([
9872
- G()
9902
+ V()
9873
9903
  ], ve.prototype, "challenge", 2);
9874
9904
  ke([
9875
- G()
9905
+ V()
9876
9906
  ], ve.prototype, "recovery", 2);
9877
9907
  ke([
9878
- Oi("form input:not([type=hidden])")
9908
+ bi("form input:not([type=hidden])")
9879
9909
  ], ve.prototype, "firstInput", 2);
9880
9910
  ve = ke([
9881
- Qe("authui-sign-in")
9911
+ ze("authui-sign-in")
9882
9912
  ], ve);
9883
- var xo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, O = (t, e, n, i) => {
9884
- for (var o = i > 1 ? void 0 : i ? Uo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9913
+ var Eo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, O = (t, e, n, i) => {
9914
+ for (var o = i > 1 ? void 0 : i ? qo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9885
9915
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
9886
- return i && o && xo(e, n, o), o;
9916
+ return i && o && Eo(e, n, o), o;
9887
9917
  };
9888
- let z = class extends Re {
9918
+ let z = class extends qe {
9889
9919
  constructor() {
9890
- super(...arguments), this.embedded = !1, this.tab = "profile", this.active = "profile", this.busy = "", this.notice = null, this.errors = {}, this.nameInput = "", this.emailInput = "", this.emailPassword = "", this.phoneInput = "", this.phonePassword = "", this.phoneCode = "", this.phoneCodeSent = !1, this.guestName = "", this.oldPassword = "", this.newPassword = "", this.newPasswordConfirm = "", this.authenticator = null, this.authenticatorCode = "", this.factors = null, this.recoveryCodes = null, this.stepUp = null, this.stepUpCode = "", this.copied = !1, this.sessions = null, this.identities = null, this.logs = null, this.logsSupported = null, this.logsProbeStarted = !1, this.confirmDelete = !1, this.confirmRegenerate = !1, this.confirmRemoveAuthenticator = !1, this.confirmSignOutAll = !1, this.confirmDisconnectId = null, this.verifyEmailCooldownUntil = 0, this.onTabsKeydown = (t) => {
9920
+ super(...arguments), this.embedded = !1, this.tab = "profile", this.active = "profile", this.busy = "", this.notice = null, this.errors = {}, this.nameInput = "", this.emailInput = "", this.emailPassword = "", this.phoneInput = "", this.phonePassword = "", this.phoneCode = "", this.phoneCodeSent = !1, this.guestName = "", this.oldPassword = "", this.newPassword = "", this.newPasswordConfirm = "", this.authenticator = null, this.authenticatorCode = "", this.factors = null, this.recoveryCodes = null, this.stepUp = null, this.stepUpCode = "", this.copied = !1, this.sessions = null, this.identities = null, this.logs = null, this.logsSupported = null, this.logsProbeStarted = !1, this.confirmDelete = !1, this.confirmRegenerate = !1, this.confirmRemoveAuthenticator = !1, this.confirmSignOutAll = !1, this.confirmDisconnectId = null, this.verifyEmailCooldownUntil = 0, this.verifyEmailCooldownTimer = null, this.onTabsKeydown = (t) => {
9891
9921
  const e = [...this.renderRoot?.querySelectorAll('[role="tab"]') ?? []];
9892
9922
  if (!e.length) return;
9893
9923
  const n = e.findIndex((a) => a.getAttribute("aria-selected") === "true");
@@ -9931,7 +9961,7 @@ let z = class extends Re {
9931
9961
  Date.now() < this.verifyEmailCooldownUntil || this.run(
9932
9962
  "verify",
9933
9963
  async () => {
9934
- await R.sendEmailVerification(), this.verifyEmailCooldownUntil = Date.now() + 45e3, window.setTimeout(() => this.requestUpdate(), 45e3);
9964
+ await R.sendEmailVerification(), this.startVerifyEmailCooldown();
9935
9965
  },
9936
9966
  this.t("verificationSent")
9937
9967
  );
@@ -9958,7 +9988,7 @@ let z = class extends Re {
9958
9988
  async () => {
9959
9989
  await R.updatePassword(this.newPassword, this.oldPassword), this.oldPassword = this.newPassword = this.newPasswordConfirm = "";
9960
9990
  },
9961
- this.t("passwordUpdated")
9991
+ this.t("passwordChanged")
9962
9992
  );
9963
9993
  }
9964
9994
  }, this.onToggleMfa = () => {
@@ -10028,9 +10058,12 @@ let z = class extends Re {
10028
10058
  }, this.onStepUpVerify = (t) => {
10029
10059
  if (t.preventDefault(), !this.requireValid(t)) return;
10030
10060
  const e = this.stepUp;
10031
- e?.challenge && this.run("stepup-code", async () => {
10032
- await R.completeMfaChallenge(e.challenge.id, this.stepUpCode, { signIn: !1 }), this.stepUp = null, this.stepUpCode = "", await e.retry();
10033
- });
10061
+ e?.challenge && (async () => {
10062
+ let n = !1;
10063
+ await this.run("stepup-code", async () => {
10064
+ await R.completeMfaChallenge(e.challenge.id, this.stepUpCode, { signIn: !1 }), this.stepUp = null, this.stepUpCode = "", n = !0;
10065
+ }), n && await e.retry();
10066
+ })();
10034
10067
  }, this.onDeleteSession = (t) => {
10035
10068
  this.run(`session-${t}`, async () => {
10036
10069
  if ((this.sessions ?? []).some((n) => n.$id === t && n.current)) {
@@ -10060,6 +10093,9 @@ let z = class extends Re {
10060
10093
  connectedCallback() {
10061
10094
  super.connectedCallback(), this.active = this.tab, this.hydrate();
10062
10095
  }
10096
+ disconnectedCallback() {
10097
+ super.disconnectedCallback(), this.clearVerifyEmailCooldownTimer(), this.noticeTimer && (clearTimeout(this.noticeTimer), this.noticeTimer = null);
10098
+ }
10063
10099
  willUpdate(t) {
10064
10100
  t.has("tab") && t.get("tab") !== void 0 && (this.active = this.tab), t.has("auth") && this.hydrate(), this.ensureLoaded();
10065
10101
  }
@@ -10171,6 +10207,14 @@ let z = class extends Re {
10171
10207
  }
10172
10208
  }
10173
10209
  }
10210
+ startVerifyEmailCooldown() {
10211
+ this.verifyEmailCooldownUntil = Date.now() + 45e3, this.clearVerifyEmailCooldownTimer(), this.verifyEmailCooldownTimer = setInterval(() => {
10212
+ this.requestUpdate(), Date.now() >= this.verifyEmailCooldownUntil && this.clearVerifyEmailCooldownTimer();
10213
+ }, 1e3);
10214
+ }
10215
+ clearVerifyEmailCooldownTimer() {
10216
+ this.verifyEmailCooldownTimer && (clearInterval(this.verifyEmailCooldownTimer), this.verifyEmailCooldownTimer = null);
10217
+ }
10174
10218
  bind(t) {
10175
10219
  return (e) => {
10176
10220
  this[t] = e.target.value;
@@ -10245,7 +10289,7 @@ let z = class extends Re {
10245
10289
  return b`
10246
10290
  <div class="between">
10247
10291
  <div class="identity">
10248
- <span class="avatar">${bi(e)}</span>
10292
+ <span class="avatar">${Ai(e)}</span>
10249
10293
  <div class="row-main">
10250
10294
  <span class="row-title" title=${e}>
10251
10295
  ${e}
@@ -10341,7 +10385,7 @@ let z = class extends Re {
10341
10385
  autocomplete="new-password"
10342
10386
  />
10343
10387
  ${this.emailPassword ? (() => {
10344
- const e = ui(this.emailPassword);
10388
+ const e = pi(this.emailPassword);
10345
10389
  return b`<div class="strength" aria-live="polite">
10346
10390
  <div
10347
10391
  class="strength-meter"
@@ -10607,7 +10651,7 @@ let z = class extends Re {
10607
10651
  autocomplete="new-password"
10608
10652
  />
10609
10653
  ${this.newPassword ? (() => {
10610
- const n = ui(this.newPassword);
10654
+ const n = pi(this.newPassword);
10611
10655
  return b`<div class="strength" aria-live="polite">
10612
10656
  <div
10613
10657
  class="strength-meter"
@@ -10656,7 +10700,7 @@ let z = class extends Re {
10656
10700
  </div>`;
10657
10701
  }
10658
10702
  renderMfaCard() {
10659
- const t = this.user, e = this.factors?.totp ?? !1, n = this.authenticator ? R.isPreview ? co(this.authenticator.uri) : new tn(R.getClient()).getQR(this.authenticator.uri, 400, 1).toString() : "";
10703
+ const t = this.user, e = this.factors?.totp ?? !1, n = this.authenticator ? R.isPreview ? po(this.authenticator.uri) : new on(R.getClient()).getQR(this.authenticator.uri, 400, 1).toString() : "";
10660
10704
  return this.card(
10661
10705
  this.t("twoFactor"),
10662
10706
  this.t("twoFactorDescription"),
@@ -10988,7 +11032,7 @@ let z = class extends Re {
10988
11032
  ${t === null ? b`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? b`<div class="empty">${this.t("noConnections")}</div>` : t.map(
10989
11033
  (n) => b`<div class="row">
10990
11034
  <div class="inline">
10991
- <span class="device">${li(n.provider)}</span>
11035
+ <span class="device">${ui(n.provider)}</span>
10992
11036
  <div class="row-main">
10993
11037
  <span class="row-title">${pt(n.provider)}</span>
10994
11038
  <span class="row-sub">${n.providerEmail || n.providerUid}</span>
@@ -11029,7 +11073,7 @@ let z = class extends Re {
11029
11073
  }}
11030
11074
  ?disabled=${!!this.busy}
11031
11075
  >
11032
- ${this.spinner(`connect-${n}`)} ${li(n)}
11076
+ ${this.spinner(`connect-${n}`)} ${ui(n)}
11033
11077
  ${this.t("connectProvider", { provider: pt(n) })}
11034
11078
  </button>`
11035
11079
  )}` : void 0
@@ -11059,7 +11103,7 @@ let z = class extends Re {
11059
11103
  }
11060
11104
  };
11061
11105
  z.styles = [
11062
- ...Re.styles,
11106
+ ...qe.styles,
11063
11107
  We`
11064
11108
  :host {
11065
11109
  display: block;
@@ -11163,115 +11207,123 @@ O([
11163
11207
  ee({ type: String })
11164
11208
  ], z.prototype, "tab", 2);
11165
11209
  O([
11166
- G()
11210
+ V()
11167
11211
  ], z.prototype, "active", 2);
11168
11212
  O([
11169
- G()
11213
+ V()
11170
11214
  ], z.prototype, "busy", 2);
11171
11215
  O([
11172
- G()
11216
+ V()
11173
11217
  ], z.prototype, "notice", 2);
11174
11218
  O([
11175
- G()
11219
+ V()
11176
11220
  ], z.prototype, "errors", 2);
11177
11221
  O([
11178
- G()
11222
+ V()
11179
11223
  ], z.prototype, "nameInput", 2);
11180
11224
  O([
11181
- G()
11225
+ V()
11182
11226
  ], z.prototype, "emailInput", 2);
11183
11227
  O([
11184
- G()
11228
+ V()
11185
11229
  ], z.prototype, "emailPassword", 2);
11186
11230
  O([
11187
- G()
11231
+ V()
11188
11232
  ], z.prototype, "phoneInput", 2);
11189
11233
  O([
11190
- G()
11234
+ V()
11191
11235
  ], z.prototype, "phonePassword", 2);
11192
11236
  O([
11193
- G()
11237
+ V()
11194
11238
  ], z.prototype, "phoneCode", 2);
11195
11239
  O([
11196
- G()
11240
+ V()
11197
11241
  ], z.prototype, "phoneCodeSent", 2);
11198
11242
  O([
11199
- G()
11243
+ V()
11200
11244
  ], z.prototype, "guestName", 2);
11201
11245
  O([
11202
- G()
11246
+ V()
11203
11247
  ], z.prototype, "oldPassword", 2);
11204
11248
  O([
11205
- G()
11249
+ V()
11206
11250
  ], z.prototype, "newPassword", 2);
11207
11251
  O([
11208
- G()
11252
+ V()
11209
11253
  ], z.prototype, "newPasswordConfirm", 2);
11210
11254
  O([
11211
- G()
11255
+ V()
11212
11256
  ], z.prototype, "authenticator", 2);
11213
11257
  O([
11214
- G()
11258
+ V()
11215
11259
  ], z.prototype, "authenticatorCode", 2);
11216
11260
  O([
11217
- G()
11261
+ V()
11218
11262
  ], z.prototype, "factors", 2);
11219
11263
  O([
11220
- G()
11264
+ V()
11221
11265
  ], z.prototype, "recoveryCodes", 2);
11222
11266
  O([
11223
- G()
11267
+ V()
11224
11268
  ], z.prototype, "stepUp", 2);
11225
11269
  O([
11226
- G()
11270
+ V()
11227
11271
  ], z.prototype, "stepUpCode", 2);
11228
11272
  O([
11229
- G()
11273
+ V()
11230
11274
  ], z.prototype, "copied", 2);
11231
11275
  O([
11232
- G()
11276
+ V()
11233
11277
  ], z.prototype, "sessions", 2);
11234
11278
  O([
11235
- G()
11279
+ V()
11236
11280
  ], z.prototype, "identities", 2);
11237
11281
  O([
11238
- G()
11282
+ V()
11239
11283
  ], z.prototype, "logs", 2);
11240
11284
  O([
11241
- G()
11285
+ V()
11242
11286
  ], z.prototype, "logsSupported", 2);
11243
11287
  O([
11244
- G()
11288
+ V()
11245
11289
  ], z.prototype, "confirmDelete", 2);
11246
11290
  O([
11247
- G()
11291
+ V()
11248
11292
  ], z.prototype, "confirmRegenerate", 2);
11249
11293
  O([
11250
- G()
11294
+ V()
11251
11295
  ], z.prototype, "confirmRemoveAuthenticator", 2);
11252
11296
  O([
11253
- G()
11297
+ V()
11254
11298
  ], z.prototype, "confirmSignOutAll", 2);
11255
11299
  O([
11256
- G()
11300
+ V()
11257
11301
  ], z.prototype, "confirmDisconnectId", 2);
11258
11302
  O([
11259
- G()
11303
+ V()
11260
11304
  ], z.prototype, "verifyEmailCooldownUntil", 2);
11261
11305
  z = O([
11262
- Qe("authui-account")
11306
+ ze("authui-account")
11263
11307
  ], z);
11264
- var Mo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, at = (t, e, n, i) => {
11265
- for (var o = i > 1 ? void 0 : i ? Ro(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11308
+ var _o = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Ge = (t, e, n, i) => {
11309
+ for (var o = i > 1 ? void 0 : i ? Lo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11266
11310
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
11267
- return i && o && Mo(e, n, o), o;
11311
+ return i && o && _o(e, n, o), o;
11268
11312
  };
11269
- let Ve = class extends Re {
11313
+ let Re = class extends qe {
11270
11314
  constructor() {
11271
- super(...arguments), this.open = !1, this.view = "sign-in", this.closeOnSuccess = !0, this.handledPending = null, this.onOpenEvent = (t) => {
11315
+ super(...arguments), this.open = !1, this.view = "sign-in", this.closeOnSuccess = !0, this.handledPending = null, this.scrollCue = !1, this.bodyResizeObserver = null, this.onOpenEvent = (t) => {
11272
11316
  const e = t.detail ?? {};
11273
11317
  this.show(e.view);
11274
- }, this.onCloseEvent = () => this.hide(), this.onSuccess = () => {
11318
+ }, this.onCloseEvent = () => this.hide(), this.syncScrollCue = () => {
11319
+ const t = this.bodyEl;
11320
+ if (!t) {
11321
+ this.scrollCue = !1;
11322
+ return;
11323
+ }
11324
+ const e = t.scrollHeight > t.clientHeight + 1, n = t.scrollTop + t.clientHeight >= t.scrollHeight - 4, i = e && !n;
11325
+ i !== this.scrollCue && (this.scrollCue = i);
11326
+ }, this.onSuccess = () => {
11275
11327
  this.fire("authui-signed-in", this.auth.user), this.closeOnSuccess && !this.config?.successUrl && this.hide();
11276
11328
  }, this.onInnerOpen = (t) => {
11277
11329
  const e = t.detail?.view;
@@ -11284,7 +11336,7 @@ let Ve = class extends Re {
11284
11336
  super.connectedCallback(), window.addEventListener("authui:open", this.onOpenEvent), window.addEventListener("authui:close", this.onCloseEvent);
11285
11337
  }
11286
11338
  disconnectedCallback() {
11287
- super.disconnectedCallback(), window.removeEventListener("authui:open", this.onOpenEvent), window.removeEventListener("authui:close", this.onCloseEvent);
11339
+ super.disconnectedCallback(), window.removeEventListener("authui:open", this.onOpenEvent), window.removeEventListener("authui:close", this.onCloseEvent), this.bodyResizeObserver?.disconnect(), this.bodyResizeObserver = null;
11288
11340
  }
11289
11341
  show(t) {
11290
11342
  t === "account" && this.auth.status !== "signed-in" ? this.view = "sign-in" : t ? this.view = t : this.auth.status === "signed-in" ? this.view = "account" : this.view = "sign-in", this.open = !0;
@@ -11292,11 +11344,23 @@ let Ve = class extends Re {
11292
11344
  hide() {
11293
11345
  this.open = !1;
11294
11346
  }
11347
+ observeBody() {
11348
+ this.bodyResizeObserver?.disconnect(), this.bodyResizeObserver = null;
11349
+ const t = this.bodyEl;
11350
+ if (!t || typeof ResizeObserver > "u") {
11351
+ this.syncScrollCue();
11352
+ return;
11353
+ }
11354
+ this.bodyResizeObserver = new ResizeObserver(() => this.syncScrollCue()), this.bodyResizeObserver.observe(t), t.firstElementChild && this.bodyResizeObserver.observe(t.firstElementChild), this.syncScrollCue();
11355
+ }
11295
11356
  updated(t) {
11296
- if (t.has("open") && this.dialog && (this.open && !this.dialog.open && (this.dialog.showModal(), requestAnimationFrame(() => this.focusPrimary())), !this.open && this.dialog.open && this.dialog.close()), t.has("auth")) {
11357
+ if (t.has("open") && this.dialog && (this.open && !this.dialog.open && (this.dialog.showModal(), requestAnimationFrame(() => {
11358
+ this.focusPrimary(), this.observeBody();
11359
+ })), !this.open && this.dialog.open && this.dialog.close(), this.open || (this.scrollCue = !1, this.bodyResizeObserver?.disconnect(), this.bodyResizeObserver = null)), t.has("auth")) {
11297
11360
  const e = this.auth.pending;
11298
11361
  e && e !== this.handledPending && e.type !== "notice" && (this.handledPending = e, this.view = "sign-in", this.open = !0), e?.type === "notice" && e !== this.handledPending && (this.handledPending = e, this.open = !0), this.open && this.view === "account" && this.auth.status !== "signed-in" && (this.view = "sign-in"), this.open && this.auth.status === "signed-out" && this.view === "account" && (this.view = "sign-in");
11299
11362
  }
11363
+ this.open && (t.has("view") || t.has("auth") || t.has("open")) && requestAnimationFrame(() => this.observeBody());
11300
11364
  }
11301
11365
  focusPrimary() {
11302
11366
  const t = this.dialog;
@@ -11320,25 +11384,30 @@ let Ve = class extends Re {
11320
11384
  @authui-open=${this.onInnerOpen}
11321
11385
  @authui-success=${this.onSuccess}
11322
11386
  >
11323
- <div class="body">
11324
- <button
11325
- class="btn btn-ghost btn-icon close"
11326
- @click=${this.hide}
11327
- aria-label=${this.t("close")}
11328
- >
11329
- ${_.x}
11330
- </button>
11331
- ${this.open ? e ? b`<authui-account embedded></authui-account>` : b`<authui-sign-in
11332
- embedded
11333
- .view=${this.view === "account" ? "sign-in" : this.view}
11334
- ></authui-sign-in>` : M}
11387
+ <div class="frame">
11388
+ <div class="chrome">
11389
+ <button
11390
+ class="btn btn-ghost btn-icon close"
11391
+ @click=${this.hide}
11392
+ aria-label=${this.t("close")}
11393
+ >
11394
+ ${_.x}
11395
+ </button>
11396
+ </div>
11397
+ <div class="body" @scroll=${this.syncScrollCue}>
11398
+ ${this.open ? e ? b`<authui-account embedded></authui-account>` : b`<authui-sign-in
11399
+ embedded
11400
+ .view=${this.view === "account" ? "sign-in" : this.view}
11401
+ ></authui-sign-in>` : M}
11402
+ </div>
11403
+ <div class="scroll-fade ${this.scrollCue ? "show" : ""}" aria-hidden="true"></div>
11335
11404
  </div>
11336
11405
  </dialog>
11337
11406
  `;
11338
11407
  }
11339
11408
  };
11340
- Ve.styles = [
11341
- ...Re.styles,
11409
+ Re.styles = [
11410
+ ...qe.styles,
11342
11411
  We`
11343
11412
  :host {
11344
11413
  display: contents;
@@ -11376,15 +11445,29 @@ Ve.styles = [
11376
11445
  transform: none;
11377
11446
  }
11378
11447
  }
11379
- .body {
11380
- padding: 24px;
11448
+ .frame {
11449
+ display: flex;
11450
+ flex-direction: column;
11381
11451
  max-height: calc(100dvh - 2rem);
11452
+ min-height: 0;
11453
+ position: relative;
11454
+ }
11455
+ .chrome {
11456
+ flex-shrink: 0;
11457
+ display: flex;
11458
+ justify-content: flex-end;
11459
+ align-items: center;
11460
+ padding: 8px 8px 0;
11461
+ background: var(--authui-background);
11462
+ }
11463
+ .body {
11464
+ padding: 4px 24px 28px;
11382
11465
  overflow-y: auto;
11466
+ flex: 1 1 auto;
11467
+ min-height: 0;
11468
+ -webkit-overflow-scrolling: touch;
11383
11469
  }
11384
11470
  .close {
11385
- position: absolute;
11386
- top: 12px;
11387
- inset-inline-end: 12px;
11388
11471
  width: 32px;
11389
11472
  height: 32px;
11390
11473
  border-radius: var(--authui-radius-sm);
@@ -11393,36 +11476,56 @@ Ve.styles = [
11393
11476
  .close:hover {
11394
11477
  opacity: 1;
11395
11478
  }
11479
+ .scroll-fade {
11480
+ pointer-events: none;
11481
+ position: absolute;
11482
+ inset-inline: 0;
11483
+ bottom: 0;
11484
+ height: 40px;
11485
+ border-radius: 0 0 var(--authui-radius-lg) var(--authui-radius-lg);
11486
+ background: linear-gradient(to top, var(--authui-background), transparent);
11487
+ opacity: 0;
11488
+ transition: opacity 150ms;
11489
+ }
11490
+ .scroll-fade.show {
11491
+ opacity: 1;
11492
+ }
11396
11493
  authui-sign-in,
11397
11494
  authui-account {
11398
11495
  max-width: none;
11399
11496
  }
11400
11497
  `
11401
11498
  ];
11402
- at([
11499
+ Ge([
11403
11500
  ee({ type: Boolean, reflect: !0 })
11404
- ], Ve.prototype, "open", 2);
11405
- at([
11501
+ ], Re.prototype, "open", 2);
11502
+ Ge([
11406
11503
  ee({ type: String })
11407
- ], Ve.prototype, "view", 2);
11408
- at([
11504
+ ], Re.prototype, "view", 2);
11505
+ Ge([
11409
11506
  ee({ type: Boolean, attribute: "close-on-success" })
11410
- ], Ve.prototype, "closeOnSuccess", 2);
11411
- at([
11412
- G()
11413
- ], Ve.prototype, "handledPending", 2);
11414
- at([
11415
- Oi("dialog")
11416
- ], Ve.prototype, "dialog", 2);
11417
- Ve = at([
11418
- Qe("authui-modal")
11419
- ], Ve);
11420
- var qo = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, Et = (t, e, n, i) => {
11421
- for (var o = i > 1 ? void 0 : i ? Eo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11507
+ ], Re.prototype, "closeOnSuccess", 2);
11508
+ Ge([
11509
+ V()
11510
+ ], Re.prototype, "handledPending", 2);
11511
+ Ge([
11512
+ V()
11513
+ ], Re.prototype, "scrollCue", 2);
11514
+ Ge([
11515
+ bi("dialog")
11516
+ ], Re.prototype, "dialog", 2);
11517
+ Ge([
11518
+ bi(".body")
11519
+ ], Re.prototype, "bodyEl", 2);
11520
+ Re = Ge([
11521
+ ze("authui-modal")
11522
+ ], Re);
11523
+ var No = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, _t = (t, e, n, i) => {
11524
+ for (var o = i > 1 ? void 0 : i ? Ho(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11422
11525
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
11423
- return i && o && qo(e, n, o), o;
11526
+ return i && o && No(e, n, o), o;
11424
11527
  };
11425
- let nt = class extends Re {
11528
+ let ot = class extends qe {
11426
11529
  constructor() {
11427
11530
  super(...arguments), this.view = "sign-in", this.variant = "primary", this.size = "md";
11428
11531
  }
@@ -11439,8 +11542,8 @@ let nt = class extends Re {
11439
11542
  </button>`;
11440
11543
  }
11441
11544
  };
11442
- nt.styles = [
11443
- ...Re.styles,
11545
+ ot.styles = [
11546
+ ...qe.styles,
11444
11547
  We`
11445
11548
  :host {
11446
11549
  display: inline-block;
@@ -11450,26 +11553,28 @@ nt.styles = [
11450
11553
  }
11451
11554
  `
11452
11555
  ];
11453
- Et([
11556
+ _t([
11454
11557
  ee({ type: String })
11455
- ], nt.prototype, "view", 2);
11456
- Et([
11558
+ ], ot.prototype, "view", 2);
11559
+ _t([
11457
11560
  ee({ type: String })
11458
- ], nt.prototype, "variant", 2);
11459
- Et([
11561
+ ], ot.prototype, "variant", 2);
11562
+ _t([
11460
11563
  ee({ type: String })
11461
- ], nt.prototype, "size", 2);
11462
- nt = Et([
11463
- Qe("authui-button")
11464
- ], nt);
11465
- var _o = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Te = (t, e, n, i) => {
11466
- for (var o = i > 1 ? void 0 : i ? Lo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11564
+ ], ot.prototype, "size", 2);
11565
+ ot = _t([
11566
+ ze("authui-button")
11567
+ ], ot);
11568
+ var Do = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Ke = (t, e, n, i) => {
11569
+ for (var o = i > 1 ? void 0 : i ? Bo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11467
11570
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
11468
- return i && o && _o(e, n, o), o;
11571
+ return i && o && Do(e, n, o), o;
11469
11572
  };
11470
- let He = class extends Re {
11573
+ let Ee = class extends qe {
11471
11574
  constructor() {
11472
- super(...arguments), this.showTeams = !1, this.src = "", this.menuOpen = !1, this.teams = [], this.teamsLoading = !1, this.activeTeamId = null, this.onDocumentClick = (t) => {
11575
+ super(...arguments), this.showTeams = !1, this.src = "", this.menuOpen = !1, this.menuAbove = !1, this.teams = [], this.teamsLoading = !1, this.activeTeamId = null, this.onReposition = () => {
11576
+ this.menuOpen && this.placeMenu();
11577
+ }, this.onDocumentClick = (t) => {
11473
11578
  t.composedPath().includes(this) || (this.menuOpen = !1);
11474
11579
  }, this.onKeydown = (t) => {
11475
11580
  if (!this.menuOpen) {
@@ -11499,10 +11604,21 @@ let He = class extends Re {
11499
11604
  };
11500
11605
  }
11501
11606
  connectedCallback() {
11502
- super.connectedCallback(), document.addEventListener("click", this.onDocumentClick, !0), document.addEventListener("keydown", this.onKeydown), this.addEventListener("keydown", this.onKeydown);
11607
+ super.connectedCallback(), document.addEventListener("click", this.onDocumentClick, !0), document.addEventListener("keydown", this.onKeydown), this.addEventListener("keydown", this.onKeydown), window.addEventListener("resize", this.onReposition), window.addEventListener("scroll", this.onReposition, !0);
11503
11608
  }
11504
11609
  disconnectedCallback() {
11505
- super.disconnectedCallback(), document.removeEventListener("click", this.onDocumentClick, !0), document.removeEventListener("keydown", this.onKeydown), this.removeEventListener("keydown", this.onKeydown);
11610
+ super.disconnectedCallback(), document.removeEventListener("click", this.onDocumentClick, !0), document.removeEventListener("keydown", this.onKeydown), this.removeEventListener("keydown", this.onKeydown), window.removeEventListener("resize", this.onReposition), window.removeEventListener("scroll", this.onReposition, !0);
11611
+ }
11612
+ /** Flip the menu above the trigger when there is not enough space below. */
11613
+ placeMenu() {
11614
+ const t = this.renderRoot?.querySelector(".trigger"), e = this.renderRoot?.querySelector(".menu");
11615
+ if (!t || !e) return;
11616
+ const n = t.getBoundingClientRect(), i = 6, o = 8;
11617
+ e.style.maxHeight = "";
11618
+ const a = e.offsetHeight + i, s = window.innerHeight - n.bottom, r = n.top, d = s < a && r > s;
11619
+ d !== this.menuAbove && (this.menuAbove = d);
11620
+ const c = Math.max(80, (d ? r : s) - i - o);
11621
+ e.style.maxHeight = `${c}px`;
11506
11622
  }
11507
11623
  focusMenuItem(t) {
11508
11624
  [
@@ -11510,7 +11626,9 @@ let He = class extends Re {
11510
11626
  ][t]?.focus();
11511
11627
  }
11512
11628
  updated(t) {
11513
- t.has("menuOpen") && this.menuOpen && (this.showTeams && this.loadTeams(), requestAnimationFrame(() => this.focusMenuItem(0)));
11629
+ t.has("menuOpen") && (this.menuOpen ? (this.showTeams && this.loadTeams(), requestAnimationFrame(() => {
11630
+ this.placeMenu(), this.focusMenuItem(0);
11631
+ })) : this.menuAbove = !1), this.menuOpen && (t.has("teams") || t.has("teamsLoading")) && requestAnimationFrame(() => this.placeMenu());
11514
11632
  }
11515
11633
  async loadTeams() {
11516
11634
  this.teamsLoading = !0, this.activeTeamId = R.getActiveTeamId();
@@ -11540,10 +11658,10 @@ let He = class extends Re {
11540
11658
  aria-label=${i}
11541
11659
  >
11542
11660
  <span class="avatar"
11543
- >${this.src ? b`<img src=${this.src} alt="" />` : bi(i)}</span
11661
+ >${this.src ? b`<img src=${this.src} alt="" />` : Ai(i)}</span
11544
11662
  >
11545
11663
  </button>
11546
- ${this.menuOpen ? b`<div class="menu" role="menu">
11664
+ ${this.menuOpen ? b`<div class="menu ${this.menuAbove ? "above" : ""}" role="menu">
11547
11665
  <div class="menu-header">
11548
11666
  <span class="row-title" title=${i}>${i}</span>
11549
11667
  ${e.email && e.name ? b`<span class="row-sub" title=${e.email}>${e.email}</span>` : M}
@@ -11587,8 +11705,8 @@ let He = class extends Re {
11587
11705
  `;
11588
11706
  }
11589
11707
  };
11590
- He.styles = [
11591
- ...Re.styles,
11708
+ Ee.styles = [
11709
+ ...qe.styles,
11592
11710
  We`
11593
11711
  :host {
11594
11712
  display: inline-block;
@@ -11614,9 +11732,12 @@ He.styles = [
11614
11732
  .menu {
11615
11733
  position: absolute;
11616
11734
  top: calc(100% + 6px);
11735
+ bottom: auto;
11617
11736
  inset-inline-end: 0;
11618
11737
  min-width: 220px;
11619
11738
  max-width: min(320px, 90vw);
11739
+ max-height: min(360px, calc(100dvh - 16px));
11740
+ overflow-y: auto;
11620
11741
  background: var(--authui-popover);
11621
11742
  color: var(--authui-popover-foreground);
11622
11743
  border: 1px solid var(--authui-border);
@@ -11628,6 +11749,10 @@ He.styles = [
11628
11749
  flex-direction: column;
11629
11750
  gap: 2px;
11630
11751
  }
11752
+ .menu.above {
11753
+ top: auto;
11754
+ bottom: calc(100% + 6px);
11755
+ }
11631
11756
  .menu-header {
11632
11757
  min-width: 0;
11633
11758
  overflow: hidden;
@@ -11698,108 +11823,114 @@ He.styles = [
11698
11823
  }
11699
11824
  `
11700
11825
  ];
11701
- Te([
11826
+ Ke([
11702
11827
  ee({ type: Boolean, attribute: "show-teams" })
11703
- ], He.prototype, "showTeams", 2);
11704
- Te([
11828
+ ], Ee.prototype, "showTeams", 2);
11829
+ Ke([
11705
11830
  ee({ type: String })
11706
- ], He.prototype, "src", 2);
11707
- Te([
11708
- G()
11709
- ], He.prototype, "menuOpen", 2);
11710
- Te([
11711
- G()
11712
- ], He.prototype, "teams", 2);
11713
- Te([
11714
- G()
11715
- ], He.prototype, "teamsLoading", 2);
11716
- Te([
11717
- G()
11718
- ], He.prototype, "activeTeamId", 2);
11719
- He = Te([
11720
- Qe("authui-user-button")
11721
- ], He);
11722
- function No(t) {
11723
- return R.configure(t), Jo;
11831
+ ], Ee.prototype, "src", 2);
11832
+ Ke([
11833
+ V()
11834
+ ], Ee.prototype, "menuOpen", 2);
11835
+ Ke([
11836
+ V()
11837
+ ], Ee.prototype, "menuAbove", 2);
11838
+ Ke([
11839
+ V()
11840
+ ], Ee.prototype, "teams", 2);
11841
+ Ke([
11842
+ V()
11843
+ ], Ee.prototype, "teamsLoading", 2);
11844
+ Ke([
11845
+ V()
11846
+ ], Ee.prototype, "activeTeamId", 2);
11847
+ Ee = Ke([
11848
+ ze("authui-user-button")
11849
+ ], Ee);
11850
+ function Xo(t) {
11851
+ return R.configure(t), zo;
11724
11852
  }
11725
- function Ho(t) {
11853
+ function Vo(t) {
11726
11854
  wt(t);
11727
11855
  }
11728
- function Do() {
11729
- $o();
11856
+ function Wo() {
11857
+ Uo();
11730
11858
  }
11731
- function Bo() {
11859
+ function Go() {
11732
11860
  return R.signOut();
11733
11861
  }
11734
- function Xo() {
11862
+ function Ko() {
11735
11863
  return R.user;
11736
11864
  }
11737
- function Vo() {
11865
+ function Yo() {
11738
11866
  return R.getState();
11739
11867
  }
11740
- function Wo() {
11868
+ function Jo() {
11741
11869
  return R.getClient();
11742
11870
  }
11743
- function Go() {
11871
+ function Zo() {
11744
11872
  return R.getAccount();
11745
11873
  }
11746
- function Ko() {
11874
+ function Qo() {
11747
11875
  return R.previewSignIn();
11748
11876
  }
11749
- function Yo(t, e) {
11877
+ function To(t, e) {
11750
11878
  return R.on(t, e);
11751
11879
  }
11752
- const Jo = {
11753
- init: No,
11754
- open: Ho,
11755
- close: Do,
11756
- signOut: Bo,
11757
- getUser: Xo,
11758
- getState: Vo,
11759
- getClient: Wo,
11760
- getAccount: Go,
11761
- on: Yo,
11762
- previewSignIn: Ko,
11880
+ const zo = {
11881
+ init: Xo,
11882
+ open: Vo,
11883
+ close: Wo,
11884
+ signOut: Go,
11885
+ getUser: Ko,
11886
+ getState: Yo,
11887
+ getClient: Jo,
11888
+ getAccount: Zo,
11889
+ on: To,
11890
+ previewSignIn: Qo,
11763
11891
  store: R
11764
11892
  };
11765
11893
  export {
11766
- po as AuthStore,
11767
- Jo as AuthUI,
11894
+ yo as AuthStore,
11895
+ zo as AuthUI,
11768
11896
  z as AuthUIAccount,
11769
- nt as AuthUIButton,
11897
+ ot as AuthUIButton,
11770
11898
  pe as AuthUIConfigElement,
11771
- Re as AuthUIElement,
11772
- Ve as AuthUIModal,
11899
+ qe as AuthUIElement,
11900
+ Re as AuthUIModal,
11773
11901
  mt as AuthUIShow,
11774
11902
  ve as AuthUISignIn,
11775
- He as AuthUIUserButton,
11776
- zo as CRITICAL_FOUC_CSS,
11903
+ Ee as AuthUIUserButton,
11904
+ ia as CRITICAL_FOUC_CSS,
11777
11905
  oe as ErrorTypes,
11778
- Gi as FOUC_CSS,
11779
- ro as PreviewAccount,
11780
- To as appwrite,
11906
+ Ji as FOUC_CSS,
11907
+ uo as PreviewAccount,
11908
+ ea as appwrite,
11781
11909
  R as authStore,
11782
- Oo as clearLastMethod,
11783
- Do as close,
11784
- $o as closeModal,
11785
- no as defaultStrings,
11910
+ ta as clearLastMethod,
11911
+ Vi as clearPendingOAuth,
11912
+ Wo as close,
11913
+ Uo as closeModal,
11914
+ so as defaultStrings,
11786
11915
  xt as describeError,
11787
- Go as getAccount,
11788
- Wo as getClient,
11789
- Oe as getLastMethod,
11790
- Vo as getState,
11791
- Di as getStoredActiveTeamId,
11792
- Xo as getUser,
11793
- No as init,
11794
- lo as isConfigError,
11795
- Yo as on,
11796
- Ho as open,
11916
+ Zo as getAccount,
11917
+ Jo as getClient,
11918
+ Fe as getLastMethod,
11919
+ Yo as getState,
11920
+ Xi as getStoredActiveTeamId,
11921
+ Ko as getUser,
11922
+ Xo as init,
11923
+ ho as isConfigError,
11924
+ To as on,
11925
+ Vo as open,
11797
11926
  wt as openModal,
11798
- Ko as previewSignIn,
11927
+ Qo as previewSignIn,
11799
11928
  pt as providerLabel,
11800
11929
  lt as rememberLastMethod,
11801
- ui as scorePassword,
11802
- uo as setStoredActiveTeamId,
11803
- Bo as signOut,
11804
- et as toAuthUIError
11930
+ sn as rememberPendingOAuth,
11931
+ pi as scorePassword,
11932
+ fo as setStoredActiveTeamId,
11933
+ Go as signOut,
11934
+ go as stashPendingOAuth,
11935
+ tt as toAuthUIError
11805
11936
  };