@getauthui/core 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/{authui-user-button-CLVW46Q6.js → authui-user-button-BTKKRjIx.js} +599 -373
- package/dist/authui.cdn.js +417 -250
- package/dist/authui.cdn.mjs +1060 -834
- package/dist/authui.js +2 -2
- package/dist/components/authui-account.d.ts +3 -0
- package/dist/components/authui-account.d.ts.map +1 -1
- package/dist/components/authui-sign-in.d.ts +2 -0
- package/dist/components/authui-sign-in.d.ts.map +1 -1
- package/dist/i18n.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/dist/styles/base.d.ts.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/authui.cdn.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const At = globalThis, hi = At.ShadowRoot && (At.ShadyCSS === void 0 || At.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = /* @__PURE__ */ Symbol(), Si = /* @__PURE__ */ new WeakMap();
|
|
2
2
|
let Qi = class {
|
|
3
3
|
constructor(e, n, i) {
|
|
4
4
|
if (this._$cssResult$ = !0, i !== fi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -27,7 +27,7 @@ const cn = (t) => new Qi(typeof t == "string" ? t : t + "", void 0, fi), We = (t
|
|
|
27
27
|
}, dn = (t, e) => {
|
|
28
28
|
if (hi) t.adoptedStyleSheets = e.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
|
|
29
29
|
else for (const n of e) {
|
|
30
|
-
const i = document.createElement("style"), o =
|
|
30
|
+
const i = document.createElement("style"), o = At.litNonce;
|
|
31
31
|
o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, t.appendChild(i);
|
|
32
32
|
}
|
|
33
33
|
}, $i = hi ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
@@ -35,7 +35,7 @@ const cn = (t) => new Qi(typeof t == "string" ? t : t + "", void 0, fi), We = (t
|
|
|
35
35
|
for (const i of e.cssRules) n += i.cssText;
|
|
36
36
|
return cn(n);
|
|
37
37
|
})(t) : t;
|
|
38
|
-
const { is: ln, defineProperty: un, getOwnPropertyDescriptor: pn, getOwnPropertyNames: hn, getOwnPropertySymbols: fn, getPrototypeOf: gn } = Object,
|
|
38
|
+
const { is: ln, defineProperty: un, getOwnPropertyDescriptor: pn, getOwnPropertyNames: hn, getOwnPropertySymbols: fn, getPrototypeOf: gn } = Object, Rt = globalThis, ji = Rt.trustedTypes, yn = ji ? ji.emptyScript : "", mn = Rt.reactiveElementPolyfillSupport, ut = (t, e) => t, $t = { toAttribute(t, e) {
|
|
39
39
|
switch (e) {
|
|
40
40
|
case Boolean:
|
|
41
41
|
t = t ? yn : null;
|
|
@@ -63,8 +63,8 @@ const { is: ln, defineProperty: un, getOwnPropertyDescriptor: pn, getOwnProperty
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
return n;
|
|
66
|
-
} }, gi = (t, e) => !ln(t, e), Pi = { attribute: !0, type: String, converter:
|
|
67
|
-
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"),
|
|
66
|
+
} }, gi = (t, e) => !ln(t, e), Pi = { attribute: !0, type: String, converter: $t, reflect: !1, useDefault: !1, hasChanged: gi };
|
|
67
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Rt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
68
68
|
let et = class extends HTMLElement {
|
|
69
69
|
static addInitializer(e) {
|
|
70
70
|
this._$Ei(), (this.l ??= []).push(e);
|
|
@@ -162,14 +162,14 @@ let et = 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 :
|
|
165
|
+
const a = (i.converter?.toAttribute !== void 0 ? i.converter : $t).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 :
|
|
172
|
+
const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter : $t;
|
|
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;
|
|
@@ -246,13 +246,13 @@ let et = class extends HTMLElement {
|
|
|
246
246
|
firstUpdated(e) {
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[ut("elementProperties")] = /* @__PURE__ */ new Map(), et[ut("finalized")] = /* @__PURE__ */ new Map(), mn?.({ ReactiveElement: et }), (
|
|
250
|
-
const yi = globalThis,
|
|
251
|
-
\f\r]`, ct = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ui = /-->/g, Mi = />/g, Je = RegExp(`>|${
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ri = /'/g, Ei = /"/g, Oi = /^(?:script|style|textarea|title)$/i, Fi = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }),
|
|
249
|
+
et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[ut("elementProperties")] = /* @__PURE__ */ new Map(), et[ut("finalized")] = /* @__PURE__ */ new Map(), mn?.({ ReactiveElement: et }), (Rt.reactiveElementVersions ??= []).push("2.1.2");
|
|
250
|
+
const yi = globalThis, xi = (t) => t, jt = yi.trustedTypes, Ci = jt ? jt.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Ti = "$lit$", Xe = `lit$${Math.random().toFixed(9).slice(2)}$`, zi = "?" + Xe, bn = `<${zi}>`, Te = document, pt = () => Te.createComment(""), ht = (t) => t === null || typeof t != "object" && typeof t != "function", mi = Array.isArray, wn = (t) => mi(t) || typeof t?.[Symbol.iterator] == "function", Wt = `[
|
|
251
|
+
\f\r]`, ct = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ui = /-->/g, Mi = />/g, Je = RegExp(`>|${Wt}(?:([^\\s"'>=/]+)(${Wt}*=${Wt}*(?:[^
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ri = /'/g, Ei = /"/g, Oi = /^(?:script|style|textarea|title)$/i, Fi = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), w = Fi(1), G = Fi(2), it = /* @__PURE__ */ Symbol.for("lit-noChange"), C = /* @__PURE__ */ Symbol.for("lit-nothing"), qi = /* @__PURE__ */ new WeakMap(), Ze = Te.createTreeWalker(Te, 129);
|
|
253
253
|
function en(t, e) {
|
|
254
254
|
if (!mi(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
|
-
return
|
|
255
|
+
return Ci !== void 0 ? Ci.createHTML(e) : e;
|
|
256
256
|
}
|
|
257
257
|
const vn = (t, e) => {
|
|
258
258
|
const n = t.length - 1, i = [];
|
|
@@ -262,17 +262,17 @@ const vn = (t, e) => {
|
|
|
262
262
|
let c, p, u = -1, m = 0;
|
|
263
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
264
|
const $ = s === Je && t[r + 1].startsWith("/>") ? " " : "";
|
|
265
|
-
a += s === ct ? d +
|
|
265
|
+
a += s === ct ? d + bn : u >= 0 ? (i.push(c), d.slice(0, u) + Ti + d.slice(u) + Xe + $) : d + Xe + (u === -2 ? r : $);
|
|
266
266
|
}
|
|
267
267
|
return [en(t, a + (t[n] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
268
268
|
};
|
|
269
|
-
class
|
|
269
|
+
class ft {
|
|
270
270
|
constructor({ strings: e, _$litType$: n }, i) {
|
|
271
271
|
let o;
|
|
272
272
|
this.parts = [];
|
|
273
273
|
let a = 0, s = 0;
|
|
274
274
|
const r = e.length - 1, d = this.parts, [c, p] = vn(e, n);
|
|
275
|
-
if (this.el =
|
|
275
|
+
if (this.el = ft.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
|
}
|
|
@@ -280,14 +280,14 @@ class gt {
|
|
|
280
280
|
if (o.nodeType === 1) {
|
|
281
281
|
if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(Ti)) {
|
|
282
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 :
|
|
283
|
+
d.push({ type: 1, index: a, name: E[2], strings: $, ctor: E[1] === "." ? An : E[1] === "?" ? kn : E[1] === "@" ? Sn : Et }), o.removeAttribute(u);
|
|
284
284
|
} else u.startsWith(Xe) && (d.push({ type: 6, index: a }), o.removeAttribute(u));
|
|
285
285
|
if (Oi.test(o.tagName)) {
|
|
286
286
|
const u = o.textContent.split(Xe), m = u.length - 1;
|
|
287
287
|
if (m > 0) {
|
|
288
|
-
o.textContent =
|
|
289
|
-
for (let $ = 0; $ < m; $++) o.append(u[$],
|
|
290
|
-
o.append(u[m],
|
|
288
|
+
o.textContent = jt ? jt.emptyScript : "";
|
|
289
|
+
for (let $ = 0; $ < m; $++) o.append(u[$], pt()), Ze.nextNode(), d.push({ type: 2, index: ++a });
|
|
290
|
+
o.append(u[m], pt());
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
} else if (o.nodeType === 8) if (o.data === zi) d.push({ type: 2, index: a });
|
|
@@ -306,7 +306,7 @@ class gt {
|
|
|
306
306
|
function nt(t, e, n = t, i) {
|
|
307
307
|
if (e === it) return e;
|
|
308
308
|
let o = i !== void 0 ? n._$Co?.[i] : n._$Cl;
|
|
309
|
-
const a =
|
|
309
|
+
const a = ht(e) ? void 0 : e._$litDirective$;
|
|
310
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
312
|
class In {
|
|
@@ -342,7 +342,7 @@ class bt {
|
|
|
342
342
|
return this._$AM?._$AU ?? this._$Cv;
|
|
343
343
|
}
|
|
344
344
|
constructor(e, n, i, o) {
|
|
345
|
-
this.type = 2, this._$AH =
|
|
345
|
+
this.type = 2, this._$AH = C, this._$AN = void 0, this._$AA = e, this._$AB = n, this._$AM = i, this.options = o, this._$Cv = o?.isConnected ?? !0;
|
|
346
346
|
}
|
|
347
347
|
get parentNode() {
|
|
348
348
|
let e = this._$AA.parentNode;
|
|
@@ -356,7 +356,7 @@ class bt {
|
|
|
356
356
|
return this._$AB;
|
|
357
357
|
}
|
|
358
358
|
_$AI(e, n = this) {
|
|
359
|
-
e = nt(this, e, n),
|
|
359
|
+
e = nt(this, e, n), ht(e) ? e === C || e == null || e === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : e !== this._$AH && e !== it && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : wn(e) ? this.k(e) : this._(e);
|
|
360
360
|
}
|
|
361
361
|
O(e) {
|
|
362
362
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -365,10 +365,10 @@ class bt {
|
|
|
365
365
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
366
366
|
}
|
|
367
367
|
_(e) {
|
|
368
|
-
this._$AH !==
|
|
368
|
+
this._$AH !== C && ht(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 =
|
|
371
|
+
const { values: n, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = ft.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
374
|
const a = new In(o, this), s = a.u(this.options);
|
|
@@ -377,26 +377,26 @@ class bt {
|
|
|
377
377
|
}
|
|
378
378
|
_$AC(e) {
|
|
379
379
|
let n = qi.get(e.strings);
|
|
380
|
-
return n === void 0 && qi.set(e.strings, n = new
|
|
380
|
+
return n === void 0 && qi.set(e.strings, n = new ft(e)), n;
|
|
381
381
|
}
|
|
382
382
|
k(e) {
|
|
383
383
|
mi(this._$AH) || (this._$AH = [], this._$AR());
|
|
384
384
|
const n = this._$AH;
|
|
385
385
|
let i, o = 0;
|
|
386
|
-
for (const a of e) o === n.length ? n.push(i = new bt(this.O(
|
|
386
|
+
for (const a of e) o === n.length ? n.push(i = new bt(this.O(pt()), this.O(pt()), this, this.options)) : i = n[o], i._$AI(a), o++;
|
|
387
387
|
o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
|
|
388
388
|
}
|
|
389
389
|
_$AR(e = this._$AA.nextSibling, n) {
|
|
390
390
|
for (this._$AP?.(!1, !0, n); e !== this._$AB; ) {
|
|
391
|
-
const i =
|
|
392
|
-
|
|
391
|
+
const i = xi(e).nextSibling;
|
|
392
|
+
xi(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
|
|
399
|
+
class Et {
|
|
400
400
|
get tagName() {
|
|
401
401
|
return this.element.tagName;
|
|
402
402
|
}
|
|
@@ -404,46 +404,46 @@ class Rt {
|
|
|
404
404
|
return this._$AM._$AU;
|
|
405
405
|
}
|
|
406
406
|
constructor(e, n, i, o, a) {
|
|
407
|
-
this.type = 1, this._$AH =
|
|
407
|
+
this.type = 1, this._$AH = C, this._$AN = void 0, this.element = e, this.name = n, this._$AM = o, this.options = a, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = C;
|
|
408
408
|
}
|
|
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 = nt(this, e, n, 0), s = !
|
|
412
|
+
if (a === void 0) e = nt(this, e, n, 0), s = !ht(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 = nt(this, r[i + d], n, d), c === it && (c = this._$AH[d]), s ||= !
|
|
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 ||= !ht(c) || c !== this._$AH[d], c === C ? e = C : e !== C && (e += (c ?? "") + a[d + 1]), this._$AH[d] = c;
|
|
417
417
|
}
|
|
418
418
|
s && !o && this.j(e);
|
|
419
419
|
}
|
|
420
420
|
j(e) {
|
|
421
|
-
e ===
|
|
421
|
+
e === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
class An extends
|
|
424
|
+
class An extends Et {
|
|
425
425
|
constructor() {
|
|
426
426
|
super(...arguments), this.type = 3;
|
|
427
427
|
}
|
|
428
428
|
j(e) {
|
|
429
|
-
this.element[this.name] = e ===
|
|
429
|
+
this.element[this.name] = e === C ? void 0 : e;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
class kn extends
|
|
432
|
+
class kn extends Et {
|
|
433
433
|
constructor() {
|
|
434
434
|
super(...arguments), this.type = 4;
|
|
435
435
|
}
|
|
436
436
|
j(e) {
|
|
437
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
437
|
+
this.element.toggleAttribute(this.name, !!e && e !== C);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
class Sn extends
|
|
440
|
+
class Sn extends Et {
|
|
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 = nt(this, e, n, 0) ??
|
|
446
|
-
const i = this._$AH, o = e ===
|
|
445
|
+
if ((e = nt(this, e, n, 0) ?? C) === it) return;
|
|
446
|
+
const i = this._$AH, o = e === C && i !== C || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, a = e !== C && (i === C || o);
|
|
447
447
|
o && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
448
448
|
}
|
|
449
449
|
handleEvent(e) {
|
|
@@ -462,17 +462,17 @@ class $n {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
const jn = yi.litHtmlPolyfillSupport;
|
|
465
|
-
jn?.(
|
|
465
|
+
jn?.(ft, bt), (yi.litHtmlVersions ??= []).push("3.3.3");
|
|
466
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) {
|
|
470
470
|
const a = n?.renderBefore ?? null;
|
|
471
|
-
i._$litPart$ = o = new bt(e.insertBefore(
|
|
471
|
+
i._$litPart$ = o = new bt(e.insertBefore(pt(), a), a, void 0, n ?? {});
|
|
472
472
|
}
|
|
473
473
|
return o._$AI(t), o;
|
|
474
474
|
};
|
|
475
|
-
const
|
|
475
|
+
const bi = globalThis;
|
|
476
476
|
class Qe extends et {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -495,16 +495,16 @@ class Qe extends et {
|
|
|
495
495
|
return it;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
Qe._$litElement$ = !0, Qe.finalized = !0,
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
(
|
|
498
|
+
Qe._$litElement$ = !0, Qe.finalized = !0, bi.litElementHydrateSupport?.({ LitElement: Qe });
|
|
499
|
+
const xn = bi.litElementPolyfillSupport;
|
|
500
|
+
xn?.({ LitElement: Qe });
|
|
501
|
+
(bi.litElementVersions ??= []).push("4.2.2");
|
|
502
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
|
|
507
|
+
const Cn = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: gi }, Un = (t = Cn, 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") {
|
|
@@ -535,7 +535,7 @@ function V(t) {
|
|
|
535
535
|
return ee({ ...t, state: !0, attribute: !1 });
|
|
536
536
|
}
|
|
537
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
|
|
538
|
+
function wi(t, e) {
|
|
539
539
|
return (n, i, o) => {
|
|
540
540
|
const a = (s) => s.renderRoot?.querySelector(t) ?? null;
|
|
541
541
|
return Mn(n, i, { get() {
|
|
@@ -546,13 +546,13 @@ function bi(t, e) {
|
|
|
546
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: {} },
|
|
549
|
+
var dt = { exports: {} }, Gt = { exports: {} }, kt = { exports: {} }, En = kt.exports, _i;
|
|
550
550
|
function tn() {
|
|
551
551
|
return _i || (_i = 1, (function(t) {
|
|
552
552
|
(function(e) {
|
|
553
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
554
|
function E(H) {
|
|
555
|
-
var L, te, X,
|
|
555
|
+
var L, te, X, M = U.prototype = { constructor: U, toString: null, valueOf: null }, Y = new U(1), Q = 20, ie = 4, ce = -7, de = 21, Ue = -1e7, ke = 1e7, _e = !1, st = 1, Be = 0, Nt = {
|
|
556
556
|
prefix: "",
|
|
557
557
|
groupSize: 3,
|
|
558
558
|
secondaryGroupSize: 0,
|
|
@@ -562,19 +562,19 @@ function tn() {
|
|
|
562
562
|
fractionGroupSeparator: " ",
|
|
563
563
|
// non-breaking space
|
|
564
564
|
suffix: ""
|
|
565
|
-
}, Ye = "0123456789abcdefghijklmnopqrstuvwxyz",
|
|
566
|
-
function
|
|
567
|
-
var g, k,
|
|
568
|
-
if (!(A instanceof
|
|
565
|
+
}, Ye = "0123456789abcdefghijklmnopqrstuvwxyz", Ht = !0;
|
|
566
|
+
function U(l, f) {
|
|
567
|
+
var g, k, b, I, j, y, v, S, A = this;
|
|
568
|
+
if (!(A instanceof U)) return new U(l, f);
|
|
569
569
|
if (f == null) {
|
|
570
570
|
if (l && l._isBigNumber === !0) {
|
|
571
|
-
A.s = l.s, !l.c || l.e >
|
|
571
|
+
A.s = l.s, !l.c || l.e > ke ? A.c = A.e = null : l.e < Ue ? A.c = [A.e = 0] : (A.e = l.e, A.c = l.c.slice());
|
|
572
572
|
return;
|
|
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
576
|
for (I = 0, j = l; j >= 10; j /= 10, I++) ;
|
|
577
|
-
I >
|
|
577
|
+
I > ke ? A.c = A.e = null : (A.e = I, A.c = [l]);
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
580
|
S = String(l);
|
|
@@ -584,11 +584,11 @@ function tn() {
|
|
|
584
584
|
}
|
|
585
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 (
|
|
588
|
-
return A = new
|
|
587
|
+
if (_(f, 2, Ye.length, "Base"), f == 10 && Ht)
|
|
588
|
+
return A = new U(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);
|
|
591
|
-
if (A.s = 1 / l < 0 ? (S = S.slice(1), -1) : 1,
|
|
591
|
+
if (A.s = 1 / l < 0 ? (S = S.slice(1), -1) : 1, U.DEBUG && S.replace(/^0\.0*|\./, "").length > 15)
|
|
592
592
|
throw Error(r + l);
|
|
593
593
|
} else
|
|
594
594
|
A.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
|
|
@@ -599,8 +599,8 @@ function tn() {
|
|
|
599
599
|
I = v;
|
|
600
600
|
continue;
|
|
601
601
|
}
|
|
602
|
-
} else if (!
|
|
603
|
-
|
|
602
|
+
} else if (!b && (S == S.toUpperCase() && (S = S.toLowerCase()) || S == S.toLowerCase() && (S = S.toUpperCase()))) {
|
|
603
|
+
b = !0, j = -1, I = 0;
|
|
604
604
|
continue;
|
|
605
605
|
}
|
|
606
606
|
return X(A, String(l), y, f);
|
|
@@ -610,9 +610,9 @@ function tn() {
|
|
|
610
610
|
for (j = 0; S.charCodeAt(j) === 48; j++) ;
|
|
611
611
|
for (v = S.length; S.charCodeAt(--v) === 48; ) ;
|
|
612
612
|
if (S = S.slice(j, ++v)) {
|
|
613
|
-
if (v -= j, y &&
|
|
613
|
+
if (v -= j, y && U.DEBUG && v > 15 && (l > p || l !== a(l)))
|
|
614
614
|
throw Error(r + A.s * l);
|
|
615
|
-
if ((I = I - j - 1) >
|
|
615
|
+
if ((I = I - j - 1) > ke)
|
|
616
616
|
A.c = A.e = null;
|
|
617
617
|
else if (I < Ue)
|
|
618
618
|
A.c = [A.e = 0];
|
|
@@ -629,15 +629,15 @@ function tn() {
|
|
|
629
629
|
} else
|
|
630
630
|
A.c = [A.e = 0];
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
U.clone = E, U.ROUND_UP = 0, U.ROUND_DOWN = 1, U.ROUND_CEIL = 2, U.ROUND_FLOOR = 3, U.ROUND_HALF_UP = 4, U.ROUND_HALF_DOWN = 5, U.ROUND_HALF_EVEN = 6, U.ROUND_HALF_CEIL = 7, U.ROUND_HALF_FLOOR = 8, U.EUCLID = 9, U.config = U.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],
|
|
636
|
+
if (l.hasOwnProperty(f = "DECIMAL_PLACES") && (g = l[f], _(g, 0, $, f), Q = g), l.hasOwnProperty(f = "ROUNDING_MODE") && (g = l[f], _(g, 0, 8, f), ie = g), l.hasOwnProperty(f = "EXPONENTIAL_AT") && (g = l[f], g && g.pop ? (_(g[0], -$, 0, f), _(g[1], 0, $, f), ce = g[0], de = g[1]) : (_(g, -$, $, f), ce = -(de = g < 0 ? -g : g))), l.hasOwnProperty(f = "RANGE"))
|
|
637
637
|
if (g = l[f], g && g.pop)
|
|
638
|
-
|
|
639
|
-
else if (
|
|
640
|
-
Ue = -(
|
|
638
|
+
_(g[0], -$, -1, f), _(g[1], 1, $, f), Ue = g[0], ke = g[1];
|
|
639
|
+
else if (_(g, -$, $, f), g)
|
|
640
|
+
Ue = -(ke = g < 0 ? -g : g);
|
|
641
641
|
else
|
|
642
642
|
throw Error(s + f + " cannot be zero: " + g);
|
|
643
643
|
if (l.hasOwnProperty(f = "CRYPTO"))
|
|
@@ -651,12 +651,12 @@ function tn() {
|
|
|
651
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],
|
|
655
|
-
if (g = l[f], typeof g == "object")
|
|
654
|
+
if (l.hasOwnProperty(f = "MODULO_MODE") && (g = l[f], _(g, 0, 9, f), st = g), l.hasOwnProperty(f = "POW_PRECISION") && (g = l[f], _(g, 0, $, f), Be = g), l.hasOwnProperty(f = "FORMAT"))
|
|
655
|
+
if (g = l[f], typeof g == "object") Nt = 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
|
-
|
|
659
|
+
Ht = g.slice(0, 10) == "0123456789", Ye = g;
|
|
660
660
|
else
|
|
661
661
|
throw Error(s + f + " invalid: " + g);
|
|
662
662
|
} else
|
|
@@ -665,48 +665,48 @@ function tn() {
|
|
|
665
665
|
DECIMAL_PLACES: Q,
|
|
666
666
|
ROUNDING_MODE: ie,
|
|
667
667
|
EXPONENTIAL_AT: [ce, de],
|
|
668
|
-
RANGE: [Ue,
|
|
668
|
+
RANGE: [Ue, ke],
|
|
669
669
|
CRYPTO: _e,
|
|
670
670
|
MODULO_MODE: st,
|
|
671
671
|
POW_PRECISION: Be,
|
|
672
|
-
FORMAT:
|
|
672
|
+
FORMAT: Nt,
|
|
673
673
|
ALPHABET: Ye
|
|
674
674
|
};
|
|
675
|
-
},
|
|
675
|
+
}, U.isBigNumber = function(l) {
|
|
676
676
|
if (!l || l._isBigNumber !== !0) return !1;
|
|
677
|
-
if (!
|
|
678
|
-
var f, g, k = l.c,
|
|
677
|
+
if (!U.DEBUG) return !0;
|
|
678
|
+
var f, g, k = l.c, b = l.e, I = l.s;
|
|
679
679
|
e: if ({}.toString.call(k) == "[object Array]") {
|
|
680
|
-
if ((I === 1 || I === -1) &&
|
|
680
|
+
if ((I === 1 || I === -1) && b >= -$ && b <= $ && b === a(b)) {
|
|
681
681
|
if (k[0] === 0) {
|
|
682
|
-
if (
|
|
682
|
+
if (b === 0 && k.length === 1) return !0;
|
|
683
683
|
break e;
|
|
684
684
|
}
|
|
685
|
-
if (f = (
|
|
685
|
+
if (f = (b + 1) % c, f < 1 && (f += c), String(k[0]).length == f) {
|
|
686
686
|
for (f = 0; f < k.length; f++)
|
|
687
687
|
if (g = k[f], g < 0 || g >= d || g !== a(g)) break e;
|
|
688
688
|
if (g !== 0) return !0;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
} else if (k === null &&
|
|
691
|
+
} else if (k === null && b === null && (I === null || I === 1 || I === -1))
|
|
692
692
|
return !0;
|
|
693
693
|
throw Error(s + "Invalid BigNumber: " + l);
|
|
694
|
-
},
|
|
694
|
+
}, U.maximum = U.max = function() {
|
|
695
695
|
return ki(arguments, -1);
|
|
696
|
-
},
|
|
696
|
+
}, U.minimum = U.min = function() {
|
|
697
697
|
return ki(arguments, 1);
|
|
698
|
-
},
|
|
698
|
+
}, U.random = (function() {
|
|
699
699
|
var l = 9007199254740992, f = Math.random() * l & 2097151 ? function() {
|
|
700
700
|
return a(Math.random() * l);
|
|
701
701
|
} : function() {
|
|
702
702
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
703
703
|
};
|
|
704
704
|
return function(g) {
|
|
705
|
-
var k,
|
|
706
|
-
if (g == null ? g = Q :
|
|
705
|
+
var k, b, I, j, y, v = 0, S = [], A = new U(Y);
|
|
706
|
+
if (g == null ? g = Q : _(g, 0, $), j = o(g / c), _e)
|
|
707
707
|
if (crypto.getRandomValues) {
|
|
708
708
|
for (k = crypto.getRandomValues(new Uint32Array(j *= 2)); v < j; )
|
|
709
|
-
y = k[v] * 131072 + (k[v + 1] >>> 11), y >= 9e15 ? (
|
|
709
|
+
y = k[v] * 131072 + (k[v + 1] >>> 11), y >= 9e15 ? (b = crypto.getRandomValues(new Uint32Array(2)), k[v] = b[0], k[v + 1] = b[1]) : (S.push(y % 1e14), v += 2);
|
|
710
710
|
v = j / 2;
|
|
711
711
|
} else if (crypto.randomBytes) {
|
|
712
712
|
for (k = crypto.randomBytes(j *= 7); v < j; )
|
|
@@ -727,33 +727,33 @@ function tn() {
|
|
|
727
727
|
}
|
|
728
728
|
return A.e = I, A.c = S, A;
|
|
729
729
|
};
|
|
730
|
-
})(),
|
|
731
|
-
for (var l = 1, f = arguments, g = new
|
|
730
|
+
})(), U.sum = function() {
|
|
731
|
+
for (var l = 1, f = arguments, g = new U(f[0]); l < f.length; ) g = g.plus(f[l++]);
|
|
732
732
|
return g;
|
|
733
733
|
}, te = /* @__PURE__ */ (function() {
|
|
734
734
|
var l = "0123456789";
|
|
735
|
-
function f(g, k,
|
|
735
|
+
function f(g, k, b, I) {
|
|
736
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
738
|
for (y[0] += I.indexOf(g.charAt(S++)), j = 0; j < y.length; j++)
|
|
739
|
-
y[j] >
|
|
739
|
+
y[j] > b - 1 && (y[j + 1] == null && (y[j + 1] = 0), y[j + 1] += y[j] / b | 0, y[j] %= b);
|
|
740
740
|
}
|
|
741
741
|
return y.reverse();
|
|
742
742
|
}
|
|
743
|
-
return function(g, k,
|
|
744
|
-
var y, v, S, A,
|
|
745
|
-
for (le >= 0 && (A = Be, Be = 0, g = g.replace(".", ""), ne = new
|
|
743
|
+
return function(g, k, b, I, j) {
|
|
744
|
+
var y, v, S, A, x, D, B, ne, le = g.indexOf("."), he = Q, F = ie;
|
|
745
|
+
for (le >= 0 && (A = Be, Be = 0, g = g.replace(".", ""), ne = new U(k), D = ne.pow(g.length - le), Be = A, ne.c = f(
|
|
746
746
|
ae(W(D.c), D.e, "0"),
|
|
747
747
|
10,
|
|
748
|
-
|
|
748
|
+
b,
|
|
749
749
|
l
|
|
750
|
-
), ne.e = ne.c.length), B = f(g, k,
|
|
750
|
+
), ne.e = ne.c.length), B = f(g, k, b, 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
|
-
if (le < 0 ? --S : (D.c = B, D.e = S, D.s = I, D = L(D, ne, he, F,
|
|
753
|
-
g =
|
|
752
|
+
if (le < 0 ? --S : (D.c = B, D.e = S, D.s = I, D = L(D, ne, he, F, b), B = D.c, x = D.r, S = D.e), v = S + he + 1, le = B[v], A = b / 2, x = x || v < 0 || B[v + 1] != null, x = F < 4 ? (le != null || x) && (F == 0 || F == (D.s < 0 ? 3 : 2)) : le > A || le == A && (F == 4 || x || F == 6 && B[v - 1] & 1 || F == (D.s < 0 ? 8 : 7)), v < 1 || !B[0])
|
|
753
|
+
g = x ? ae(y.charAt(1), -he, y.charAt(0)) : y.charAt(0);
|
|
754
754
|
else {
|
|
755
|
-
if (B.length = v,
|
|
756
|
-
for (--
|
|
755
|
+
if (B.length = v, x)
|
|
756
|
+
for (--b; ++B[--v] > b; )
|
|
757
757
|
B[v] = 0, v || (++S, B = [1].concat(B));
|
|
758
758
|
for (A = B.length; !B[--A]; ) ;
|
|
759
759
|
for (le = 0, g = ""; le <= A; g += y.charAt(B[le++])) ;
|
|
@@ -762,48 +762,48 @@ function tn() {
|
|
|
762
762
|
return g;
|
|
763
763
|
};
|
|
764
764
|
})(), L = /* @__PURE__ */ (function() {
|
|
765
|
-
function l(k,
|
|
766
|
-
var j, y, v, S, A = 0,
|
|
767
|
-
for (k = k.slice();
|
|
768
|
-
v = k[
|
|
765
|
+
function l(k, b, I) {
|
|
766
|
+
var j, y, v, S, A = 0, x = k.length, D = b % m, B = b / m | 0;
|
|
767
|
+
for (k = k.slice(); x--; )
|
|
768
|
+
v = k[x] % m, S = k[x] / m | 0, j = B * v + S * D, y = D * v + j % m * m + A, A = (y / I | 0) + (j / m | 0) + B * S, k[x] = y % I;
|
|
769
769
|
return A && (k = [A].concat(k)), k;
|
|
770
770
|
}
|
|
771
|
-
function f(k,
|
|
771
|
+
function f(k, b, I, j) {
|
|
772
772
|
var y, v;
|
|
773
773
|
if (I != j)
|
|
774
774
|
v = I > j ? 1 : -1;
|
|
775
775
|
else
|
|
776
776
|
for (y = v = 0; y < I; y++)
|
|
777
|
-
if (k[y] !=
|
|
778
|
-
v = k[y] >
|
|
777
|
+
if (k[y] != b[y]) {
|
|
778
|
+
v = k[y] > b[y] ? 1 : -1;
|
|
779
779
|
break;
|
|
780
780
|
}
|
|
781
781
|
return v;
|
|
782
782
|
}
|
|
783
|
-
function g(k,
|
|
783
|
+
function g(k, b, I, j) {
|
|
784
784
|
for (var y = 0; I--; )
|
|
785
|
-
k[I] -= y, y = k[I] <
|
|
785
|
+
k[I] -= y, y = k[I] < b[I] ? 1 : 0, k[I] = y * j + k[I] - b[I];
|
|
786
786
|
for (; !k[0] && k.length > 1; k.splice(0, 1)) ;
|
|
787
787
|
}
|
|
788
|
-
return function(k,
|
|
789
|
-
var v, S, A,
|
|
790
|
-
if (!
|
|
791
|
-
return new
|
|
788
|
+
return function(k, b, I, j, y) {
|
|
789
|
+
var v, S, A, x, D, B, ne, le, he, F, re, me, wt, Xt, Vt, Me, rt, $e = k.s == b.s ? 1 : -1, ve = k.c, ue = b.c;
|
|
790
|
+
if (!ve || !ve[0] || !ue || !ue[0])
|
|
791
|
+
return new U(
|
|
792
792
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
793
|
-
!k.s || !
|
|
793
|
+
!k.s || !b.s || (ve ? ue && ve[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
|
-
|
|
795
|
+
ve && ve[0] == 0 || !ue ? $e * 0 : $e / 0
|
|
796
796
|
)
|
|
797
797
|
);
|
|
798
|
-
for (le = new
|
|
799
|
-
if (ue[A] > (
|
|
800
|
-
he.push(1),
|
|
798
|
+
for (le = new U($e), he = le.c = [], S = k.e - b.e, $e = I + S + 1, y || (y = d, S = Z(k.e / c) - Z(b.e / c), $e = $e / c | 0), A = 0; ue[A] == (ve[A] || 0); A++) ;
|
|
799
|
+
if (ue[A] > (ve[A] || 0) && S--, $e < 0)
|
|
800
|
+
he.push(1), x = !0;
|
|
801
801
|
else {
|
|
802
|
-
for (
|
|
803
|
-
rt = ue.slice(), rt = [0].concat(rt),
|
|
802
|
+
for (Xt = ve.length, Me = ue.length, A = 0, $e += 2, D = a(y / (ue[0] + 1)), D > 1 && (ue = l(ue, D, y), ve = l(ve, D, y), Me = ue.length, Xt = ve.length), wt = Me, F = ve.slice(0, Me), re = F.length; re < Me; F[re++] = 0) ;
|
|
803
|
+
rt = ue.slice(), rt = [0].concat(rt), Vt = ue[0], ue[1] >= y / 2 && Vt++;
|
|
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 /
|
|
806
|
+
if (me = F[0], Me != re && (me = me * y + (F[1] || 0)), D = a(me / Vt), 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
|
|
@@ -812,54 +812,54 @@ function tn() {
|
|
|
812
812
|
for (; f(ue, F, Me, re) < 1; )
|
|
813
813
|
D++, g(F, Me < re ? rt : ue, re, y), re = F.length;
|
|
814
814
|
} else v === 0 && (D++, F = [0]);
|
|
815
|
-
he[A++] = D, F[0] ? F[re++] =
|
|
816
|
-
} while ((
|
|
817
|
-
|
|
815
|
+
he[A++] = D, F[0] ? F[re++] = ve[wt] || 0 : (F = [ve[wt]], re = 1);
|
|
816
|
+
} while ((wt++ < Xt || F[0] != null) && $e--);
|
|
817
|
+
x = F[0] != null, he[0] || he.splice(0, 1);
|
|
818
818
|
}
|
|
819
819
|
if (y == d) {
|
|
820
820
|
for (A = 1, $e = he[0]; $e >= 10; $e /= 10, A++) ;
|
|
821
|
-
Se(le, I + (le.e = A + S * c - 1) + 1, j,
|
|
821
|
+
Se(le, I + (le.e = A + S * c - 1) + 1, j, x);
|
|
822
822
|
} else
|
|
823
|
-
le.e = S, le.r = +
|
|
823
|
+
le.e = S, le.r = +x;
|
|
824
824
|
return le;
|
|
825
825
|
};
|
|
826
826
|
})();
|
|
827
|
-
function
|
|
828
|
-
var
|
|
829
|
-
if (g == null ? g = ie :
|
|
830
|
-
if (
|
|
827
|
+
function Dt(l, f, g, k) {
|
|
828
|
+
var b, I, j, y, v;
|
|
829
|
+
if (g == null ? g = ie : _(g, 0, 8), !l.c) return l.toString();
|
|
830
|
+
if (b = l.c[0], j = l.e, f == null)
|
|
831
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
|
|
832
|
+
else if (l = Se(new U(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
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
|
-
return l.s < 0 &&
|
|
839
|
+
return l.s < 0 && b ? "-" + v : v;
|
|
840
840
|
}
|
|
841
841
|
function ki(l, f) {
|
|
842
|
-
for (var g, k,
|
|
843
|
-
k = new
|
|
842
|
+
for (var g, k, b = 1, I = new U(l[0]); b < l.length; b++)
|
|
843
|
+
k = new U(l[b]), (!k.s || (g = K(I, k)) === f || g === 0 && I.s === f) && (I = k);
|
|
844
844
|
return I;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
for (var k = 1,
|
|
848
|
-
for (
|
|
849
|
-
return (g = k + g * c - 1) >
|
|
846
|
+
function Bt(l, f, g) {
|
|
847
|
+
for (var k = 1, b = f.length; !f[--b]; f.pop()) ;
|
|
848
|
+
for (b = f[0]; b >= 10; b /= 10, k++) ;
|
|
849
|
+
return (g = k + g * c - 1) > ke ? 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
|
-
var l = /^(-?)0([xbo])(?=\w[\w.]*$)/i, f = /^([^.]+)\.$/, g = /^\.([^.]+)$/, k = /^-?(Infinity|NaN)$/,
|
|
852
|
+
var l = /^(-?)0([xbo])(?=\w[\w.]*$)/i, f = /^([^.]+)\.$/, g = /^\.([^.]+)$/, k = /^-?(Infinity|NaN)$/, b = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
853
853
|
return function(I, j, y, v) {
|
|
854
|
-
var S, A = y ? j : j.replace(
|
|
854
|
+
var S, A = y ? j : j.replace(b, "");
|
|
855
855
|
if (k.test(A))
|
|
856
856
|
I.s = isNaN(A) ? null : A < 0 ? -1 : 1;
|
|
857
857
|
else {
|
|
858
|
-
if (!y && (A = A.replace(l, function(
|
|
859
|
-
return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !v || v == S ? D :
|
|
858
|
+
if (!y && (A = A.replace(l, function(x, D, B) {
|
|
859
|
+
return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !v || v == S ? D : x;
|
|
860
860
|
}), v && (S = v, A = A.replace(f, "$1").replace(g, "0.$1")), j != A))
|
|
861
|
-
return new
|
|
862
|
-
if (
|
|
861
|
+
return new U(A, S);
|
|
862
|
+
if (U.DEBUG)
|
|
863
863
|
throw Error(s + "Not a" + (v ? " base " + v : "") + " number: " + j);
|
|
864
864
|
I.s = null;
|
|
865
865
|
}
|
|
@@ -867,42 +867,42 @@ function tn() {
|
|
|
867
867
|
};
|
|
868
868
|
})();
|
|
869
869
|
function Se(l, f, g, k) {
|
|
870
|
-
var
|
|
871
|
-
if (
|
|
870
|
+
var b, I, j, y, v, S, A, x = l.c, D = u;
|
|
871
|
+
if (x) {
|
|
872
872
|
e: {
|
|
873
|
-
for (
|
|
874
|
-
if (I = f -
|
|
875
|
-
I += c, j = f, v =
|
|
876
|
-
else if (S = o((I + 1) / c), S >=
|
|
873
|
+
for (b = 1, y = x[0]; y >= 10; y /= 10, b++) ;
|
|
874
|
+
if (I = f - b, I < 0)
|
|
875
|
+
I += c, j = f, v = x[S = 0], A = a(v / D[b - j - 1] % 10);
|
|
876
|
+
else if (S = o((I + 1) / c), S >= x.length)
|
|
877
877
|
if (k) {
|
|
878
|
-
for (;
|
|
879
|
-
v = A = 0,
|
|
878
|
+
for (; x.length <= S; x.push(0)) ;
|
|
879
|
+
v = A = 0, b = 1, I %= c, j = I - c + 1;
|
|
880
880
|
} else
|
|
881
881
|
break e;
|
|
882
882
|
else {
|
|
883
|
-
for (v = y =
|
|
884
|
-
I %= c, j = I - c +
|
|
883
|
+
for (v = y = x[S], b = 1; y >= 10; y /= 10, b++) ;
|
|
884
|
+
I %= c, j = I - c + b, A = j < 0 ? 0 : a(v / D[b - 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
|
-
|
|
890
|
-
(I > 0 ? j > 0 ? v / D[
|
|
891
|
-
return
|
|
892
|
-
if (I == 0 ? (
|
|
889
|
+
x[S + 1] != null || (j < 0 ? v : v % D[b - 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[b - j] : 0 : x[S - 1]) % 10 & 1 || g == (l.s < 0 ? 8 : 7)), f < 1 || !x[0])
|
|
891
|
+
return x.length = 0, k ? (f -= l.e + 1, x[0] = D[(c - f % c) % c], l.e = -f || 0) : x[0] = l.e = 0, l;
|
|
892
|
+
if (I == 0 ? (x.length = S, y = 1, S--) : (x.length = S + 1, y = D[c - I], x[S] = j > 0 ? a(v / D[b - j] % D[j]) * y : 0), k)
|
|
893
893
|
for (; ; )
|
|
894
894
|
if (S == 0) {
|
|
895
|
-
for (I = 1, j =
|
|
896
|
-
for (j =
|
|
897
|
-
I != y && (l.e++,
|
|
895
|
+
for (I = 1, j = x[0]; j >= 10; j /= 10, I++) ;
|
|
896
|
+
for (j = x[0] += y, y = 1; j >= 10; j /= 10, y++) ;
|
|
897
|
+
I != y && (l.e++, x[0] == d && (x[0] = 1));
|
|
898
898
|
break;
|
|
899
899
|
} else {
|
|
900
|
-
if (
|
|
901
|
-
|
|
900
|
+
if (x[S] += y, x[S] != d) break;
|
|
901
|
+
x[S--] = 0, y = 1;
|
|
902
902
|
}
|
|
903
|
-
for (I =
|
|
903
|
+
for (I = x.length; x[--I] === 0; x.pop()) ;
|
|
904
904
|
}
|
|
905
|
-
l.e >
|
|
905
|
+
l.e > ke ? l.c = l.e = null : l.e < Ue && (l.c = [l.e = 0]);
|
|
906
906
|
}
|
|
907
907
|
return l;
|
|
908
908
|
}
|
|
@@ -910,167 +910,167 @@ function tn() {
|
|
|
910
910
|
var f, g = l.e;
|
|
911
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
|
-
return
|
|
914
|
-
var l = new
|
|
913
|
+
return M.absoluteValue = M.abs = function() {
|
|
914
|
+
var l = new U(this);
|
|
915
915
|
return l.s < 0 && (l.s = 1), l;
|
|
916
|
-
},
|
|
917
|
-
return K(this, new
|
|
918
|
-
},
|
|
919
|
-
var g, k,
|
|
916
|
+
}, M.comparedTo = function(l, f) {
|
|
917
|
+
return K(this, new U(l, f));
|
|
918
|
+
}, M.decimalPlaces = M.dp = function(l, f) {
|
|
919
|
+
var g, k, b, I = this;
|
|
920
920
|
if (l != null)
|
|
921
|
-
return
|
|
921
|
+
return _(l, 0, $), f == null ? f = ie : _(f, 0, 8), Se(new U(I), l + I.e + 1, f);
|
|
922
922
|
if (!(g = I.c)) return null;
|
|
923
|
-
if (k = ((
|
|
923
|
+
if (k = ((b = g.length - 1) - Z(this.e / c)) * c, b = g[b]) for (; b % 10 == 0; b /= 10, k--) ;
|
|
924
924
|
return k < 0 && (k = 0), k;
|
|
925
|
-
},
|
|
926
|
-
return L(this, new
|
|
927
|
-
},
|
|
928
|
-
return L(this, new
|
|
929
|
-
},
|
|
930
|
-
var g, k,
|
|
931
|
-
if (l = new
|
|
925
|
+
}, M.dividedBy = M.div = function(l, f) {
|
|
926
|
+
return L(this, new U(l, f), Q, ie);
|
|
927
|
+
}, M.dividedToIntegerBy = M.idiv = function(l, f) {
|
|
928
|
+
return L(this, new U(l, f), 0, 1);
|
|
929
|
+
}, M.exponentiatedBy = M.pow = function(l, f) {
|
|
930
|
+
var g, k, b, I, j, y, v, S, A, x = this;
|
|
931
|
+
if (l = new U(l), l.c && !l.isInteger())
|
|
932
932
|
throw Error(s + "Exponent not an integer: " + Le(l));
|
|
933
|
-
if (f != null && (f = new
|
|
934
|
-
return A = new
|
|
933
|
+
if (f != null && (f = new U(f)), y = l.e > 14, !x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !l.c || !l.c[0])
|
|
934
|
+
return A = new U(Math.pow(+Le(x), y ? l.s * (2 - N(l)) : +Le(l))), f ? A.mod(f) : A;
|
|
935
935
|
if (v = l.s < 0, f) {
|
|
936
|
-
if (f.c ? !f.c[0] : !f.s) return new
|
|
937
|
-
k = !v &&
|
|
936
|
+
if (f.c ? !f.c[0] : !f.s) return new U(NaN);
|
|
937
|
+
k = !v && x.isInteger() && f.isInteger(), k && (x = x.mod(f));
|
|
938
938
|
} else {
|
|
939
|
-
if (l.e > 9 && (
|
|
940
|
-
return I =
|
|
939
|
+
if (l.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 ? x.c[0] > 1 || y && x.c[1] >= 24e7 : x.c[0] < 8e13 || y && x.c[0] <= 9999975e7)))
|
|
940
|
+
return I = x.s < 0 && N(l) ? -0 : 0, x.e > -1 && (I = 1 / I), new U(v ? 1 / I : I);
|
|
941
941
|
Be && (I = o(Be / c + 2));
|
|
942
942
|
}
|
|
943
|
-
for (y ? (g = new
|
|
943
|
+
for (y ? (g = new U(0.5), v && (l.s = 1), S = N(l)) : (b = Math.abs(+Le(l)), S = b % 2), A = new U(Y); ; ) {
|
|
944
944
|
if (S) {
|
|
945
|
-
if (A = A.times(
|
|
945
|
+
if (A = A.times(x), !A.c) break;
|
|
946
946
|
I ? A.c.length > I && (A.c.length = I) : k && (A = A.mod(f));
|
|
947
947
|
}
|
|
948
|
-
if (
|
|
949
|
-
if (
|
|
950
|
-
S =
|
|
948
|
+
if (b) {
|
|
949
|
+
if (b = a(b / 2), b === 0) break;
|
|
950
|
+
S = b % 2;
|
|
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 (
|
|
955
|
-
S =
|
|
954
|
+
if (b = +Le(l), b === 0) break;
|
|
955
|
+
S = b % 2;
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
x = x.times(x), I ? x.c && x.c.length > I && (x.c.length = I) : k && (x = x.mod(f));
|
|
958
958
|
}
|
|
959
959
|
return k ? A : (v && (A = Y.div(A)), f ? A.mod(f) : I ? Se(A, Be, ie, j) : A);
|
|
960
|
-
},
|
|
961
|
-
var f = new
|
|
962
|
-
return l == null ? l = ie :
|
|
963
|
-
},
|
|
964
|
-
return K(this, new
|
|
965
|
-
},
|
|
960
|
+
}, M.integerValue = function(l) {
|
|
961
|
+
var f = new U(this);
|
|
962
|
+
return l == null ? l = ie : _(l, 0, 8), Se(f, f.e + 1, l);
|
|
963
|
+
}, M.isEqualTo = M.eq = function(l, f) {
|
|
964
|
+
return K(this, new U(l, f)) === 0;
|
|
965
|
+
}, M.isFinite = function() {
|
|
966
966
|
return !!this.c;
|
|
967
|
-
},
|
|
968
|
-
return K(this, new
|
|
969
|
-
},
|
|
970
|
-
return (f = K(this, new
|
|
971
|
-
},
|
|
967
|
+
}, M.isGreaterThan = M.gt = function(l, f) {
|
|
968
|
+
return K(this, new U(l, f)) > 0;
|
|
969
|
+
}, M.isGreaterThanOrEqualTo = M.gte = function(l, f) {
|
|
970
|
+
return (f = K(this, new U(l, f))) === 1 || f === 0;
|
|
971
|
+
}, M.isInteger = function() {
|
|
972
972
|
return !!this.c && Z(this.e / c) > this.c.length - 2;
|
|
973
|
-
},
|
|
974
|
-
return K(this, new
|
|
975
|
-
},
|
|
976
|
-
return (f = K(this, new
|
|
977
|
-
},
|
|
973
|
+
}, M.isLessThan = M.lt = function(l, f) {
|
|
974
|
+
return K(this, new U(l, f)) < 0;
|
|
975
|
+
}, M.isLessThanOrEqualTo = M.lte = function(l, f) {
|
|
976
|
+
return (f = K(this, new U(l, f))) === -1 || f === 0;
|
|
977
|
+
}, M.isNaN = function() {
|
|
978
978
|
return !this.s;
|
|
979
|
-
},
|
|
979
|
+
}, M.isNegative = function() {
|
|
980
980
|
return this.s < 0;
|
|
981
|
-
},
|
|
981
|
+
}, M.isPositive = function() {
|
|
982
982
|
return this.s > 0;
|
|
983
|
-
},
|
|
983
|
+
}, M.isZero = function() {
|
|
984
984
|
return !!this.c && this.c[0] == 0;
|
|
985
|
-
},
|
|
986
|
-
var g, k,
|
|
987
|
-
if (l = new
|
|
985
|
+
}, M.minus = function(l, f) {
|
|
986
|
+
var g, k, b, I, j = this, y = j.s;
|
|
987
|
+
if (l = new U(l, f), f = l.s, !y || !f) return new U(NaN);
|
|
988
988
|
if (y != f)
|
|
989
989
|
return l.s = -f, j.plus(l);
|
|
990
|
-
var v = j.e / c, S = l.e / c, A = j.c,
|
|
990
|
+
var v = j.e / c, S = l.e / c, A = j.c, x = l.c;
|
|
991
991
|
if (!v || !S) {
|
|
992
|
-
if (!A || !
|
|
993
|
-
if (!A[0] || !
|
|
994
|
-
return
|
|
992
|
+
if (!A || !x) return A ? (l.s = -f, l) : new U(x ? j : NaN);
|
|
993
|
+
if (!A[0] || !x[0])
|
|
994
|
+
return x[0] ? (l.s = -f, l) : new U(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
|
));
|
|
998
998
|
}
|
|
999
999
|
if (v = Z(v), S = Z(S), A = A.slice(), y = v - S) {
|
|
1000
|
-
for ((I = y < 0) ? (y = -y,
|
|
1001
|
-
|
|
1000
|
+
for ((I = y < 0) ? (y = -y, b = A) : (S = v, b = x), b.reverse(), f = y; f--; b.push(0)) ;
|
|
1001
|
+
b.reverse();
|
|
1002
1002
|
} else
|
|
1003
|
-
for (k = (I = (y = A.length) < (f =
|
|
1004
|
-
if (A[f] !=
|
|
1005
|
-
I = A[f] <
|
|
1003
|
+
for (k = (I = (y = A.length) < (f = x.length)) ? y : f, y = f = 0; f < k; f++)
|
|
1004
|
+
if (A[f] != x[f]) {
|
|
1005
|
+
I = A[f] < x[f];
|
|
1006
1006
|
break;
|
|
1007
1007
|
}
|
|
1008
|
-
if (I && (
|
|
1008
|
+
if (I && (b = A, A = x, x = b, l.s = -l.s), f = (k = x.length) - (g = A.length), f > 0) for (; f--; A[g++] = 0) ;
|
|
1009
1009
|
for (f = d - 1; k > y; ) {
|
|
1010
|
-
if (A[--k] <
|
|
1010
|
+
if (A[--k] < x[k]) {
|
|
1011
1011
|
for (g = k; g && !A[--g]; A[g] = f) ;
|
|
1012
1012
|
--A[g], A[k] += d;
|
|
1013
1013
|
}
|
|
1014
|
-
A[k] -=
|
|
1014
|
+
A[k] -= x[k];
|
|
1015
1015
|
}
|
|
1016
1016
|
for (; A[0] == 0; A.splice(0, 1), --S) ;
|
|
1017
|
-
return A[0] ?
|
|
1018
|
-
},
|
|
1019
|
-
var g, k,
|
|
1020
|
-
return l = new
|
|
1021
|
-
},
|
|
1022
|
-
var g, k,
|
|
1017
|
+
return A[0] ? Bt(l, A, S) : (l.s = ie == 3 ? -1 : 1, l.c = [l.e = 0], l);
|
|
1018
|
+
}, M.modulo = M.mod = function(l, f) {
|
|
1019
|
+
var g, k, b = this;
|
|
1020
|
+
return l = new U(l, f), !b.c || !l.s || l.c && !l.c[0] ? new U(NaN) : !l.c || b.c && !b.c[0] ? new U(b) : (st == 9 ? (k = l.s, l.s = 1, g = L(b, l, 0, 3), l.s = k, g.s *= k) : g = L(b, l, 0, st), l = b.minus(g.times(l)), !l.c[0] && st == 1 && (l.s = b.s), l);
|
|
1021
|
+
}, M.multipliedBy = M.times = function(l, f) {
|
|
1022
|
+
var g, k, b, I, j, y, v, S, A, x, D, B, ne, le, he, F = this, re = F.c, me = (l = new U(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
|
-
for (k = Z(F.e / c) + Z(l.e / c), l.s *= F.s, v = re.length,
|
|
1026
|
-
for (le = d, he = m,
|
|
1027
|
-
for (g = 0, D = me[
|
|
1025
|
+
for (k = Z(F.e / c) + Z(l.e / c), l.s *= F.s, v = re.length, x = me.length, v < x && (ne = re, re = me, me = ne, b = v, v = x, x = b), b = v + x, ne = []; b--; ne.push(0)) ;
|
|
1026
|
+
for (le = d, he = m, b = x; --b >= 0; ) {
|
|
1027
|
+
for (g = 0, D = me[b] % he, B = me[b] / he | 0, j = v, I = b + j; I > b; )
|
|
1028
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),
|
|
1032
|
-
},
|
|
1033
|
-
var l = new
|
|
1031
|
+
return g ? ++k : ne.splice(0, 1), Bt(l, ne, k);
|
|
1032
|
+
}, M.negated = function() {
|
|
1033
|
+
var l = new U(this);
|
|
1034
1034
|
return l.s = -l.s || null, l;
|
|
1035
|
-
},
|
|
1036
|
-
var g, k = this,
|
|
1037
|
-
if (l = new
|
|
1038
|
-
if (
|
|
1035
|
+
}, M.plus = function(l, f) {
|
|
1036
|
+
var g, k = this, b = k.s;
|
|
1037
|
+
if (l = new U(l, f), f = l.s, !b || !f) return new U(NaN);
|
|
1038
|
+
if (b != f)
|
|
1039
1039
|
return l.s = -f, k.minus(l);
|
|
1040
1040
|
var I = k.e / c, j = l.e / c, y = k.c, v = l.c;
|
|
1041
1041
|
if (!I || !j) {
|
|
1042
|
-
if (!y || !v) return new
|
|
1043
|
-
if (!y[0] || !v[0]) return v[0] ? l : new
|
|
1042
|
+
if (!y || !v) return new U(b / 0);
|
|
1043
|
+
if (!y[0] || !v[0]) return v[0] ? l : new U(y[0] ? k : b * 0);
|
|
1044
1044
|
}
|
|
1045
|
-
if (I = Z(I), j = Z(j), y = y.slice(),
|
|
1046
|
-
for (
|
|
1045
|
+
if (I = Z(I), j = Z(j), y = y.slice(), b = I - j) {
|
|
1046
|
+
for (b > 0 ? (j = I, g = v) : (b = -b, g = y), g.reverse(); b--; g.push(0)) ;
|
|
1047
1047
|
g.reverse();
|
|
1048
1048
|
}
|
|
1049
|
-
for (
|
|
1050
|
-
|
|
1051
|
-
return
|
|
1052
|
-
},
|
|
1053
|
-
var g, k,
|
|
1049
|
+
for (b = y.length, f = v.length, b - f < 0 && (g = v, v = y, y = g, f = b), b = 0; f; )
|
|
1050
|
+
b = (y[--f] = y[f] + v[f] + b) / d | 0, y[f] = d === y[f] ? 0 : y[f] % d;
|
|
1051
|
+
return b && (y = [b].concat(y), ++j), Bt(l, y, j);
|
|
1052
|
+
}, M.precision = M.sd = function(l, f) {
|
|
1053
|
+
var g, k, b, I = this;
|
|
1054
1054
|
if (l != null && l !== !!l)
|
|
1055
|
-
return
|
|
1055
|
+
return _(l, 1, $), f == null ? f = ie : _(f, 0, 8), Se(new U(I), l, f);
|
|
1056
1056
|
if (!(g = I.c)) return null;
|
|
1057
|
-
if (
|
|
1058
|
-
for (;
|
|
1059
|
-
for (
|
|
1057
|
+
if (b = g.length - 1, k = b * c + 1, b = g[b]) {
|
|
1058
|
+
for (; b % 10 == 0; b /= 10, k--) ;
|
|
1059
|
+
for (b = g[0]; b >= 10; b /= 10, k++) ;
|
|
1060
1060
|
}
|
|
1061
1061
|
return l && I.e + 1 > k && (k = I.e + 1), k;
|
|
1062
|
-
},
|
|
1063
|
-
return
|
|
1064
|
-
},
|
|
1065
|
-
var l, f, g, k,
|
|
1062
|
+
}, M.shiftedBy = function(l) {
|
|
1063
|
+
return _(l, -p, p), this.times("1e" + l);
|
|
1064
|
+
}, M.squareRoot = M.sqrt = function() {
|
|
1065
|
+
var l, f, g, k, b, I = this, j = I.c, y = I.s, v = I.e, S = Q + 4, A = new U("0.5");
|
|
1066
1066
|
if (y !== 1 || !j || !j[0])
|
|
1067
|
-
return new
|
|
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
|
|
1067
|
+
return new U(!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 U(f)) : g = new U(y + ""), g.c[0]) {
|
|
1069
1069
|
for (v = g.e, y = v + S, y < 3 && (y = 0); ; )
|
|
1070
|
-
if (
|
|
1070
|
+
if (b = g, g = A.times(b.plus(L(I, b, S, 1))), W(b.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
|
-
if (!k && (Se(
|
|
1073
|
-
g =
|
|
1072
|
+
if (!k && (Se(b, b.e + Q + 2, 0), b.times(b).eq(I))) {
|
|
1073
|
+
g = b;
|
|
1074
1074
|
break;
|
|
1075
1075
|
}
|
|
1076
1076
|
S += 4, y += 4, k = 1;
|
|
@@ -1080,72 +1080,72 @@ function tn() {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
return Se(g, g.e + Q + 1, ie, l);
|
|
1083
|
-
},
|
|
1084
|
-
return l != null && (
|
|
1085
|
-
},
|
|
1086
|
-
return l != null && (
|
|
1087
|
-
},
|
|
1088
|
-
var k,
|
|
1083
|
+
}, M.toExponential = function(l, f) {
|
|
1084
|
+
return l != null && (_(l, 0, $), l++), Dt(this, l, f, 1);
|
|
1085
|
+
}, M.toFixed = function(l, f) {
|
|
1086
|
+
return l != null && (_(l, 0, $), l = l + this.e + 1), Dt(this, l, f);
|
|
1087
|
+
}, M.toFormat = function(l, f, g) {
|
|
1088
|
+
var k, b = 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 =
|
|
1090
|
+
l != null && f && typeof f == "object" ? (g = f, f = null) : l && typeof l == "object" ? (g = l, l = f = null) : g = Nt;
|
|
1091
1091
|
else if (typeof g != "object")
|
|
1092
1092
|
throw Error(s + "Argument not an object: " + g);
|
|
1093
|
-
if (k =
|
|
1094
|
-
var I, j = k.split("."), y = +g.groupSize, v = +g.secondaryGroupSize, S = g.groupSeparator || "", A = j[0],
|
|
1093
|
+
if (k = b.toFixed(l, f), b.c) {
|
|
1094
|
+
var I, j = k.split("."), y = +g.groupSize, v = +g.secondaryGroupSize, S = g.groupSeparator || "", A = j[0], x = j[1], D = b.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);
|
|
1098
1098
|
}
|
|
1099
|
-
k =
|
|
1099
|
+
k = x ? A + (g.decimalSeparator || "") + ((v = +g.fractionGroupSize) ? x.replace(
|
|
1100
1100
|
new RegExp("\\d{" + v + "}\\B", "g"),
|
|
1101
1101
|
"$&" + (g.fractionGroupSeparator || "")
|
|
1102
|
-
) :
|
|
1102
|
+
) : x) : A;
|
|
1103
1103
|
}
|
|
1104
1104
|
return (g.prefix || "") + k + (g.suffix || "");
|
|
1105
|
-
},
|
|
1106
|
-
var f, g, k,
|
|
1107
|
-
if (l != null && (y = new
|
|
1105
|
+
}, M.toFraction = function(l) {
|
|
1106
|
+
var f, g, k, b, I, j, y, v, S, A, x, D, B = this, ne = B.c;
|
|
1107
|
+
if (l != null && (y = new U(l), !y.isInteger() && (y.c || y.s !== 1) || y.lt(Y)))
|
|
1108
1108
|
throw Error(s + "Argument " + (y.isInteger() ? "out of range: " : "not an integer: ") + Le(y));
|
|
1109
|
-
if (!ne) return new
|
|
1110
|
-
for (f = new
|
|
1111
|
-
g = k, k =
|
|
1112
|
-
return
|
|
1109
|
+
if (!ne) return new U(B);
|
|
1110
|
+
for (f = new U(Y), S = g = new U(Y), k = v = new U(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 = ke, ke = 1 / 0, y = new U(D), v.c[0] = 0; A = L(y, f, 0, 1), b = g.plus(A.times(k)), b.comparedTo(l) != 1; )
|
|
1111
|
+
g = k, k = b, S = v.plus(A.times(b = S)), v = b, f = y.minus(A.times(b = f)), y = b;
|
|
1112
|
+
return b = L(l.minus(g), k, 0, 1), v = v.plus(b.times(S)), g = g.plus(b.times(k)), v.s = S.s = B.s, I = I * 2, x = 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],
|
|
1115
|
-
},
|
|
1114
|
+
) < 1 ? [S, k] : [v, g], ke = j, x;
|
|
1115
|
+
}, M.toNumber = function() {
|
|
1116
1116
|
return +Le(this);
|
|
1117
|
-
},
|
|
1118
|
-
return l != null &&
|
|
1119
|
-
},
|
|
1120
|
-
var f, g = this, k = g.s,
|
|
1121
|
-
return
|
|
1122
|
-
},
|
|
1117
|
+
}, M.toPrecision = function(l, f) {
|
|
1118
|
+
return l != null && _(l, 1, $), Dt(this, l, f, 2);
|
|
1119
|
+
}, M.toString = function(l) {
|
|
1120
|
+
var f, g = this, k = g.s, b = g.e;
|
|
1121
|
+
return b === null ? k ? (f = "Infinity", k < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = b <= ce || b >= de ? J(W(g.c), b) : ae(W(g.c), b, "0") : l === 10 && Ht ? (g = Se(new U(g), Q + b + 1, ie), f = ae(W(g.c), g.e, "0")) : (_(l, 2, Ye.length, "Base"), f = te(ae(W(g.c), b, "0"), 10, l, k, !0)), k < 0 && g.c[0] && (f = "-" + f)), f;
|
|
1122
|
+
}, M.valueOf = M.toJSON = function() {
|
|
1123
1123
|
return Le(this);
|
|
1124
|
-
},
|
|
1124
|
+
}, M._isBigNumber = !0, H != null && U.set(H), U;
|
|
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
1130
|
function W(H) {
|
|
1131
|
-
for (var L, te, X = 1,
|
|
1131
|
+
for (var L, te, X = 1, M = H.length, Y = H[0] + ""; X < M; ) {
|
|
1132
1132
|
for (L = H[X++] + "", te = c - L.length; te--; L = "0" + L) ;
|
|
1133
1133
|
Y += L;
|
|
1134
1134
|
}
|
|
1135
|
-
for (
|
|
1136
|
-
return Y.slice(0,
|
|
1135
|
+
for (M = Y.length; Y.charCodeAt(--M) === 48; ) ;
|
|
1136
|
+
return Y.slice(0, M + 1 || 1);
|
|
1137
1137
|
}
|
|
1138
1138
|
function K(H, L) {
|
|
1139
|
-
var te, X,
|
|
1139
|
+
var te, X, M = H.c, Y = L.c, Q = H.s, ie = L.s, ce = H.e, de = L.e;
|
|
1140
1140
|
if (!Q || !ie) return null;
|
|
1141
|
-
if (te =
|
|
1141
|
+
if (te = M && !M[0], X = Y && !Y[0], te || X) return te ? X ? 0 : -ie : Q;
|
|
1142
1142
|
if (Q != ie) return Q;
|
|
1143
|
-
if (te = Q < 0, X = ce == de, !
|
|
1143
|
+
if (te = Q < 0, X = ce == de, !M || !Y) return X ? 0 : !M ^ te ? 1 : -1;
|
|
1144
1144
|
if (!X) return ce > de ^ te ? 1 : -1;
|
|
1145
|
-
for (ie = (ce =
|
|
1145
|
+
for (ie = (ce = M.length) < (de = Y.length) ? ce : de, Q = 0; Q < ie; Q++) if (M[Q] != Y[Q]) return M[Q] > Y[Q] ^ te ? 1 : -1;
|
|
1146
1146
|
return ce == de ? 0 : ce > de ^ te ? 1 : -1;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function _(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
|
}
|
|
@@ -1157,19 +1157,19 @@ function tn() {
|
|
|
1157
1157
|
return (H.length > 1 ? H.charAt(0) + "." + H.slice(1) : H) + (L < 0 ? "e" : "e+") + L;
|
|
1158
1158
|
}
|
|
1159
1159
|
function ae(H, L, te) {
|
|
1160
|
-
var X,
|
|
1160
|
+
var X, M;
|
|
1161
1161
|
if (L < 0) {
|
|
1162
|
-
for (
|
|
1163
|
-
H =
|
|
1162
|
+
for (M = te + "."; ++L; M += te) ;
|
|
1163
|
+
H = M + H;
|
|
1164
1164
|
} else if (X = H.length, ++L > X) {
|
|
1165
|
-
for (
|
|
1166
|
-
H +=
|
|
1165
|
+
for (M = te, L -= X; --L; M += te) ;
|
|
1166
|
+
H += M;
|
|
1167
1167
|
} else L < X && (H = H.slice(0, L) + "." + H.slice(L));
|
|
1168
1168
|
return H;
|
|
1169
1169
|
}
|
|
1170
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
1171
|
})(En);
|
|
1172
|
-
})(
|
|
1172
|
+
})(kt)), kt.exports;
|
|
1173
1173
|
}
|
|
1174
1174
|
var Li;
|
|
1175
1175
|
function qn() {
|
|
@@ -1193,24 +1193,24 @@ function qn() {
|
|
|
1193
1193
|
}) + '"' : '"' + p + '"';
|
|
1194
1194
|
}
|
|
1195
1195
|
function c(p, u) {
|
|
1196
|
-
var m, $, E, Z, W = o, K,
|
|
1197
|
-
switch (
|
|
1196
|
+
var m, $, E, Z, W = o, K, _ = u[p], N = _ != null && (_ instanceof e || e.isBigNumber(_));
|
|
1197
|
+
switch (_ && typeof _ == "object" && typeof _.toJSON == "function" && (_ = _.toJSON(p)), typeof r == "function" && (_ = r.call(u, p, _)), typeof _) {
|
|
1198
1198
|
case "string":
|
|
1199
|
-
return N ?
|
|
1199
|
+
return N ? _ : d(_);
|
|
1200
1200
|
case "number":
|
|
1201
|
-
return isFinite(
|
|
1201
|
+
return isFinite(_) ? String(_) : "null";
|
|
1202
1202
|
case "boolean":
|
|
1203
1203
|
case "null":
|
|
1204
1204
|
case "bigint":
|
|
1205
|
-
return String(
|
|
1205
|
+
return String(_);
|
|
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 (!
|
|
1209
|
+
if (!_)
|
|
1210
1210
|
return "null";
|
|
1211
|
-
if (o += a, K = [], Object.prototype.toString.apply(
|
|
1212
|
-
for (Z =
|
|
1213
|
-
K[m] = c(m,
|
|
1211
|
+
if (o += a, K = [], Object.prototype.toString.apply(_) === "[object Array]") {
|
|
1212
|
+
for (Z = _.length, m = 0; m < Z; m += 1)
|
|
1213
|
+
K[m] = c(m, _) || "null";
|
|
1214
1214
|
return E = K.length === 0 ? "[]" : o ? `[
|
|
1215
1215
|
` + o + K.join(`,
|
|
1216
1216
|
` + o) + `
|
|
@@ -1218,10 +1218,10 @@ function qn() {
|
|
|
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" && ($ = r[m], E = c($,
|
|
1221
|
+
typeof r[m] == "string" && ($ = r[m], E = c($, _), E && K.push(d($) + (o ? ": " : ":") + E));
|
|
1222
1222
|
else
|
|
1223
|
-
Object.keys(
|
|
1224
|
-
var ae = c(J,
|
|
1223
|
+
Object.keys(_).forEach(function(J) {
|
|
1224
|
+
var ae = c(J, _);
|
|
1225
1225
|
ae && K.push(d(J) + (o ? ": " : ":") + ae);
|
|
1226
1226
|
});
|
|
1227
1227
|
return E = K.length === 0 ? "{}" : o ? `{
|
|
@@ -1241,11 +1241,11 @@ function qn() {
|
|
|
1241
1241
|
return c("", { "": p });
|
|
1242
1242
|
});
|
|
1243
1243
|
})();
|
|
1244
|
-
})(
|
|
1244
|
+
})(Gt)), Gt.exports;
|
|
1245
1245
|
}
|
|
1246
|
-
var
|
|
1246
|
+
var Kt, Ni;
|
|
1247
1247
|
function _n() {
|
|
1248
|
-
if (Ni) return
|
|
1248
|
+
if (Ni) return Kt;
|
|
1249
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)/;
|
|
@@ -1355,7 +1355,7 @@ function _n() {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
1357
|
p("Bad array");
|
|
1358
|
-
},
|
|
1358
|
+
}, _ = function() {
|
|
1359
1359
|
var N, J = /* @__PURE__ */ Object.create(null);
|
|
1360
1360
|
if (r === "{") {
|
|
1361
1361
|
if (u("{"), E(), r === "}")
|
|
@@ -1371,7 +1371,7 @@ function _n() {
|
|
|
1371
1371
|
return W = function() {
|
|
1372
1372
|
switch (E(), r) {
|
|
1373
1373
|
case "{":
|
|
1374
|
-
return
|
|
1374
|
+
return _();
|
|
1375
1375
|
case "[":
|
|
1376
1376
|
return K();
|
|
1377
1377
|
case '"':
|
|
@@ -1384,14 +1384,14 @@ function _n() {
|
|
|
1384
1384
|
}, function(N, J) {
|
|
1385
1385
|
var ae;
|
|
1386
1386
|
return c = N + "", s = 0, r = " ", ae = W(), E(), r && p("Syntax error"), typeof J == "function" ? (function H(L, te) {
|
|
1387
|
-
var X,
|
|
1388
|
-
return
|
|
1389
|
-
X = H(
|
|
1390
|
-
}), J.call(L, te,
|
|
1387
|
+
var X, M = L[te];
|
|
1388
|
+
return M && typeof M == "object" && Object.keys(M).forEach(function(Y) {
|
|
1389
|
+
X = H(M, Y), X !== void 0 ? M[Y] = X : delete M[Y];
|
|
1390
|
+
}), J.call(L, te, M);
|
|
1391
1391
|
})({ "": ae }, "") : ae;
|
|
1392
1392
|
};
|
|
1393
1393
|
};
|
|
1394
|
-
return
|
|
1394
|
+
return Kt = i, Kt;
|
|
1395
1395
|
}
|
|
1396
1396
|
var Hi;
|
|
1397
1397
|
function Ln() {
|
|
@@ -1438,7 +1438,7 @@ 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
|
|
1441
|
+
var St, nn;
|
|
1442
1442
|
class Ve {
|
|
1443
1443
|
/**
|
|
1444
1444
|
* Uses the provided ID as the ID for the resource.
|
|
@@ -1456,7 +1456,7 @@ class Ve {
|
|
|
1456
1456
|
* @returns {string}
|
|
1457
1457
|
*/
|
|
1458
1458
|
static unique(e = 7) {
|
|
1459
|
-
const n = Hn(
|
|
1459
|
+
const n = Hn(St, St, "m", nn).call(St);
|
|
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 Ve {
|
|
|
1465
1465
|
return n + i;
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
|
|
1468
|
+
St = 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
|
|
1472
|
+
const qt = 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
|
|
1490
|
+
return qt.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) =>
|
|
1541
|
-
P.and = (t) => new P("and", void 0, t.map((e) =>
|
|
1542
|
-
P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) =>
|
|
1540
|
+
P.or = (t) => new P("or", void 0, t.map((e) => qt.parse(e))).toString();
|
|
1541
|
+
P.and = (t) => new P("and", void 0, t.map((e) => qt.parse(e))).toString();
|
|
1542
|
+
P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) => qt.parse(n))).toString();
|
|
1543
1543
|
P.distanceEqual = (t, e, n, i = !0) => new P("distanceEqual", t, [
|
|
1544
1544
|
[e, n, i]
|
|
1545
1545
|
]).toString();
|
|
@@ -1583,7 +1583,7 @@ function Yn(t, e) {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
return e;
|
|
1585
1585
|
}
|
|
1586
|
-
const
|
|
1586
|
+
const be = {
|
|
1587
1587
|
parse: (t) => Dn.parse(t, Yn),
|
|
1588
1588
|
stringify: Bn.stringify
|
|
1589
1589
|
};
|
|
@@ -1600,7 +1600,7 @@ class h extends Error {
|
|
|
1600
1600
|
super(e), this.name = "AppwriteException", this.message = e, this.code = n, this.type = i, this.response = o;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
class
|
|
1603
|
+
class xe {
|
|
1604
1604
|
constructor() {
|
|
1605
1605
|
this.config = {
|
|
1606
1606
|
endpoint: "https://cloud.appwrite.io/v1",
|
|
@@ -1652,7 +1652,7 @@ class Ce {
|
|
|
1652
1652
|
createHeartbeat: () => {
|
|
1653
1653
|
this.realtime.heartbeat && clearTimeout(this.realtime.heartbeat), this.realtime.heartbeat = window?.setInterval(() => {
|
|
1654
1654
|
var e;
|
|
1655
|
-
(e = this.realtime.socket) === null || e === void 0 || e.send(
|
|
1655
|
+
(e = this.realtime.socket) === null || e === void 0 || e.send(be.stringify({
|
|
1656
1656
|
type: "ping"
|
|
1657
1657
|
}));
|
|
1658
1658
|
}, 2e4);
|
|
@@ -1687,7 +1687,7 @@ class Ce {
|
|
|
1687
1687
|
if (!this.realtime.socket || this.realtime.socket.readyState !== WebSocket.OPEN || this.realtime.pendingSubscribes.size < 1)
|
|
1688
1688
|
return;
|
|
1689
1689
|
const e = Array.from(this.realtime.pendingSubscribes.values());
|
|
1690
|
-
this.realtime.pendingSubscribes.clear(), this.realtime.socket.send(
|
|
1690
|
+
this.realtime.pendingSubscribes.clear(), this.realtime.socket.send(be.stringify({
|
|
1691
1691
|
type: "subscribe",
|
|
1692
1692
|
data: e
|
|
1693
1693
|
}));
|
|
@@ -1695,16 +1695,16 @@ class Ce {
|
|
|
1695
1695
|
onMessage: (e) => {
|
|
1696
1696
|
var n, i;
|
|
1697
1697
|
try {
|
|
1698
|
-
const o =
|
|
1698
|
+
const o = be.parse(e.data);
|
|
1699
1699
|
switch (this.realtime.lastMessage = o, o.type) {
|
|
1700
1700
|
case "connected": {
|
|
1701
1701
|
const a = o.data;
|
|
1702
1702
|
let s = this.config.session;
|
|
1703
1703
|
if (!s) {
|
|
1704
|
-
const r =
|
|
1704
|
+
const r = be.parse((n = window.localStorage.getItem("cookieFallback")) !== null && n !== void 0 ? n : "{}");
|
|
1705
1705
|
s = r?.[`a_session_${this.config.project}`];
|
|
1706
1706
|
}
|
|
1707
|
-
s && !a?.user && ((i = this.realtime.socket) === null || i === void 0 || i.send(
|
|
1707
|
+
s && !a?.user && ((i = this.realtime.socket) === null || i === void 0 || i.send(be.stringify({
|
|
1708
1708
|
type: "authentication",
|
|
1709
1709
|
data: {
|
|
1710
1710
|
session: s
|
|
@@ -1991,12 +1991,12 @@ class Ce {
|
|
|
1991
1991
|
headers: i
|
|
1992
1992
|
};
|
|
1993
1993
|
if (i["X-Appwrite-Dev-Key"] === void 0 && (a.credentials = "include"), e === "GET")
|
|
1994
|
-
for (const [s, r] of Object.entries(
|
|
1994
|
+
for (const [s, r] of Object.entries(xe.flatten(o)))
|
|
1995
1995
|
n.searchParams.append(s, r);
|
|
1996
1996
|
else
|
|
1997
1997
|
switch (i["content-type"]) {
|
|
1998
1998
|
case "application/json":
|
|
1999
|
-
a.body =
|
|
1999
|
+
a.body = be.stringify(o);
|
|
2000
2000
|
break;
|
|
2001
2001
|
case "multipart/form-data": {
|
|
2002
2002
|
const s = new FormData();
|
|
@@ -2020,9 +2020,9 @@ class Ce {
|
|
|
2020
2020
|
const [c, p] = (d = Object.entries(s).find(([Y, Q]) => Q instanceof File)) !== null && d !== void 0 ? d : [];
|
|
2021
2021
|
if (!p || !c)
|
|
2022
2022
|
throw new Error("File not found in payload");
|
|
2023
|
-
if (p.size <=
|
|
2023
|
+
if (p.size <= xe.CHUNK_SIZE)
|
|
2024
2024
|
return yield this.call(i, o, a, s);
|
|
2025
|
-
const u = Math.ceil(p.size /
|
|
2025
|
+
const u = Math.ceil(p.size / xe.CHUNK_SIZE), m = Math.min(xe.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
2026
|
Z[c] = new File([E], p.name);
|
|
2027
2027
|
const W = yield this.call(i, o, $, Z), K = W?.$id;
|
|
2028
2028
|
if (r && typeof r == "function" && r({
|
|
@@ -2033,10 +2033,10 @@ class Ce {
|
|
|
2033
2033
|
chunksUploaded: 1
|
|
2034
2034
|
}), u === 1)
|
|
2035
2035
|
return W;
|
|
2036
|
-
const
|
|
2036
|
+
const _ = [];
|
|
2037
2037
|
for (let Y = 1; Y < u; Y++) {
|
|
2038
|
-
const Q = Y *
|
|
2039
|
-
|
|
2038
|
+
const Q = Y * xe.CHUNK_SIZE, ie = Math.min(Q + xe.CHUNK_SIZE, p.size);
|
|
2039
|
+
_.push({ start: Q, end: ie });
|
|
2040
2040
|
}
|
|
2041
2041
|
const N = 8;
|
|
2042
2042
|
let J = 1, ae = m, H = W, L = null, te = !1;
|
|
@@ -2044,7 +2044,7 @@ class Ce {
|
|
|
2044
2044
|
var Q;
|
|
2045
2045
|
const ie = Y?.chunksUploaded, ce = (Q = Y?.chunksTotal) !== null && Q !== void 0 ? Q : u;
|
|
2046
2046
|
return typeof ie == "number" && typeof ce == "number" && ie >= ce;
|
|
2047
|
-
},
|
|
2047
|
+
}, M = (Y) => Ie(this, void 0, void 0, function* () {
|
|
2048
2048
|
const Q = Object.assign({}, a);
|
|
2049
2049
|
K && (Q["x-appwrite-id"] = K), Q["content-range"] = `bytes ${Y.start}-${Y.end - 1}/${p.size}`;
|
|
2050
2050
|
const ie = p.slice(Y.start, Y.end), ce = Object.assign({}, s);
|
|
@@ -2062,13 +2062,13 @@ class Ce {
|
|
|
2062
2062
|
let ie = 0, ce = 0, de = 0;
|
|
2063
2063
|
const Ue = () => {
|
|
2064
2064
|
if (!te) {
|
|
2065
|
-
if (de ===
|
|
2065
|
+
if (de === _.length) {
|
|
2066
2066
|
Y();
|
|
2067
2067
|
return;
|
|
2068
2068
|
}
|
|
2069
|
-
for (; ce < N && ie <
|
|
2070
|
-
const
|
|
2071
|
-
ce++,
|
|
2069
|
+
for (; ce < N && ie < _.length; ) {
|
|
2070
|
+
const ke = _[ie++];
|
|
2071
|
+
ce++, M(ke).then(() => {
|
|
2072
2072
|
ce--, de++, Ue();
|
|
2073
2073
|
}).catch((_e) => {
|
|
2074
2074
|
te = !0, Q(_e);
|
|
@@ -2097,15 +2097,15 @@ class Ce {
|
|
|
2097
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
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") ? $ =
|
|
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") ? $ = be.parse(yield E.text()) : r === "arrayBuffer" ? $ = yield E.arrayBuffer() : $ = {
|
|
2101
2101
|
message: yield E.text()
|
|
2102
2102
|
}, 400 <= E.status) {
|
|
2103
2103
|
let K;
|
|
2104
|
-
throw !((c = E.headers.get("content-type")) === null || c === void 0) && c.includes("application/json") || r === "arrayBuffer" ? K =
|
|
2104
|
+
throw !((c = E.headers.get("content-type")) === null || c === void 0) && c.includes("application/json") || r === "arrayBuffer" ? K = be.stringify($) : K = $?.message, new h((p = $?.message) !== null && p !== void 0 ? p : K, E.status, $?.type, K);
|
|
2105
2105
|
}
|
|
2106
2106
|
const W = E.headers.get("X-Fallback-Cookies");
|
|
2107
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: () =>
|
|
2108
|
+
value: () => be.stringify($),
|
|
2109
2109
|
writable: !0,
|
|
2110
2110
|
enumerable: !1,
|
|
2111
2111
|
configurable: !0
|
|
@@ -2116,12 +2116,12 @@ class Ce {
|
|
|
2116
2116
|
let i = {};
|
|
2117
2117
|
for (const [o, a] of Object.entries(e)) {
|
|
2118
2118
|
const s = n ? n + "[" + o + "]" : o;
|
|
2119
|
-
Array.isArray(a) ? i = Object.assign(Object.assign({}, i),
|
|
2119
|
+
Array.isArray(a) ? i = Object.assign(Object.assign({}, i), xe.flatten(a, s)) : i[s] = a;
|
|
2120
2120
|
}
|
|
2121
2121
|
return i;
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
|
|
2124
|
+
xe.CHUNK_SIZE = 1024 * 1024 * 5;
|
|
2125
2125
|
class ye {
|
|
2126
2126
|
constructor(e) {
|
|
2127
2127
|
this.client = e;
|
|
@@ -2136,7 +2136,7 @@ class ye {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
2138
2138
|
ye.CHUNK_SIZE = 5 * 1024 * 1024;
|
|
2139
|
-
class
|
|
2139
|
+
class Jt {
|
|
2140
2140
|
constructor(e) {
|
|
2141
2141
|
this.client = e;
|
|
2142
2142
|
}
|
|
@@ -3402,16 +3402,16 @@ class on {
|
|
|
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, $ = i.timezone, E = i.latitude, Z = i.longitude, W = i.accuracy, K = i.touch,
|
|
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, _ = 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 $ < "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
|
|
3410
|
-
const
|
|
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 _ < "u" && (X.permissions = _), 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
|
+
const M = 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)))
|
|
3413
|
-
|
|
3414
|
-
return
|
|
3413
|
+
M.searchParams.append(Y, Q);
|
|
3414
|
+
return M.toString();
|
|
3415
3415
|
}
|
|
3416
3416
|
}
|
|
3417
3417
|
class Jn {
|
|
@@ -4632,9 +4632,9 @@ class to {
|
|
|
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
|
|
4635
|
+
const _ = "/storage/buckets/{bucketId}/files/{fileId}/preview".replace("{bucketId}", encodeURIComponent(String(o))).replace("{fileId}", encodeURIComponent(String(a))), N = {};
|
|
4636
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 +
|
|
4637
|
+
const J = new URL(this.client.config.endpoint + _);
|
|
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);
|
|
@@ -5582,10 +5582,10 @@ class no {
|
|
|
5582
5582
|
return this.client.call("delete", p, u, c);
|
|
5583
5583
|
}
|
|
5584
5584
|
}
|
|
5585
|
-
var
|
|
5585
|
+
var Pt;
|
|
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
|
+
})(Pt || (Pt = {}));
|
|
5589
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;
|
|
@@ -5619,7 +5619,7 @@ class oo {
|
|
|
5619
5619
|
}
|
|
5620
5620
|
startHeartbeat() {
|
|
5621
5621
|
this.stopHeartbeat(), this.heartbeatTimer = window?.setInterval(() => {
|
|
5622
|
-
this.socket && this.socket.readyState === WebSocket.OPEN && this.socket.send(
|
|
5622
|
+
this.socket && this.socket.readyState === WebSocket.OPEN && this.socket.send(be.stringify({ type: "ping" }));
|
|
5623
5623
|
}, this.HEARTBEAT_INTERVAL);
|
|
5624
5624
|
}
|
|
5625
5625
|
stopHeartbeat() {
|
|
@@ -5666,7 +5666,7 @@ class oo {
|
|
|
5666
5666
|
}), p.addEventListener("message", (u) => {
|
|
5667
5667
|
if (c === this.connectionId)
|
|
5668
5668
|
try {
|
|
5669
|
-
const m =
|
|
5669
|
+
const m = be.parse(u.data);
|
|
5670
5670
|
this.handleMessage(m);
|
|
5671
5671
|
} catch (m) {
|
|
5672
5672
|
console.error("Failed to parse message:", m);
|
|
@@ -5674,7 +5674,7 @@ class oo {
|
|
|
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(($) => $()), !this.reconnect || u.code ===
|
|
5677
|
+
if (this.appConnected = !1, this.stopHeartbeat(), this.onCloseCallbacks.forEach(($) => $()), !this.reconnect || u.code === Pt.POLICY_VIOLATION) {
|
|
5678
5678
|
this.reconnect = !0;
|
|
5679
5679
|
return;
|
|
5680
5680
|
}
|
|
@@ -5708,7 +5708,7 @@ class oo {
|
|
|
5708
5708
|
}
|
|
5709
5709
|
this.socket.readyState === WebSocket.OPEN || this.socket.readyState === WebSocket.CONNECTING ? (this.socket.addEventListener("close", () => {
|
|
5710
5710
|
e();
|
|
5711
|
-
}, { once: !0 }), this.socket.close(
|
|
5711
|
+
}, { once: !0 }), this.socket.close(Pt.NORMAL_CLOSURE)) : e();
|
|
5712
5712
|
});
|
|
5713
5713
|
});
|
|
5714
5714
|
}
|
|
@@ -5720,7 +5720,7 @@ class oo {
|
|
|
5720
5720
|
}
|
|
5721
5721
|
sendUnsubscribeMessage(e) {
|
|
5722
5722
|
const n = e.filter((i) => typeof i == "string" && i.length > 0);
|
|
5723
|
-
n.length !== 0 && (!this.socket || this.socket.readyState !== WebSocket.OPEN || this.socket.send(
|
|
5723
|
+
n.length !== 0 && (!this.socket || this.socket.readyState !== WebSocket.OPEN || this.socket.send(be.stringify({
|
|
5724
5724
|
type: "unsubscribe",
|
|
5725
5725
|
data: n.map((i) => ({ subscriptionId: i }))
|
|
5726
5726
|
})));
|
|
@@ -5756,7 +5756,7 @@ class oo {
|
|
|
5756
5756
|
if (!this.socket || this.socket.readyState !== WebSocket.OPEN || !this.appConnected || this.pendingSubscribes.size < 1)
|
|
5757
5757
|
return;
|
|
5758
5758
|
const e = Array.from(this.pendingSubscribes.values());
|
|
5759
|
-
this.pendingSubscribes.clear(), this.socket.send(
|
|
5759
|
+
this.pendingSubscribes.clear(), this.socket.send(be.stringify({
|
|
5760
5760
|
type: "subscribe",
|
|
5761
5761
|
data: e
|
|
5762
5762
|
}));
|
|
@@ -5805,8 +5805,8 @@ class oo {
|
|
|
5805
5805
|
const W = [];
|
|
5806
5806
|
for (const K of E.queries)
|
|
5807
5807
|
if (Array.isArray(K))
|
|
5808
|
-
for (const
|
|
5809
|
-
W.push(typeof
|
|
5808
|
+
for (const _ of K)
|
|
5809
|
+
W.push(typeof _ == "string" ? _ : _.toString());
|
|
5810
5810
|
else
|
|
5811
5811
|
W.push(typeof K == "string" ? K : K.toString());
|
|
5812
5812
|
Z.queries = W;
|
|
@@ -5847,7 +5847,7 @@ class oo {
|
|
|
5847
5847
|
});
|
|
5848
5848
|
}
|
|
5849
5849
|
flushPendingPresence() {
|
|
5850
|
-
this.pendingPresence && (!this.socket || this.socket.readyState !== WebSocket.OPEN || this.appConnected && this.socket.send(
|
|
5850
|
+
this.pendingPresence && (!this.socket || this.socket.readyState !== WebSocket.OPEN || this.appConnected && this.socket.send(be.stringify({
|
|
5851
5851
|
type: "presence",
|
|
5852
5852
|
data: this.pendingPresence
|
|
5853
5853
|
})));
|
|
@@ -5876,12 +5876,12 @@ class oo {
|
|
|
5876
5876
|
let a = this.client.config.session;
|
|
5877
5877
|
if (!a)
|
|
5878
5878
|
try {
|
|
5879
|
-
const s =
|
|
5879
|
+
const s = be.parse((n = window.localStorage.getItem("cookieFallback")) !== null && n !== void 0 ? n : "{}");
|
|
5880
5880
|
a = s?.[`a_session_${this.client.config.project}`];
|
|
5881
5881
|
} catch (s) {
|
|
5882
5882
|
console.error("Failed to parse cookie fallback:", s);
|
|
5883
5883
|
}
|
|
5884
|
-
a && !o.user && ((i = this.socket) === null || i === void 0 || i.send(
|
|
5884
|
+
a && !o.user && ((i = this.socket) === null || i === void 0 || i.send(be.stringify({
|
|
5885
5885
|
type: "authentication",
|
|
5886
5886
|
data: {
|
|
5887
5887
|
session: a
|
|
@@ -6109,10 +6109,10 @@ class Pe {
|
|
|
6109
6109
|
return "presences";
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
|
-
var
|
|
6112
|
+
var Zt;
|
|
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
|
-
})(
|
|
6115
|
+
})(Zt || (Zt = {}));
|
|
6116
6116
|
class T {
|
|
6117
6117
|
/**
|
|
6118
6118
|
* Constructor for Operator class.
|
|
@@ -6204,124 +6204,124 @@ 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 Zt;
|
|
6208
|
-
(function(t) {
|
|
6209
|
-
t.Totp = "totp";
|
|
6210
|
-
})(Zt || (Zt = {}));
|
|
6211
6207
|
var Qt;
|
|
6212
6208
|
(function(t) {
|
|
6213
|
-
t.
|
|
6209
|
+
t.Totp = "totp";
|
|
6214
6210
|
})(Qt || (Qt = {}));
|
|
6215
6211
|
var Tt;
|
|
6216
6212
|
(function(t) {
|
|
6217
|
-
t.
|
|
6213
|
+
t.Email = "email", t.Phone = "phone", t.Totp = "totp", t.Recoverycode = "recoverycode", t.Custom = "custom";
|
|
6218
6214
|
})(Tt || (Tt = {}));
|
|
6219
6215
|
var zt;
|
|
6220
6216
|
(function(t) {
|
|
6221
|
-
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";
|
|
6222
6218
|
})(zt || (zt = {}));
|
|
6223
6219
|
var Ot;
|
|
6224
6220
|
(function(t) {
|
|
6225
|
-
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";
|
|
6226
6222
|
})(Ot || (Ot = {}));
|
|
6227
6223
|
var Ft;
|
|
6228
6224
|
(function(t) {
|
|
6229
|
-
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";
|
|
6230
6226
|
})(Ft || (Ft = {}));
|
|
6231
6227
|
var ei;
|
|
6232
6228
|
(function(t) {
|
|
6233
|
-
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";
|
|
6234
6230
|
})(ei || (ei = {}));
|
|
6235
6231
|
var ti;
|
|
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
|
})(ti || (ti = {}));
|
|
6239
6235
|
var ii;
|
|
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
|
})(ii || (ii = {}));
|
|
6243
6239
|
var ni;
|
|
6244
6240
|
(function(t) {
|
|
6245
|
-
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";
|
|
6246
6242
|
})(ni || (ni = {}));
|
|
6247
6243
|
var oi;
|
|
6248
6244
|
(function(t) {
|
|
6249
|
-
t.
|
|
6245
|
+
t.Jpg = "jpg", t.Jpeg = "jpeg", t.Png = "png", t.Webp = "webp", t.Heic = "heic", t.Avif = "avif", t.Gif = "gif";
|
|
6250
6246
|
})(oi || (oi = {}));
|
|
6251
6247
|
var ai;
|
|
6252
6248
|
(function(t) {
|
|
6253
|
-
t.
|
|
6249
|
+
t.GET = "GET", t.POST = "POST", t.PUT = "PUT", t.PATCH = "PATCH", t.DELETE = "DELETE", t.OPTIONS = "OPTIONS", t.HEAD = "HEAD";
|
|
6254
6250
|
})(ai || (ai = {}));
|
|
6255
6251
|
var si;
|
|
6256
6252
|
(function(t) {
|
|
6257
|
-
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";
|
|
6258
6254
|
})(si || (si = {}));
|
|
6259
6255
|
var ri;
|
|
6260
6256
|
(function(t) {
|
|
6261
|
-
t.
|
|
6257
|
+
t.Functions = "functions", t.Sites = "sites";
|
|
6262
6258
|
})(ri || (ri = {}));
|
|
6263
6259
|
var ci;
|
|
6264
6260
|
(function(t) {
|
|
6265
|
-
t.
|
|
6261
|
+
t.Http = "http", t.Schedule = "schedule", t.Event = "event";
|
|
6266
6262
|
})(ci || (ci = {}));
|
|
6263
|
+
var di;
|
|
6264
|
+
(function(t) {
|
|
6265
|
+
t.Waiting = "waiting", t.Processing = "processing", t.Completed = "completed", t.Failed = "failed", t.Scheduled = "scheduled";
|
|
6266
|
+
})(di || (di = {}));
|
|
6267
6267
|
const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6268
6268
|
__proto__: null,
|
|
6269
|
-
Account:
|
|
6269
|
+
Account: Jt,
|
|
6270
6270
|
AppwriteException: h,
|
|
6271
6271
|
get AuthenticationFactor() {
|
|
6272
|
-
return
|
|
6272
|
+
return Tt;
|
|
6273
6273
|
},
|
|
6274
6274
|
get AuthenticatorType() {
|
|
6275
|
-
return
|
|
6275
|
+
return Qt;
|
|
6276
6276
|
},
|
|
6277
6277
|
Avatars: on,
|
|
6278
6278
|
get Browser() {
|
|
6279
|
-
return
|
|
6279
|
+
return Ot;
|
|
6280
6280
|
},
|
|
6281
6281
|
get BrowserPermission() {
|
|
6282
|
-
return
|
|
6282
|
+
return ni;
|
|
6283
6283
|
},
|
|
6284
6284
|
get BrowserTheme() {
|
|
6285
|
-
return
|
|
6285
|
+
return ti;
|
|
6286
6286
|
},
|
|
6287
6287
|
Channel: Pe,
|
|
6288
|
-
Client:
|
|
6288
|
+
Client: xe,
|
|
6289
6289
|
get Condition() {
|
|
6290
|
-
return
|
|
6290
|
+
return Zt;
|
|
6291
6291
|
},
|
|
6292
6292
|
get CreditCard() {
|
|
6293
|
-
return
|
|
6293
|
+
return Ft;
|
|
6294
6294
|
},
|
|
6295
6295
|
Databases: Jn,
|
|
6296
6296
|
DocumentsDB: Zn,
|
|
6297
6297
|
get ExecutionMethod() {
|
|
6298
|
-
return
|
|
6298
|
+
return ai;
|
|
6299
6299
|
},
|
|
6300
6300
|
get ExecutionResourceType() {
|
|
6301
|
-
return
|
|
6301
|
+
return ri;
|
|
6302
6302
|
},
|
|
6303
6303
|
get ExecutionStatus() {
|
|
6304
|
-
return
|
|
6304
|
+
return di;
|
|
6305
6305
|
},
|
|
6306
6306
|
get ExecutionTrigger() {
|
|
6307
|
-
return
|
|
6307
|
+
return ci;
|
|
6308
6308
|
},
|
|
6309
6309
|
get Flag() {
|
|
6310
|
-
return
|
|
6310
|
+
return ei;
|
|
6311
6311
|
},
|
|
6312
6312
|
Functions: Qn,
|
|
6313
6313
|
Graphql: Tn,
|
|
6314
6314
|
ID: Ve,
|
|
6315
6315
|
get ImageFormat() {
|
|
6316
|
-
return
|
|
6316
|
+
return oi;
|
|
6317
6317
|
},
|
|
6318
6318
|
get ImageGravity() {
|
|
6319
|
-
return
|
|
6319
|
+
return si;
|
|
6320
6320
|
},
|
|
6321
6321
|
Locale: zn,
|
|
6322
6322
|
Messaging: On,
|
|
6323
6323
|
get OAuthProvider() {
|
|
6324
|
-
return
|
|
6324
|
+
return zt;
|
|
6325
6325
|
},
|
|
6326
6326
|
Operator: T,
|
|
6327
6327
|
Organization: Fn,
|
|
@@ -6334,7 +6334,7 @@ const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6334
6334
|
TablesDB: io,
|
|
6335
6335
|
Teams: an,
|
|
6336
6336
|
get Timezone() {
|
|
6337
|
-
return
|
|
6337
|
+
return ii;
|
|
6338
6338
|
},
|
|
6339
6339
|
VectorsDB: no
|
|
6340
6340
|
}, Symbol.toStringTag, { value: "Module" })), so = {
|
|
@@ -6437,10 +6437,13 @@ const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6437
6437
|
signOutAllSessions: "Sign out everywhere",
|
|
6438
6438
|
signOutAllSessionsDescription: "End every session, including this one.",
|
|
6439
6439
|
noConnections: "No connected accounts.",
|
|
6440
|
+
noConnectionsDescription: "Link an OAuth provider to sign in faster next time.",
|
|
6440
6441
|
disconnect: "Disconnect",
|
|
6441
6442
|
connectProvider: "Connect {provider}",
|
|
6442
6443
|
noActivity: "No recent activity.",
|
|
6444
|
+
noActivityDescription: "Security events for this account will appear here.",
|
|
6443
6445
|
noSessions: "No active sessions.",
|
|
6446
|
+
noSessionsDescription: "Active sessions will show up here once you sign in on a device.",
|
|
6444
6447
|
deleteAccount: "Delete account",
|
|
6445
6448
|
deleteAccountDescription: "Deleting disables your account and signs you out everywhere. An administrator can restore it.",
|
|
6446
6449
|
deleteAccountConfirm: "Delete my account",
|
|
@@ -6563,10 +6566,10 @@ const co = {
|
|
|
6563
6566
|
zoho: "Zoho",
|
|
6564
6567
|
zoom: "Zoom"
|
|
6565
6568
|
};
|
|
6566
|
-
function
|
|
6569
|
+
function xt(t) {
|
|
6567
6570
|
return co[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
|
|
6568
6571
|
}
|
|
6569
|
-
const
|
|
6572
|
+
const vt = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }), Ce = () => (/* @__PURE__ */ new Date()).toISOString(), He = (t) => new Date(Date.now() - t * 6e4).toISOString(), It = [
|
|
6570
6573
|
"amber",
|
|
6571
6574
|
"brave",
|
|
6572
6575
|
"calm",
|
|
@@ -6579,7 +6582,7 @@ const It = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }),
|
|
|
6579
6582
|
"juniper",
|
|
6580
6583
|
"kite",
|
|
6581
6584
|
"lumen"
|
|
6582
|
-
], Di = () => `${
|
|
6585
|
+
], Di = () => `${It[Math.floor(Math.random() * It.length)]}-${It[Math.floor(Math.random() * It.length)]}`, Oe = () => Math.random().toString(36).slice(2, 12), Bi = () => Array.from({ length: 2 }, () => Math.random().toString(36).slice(2, 7)).join("-"), lo = {
|
|
6583
6586
|
name: "Ada Lovelace",
|
|
6584
6587
|
email: "ada@example.com",
|
|
6585
6588
|
phone: "+15550100"
|
|
@@ -6594,7 +6597,7 @@ class uo {
|
|
|
6594
6597
|
return this.user = {
|
|
6595
6598
|
$id: "preview-user",
|
|
6596
6599
|
$createdAt: He(1440 * 30),
|
|
6597
|
-
$updatedAt:
|
|
6600
|
+
$updatedAt: Ce(),
|
|
6598
6601
|
name: n ? "" : e.name ?? this.seed.name,
|
|
6599
6602
|
registration: He(1440 * 30),
|
|
6600
6603
|
status: !0,
|
|
@@ -6607,14 +6610,14 @@ class uo {
|
|
|
6607
6610
|
mfa: this.mfaEnabled,
|
|
6608
6611
|
prefs: {},
|
|
6609
6612
|
targets: [],
|
|
6610
|
-
accessedAt:
|
|
6613
|
+
accessedAt: Ce()
|
|
6611
6614
|
}, this.seedActivity(n ? "anonymous" : "email"), this.user;
|
|
6612
6615
|
}
|
|
6613
6616
|
seedActivity(e) {
|
|
6614
6617
|
if (this.sessions.length > 0) return;
|
|
6615
6618
|
const n = {
|
|
6616
|
-
$createdAt:
|
|
6617
|
-
$updatedAt:
|
|
6619
|
+
$createdAt: Ce(),
|
|
6620
|
+
$updatedAt: Ce(),
|
|
6618
6621
|
userId: "preview-user",
|
|
6619
6622
|
expire: new Date(Date.now() + 365 * 864e5).toISOString(),
|
|
6620
6623
|
providerUid: "",
|
|
@@ -6695,7 +6698,7 @@ class uo {
|
|
|
6695
6698
|
], this.logs = [
|
|
6696
6699
|
{
|
|
6697
6700
|
event: "session.create",
|
|
6698
|
-
time:
|
|
6701
|
+
time: Ce(),
|
|
6699
6702
|
clientName: "Chrome",
|
|
6700
6703
|
osName: "macOS",
|
|
6701
6704
|
countryName: "Germany",
|
|
@@ -6721,9 +6724,9 @@ class uo {
|
|
|
6721
6724
|
}
|
|
6722
6725
|
requireUser() {
|
|
6723
6726
|
if (!this.user)
|
|
6724
|
-
throw
|
|
6727
|
+
throw vt("general_unauthorized_scope", "User (role: guests) missing scope (account)");
|
|
6725
6728
|
if (this.mfaPending)
|
|
6726
|
-
throw
|
|
6729
|
+
throw vt(
|
|
6727
6730
|
"user_more_factors_required",
|
|
6728
6731
|
"More factors are required to complete the sign in process."
|
|
6729
6732
|
);
|
|
@@ -6731,7 +6734,7 @@ class uo {
|
|
|
6731
6734
|
}
|
|
6732
6735
|
requireRecentChallenge() {
|
|
6733
6736
|
if (Date.now() - this.lastChallenge > 30 * 6e4)
|
|
6734
|
-
throw
|
|
6737
|
+
throw vt(
|
|
6735
6738
|
"user_challenge_required",
|
|
6736
6739
|
"A recently successful challenge is required to complete this action."
|
|
6737
6740
|
);
|
|
@@ -6768,7 +6771,7 @@ class uo {
|
|
|
6768
6771
|
async createMagicURLToken(e, n) {
|
|
6769
6772
|
return this.tokens.set(e, { email: n }), this.delay({
|
|
6770
6773
|
$id: Oe(),
|
|
6771
|
-
$createdAt:
|
|
6774
|
+
$createdAt: Ce(),
|
|
6772
6775
|
userId: e,
|
|
6773
6776
|
secret: "",
|
|
6774
6777
|
expire: "",
|
|
@@ -6778,7 +6781,7 @@ class uo {
|
|
|
6778
6781
|
async createEmailToken(e, n) {
|
|
6779
6782
|
return this.tokens.set(e, { email: n }), this.delay({
|
|
6780
6783
|
$id: Oe(),
|
|
6781
|
-
$createdAt:
|
|
6784
|
+
$createdAt: Ce(),
|
|
6782
6785
|
userId: e,
|
|
6783
6786
|
secret: "",
|
|
6784
6787
|
expire: "",
|
|
@@ -6786,7 +6789,7 @@ class uo {
|
|
|
6786
6789
|
});
|
|
6787
6790
|
}
|
|
6788
6791
|
async createPhoneToken(e, n) {
|
|
6789
|
-
return this.tokens.set(e, { phone: n }), this.delay({ $id: Oe(), $createdAt:
|
|
6792
|
+
return this.tokens.set(e, { phone: n }), this.delay({ $id: Oe(), $createdAt: Ce(), userId: e, secret: "", expire: "", phrase: "" });
|
|
6790
6793
|
}
|
|
6791
6794
|
async createSession(e) {
|
|
6792
6795
|
return this.delay(() => {
|
|
@@ -6827,7 +6830,7 @@ class uo {
|
|
|
6827
6830
|
async updateEmail(e) {
|
|
6828
6831
|
return this.delay(() => {
|
|
6829
6832
|
const n = this.requireUser();
|
|
6830
|
-
return n.email = e, n.emailVerification = !1, n.passwordUpdate =
|
|
6833
|
+
return n.email = e, n.emailVerification = !1, n.passwordUpdate = Ce(), n;
|
|
6831
6834
|
});
|
|
6832
6835
|
}
|
|
6833
6836
|
async updatePhone(e) {
|
|
@@ -6839,7 +6842,7 @@ class uo {
|
|
|
6839
6842
|
async updatePassword() {
|
|
6840
6843
|
return this.delay(() => {
|
|
6841
6844
|
const e = this.requireUser();
|
|
6842
|
-
return e.passwordUpdate =
|
|
6845
|
+
return e.passwordUpdate = Ce(), e;
|
|
6843
6846
|
});
|
|
6844
6847
|
}
|
|
6845
6848
|
async updateStatus() {
|
|
@@ -6878,7 +6881,7 @@ class uo {
|
|
|
6878
6881
|
});
|
|
6879
6882
|
}
|
|
6880
6883
|
async createMFAChallenge() {
|
|
6881
|
-
return this.delay({ $id: Oe(), $createdAt:
|
|
6884
|
+
return this.delay({ $id: Oe(), $createdAt: Ce(), userId: "preview-user", expire: "" });
|
|
6882
6885
|
}
|
|
6883
6886
|
async updateMFAChallenge() {
|
|
6884
6887
|
return this.delay(() => (this.mfaPending = !1, this.lastChallenge = Date.now(), this.sessions[0]));
|
|
@@ -6907,7 +6910,7 @@ class uo {
|
|
|
6907
6910
|
async createMFARecoveryCodes() {
|
|
6908
6911
|
return this.delay(() => {
|
|
6909
6912
|
if (this.recoveryCodes.length > 0)
|
|
6910
|
-
throw
|
|
6913
|
+
throw vt("user_recovery_codes_already_exists", "Recovery codes already generated.", 409);
|
|
6911
6914
|
return this.recoveryCodes = Array.from({ length: 6 }, Bi), { recoveryCodes: this.recoveryCodes };
|
|
6912
6915
|
});
|
|
6913
6916
|
}
|
|
@@ -6982,10 +6985,10 @@ function tt(t) {
|
|
|
6982
6985
|
}
|
|
6983
6986
|
return { message: String(t), type: "", code: 0 };
|
|
6984
6987
|
}
|
|
6985
|
-
function
|
|
6988
|
+
function gt(t, e) {
|
|
6986
6989
|
return tt(t).type === e;
|
|
6987
6990
|
}
|
|
6988
|
-
function
|
|
6991
|
+
function Ct(t, e, n = "link") {
|
|
6989
6992
|
const i = tt(t);
|
|
6990
6993
|
switch (i.type) {
|
|
6991
6994
|
case oe.invalidCredentials:
|
|
@@ -7032,11 +7035,11 @@ function ho(t) {
|
|
|
7032
7035
|
const e = tt(t);
|
|
7033
7036
|
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));
|
|
7034
7037
|
}
|
|
7035
|
-
const
|
|
7038
|
+
const li = (t) => `authui:active-team:${t}`;
|
|
7036
7039
|
function Xi(t) {
|
|
7037
7040
|
if (typeof localStorage > "u" || !t) return null;
|
|
7038
7041
|
try {
|
|
7039
|
-
return localStorage.getItem(
|
|
7042
|
+
return localStorage.getItem(li(t));
|
|
7040
7043
|
} catch {
|
|
7041
7044
|
return null;
|
|
7042
7045
|
}
|
|
@@ -7044,7 +7047,7 @@ function Xi(t) {
|
|
|
7044
7047
|
function fo(t, e) {
|
|
7045
7048
|
if (!(typeof localStorage > "u" || !t))
|
|
7046
7049
|
try {
|
|
7047
|
-
e ? localStorage.setItem(
|
|
7050
|
+
e ? localStorage.setItem(li(t), e) : localStorage.removeItem(li(t));
|
|
7048
7051
|
} catch {
|
|
7049
7052
|
}
|
|
7050
7053
|
}
|
|
@@ -7108,7 +7111,7 @@ function je(t, e, n) {
|
|
|
7108
7111
|
new Error(`Appwrite SDK is missing ${e[0]}(). Update the appwrite package.`)
|
|
7109
7112
|
);
|
|
7110
7113
|
}
|
|
7111
|
-
const
|
|
7114
|
+
const ui = "authui", Wi = ["userId", "secret", "expire", "project", "error", ui], Gi = () => ({
|
|
7112
7115
|
status: "loading",
|
|
7113
7116
|
user: null,
|
|
7114
7117
|
mfaFactors: null,
|
|
@@ -7126,7 +7129,7 @@ class yo {
|
|
|
7126
7129
|
const n = e.endpoint.trim().replace(/\/+$/, "");
|
|
7127
7130
|
n && !n.endsWith("/v1") && console.warn(
|
|
7128
7131
|
`[authui] endpoint should end with /v1 (got "${e.endpoint}"). Without it Appwrite returns HTML 404 pages.`
|
|
7129
|
-
), this.config = e, this.client = new
|
|
7132
|
+
), this.config = e, this.client = new xe().setEndpoint(e.endpoint).setProject(e.project), this.preview = e.preview ? new uo() : null, this.account = this.preview ? this.preview : new Jt(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());
|
|
7130
7133
|
}
|
|
7131
7134
|
/**
|
|
7132
7135
|
* Called by <authui-config> when it is on the page but missing endpoint or project.
|
|
@@ -7239,7 +7242,7 @@ class yo {
|
|
|
7239
7242
|
const n = await this.account.get();
|
|
7240
7243
|
this.setState({ status: "signed-in", user: n, mfaFactors: null, configError: null }), e || this.emit("signed-in", n);
|
|
7241
7244
|
} catch (n) {
|
|
7242
|
-
if (
|
|
7245
|
+
if (gt(n, oe.moreFactorsRequired)) {
|
|
7243
7246
|
let i = null;
|
|
7244
7247
|
try {
|
|
7245
7248
|
i = await je(
|
|
@@ -7250,7 +7253,7 @@ class yo {
|
|
|
7250
7253
|
} catch {
|
|
7251
7254
|
}
|
|
7252
7255
|
this.setState({ status: "mfa-required", user: null, mfaFactors: i });
|
|
7253
|
-
} else if (
|
|
7256
|
+
} else if (gt(n, oe.userBlocked))
|
|
7254
7257
|
await this.purgeLocalSession(), this.setState({
|
|
7255
7258
|
status: "signed-out",
|
|
7256
7259
|
user: null,
|
|
@@ -7262,7 +7265,7 @@ class yo {
|
|
|
7262
7265
|
}
|
|
7263
7266
|
}), e && this.emit("signed-out", void 0);
|
|
7264
7267
|
else if (!e && ho(n)) {
|
|
7265
|
-
const o =
|
|
7268
|
+
const o = Ct(n, this.getStrings()) || this.getStrings().errorConfig;
|
|
7266
7269
|
console.warn(
|
|
7267
7270
|
`[authui] ${o} (endpoint=${this.config?.endpoint ?? "?"}, project=${this.config?.project ?? "?"})`
|
|
7268
7271
|
);
|
|
@@ -7311,7 +7314,7 @@ class yo {
|
|
|
7311
7314
|
localStorage.removeItem("cookieFallback");
|
|
7312
7315
|
} catch {
|
|
7313
7316
|
}
|
|
7314
|
-
this.config && !this.preview && (this.client = new
|
|
7317
|
+
this.config && !this.preview && (this.client = new xe().setEndpoint(this.config.endpoint).setProject(this.config.project), this.account = new Jt(this.client));
|
|
7315
7318
|
}
|
|
7316
7319
|
// ─────────────────────────────── sign in ───────────────────────────────
|
|
7317
7320
|
async signInWithEmailPassword(e, n) {
|
|
@@ -7664,7 +7667,7 @@ class yo {
|
|
|
7664
7667
|
redirectUrl(e) {
|
|
7665
7668
|
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);
|
|
7666
7669
|
for (const o of Wi) i.searchParams.delete(o);
|
|
7667
|
-
return i.searchParams.set(
|
|
7670
|
+
return i.searchParams.set(ui, e), i.toString();
|
|
7668
7671
|
}
|
|
7669
7672
|
setPending(e) {
|
|
7670
7673
|
this.setState({ pending: e });
|
|
@@ -7675,7 +7678,7 @@ class yo {
|
|
|
7675
7678
|
*/
|
|
7676
7679
|
async handleRedirect() {
|
|
7677
7680
|
if (typeof window > "u") return !1;
|
|
7678
|
-
const e = new URLSearchParams(window.location.search), n = e.get(
|
|
7681
|
+
const e = new URLSearchParams(window.location.search), n = e.get(ui);
|
|
7679
7682
|
if (!n) return !1;
|
|
7680
7683
|
const i = e.get("userId") ?? "", o = e.get("secret") ?? "";
|
|
7681
7684
|
this.cleanUrl();
|
|
@@ -7721,7 +7724,7 @@ class yo {
|
|
|
7721
7724
|
break;
|
|
7722
7725
|
}
|
|
7723
7726
|
} catch (s) {
|
|
7724
|
-
const r = tt(s), d =
|
|
7727
|
+
const r = tt(s), d = Ct(s, this.getStrings(), "link");
|
|
7725
7728
|
this.emit("error", r), this.setState({ pending: { type: "notice", message: d, tone: "error" } });
|
|
7726
7729
|
}
|
|
7727
7730
|
return !0;
|
|
@@ -7772,7 +7775,7 @@ const Ki = new mo(), Yi = {
|
|
|
7772
7775
|
lg: "0.875rem",
|
|
7773
7776
|
xl: "1.125rem",
|
|
7774
7777
|
full: "1.5rem"
|
|
7775
|
-
},
|
|
7778
|
+
}, bo = We`
|
|
7776
7779
|
:host {
|
|
7777
7780
|
/* Light theme (matches :root in the console) */
|
|
7778
7781
|
--authui-background: oklch(1 0 0);
|
|
@@ -7801,7 +7804,7 @@ const Ki = new mo(), Yi = {
|
|
|
7801
7804
|
--authui-success-bg: rgba(16, 185, 129, 0.1);
|
|
7802
7805
|
--authui-warning-foreground: #b45309;
|
|
7803
7806
|
--authui-warning-bg: rgba(245, 158, 11, 0.1);
|
|
7804
|
-
--authui-error-foreground: #
|
|
7807
|
+
--authui-error-foreground: #b91c1c;
|
|
7805
7808
|
--authui-error-bg: rgba(239, 68, 68, 0.1);
|
|
7806
7809
|
--authui-info-foreground: #475569;
|
|
7807
7810
|
--authui-info-bg: rgba(100, 116, 139, 0.1);
|
|
@@ -7850,7 +7853,7 @@ const Ki = new mo(), Yi = {
|
|
|
7850
7853
|
--authui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
|
|
7851
7854
|
color-scheme: dark;
|
|
7852
7855
|
}
|
|
7853
|
-
`,
|
|
7856
|
+
`, wo = We`
|
|
7854
7857
|
*,
|
|
7855
7858
|
*::before,
|
|
7856
7859
|
*::after {
|
|
@@ -8044,11 +8047,13 @@ const Ki = new mo(), Yi = {
|
|
|
8044
8047
|
flex-direction: column;
|
|
8045
8048
|
gap: 6px;
|
|
8046
8049
|
}
|
|
8047
|
-
.
|
|
8050
|
+
.field-header {
|
|
8048
8051
|
display: flex;
|
|
8049
8052
|
align-items: center;
|
|
8050
8053
|
justify-content: space-between;
|
|
8051
8054
|
gap: 8px;
|
|
8055
|
+
}
|
|
8056
|
+
.label {
|
|
8052
8057
|
font-size: 14px;
|
|
8053
8058
|
line-height: 1;
|
|
8054
8059
|
font-weight: 500;
|
|
@@ -8212,7 +8217,7 @@ const Ki = new mo(), Yi = {
|
|
|
8212
8217
|
background: var(--authui-error-bg);
|
|
8213
8218
|
}
|
|
8214
8219
|
.alert-error .alert-body {
|
|
8215
|
-
color:
|
|
8220
|
+
color: var(--authui-error-foreground);
|
|
8216
8221
|
}
|
|
8217
8222
|
.alert-success {
|
|
8218
8223
|
color: var(--authui-success-foreground);
|
|
@@ -8563,12 +8568,154 @@ const Ki = new mo(), Yi = {
|
|
|
8563
8568
|
width: 18px;
|
|
8564
8569
|
height: 18px;
|
|
8565
8570
|
}
|
|
8571
|
+
/* OAuth accordion: last-used (or focused) expands; others stay icon-compact. */
|
|
8572
|
+
.providers.accordion {
|
|
8573
|
+
display: flex;
|
|
8574
|
+
width: 100%;
|
|
8575
|
+
gap: 8px;
|
|
8576
|
+
}
|
|
8577
|
+
.providers.accordion > .provider-slot {
|
|
8578
|
+
position: relative;
|
|
8579
|
+
flex: 0 1 2.25rem;
|
|
8580
|
+
min-width: 2.25rem;
|
|
8581
|
+
overflow: visible;
|
|
8582
|
+
transition: flex-grow 480ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
8583
|
+
}
|
|
8584
|
+
.providers.accordion > .provider-slot.is-expanded {
|
|
8585
|
+
flex-grow: 1;
|
|
8586
|
+
}
|
|
8587
|
+
.providers.accordion .btn {
|
|
8588
|
+
position: relative;
|
|
8589
|
+
width: 100%;
|
|
8590
|
+
min-width: 0;
|
|
8591
|
+
justify-content: center;
|
|
8592
|
+
gap: 0;
|
|
8593
|
+
padding-inline: 0;
|
|
8594
|
+
overflow: hidden;
|
|
8595
|
+
}
|
|
8596
|
+
.providers.accordion .btn svg {
|
|
8597
|
+
width: 16px;
|
|
8598
|
+
height: 16px;
|
|
8599
|
+
flex-shrink: 0;
|
|
8600
|
+
}
|
|
8601
|
+
.provider-label {
|
|
8602
|
+
display: grid;
|
|
8603
|
+
min-width: 0;
|
|
8604
|
+
grid-template-columns: 0fr;
|
|
8605
|
+
transition: grid-template-columns 480ms cubic-bezier(0.22, 1, 0.36, 1) 160ms;
|
|
8606
|
+
}
|
|
8607
|
+
.provider-label > span {
|
|
8608
|
+
min-width: 0;
|
|
8609
|
+
overflow: hidden;
|
|
8610
|
+
}
|
|
8611
|
+
.provider-label-text {
|
|
8612
|
+
display: block;
|
|
8613
|
+
white-space: nowrap;
|
|
8614
|
+
padding-inline-start: 6px;
|
|
8615
|
+
opacity: 0;
|
|
8616
|
+
transition: opacity 160ms ease;
|
|
8617
|
+
}
|
|
8618
|
+
.providers.accordion > .provider-slot.is-expanded .provider-label {
|
|
8619
|
+
grid-template-columns: 1fr;
|
|
8620
|
+
transition: grid-template-columns 480ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
8621
|
+
}
|
|
8622
|
+
.providers.accordion > .provider-slot.is-expanded .provider-label-text {
|
|
8623
|
+
opacity: 1;
|
|
8624
|
+
transition: opacity 240ms ease 320ms;
|
|
8625
|
+
}
|
|
8626
|
+
.oauth-last-used {
|
|
8627
|
+
position: absolute;
|
|
8628
|
+
inset: 0;
|
|
8629
|
+
z-index: 10;
|
|
8630
|
+
pointer-events: none;
|
|
8631
|
+
}
|
|
8632
|
+
.oauth-last-used-dot,
|
|
8633
|
+
.oauth-last-used-pill {
|
|
8634
|
+
position: absolute;
|
|
8635
|
+
transition: opacity 180ms ease;
|
|
8636
|
+
}
|
|
8637
|
+
.oauth-last-used-dot {
|
|
8638
|
+
top: -3px;
|
|
8639
|
+
inset-inline-end: -3px;
|
|
8640
|
+
width: 8px;
|
|
8641
|
+
height: 8px;
|
|
8642
|
+
border-radius: 999px;
|
|
8643
|
+
background: var(--authui-brand);
|
|
8644
|
+
box-shadow: 0 0 0 2px var(--authui-card);
|
|
8645
|
+
opacity: 1;
|
|
8646
|
+
}
|
|
8647
|
+
.oauth-last-used-pill {
|
|
8648
|
+
top: -8px;
|
|
8649
|
+
inset-inline-start: 6px;
|
|
8650
|
+
padding: 2px 6px;
|
|
8651
|
+
border-radius: 4px;
|
|
8652
|
+
border: 1px solid var(--authui-border);
|
|
8653
|
+
background: var(--authui-foreground);
|
|
8654
|
+
color: var(--authui-background);
|
|
8655
|
+
font-size: 10px;
|
|
8656
|
+
font-weight: 500;
|
|
8657
|
+
line-height: 1.2;
|
|
8658
|
+
white-space: nowrap;
|
|
8659
|
+
opacity: 0;
|
|
8660
|
+
}
|
|
8661
|
+
.providers.accordion > .provider-slot.is-expanded .oauth-last-used-dot {
|
|
8662
|
+
opacity: 0;
|
|
8663
|
+
}
|
|
8664
|
+
.providers.accordion > .provider-slot.is-expanded .oauth-last-used-pill {
|
|
8665
|
+
opacity: 1;
|
|
8666
|
+
}
|
|
8667
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8668
|
+
.providers.accordion > .provider-slot,
|
|
8669
|
+
.provider-label,
|
|
8670
|
+
.provider-label-text,
|
|
8671
|
+
.oauth-last-used-dot,
|
|
8672
|
+
.oauth-last-used-pill {
|
|
8673
|
+
transition: none;
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8566
8676
|
.empty {
|
|
8567
8677
|
padding: 24px 0;
|
|
8568
8678
|
text-align: center;
|
|
8569
8679
|
font-size: 13px;
|
|
8570
8680
|
color: var(--authui-muted-foreground);
|
|
8571
8681
|
}
|
|
8682
|
+
.empty-well {
|
|
8683
|
+
display: flex;
|
|
8684
|
+
flex-direction: column;
|
|
8685
|
+
align-items: center;
|
|
8686
|
+
text-align: center;
|
|
8687
|
+
padding: 28px 16px;
|
|
8688
|
+
border: 1px dashed var(--authui-border);
|
|
8689
|
+
border-radius: var(--authui-radius-xl);
|
|
8690
|
+
background: color-mix(in oklab, var(--authui-card) 50%, transparent);
|
|
8691
|
+
}
|
|
8692
|
+
.empty-icon {
|
|
8693
|
+
width: 48px;
|
|
8694
|
+
height: 48px;
|
|
8695
|
+
border-radius: 999px;
|
|
8696
|
+
background: var(--authui-muted);
|
|
8697
|
+
color: var(--authui-muted-foreground);
|
|
8698
|
+
display: inline-flex;
|
|
8699
|
+
align-items: center;
|
|
8700
|
+
justify-content: center;
|
|
8701
|
+
margin-bottom: 16px;
|
|
8702
|
+
}
|
|
8703
|
+
.empty-icon svg {
|
|
8704
|
+
width: 20px;
|
|
8705
|
+
height: 20px;
|
|
8706
|
+
}
|
|
8707
|
+
.empty-title {
|
|
8708
|
+
margin: 0 0 4px;
|
|
8709
|
+
font-size: 14px;
|
|
8710
|
+
font-weight: 500;
|
|
8711
|
+
color: var(--authui-foreground);
|
|
8712
|
+
}
|
|
8713
|
+
.empty-desc {
|
|
8714
|
+
margin: 0;
|
|
8715
|
+
font-size: 13px;
|
|
8716
|
+
color: var(--authui-muted-foreground);
|
|
8717
|
+
max-width: 280px;
|
|
8718
|
+
}
|
|
8572
8719
|
.choice {
|
|
8573
8720
|
display: flex;
|
|
8574
8721
|
align-items: center;
|
|
@@ -8701,7 +8848,7 @@ const rn = (De = class extends Qe {
|
|
|
8701
8848
|
fire(e, n) {
|
|
8702
8849
|
this.dispatchEvent(new CustomEvent(e, { detail: n, bubbles: !0, composed: !0 }));
|
|
8703
8850
|
}
|
|
8704
|
-
}, De.styles = [
|
|
8851
|
+
}, De.styles = [bo, wo], De.KEY_EVENTS = ["keydown", "keyup", "keypress"], De);
|
|
8705
8852
|
Io([
|
|
8706
8853
|
V()
|
|
8707
8854
|
], rn.prototype, "auth");
|
|
@@ -8823,7 +8970,7 @@ fe([
|
|
|
8823
8970
|
pe = fe([
|
|
8824
8971
|
ze("authui-config")
|
|
8825
8972
|
], pe);
|
|
8826
|
-
var So = Object.defineProperty, $o = Object.getOwnPropertyDescriptor,
|
|
8973
|
+
var So = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, _t = (t, e, n, i) => {
|
|
8827
8974
|
for (var o = i > 1 ? void 0 : i ? $o(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
8828
8975
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
8829
8976
|
return i && o && So(e, n, o), o;
|
|
@@ -8849,10 +8996,10 @@ function jo() {
|
|
|
8849
8996
|
}
|
|
8850
8997
|
jo();
|
|
8851
8998
|
const Po = ["loading", "signed-out", "signed-in", "mfa-required"];
|
|
8852
|
-
function
|
|
8999
|
+
function Yt(t) {
|
|
8853
9000
|
return t ? t.split(/[\s,]+/).map((e) => e.trim()).filter((e) => Po.includes(e)) : [];
|
|
8854
9001
|
}
|
|
8855
|
-
let
|
|
9002
|
+
let yt = class extends Qe {
|
|
8856
9003
|
constructor() {
|
|
8857
9004
|
super(...arguments), this.when = "", this.unless = "", this.status = R.getState().status, this.unsubscribe = null;
|
|
8858
9005
|
}
|
|
@@ -8864,29 +9011,29 @@ let mt = class extends Qe {
|
|
|
8864
9011
|
}
|
|
8865
9012
|
/** Whether the current status satisfies `when` and `unless`. */
|
|
8866
9013
|
get visible() {
|
|
8867
|
-
const t =
|
|
9014
|
+
const t = Yt(this.when), e = Yt(this.unless);
|
|
8868
9015
|
return !(this.status === "loading" && !t.includes("loading") || t.length > 0 && !t.includes(this.status) || e.includes(this.status));
|
|
8869
9016
|
}
|
|
8870
9017
|
updated() {
|
|
8871
|
-
(this.status !== "loading" ||
|
|
9018
|
+
(this.status !== "loading" || Yt(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
|
|
8872
9019
|
}
|
|
8873
9020
|
render() {
|
|
8874
|
-
return this.visible ?
|
|
9021
|
+
return this.visible ? w`<slot></slot>` : C;
|
|
8875
9022
|
}
|
|
8876
9023
|
};
|
|
8877
|
-
|
|
9024
|
+
_t([
|
|
8878
9025
|
ee({ type: String })
|
|
8879
|
-
],
|
|
8880
|
-
|
|
9026
|
+
], yt.prototype, "when", 2);
|
|
9027
|
+
_t([
|
|
8881
9028
|
ee({ type: String })
|
|
8882
|
-
],
|
|
8883
|
-
|
|
9029
|
+
], yt.prototype, "unless", 2);
|
|
9030
|
+
_t([
|
|
8884
9031
|
V()
|
|
8885
|
-
],
|
|
8886
|
-
|
|
9032
|
+
], yt.prototype, "status", 2);
|
|
9033
|
+
yt = _t([
|
|
8887
9034
|
ze("authui-show")
|
|
8888
|
-
],
|
|
8889
|
-
const
|
|
9035
|
+
], yt);
|
|
9036
|
+
const xo = We`
|
|
8890
9037
|
:host {
|
|
8891
9038
|
display: block;
|
|
8892
9039
|
width: 100%;
|
|
@@ -8940,7 +9087,7 @@ const Co = We`
|
|
|
8940
9087
|
height: 14px;
|
|
8941
9088
|
margin: 0;
|
|
8942
9089
|
}
|
|
8943
|
-
`, se = (t) =>
|
|
9090
|
+
`, se = (t) => w`<svg
|
|
8944
9091
|
xmlns="http://www.w3.org/2000/svg"
|
|
8945
9092
|
viewBox="0 0 24 24"
|
|
8946
9093
|
fill="none"
|
|
@@ -8951,7 +9098,7 @@ const Co = We`
|
|
|
8951
9098
|
aria-hidden="true"
|
|
8952
9099
|
>
|
|
8953
9100
|
${t}
|
|
8954
|
-
</svg>`,
|
|
9101
|
+
</svg>`, q = {
|
|
8955
9102
|
mail: se(
|
|
8956
9103
|
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"/>`
|
|
8957
9104
|
),
|
|
@@ -9033,7 +9180,7 @@ const Co = We`
|
|
|
9033
9180
|
qr: se(
|
|
9034
9181
|
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"/>`
|
|
9035
9182
|
)
|
|
9036
|
-
}, ge = (t, e = "0 0 24 24") =>
|
|
9183
|
+
}, ge = (t, e = "0 0 24 24") => w`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`, Co = {
|
|
9037
9184
|
google: ge(
|
|
9038
9185
|
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"/>`
|
|
9039
9186
|
),
|
|
@@ -9089,14 +9236,14 @@ const Co = We`
|
|
|
9089
9236
|
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"/>`
|
|
9090
9237
|
)
|
|
9091
9238
|
};
|
|
9092
|
-
function
|
|
9093
|
-
return
|
|
9239
|
+
function Mt(t) {
|
|
9240
|
+
return Co[t] ?? q.globe;
|
|
9094
9241
|
}
|
|
9095
9242
|
function Ai(t) {
|
|
9096
9243
|
const e = (t.trim()[0] ?? "?").toUpperCase();
|
|
9097
|
-
return /[A-Z0-9]/i.test(e) ? e :
|
|
9244
|
+
return /[A-Z0-9]/i.test(e) ? e : q.user;
|
|
9098
9245
|
}
|
|
9099
|
-
function
|
|
9246
|
+
function mt(t) {
|
|
9100
9247
|
typeof document > "u" || (document.querySelector("authui-modal") || document.body.appendChild(document.createElement("authui-modal")), queueMicrotask(() => {
|
|
9101
9248
|
window.dispatchEvent(new CustomEvent("authui:open", { detail: { view: t } }));
|
|
9102
9249
|
}));
|
|
@@ -9120,14 +9267,14 @@ function pi(t) {
|
|
|
9120
9267
|
let i, o;
|
|
9121
9268
|
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 };
|
|
9122
9269
|
}
|
|
9123
|
-
var Mo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor,
|
|
9270
|
+
var Mo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, Ae = (t, e, n, i) => {
|
|
9124
9271
|
for (var o = i > 1 ? void 0 : i ? Ro(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
9125
9272
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
9126
9273
|
return i && o && Mo(e, n, o), o;
|
|
9127
9274
|
};
|
|
9128
|
-
let
|
|
9275
|
+
let we = class extends qe {
|
|
9129
9276
|
constructor() {
|
|
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) => {
|
|
9277
|
+
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.expandedOAuth = null, 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) => {
|
|
9131
9278
|
t.preventDefault(), this.requireValid(t) && this.run(async () => {
|
|
9132
9279
|
await R.signInWithEmailPassword(this.email, this.password), this.password = "", lt("email-password"), this.fire("authui-success", { method: "email-password" });
|
|
9133
9280
|
});
|
|
@@ -9208,7 +9355,7 @@ let ve = class extends qe {
|
|
|
9208
9355
|
try {
|
|
9209
9356
|
await R.signOut();
|
|
9210
9357
|
} catch (t) {
|
|
9211
|
-
if (!
|
|
9358
|
+
if (!gt(t, oe.sessionNotFound)) throw t;
|
|
9212
9359
|
}
|
|
9213
9360
|
this.go("sign-in");
|
|
9214
9361
|
});
|
|
@@ -9249,7 +9396,7 @@ let ve = class extends qe {
|
|
|
9249
9396
|
try {
|
|
9250
9397
|
await t();
|
|
9251
9398
|
} catch (n) {
|
|
9252
|
-
this.error =
|
|
9399
|
+
this.error = Ct(n, this.strings, e);
|
|
9253
9400
|
} finally {
|
|
9254
9401
|
this.busy = !1;
|
|
9255
9402
|
}
|
|
@@ -9268,20 +9415,20 @@ let ve = class extends qe {
|
|
|
9268
9415
|
// ───────────────────────────── render ─────────────────────────────
|
|
9269
9416
|
render() {
|
|
9270
9417
|
const t = this.renderStep();
|
|
9271
|
-
return
|
|
9418
|
+
return w`
|
|
9272
9419
|
<div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
|
|
9273
9420
|
${this.renderHeader()}
|
|
9274
|
-
${this.notice ?
|
|
9275
|
-
${this.notice.tone === "success" ?
|
|
9421
|
+
${this.notice ? w`<div class="alert alert-${this.notice.tone}" role="status">
|
|
9422
|
+
${this.notice.tone === "success" ? q.checkCircle : this.notice.tone === "error" ? q.alert : q.info}
|
|
9276
9423
|
<div class="alert-body">${this.notice.message}</div>
|
|
9277
9424
|
<button
|
|
9278
9425
|
class="btn btn-ghost btn-icon dismiss"
|
|
9279
9426
|
@click=${() => this.dismissNotice()}
|
|
9280
9427
|
aria-label=${this.t("close")}
|
|
9281
9428
|
>
|
|
9282
|
-
${
|
|
9429
|
+
${q.x}
|
|
9283
9430
|
</button>
|
|
9284
|
-
</div>` :
|
|
9431
|
+
</div>` : C}
|
|
9285
9432
|
${t}
|
|
9286
9433
|
</div>
|
|
9287
9434
|
`;
|
|
@@ -9314,47 +9461,47 @@ let ve = class extends qe {
|
|
|
9314
9461
|
n = this.t("mfaTitle"), i = this.t("mfaDescription");
|
|
9315
9462
|
break;
|
|
9316
9463
|
}
|
|
9317
|
-
return
|
|
9464
|
+
return w`
|
|
9318
9465
|
<div class="header">
|
|
9319
|
-
${t ?
|
|
9466
|
+
${t ? w`<img
|
|
9320
9467
|
class="logo"
|
|
9321
9468
|
src=${t}
|
|
9322
9469
|
alt=""
|
|
9323
9470
|
@error=${(o) => {
|
|
9324
9471
|
o.target.hidden = !0;
|
|
9325
9472
|
}}
|
|
9326
|
-
/>` :
|
|
9327
|
-
${R.isPreview ?
|
|
9473
|
+
/>` : C}
|
|
9474
|
+
${R.isPreview ? w`<span class="badge badge-info preview">${this.t("preview")}</span>` : C}
|
|
9328
9475
|
<h2 class="title" id="authui-title">${n}</h2>
|
|
9329
|
-
${i ?
|
|
9476
|
+
${i ? w`<p class="description">${i}</p>` : C}
|
|
9330
9477
|
</div>
|
|
9331
9478
|
`;
|
|
9332
9479
|
}
|
|
9333
9480
|
renderError() {
|
|
9334
|
-
return this.error ?
|
|
9335
|
-
${
|
|
9481
|
+
return this.error ? w`<div class="alert alert-error" role="alert">
|
|
9482
|
+
${q.alert}
|
|
9336
9483
|
<div class="alert-body">${this.error}</div>
|
|
9337
|
-
</div>` :
|
|
9484
|
+
</div>` : C;
|
|
9338
9485
|
}
|
|
9339
9486
|
submitButton(t, e = "btn-primary") {
|
|
9340
|
-
return
|
|
9341
|
-
${this.busy ?
|
|
9487
|
+
return w`<button class="btn ${e} btn-block" type="submit" ?disabled=${this.busy}>
|
|
9488
|
+
${this.busy ? w`<span class="spinner" aria-hidden="true"></span>` : C} ${t}
|
|
9342
9489
|
</button>`;
|
|
9343
9490
|
}
|
|
9344
9491
|
passwordField(t) {
|
|
9345
9492
|
const e = this[t.field], n = t.meter ? pi(e) : null;
|
|
9346
|
-
return
|
|
9493
|
+
return w`
|
|
9347
9494
|
<div class="field">
|
|
9348
|
-
<
|
|
9349
|
-
|
|
9350
|
-
${t.forgot ?
|
|
9495
|
+
<div class="field-header">
|
|
9496
|
+
<label class="label" for=${t.id}>${t.label}</label>
|
|
9497
|
+
${t.forgot ? w`<button
|
|
9351
9498
|
type="button"
|
|
9352
9499
|
class="btn btn-link small"
|
|
9353
9500
|
@click=${() => this.go("forgot-password")}
|
|
9354
9501
|
>
|
|
9355
9502
|
${this.t("forgotPassword")}
|
|
9356
|
-
</button>` :
|
|
9357
|
-
</
|
|
9503
|
+
</button>` : C}
|
|
9504
|
+
</div>
|
|
9358
9505
|
<div class="input-wrap">
|
|
9359
9506
|
<input
|
|
9360
9507
|
class="input"
|
|
@@ -9371,12 +9518,11 @@ let ve = class extends qe {
|
|
|
9371
9518
|
class="btn btn-ghost btn-icon"
|
|
9372
9519
|
@click=${() => this.showPassword = !this.showPassword}
|
|
9373
9520
|
aria-label=${this.showPassword ? this.t("hidePassword") : this.t("showPassword")}
|
|
9374
|
-
tabindex="-1"
|
|
9375
9521
|
>
|
|
9376
|
-
${this.showPassword ?
|
|
9522
|
+
${this.showPassword ? q.eyeOff : q.eye}
|
|
9377
9523
|
</button>
|
|
9378
9524
|
</div>
|
|
9379
|
-
${n && e ?
|
|
9525
|
+
${n && e ? w`<div class="strength" aria-live="polite">
|
|
9380
9526
|
<div
|
|
9381
9527
|
class="strength-meter"
|
|
9382
9528
|
data-level=${String(n.level)}
|
|
@@ -9390,12 +9536,12 @@ let ve = class extends qe {
|
|
|
9390
9536
|
<span></span><span></span><span></span><span></span>
|
|
9391
9537
|
</div>
|
|
9392
9538
|
<p class="strength-label">${this.t(n.labelKey)}</p>
|
|
9393
|
-
</div>` : t.hint ?
|
|
9539
|
+
</div>` : t.hint ? w`<p class="hint">${t.hint}</p>` : C}
|
|
9394
9540
|
</div>
|
|
9395
9541
|
`;
|
|
9396
9542
|
}
|
|
9397
9543
|
emailField(t = "email") {
|
|
9398
|
-
return
|
|
9544
|
+
return w`
|
|
9399
9545
|
<div class="field">
|
|
9400
9546
|
<label class="label" for="authui-email">${this.t("email")}</label>
|
|
9401
9547
|
<input
|
|
@@ -9412,7 +9558,7 @@ let ve = class extends qe {
|
|
|
9412
9558
|
`;
|
|
9413
9559
|
}
|
|
9414
9560
|
codeField() {
|
|
9415
|
-
return
|
|
9561
|
+
return w`
|
|
9416
9562
|
<div class="field">
|
|
9417
9563
|
<label class="label" for="authui-code">${this.t("code")}</label>
|
|
9418
9564
|
<input
|
|
@@ -9432,33 +9578,33 @@ let ve = class extends qe {
|
|
|
9432
9578
|
}
|
|
9433
9579
|
legal() {
|
|
9434
9580
|
const t = this.config?.legal;
|
|
9435
|
-
return !t?.termsUrl && !t?.privacyUrl ?
|
|
9581
|
+
return !t?.termsUrl && !t?.privacyUrl ? C : w`<p class="legal">
|
|
9436
9582
|
${this.t("agreeTo")}
|
|
9437
|
-
${t.termsUrl ?
|
|
9438
|
-
${t.termsUrl && t.privacyUrl ?
|
|
9439
|
-
${t.privacyUrl ?
|
|
9583
|
+
${t.termsUrl ? w`<a href=${t.termsUrl} target="_blank" rel="noopener">${this.t("terms")}</a>` : C}
|
|
9584
|
+
${t.termsUrl && t.privacyUrl ? w` ${this.t("and")} ` : C}
|
|
9585
|
+
${t.privacyUrl ? w`<a href=${t.privacyUrl} target="_blank" rel="noopener">${this.t("privacy")}</a>` : C}.
|
|
9440
9586
|
</p>`;
|
|
9441
9587
|
}
|
|
9442
9588
|
backLink(t = "sign-in") {
|
|
9443
|
-
return
|
|
9589
|
+
return w`<div class="links">
|
|
9444
9590
|
<button type="button" class="btn btn-link" @click=${() => this.go(t)}>
|
|
9445
|
-
${
|
|
9591
|
+
${q.arrowLeft} ${this.t("back")}
|
|
9446
9592
|
</button>
|
|
9447
9593
|
</div>`;
|
|
9448
9594
|
}
|
|
9449
9595
|
renderStep() {
|
|
9450
9596
|
if (this.auth.configError)
|
|
9451
|
-
return
|
|
9452
|
-
${
|
|
9597
|
+
return w`<div class="alert alert-error" role="alert">
|
|
9598
|
+
${q.alert}
|
|
9453
9599
|
<div class="alert-body">${this.auth.configError}</div>
|
|
9454
9600
|
</div>`;
|
|
9455
9601
|
if (!this.auth.configured)
|
|
9456
|
-
return
|
|
9457
|
-
${
|
|
9602
|
+
return w`<div class="alert alert-error" role="alert">
|
|
9603
|
+
${q.alert}
|
|
9458
9604
|
<div class="alert-body">${this.t("errorNotConfigured")}</div>
|
|
9459
9605
|
</div>`;
|
|
9460
9606
|
if (this.auth.status === "loading")
|
|
9461
|
-
return
|
|
9607
|
+
return w`<div class="empty"><span class="spinner"></span></div>`;
|
|
9462
9608
|
if (this.auth.status === "signed-in" && this.step !== "mfa") return this.renderSignedIn();
|
|
9463
9609
|
switch (this.step) {
|
|
9464
9610
|
case "sign-up":
|
|
@@ -9481,32 +9627,32 @@ let ve = class extends qe {
|
|
|
9481
9627
|
}
|
|
9482
9628
|
renderSignedIn() {
|
|
9483
9629
|
const t = this.auth.user, e = t.name || t.email || t.phone || this.t("guestAccount");
|
|
9484
|
-
return
|
|
9630
|
+
return w`
|
|
9485
9631
|
<div class="stack">
|
|
9486
9632
|
<div class="row">
|
|
9487
9633
|
<div class="inline">
|
|
9488
9634
|
<span class="avatar">${Ai(e)}</span>
|
|
9489
9635
|
<div class="row-main">
|
|
9490
9636
|
<span class="row-title" title=${e}>${e}</span>
|
|
9491
|
-
${t.email && t.name ?
|
|
9637
|
+
${t.email && t.name ? w`<span class="row-sub" title=${t.email}>${t.email}</span>` : C}
|
|
9492
9638
|
</div>
|
|
9493
9639
|
</div>
|
|
9494
9640
|
</div>
|
|
9495
9641
|
${this.renderError()}
|
|
9496
9642
|
<div class="stack-sm">
|
|
9497
|
-
${this.config?.successUrl ?
|
|
9643
|
+
${this.config?.successUrl ? w`<a class="btn btn-primary btn-block" href=${this.config.successUrl}
|
|
9498
9644
|
>${this.t("continue")}</a
|
|
9499
|
-
>` :
|
|
9645
|
+
>` : C}
|
|
9500
9646
|
<button
|
|
9501
9647
|
class="btn btn-outline btn-block"
|
|
9502
9648
|
@click=${() => {
|
|
9503
|
-
this.embedded ? this.fire("authui-open", { view: "account" }) :
|
|
9649
|
+
this.embedded ? this.fire("authui-open", { view: "account" }) : mt("account");
|
|
9504
9650
|
}}
|
|
9505
9651
|
>
|
|
9506
|
-
${
|
|
9652
|
+
${q.settings} ${this.t("manageAccount")}
|
|
9507
9653
|
</button>
|
|
9508
9654
|
<button class="btn btn-ghost btn-block" @click=${this.onSignOut} ?disabled=${this.busy}>
|
|
9509
|
-
${
|
|
9655
|
+
${q.logOut} ${this.t("signOut")}
|
|
9510
9656
|
</button>
|
|
9511
9657
|
</div>
|
|
9512
9658
|
</div>
|
|
@@ -9514,95 +9660,133 @@ let ve = class extends qe {
|
|
|
9514
9660
|
}
|
|
9515
9661
|
renderProviders() {
|
|
9516
9662
|
const t = [...this.config?.methods?.oauth ?? []];
|
|
9517
|
-
if (t.length === 0) return
|
|
9518
|
-
const e = Fe();
|
|
9519
|
-
t.
|
|
9520
|
-
const
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9663
|
+
if (t.length === 0) return C;
|
|
9664
|
+
const e = Fe(), n = t.find((o) => e === `oauth:${o}`) ?? null;
|
|
9665
|
+
if (t.length <= 2) {
|
|
9666
|
+
const o = [...t].sort((a, s) => {
|
|
9667
|
+
const r = e === `oauth:${a}` ? 0 : 1, d = e === `oauth:${s}` ? 0 : 1;
|
|
9668
|
+
return r - d;
|
|
9669
|
+
});
|
|
9670
|
+
return w`
|
|
9671
|
+
<div class="providers">
|
|
9672
|
+
${o.map((a) => {
|
|
9673
|
+
const s = e === `oauth:${a}`, r = this.t("continueWith", { provider: xt(a) });
|
|
9674
|
+
return w`<button
|
|
9675
|
+
type="button"
|
|
9676
|
+
class="btn btn-outline ${s ? "last-used" : ""}"
|
|
9677
|
+
@click=${() => this.onOAuth(a)}
|
|
9678
|
+
?disabled=${this.busy}
|
|
9679
|
+
aria-label=${s ? `${r}. ${this.t("lastUsed")}` : r}
|
|
9680
|
+
>
|
|
9681
|
+
${Mt(a)}
|
|
9682
|
+
<span>${r}</span>
|
|
9683
|
+
${s ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
|
|
9684
|
+
</button>`;
|
|
9685
|
+
})}
|
|
9686
|
+
</div>
|
|
9687
|
+
`;
|
|
9688
|
+
}
|
|
9689
|
+
const i = this.expandedOAuth && t.includes(this.expandedOAuth) ? this.expandedOAuth : n ?? t[0];
|
|
9690
|
+
return w`
|
|
9691
|
+
<div
|
|
9692
|
+
class="providers accordion"
|
|
9693
|
+
@mouseleave=${() => {
|
|
9694
|
+
this.expandedOAuth = n ?? t[0];
|
|
9695
|
+
}}
|
|
9696
|
+
>
|
|
9697
|
+
${t.map((o) => {
|
|
9698
|
+
const a = e === `oauth:${o}`, s = i === o, r = this.t("continueWith", { provider: xt(o) });
|
|
9699
|
+
return w`<div
|
|
9700
|
+
class="provider-slot ${s ? "is-expanded" : ""}"
|
|
9701
|
+
@mouseenter=${() => {
|
|
9702
|
+
this.expandedOAuth = o;
|
|
9703
|
+
}}
|
|
9534
9704
|
>
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9705
|
+
<button
|
|
9706
|
+
type="button"
|
|
9707
|
+
class="btn btn-outline"
|
|
9708
|
+
@click=${() => this.onOAuth(o)}
|
|
9709
|
+
@focus=${() => {
|
|
9710
|
+
this.expandedOAuth = o;
|
|
9711
|
+
}}
|
|
9712
|
+
?disabled=${this.busy}
|
|
9713
|
+
aria-label=${a ? `${r}. ${this.t("lastUsed")}` : r}
|
|
9538
9714
|
>
|
|
9539
|
-
|
|
9540
|
-
|
|
9715
|
+
${Mt(o)}
|
|
9716
|
+
<span class="provider-label"
|
|
9717
|
+
><span><span class="provider-label-text">${r}</span></span></span
|
|
9718
|
+
>
|
|
9719
|
+
${a ? w`<span class="oauth-last-used" data-last-used=${o} aria-hidden="true">
|
|
9720
|
+
<span class="oauth-last-used-dot"></span>
|
|
9721
|
+
<span class="oauth-last-used-pill">${this.t("lastUsed")}</span>
|
|
9722
|
+
</span>` : C}
|
|
9723
|
+
</button>
|
|
9724
|
+
</div>`;
|
|
9541
9725
|
})}
|
|
9542
9726
|
</div>
|
|
9543
9727
|
`;
|
|
9544
9728
|
}
|
|
9545
9729
|
renderSignIn() {
|
|
9546
9730
|
const t = this.config?.methods ?? {}, e = t.emailPassword !== !1, n = (t.oauth?.length ?? 0) > 0, i = [
|
|
9547
|
-
t.magicUrl ? { step: "magic-url", icon:
|
|
9548
|
-
t.emailOtp ? { step: "email-otp", icon:
|
|
9549
|
-
t.phone ? { step: "phone", icon:
|
|
9731
|
+
t.magicUrl ? { step: "magic-url", icon: q.link, label: this.t("sendMagicLink") } : null,
|
|
9732
|
+
t.emailOtp ? { step: "email-otp", icon: q.mail, label: this.t("continueWithEmail") } : null,
|
|
9733
|
+
t.phone ? { step: "phone", icon: q.smartphone, label: this.t("continueWithPhone") } : null
|
|
9550
9734
|
].filter(Boolean);
|
|
9551
|
-
return
|
|
9735
|
+
return w`
|
|
9552
9736
|
<div class="stack">
|
|
9553
9737
|
${this.renderProviders()}
|
|
9554
|
-
${n && (e || i.length > 0) ?
|
|
9555
|
-
${e ?
|
|
9738
|
+
${n && (e || i.length > 0) ? w`<div class="separator-text">${this.t("or")}</div>` : C}
|
|
9739
|
+
${e ? w`<form
|
|
9556
9740
|
class="form ${Fe() === "email-password" ? "last-used-form" : ""}"
|
|
9557
9741
|
@submit=${this.onSignIn}
|
|
9558
9742
|
novalidate
|
|
9559
9743
|
>
|
|
9560
|
-
${Fe() === "email-password" ?
|
|
9744
|
+
${Fe() === "email-password" ? w`<p class="hint">
|
|
9561
9745
|
<span class="last-used-badge">${this.t("lastUsed")}</span>
|
|
9562
|
-
</p>` :
|
|
9746
|
+
</p>` : C}
|
|
9563
9747
|
${this.emailField()}
|
|
9564
9748
|
${this.passwordField({ label: this.t("password"), autocomplete: "current-password", id: "authui-password", field: "password", forgot: !0 })}
|
|
9565
9749
|
${this.renderError()} ${this.submitButton(this.t("signIn"))}
|
|
9566
9750
|
</form>` : this.renderError()}
|
|
9567
|
-
${i.length > 0 ?
|
|
9751
|
+
${i.length > 0 ? w`<div class="stack-sm">
|
|
9568
9752
|
${i.map((o) => {
|
|
9569
9753
|
const a = Fe() === o.step;
|
|
9570
|
-
return
|
|
9754
|
+
return w`<button
|
|
9571
9755
|
type="button"
|
|
9572
9756
|
class="btn btn-secondary btn-block ${a ? "last-used" : ""}"
|
|
9573
9757
|
@click=${() => this.go(o.step)}
|
|
9574
9758
|
>
|
|
9575
9759
|
${o.icon} ${o.label}
|
|
9576
|
-
${a ?
|
|
9760
|
+
${a ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
|
|
9577
9761
|
</button>`;
|
|
9578
9762
|
})}
|
|
9579
|
-
</div>` :
|
|
9580
|
-
${t.anonymous ?
|
|
9763
|
+
</div>` : C}
|
|
9764
|
+
${t.anonymous ? w`<button
|
|
9581
9765
|
type="button"
|
|
9582
9766
|
class="btn btn-ghost btn-block ${Fe() === "anonymous" ? "last-used" : ""}"
|
|
9583
9767
|
@click=${this.onGuest}
|
|
9584
9768
|
?disabled=${this.busy}
|
|
9585
9769
|
>
|
|
9586
|
-
${
|
|
9587
|
-
${Fe() === "anonymous" ?
|
|
9588
|
-
</button>` :
|
|
9589
|
-
${e && this.config?.signUp !== !1 ?
|
|
9770
|
+
${q.ghost} ${this.t("continueAsGuest")}
|
|
9771
|
+
${Fe() === "anonymous" ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
|
|
9772
|
+
</button>` : C}
|
|
9773
|
+
${e && this.config?.signUp !== !1 ? w`<div class="links">
|
|
9590
9774
|
<span>${this.t("noAccount")}</span>
|
|
9591
9775
|
<button type="button" class="btn btn-link" @click=${() => this.go("sign-up")}>
|
|
9592
9776
|
${this.t("signUp")}
|
|
9593
9777
|
</button>
|
|
9594
|
-
</div>` :
|
|
9778
|
+
</div>` : C}
|
|
9595
9779
|
${this.legal()}
|
|
9596
9780
|
</div>
|
|
9597
9781
|
`;
|
|
9598
9782
|
}
|
|
9599
9783
|
renderSignUp() {
|
|
9600
|
-
return
|
|
9784
|
+
return w`
|
|
9601
9785
|
<div class="stack">
|
|
9602
9786
|
${this.renderProviders()}
|
|
9603
|
-
${(this.config?.methods?.oauth?.length ?? 0) > 0 ?
|
|
9787
|
+
${(this.config?.methods?.oauth?.length ?? 0) > 0 ? w`<div class="separator-text">${this.t("or")}</div>` : C}
|
|
9604
9788
|
<form class="form" @submit=${this.onSignUp} novalidate>
|
|
9605
|
-
${this.config?.requireName !== !1 ?
|
|
9789
|
+
${this.config?.requireName !== !1 ? w`<div class="field">
|
|
9606
9790
|
<label class="label" for="authui-name">${this.t("name")}</label>
|
|
9607
9791
|
<input
|
|
9608
9792
|
class="input"
|
|
@@ -9613,7 +9797,7 @@ let ve = class extends qe {
|
|
|
9613
9797
|
.value=${this.name}
|
|
9614
9798
|
@input=${this.bind("name")}
|
|
9615
9799
|
/>
|
|
9616
|
-
</div>` :
|
|
9800
|
+
</div>` : C}
|
|
9617
9801
|
${this.emailField()}
|
|
9618
9802
|
${this.passwordField({ label: this.t("password"), autocomplete: "new-password", id: "authui-password", field: "password", hint: this.t("passwordHint"), meter: !0 })}
|
|
9619
9803
|
${this.renderError()} ${this.submitButton(this.t("createAccount"))}
|
|
@@ -9629,7 +9813,7 @@ let ve = class extends qe {
|
|
|
9629
9813
|
`;
|
|
9630
9814
|
}
|
|
9631
9815
|
renderForgot() {
|
|
9632
|
-
return
|
|
9816
|
+
return w`
|
|
9633
9817
|
<div class="stack">
|
|
9634
9818
|
<form class="form" @submit=${this.onForgot} novalidate>
|
|
9635
9819
|
${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendResetLink"))}
|
|
@@ -9639,7 +9823,7 @@ let ve = class extends qe {
|
|
|
9639
9823
|
`;
|
|
9640
9824
|
}
|
|
9641
9825
|
renderReset() {
|
|
9642
|
-
return this.recovery ?
|
|
9826
|
+
return this.recovery ? w`
|
|
9643
9827
|
<div class="stack">
|
|
9644
9828
|
<form class="form" @submit=${this.onReset} novalidate>
|
|
9645
9829
|
${this.passwordField({ label: this.t("newPassword"), autocomplete: "new-password", id: "authui-password", field: "password", hint: this.t("passwordHint"), meter: !0 })}
|
|
@@ -9654,13 +9838,13 @@ let ve = class extends qe {
|
|
|
9654
9838
|
this.step = "sign-in", this.error = "", this.notice = null, this.focusOnStep = !0, this.fire("authui-view", { view: "sign-in" });
|
|
9655
9839
|
}}
|
|
9656
9840
|
>
|
|
9657
|
-
${
|
|
9841
|
+
${q.arrowLeft} ${this.t("back")}
|
|
9658
9842
|
</button>
|
|
9659
9843
|
</div>
|
|
9660
9844
|
</div>
|
|
9661
|
-
` :
|
|
9845
|
+
` : w`<div class="stack">
|
|
9662
9846
|
<div class="alert alert-error" role="alert">
|
|
9663
|
-
${
|
|
9847
|
+
${q.alert}
|
|
9664
9848
|
<div class="alert-body">${this.t("errorInvalidToken")}</div>
|
|
9665
9849
|
</div>
|
|
9666
9850
|
<div class="links">
|
|
@@ -9677,22 +9861,22 @@ let ve = class extends qe {
|
|
|
9677
9861
|
</div>`;
|
|
9678
9862
|
}
|
|
9679
9863
|
phraseBox(t) {
|
|
9680
|
-
return t ?
|
|
9681
|
-
${
|
|
9864
|
+
return t ? w`<div class="alert alert-info">
|
|
9865
|
+
${q.shield}
|
|
9682
9866
|
<div class="alert-title">
|
|
9683
9867
|
${this.t("securityPhrase")}: <span class="code">${t}</span>
|
|
9684
9868
|
</div>
|
|
9685
9869
|
<div class="alert-body">${this.t("securityPhraseHint")}</div>
|
|
9686
|
-
</div>` :
|
|
9870
|
+
</div>` : C;
|
|
9687
9871
|
}
|
|
9688
9872
|
renderMagicUrl() {
|
|
9689
|
-
return this.token ?
|
|
9873
|
+
return this.token ? w`<div class="stack">
|
|
9690
9874
|
<div class="alert alert-success" role="status">
|
|
9691
|
-
${
|
|
9875
|
+
${q.mail}
|
|
9692
9876
|
<div class="alert-body">${this.t("magicLinkSent", { email: this.token.target })}</div>
|
|
9693
9877
|
</div>
|
|
9694
9878
|
${this.phraseBox(this.token.phrase)} ${this.backLink()}
|
|
9695
|
-
</div>` :
|
|
9879
|
+
</div>` : w`
|
|
9696
9880
|
<div class="stack">
|
|
9697
9881
|
<form class="form" @submit=${this.onMagicUrl} novalidate>
|
|
9698
9882
|
${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendMagicLink"))}
|
|
@@ -9721,9 +9905,9 @@ let ve = class extends qe {
|
|
|
9721
9905
|
}
|
|
9722
9906
|
renderCodeEntry() {
|
|
9723
9907
|
const t = this.token?.kind === "phone", e = Date.now() < this.resendCooldownUntil;
|
|
9724
|
-
return
|
|
9908
|
+
return w`
|
|
9725
9909
|
<div class="alert alert-info" role="status">
|
|
9726
|
-
${t ?
|
|
9910
|
+
${t ? q.smartphone : q.mail}
|
|
9727
9911
|
<div class="alert-body">${this.t("codeSent", { target: this.token.target })}</div>
|
|
9728
9912
|
</div>
|
|
9729
9913
|
${this.phraseBox(this.token.phrase)}
|
|
@@ -9755,7 +9939,7 @@ let ve = class extends qe {
|
|
|
9755
9939
|
`;
|
|
9756
9940
|
}
|
|
9757
9941
|
renderEmailOtp() {
|
|
9758
|
-
return this.token ?
|
|
9942
|
+
return this.token ? w`<div class="stack">${this.renderCodeEntry()}</div>` : w`
|
|
9759
9943
|
<div class="stack">
|
|
9760
9944
|
<form class="form" @submit=${this.onEmailOtp} novalidate>
|
|
9761
9945
|
${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendCode"))}
|
|
@@ -9765,7 +9949,7 @@ let ve = class extends qe {
|
|
|
9765
9949
|
`;
|
|
9766
9950
|
}
|
|
9767
9951
|
renderPhone() {
|
|
9768
|
-
return this.token ?
|
|
9952
|
+
return this.token ? w`<div class="stack">${this.renderCodeEntry()}</div>` : w`
|
|
9769
9953
|
<div class="stack">
|
|
9770
9954
|
<form class="form" @submit=${this.onPhoneOtp} novalidate>
|
|
9771
9955
|
<div class="field">
|
|
@@ -9793,34 +9977,34 @@ let ve = class extends qe {
|
|
|
9793
9977
|
const n = [
|
|
9794
9978
|
{
|
|
9795
9979
|
factor: "totp",
|
|
9796
|
-
icon:
|
|
9980
|
+
icon: q.smartphone,
|
|
9797
9981
|
label: this.t("mfaUseAuthenticator"),
|
|
9798
9982
|
available: t?.totp ?? !0
|
|
9799
9983
|
},
|
|
9800
9984
|
{
|
|
9801
9985
|
factor: "email",
|
|
9802
|
-
icon:
|
|
9986
|
+
icon: q.mail,
|
|
9803
9987
|
label: this.t("mfaUseEmail"),
|
|
9804
9988
|
available: t?.email ?? !0
|
|
9805
9989
|
},
|
|
9806
9990
|
{
|
|
9807
9991
|
factor: "phone",
|
|
9808
|
-
icon:
|
|
9992
|
+
icon: q.phone,
|
|
9809
9993
|
label: this.t("mfaUsePhone"),
|
|
9810
9994
|
available: t?.phone ?? !0
|
|
9811
9995
|
},
|
|
9812
9996
|
{
|
|
9813
9997
|
factor: "recoverycode",
|
|
9814
|
-
icon:
|
|
9998
|
+
icon: q.key,
|
|
9815
9999
|
label: this.t("mfaUseRecoveryCode"),
|
|
9816
10000
|
available: t?.recoveryCode ?? !0
|
|
9817
10001
|
}
|
|
9818
10002
|
];
|
|
9819
|
-
return
|
|
10003
|
+
return w`
|
|
9820
10004
|
<div class="stack">
|
|
9821
10005
|
<div class="stack-sm">
|
|
9822
10006
|
${n.filter((i) => i.available).map(
|
|
9823
|
-
(i) =>
|
|
10007
|
+
(i) => w`<button
|
|
9824
10008
|
type="button"
|
|
9825
10009
|
class="choice"
|
|
9826
10010
|
@click=${() => this.onChooseFactor(i.factor)}
|
|
@@ -9840,10 +10024,10 @@ let ve = class extends qe {
|
|
|
9840
10024
|
`;
|
|
9841
10025
|
}
|
|
9842
10026
|
const e = this.challenge.factor === "recoverycode";
|
|
9843
|
-
return
|
|
10027
|
+
return w`
|
|
9844
10028
|
<div class="stack">
|
|
9845
10029
|
<form class="form" @submit=${this.onVerifyFactor} novalidate>
|
|
9846
|
-
${e ?
|
|
10030
|
+
${e ? w`<div class="field">
|
|
9847
10031
|
<label class="label" for="authui-code">${this.t("recoveryCode")}</label>
|
|
9848
10032
|
<input
|
|
9849
10033
|
class="input mono"
|
|
@@ -9859,7 +10043,7 @@ let ve = class extends qe {
|
|
|
9859
10043
|
</form>
|
|
9860
10044
|
<div class="links">
|
|
9861
10045
|
<button type="button" class="btn btn-link" @click=${() => this.challenge = null}>
|
|
9862
|
-
${
|
|
10046
|
+
${q.arrowLeft} ${this.t("back")}
|
|
9863
10047
|
</button>
|
|
9864
10048
|
<span aria-hidden="true">·</span>
|
|
9865
10049
|
<button type="button" class="btn btn-link" @click=${this.onCancelMfa}>
|
|
@@ -9870,46 +10054,49 @@ let ve = class extends qe {
|
|
|
9870
10054
|
`;
|
|
9871
10055
|
}
|
|
9872
10056
|
};
|
|
9873
|
-
|
|
9874
|
-
|
|
10057
|
+
we.styles = [...qe.styles, xo];
|
|
10058
|
+
Ae([
|
|
9875
10059
|
ee({ type: String })
|
|
9876
|
-
],
|
|
9877
|
-
|
|
10060
|
+
], we.prototype, "view", 2);
|
|
10061
|
+
Ae([
|
|
9878
10062
|
ee({ type: Boolean })
|
|
9879
|
-
],
|
|
9880
|
-
|
|
10063
|
+
], we.prototype, "embedded", 2);
|
|
10064
|
+
Ae([
|
|
10065
|
+
V()
|
|
10066
|
+
], we.prototype, "step", 2);
|
|
10067
|
+
Ae([
|
|
9881
10068
|
V()
|
|
9882
|
-
],
|
|
9883
|
-
|
|
10069
|
+
], we.prototype, "busy", 2);
|
|
10070
|
+
Ae([
|
|
9884
10071
|
V()
|
|
9885
|
-
],
|
|
9886
|
-
|
|
10072
|
+
], we.prototype, "error", 2);
|
|
10073
|
+
Ae([
|
|
9887
10074
|
V()
|
|
9888
|
-
],
|
|
9889
|
-
|
|
10075
|
+
], we.prototype, "notice", 2);
|
|
10076
|
+
Ae([
|
|
9890
10077
|
V()
|
|
9891
|
-
],
|
|
9892
|
-
|
|
10078
|
+
], we.prototype, "showPassword", 2);
|
|
10079
|
+
Ae([
|
|
9893
10080
|
V()
|
|
9894
|
-
],
|
|
9895
|
-
|
|
10081
|
+
], we.prototype, "expandedOAuth", 2);
|
|
10082
|
+
Ae([
|
|
9896
10083
|
V()
|
|
9897
|
-
],
|
|
9898
|
-
|
|
10084
|
+
], we.prototype, "token", 2);
|
|
10085
|
+
Ae([
|
|
9899
10086
|
V()
|
|
9900
|
-
],
|
|
9901
|
-
|
|
10087
|
+
], we.prototype, "resendCooldownUntil", 2);
|
|
10088
|
+
Ae([
|
|
9902
10089
|
V()
|
|
9903
|
-
],
|
|
9904
|
-
|
|
10090
|
+
], we.prototype, "challenge", 2);
|
|
10091
|
+
Ae([
|
|
9905
10092
|
V()
|
|
9906
|
-
],
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
],
|
|
9910
|
-
|
|
10093
|
+
], we.prototype, "recovery", 2);
|
|
10094
|
+
Ae([
|
|
10095
|
+
wi("form input:not([type=hidden])")
|
|
10096
|
+
], we.prototype, "firstInput", 2);
|
|
10097
|
+
we = Ae([
|
|
9911
10098
|
ze("authui-sign-in")
|
|
9912
|
-
],
|
|
10099
|
+
], we);
|
|
9913
10100
|
var Eo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, O = (t, e, n, i) => {
|
|
9914
10101
|
for (var o = i > 1 ? void 0 : i ? qo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
9915
10102
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
@@ -10021,7 +10208,7 @@ let z = class extends qe {
|
|
|
10021
10208
|
try {
|
|
10022
10209
|
this.recoveryCodes = await R.createRecoveryCodes();
|
|
10023
10210
|
} catch (t) {
|
|
10024
|
-
if (!
|
|
10211
|
+
if (!gt(t, oe.recoveryCodesExist)) throw t;
|
|
10025
10212
|
this.recoveryCodes = await R.getRecoveryCodes();
|
|
10026
10213
|
}
|
|
10027
10214
|
await this.loadFactors();
|
|
@@ -10119,10 +10306,14 @@ let z = class extends qe {
|
|
|
10119
10306
|
}
|
|
10120
10307
|
updated(t) {
|
|
10121
10308
|
t.has("active") && requestAnimationFrame(() => {
|
|
10122
|
-
const
|
|
10309
|
+
const n = this.renderRoot.querySelector(
|
|
10123
10310
|
'.tab[aria-selected="true"]'
|
|
10124
10311
|
);
|
|
10125
|
-
|
|
10312
|
+
n && typeof n.scrollIntoView == "function" && n.scrollIntoView({ inline: "nearest", block: "nearest", behavior: "smooth" });
|
|
10313
|
+
}), (t.has("confirmDelete") && this.confirmDelete || t.has("confirmSignOutAll") && this.confirmSignOutAll || t.has("confirmDisconnectId") && this.confirmDisconnectId !== null) && requestAnimationFrame(() => {
|
|
10314
|
+
this.renderRoot.querySelector(
|
|
10315
|
+
".card-footer [autofocus], .row-actions [autofocus], .inline [autofocus], .card-footer .btn-outline, .row-actions .btn-outline, .inline .btn-outline"
|
|
10316
|
+
)?.focus({ preventScroll: !0 });
|
|
10126
10317
|
});
|
|
10127
10318
|
}
|
|
10128
10319
|
setNotice(t, e) {
|
|
@@ -10140,9 +10331,9 @@ let z = class extends qe {
|
|
|
10140
10331
|
try {
|
|
10141
10332
|
await e(), n && this.setNotice("success", n);
|
|
10142
10333
|
} catch (i) {
|
|
10143
|
-
|
|
10334
|
+
gt(i, oe.challengeRequired) ? this.stepUp = { retry: () => this.run(t, e, n) } : this.errors = {
|
|
10144
10335
|
...this.errors,
|
|
10145
|
-
[t]:
|
|
10336
|
+
[t]: Ct(
|
|
10146
10337
|
i,
|
|
10147
10338
|
this.strings,
|
|
10148
10339
|
t.includes("code") ? "code" : t === "password" ? "password" : "link"
|
|
@@ -10223,16 +10414,16 @@ let z = class extends qe {
|
|
|
10223
10414
|
// ─────────────────────────── render ───────────────────────────
|
|
10224
10415
|
render() {
|
|
10225
10416
|
if (!this.auth.configured)
|
|
10226
|
-
return
|
|
10227
|
-
${
|
|
10417
|
+
return w`<div class="alert alert-error" role="alert">
|
|
10418
|
+
${q.alert}
|
|
10228
10419
|
<div class="alert-body">${this.t("errorNotConfigured")}</div>
|
|
10229
10420
|
</div>`;
|
|
10230
10421
|
if (this.auth.status === "loading")
|
|
10231
|
-
return
|
|
10422
|
+
return w`<div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
|
|
10232
10423
|
<div class="empty"><span class="spinner"></span></div>
|
|
10233
10424
|
</div>`;
|
|
10234
10425
|
if (!this.user)
|
|
10235
|
-
return
|
|
10426
|
+
return w`<div class="panel ${this.embedded ? "embedded" : ""}">
|
|
10236
10427
|
<authui-sign-in embedded></authui-sign-in>
|
|
10237
10428
|
</div>`;
|
|
10238
10429
|
const t = [
|
|
@@ -10242,12 +10433,12 @@ let z = class extends qe {
|
|
|
10242
10433
|
{ id: "connections", label: this.t("connections") },
|
|
10243
10434
|
...this.logsSupported ? [{ id: "activity", label: this.t("activity") }] : []
|
|
10244
10435
|
];
|
|
10245
|
-
return
|
|
10436
|
+
return w`
|
|
10246
10437
|
<div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
|
|
10247
10438
|
${this.renderIdentity()}
|
|
10248
10439
|
<div class="tabs" role="tablist" @keydown=${this.onTabsKeydown}>
|
|
10249
10440
|
${t.map(
|
|
10250
|
-
(e) =>
|
|
10441
|
+
(e) => w`<button
|
|
10251
10442
|
class="tab"
|
|
10252
10443
|
role="tab"
|
|
10253
10444
|
id=${`authui-tab-${e.id}`}
|
|
@@ -10260,8 +10451,8 @@ let z = class extends qe {
|
|
|
10260
10451
|
</button>`
|
|
10261
10452
|
)}
|
|
10262
10453
|
</div>
|
|
10263
|
-
${this.notice ?
|
|
10264
|
-
${this.notice.tone === "success" ?
|
|
10454
|
+
${this.notice ? w`<div class="alert alert-${this.notice.tone}" role="status">
|
|
10455
|
+
${this.notice.tone === "success" ? q.checkCircle : q.info}
|
|
10265
10456
|
<div class="alert-body">${this.notice.message}</div>
|
|
10266
10457
|
<button
|
|
10267
10458
|
class="btn btn-ghost btn-icon dismiss"
|
|
@@ -10270,10 +10461,10 @@ let z = class extends qe {
|
|
|
10270
10461
|
}}
|
|
10271
10462
|
aria-label=${this.t("close")}
|
|
10272
10463
|
>
|
|
10273
|
-
${
|
|
10464
|
+
${q.x}
|
|
10274
10465
|
</button>
|
|
10275
|
-
</div>` :
|
|
10276
|
-
${this.stepUp ? this.renderStepUp() :
|
|
10466
|
+
</div>` : C}
|
|
10467
|
+
${this.stepUp ? this.renderStepUp() : w`<div
|
|
10277
10468
|
class="tabpanel"
|
|
10278
10469
|
role="tabpanel"
|
|
10279
10470
|
id=${`authui-panel-${this.active}`}
|
|
@@ -10286,21 +10477,21 @@ let z = class extends qe {
|
|
|
10286
10477
|
}
|
|
10287
10478
|
renderIdentity() {
|
|
10288
10479
|
const t = this.user, e = t.name || t.email || t.phone || this.t("guestAccount");
|
|
10289
|
-
return
|
|
10480
|
+
return w`
|
|
10290
10481
|
<div class="between">
|
|
10291
10482
|
<div class="identity">
|
|
10292
10483
|
<span class="avatar">${Ai(e)}</span>
|
|
10293
10484
|
<div class="row-main">
|
|
10294
10485
|
<span class="row-title" title=${e}>
|
|
10295
10486
|
${e}
|
|
10296
|
-
${t.mfa ?
|
|
10297
|
-
${R.isPreview ?
|
|
10487
|
+
${t.mfa ? w`<span class="badge badge-success">${q.shieldCheck} ${this.t("mfaBadge")}</span>` : C}
|
|
10488
|
+
${R.isPreview ? w`<span class="badge badge-info">${this.t("preview")}</span>` : C}
|
|
10298
10489
|
</span>
|
|
10299
|
-
${t.email && t.name ?
|
|
10490
|
+
${t.email && t.name ? w`<span class="row-sub" title=${t.email}>${t.email}</span>` : C}
|
|
10300
10491
|
</div>
|
|
10301
10492
|
</div>
|
|
10302
10493
|
<button class="btn btn-outline btn-sm" @click=${() => R.signOut()}>
|
|
10303
|
-
${
|
|
10494
|
+
${q.logOut} ${this.t("signOut")}
|
|
10304
10495
|
</button>
|
|
10305
10496
|
</div>
|
|
10306
10497
|
`;
|
|
@@ -10321,35 +10512,64 @@ let z = class extends qe {
|
|
|
10321
10512
|
}
|
|
10322
10513
|
error(t) {
|
|
10323
10514
|
const e = this.errors[t];
|
|
10324
|
-
return e ?
|
|
10325
|
-
${
|
|
10515
|
+
return e ? w`<div class="alert alert-error" role="alert">
|
|
10516
|
+
${q.alert}
|
|
10326
10517
|
<div class="alert-body">${e}</div>
|
|
10327
|
-
</div>` :
|
|
10518
|
+
</div>` : C;
|
|
10328
10519
|
}
|
|
10329
10520
|
spinner(t) {
|
|
10330
|
-
return this.busy === t ?
|
|
10521
|
+
return this.busy === t ? w`<span class="spinner" aria-hidden="true"></span>` : C;
|
|
10331
10522
|
}
|
|
10332
10523
|
card(t, e, n, i, o = !1) {
|
|
10333
|
-
return
|
|
10524
|
+
return w`<section class="card ${o ? "card-danger" : ""}">
|
|
10334
10525
|
<div class="card-header">
|
|
10335
10526
|
<h3 class="card-title">${t}</h3>
|
|
10336
|
-
${e ?
|
|
10527
|
+
${e ? w`<p class="card-description">${e}</p>` : C}
|
|
10337
10528
|
</div>
|
|
10338
|
-
|
|
10339
|
-
${i ?
|
|
10529
|
+
${n !== C ? w`<div class="card-body">${n}</div>` : C}
|
|
10530
|
+
${i ? w`<div class="card-footer">${i}</div>` : C}
|
|
10340
10531
|
</section>`;
|
|
10341
10532
|
}
|
|
10533
|
+
/** Vibes-style confirm footer: Cancel first (autofocus), destructive only on confirm. */
|
|
10534
|
+
confirmFooter(t, e, n, i) {
|
|
10535
|
+
return w`
|
|
10536
|
+
<button
|
|
10537
|
+
type="button"
|
|
10538
|
+
class="btn btn-outline btn-sm"
|
|
10539
|
+
autofocus
|
|
10540
|
+
?disabled=${!!this.busy}
|
|
10541
|
+
@click=${t}
|
|
10542
|
+
>
|
|
10543
|
+
${this.t("cancel")}
|
|
10544
|
+
</button>
|
|
10545
|
+
<button
|
|
10546
|
+
type="button"
|
|
10547
|
+
class="btn btn-destructive btn-sm"
|
|
10548
|
+
?disabled=${!!this.busy}
|
|
10549
|
+
@click=${e}
|
|
10550
|
+
>
|
|
10551
|
+
${i ? this.spinner(i) : C} ${n}
|
|
10552
|
+
</button>
|
|
10553
|
+
`;
|
|
10554
|
+
}
|
|
10555
|
+
emptyState(t, e, n) {
|
|
10556
|
+
return w`<div class="empty empty-well">
|
|
10557
|
+
<div class="empty-icon" aria-hidden="true">${t}</div>
|
|
10558
|
+
<p class="empty-title">${e}</p>
|
|
10559
|
+
<p class="empty-desc">${n}</p>
|
|
10560
|
+
</div>`;
|
|
10561
|
+
}
|
|
10342
10562
|
verifiedBadge(t) {
|
|
10343
|
-
return t ?
|
|
10563
|
+
return t ? w`<span class="badge badge-success">${q.check} ${this.t("verified")}</span>` : w`<span class="badge badge-warning">${this.t("unverified")}</span>`;
|
|
10344
10564
|
}
|
|
10345
10565
|
// ── Profile ──
|
|
10346
10566
|
renderProfile() {
|
|
10347
10567
|
const t = this.user;
|
|
10348
|
-
return this.isGuest ?
|
|
10568
|
+
return this.isGuest ? w`<div class="section">
|
|
10349
10569
|
${this.card(
|
|
10350
10570
|
this.t("guestAccount"),
|
|
10351
10571
|
this.t("guestAccountDescription"),
|
|
10352
|
-
|
|
10572
|
+
w`<form class="form" id="guest-form" @submit=${this.onConvertGuest} novalidate>
|
|
10353
10573
|
<div class="field">
|
|
10354
10574
|
<label class="label" for="guest-name">${this.t("name")}</label>
|
|
10355
10575
|
<input
|
|
@@ -10386,7 +10606,7 @@ let z = class extends qe {
|
|
|
10386
10606
|
/>
|
|
10387
10607
|
${this.emailPassword ? (() => {
|
|
10388
10608
|
const e = pi(this.emailPassword);
|
|
10389
|
-
return
|
|
10609
|
+
return w`<div class="strength" aria-live="polite">
|
|
10390
10610
|
<div
|
|
10391
10611
|
class="strength-meter"
|
|
10392
10612
|
data-level=${String(e.level)}
|
|
@@ -10401,11 +10621,11 @@ let z = class extends qe {
|
|
|
10401
10621
|
</div>
|
|
10402
10622
|
<p class="strength-label">${this.t(e.labelKey)}</p>
|
|
10403
10623
|
</div>`;
|
|
10404
|
-
})() :
|
|
10624
|
+
})() : w`<p class="hint">${this.t("passwordHint")}</p>`}
|
|
10405
10625
|
</div>
|
|
10406
10626
|
${this.error("guest")}
|
|
10407
10627
|
</form>`,
|
|
10408
|
-
|
|
10628
|
+
w`<button
|
|
10409
10629
|
class="btn btn-primary btn-sm"
|
|
10410
10630
|
type="submit"
|
|
10411
10631
|
form="guest-form"
|
|
@@ -10414,11 +10634,11 @@ let z = class extends qe {
|
|
|
10414
10634
|
${this.spinner("guest")} ${this.t("createAccount")}
|
|
10415
10635
|
</button>`
|
|
10416
10636
|
)}
|
|
10417
|
-
</div>` :
|
|
10637
|
+
</div>` : w`<div class="section">
|
|
10418
10638
|
${this.card(
|
|
10419
10639
|
this.t("name"),
|
|
10420
10640
|
void 0,
|
|
10421
|
-
|
|
10641
|
+
w`<form class="form" id="name-form" @submit=${this.onUpdateName} novalidate>
|
|
10422
10642
|
<div class="field">
|
|
10423
10643
|
<label class="label" for="acc-name">${this.t("name")}</label>
|
|
10424
10644
|
<input
|
|
@@ -10432,7 +10652,7 @@ let z = class extends qe {
|
|
|
10432
10652
|
</div>
|
|
10433
10653
|
${this.error("name")}
|
|
10434
10654
|
</form>`,
|
|
10435
|
-
|
|
10655
|
+
w`<button
|
|
10436
10656
|
class="btn btn-primary btn-sm"
|
|
10437
10657
|
type="submit"
|
|
10438
10658
|
form="name-form"
|
|
@@ -10444,11 +10664,11 @@ let z = class extends qe {
|
|
|
10444
10664
|
${this.card(
|
|
10445
10665
|
this.t("email"),
|
|
10446
10666
|
void 0,
|
|
10447
|
-
|
|
10667
|
+
w`<form class="form" id="email-form" @submit=${this.onUpdateEmail} novalidate>
|
|
10448
10668
|
<div class="field">
|
|
10449
10669
|
<label class="label" for="acc-email"
|
|
10450
10670
|
>${this.t("email")}
|
|
10451
|
-
${t.email ? this.verifiedBadge(t.emailVerification) :
|
|
10671
|
+
${t.email ? this.verifiedBadge(t.emailVerification) : C}</label
|
|
10452
10672
|
>
|
|
10453
10673
|
<input
|
|
10454
10674
|
class="input"
|
|
@@ -10460,7 +10680,7 @@ let z = class extends qe {
|
|
|
10460
10680
|
required
|
|
10461
10681
|
/>
|
|
10462
10682
|
</div>
|
|
10463
|
-
${this.emailInput !== t.email ?
|
|
10683
|
+
${this.emailInput !== t.email ? w`<div class="field">
|
|
10464
10684
|
<label class="label" for="acc-email-password"
|
|
10465
10685
|
>${t.passwordUpdate ? this.t("currentPassword") : this.t("createPassword")}</label
|
|
10466
10686
|
>
|
|
@@ -10473,12 +10693,12 @@ let z = class extends qe {
|
|
|
10473
10693
|
autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
|
|
10474
10694
|
required
|
|
10475
10695
|
/>
|
|
10476
|
-
${t.passwordUpdate ?
|
|
10477
|
-
</div>` :
|
|
10696
|
+
${t.passwordUpdate ? C : w`<p class="hint">${this.t("createPasswordHint")}</p>`}
|
|
10697
|
+
</div>` : C}
|
|
10478
10698
|
${this.error("email")} ${this.error("verify")}
|
|
10479
10699
|
</form>`,
|
|
10480
|
-
|
|
10481
|
-
${t.email && !t.emailVerification ?
|
|
10700
|
+
w`
|
|
10701
|
+
${t.email && !t.emailVerification ? w`<button
|
|
10482
10702
|
class="btn btn-outline btn-sm"
|
|
10483
10703
|
type="button"
|
|
10484
10704
|
@click=${this.onSendVerification}
|
|
@@ -10491,7 +10711,7 @@ let z = class extends qe {
|
|
|
10491
10711
|
Math.ceil((this.verifyEmailCooldownUntil - Date.now()) / 1e3)
|
|
10492
10712
|
)
|
|
10493
10713
|
}) : this.t("verifyEmail")}
|
|
10494
|
-
</button>` :
|
|
10714
|
+
</button>` : C}
|
|
10495
10715
|
<button
|
|
10496
10716
|
class="btn btn-primary btn-sm"
|
|
10497
10717
|
type="submit"
|
|
@@ -10505,11 +10725,11 @@ let z = class extends qe {
|
|
|
10505
10725
|
${this.card(
|
|
10506
10726
|
this.t("phone"),
|
|
10507
10727
|
void 0,
|
|
10508
|
-
|
|
10728
|
+
w`<form class="form" id="phone-form" @submit=${this.onUpdatePhone} novalidate>
|
|
10509
10729
|
<div class="field">
|
|
10510
10730
|
<label class="label" for="acc-phone"
|
|
10511
10731
|
>${this.t("phone")}
|
|
10512
|
-
${t.phone ? this.verifiedBadge(t.phoneVerification) :
|
|
10732
|
+
${t.phone ? this.verifiedBadge(t.phoneVerification) : C}</label
|
|
10513
10733
|
>
|
|
10514
10734
|
<input
|
|
10515
10735
|
class="input"
|
|
@@ -10521,7 +10741,7 @@ let z = class extends qe {
|
|
|
10521
10741
|
autocomplete="tel"
|
|
10522
10742
|
/>
|
|
10523
10743
|
</div>
|
|
10524
|
-
${this.phoneInput !== t.phone ?
|
|
10744
|
+
${this.phoneInput !== t.phone ? w`<div class="field">
|
|
10525
10745
|
<label class="label" for="acc-phone-password"
|
|
10526
10746
|
>${t.passwordUpdate ? this.t("currentPassword") : this.t("createPassword")}</label
|
|
10527
10747
|
>
|
|
@@ -10534,9 +10754,9 @@ let z = class extends qe {
|
|
|
10534
10754
|
autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
|
|
10535
10755
|
required
|
|
10536
10756
|
/>
|
|
10537
|
-
${t.passwordUpdate ?
|
|
10538
|
-
</div>` :
|
|
10539
|
-
${this.phoneCodeSent ?
|
|
10757
|
+
${t.passwordUpdate ? C : w`<p class="hint">${this.t("createPasswordHint")}</p>`}
|
|
10758
|
+
</div>` : C}
|
|
10759
|
+
${this.phoneCodeSent ? w`<div class="field">
|
|
10540
10760
|
<label class="label" for="acc-phone-code">${this.t("code")}</label>
|
|
10541
10761
|
<input
|
|
10542
10762
|
class="input input-otp"
|
|
@@ -10552,26 +10772,26 @@ let z = class extends qe {
|
|
|
10552
10772
|
e.key === "Enter" && (e.preventDefault(), this.onConfirmPhoneVerification(e));
|
|
10553
10773
|
}}
|
|
10554
10774
|
/>
|
|
10555
|
-
</div>` :
|
|
10775
|
+
</div>` : C}
|
|
10556
10776
|
${this.error("phone")} ${this.error("verify-phone")} ${this.error("verify-phone-code")}
|
|
10557
10777
|
</form>`,
|
|
10558
|
-
|
|
10559
|
-
${t.phone && !t.phoneVerification && !this.phoneCodeSent ?
|
|
10778
|
+
w`
|
|
10779
|
+
${t.phone && !t.phoneVerification && !this.phoneCodeSent ? w`<button
|
|
10560
10780
|
class="btn btn-outline btn-sm"
|
|
10561
10781
|
type="button"
|
|
10562
10782
|
@click=${this.onSendPhoneVerification}
|
|
10563
10783
|
?disabled=${!!this.busy}
|
|
10564
10784
|
>
|
|
10565
10785
|
${this.spinner("verify-phone")} ${this.t("sendCode")}
|
|
10566
|
-
</button>` :
|
|
10567
|
-
${this.phoneCodeSent ?
|
|
10786
|
+
</button>` : C}
|
|
10787
|
+
${this.phoneCodeSent ? w`<button
|
|
10568
10788
|
class="btn btn-outline btn-sm"
|
|
10569
10789
|
type="button"
|
|
10570
10790
|
@click=${this.onConfirmPhoneVerification}
|
|
10571
10791
|
?disabled=${!!this.busy}
|
|
10572
10792
|
>
|
|
10573
10793
|
${this.spinner("verify-phone-code")} ${this.t("verifyCode")}
|
|
10574
|
-
</button>` :
|
|
10794
|
+
</button>` : C}
|
|
10575
10795
|
<button
|
|
10576
10796
|
class="btn btn-primary btn-sm"
|
|
10577
10797
|
type="submit"
|
|
@@ -10589,42 +10809,37 @@ let z = class extends qe {
|
|
|
10589
10809
|
return this.card(
|
|
10590
10810
|
this.t("deleteAccount"),
|
|
10591
10811
|
this.t("deleteAccountDescription"),
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
@click=${() => this.confirmDelete = !0}
|
|
10607
|
-
>
|
|
10608
|
-
${_.userX} ${this.t("deleteAccount")}
|
|
10609
|
-
</button>`}`,
|
|
10610
|
-
void 0,
|
|
10812
|
+
this.confirmDelete ? this.error("delete") : w`${this.error("delete")}
|
|
10813
|
+
<button class="btn btn-outline btn-sm warn" @click=${() => this.confirmDelete = !0}>
|
|
10814
|
+
${q.userX} ${this.t("deleteAccount")}
|
|
10815
|
+
</button>`,
|
|
10816
|
+
this.confirmDelete ? this.confirmFooter(
|
|
10817
|
+
() => {
|
|
10818
|
+
this.confirmDelete = !1;
|
|
10819
|
+
},
|
|
10820
|
+
() => {
|
|
10821
|
+
this.onDeleteAccount();
|
|
10822
|
+
},
|
|
10823
|
+
this.t("deleteAccountConfirm"),
|
|
10824
|
+
"delete"
|
|
10825
|
+
) : void 0,
|
|
10611
10826
|
!0
|
|
10612
10827
|
);
|
|
10613
10828
|
}
|
|
10614
10829
|
// ── Security ──
|
|
10615
10830
|
renderSecurity() {
|
|
10616
10831
|
const t = this.user, e = this.config?.mfa !== !1;
|
|
10617
|
-
return
|
|
10618
|
-
${this.isGuest ?
|
|
10832
|
+
return w`<div class="section">
|
|
10833
|
+
${this.isGuest ? C : this.card(
|
|
10619
10834
|
this.t("changePassword"),
|
|
10620
10835
|
void 0,
|
|
10621
|
-
|
|
10836
|
+
w`<form
|
|
10622
10837
|
class="form"
|
|
10623
10838
|
id="password-form"
|
|
10624
10839
|
@submit=${this.onChangePassword}
|
|
10625
10840
|
novalidate
|
|
10626
10841
|
>
|
|
10627
|
-
${t.passwordUpdate ?
|
|
10842
|
+
${t.passwordUpdate ? w`<div class="field">
|
|
10628
10843
|
<label class="label" for="acc-old-password"
|
|
10629
10844
|
>${this.t("currentPassword")}</label
|
|
10630
10845
|
>
|
|
@@ -10637,7 +10852,7 @@ let z = class extends qe {
|
|
|
10637
10852
|
autocomplete="current-password"
|
|
10638
10853
|
required
|
|
10639
10854
|
/>
|
|
10640
|
-
</div>` :
|
|
10855
|
+
</div>` : C}
|
|
10641
10856
|
<div class="field">
|
|
10642
10857
|
<label class="label" for="acc-new-password">${this.t("newPassword")}</label>
|
|
10643
10858
|
<input
|
|
@@ -10652,7 +10867,7 @@ let z = class extends qe {
|
|
|
10652
10867
|
/>
|
|
10653
10868
|
${this.newPassword ? (() => {
|
|
10654
10869
|
const n = pi(this.newPassword);
|
|
10655
|
-
return
|
|
10870
|
+
return w`<div class="strength" aria-live="polite">
|
|
10656
10871
|
<div
|
|
10657
10872
|
class="strength-meter"
|
|
10658
10873
|
data-level=${String(n.level)}
|
|
@@ -10667,7 +10882,7 @@ let z = class extends qe {
|
|
|
10667
10882
|
</div>
|
|
10668
10883
|
<p class="strength-label">${this.t(n.labelKey)}</p>
|
|
10669
10884
|
</div>`;
|
|
10670
|
-
})() :
|
|
10885
|
+
})() : w`<p class="hint">${this.t("passwordHint")}</p>`}
|
|
10671
10886
|
</div>
|
|
10672
10887
|
<div class="field">
|
|
10673
10888
|
<label class="label" for="acc-new-password-confirm"
|
|
@@ -10686,7 +10901,7 @@ let z = class extends qe {
|
|
|
10686
10901
|
</div>
|
|
10687
10902
|
${this.error("password")}
|
|
10688
10903
|
</form>`,
|
|
10689
|
-
|
|
10904
|
+
w`<button
|
|
10690
10905
|
class="btn btn-primary btn-sm"
|
|
10691
10906
|
type="submit"
|
|
10692
10907
|
form="password-form"
|
|
@@ -10695,8 +10910,8 @@ let z = class extends qe {
|
|
|
10695
10910
|
${this.spinner("password")} ${this.t("update")}
|
|
10696
10911
|
</button>`
|
|
10697
10912
|
)}
|
|
10698
|
-
${e ? this.renderMfaCard() :
|
|
10699
|
-
${e ? this.renderRecoveryCard() :
|
|
10913
|
+
${e ? this.renderMfaCard() : C}
|
|
10914
|
+
${e ? this.renderRecoveryCard() : C}
|
|
10700
10915
|
</div>`;
|
|
10701
10916
|
}
|
|
10702
10917
|
renderMfaCard() {
|
|
@@ -10704,7 +10919,7 @@ let z = class extends qe {
|
|
|
10704
10919
|
return this.card(
|
|
10705
10920
|
this.t("twoFactor"),
|
|
10706
10921
|
this.t("twoFactorDescription"),
|
|
10707
|
-
|
|
10922
|
+
w`<div class="kv">
|
|
10708
10923
|
<div class="toggle-row">
|
|
10709
10924
|
<div class="row-main">
|
|
10710
10925
|
<span class="row-title">${this.t("twoFactor")}</span>
|
|
@@ -10719,11 +10934,11 @@ let z = class extends qe {
|
|
|
10719
10934
|
aria-label=${this.t("twoFactor")}
|
|
10720
10935
|
></button>
|
|
10721
10936
|
</div>
|
|
10722
|
-
${t.mfa && !(this.factors?.totp || t.emailVerification || t.phoneVerification) ?
|
|
10723
|
-
${
|
|
10937
|
+
${t.mfa && !(this.factors?.totp || t.emailVerification || t.phoneVerification) ? w`<div class="alert alert-warning" role="status">
|
|
10938
|
+
${q.alert}
|
|
10724
10939
|
<div class="alert-body">
|
|
10725
10940
|
${this.t("mfaNoFactorWarning")}
|
|
10726
|
-
${this.factors?.totp ?
|
|
10941
|
+
${this.factors?.totp ? C : w`<div class="links">
|
|
10727
10942
|
<button
|
|
10728
10943
|
type="button"
|
|
10729
10944
|
class="btn btn-link"
|
|
@@ -10734,17 +10949,17 @@ let z = class extends qe {
|
|
|
10734
10949
|
</button>
|
|
10735
10950
|
</div>`}
|
|
10736
10951
|
</div>
|
|
10737
|
-
</div>` :
|
|
10952
|
+
</div>` : C}
|
|
10738
10953
|
${this.error("mfa")}
|
|
10739
10954
|
<div class="separator"></div>
|
|
10740
10955
|
<div class="toggle-row">
|
|
10741
10956
|
<div class="row-main">
|
|
10742
10957
|
<span class="row-title"
|
|
10743
|
-
>${
|
|
10744
|
-
${e ? this.verifiedBadge(!0) :
|
|
10958
|
+
>${q.smartphone} ${this.t("authenticatorApp")}
|
|
10959
|
+
${e ? this.verifiedBadge(!0) : C}</span
|
|
10745
10960
|
>
|
|
10746
10961
|
</div>
|
|
10747
|
-
${e ? this.confirmRemoveAuthenticator ?
|
|
10962
|
+
${e ? this.confirmRemoveAuthenticator ? w`<div class="inline">
|
|
10748
10963
|
<button
|
|
10749
10964
|
class="btn btn-outline btn-sm warn"
|
|
10750
10965
|
@click=${this.onRemoveAuthenticator}
|
|
@@ -10758,13 +10973,13 @@ let z = class extends qe {
|
|
|
10758
10973
|
>
|
|
10759
10974
|
${this.t("cancel")}
|
|
10760
10975
|
</button>
|
|
10761
|
-
</div>` :
|
|
10976
|
+
</div>` : w`<button
|
|
10762
10977
|
class="btn btn-outline btn-sm"
|
|
10763
10978
|
@click=${this.onRemoveAuthenticator}
|
|
10764
10979
|
?disabled=${!!this.busy}
|
|
10765
10980
|
>
|
|
10766
10981
|
${this.spinner("remove-authenticator")} ${this.t("remove")}
|
|
10767
|
-
</button>` : this.authenticator ?
|
|
10982
|
+
</button>` : this.authenticator ? C : w`<button
|
|
10768
10983
|
class="btn btn-outline btn-sm"
|
|
10769
10984
|
@click=${this.onAddAuthenticator}
|
|
10770
10985
|
?disabled=${!!this.busy}
|
|
@@ -10773,7 +10988,7 @@ let z = class extends qe {
|
|
|
10773
10988
|
</button>`}
|
|
10774
10989
|
</div>
|
|
10775
10990
|
${this.error("authenticator")} ${this.error("remove-authenticator")}
|
|
10776
|
-
${this.authenticator ?
|
|
10991
|
+
${this.authenticator ? w`<form class="form" @submit=${this.onVerifyAuthenticator} novalidate>
|
|
10777
10992
|
<p class="hint">${this.t("authenticatorScan")}</p>
|
|
10778
10993
|
<img class="qr" src=${n} alt=${this.t("qrCodeAlt")} />
|
|
10779
10994
|
<p class="hint center">${this.t("authenticatorManual")}</p>
|
|
@@ -10788,7 +11003,7 @@ let z = class extends qe {
|
|
|
10788
11003
|
this.onCopySecret();
|
|
10789
11004
|
}}
|
|
10790
11005
|
>
|
|
10791
|
-
${this.copied ?
|
|
11006
|
+
${this.copied ? q.check : q.copy}
|
|
10792
11007
|
${this.copied ? this.t("copied") : this.t("authenticatorCopyKey")}
|
|
10793
11008
|
</button>
|
|
10794
11009
|
</div>
|
|
@@ -10819,7 +11034,7 @@ let z = class extends qe {
|
|
|
10819
11034
|
${this.t("cancel")}
|
|
10820
11035
|
</button>
|
|
10821
11036
|
</div>
|
|
10822
|
-
</form>` :
|
|
11037
|
+
</form>` : C}
|
|
10823
11038
|
</div>`
|
|
10824
11039
|
);
|
|
10825
11040
|
}
|
|
@@ -10828,38 +11043,38 @@ let z = class extends qe {
|
|
|
10828
11043
|
return this.card(
|
|
10829
11044
|
this.t("recoveryCodes"),
|
|
10830
11045
|
this.t("recoveryCodesDescription") + " " + this.t("recoveryCodesOnceHint"),
|
|
10831
|
-
|
|
10832
|
-
${this.recoveryCodes ?
|
|
10833
|
-
${
|
|
11046
|
+
w`<div class="kv">
|
|
11047
|
+
${this.recoveryCodes ? w`<div class="alert alert-warning">
|
|
11048
|
+
${q.alert}
|
|
10834
11049
|
<div class="alert-body">${this.t("recoveryCodesWarning")}</div>
|
|
10835
11050
|
</div>
|
|
10836
11051
|
<div class="codes">
|
|
10837
|
-
${this.recoveryCodes.map((e) =>
|
|
11052
|
+
${this.recoveryCodes.map((e) => w`<span class="code">${e}</span>`)}
|
|
10838
11053
|
</div>
|
|
10839
11054
|
<div class="inline">
|
|
10840
11055
|
<button class="btn btn-outline btn-sm" @click=${this.onCopyCodes}>
|
|
10841
|
-
${this.copied ?
|
|
11056
|
+
${this.copied ? q.check : q.copy}
|
|
10842
11057
|
${this.copied ? this.t("copied") : this.t("copy")}
|
|
10843
11058
|
</button>
|
|
10844
11059
|
<button class="btn btn-ghost btn-sm" @click=${() => this.recoveryCodes = null}>
|
|
10845
11060
|
${this.t("done")}
|
|
10846
11061
|
</button>
|
|
10847
|
-
</div>` :
|
|
11062
|
+
</div>` : w`<div class="inline">
|
|
10848
11063
|
<button
|
|
10849
11064
|
class="btn btn-outline btn-sm"
|
|
10850
11065
|
@click=${this.onRecoveryCodes}
|
|
10851
11066
|
?disabled=${!!this.busy}
|
|
10852
11067
|
>
|
|
10853
|
-
${this.spinner("recovery")} ${
|
|
11068
|
+
${this.spinner("recovery")} ${q.key}
|
|
10854
11069
|
${t ? this.t("viewRecoveryCodes") : this.t("generateRecoveryCodes")}
|
|
10855
11070
|
</button>
|
|
10856
|
-
${t ? this.confirmRegenerate ?
|
|
11071
|
+
${t ? this.confirmRegenerate ? w`<div class="inline">
|
|
10857
11072
|
<button
|
|
10858
11073
|
class="btn btn-outline btn-sm warn"
|
|
10859
11074
|
@click=${this.onRegenerateRecoveryCodes}
|
|
10860
11075
|
?disabled=${!!this.busy}
|
|
10861
11076
|
>
|
|
10862
|
-
${
|
|
11077
|
+
${q.refresh} ${this.t("regenerateRecoveryCodes")}
|
|
10863
11078
|
</button>
|
|
10864
11079
|
<button
|
|
10865
11080
|
class="btn btn-ghost btn-sm"
|
|
@@ -10867,13 +11082,13 @@ let z = class extends qe {
|
|
|
10867
11082
|
>
|
|
10868
11083
|
${this.t("cancel")}
|
|
10869
11084
|
</button>
|
|
10870
|
-
</div>` :
|
|
11085
|
+
</div>` : w`<button
|
|
10871
11086
|
class="btn btn-ghost btn-sm"
|
|
10872
11087
|
@click=${this.onRegenerateRecoveryCodes}
|
|
10873
11088
|
?disabled=${!!this.busy}
|
|
10874
11089
|
>
|
|
10875
|
-
${
|
|
10876
|
-
</button>` :
|
|
11090
|
+
${q.refresh} ${this.t("regenerateRecoveryCodes")}
|
|
11091
|
+
</button>` : C}
|
|
10877
11092
|
</div>`}
|
|
10878
11093
|
${this.error("recovery")}
|
|
10879
11094
|
</div>`
|
|
@@ -10884,25 +11099,25 @@ let z = class extends qe {
|
|
|
10884
11099
|
const t = this.stepUp, e = this.factors, n = [
|
|
10885
11100
|
{
|
|
10886
11101
|
factor: "totp",
|
|
10887
|
-
icon:
|
|
11102
|
+
icon: q.smartphone,
|
|
10888
11103
|
label: this.t("mfaUseAuthenticator"),
|
|
10889
11104
|
available: e?.totp ?? !0
|
|
10890
11105
|
},
|
|
10891
11106
|
{
|
|
10892
11107
|
factor: "email",
|
|
10893
|
-
icon:
|
|
11108
|
+
icon: q.mail,
|
|
10894
11109
|
label: this.t("mfaUseEmail"),
|
|
10895
11110
|
available: e?.email ?? !0
|
|
10896
11111
|
},
|
|
10897
11112
|
{
|
|
10898
11113
|
factor: "phone",
|
|
10899
|
-
icon:
|
|
11114
|
+
icon: q.phone,
|
|
10900
11115
|
label: this.t("mfaUsePhone"),
|
|
10901
11116
|
available: e?.phone ?? !0
|
|
10902
11117
|
},
|
|
10903
11118
|
{
|
|
10904
11119
|
factor: "recoverycode",
|
|
10905
|
-
icon:
|
|
11120
|
+
icon: q.key,
|
|
10906
11121
|
label: this.t("mfaUseRecoveryCode"),
|
|
10907
11122
|
available: e?.recoveryCode ?? !0
|
|
10908
11123
|
}
|
|
@@ -10910,8 +11125,8 @@ let z = class extends qe {
|
|
|
10910
11125
|
return this.card(
|
|
10911
11126
|
this.t("mfaTitle"),
|
|
10912
11127
|
this.t("errorChallengeRequired"),
|
|
10913
|
-
|
|
10914
|
-
${t.challenge ?
|
|
11128
|
+
w`<div class="kv">
|
|
11129
|
+
${t.challenge ? w`<form class="form" @submit=${this.onStepUpVerify} novalidate>
|
|
10915
11130
|
<div class="field">
|
|
10916
11131
|
<label class="label" for="acc-stepup"
|
|
10917
11132
|
>${t.challenge.factor === "recoverycode" ? this.t("recoveryCode") : this.t("code")}</label
|
|
@@ -10931,9 +11146,9 @@ let z = class extends qe {
|
|
|
10931
11146
|
<button class="btn btn-primary btn-sm" type="submit" ?disabled=${!!this.busy}>
|
|
10932
11147
|
${this.spinner("stepup-code")} ${this.t("verifyCode")}
|
|
10933
11148
|
</button>
|
|
10934
|
-
</form>` :
|
|
11149
|
+
</form>` : w`<div class="stack-sm">
|
|
10935
11150
|
${n.filter((i) => i.available).map(
|
|
10936
|
-
(i) =>
|
|
11151
|
+
(i) => w`<button
|
|
10937
11152
|
type="button"
|
|
10938
11153
|
class="choice"
|
|
10939
11154
|
@click=${() => this.onStepUpFactor(i.factor)}
|
|
@@ -10945,7 +11160,7 @@ let z = class extends qe {
|
|
|
10945
11160
|
</div>`}
|
|
10946
11161
|
${this.error("stepup")} ${this.error("stepup-code")}
|
|
10947
11162
|
</div>`,
|
|
10948
|
-
|
|
11163
|
+
w`<button class="btn btn-ghost btn-sm" @click=${() => this.stepUp = null}>
|
|
10949
11164
|
${this.t("cancel")}
|
|
10950
11165
|
</button>`
|
|
10951
11166
|
);
|
|
@@ -10953,24 +11168,28 @@ let z = class extends qe {
|
|
|
10953
11168
|
// ── Sessions ──
|
|
10954
11169
|
deviceIcon(t) {
|
|
10955
11170
|
const e = (t.deviceName || "").toLowerCase(), n = (t.osName || t.osCode || "").toLowerCase();
|
|
10956
|
-
return /phone|tablet|mobile/.test(e) || /ios|android|ipados/.test(n) ?
|
|
11171
|
+
return /phone|tablet|mobile/.test(e) || /ios|android|ipados/.test(n) ? q.smartphone : /desktop|browser/.test(e) || /mac|windows|linux|chrome os/.test(n) ? q.monitor : q.globe;
|
|
10957
11172
|
}
|
|
10958
11173
|
renderSessions() {
|
|
10959
11174
|
const t = this.sessions;
|
|
10960
|
-
return
|
|
11175
|
+
return w`<div class="section">
|
|
10961
11176
|
${this.card(
|
|
10962
11177
|
this.t("sessions"),
|
|
10963
11178
|
void 0,
|
|
10964
|
-
|
|
10965
|
-
${t === null ?
|
|
10966
|
-
|
|
11179
|
+
w`${this.error("sessions")}
|
|
11180
|
+
${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
|
|
11181
|
+
q.monitor,
|
|
11182
|
+
this.t("noSessions"),
|
|
11183
|
+
this.t("noSessionsDescription")
|
|
11184
|
+
) : t.map(
|
|
11185
|
+
(e) => w`<div class="row">
|
|
10967
11186
|
<div class="inline">
|
|
10968
11187
|
<span class="device">${this.deviceIcon(e)}</span>
|
|
10969
11188
|
<div class="row-main">
|
|
10970
11189
|
<span class="row-title">
|
|
10971
11190
|
${e.clientName || e.provider}
|
|
10972
|
-
${e.clientVersion ?
|
|
10973
|
-
${e.current ?
|
|
11191
|
+
${e.clientVersion ? w`<span class="muted small">${e.clientVersion}</span>` : C}
|
|
11192
|
+
${e.current ? w`<span class="badge badge-info">${this.t("currentSession")}</span>` : C}
|
|
10974
11193
|
</span>
|
|
10975
11194
|
<span class="row-sub"
|
|
10976
11195
|
>${[e.osName, e.countryName || e.countryCode, e.ip].filter(Boolean).join(" · ")}</span
|
|
@@ -10978,14 +11197,14 @@ let z = class extends qe {
|
|
|
10978
11197
|
</div>
|
|
10979
11198
|
</div>
|
|
10980
11199
|
<div class="row-actions">
|
|
10981
|
-
${this.busy === `session-${e.$id}` ?
|
|
11200
|
+
${this.busy === `session-${e.$id}` ? w`<span class="spinner"></span>` : C}
|
|
10982
11201
|
<button
|
|
10983
11202
|
class="btn btn-ghost btn-sm"
|
|
10984
11203
|
@click=${() => this.onDeleteSession(e.$id)}
|
|
10985
11204
|
?disabled=${!!this.busy}
|
|
10986
11205
|
aria-label=${this.t("signOutSession")}
|
|
10987
11206
|
>
|
|
10988
|
-
${
|
|
11207
|
+
${q.logOut}
|
|
10989
11208
|
</button>
|
|
10990
11209
|
</div>
|
|
10991
11210
|
</div>`
|
|
@@ -10994,29 +11213,24 @@ let z = class extends qe {
|
|
|
10994
11213
|
${this.card(
|
|
10995
11214
|
this.t("signOutAllSessions"),
|
|
10996
11215
|
this.t("signOutAllSessionsDescription"),
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
<button
|
|
11000
|
-
class="btn btn-outline btn-sm warn"
|
|
11001
|
-
@click=${this.onSignOutAll}
|
|
11002
|
-
?disabled=${!!this.busy}
|
|
11003
|
-
>
|
|
11004
|
-
${this.spinner("sessions-all")} ${_.logOut} ${this.t("signOutAllSessions")}
|
|
11005
|
-
</button>
|
|
11006
|
-
<button
|
|
11007
|
-
class="btn btn-ghost btn-sm"
|
|
11008
|
-
@click=${() => this.confirmSignOutAll = !1}
|
|
11009
|
-
>
|
|
11010
|
-
${this.t("cancel")}
|
|
11011
|
-
</button>
|
|
11012
|
-
</div>` : b`<button
|
|
11216
|
+
this.confirmSignOutAll ? this.error("sessions-all") : w`${this.error("sessions-all")}
|
|
11217
|
+
<button
|
|
11013
11218
|
class="btn btn-outline btn-sm warn"
|
|
11014
11219
|
@click=${this.onSignOutAll}
|
|
11015
11220
|
?disabled=${!!this.busy}
|
|
11016
11221
|
>
|
|
11017
|
-
${this.spinner("sessions-all")} ${
|
|
11018
|
-
</button
|
|
11019
|
-
|
|
11222
|
+
${this.spinner("sessions-all")} ${q.logOut} ${this.t("signOutAllSessions")}
|
|
11223
|
+
</button>`,
|
|
11224
|
+
this.confirmSignOutAll ? this.confirmFooter(
|
|
11225
|
+
() => {
|
|
11226
|
+
this.confirmSignOutAll = !1;
|
|
11227
|
+
},
|
|
11228
|
+
() => {
|
|
11229
|
+
this.onSignOutAll();
|
|
11230
|
+
},
|
|
11231
|
+
this.t("signOutAllSessions"),
|
|
11232
|
+
"sessions-all"
|
|
11233
|
+
) : void 0,
|
|
11020
11234
|
!0
|
|
11021
11235
|
)}
|
|
11022
11236
|
</div>`;
|
|
@@ -11024,57 +11238,65 @@ let z = class extends qe {
|
|
|
11024
11238
|
// ── Connections ──
|
|
11025
11239
|
renderConnections() {
|
|
11026
11240
|
const t = this.identities, e = this.config?.methods?.oauth ?? [];
|
|
11027
|
-
return
|
|
11241
|
+
return w`<div class="section">
|
|
11028
11242
|
${this.card(
|
|
11029
11243
|
this.t("connections"),
|
|
11030
11244
|
void 0,
|
|
11031
|
-
|
|
11032
|
-
${t === null ?
|
|
11033
|
-
|
|
11245
|
+
w`${this.error("identities")}
|
|
11246
|
+
${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
|
|
11247
|
+
q.link,
|
|
11248
|
+
this.t("noConnections"),
|
|
11249
|
+
this.t("noConnectionsDescription")
|
|
11250
|
+
) : t.map(
|
|
11251
|
+
(n) => w`<div class="row">
|
|
11034
11252
|
<div class="inline">
|
|
11035
|
-
<span class="device">${
|
|
11253
|
+
<span class="device">${Mt(n.provider)}</span>
|
|
11036
11254
|
<div class="row-main">
|
|
11037
|
-
<span class="row-title">${
|
|
11255
|
+
<span class="row-title">${xt(n.provider)}</span>
|
|
11038
11256
|
<span class="row-sub">${n.providerEmail || n.providerUid}</span>
|
|
11039
11257
|
</div>
|
|
11040
11258
|
</div>
|
|
11041
11259
|
<div class="row-actions">
|
|
11042
|
-
${this.confirmDisconnectId === n.$id ?
|
|
11260
|
+
${this.confirmDisconnectId === n.$id ? w`<div class="inline">
|
|
11043
11261
|
<button
|
|
11044
|
-
|
|
11045
|
-
|
|
11262
|
+
type="button"
|
|
11263
|
+
class="btn btn-outline btn-sm"
|
|
11264
|
+
autofocus
|
|
11046
11265
|
?disabled=${!!this.busy}
|
|
11266
|
+
@click=${() => this.confirmDisconnectId = null}
|
|
11047
11267
|
>
|
|
11048
|
-
${this.
|
|
11049
|
-
${this.t("disconnect")}
|
|
11268
|
+
${this.t("cancel")}
|
|
11050
11269
|
</button>
|
|
11051
11270
|
<button
|
|
11052
|
-
|
|
11053
|
-
|
|
11271
|
+
type="button"
|
|
11272
|
+
class="btn btn-destructive btn-sm"
|
|
11273
|
+
@click=${() => this.onDeleteIdentity(n.$id)}
|
|
11274
|
+
?disabled=${!!this.busy}
|
|
11054
11275
|
>
|
|
11055
|
-
${this.
|
|
11276
|
+
${this.busy === `identity-${n.$id}` ? w`<span class="spinner"></span>` : C}
|
|
11277
|
+
${this.t("disconnect")}
|
|
11056
11278
|
</button>
|
|
11057
|
-
</div>` :
|
|
11279
|
+
</div>` : w`<button
|
|
11058
11280
|
class="btn btn-ghost btn-sm"
|
|
11059
11281
|
@click=${() => this.onDeleteIdentity(n.$id)}
|
|
11060
11282
|
?disabled=${!!this.busy}
|
|
11061
11283
|
>
|
|
11062
|
-
${this.busy === `identity-${n.$id}` ?
|
|
11284
|
+
${this.busy === `identity-${n.$id}` ? w`<span class="spinner"></span>` : C}
|
|
11063
11285
|
${this.t("disconnect")}
|
|
11064
11286
|
</button>`}
|
|
11065
11287
|
</div>
|
|
11066
11288
|
</div>`
|
|
11067
11289
|
)}`,
|
|
11068
|
-
e.length > 0 ?
|
|
11069
|
-
(n) =>
|
|
11290
|
+
e.length > 0 ? w`${e.filter((n) => !(t ?? []).some((i) => i.provider === n)).map(
|
|
11291
|
+
(n) => w`<button
|
|
11070
11292
|
class="btn btn-outline btn-sm"
|
|
11071
11293
|
@click=${() => {
|
|
11072
11294
|
this.run(`connect-${n}`, () => R.signInWithOAuth(n));
|
|
11073
11295
|
}}
|
|
11074
11296
|
?disabled=${!!this.busy}
|
|
11075
11297
|
>
|
|
11076
|
-
${this.spinner(`connect-${n}`)} ${
|
|
11077
|
-
${this.t("connectProvider", { provider:
|
|
11298
|
+
${this.spinner(`connect-${n}`)} ${Mt(n)}
|
|
11299
|
+
${this.t("connectProvider", { provider: xt(n) })}
|
|
11078
11300
|
</button>`
|
|
11079
11301
|
)}` : void 0
|
|
11080
11302
|
)}
|
|
@@ -11083,12 +11305,16 @@ let z = class extends qe {
|
|
|
11083
11305
|
// ── Activity ──
|
|
11084
11306
|
renderActivity() {
|
|
11085
11307
|
const t = this.logs;
|
|
11086
|
-
return
|
|
11308
|
+
return w`<div class="section">
|
|
11087
11309
|
${this.card(
|
|
11088
11310
|
this.t("activity"),
|
|
11089
11311
|
void 0,
|
|
11090
|
-
|
|
11091
|
-
|
|
11312
|
+
w`${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
|
|
11313
|
+
q.activity,
|
|
11314
|
+
this.t("noActivity"),
|
|
11315
|
+
this.t("noActivityDescription")
|
|
11316
|
+
) : t.map(
|
|
11317
|
+
(e) => w`<div class="row">
|
|
11092
11318
|
<div class="row-main">
|
|
11093
11319
|
<span class="row-title">${e.event}</span>
|
|
11094
11320
|
<span class="row-sub"
|
|
@@ -11372,7 +11598,7 @@ let Re = class extends qe {
|
|
|
11372
11598
|
}
|
|
11373
11599
|
render() {
|
|
11374
11600
|
const t = this.auth.status === "signed-in", e = this.view === "account" && t;
|
|
11375
|
-
return
|
|
11601
|
+
return w`
|
|
11376
11602
|
<dialog
|
|
11377
11603
|
class=${e ? "wide" : ""}
|
|
11378
11604
|
aria-label=${e ? this.t("dialogAccount") : this.t("dialogSignIn")}
|
|
@@ -11391,14 +11617,14 @@ let Re = class extends qe {
|
|
|
11391
11617
|
@click=${this.hide}
|
|
11392
11618
|
aria-label=${this.t("close")}
|
|
11393
11619
|
>
|
|
11394
|
-
${
|
|
11620
|
+
${q.x}
|
|
11395
11621
|
</button>
|
|
11396
11622
|
</div>
|
|
11397
11623
|
<div class="body" @scroll=${this.syncScrollCue}>
|
|
11398
|
-
${this.open ? e ?
|
|
11624
|
+
${this.open ? e ? w`<authui-account embedded></authui-account>` : w`<authui-sign-in
|
|
11399
11625
|
embedded
|
|
11400
11626
|
.view=${this.view === "account" ? "sign-in" : this.view}
|
|
11401
|
-
></authui-sign-in>` :
|
|
11627
|
+
></authui-sign-in>` : C}
|
|
11402
11628
|
</div>
|
|
11403
11629
|
<div class="scroll-fade ${this.scrollCue ? "show" : ""}" aria-hidden="true"></div>
|
|
11404
11630
|
</div>
|
|
@@ -11512,15 +11738,15 @@ Ge([
|
|
|
11512
11738
|
V()
|
|
11513
11739
|
], Re.prototype, "scrollCue", 2);
|
|
11514
11740
|
Ge([
|
|
11515
|
-
|
|
11741
|
+
wi("dialog")
|
|
11516
11742
|
], Re.prototype, "dialog", 2);
|
|
11517
11743
|
Ge([
|
|
11518
|
-
|
|
11744
|
+
wi(".body")
|
|
11519
11745
|
], Re.prototype, "bodyEl", 2);
|
|
11520
11746
|
Re = Ge([
|
|
11521
11747
|
ze("authui-modal")
|
|
11522
11748
|
], Re);
|
|
11523
|
-
var No = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor,
|
|
11749
|
+
var No = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, Lt = (t, e, n, i) => {
|
|
11524
11750
|
for (var o = i > 1 ? void 0 : i ? Ho(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
11525
11751
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
11526
11752
|
return i && o && No(e, n, o), o;
|
|
@@ -11531,9 +11757,9 @@ let ot = class extends qe {
|
|
|
11531
11757
|
}
|
|
11532
11758
|
render() {
|
|
11533
11759
|
const t = this.size === "md" ? "" : `btn-${this.size}`;
|
|
11534
|
-
return
|
|
11760
|
+
return w`<button
|
|
11535
11761
|
class="btn btn-${this.variant} ${t}"
|
|
11536
|
-
@click=${() =>
|
|
11762
|
+
@click=${() => mt(this.view)}
|
|
11537
11763
|
part="button"
|
|
11538
11764
|
>
|
|
11539
11765
|
<slot
|
|
@@ -11553,16 +11779,16 @@ ot.styles = [
|
|
|
11553
11779
|
}
|
|
11554
11780
|
`
|
|
11555
11781
|
];
|
|
11556
|
-
|
|
11782
|
+
Lt([
|
|
11557
11783
|
ee({ type: String })
|
|
11558
11784
|
], ot.prototype, "view", 2);
|
|
11559
|
-
|
|
11785
|
+
Lt([
|
|
11560
11786
|
ee({ type: String })
|
|
11561
11787
|
], ot.prototype, "variant", 2);
|
|
11562
|
-
|
|
11788
|
+
Lt([
|
|
11563
11789
|
ee({ type: String })
|
|
11564
11790
|
], ot.prototype, "size", 2);
|
|
11565
|
-
ot =
|
|
11791
|
+
ot = Lt([
|
|
11566
11792
|
ze("authui-button")
|
|
11567
11793
|
], ot);
|
|
11568
11794
|
var Do = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Ke = (t, e, n, i) => {
|
|
@@ -11643,13 +11869,13 @@ let Ee = class extends qe {
|
|
|
11643
11869
|
render() {
|
|
11644
11870
|
const { status: t, user: e, configured: n } = this.auth;
|
|
11645
11871
|
if (t === "loading" && n)
|
|
11646
|
-
return
|
|
11872
|
+
return w`<span class="avatar"><span class="spinner"></span></span>`;
|
|
11647
11873
|
if (t !== "signed-in" || !e)
|
|
11648
|
-
return
|
|
11874
|
+
return w`<button class="btn btn-primary btn-sm" @click=${() => mt("sign-in")}>
|
|
11649
11875
|
<slot>${this.t("signIn")}</slot>
|
|
11650
11876
|
</button>`;
|
|
11651
11877
|
const i = e.name || e.email || e.phone || this.t("guestAccount");
|
|
11652
|
-
return
|
|
11878
|
+
return w`
|
|
11653
11879
|
<button
|
|
11654
11880
|
class="trigger"
|
|
11655
11881
|
aria-haspopup="menu"
|
|
@@ -11658,39 +11884,39 @@ let Ee = class extends qe {
|
|
|
11658
11884
|
aria-label=${i}
|
|
11659
11885
|
>
|
|
11660
11886
|
<span class="avatar"
|
|
11661
|
-
>${this.src ?
|
|
11887
|
+
>${this.src ? w`<img src=${this.src} alt="" />` : Ai(i)}</span
|
|
11662
11888
|
>
|
|
11663
11889
|
</button>
|
|
11664
|
-
${this.menuOpen ?
|
|
11890
|
+
${this.menuOpen ? w`<div class="menu ${this.menuAbove ? "above" : ""}" role="menu">
|
|
11665
11891
|
<div class="menu-header">
|
|
11666
11892
|
<span class="row-title" title=${i}>${i}</span>
|
|
11667
|
-
${e.email && e.name ?
|
|
11893
|
+
${e.email && e.name ? w`<span class="row-sub" title=${e.email}>${e.email}</span>` : C}
|
|
11668
11894
|
</div>
|
|
11669
|
-
${this.showTeams ?
|
|
11895
|
+
${this.showTeams ? w`<div class="menu-section">
|
|
11670
11896
|
<div class="menu-section-label">${this.t("teamsLabel")}</div>
|
|
11671
|
-
${this.teamsLoading ?
|
|
11897
|
+
${this.teamsLoading ? w`<div class="menu-item" aria-busy="true">
|
|
11672
11898
|
<span class="spinner"></span>
|
|
11673
|
-
</div>` : this.teams.length === 0 ?
|
|
11674
|
-
(o) =>
|
|
11899
|
+
</div>` : this.teams.length === 0 ? w`<div class="menu-item" role="note">${this.t("noTeams")}</div>` : this.teams.map(
|
|
11900
|
+
(o) => w`<button
|
|
11675
11901
|
class="menu-item ${o.$id === this.activeTeamId ? "active" : ""}"
|
|
11676
11902
|
role="menuitemradio"
|
|
11677
11903
|
aria-checked=${o.$id === this.activeTeamId ? "true" : "false"}
|
|
11678
11904
|
@click=${() => this.selectTeam(o)}
|
|
11679
11905
|
>
|
|
11680
|
-
${
|
|
11906
|
+
${q.users}
|
|
11681
11907
|
<span title=${o.name}>${o.name}</span>
|
|
11682
|
-
${o.$id === this.activeTeamId ?
|
|
11908
|
+
${o.$id === this.activeTeamId ? w`<span class="check">${q.check}</span>` : C}
|
|
11683
11909
|
</button>`
|
|
11684
11910
|
)}
|
|
11685
|
-
</div>` :
|
|
11911
|
+
</div>` : C}
|
|
11686
11912
|
<button
|
|
11687
11913
|
class="menu-item"
|
|
11688
11914
|
role="menuitem"
|
|
11689
11915
|
@click=${() => {
|
|
11690
|
-
this.menuOpen = !1,
|
|
11916
|
+
this.menuOpen = !1, mt("account");
|
|
11691
11917
|
}}
|
|
11692
11918
|
>
|
|
11693
|
-
${
|
|
11919
|
+
${q.settings} ${this.t("manageAccount")}
|
|
11694
11920
|
</button>
|
|
11695
11921
|
<button
|
|
11696
11922
|
class="menu-item"
|
|
@@ -11699,9 +11925,9 @@ let Ee = class extends qe {
|
|
|
11699
11925
|
this.menuOpen = !1, R.signOut();
|
|
11700
11926
|
}}
|
|
11701
11927
|
>
|
|
11702
|
-
${
|
|
11928
|
+
${q.logOut} ${this.t("signOut")}
|
|
11703
11929
|
</button>
|
|
11704
|
-
</div>` :
|
|
11930
|
+
</div>` : C}
|
|
11705
11931
|
`;
|
|
11706
11932
|
}
|
|
11707
11933
|
};
|
|
@@ -11851,7 +12077,7 @@ function Xo(t) {
|
|
|
11851
12077
|
return R.configure(t), zo;
|
|
11852
12078
|
}
|
|
11853
12079
|
function Vo(t) {
|
|
11854
|
-
|
|
12080
|
+
mt(t);
|
|
11855
12081
|
}
|
|
11856
12082
|
function Wo() {
|
|
11857
12083
|
Uo();
|
|
@@ -11898,8 +12124,8 @@ export {
|
|
|
11898
12124
|
pe as AuthUIConfigElement,
|
|
11899
12125
|
qe as AuthUIElement,
|
|
11900
12126
|
Re as AuthUIModal,
|
|
11901
|
-
|
|
11902
|
-
|
|
12127
|
+
yt as AuthUIShow,
|
|
12128
|
+
we as AuthUISignIn,
|
|
11903
12129
|
Ee as AuthUIUserButton,
|
|
11904
12130
|
ia as CRITICAL_FOUC_CSS,
|
|
11905
12131
|
oe as ErrorTypes,
|
|
@@ -11912,7 +12138,7 @@ export {
|
|
|
11912
12138
|
Wo as close,
|
|
11913
12139
|
Uo as closeModal,
|
|
11914
12140
|
so as defaultStrings,
|
|
11915
|
-
|
|
12141
|
+
Ct as describeError,
|
|
11916
12142
|
Zo as getAccount,
|
|
11917
12143
|
Jo as getClient,
|
|
11918
12144
|
Fe as getLastMethod,
|
|
@@ -11923,9 +12149,9 @@ export {
|
|
|
11923
12149
|
ho as isConfigError,
|
|
11924
12150
|
To as on,
|
|
11925
12151
|
Vo as open,
|
|
11926
|
-
|
|
12152
|
+
mt as openModal,
|
|
11927
12153
|
Qo as previewSignIn,
|
|
11928
|
-
|
|
12154
|
+
xt as providerLabel,
|
|
11929
12155
|
lt as rememberLastMethod,
|
|
11930
12156
|
sn as rememberPendingOAuth,
|
|
11931
12157
|
pi as scorePassword,
|